Debian Codegraph @

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.12.2.
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.12.2'
626 PACKAGE_STRING='libgcrypt 1.12.2'
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 LIBOBJS
669 BUILD_TIMESTAMP
670 BUILD_FILEVERSION
671 BUILD_VERSION
672 BUILD_REVISION
673 BUILD_DOC_FALSE
674 BUILD_DOC_TRUE
675 GCRYPT_HWF_MODULES
676 LIBGCRYPT_DIGESTS
677 LIBGCRYPT_PUBKEY_CIPHERS
678 LIBGCRYPT_CIPHERS
679 GCRYPT_RANDOM
680 GCRYPT_KDFS
681 GCRYPT_DIGESTS
682 GCRYPT_PUBKEY_CIPHERS
683 GCRYPT_CIPHERS
684 USE_DILITHIUM_FALSE
685 USE_DILITHIUM_TRUE
686 USE_KYBER_FALSE
687 USE_KYBER_TRUE
688 USE_ECC_FALSE
689 USE_ECC_TRUE
690 USE_ELGAMAL_FALSE
691 USE_ELGAMAL_TRUE
692 USE_RSA_FALSE
693 USE_RSA_TRUE
694 USE_DSA_FALSE
695 USE_DSA_TRUE
696 LIBGCRYPT_THREAD_MODULES
697 LIBGCRYPT_CONFIG_HOST
698 LIBGCRYPT_CONFIG_CFLAGS
699 LIBGCRYPT_CONFIG_LIBS
700 LIBGCRYPT_CONFIG_API_VERSION
701 NOEXECSTACK_FLAGS
702 CROSS_COMPILING_FALSE
703 CROSS_COMPILING_TRUE
704 DL_LIBS
705 ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS_FALSE
706 ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS_TRUE
707 MARCH_RVA23U64_BASE
708 ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS_FALSE
709 ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS_TRUE
710 MARCH_RVA22U64_WITH_VEC
711 SUPPORT_CC_RISCV_MSTRICT_ALIGN_FALSE
712 SUPPORT_CC_RISCV_MSTRICT_ALIGN_TRUE
713 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_FALSE
714 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_TRUE
715 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_FALSE
716 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_TRUE
717 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_FALSE
718 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_TRUE
719 MPI_MOD_C_UDIV_QRNND_FALSE
720 MPI_MOD_C_UDIV_QRNND_TRUE
721 MPI_MOD_C_UDIV_FALSE
722 MPI_MOD_C_UDIV_TRUE
723 MPI_MOD_C_MPIH_RSHIFT_FALSE
724 MPI_MOD_C_MPIH_RSHIFT_TRUE
725 MPI_MOD_C_MPIH_LSHIFT_FALSE
726 MPI_MOD_C_MPIH_LSHIFT_TRUE
727 MPI_MOD_C_MPIH_MUL3_FALSE
728 MPI_MOD_C_MPIH_MUL3_TRUE
729 MPI_MOD_C_MPIH_MUL2_FALSE
730 MPI_MOD_C_MPIH_MUL2_TRUE
731 MPI_MOD_C_MPIH_MUL1_FALSE
732 MPI_MOD_C_MPIH_MUL1_TRUE
733 MPI_MOD_C_MPIH_SUB1_FALSE
734 MPI_MOD_C_MPIH_SUB1_TRUE
735 MPI_MOD_C_MPIH_ADD1_FALSE
736 MPI_MOD_C_MPIH_ADD1_TRUE
737 MPI_MOD_ASM_UDIV_QRNND_FALSE
738 MPI_MOD_ASM_UDIV_QRNND_TRUE
739 MPI_MOD_ASM_UDIV_FALSE
740 MPI_MOD_ASM_UDIV_TRUE
741 MPI_MOD_ASM_MPIH_RSHIFT_FALSE
742 MPI_MOD_ASM_MPIH_RSHIFT_TRUE
743 MPI_MOD_ASM_MPIH_LSHIFT_FALSE
744 MPI_MOD_ASM_MPIH_LSHIFT_TRUE
745 MPI_MOD_ASM_MPIH_MUL3_FALSE
746 MPI_MOD_ASM_MPIH_MUL3_TRUE
747 MPI_MOD_ASM_MPIH_MUL2_FALSE
748 MPI_MOD_ASM_MPIH_MUL2_TRUE
749 MPI_MOD_ASM_MPIH_MUL1_FALSE
750 MPI_MOD_ASM_MPIH_MUL1_TRUE
751 MPI_MOD_ASM_MPIH_SUB1_FALSE
752 MPI_MOD_ASM_MPIH_SUB1_TRUE
753 MPI_MOD_ASM_MPIH_ADD1_FALSE
754 MPI_MOD_ASM_MPIH_ADD1_TRUE
755 MPI_SFLAGS
756 USE_GPGRT_CONFIG_FALSE
757 USE_GPGRT_CONFIG_TRUE
758 GPG_ERROR_MT_LIBS
759 GPG_ERROR_MT_CFLAGS
760 GPG_ERROR_LIBS
761 GPG_ERROR_CFLAGS
762 GPGRT_CONFIG
763 GPG_ERROR_CONFIG
764 HAVE_LD_VERSION_SCRIPT_FALSE
765 HAVE_LD_VERSION_SCRIPT_TRUE
766 ENABLE_INSTRUMENTATION_MUNGING_FALSE
767 ENABLE_INSTRUMENTATION_MUNGING_TRUE
768 ENABLE_O_FLAG_MUNGING_FALSE
769 ENABLE_O_FLAG_MUNGING_TRUE
770 DEF_HMAC_BINARY_CHECK
771 USE_HMAC_BINARY_CHECK_FALSE
772 USE_HMAC_BINARY_CHECK_TRUE
773 READELF
774 OBJCOPY
775 RUN_LARGE_DATA_TESTS
776 emacs_local_vars_end
777 emacs_local_vars_read_only
778 emacs_local_vars_begin
779 HAVE_W32_SYSTEM_FALSE
780 HAVE_W32_SYSTEM_TRUE
781 RC
782 LT_SYS_LIBRARY_PATH
783 OTOOL64
784 OTOOL
785 LIPO
786 NMEDIT
787 DSYMUTIL
788 MANIFEST_TOOL
789 RANLIB
790 ac_ct_AR
791 AR
792 FILECMD
793 LN_S
794 NM
795 ac_ct_DUMPBIN
796 DUMPBIN
797 LD
798 EGREP
799 SED
800 LIBTOOL
801 OBJDUMP
802 DLLTOOL
803 AS
804 EXEEXT_FOR_BUILD
805 CC_FOR_BUILD
806 VERSION_NUMBER
807 LDADD_FOR_TESTS_KLUDGE
808 FGREP
809 GREP
810 am__fastdepCCAS_FALSE
811 am__fastdepCCAS_TRUE
812 CCASDEPMODE
813 CCASFLAGS
814 CCAS
815 CPP
816 SYSROOT
817 am__fastdepCC_FALSE
818 am__fastdepCC_TRUE
819 CCDEPMODE
820 am__nodep
821 AMDEPBACKSLASH
822 AMDEP_FALSE
823 AMDEP_TRUE
824 am__include
825 DEPDIR
826 OBJEXT
827 EXEEXT
828 ac_ct_CC
829 CPPFLAGS
830 LDFLAGS
831 CFLAGS
832 CC
833 MAINT
834 MAINTAINER_MODE_FALSE
835 MAINTAINER_MODE_TRUE
836 host_os
837 host_vendor
838 host_cpu
839 host
840 build_os
841 build_vendor
842 build_cpu
843 build
844 AM_BACKSLASH
845 AM_DEFAULT_VERBOSITY
846 AM_DEFAULT_V
847 AM_V
848 CSCOPE
849 ETAGS
850 CTAGS
851 am__untar
852 am__tar
853 AMTAR
854 am__leading_dot
855 SET_MAKE
856 AWK
857 mkdir_p
858 MKDIR_P
859 INSTALL_STRIP_PROGRAM
860 STRIP
861 install_sh
862 MAKEINFO
863 AUTOHEADER
864 AUTOMAKE
865 AUTOCONF
866 ACLOCAL
867 VERSION
868 PACKAGE
869 CYGPATH_W
870 am__isrc
871 INSTALL_DATA
872 INSTALL_SCRIPT
873 INSTALL_PROGRAM
874 LIBGCRYPT_LT_REVISION
875 LIBGCRYPT_LT_AGE
876 LIBGCRYPT_LT_CURRENT
877 target_alias
878 host_alias
879 build_alias
880 LIBS
881 ECHO_T
882 ECHO_N
883 ECHO_C
884 DEFS
885 mandir
886 localedir
887 libdir
888 psdir
889 pdfdir
890 dvidir
891 htmldir
892 infodir
893 docdir
894 oldincludedir
895 includedir
896 runstatedir
897 localstatedir
898 sharedstatedir
899 sysconfdir
900 datadir
901 datarootdir
902 libexecdir
903 sbindir
904 bindir
905 program_transform_name
906 prefix
907 exec_prefix
908 PACKAGE_URL
909 PACKAGE_BUGREPORT
910 PACKAGE_STRING
911 PACKAGE_VERSION
912 PACKAGE_TARNAME
913 PACKAGE_NAME
914 PATH_SEPARATOR
915 SHELL
916 am__quote'
917 ac_subst_files=''
918 ac_user_opts='
919 enable_option_checking
920 enable_silent_rules
921 enable_maintainer_mode
922 enable_dependency_tracking
923 enable_static
924 enable_shared
925 with_pic
926 enable_fast_install
927 with_aix_soname
928 with_gnu_ld
929 with_sysroot
930 enable_libtool_lock
931 enable_endian_check
932 enable_ciphers
933 enable_pubkey_ciphers
934 enable_digests
935 enable_kdfs
936 enable_random
937 enable_dev_random
938 with_egd_socket
939 enable_asm
940 enable_large_data_tests
941 enable_force_soft_hwfeatures
942 with_capabilities
943 enable_hmac_binary_check
944 with_fips_module_version
945 enable_jent_support
946 enable_padlock_support
947 enable_aesni_support
948 enable_shaext_support
949 enable_pclmul_support
950 enable_sse41_support
951 enable_drng_support
952 enable_avx_support
953 enable_avx2_support
954 enable_avx512_support
955 enable_gfni_support
956 enable_neon_support
957 enable_arm_crypto_support
958 enable_sve_support
959 enable_sve2_support
960 enable_ppc_crypto_support
961 enable_O_flag_munging
962 enable_instrumentation_munging
963 enable_amd64_as_feature_detection
964 enable_ld_version_script
965 with_libtool_modification
966 with_libgpg_error_prefix
967 with_gpg_error_prefix
968 enable_mpi_path
969 enable_optimization
970 enable_noexecstack
971 enable_doc
972 enable_build_timestamp
973 '
974 ac_precious_vars='build_alias
975 host_alias
976 target_alias
977 CC
978 CFLAGS
979 LDFLAGS
980 LIBS
981 CPPFLAGS
982 SYSROOT
983 CPP
984 CCAS
985 CCASFLAGS
986 LT_SYS_LIBRARY_PATH'
987
988
989 # Initialize some variables set by options.
990 ac_init_help=
991 ac_init_version=false
992 ac_unrecognized_opts=
993 ac_unrecognized_sep=
994 # The variables have the same names as the options, with
995 # dashes changed to underlines.
996 cache_file=/dev/null
997 exec_prefix=NONE
998 no_create=
999 no_recursion=
1000 prefix=NONE
1001 program_prefix=NONE
1002 program_suffix=NONE
1003 program_transform_name=s,x,x,
1004 silent=
1005 site=
1006 srcdir=
1007 verbose=
1008 x_includes=NONE
1009 x_libraries=NONE
1010
1011 # Installation directory options.
1012 # These are left unexpanded so users can "make install exec_prefix=/foo"
1013 # and all the variables that are supposed to be based on exec_prefix
1014 # by default will actually change.
1015 # Use braces instead of parens because sh, perl, etc. also accept them.
1016 # (The list follows the same order as the GNU Coding Standards.)
1017 bindir='${exec_prefix}/bin'
1018 sbindir='${exec_prefix}/sbin'
1019 libexecdir='${exec_prefix}/libexec'
1020 datarootdir='${prefix}/share'
1021 datadir='${datarootdir}'
1022 sysconfdir='${prefix}/etc'
1023 sharedstatedir='${prefix}/com'
1024 localstatedir='${prefix}/var'
1025 runstatedir='${localstatedir}/run'
1026 includedir='${prefix}/include'
1027 oldincludedir='/usr/include'
1028 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1029 infodir='${datarootdir}/info'
1030 htmldir='${docdir}'
1031 dvidir='${docdir}'
1032 pdfdir='${docdir}'
1033 psdir='${docdir}'
1034 libdir='${exec_prefix}/lib'
1035 localedir='${datarootdir}/locale'
1036 mandir='${datarootdir}/man'
1037
1038 ac_prev=
1039 ac_dashdash=
1040 for ac_option
1041 do
1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
1044 eval $ac_prev=\$ac_option
1045 ac_prev=
1046 continue
1047 fi
1048
1049 case $ac_option in
1050 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051 *=) ac_optarg= ;;
1052 *) ac_optarg=yes ;;
1053 esac
1054
1055 case $ac_dashdash$ac_option in
1056 --)
1057 ac_dashdash=yes ;;
1058
1059 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1060 ac_prev=bindir ;;
1061 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1062 bindir=$ac_optarg ;;
1063
1064 -build | --build | --buil | --bui | --bu)
1065 ac_prev=build_alias ;;
1066 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1067 build_alias=$ac_optarg ;;
1068
1069 -cache-file | --cache-file | --cache-fil | --cache-fi \
1070 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1071 ac_prev=cache_file ;;
1072 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1073 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1074 cache_file=$ac_optarg ;;
1075
1076 --config-cache | -C)
1077 cache_file=config.cache ;;
1078
1079 -datadir | --datadir | --datadi | --datad)
1080 ac_prev=datadir ;;
1081 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1082 datadir=$ac_optarg ;;
1083
1084 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1085 | --dataroo | --dataro | --datar)
1086 ac_prev=datarootdir ;;
1087 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1088 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1089 datarootdir=$ac_optarg ;;
1090
1091 -disable-* | --disable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100 "enable_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=no ;;
1106
1107 -docdir | --docdir | --docdi | --doc | --do)
1108 ac_prev=docdir ;;
1109 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110 docdir=$ac_optarg ;;
1111
1112 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113 ac_prev=dvidir ;;
1114 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115 dvidir=$ac_optarg ;;
1116
1117 -enable-* | --enable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "enable_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval enable_$ac_useropt=\$ac_optarg ;;
1132
1133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1135 | --exec | --exe | --ex)
1136 ac_prev=exec_prefix ;;
1137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1139 | --exec=* | --exe=* | --ex=*)
1140 exec_prefix=$ac_optarg ;;
1141
1142 -gas | --gas | --ga | --g)
1143 # Obsolete; use --with-gas.
1144 with_gas=yes ;;
1145
1146 -help | --help | --hel | --he | -h)
1147 ac_init_help=long ;;
1148 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1149 ac_init_help=recursive ;;
1150 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1151 ac_init_help=short ;;
1152
1153 -host | --host | --hos | --ho)
1154 ac_prev=host_alias ;;
1155 -host=* | --host=* | --hos=* | --ho=*)
1156 host_alias=$ac_optarg ;;
1157
1158 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1159 ac_prev=htmldir ;;
1160 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1161 | --ht=*)
1162 htmldir=$ac_optarg ;;
1163
1164 -includedir | --includedir | --includedi | --included | --include \
1165 | --includ | --inclu | --incl | --inc)
1166 ac_prev=includedir ;;
1167 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1168 | --includ=* | --inclu=* | --incl=* | --inc=*)
1169 includedir=$ac_optarg ;;
1170
1171 -infodir | --infodir | --infodi | --infod | --info | --inf)
1172 ac_prev=infodir ;;
1173 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1174 infodir=$ac_optarg ;;
1175
1176 -libdir | --libdir | --libdi | --libd)
1177 ac_prev=libdir ;;
1178 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1179 libdir=$ac_optarg ;;
1180
1181 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1182 | --libexe | --libex | --libe)
1183 ac_prev=libexecdir ;;
1184 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1185 | --libexe=* | --libex=* | --libe=*)
1186 libexecdir=$ac_optarg ;;
1187
1188 -localedir | --localedir | --localedi | --localed | --locale)
1189 ac_prev=localedir ;;
1190 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1191 localedir=$ac_optarg ;;
1192
1193 -localstatedir | --localstatedir | --localstatedi | --localstated \
1194 | --localstate | --localstat | --localsta | --localst | --locals)
1195 ac_prev=localstatedir ;;
1196 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1197 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1198 localstatedir=$ac_optarg ;;
1199
1200 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1201 ac_prev=mandir ;;
1202 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1203 mandir=$ac_optarg ;;
1204
1205 -nfp | --nfp | --nf)
1206 # Obsolete; use --without-fp.
1207 with_fp=no ;;
1208
1209 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1210 | --no-cr | --no-c | -n)
1211 no_create=yes ;;
1212
1213 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1214 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1215 no_recursion=yes ;;
1216
1217 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1218 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1219 | --oldin | --oldi | --old | --ol | --o)
1220 ac_prev=oldincludedir ;;
1221 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1222 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1223 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1224 oldincludedir=$ac_optarg ;;
1225
1226 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1227 ac_prev=prefix ;;
1228 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1229 prefix=$ac_optarg ;;
1230
1231 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1232 | --program-pre | --program-pr | --program-p)
1233 ac_prev=program_prefix ;;
1234 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1235 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1236 program_prefix=$ac_optarg ;;
1237
1238 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1239 | --program-suf | --program-su | --program-s)
1240 ac_prev=program_suffix ;;
1241 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1242 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1243 program_suffix=$ac_optarg ;;
1244
1245 -program-transform-name | --program-transform-name \
1246 | --program-transform-nam | --program-transform-na \
1247 | --program-transform-n | --program-transform- \
1248 | --program-transform | --program-transfor \
1249 | --program-transfo | --program-transf \
1250 | --program-trans | --program-tran \
1251 | --progr-tra | --program-tr | --program-t)
1252 ac_prev=program_transform_name ;;
1253 -program-transform-name=* | --program-transform-name=* \
1254 | --program-transform-nam=* | --program-transform-na=* \
1255 | --program-transform-n=* | --program-transform-=* \
1256 | --program-transform=* | --program-transfor=* \
1257 | --program-transfo=* | --program-transf=* \
1258 | --program-trans=* | --program-tran=* \
1259 | --progr-tra=* | --program-tr=* | --program-t=*)
1260 program_transform_name=$ac_optarg ;;
1261
1262 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1263 ac_prev=pdfdir ;;
1264 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1265 pdfdir=$ac_optarg ;;
1266
1267 -psdir | --psdir | --psdi | --psd | --ps)
1268 ac_prev=psdir ;;
1269 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1270 psdir=$ac_optarg ;;
1271
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 silent=yes ;;
1275
1276 -runstatedir | --runstatedir | --runstatedi | --runstated \
1277 | --runstate | --runstat | --runsta | --runst | --runs \
1278 | --run | --ru | --r)
1279 ac_prev=runstatedir ;;
1280 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1281 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1282 | --run=* | --ru=* | --r=*)
1283 runstatedir=$ac_optarg ;;
1284
1285 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1286 ac_prev=sbindir ;;
1287 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1288 | --sbi=* | --sb=*)
1289 sbindir=$ac_optarg ;;
1290
1291 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1292 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1293 | --sharedst | --shareds | --shared | --share | --shar \
1294 | --sha | --sh)
1295 ac_prev=sharedstatedir ;;
1296 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1297 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1298 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1299 | --sha=* | --sh=*)
1300 sharedstatedir=$ac_optarg ;;
1301
1302 -site | --site | --sit)
1303 ac_prev=site ;;
1304 -site=* | --site=* | --sit=*)
1305 site=$ac_optarg ;;
1306
1307 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1308 ac_prev=srcdir ;;
1309 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1310 srcdir=$ac_optarg ;;
1311
1312 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1313 | --syscon | --sysco | --sysc | --sys | --sy)
1314 ac_prev=sysconfdir ;;
1315 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1316 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1317 sysconfdir=$ac_optarg ;;
1318
1319 -target | --target | --targe | --targ | --tar | --ta | --t)
1320 ac_prev=target_alias ;;
1321 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1322 target_alias=$ac_optarg ;;
1323
1324 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1325 verbose=yes ;;
1326
1327 -version | --version | --versio | --versi | --vers | -V)
1328 ac_init_version=: ;;
1329
1330 -with-* | --with-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 as_fn_error $? "invalid package name: \`$ac_useropt'"
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1338 *"
1339 "with_$ac_useropt"
1340 "*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval with_$ac_useropt=\$ac_optarg ;;
1345
1346 -without-* | --without-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error $? "invalid package name: \`$ac_useropt'"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1354 *"
1355 "with_$ac_useropt"
1356 "*) ;;
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1359 esac
1360 eval with_$ac_useropt=no ;;
1361
1362 --x)
1363 # Obsolete; use --with-x.
1364 with_x=yes ;;
1365
1366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1367 | --x-incl | --x-inc | --x-in | --x-i)
1368 ac_prev=x_includes ;;
1369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1371 x_includes=$ac_optarg ;;
1372
1373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1375 ac_prev=x_libraries ;;
1376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1378 x_libraries=$ac_optarg ;;
1379
1380 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1381 Try \`$0 --help' for more information"
1382 ;;
1383
1384 *=*)
1385 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386 # Reject names that are not valid shell variable names.
1387 case $ac_envvar in #(
1388 '' | [0-9]* | *[!_$as_cr_alnum]* )
1389 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1390 esac
1391 eval $ac_envvar=\$ac_optarg
1392 export $ac_envvar ;;
1393
1394 *)
1395 # FIXME: should be removed in autoconf 3.0.
1396 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1397 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1398 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1399 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1400 ;;
1401
1402 esac
1403 done
1404
1405 if test -n "$ac_prev"; then
1406 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1407 as_fn_error $? "missing argument to $ac_option"
1408 fi
1409
1410 if test -n "$ac_unrecognized_opts"; then
1411 case $enable_option_checking in
1412 no) ;;
1413 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1414 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415 esac
1416 fi
1417
1418 # Check all directory arguments for consistency.
1419 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420 datadir sysconfdir sharedstatedir localstatedir includedir \
1421 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422 libdir localedir mandir runstatedir
1423 do
1424 eval ac_val=\$$ac_var
1425 # Remove trailing slashes.
1426 case $ac_val in
1427 */ )
1428 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429 eval $ac_var=\$ac_val;;
1430 esac
1431 # Be sure to have absolute directory names.
1432 case $ac_val in
1433 [\\/$]* | ?:[\\/]* ) continue;;
1434 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435 esac
1436 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1437 done
1438
1439 # There might be people who depend on the old broken behavior: `$host'
1440 # used to hold the argument of --host etc.
1441 # FIXME: To remove some day.
1442 build=$build_alias
1443 host=$host_alias
1444 target=$target_alias
1445
1446 # FIXME: To remove some day.
1447 if test "x$host_alias" != x; then
1448 if test "x$build_alias" = x; then
1449 cross_compiling=maybe
1450 elif test "x$build_alias" != "x$host_alias"; then
1451 cross_compiling=yes
1452 fi
1453 fi
1454
1455 ac_tool_prefix=
1456 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457
1458 test "$silent" = yes && exec 6>/dev/null
1459
1460
1461 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462 ac_ls_di=`ls -di .` &&
1463 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464 as_fn_error $? "working directory cannot be determined"
1465 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 as_fn_error $? "pwd does not report name of working directory"
1467
1468
1469 # Find the source files, if location was not specified.
1470 if test -z "$srcdir"; then
1471 ac_srcdir_defaulted=yes
1472 # Try the directory containing this script, then the parent directory.
1473 ac_confdir=`$as_dirname -- "$as_myself" ||
1474 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475 X"$as_myself" : 'X\(//\)[^/]' \| \
1476 X"$as_myself" : 'X\(//\)$' \| \
1477 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478 printf "%s\n" X"$as_myself" |
1479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1480 s//\1/
1481 q
1482 }
1483 /^X\(\/\/\)[^/].*/{
1484 s//\1/
1485 q
1486 }
1487 /^X\(\/\/\)$/{
1488 s//\1/
1489 q
1490 }
1491 /^X\(\/\).*/{
1492 s//\1/
1493 q
1494 }
1495 s/.*/./; q'`
1496 srcdir=$ac_confdir
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 srcdir=..
1499 fi
1500 else
1501 ac_srcdir_defaulted=no
1502 fi
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1504 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1505 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1506 fi
1507 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508 ac_abs_confdir=`(
1509 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1510 pwd)`
1511 # When building in place, set srcdir=.
1512 if test "$ac_abs_confdir" = "$ac_pwd"; then
1513 srcdir=.
1514 fi
1515 # Remove unnecessary trailing slashes from srcdir.
1516 # Double slashes in file names in object file debugging info
1517 # mess up M-x gdb in Emacs.
1518 case $srcdir in
1519 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520 esac
1521 for ac_var in $ac_precious_vars; do
1522 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1523 eval ac_env_${ac_var}_value=\$${ac_var}
1524 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1525 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1526 done
1527
1528 #
1529 # Report the --help message.
1530 #
1531 if test "$ac_init_help" = "long"; then
1532 # Omit some internal or obsolete options to make the list less imposing.
1533 # This message is too long to be a string in the A/UX 3.1 sh.
1534 cat <<_ACEOF
1535 \`configure' configures libgcrypt 1.12.2 to adapt to many kinds of systems.
1536
1537 Usage: $0 [OPTION]... [VAR=VALUE]...
1538
1539 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540 VAR=VALUE. See below for descriptions of some of the useful variables.
1541
1542 Defaults for the options are specified in brackets.
1543
1544 Configuration:
1545 -h, --help display this help and exit
1546 --help=short display options specific to this package
1547 --help=recursive display the short help of all the included packages
1548 -V, --version display version information and exit
1549 -q, --quiet, --silent do not print \`checking ...' messages
1550 --cache-file=FILE cache test results in FILE [disabled]
1551 -C, --config-cache alias for \`--cache-file=config.cache'
1552 -n, --no-create do not create output files
1553 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1554
1555 Installation directories:
1556 --prefix=PREFIX install architecture-independent files in PREFIX
1557 [$ac_default_prefix]
1558 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1559 [PREFIX]
1560
1561 By default, \`make install' will install all the files in
1562 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1563 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564 for instance \`--prefix=\$HOME'.
1565
1566 For better control, use the options below.
1567
1568 Fine tuning of the installation directories:
1569 --bindir=DIR user executables [EPREFIX/bin]
1570 --sbindir=DIR system admin executables [EPREFIX/sbin]
1571 --libexecdir=DIR program executables [EPREFIX/libexec]
1572 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1573 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1574 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1575 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1576 --libdir=DIR object code libraries [EPREFIX/lib]
1577 --includedir=DIR C header files [PREFIX/include]
1578 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1581 --infodir=DIR info documentation [DATAROOTDIR/info]
1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1583 --mandir=DIR man documentation [DATAROOTDIR/man]
1584 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcrypt]
1585 --htmldir=DIR html documentation [DOCDIR]
1586 --dvidir=DIR dvi documentation [DOCDIR]
1587 --pdfdir=DIR pdf documentation [DOCDIR]
1588 --psdir=DIR ps documentation [DOCDIR]
1589 _ACEOF
1590
1591 cat <<\_ACEOF
1592
1593 Program names:
1594 --program-prefix=PREFIX prepend PREFIX to installed program names
1595 --program-suffix=SUFFIX append SUFFIX to installed program names
1596 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1597
1598 System types:
1599 --build=BUILD configure for building on BUILD [guessed]
1600 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1601 _ACEOF
1602 fi
1603
1604 if test -n "$ac_init_help"; then
1605 case $ac_init_help in
1606 short | recursive ) echo "Configuration of libgcrypt 1.12.2:";;
1607 esac
1608 cat <<\_ACEOF
1609
1610 Optional Features:
1611 --disable-option-checking ignore unrecognized --enable/--with options
1612 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1613 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1614 --enable-silent-rules less verbose build output (undo: "make V=1")
1615 --disable-silent-rules verbose build output (undo: "make V=0")
1616 --enable-maintainer-mode
1617 enable make rules and dependencies not useful (and
1618 sometimes confusing) to the casual installer
1619 --enable-dependency-tracking
1620 do not reject slow dependency extractors
1621 --disable-dependency-tracking
1622 speeds up one-time build
1623 --enable-static[=PKGS] build static libraries [default=no]
1624 --enable-shared[=PKGS] build shared libraries [default=yes]
1625 --enable-fast-install[=PKGS]
1626 optimize for fast installation [default=yes]
1627 --disable-libtool-lock avoid locking (might break parallel builds)
1628 --disable-endian-check disable the endian check and trust the OS provided
1629 macros
1630 --enable-ciphers=ciphers
1631 select the symmetric ciphers to include
1632 --enable-pubkey-ciphers=ciphers
1633 select the public-key ciphers to include
1634 --enable-digests=digests
1635 select the message digests to include
1636 --enable-kfds=kdfs select the KDFs to include
1637 --enable-random=name select which random number generator to use
1638 --disable-dev-random disable the use of dev random
1639 --disable-asm Disable MPI and cipher assembler modules
1640 --enable-large-data-tests
1641 Enable the real long ruinning large data tests
1642 --enable-force-soft-hwfeatures
1643 Enable forcing 'soft' HW feature bits on
1644 --enable-hmac-binary-check
1645 Enable library integrity check
1646 --disable-jent-support Disable support for the Jitter entropy collector
1647 --disable-padlock-support
1648 Disable support for the PadLock Engine of VIA
1649 processors
1650 --disable-aesni-support Disable support for the Intel AES-NI instructions
1651 --disable-shaext-support
1652 Disable support for the Intel SHAEXT instructions
1653 --disable-pclmul-support
1654 Disable support for the Intel PCLMUL instructions
1655 --disable-sse41-support Disable support for the Intel SSE4.1 instructions
1656 --disable-drng-support Disable support for the Intel DRNG (RDRAND
1657 instruction)
1658 --disable-avx-support Disable support for the Intel AVX instructions
1659 --disable-avx2-support Disable support for the Intel AVX2 instructions
1660 --disable-avx512-support
1661 Disable support for the Intel AVX512 instructions
1662 --disable-gfni-support Disable support for the Intel GFNI instructions
1663 --disable-neon-support Disable support for the ARM NEON instructions
1664 --disable-arm-crypto-support
1665 Disable support for the ARMv8 Crypto Extension
1666 instructions
1667 --disable-sve-support Disable support for the ARMv8 SVE instructions
1668 --disable-sve2-support Disable support for the ARMv9 SVE2 instructions
1669 --disable-ppc-crypto-support
1670 Disable support for the PPC crypto instructions
1671 introduced in POWER 8 (PowerISA 2.07)
1672 --disable-O-flag-munging
1673 Disable modification of the cc -O flag
1674 --disable-instrumentation-munging
1675 Disable modification of the cc instrumentation
1676 options
1677 --disable-amd64-as-feature-detection
1678 Disable the auto-detection of AMD64 as(1) features
1679 --enable-ld-version-script
1680 enable/disable use of linker version script.
1681 (default is system dependent)
1682 --enable-mpi-path=EXTRA_PATH
1683 prepend EXTRA_PATH to list of CPU specific
1684 optimizations
1685 --disable-optimization disable compiler optimization
1686 --disable-noexecstack disable non executable stack support
1687 --disable-doc do not build the documentation
1688 --enable-build-timestamp
1689 set an explicit build timestamp for reproducibility.
1690 (default is the current time in ISO-8601 format)
1691
1692 Optional Packages:
1693 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1694 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1695 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1696 both]
1697 --with-aix-soname=aix|svr4|both
1698 shared library versioning (aka "SONAME") variant to
1699 provide on AIX, [default=aix].
1700 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1701 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1702 compiler's sysroot if not specified).
1703 --with-egd-socket=NAME Use NAME for the EGD socket)
1704 --with-capabilities Use linux capabilities [default=no]
1705 --with-fips-module-version=VERSION
1706 Specify the FIPS module version for the build
1707 --with-libtool-modification=apply|never|try
1708 how to handle libtool modification (default=never)
1709 --with-libgpg-error-prefix=PFX
1710 prefix where GPG Error is installed (optional)
1711
1712
1713 Some influential environment variables:
1714 CC C compiler command
1715 CFLAGS C compiler flags
1716 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1717 nonstandard directory <lib dir>
1718 LIBS libraries to pass to the linker, e.g. -l<library>
1719 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1720 you have headers in a nonstandard directory <include dir>
1721 SYSROOT locate config scripts also below that directory
1722 CPP C preprocessor
1723 CCAS assembler compiler command (defaults to CC)
1724 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1725 LT_SYS_LIBRARY_PATH
1726 User-defined run-time library search path.
1727
1728 Use these variables to override the choices made by `configure' or to help
1729 it to find libraries and programs with nonstandard names/locations.
1730
1731 Report bugs to <https://bugs.gnupg.org>.
1732 _ACEOF
1733 ac_status=$?
1734 fi
1735
1736 if test "$ac_init_help" = "recursive"; then
1737 # If there are subdirs, report their specific --help.
1738 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1739 test -d "$ac_dir" ||
1740 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1741 continue
1742 ac_builddir=.
1743
1744 case "$ac_dir" in
1745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *)
1747 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1748 # A ".." for each directory in $ac_dir_suffix.
1749 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1750 case $ac_top_builddir_sub in
1751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1753 esac ;;
1754 esac
1755 ac_abs_top_builddir=$ac_pwd
1756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1757 # for backward compatibility:
1758 ac_top_builddir=$ac_top_build_prefix
1759
1760 case $srcdir in
1761 .) # We are building in place.
1762 ac_srcdir=.
1763 ac_top_srcdir=$ac_top_builddir_sub
1764 ac_abs_top_srcdir=$ac_pwd ;;
1765 [\\/]* | ?:[\\/]* ) # Absolute name.
1766 ac_srcdir=$srcdir$ac_dir_suffix;
1767 ac_top_srcdir=$srcdir
1768 ac_abs_top_srcdir=$srcdir ;;
1769 *) # Relative name.
1770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771 ac_top_srcdir=$ac_top_build_prefix$srcdir
1772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1773 esac
1774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1775
1776 cd "$ac_dir" || { ac_status=$?; continue; }
1777 # Check for configure.gnu first; this name is used for a wrapper for
1778 # Metaconfig's "Configure" on case-insensitive file systems.
1779 if test -f "$ac_srcdir/configure.gnu"; then
1780 echo &&
1781 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1782 elif test -f "$ac_srcdir/configure"; then
1783 echo &&
1784 $SHELL "$ac_srcdir/configure" --help=recursive
1785 else
1786 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1787 fi || ac_status=$?
1788 cd "$ac_pwd" || { ac_status=$?; break; }
1789 done
1790 fi
1791
1792 test -n "$ac_init_help" && exit $ac_status
1793 if $ac_init_version; then
1794 cat <<\_ACEOF
1795 libgcrypt configure 1.12.2
1796 generated by GNU Autoconf 2.71
1797
1798 Copyright (C) 2021 Free Software Foundation, Inc.
1799 This configure script is free software; the Free Software Foundation
1800 gives unlimited permission to copy, distribute and modify it.
1801 _ACEOF
1802 exit
1803 fi
1804
1805 ## ------------------------ ##
1806 ## Autoconf initialization. ##
1807 ## ------------------------ ##
1808
1809 # ac_fn_c_try_compile LINENO
1810 # --------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_compile ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext conftest.beam
1816 if { { ac_try="$ac_compile"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 printf "%s\n" "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext
1835 then :
1836 ac_retval=0
1837 else $as_nop
1838 printf "%s\n" "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1845
1846 } # ac_fn_c_try_compile
1847
1848 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1849 # -------------------------------------------------------
1850 # Tests whether HEADER exists and can be compiled using the include files in
1851 # INCLUDES, setting the cache variable VAR accordingly.
1852 ac_fn_c_check_header_compile ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 printf %s "checking for $2... " >&6; }
1857 if eval test \${$3+y}
1858 then :
1859 printf %s "(cached) " >&6
1860 else $as_nop
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 $4
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"
1867 then :
1868 eval "$3=yes"
1869 else $as_nop
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 printf "%s\n" "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_header_compile
1880
1881 # ac_fn_c_try_cpp LINENO
1882 # ----------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_c_try_cpp ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 printf "%s\n" "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } > conftest.i && {
1903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1905 }
1906 then :
1907 ac_retval=0
1908 else $as_nop
1909 printf "%s\n" "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 ac_retval=1
1913 fi
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917 } # ac_fn_c_try_cpp
1918
1919 # ac_fn_c_try_link LINENO
1920 # -----------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_c_try_link ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1926 if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 printf "%s\n" "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>conftest.err
1934 ac_status=$?
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1939 fi
1940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && {
1942 test -z "$ac_c_werror_flag" ||
1943 test ! -s conftest.err
1944 } && test -s conftest$ac_exeext && {
1945 test "$cross_compiling" = yes ||
1946 test -x conftest$ac_exeext
1947 }
1948 then :
1949 ac_retval=0
1950 else $as_nop
1951 printf "%s\n" "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=1
1955 fi
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1963
1964 } # ac_fn_c_try_link
1965
1966 # ac_fn_c_check_func LINENO FUNC VAR
1967 # ----------------------------------
1968 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1969 ac_fn_c_check_func ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 printf %s "checking for $2... " >&6; }
1974 if eval test \${$3+y}
1975 then :
1976 printf %s "(cached) " >&6
1977 else $as_nop
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1982 #define $2 innocuous_$2
1983
1984 /* System header to define __stub macros and hopefully few prototypes,
1985 which can conflict with char $2 (); below. */
1986
1987 #include <limits.h>
1988 #undef $2
1989
1990 /* Override any GCC internal prototype to avoid an error.
1991 Use char because int might match the return type of a GCC
1992 builtin and then its argument prototype would still apply. */
1993 #ifdef __cplusplus
1994 extern "C"
1995 #endif
1996 char $2 ();
1997 /* The GNU C library defines this for functions which it implements
1998 to always fail with ENOSYS. Some functions are actually named
1999 something starting with __ and the normal name is an alias. */
2000 #if defined __stub_$2 || defined __stub___$2
2001 choke me
2002 #endif
2003
2004 int
2005 main (void)
2006 {
2007 return $2 ();
2008 ;
2009 return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_link "$LINENO"
2013 then :
2014 eval "$3=yes"
2015 else $as_nop
2016 eval "$3=no"
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2019 conftest$ac_exeext conftest.$ac_ext
2020 fi
2021 eval ac_res=\$$3
2022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 printf "%s\n" "$ac_res" >&6; }
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026 } # ac_fn_c_check_func
2027
2028 # ac_fn_c_try_run LINENO
2029 # ----------------------
2030 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2031 # executables *can* be run.
2032 ac_fn_c_try_run ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_link"
2036 case "(($ac_try" in
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 printf "%s\n" "$ac_try_echo"; } >&5
2042 (eval "$ac_link") 2>&5
2043 ac_status=$?
2044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2046 { { case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 printf "%s\n" "$ac_try_echo"; } >&5
2052 (eval "$ac_try") 2>&5
2053 ac_status=$?
2054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; }; }
2056 then :
2057 ac_retval=0
2058 else $as_nop
2059 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2060 printf "%s\n" "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 ac_retval=$ac_status
2064 fi
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 as_fn_set_status $ac_retval
2068
2069 } # ac_fn_c_try_run
2070
2071 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072 # --------------------------------------------
2073 # Tries to find the compile-time value of EXPR in a program that includes
2074 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2075 # computed
2076 ac_fn_c_compute_int ()
2077 {
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if test "$cross_compiling" = yes; then
2080 # Depending upon the size, compute the lo and hi bounds.
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 $4
2084 int
2085 main (void)
2086 {
2087 static int test_array [1 - 2 * !(($2) >= 0)];
2088 test_array [0] = 0;
2089 return test_array [0];
2090
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"
2096 then :
2097 ac_lo=0 ac_mid=0
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main (void)
2104 {
2105 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 test_array [0] = 0;
2107 return test_array [0];
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"
2114 then :
2115 ac_hi=$ac_mid; break
2116 else $as_nop
2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118 if test $ac_lo -le $ac_mid; then
2119 ac_lo= ac_hi=
2120 break
2121 fi
2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2125 done
2126 else $as_nop
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 int
2131 main (void)
2132 {
2133 static int test_array [1 - 2 * !(($2) < 0)];
2134 test_array [0] = 0;
2135 return test_array [0];
2136
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"
2142 then :
2143 ac_hi=-1 ac_mid=-1
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $4
2148 int
2149 main (void)
2150 {
2151 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2152 test_array [0] = 0;
2153 return test_array [0];
2154
2155 ;
2156 return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"
2160 then :
2161 ac_lo=$ac_mid; break
2162 else $as_nop
2163 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2164 if test $ac_mid -le $ac_hi; then
2165 ac_lo= ac_hi=
2166 break
2167 fi
2168 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2171 done
2172 else $as_nop
2173 ac_lo= ac_hi=
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2178 # Binary search between lo and hi bounds.
2179 while test "x$ac_lo" != "x$ac_hi"; do
2180 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 $4
2184 int
2185 main (void)
2186 {
2187 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188 test_array [0] = 0;
2189 return test_array [0];
2190
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"
2196 then :
2197 ac_hi=$ac_mid
2198 else $as_nop
2199 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 done
2203 case $ac_lo in #((
2204 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2205 '') ac_retval=1 ;;
2206 esac
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 $4
2211 static long int longval (void) { return $2; }
2212 static unsigned long int ulongval (void) { return $2; }
2213 #include <stdio.h>
2214 #include <stdlib.h>
2215 int
2216 main (void)
2217 {
2218
2219 FILE *f = fopen ("conftest.val", "w");
2220 if (! f)
2221 return 1;
2222 if (($2) < 0)
2223 {
2224 long int i = longval ();
2225 if (i != ($2))
2226 return 1;
2227 fprintf (f, "%ld", i);
2228 }
2229 else
2230 {
2231 unsigned long int i = ulongval ();
2232 if (i != ($2))
2233 return 1;
2234 fprintf (f, "%lu", i);
2235 }
2236 /* Do not output a trailing newline, as this causes \r\n confusion
2237 on some platforms. */
2238 return ferror (f) || fclose (f) != 0;
2239
2240 ;
2241 return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_run "$LINENO"
2245 then :
2246 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2247 else $as_nop
2248 ac_retval=1
2249 fi
2250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2251 conftest.$ac_objext conftest.beam conftest.$ac_ext
2252 rm -f conftest.val
2253
2254 fi
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 as_fn_set_status $ac_retval
2257
2258 } # ac_fn_c_compute_int
2259
2260 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2261 # -------------------------------------------
2262 # Tests whether TYPE exists after having included INCLUDES, setting cache
2263 # variable VAR accordingly.
2264 ac_fn_c_check_type ()
2265 {
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268 printf %s "checking for $2... " >&6; }
2269 if eval test \${$3+y}
2270 then :
2271 printf %s "(cached) " >&6
2272 else $as_nop
2273 eval "$3=no"
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2276 $4
2277 int
2278 main (void)
2279 {
2280 if (sizeof ($2))
2281 return 0;
2282 ;
2283 return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"
2287 then :
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2290 $4
2291 int
2292 main (void)
2293 {
2294 if (sizeof (($2)))
2295 return 0;
2296 ;
2297 return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"
2301 then :
2302
2303 else $as_nop
2304 eval "$3=yes"
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2309 fi
2310 eval ac_res=\$$3
2311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 printf "%s\n" "$ac_res" >&6; }
2313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314
2315 } # ac_fn_c_check_type
2316 ac_configure_args_raw=
2317 for ac_arg
2318 do
2319 case $ac_arg in
2320 *\'*)
2321 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2322 esac
2323 as_fn_append ac_configure_args_raw " '$ac_arg'"
2324 done
2325
2326 case $ac_configure_args_raw in
2327 *$as_nl*)
2328 ac_safe_unquote= ;;
2329 *)
2330 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2331 ac_unsafe_a="$ac_unsafe_z#~"
2332 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2333 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2334 esac
2335
2336 cat >config.log <<_ACEOF
2337 This file contains any messages produced by compilers while
2338 running configure, to aid debugging if configure makes a mistake.
2339
2340 It was created by libgcrypt $as_me 1.12.2, which was
2341 generated by GNU Autoconf 2.71. Invocation command line was
2342
2343 $ $0$ac_configure_args_raw
2344
2345 _ACEOF
2346 exec 5>>config.log
2347 {
2348 cat <<_ASUNAME
2349 ## --------- ##
2350 ## Platform. ##
2351 ## --------- ##
2352
2353 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2354 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2355 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2356 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2357 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2358
2359 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2360 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2361
2362 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2363 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2364 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2365 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2366 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2367 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2368 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2369
2370 _ASUNAME
2371
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 case $as_dir in #(((
2377 '') as_dir=./ ;;
2378 */) ;;
2379 *) as_dir=$as_dir/ ;;
2380 esac
2381 printf "%s\n" "PATH: $as_dir"
2382 done
2383 IFS=$as_save_IFS
2384
2385 } >&5
2386
2387 cat >&5 <<_ACEOF
2388
2389
2390 ## ----------- ##
2391 ## Core tests. ##
2392 ## ----------- ##
2393
2394 _ACEOF
2395
2396
2397 # Keep a trace of the command line.
2398 # Strip out --no-create and --no-recursion so they do not pile up.
2399 # Strip out --silent because we don't want to record it for future runs.
2400 # Also quote any args containing shell meta-characters.
2401 # Make two passes to allow for proper duplicate-argument suppression.
2402 ac_configure_args=
2403 ac_configure_args0=
2404 ac_configure_args1=
2405 ac_must_keep_next=false
2406 for ac_pass in 1 2
2407 do
2408 for ac_arg
2409 do
2410 case $ac_arg in
2411 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2413 | -silent | --silent | --silen | --sile | --sil)
2414 continue ;;
2415 *\'*)
2416 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 esac
2418 case $ac_pass in
2419 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2420 2)
2421 as_fn_append ac_configure_args1 " '$ac_arg'"
2422 if test $ac_must_keep_next = true; then
2423 ac_must_keep_next=false # Got value, back to normal.
2424 else
2425 case $ac_arg in
2426 *=* | --config-cache | -C | -disable-* | --disable-* \
2427 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2428 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2429 | -with-* | --with-* | -without-* | --without-* | --x)
2430 case "$ac_configure_args0 " in
2431 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2432 esac
2433 ;;
2434 -* ) ac_must_keep_next=true ;;
2435 esac
2436 fi
2437 as_fn_append ac_configure_args " '$ac_arg'"
2438 ;;
2439 esac
2440 done
2441 done
2442 { ac_configure_args0=; unset ac_configure_args0;}
2443 { ac_configure_args1=; unset ac_configure_args1;}
2444
2445 # When interrupted or exit'd, cleanup temporary files, and complete
2446 # config.log. We remove comments because anyway the quotes in there
2447 # would cause problems or look ugly.
2448 # WARNING: Use '\'' to represent an apostrophe within the trap.
2449 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2450 trap 'exit_status=$?
2451 # Sanitize IFS.
2452 IFS=" "" $as_nl"
2453 # Save into config.log some information that might help in debugging.
2454 {
2455 echo
2456
2457 printf "%s\n" "## ---------------- ##
2458 ## Cache variables. ##
2459 ## ---------------- ##"
2460 echo
2461 # The following way of writing the cache mishandles newlines in values,
2462 (
2463 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2464 eval ac_val=\$$ac_var
2465 case $ac_val in #(
2466 *${as_nl}*)
2467 case $ac_var in #(
2468 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2469 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2470 esac
2471 case $ac_var in #(
2472 _ | IFS | as_nl) ;; #(
2473 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2474 *) { eval $ac_var=; unset $ac_var;} ;;
2475 esac ;;
2476 esac
2477 done
2478 (set) 2>&1 |
2479 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2480 *${as_nl}ac_space=\ *)
2481 sed -n \
2482 "s/'\''/'\''\\\\'\'''\''/g;
2483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2484 ;; #(
2485 *)
2486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2487 ;;
2488 esac |
2489 sort
2490 )
2491 echo
2492
2493 printf "%s\n" "## ----------------- ##
2494 ## Output variables. ##
2495 ## ----------------- ##"
2496 echo
2497 for ac_var in $ac_subst_vars
2498 do
2499 eval ac_val=\$$ac_var
2500 case $ac_val in
2501 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2502 esac
2503 printf "%s\n" "$ac_var='\''$ac_val'\''"
2504 done | sort
2505 echo
2506
2507 if test -n "$ac_subst_files"; then
2508 printf "%s\n" "## ------------------- ##
2509 ## File substitutions. ##
2510 ## ------------------- ##"
2511 echo
2512 for ac_var in $ac_subst_files
2513 do
2514 eval ac_val=\$$ac_var
2515 case $ac_val in
2516 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517 esac
2518 printf "%s\n" "$ac_var='\''$ac_val'\''"
2519 done | sort
2520 echo
2521 fi
2522
2523 if test -s confdefs.h; then
2524 printf "%s\n" "## ----------- ##
2525 ## confdefs.h. ##
2526 ## ----------- ##"
2527 echo
2528 cat confdefs.h
2529 echo
2530 fi
2531 test "$ac_signal" != 0 &&
2532 printf "%s\n" "$as_me: caught signal $ac_signal"
2533 printf "%s\n" "$as_me: exit $exit_status"
2534 } >&5
2535 rm -f core *.core core.conftest.* &&
2536 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2537 exit $exit_status
2538 ' 0
2539 for ac_signal in 1 2 13 15; do
2540 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2541 done
2542 ac_signal=0
2543
2544 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2545 rm -f -r conftest* confdefs.h
2546
2547 printf "%s\n" "/* confdefs.h */" > confdefs.h
2548
2549 # Predefined preprocessor variables.
2550
2551 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2552
2553 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2554
2555 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2556
2557 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2558
2559 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2560
2561 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2562
2563
2564 # Let the site file select an alternate cache file if it wants to.
2565 # Prefer an explicitly selected file to automatically selected ones.
2566 if test -n "$CONFIG_SITE"; then
2567 ac_site_files="$CONFIG_SITE"
2568 elif test "x$prefix" != xNONE; then
2569 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2570 else
2571 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2572 fi
2573
2574 for ac_site_file in $ac_site_files
2575 do
2576 case $ac_site_file in #(
2577 */*) :
2578 ;; #(
2579 *) :
2580 ac_site_file=./$ac_site_file ;;
2581 esac
2582 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2584 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2585 sed 's/^/| /' "$ac_site_file" >&5
2586 . "$ac_site_file" \
2587 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2589 as_fn_error $? "failed to load site script $ac_site_file
2590 See \`config.log' for more details" "$LINENO" 5; }
2591 fi
2592 done
2593
2594 if test -r "$cache_file"; then
2595 # Some versions of bash will fail to source /dev/null (special files
2596 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2597 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2599 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2600 case $cache_file in
2601 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2602 *) . "./$cache_file";;
2603 esac
2604 fi
2605 else
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2607 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2608 >$cache_file
2609 fi
2610
2611 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2612 # Test code for whether the C compiler supports C89 (global declarations)
2613 ac_c_conftest_c89_globals='
2614 /* Does the compiler advertise C89 conformance?
2615 Do not test the value of __STDC__, because some compilers set it to 0
2616 while being otherwise adequately conformant. */
2617 #if !defined __STDC__
2618 # error "Compiler does not advertise C89 conformance"
2619 #endif
2620
2621 #include <stddef.h>
2622 #include <stdarg.h>
2623 struct stat;
2624 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2625 struct buf { int x; };
2626 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2627 static char *e (p, i)
2628 char **p;
2629 int i;
2630 {
2631 return p[i];
2632 }
2633 static char *f (char * (*g) (char **, int), char **p, ...)
2634 {
2635 char *s;
2636 va_list v;
2637 va_start (v,p);
2638 s = g (p, va_arg (v,int));
2639 va_end (v);
2640 return s;
2641 }
2642
2643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2644 function prototypes and stuff, but not \xHH hex character constants.
2645 These do not provoke an error unfortunately, instead are silently treated
2646 as an "x". The following induces an error, until -std is added to get
2647 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2648 array size at least. It is necessary to write \x00 == 0 to get something
2649 that is true only with -std. */
2650 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2651
2652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2653 inside strings and character constants. */
2654 #define FOO(x) '\''x'\''
2655 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2656
2657 int test (int i, double x);
2658 struct s1 {int (*f) (int a);};
2659 struct s2 {int (*f) (double a);};
2660 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2661 int, int);'
2662
2663 # Test code for whether the C compiler supports C89 (body of main).
2664 ac_c_conftest_c89_main='
2665 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2666 '
2667
2668 # Test code for whether the C compiler supports C99 (global declarations)
2669 ac_c_conftest_c99_globals='
2670 // Does the compiler advertise C99 conformance?
2671 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2672 # error "Compiler does not advertise C99 conformance"
2673 #endif
2674
2675 #include <stdbool.h>
2676 extern int puts (const char *);
2677 extern int printf (const char *, ...);
2678 extern int dprintf (int, const char *, ...);
2679 extern void *malloc (size_t);
2680
2681 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2682 // dprintf is used instead of fprintf to avoid needing to declare
2683 // FILE and stderr.
2684 #define debug(...) dprintf (2, __VA_ARGS__)
2685 #define showlist(...) puts (#__VA_ARGS__)
2686 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2687 static void
2688 test_varargs_macros (void)
2689 {
2690 int x = 1234;
2691 int y = 5678;
2692 debug ("Flag");
2693 debug ("X = %d\n", x);
2694 showlist (The first, second, and third items.);
2695 report (x>y, "x is %d but y is %d", x, y);
2696 }
2697
2698 // Check long long types.
2699 #define BIG64 18446744073709551615ull
2700 #define BIG32 4294967295ul
2701 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2702 #if !BIG_OK
2703 #error "your preprocessor is broken"
2704 #endif
2705 #if BIG_OK
2706 #else
2707 #error "your preprocessor is broken"
2708 #endif
2709 static long long int bignum = -9223372036854775807LL;
2710 static unsigned long long int ubignum = BIG64;
2711
2712 struct incomplete_array
2713 {
2714 int datasize;
2715 double data[];
2716 };
2717
2718 struct named_init {
2719 int number;
2720 const wchar_t *name;
2721 double average;
2722 };
2723
2724 typedef const char *ccp;
2725
2726 static inline int
2727 test_restrict (ccp restrict text)
2728 {
2729 // See if C++-style comments work.
2730 // Iterate through items via the restricted pointer.
2731 // Also check for declarations in for loops.
2732 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2733 continue;
2734 return 0;
2735 }
2736
2737 // Check varargs and va_copy.
2738 static bool
2739 test_varargs (const char *format, ...)
2740 {
2741 va_list args;
2742 va_start (args, format);
2743 va_list args_copy;
2744 va_copy (args_copy, args);
2745
2746 const char *str = "";
2747 int number = 0;
2748 float fnumber = 0;
2749
2750 while (*format)
2751 {
2752 switch (*format++)
2753 {
2754 case '\''s'\'': // string
2755 str = va_arg (args_copy, const char *);
2756 break;
2757 case '\''d'\'': // int
2758 number = va_arg (args_copy, int);
2759 break;
2760 case '\''f'\'': // float
2761 fnumber = va_arg (args_copy, double);
2762 break;
2763 default:
2764 break;
2765 }
2766 }
2767 va_end (args_copy);
2768 va_end (args);
2769
2770 return *str && number && fnumber;
2771 }
2772 '
2773
2774 # Test code for whether the C compiler supports C99 (body of main).
2775 ac_c_conftest_c99_main='
2776 // Check bool.
2777 _Bool success = false;
2778 success |= (argc != 0);
2779
2780 // Check restrict.
2781 if (test_restrict ("String literal") == 0)
2782 success = true;
2783 char *restrict newvar = "Another string";
2784
2785 // Check varargs.
2786 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2787 test_varargs_macros ();
2788
2789 // Check flexible array members.
2790 struct incomplete_array *ia =
2791 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2792 ia->datasize = 10;
2793 for (int i = 0; i < ia->datasize; ++i)
2794 ia->data[i] = i * 1.234;
2795
2796 // Check named initializers.
2797 struct named_init ni = {
2798 .number = 34,
2799 .name = L"Test wide string",
2800 .average = 543.34343,
2801 };
2802
2803 ni.number = 58;
2804
2805 int dynamic_array[ni.number];
2806 dynamic_array[0] = argv[0][0];
2807 dynamic_array[ni.number - 1] = 543;
2808
2809 // work around unused variable warnings
2810 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2811 || dynamic_array[ni.number - 1] != 543);
2812 '
2813
2814 # Test code for whether the C compiler supports C11 (global declarations)
2815 ac_c_conftest_c11_globals='
2816 // Does the compiler advertise C11 conformance?
2817 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2818 # error "Compiler does not advertise C11 conformance"
2819 #endif
2820
2821 // Check _Alignas.
2822 char _Alignas (double) aligned_as_double;
2823 char _Alignas (0) no_special_alignment;
2824 extern char aligned_as_int;
2825 char _Alignas (0) _Alignas (int) aligned_as_int;
2826
2827 // Check _Alignof.
2828 enum
2829 {
2830 int_alignment = _Alignof (int),
2831 int_array_alignment = _Alignof (int[100]),
2832 char_alignment = _Alignof (char)
2833 };
2834 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2835
2836 // Check _Noreturn.
2837 int _Noreturn does_not_return (void) { for (;;) continue; }
2838
2839 // Check _Static_assert.
2840 struct test_static_assert
2841 {
2842 int x;
2843 _Static_assert (sizeof (int) <= sizeof (long int),
2844 "_Static_assert does not work in struct");
2845 long int y;
2846 };
2847
2848 // Check UTF-8 literals.
2849 #define u8 syntax error!
2850 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2851
2852 // Check duplicate typedefs.
2853 typedef long *long_ptr;
2854 typedef long int *long_ptr;
2855 typedef long_ptr long_ptr;
2856
2857 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2858 struct anonymous
2859 {
2860 union {
2861 struct { int i; int j; };
2862 struct { int k; long int l; } w;
2863 };
2864 int m;
2865 } v1;
2866 '
2867
2868 # Test code for whether the C compiler supports C11 (body of main).
2869 ac_c_conftest_c11_main='
2870 _Static_assert ((offsetof (struct anonymous, i)
2871 == offsetof (struct anonymous, w.k)),
2872 "Anonymous union alignment botch");
2873 v1.i = 2;
2874 v1.w.k = 5;
2875 ok |= v1.i != 5;
2876 '
2877
2878 # Test code for whether the C compiler supports C11 (complete).
2879 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2880 ${ac_c_conftest_c99_globals}
2881 ${ac_c_conftest_c11_globals}
2882
2883 int
2884 main (int argc, char **argv)
2885 {
2886 int ok = 0;
2887 ${ac_c_conftest_c89_main}
2888 ${ac_c_conftest_c99_main}
2889 ${ac_c_conftest_c11_main}
2890 return ok;
2891 }
2892 "
2893
2894 # Test code for whether the C compiler supports C99 (complete).
2895 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2896 ${ac_c_conftest_c99_globals}
2897
2898 int
2899 main (int argc, char **argv)
2900 {
2901 int ok = 0;
2902 ${ac_c_conftest_c89_main}
2903 ${ac_c_conftest_c99_main}
2904 return ok;
2905 }
2906 "
2907
2908 # Test code for whether the C compiler supports C89 (complete).
2909 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2910
2911 int
2912 main (int argc, char **argv)
2913 {
2914 int ok = 0;
2915 ${ac_c_conftest_c89_main}
2916 return ok;
2917 }
2918 "
2919
2920 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2921 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2922 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2923 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2924 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2925 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2926 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2927 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2928 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2929 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2930 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2931
2932 # Auxiliary files required by this configure script.
2933 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2934
2935 # Locations in which to look for auxiliary files.
2936 ac_aux_dir_candidates="${srcdir}/build-aux"
2937
2938 # Search for a directory containing all of the required auxiliary files,
2939 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2940 # If we don't find one directory that contains all the files we need,
2941 # we report the set of missing files from the *first* directory in
2942 # $ac_aux_dir_candidates and give up.
2943 ac_missing_aux_files=""
2944 ac_first_candidate=:
2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 as_found=false
2948 for as_dir in $ac_aux_dir_candidates
2949 do
2950 IFS=$as_save_IFS
2951 case $as_dir in #(((
2952 '') as_dir=./ ;;
2953 */) ;;
2954 *) as_dir=$as_dir/ ;;
2955 esac
2956 as_found=:
2957
2958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2959 ac_aux_dir_found=yes
2960 ac_install_sh=
2961 for ac_aux in $ac_aux_files
2962 do
2963 # As a special case, if "install-sh" is required, that requirement
2964 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2965 # and $ac_install_sh is set appropriately for whichever one is found.
2966 if test x"$ac_aux" = x"install-sh"
2967 then
2968 if test -f "${as_dir}install-sh"; then
2969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2970 ac_install_sh="${as_dir}install-sh -c"
2971 elif test -f "${as_dir}install.sh"; then
2972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2973 ac_install_sh="${as_dir}install.sh -c"
2974 elif test -f "${as_dir}shtool"; then
2975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2976 ac_install_sh="${as_dir}shtool install -c"
2977 else
2978 ac_aux_dir_found=no
2979 if $ac_first_candidate; then
2980 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2981 else
2982 break
2983 fi
2984 fi
2985 else
2986 if test -f "${as_dir}${ac_aux}"; then
2987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2988 else
2989 ac_aux_dir_found=no
2990 if $ac_first_candidate; then
2991 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2992 else
2993 break
2994 fi
2995 fi
2996 fi
2997 done
2998 if test "$ac_aux_dir_found" = yes; then
2999 ac_aux_dir="$as_dir"
3000 break
3001 fi
3002 ac_first_candidate=false
3003
3004 as_found=false
3005 done
3006 IFS=$as_save_IFS
3007 if $as_found
3008 then :
3009
3010 else $as_nop
3011 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3012 fi
3013
3014
3015 # These three variables are undocumented and unsupported,
3016 # and are intended to be withdrawn in a future Autoconf release.
3017 # They can cause serious problems if a builder's source tree is in a directory
3018 # whose full name contains unusual characters.
3019 if test -f "${ac_aux_dir}config.guess"; then
3020 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3021 fi
3022 if test -f "${ac_aux_dir}config.sub"; then
3023 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3024 fi
3025 if test -f "$ac_aux_dir/configure"; then
3026 ac_configure="$SHELL ${ac_aux_dir}configure"
3027 fi
3028
3029 # Check that the precious variables saved in the cache have kept the same
3030 # value.
3031 ac_cache_corrupted=false
3032 for ac_var in $ac_precious_vars; do
3033 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3034 eval ac_new_set=\$ac_env_${ac_var}_set
3035 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3036 eval ac_new_val=\$ac_env_${ac_var}_value
3037 case $ac_old_set,$ac_new_set in
3038 set,)
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3040 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3041 ac_cache_corrupted=: ;;
3042 ,set)
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3044 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3045 ac_cache_corrupted=: ;;
3046 ,);;
3047 *)
3048 if test "x$ac_old_val" != "x$ac_new_val"; then
3049 # differences in whitespace do not lead to failure.
3050 ac_old_val_w=`echo x $ac_old_val`
3051 ac_new_val_w=`echo x $ac_new_val`
3052 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3054 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3055 ac_cache_corrupted=:
3056 else
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3058 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3059 eval $ac_var=\$ac_old_val
3060 fi
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3062 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3064 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3065 fi;;
3066 esac
3067 # Pass precious variables to config.status.
3068 if test "$ac_new_set" = set; then
3069 case $ac_new_val in
3070 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3071 *) ac_arg=$ac_var=$ac_new_val ;;
3072 esac
3073 case " $ac_configure_args " in
3074 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3075 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3076 esac
3077 fi
3078 done
3079 if $ac_cache_corrupted; then
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3083 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3084 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3085 and start over" "$LINENO" 5
3086 fi
3087 ## -------------------- ##
3088 ## Main body of script. ##
3089 ## -------------------- ##
3090
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096
3097
3098
3099 # LT Version numbers, remember to change them just *before* a release.
3100 # (Code changed: REVISION++)
3101 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
3102 # (Interfaces added: AGE++)
3103 # (Interfaces removed: AGE=0)
3104 #
3105 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
3106 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
3107 # (No interfaces changed: REVISION++)
3108 LIBGCRYPT_LT_CURRENT=27
3109 LIBGCRYPT_LT_AGE=7
3110 LIBGCRYPT_LT_REVISION=2
3111 ################################################
3112
3113
3114
3115
3116
3117 # If the API is changed in an incompatible way: increment the next counter.
3118 #
3119 # 1.6: ABI and API change but the change is to most users irrelevant
3120 # and thus the API version number has not been incremented.
3121 LIBGCRYPT_CONFIG_API_VERSION=1
3122
3123 # If you change the required gpg-error version, please remove
3124 # unnecessary error code defines in src/gcrypt-int.h.
3125 NEED_GPG_ERROR_VERSION=1.56
3126
3127
3128
3129 am__api_version='1.16'
3130
3131
3132
3133 # Find a good install program. We prefer a C program (faster),
3134 # so one script is as good as another. But avoid the broken or
3135 # incompatible versions:
3136 # SysV /etc/install, /usr/sbin/install
3137 # SunOS /usr/etc/install
3138 # IRIX /sbin/install
3139 # AIX /bin/install
3140 # AmigaOS /C/install, which installs bootblocks on floppy discs
3141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3144 # OS/2's system install, which has a completely different semantic
3145 # ./install, which can be erroneously created by make from ./install.sh.
3146 # Reject install programs that cannot install multiple files.
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3148 printf %s "checking for a BSD-compatible install... " >&6; }
3149 if test -z "$INSTALL"; then
3150 if test ${ac_cv_path_install+y}
3151 then :
3152 printf %s "(cached) " >&6
3153 else $as_nop
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 case $as_dir in #(((
3159 '') as_dir=./ ;;
3160 */) ;;
3161 *) as_dir=$as_dir/ ;;
3162 esac
3163 # Account for fact that we put trailing slashes in our PATH walk.
3164 case $as_dir in #((
3165 ./ | /[cC]/* | \
3166 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3167 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3168 /usr/ucb/* ) ;;
3169 *)
3170 # OSF1 and SCO ODT 3.0 have their own names for install.
3171 # Don't use installbsd from OSF since it installs stuff as root
3172 # by default.
3173 for ac_prog in ginstall scoinst install; do
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3176 if test $ac_prog = install &&
3177 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3178 # AIX install. It has an incompatible calling convention.
3179 :
3180 elif test $ac_prog = install &&
3181 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3182 # program-specific install script used by HP pwplus--don't use.
3183 :
3184 else
3185 rm -rf conftest.one conftest.two conftest.dir
3186 echo one > conftest.one
3187 echo two > conftest.two
3188 mkdir conftest.dir
3189 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3190 test -s conftest.one && test -s conftest.two &&
3191 test -s conftest.dir/conftest.one &&
3192 test -s conftest.dir/conftest.two
3193 then
3194 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3195 break 3
3196 fi
3197 fi
3198 fi
3199 done
3200 done
3201 ;;
3202 esac
3203
3204 done
3205 IFS=$as_save_IFS
3206
3207 rm -rf conftest.one conftest.two conftest.dir
3208
3209 fi
3210 if test ${ac_cv_path_install+y}; then
3211 INSTALL=$ac_cv_path_install
3212 else
3213 # As a last resort, use the slow shell script. Don't cache a
3214 # value for INSTALL within a source directory, because that will
3215 # break other packages using the cache if that directory is
3216 # removed, or if the value is a relative name.
3217 INSTALL=$ac_install_sh
3218 fi
3219 fi
3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3221 printf "%s\n" "$INSTALL" >&6; }
3222
3223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3224 # It thinks the first close brace ends the variable substitution.
3225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3226
3227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3228
3229 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3230
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3232 printf %s "checking whether build environment is sane... " >&6; }
3233 # Reject unsafe characters in $srcdir or the absolute working directory
3234 # name. Accept space and tab only in the latter.
3235 am_lf='
3236 '
3237 case `pwd` in
3238 *[\\\"\#\$\&\'\`$am_lf]*)
3239 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3240 esac
3241 case $srcdir in
3242 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3243 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3244 esac
3245
3246 # Do 'set' in a subshell so we don't clobber the current shell's
3247 # arguments. Must try -L first in case configure is actually a
3248 # symlink; some systems play weird games with the mod time of symlinks
3249 # (eg FreeBSD returns the mod time of the symlink's containing
3250 # directory).
3251 if (
3252 am_has_slept=no
3253 for am_try in 1 2; do
3254 echo "timestamp, slept: $am_has_slept" > conftest.file
3255 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3256 if test "$*" = "X"; then
3257 # -L didn't work.
3258 set X `ls -t "$srcdir/configure" conftest.file`
3259 fi
3260 if test "$*" != "X $srcdir/configure conftest.file" \
3261 && test "$*" != "X conftest.file $srcdir/configure"; then
3262
3263 # If neither matched, then we have a broken ls. This can happen
3264 # if, for instance, CONFIG_SHELL is bash and it inherits a
3265 # broken ls alias from the environment. This has actually
3266 # happened. Such a system could not be considered "sane".
3267 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3268 alias in your environment" "$LINENO" 5
3269 fi
3270 if test "$2" = conftest.file || test $am_try -eq 2; then
3271 break
3272 fi
3273 # Just in case.
3274 sleep 1
3275 am_has_slept=yes
3276 done
3277 test "$2" = conftest.file
3278 )
3279 then
3280 # Ok.
3281 :
3282 else
3283 as_fn_error $? "newly created file is older than distributed files!
3284 Check your system clock" "$LINENO" 5
3285 fi
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 printf "%s\n" "yes" >&6; }
3288 # If we didn't sleep, we still need to ensure time stamps of config.status and
3289 # generated files are strictly newer.
3290 am_sleep_pid=
3291 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3292 ( sleep 1 ) &
3293 am_sleep_pid=$!
3294 fi
3295
3296 rm -f conftest.file
3297
3298 test "$program_prefix" != NONE &&
3299 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3300 # Use a double $ so make ignores it.
3301 test "$program_suffix" != NONE &&
3302 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3303 # Double any \ or $.
3304 # By default was `s,x,x', remove it if useless.
3305 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3306 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3307
3308
3309 # Expand $ac_aux_dir to an absolute path.
3310 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3311
3312
3313 if test x"${MISSING+set}" != xset; then
3314 MISSING="\${SHELL} '$am_aux_dir/missing'"
3315 fi
3316 # Use eval to expand $SHELL
3317 if eval "$MISSING --is-lightweight"; then
3318 am_missing_run="$MISSING "
3319 else
3320 am_missing_run=
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3322 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3323 fi
3324
3325 if test x"${install_sh+set}" != xset; then
3326 case $am_aux_dir in
3327 *\ * | *\ *)
3328 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3329 *)
3330 install_sh="\${SHELL} $am_aux_dir/install-sh"
3331 esac
3332 fi
3333
3334 # Installed binaries are usually stripped using 'strip' when the user
3335 # run "make install-strip". However 'strip' might not be the right
3336 # tool to use in cross-compilation environments, therefore Automake
3337 # will honor the 'STRIP' environment variable to overrule this program.
3338 if test "$cross_compiling" != no; then
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3341 set dummy ${ac_tool_prefix}strip; ac_word=$2
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 printf %s "checking for $ac_word... " >&6; }
3344 if test ${ac_cv_prog_STRIP+y}
3345 then :
3346 printf %s "(cached) " >&6
3347 else $as_nop
3348 if test -n "$STRIP"; then
3349 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354 IFS=$as_save_IFS
3355 case $as_dir in #(((
3356 '') as_dir=./ ;;
3357 */) ;;
3358 *) as_dir=$as_dir/ ;;
3359 esac
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3364 break 2
3365 fi
3366 done
3367 done
3368 IFS=$as_save_IFS
3369
3370 fi
3371 fi
3372 STRIP=$ac_cv_prog_STRIP
3373 if test -n "$STRIP"; then
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3375 printf "%s\n" "$STRIP" >&6; }
3376 else
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 printf "%s\n" "no" >&6; }
3379 fi
3380
3381
3382 fi
3383 if test -z "$ac_cv_prog_STRIP"; then
3384 ac_ct_STRIP=$STRIP
3385 # Extract the first word of "strip", so it can be a program name with args.
3386 set dummy strip; ac_word=$2
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 printf %s "checking for $ac_word... " >&6; }
3389 if test ${ac_cv_prog_ac_ct_STRIP+y}
3390 then :
3391 printf %s "(cached) " >&6
3392 else $as_nop
3393 if test -n "$ac_ct_STRIP"; then
3394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399 IFS=$as_save_IFS
3400 case $as_dir in #(((
3401 '') as_dir=./ ;;
3402 */) ;;
3403 *) as_dir=$as_dir/ ;;
3404 esac
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_STRIP="strip"
3408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411 done
3412 done
3413 IFS=$as_save_IFS
3414
3415 fi
3416 fi
3417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3418 if test -n "$ac_ct_STRIP"; then
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3420 printf "%s\n" "$ac_ct_STRIP" >&6; }
3421 else
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 printf "%s\n" "no" >&6; }
3424 fi
3425
3426 if test "x$ac_ct_STRIP" = x; then
3427 STRIP=":"
3428 else
3429 case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435 STRIP=$ac_ct_STRIP
3436 fi
3437 else
3438 STRIP="$ac_cv_prog_STRIP"
3439 fi
3440
3441 fi
3442 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3443
3444
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3446 printf %s "checking for a race-free mkdir -p... " >&6; }
3447 if test -z "$MKDIR_P"; then
3448 if test ${ac_cv_path_mkdir+y}
3449 then :
3450 printf %s "(cached) " >&6
3451 else $as_nop
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3454 do
3455 IFS=$as_save_IFS
3456 case $as_dir in #(((
3457 '') as_dir=./ ;;
3458 */) ;;
3459 *) as_dir=$as_dir/ ;;
3460 esac
3461 for ac_prog in mkdir gmkdir; do
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3464 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3465 'mkdir ('*'coreutils) '* | \
3466 'BusyBox '* | \
3467 'mkdir (fileutils) '4.1*)
3468 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3469 break 3;;
3470 esac
3471 done
3472 done
3473 done
3474 IFS=$as_save_IFS
3475
3476 fi
3477
3478 test -d ./--version && rmdir ./--version
3479 if test ${ac_cv_path_mkdir+y}; then
3480 MKDIR_P="$ac_cv_path_mkdir -p"
3481 else
3482 # As a last resort, use the slow shell script. Don't cache a
3483 # value for MKDIR_P within a source directory, because that will
3484 # break other packages using the cache if that directory is
3485 # removed, or if the value is a relative name.
3486 MKDIR_P="$ac_install_sh -d"
3487 fi
3488 fi
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3490 printf "%s\n" "$MKDIR_P" >&6; }
3491
3492 for ac_prog in gawk mawk nawk awk
3493 do
3494 # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 printf %s "checking for $ac_word... " >&6; }
3498 if test ${ac_cv_prog_AWK+y}
3499 then :
3500 printf %s "(cached) " >&6
3501 else $as_nop
3502 if test -n "$AWK"; then
3503 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 case $as_dir in #(((
3510 '') as_dir=./ ;;
3511 */) ;;
3512 *) as_dir=$as_dir/ ;;
3513 esac
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_AWK="$ac_prog"
3517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 AWK=$ac_cv_prog_AWK
3527 if test -n "$AWK"; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3529 printf "%s\n" "$AWK" >&6; }
3530 else
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 printf "%s\n" "no" >&6; }
3533 fi
3534
3535
3536 test -n "$AWK" && break
3537 done
3538
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3540 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3541 set x ${MAKE-make}
3542 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3543 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else $as_nop
3547 cat >conftest.make <<\_ACEOF
3548 SHELL = /bin/sh
3549 all:
3550 @echo '@@@%%%=$(MAKE)=@@@%%%'
3551 _ACEOF
3552 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3553 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3554 *@@@%%%=?*=@@@%%%*)
3555 eval ac_cv_prog_make_${ac_make}_set=yes;;
3556 *)
3557 eval ac_cv_prog_make_${ac_make}_set=no;;
3558 esac
3559 rm -f conftest.make
3560 fi
3561 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3563 printf "%s\n" "yes" >&6; }
3564 SET_MAKE=
3565 else
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 printf "%s\n" "no" >&6; }
3568 SET_MAKE="MAKE=${MAKE-make}"
3569 fi
3570
3571 rm -rf .tst 2>/dev/null
3572 mkdir .tst 2>/dev/null
3573 if test -d .tst; then
3574 am__leading_dot=.
3575 else
3576 am__leading_dot=_
3577 fi
3578 rmdir .tst 2>/dev/null
3579
3580 # Check whether --enable-silent-rules was given.
3581 if test ${enable_silent_rules+y}
3582 then :
3583 enableval=$enable_silent_rules;
3584 fi
3585
3586 case $enable_silent_rules in # (((
3587 yes) AM_DEFAULT_VERBOSITY=0;;
3588 no) AM_DEFAULT_VERBOSITY=1;;
3589 *) AM_DEFAULT_VERBOSITY=1;;
3590 esac
3591 am_make=${MAKE-make}
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3593 printf %s "checking whether $am_make supports nested variables... " >&6; }
3594 if test ${am_cv_make_support_nested_variables+y}
3595 then :
3596 printf %s "(cached) " >&6
3597 else $as_nop
3598 if printf "%s\n" 'TRUE=$(BAR$(V))
3599 BAR0=false
3600 BAR1=true
3601 V=1
3602 am__doit:
3603 @$(TRUE)
3604 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3605 am_cv_make_support_nested_variables=yes
3606 else
3607 am_cv_make_support_nested_variables=no
3608 fi
3609 fi
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3611 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3612 if test $am_cv_make_support_nested_variables = yes; then
3613 AM_V='$(V)'
3614 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3615 else
3616 AM_V=$AM_DEFAULT_VERBOSITY
3617 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3618 fi
3619 AM_BACKSLASH='\'
3620
3621 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3622 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3623 # is not polluted with repeated "-I."
3624 am__isrc=' -I$(srcdir)'
3625 # test to see if srcdir already configured
3626 if test -f $srcdir/config.status; then
3627 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3628 fi
3629 fi
3630
3631 # test whether we have cygpath
3632 if test -z "$CYGPATH_W"; then
3633 if (cygpath --version) >/dev/null 2>/dev/null; then
3634 CYGPATH_W='cygpath -w'
3635 else
3636 CYGPATH_W=echo
3637 fi
3638 fi
3639
3640
3641 # Define the identity of the package.
3642 PACKAGE='libgcrypt'
3643 VERSION='1.12.2'
3644
3645
3646 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3647
3648
3649 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3650
3651 # Some tools Automake needs.
3652
3653 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3654
3655
3656 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3657
3658
3659 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3660
3661
3662 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3663
3664
3665 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3666
3667 # For better backward compatibility. To be removed once Automake 1.9.x
3668 # dies out for good. For more background, see:
3669 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3670 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3671 mkdir_p='$(MKDIR_P)'
3672
3673 # We need awk for the "check" target (and possibly the TAP driver). The
3674 # system "awk" is bad on some platforms.
3675 # Always define AMTAR for backward compatibility. Yes, it's still used
3676 # in the wild :-( We should find a proper way to deprecate it ...
3677 AMTAR='$${TAR-tar}'
3678
3679
3680 # We'll loop over all known methods to create a tar archive until one works.
3681 _am_tools='gnutar pax cpio none'
3682
3683 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3684
3685
3686
3687
3688
3689 # Variables for tags utilities; see am/tags.am
3690 if test -z "$CTAGS"; then
3691 CTAGS=ctags
3692 fi
3693
3694 if test -z "$ETAGS"; then
3695 ETAGS=etags
3696 fi
3697
3698 if test -z "$CSCOPE"; then
3699 CSCOPE=cscope
3700 fi
3701
3702
3703
3704 # POSIX will say in a future version that running "rm -f" with no argument
3705 # is OK; and we want to be able to make that assumption in our Makefile
3706 # recipes. So use an aggressive probe to check that the usage we want is
3707 # actually supported "in the wild" to an acceptable degree.
3708 # See automake bug#10828.
3709 # To make any issue more visible, cause the running configure to be aborted
3710 # by default if the 'rm' program in use doesn't match our expectations; the
3711 # user can still override this though.
3712 if rm -f && rm -fr && rm -rf; then : OK; else
3713 cat >&2 <<'END'
3714 Oops!
3715
3716 Your 'rm' program seems unable to run without file operands specified
3717 on the command line, even when the '-f' option is present. This is contrary
3718 to the behaviour of most rm programs out there, and not conforming with
3719 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3720
3721 Please tell [email protected] about your system, including the value
3722 of your $PATH and any error possibly output before this message. This
3723 can help us improve future automake versions.
3724
3725 END
3726 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3727 echo 'Configuration will proceed anyway, since you have set the' >&2
3728 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3729 echo >&2
3730 else
3731 cat >&2 <<'END'
3732 Aborting the configuration process, to ensure you take notice of the issue.
3733
3734 You can download and install GNU coreutils to get an 'rm' implementation
3735 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3736
3737 If you want to complete the configuration process using your problematic
3738 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3739 to "yes", and re-run configure.
3740
3741 END
3742 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3743 fi
3744 fi
3745
3746 ac_config_headers="$ac_config_headers config.h"
3747
3748
3749
3750
3751
3752 # Make sure we can run config.sub.
3753 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3754 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3755
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3757 printf %s "checking build system type... " >&6; }
3758 if test ${ac_cv_build+y}
3759 then :
3760 printf %s "(cached) " >&6
3761 else $as_nop
3762 ac_build_alias=$build_alias
3763 test "x$ac_build_alias" = x &&
3764 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3765 test "x$ac_build_alias" = x &&
3766 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3767 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3768 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3769
3770 fi
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3772 printf "%s\n" "$ac_cv_build" >&6; }
3773 case $ac_cv_build in
3774 *-*-*) ;;
3775 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3776 esac
3777 build=$ac_cv_build
3778 ac_save_IFS=$IFS; IFS='-'
3779 set x $ac_cv_build
3780 shift
3781 build_cpu=$1
3782 build_vendor=$2
3783 shift; shift
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3786 build_os=$*
3787 IFS=$ac_save_IFS
3788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3789
3790
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3792 printf %s "checking host system type... " >&6; }
3793 if test ${ac_cv_host+y}
3794 then :
3795 printf %s "(cached) " >&6
3796 else $as_nop
3797 if test "x$host_alias" = x; then
3798 ac_cv_host=$ac_cv_build
3799 else
3800 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3801 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3802 fi
3803
3804 fi
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3806 printf "%s\n" "$ac_cv_host" >&6; }
3807 case $ac_cv_host in
3808 *-*-*) ;;
3809 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3810 esac
3811 host=$ac_cv_host
3812 ac_save_IFS=$IFS; IFS='-'
3813 set x $ac_cv_host
3814 shift
3815 host_cpu=$1
3816 host_vendor=$2
3817 shift; shift
3818 # Remember, the first character of IFS is used to create $*,
3819 # except with old shells:
3820 host_os=$*
3821 IFS=$ac_save_IFS
3822 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3823
3824
3825
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3827 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3828 # Check whether --enable-maintainer-mode was given.
3829 if test ${enable_maintainer_mode+y}
3830 then :
3831 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3832 else $as_nop
3833 USE_MAINTAINER_MODE=no
3834 fi
3835
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3837 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3838 if test $USE_MAINTAINER_MODE = yes; then
3839 MAINTAINER_MODE_TRUE=
3840 MAINTAINER_MODE_FALSE='#'
3841 else
3842 MAINTAINER_MODE_TRUE='#'
3843 MAINTAINER_MODE_FALSE=
3844 fi
3845
3846 MAINT=$MAINTAINER_MODE_TRUE
3847
3848
3849 # Check whether --enable-silent-rules was given.
3850 if test ${enable_silent_rules+y}
3851 then :
3852 enableval=$enable_silent_rules;
3853 fi
3854
3855 case $enable_silent_rules in # (((
3856 yes) AM_DEFAULT_VERBOSITY=0;;
3857 no) AM_DEFAULT_VERBOSITY=1;;
3858 *) AM_DEFAULT_VERBOSITY=1;;
3859 esac
3860 am_make=${MAKE-make}
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3862 printf %s "checking whether $am_make supports nested variables... " >&6; }
3863 if test ${am_cv_make_support_nested_variables+y}
3864 then :
3865 printf %s "(cached) " >&6
3866 else $as_nop
3867 if printf "%s\n" 'TRUE=$(BAR$(V))
3868 BAR0=false
3869 BAR1=true
3870 V=1
3871 am__doit:
3872 @$(TRUE)
3873 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3874 am_cv_make_support_nested_variables=yes
3875 else
3876 am_cv_make_support_nested_variables=no
3877 fi
3878 fi
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3880 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3881 if test $am_cv_make_support_nested_variables = yes; then
3882 AM_V='$(V)'
3883 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3884 else
3885 AM_V=$AM_DEFAULT_VERBOSITY
3886 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3887 fi
3888 AM_BACKSLASH='\'
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899 DEPDIR="${am__leading_dot}deps"
3900
3901 ac_config_commands="$ac_config_commands depfiles"
3902
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3904 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3905 cat > confinc.mk << 'END'
3906 am__doit:
3907 @echo this is the am__doit target >confinc.out
3908 .PHONY: am__doit
3909 END
3910 am__include="#"
3911 am__quote=
3912 # BSD make does it like this.
3913 echo '.include "confinc.mk" # ignored' > confmf.BSD
3914 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3915 echo 'include confinc.mk # ignored' > confmf.GNU
3916 _am_result=no
3917 for s in GNU BSD; do
3918 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3919 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }
3923 case $?:`cat confinc.out 2>/dev/null` in #(
3924 '0:this is the am__doit target') :
3925 case $s in #(
3926 BSD) :
3927 am__include='.include' am__quote='"' ;; #(
3928 *) :
3929 am__include='include' am__quote='' ;;
3930 esac ;; #(
3931 *) :
3932 ;;
3933 esac
3934 if test "$am__include" != "#"; then
3935 _am_result="yes ($s style)"
3936 break
3937 fi
3938 done
3939 rm -f confinc.* confmf.*
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3941 printf "%s\n" "${_am_result}" >&6; }
3942
3943 # Check whether --enable-dependency-tracking was given.
3944 if test ${enable_dependency_tracking+y}
3945 then :
3946 enableval=$enable_dependency_tracking;
3947 fi
3948
3949 if test "x$enable_dependency_tracking" != xno; then
3950 am_depcomp="$ac_aux_dir/depcomp"
3951 AMDEPBACKSLASH='\'
3952 am__nodep='_no'
3953 fi
3954 if test "x$enable_dependency_tracking" != xno; then
3955 AMDEP_TRUE=
3956 AMDEP_FALSE='#'
3957 else
3958 AMDEP_TRUE='#'
3959 AMDEP_FALSE=
3960 fi
3961
3962
3963 ac_ext=c
3964 ac_cpp='$CPP $CPPFLAGS'
3965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968 if test -n "$ac_tool_prefix"; then
3969 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972 printf %s "checking for $ac_word... " >&6; }
3973 if test ${ac_cv_prog_CC+y}
3974 then :
3975 printf %s "(cached) " >&6
3976 else $as_nop
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC="$CC" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983 IFS=$as_save_IFS
3984 case $as_dir in #(((
3985 '') as_dir=./ ;;
3986 */) ;;
3987 *) as_dir=$as_dir/ ;;
3988 esac
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3991 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 CC=$ac_cv_prog_CC
4002 if test -n "$CC"; then
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004 printf "%s\n" "$CC" >&6; }
4005 else
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 printf "%s\n" "no" >&6; }
4008 fi
4009
4010
4011 fi
4012 if test -z "$ac_cv_prog_CC"; then
4013 ac_ct_CC=$CC
4014 # Extract the first word of "gcc", so it can be a program name with args.
4015 set dummy gcc; ac_word=$2
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 printf %s "checking for $ac_word... " >&6; }
4018 if test ${ac_cv_prog_ac_ct_CC+y}
4019 then :
4020 printf %s "(cached) " >&6
4021 else $as_nop
4022 if test -n "$ac_ct_CC"; then
4023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028 IFS=$as_save_IFS
4029 case $as_dir in #(((
4030 '') as_dir=./ ;;
4031 */) ;;
4032 *) as_dir=$as_dir/ ;;
4033 esac
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_ac_ct_CC="gcc"
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047 if test -n "$ac_ct_CC"; then
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4049 printf "%s\n" "$ac_ct_CC" >&6; }
4050 else
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 printf "%s\n" "no" >&6; }
4053 fi
4054
4055 if test "x$ac_ct_CC" = x; then
4056 CC=""
4057 else
4058 case $cross_compiling:$ac_tool_warned in
4059 yes:)
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4061 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4062 ac_tool_warned=yes ;;
4063 esac
4064 CC=$ac_ct_CC
4065 fi
4066 else
4067 CC="$ac_cv_prog_CC"
4068 fi
4069
4070 if test -z "$CC"; then
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}cc; ac_word=$2
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075 printf %s "checking for $ac_word... " >&6; }
4076 if test ${ac_cv_prog_CC+y}
4077 then :
4078 printf %s "(cached) " >&6
4079 else $as_nop
4080 if test -n "$CC"; then
4081 ac_cv_prog_CC="$CC" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086 IFS=$as_save_IFS
4087 case $as_dir in #(((
4088 '') as_dir=./ ;;
4089 */) ;;
4090 *) as_dir=$as_dir/ ;;
4091 esac
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_CC="${ac_tool_prefix}cc"
4095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098 done
4099 done
4100 IFS=$as_save_IFS
4101
4102 fi
4103 fi
4104 CC=$ac_cv_prog_CC
4105 if test -n "$CC"; then
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4107 printf "%s\n" "$CC" >&6; }
4108 else
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 printf "%s\n" "no" >&6; }
4111 fi
4112
4113
4114 fi
4115 fi
4116 if test -z "$CC"; then
4117 # Extract the first word of "cc", so it can be a program name with args.
4118 set dummy cc; ac_word=$2
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 printf %s "checking for $ac_word... " >&6; }
4121 if test ${ac_cv_prog_CC+y}
4122 then :
4123 printf %s "(cached) " >&6
4124 else $as_nop
4125 if test -n "$CC"; then
4126 ac_cv_prog_CC="$CC" # Let the user override the test.
4127 else
4128 ac_prog_rejected=no
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 case $as_dir in #(((
4134 '') as_dir=./ ;;
4135 */) ;;
4136 *) as_dir=$as_dir/ ;;
4137 esac
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4140 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4141 ac_prog_rejected=yes
4142 continue
4143 fi
4144 ac_cv_prog_CC="cc"
4145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 if test $ac_prog_rejected = yes; then
4153 # We found a bogon in the path, so make sure we never use it.
4154 set dummy $ac_cv_prog_CC
4155 shift
4156 if test $# != 0; then
4157 # We chose a different compiler from the bogus one.
4158 # However, it has the same basename, so the bogon will be chosen
4159 # first if we set CC to just the basename; use the full file name.
4160 shift
4161 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4162 fi
4163 fi
4164 fi
4165 fi
4166 CC=$ac_cv_prog_CC
4167 if test -n "$CC"; then
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 printf "%s\n" "$CC" >&6; }
4170 else
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 printf "%s\n" "no" >&6; }
4173 fi
4174
4175
4176 fi
4177 if test -z "$CC"; then
4178 if test -n "$ac_tool_prefix"; then
4179 for ac_prog in cl.exe
4180 do
4181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 printf %s "checking for $ac_word... " >&6; }
4185 if test ${ac_cv_prog_CC+y}
4186 then :
4187 printf %s "(cached) " >&6
4188 else $as_nop
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195 IFS=$as_save_IFS
4196 case $as_dir in #(((
4197 '') as_dir=./ ;;
4198 */) ;;
4199 *) as_dir=$as_dir/ ;;
4200 esac
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4205 break 2
4206 fi
4207 done
4208 done
4209 IFS=$as_save_IFS
4210
4211 fi
4212 fi
4213 CC=$ac_cv_prog_CC
4214 if test -n "$CC"; then
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 printf "%s\n" "$CC" >&6; }
4217 else
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 printf "%s\n" "no" >&6; }
4220 fi
4221
4222
4223 test -n "$CC" && break
4224 done
4225 fi
4226 if test -z "$CC"; then
4227 ac_ct_CC=$CC
4228 for ac_prog in cl.exe
4229 do
4230 # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 printf %s "checking for $ac_word... " >&6; }
4234 if test ${ac_cv_prog_ac_ct_CC+y}
4235 then :
4236 printf %s "(cached) " >&6
4237 else $as_nop
4238 if test -n "$ac_ct_CC"; then
4239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 case $as_dir in #(((
4246 '') as_dir=./ ;;
4247 */) ;;
4248 *) as_dir=$as_dir/ ;;
4249 esac
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_ac_ct_CC="$ac_prog"
4253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4254 break 2
4255 fi
4256 done
4257 done
4258 IFS=$as_save_IFS
4259
4260 fi
4261 fi
4262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4263 if test -n "$ac_ct_CC"; then
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4265 printf "%s\n" "$ac_ct_CC" >&6; }
4266 else
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 printf "%s\n" "no" >&6; }
4269 fi
4270
4271
4272 test -n "$ac_ct_CC" && break
4273 done
4274
4275 if test "x$ac_ct_CC" = x; then
4276 CC=""
4277 else
4278 case $cross_compiling:$ac_tool_warned in
4279 yes:)
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4281 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4282 ac_tool_warned=yes ;;
4283 esac
4284 CC=$ac_ct_CC
4285 fi
4286 fi
4287
4288 fi
4289 if test -z "$CC"; then
4290 if test -n "$ac_tool_prefix"; then
4291 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4292 set dummy ${ac_tool_prefix}clang; ac_word=$2
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 printf %s "checking for $ac_word... " >&6; }
4295 if test ${ac_cv_prog_CC+y}
4296 then :
4297 printf %s "(cached) " >&6
4298 else $as_nop
4299 if test -n "$CC"; then
4300 ac_cv_prog_CC="$CC" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305 IFS=$as_save_IFS
4306 case $as_dir in #(((
4307 '') as_dir=./ ;;
4308 */) ;;
4309 *) as_dir=$as_dir/ ;;
4310 esac
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_CC="${ac_tool_prefix}clang"
4314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317 done
4318 done
4319 IFS=$as_save_IFS
4320
4321 fi
4322 fi
4323 CC=$ac_cv_prog_CC
4324 if test -n "$CC"; then
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4326 printf "%s\n" "$CC" >&6; }
4327 else
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 printf "%s\n" "no" >&6; }
4330 fi
4331
4332
4333 fi
4334 if test -z "$ac_cv_prog_CC"; then
4335 ac_ct_CC=$CC
4336 # Extract the first word of "clang", so it can be a program name with args.
4337 set dummy clang; ac_word=$2
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 printf %s "checking for $ac_word... " >&6; }
4340 if test ${ac_cv_prog_ac_ct_CC+y}
4341 then :
4342 printf %s "(cached) " >&6
4343 else $as_nop
4344 if test -n "$ac_ct_CC"; then
4345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350 IFS=$as_save_IFS
4351 case $as_dir in #(((
4352 '') as_dir=./ ;;
4353 */) ;;
4354 *) as_dir=$as_dir/ ;;
4355 esac
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4358 ac_cv_prog_ac_ct_CC="clang"
4359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362 done
4363 done
4364 IFS=$as_save_IFS
4365
4366 fi
4367 fi
4368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4369 if test -n "$ac_ct_CC"; then
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4371 printf "%s\n" "$ac_ct_CC" >&6; }
4372 else
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 printf "%s\n" "no" >&6; }
4375 fi
4376
4377 if test "x$ac_ct_CC" = x; then
4378 CC=""
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381 yes:)
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384 ac_tool_warned=yes ;;
4385 esac
4386 CC=$ac_ct_CC
4387 fi
4388 else
4389 CC="$ac_cv_prog_CC"
4390 fi
4391
4392 fi
4393
4394
4395 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4397 as_fn_error $? "no acceptable C compiler found in \$PATH
4398 See \`config.log' for more details" "$LINENO" 5; }
4399
4400 # Provide some information about the compiler.
4401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4402 set X $ac_compile
4403 ac_compiler=$2
4404 for ac_option in --version -v -V -qversion -version; do
4405 { { ac_try="$ac_compiler $ac_option >&5"
4406 case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4409 esac
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 printf "%s\n" "$ac_try_echo"; } >&5
4412 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4413 ac_status=$?
4414 if test -s conftest.err; then
4415 sed '10a\
4416 ... rest of stderr output deleted ...
4417 10q' conftest.err >conftest.er1
4418 cat conftest.er1 >&5
4419 fi
4420 rm -f conftest.er1 conftest.err
4421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }
4423 done
4424
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427
4428 int
4429 main (void)
4430 {
4431
4432 ;
4433 return 0;
4434 }
4435 _ACEOF
4436 ac_clean_files_save=$ac_clean_files
4437 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4438 # Try to create an executable without -o first, disregard a.out.
4439 # It will help us diagnose broken compilers, and finding out an intuition
4440 # of exeext.
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4442 printf %s "checking whether the C compiler works... " >&6; }
4443 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4444
4445 # The possible output files:
4446 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4447
4448 ac_rmfiles=
4449 for ac_file in $ac_files
4450 do
4451 case $ac_file in
4452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4453 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4454 esac
4455 done
4456 rm -f $ac_rmfiles
4457
4458 if { { ac_try="$ac_link_default"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 printf "%s\n" "$ac_try_echo"; } >&5
4465 (eval "$ac_link_default") 2>&5
4466 ac_status=$?
4467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }
4469 then :
4470 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4471 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4472 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4473 # so that the user can short-circuit this test for compilers unknown to
4474 # Autoconf.
4475 for ac_file in $ac_files ''
4476 do
4477 test -f "$ac_file" || continue
4478 case $ac_file in
4479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4480 ;;
4481 [ab].out )
4482 # We found the default executable, but exeext='' is most
4483 # certainly right.
4484 break;;
4485 *.* )
4486 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4487 then :; else
4488 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4489 fi
4490 # We set ac_cv_exeext here because the later test for it is not
4491 # safe: cross compilers may not add the suffix if given an `-o'
4492 # argument, so we may need to know it at that point already.
4493 # Even if this section looks crufty: it has the advantage of
4494 # actually working.
4495 break;;
4496 * )
4497 break;;
4498 esac
4499 done
4500 test "$ac_cv_exeext" = no && ac_cv_exeext=
4501
4502 else $as_nop
4503 ac_file=''
4504 fi
4505 if test -z "$ac_file"
4506 then :
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 printf "%s\n" "no" >&6; }
4509 printf "%s\n" "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4514 as_fn_error 77 "C compiler cannot create executables
4515 See \`config.log' for more details" "$LINENO" 5; }
4516 else $as_nop
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518 printf "%s\n" "yes" >&6; }
4519 fi
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4521 printf %s "checking for C compiler default output file name... " >&6; }
4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4523 printf "%s\n" "$ac_file" >&6; }
4524 ac_exeext=$ac_cv_exeext
4525
4526 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4527 ac_clean_files=$ac_clean_files_save
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4529 printf %s "checking for suffix of executables... " >&6; }
4530 if { { ac_try="$ac_link"
4531 case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536 printf "%s\n" "$ac_try_echo"; } >&5
4537 (eval "$ac_link") 2>&5
4538 ac_status=$?
4539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; }
4541 then :
4542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4543 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4544 # work properly (i.e., refer to `conftest.exe'), while it won't with
4545 # `rm'.
4546 for ac_file in conftest.exe conftest conftest.*; do
4547 test -f "$ac_file" || continue
4548 case $ac_file in
4549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4551 break;;
4552 * ) break;;
4553 esac
4554 done
4555 else $as_nop
4556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4557 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4558 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4559 See \`config.log' for more details" "$LINENO" 5; }
4560 fi
4561 rm -f conftest conftest$ac_cv_exeext
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4563 printf "%s\n" "$ac_cv_exeext" >&6; }
4564
4565 rm -f conftest.$ac_ext
4566 EXEEXT=$ac_cv_exeext
4567 ac_exeext=$EXEEXT
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <stdio.h>
4571 int
4572 main (void)
4573 {
4574 FILE *f = fopen ("conftest.out", "w");
4575 return ferror (f) || fclose (f) != 0;
4576
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 ac_clean_files="$ac_clean_files conftest.out"
4582 # Check that the compiler produces executables we can run. If not, either
4583 # the compiler is broken, or we cross compile.
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4585 printf %s "checking whether we are cross compiling... " >&6; }
4586 if test "$cross_compiling" != yes; then
4587 { { ac_try="$ac_link"
4588 case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593 printf "%s\n" "$ac_try_echo"; } >&5
4594 (eval "$ac_link") 2>&5
4595 ac_status=$?
4596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }
4598 if { ac_try='./conftest$ac_cv_exeext'
4599 { { case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602 esac
4603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4604 printf "%s\n" "$ac_try_echo"; } >&5
4605 (eval "$ac_try") 2>&5
4606 ac_status=$?
4607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608 test $ac_status = 0; }; }; then
4609 cross_compiling=no
4610 else
4611 if test "$cross_compiling" = maybe; then
4612 cross_compiling=yes
4613 else
4614 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4615 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4616 as_fn_error 77 "cannot run C compiled programs.
4617 If you meant to cross compile, use \`--host'.
4618 See \`config.log' for more details" "$LINENO" 5; }
4619 fi
4620 fi
4621 fi
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4623 printf "%s\n" "$cross_compiling" >&6; }
4624
4625 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4626 ac_clean_files=$ac_clean_files_save
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4628 printf %s "checking for suffix of object files... " >&6; }
4629 if test ${ac_cv_objext+y}
4630 then :
4631 printf %s "(cached) " >&6
4632 else $as_nop
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635
4636 int
4637 main (void)
4638 {
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest.o conftest.obj
4645 if { { ac_try="$ac_compile"
4646 case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651 printf "%s\n" "$ac_try_echo"; } >&5
4652 (eval "$ac_compile") 2>&5
4653 ac_status=$?
4654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655 test $ac_status = 0; }
4656 then :
4657 for ac_file in conftest.o conftest.obj conftest.*; do
4658 test -f "$ac_file" || continue;
4659 case $ac_file in
4660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4662 break;;
4663 esac
4664 done
4665 else $as_nop
4666 printf "%s\n" "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4670 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4671 as_fn_error $? "cannot compute suffix of object files: cannot compile
4672 See \`config.log' for more details" "$LINENO" 5; }
4673 fi
4674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4675 fi
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4677 printf "%s\n" "$ac_cv_objext" >&6; }
4678 OBJEXT=$ac_cv_objext
4679 ac_objext=$OBJEXT
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4681 printf %s "checking whether the compiler supports GNU C... " >&6; }
4682 if test ${ac_cv_c_compiler_gnu+y}
4683 then :
4684 printf %s "(cached) " >&6
4685 else $as_nop
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688
4689 int
4690 main (void)
4691 {
4692 #ifndef __GNUC__
4693 choke me
4694 #endif
4695
4696 ;
4697 return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_c_try_compile "$LINENO"
4701 then :
4702 ac_compiler_gnu=yes
4703 else $as_nop
4704 ac_compiler_gnu=no
4705 fi
4706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4708
4709 fi
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4711 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4713
4714 if test $ac_compiler_gnu = yes; then
4715 GCC=yes
4716 else
4717 GCC=
4718 fi
4719 ac_test_CFLAGS=${CFLAGS+y}
4720 ac_save_CFLAGS=$CFLAGS
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4722 printf %s "checking whether $CC accepts -g... " >&6; }
4723 if test ${ac_cv_prog_cc_g+y}
4724 then :
4725 printf %s "(cached) " >&6
4726 else $as_nop
4727 ac_save_c_werror_flag=$ac_c_werror_flag
4728 ac_c_werror_flag=yes
4729 ac_cv_prog_cc_g=no
4730 CFLAGS="-g"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733
4734 int
4735 main (void)
4736 {
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"
4743 then :
4744 ac_cv_prog_cc_g=yes
4745 else $as_nop
4746 CFLAGS=""
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749
4750 int
4751 main (void)
4752 {
4753
4754 ;
4755 return 0;
4756 }
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"
4759 then :
4760
4761 else $as_nop
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4763 CFLAGS="-g"
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766
4767 int
4768 main (void)
4769 {
4770
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 if ac_fn_c_try_compile "$LINENO"
4776 then :
4777 ac_cv_prog_cc_g=yes
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4780 fi
4781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4782 fi
4783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4784 ac_c_werror_flag=$ac_save_c_werror_flag
4785 fi
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4787 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4788 if test $ac_test_CFLAGS; then
4789 CFLAGS=$ac_save_CFLAGS
4790 elif test $ac_cv_prog_cc_g = yes; then
4791 if test "$GCC" = yes; then
4792 CFLAGS="-g -O2"
4793 else
4794 CFLAGS="-g"
4795 fi
4796 else
4797 if test "$GCC" = yes; then
4798 CFLAGS="-O2"
4799 else
4800 CFLAGS=
4801 fi
4802 fi
4803 ac_prog_cc_stdc=no
4804 if test x$ac_prog_cc_stdc = xno
4805 then :
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4807 printf %s "checking for $CC option to enable C11 features... " >&6; }
4808 if test ${ac_cv_prog_cc_c11+y}
4809 then :
4810 printf %s "(cached) " >&6
4811 else $as_nop
4812 ac_cv_prog_cc_c11=no
4813 ac_save_CC=$CC
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 $ac_c_conftest_c11_program
4817 _ACEOF
4818 for ac_arg in '' -std=gnu11
4819 do
4820 CC="$ac_save_CC $ac_arg"
4821 if ac_fn_c_try_compile "$LINENO"
4822 then :
4823 ac_cv_prog_cc_c11=$ac_arg
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.beam
4826 test "x$ac_cv_prog_cc_c11" != "xno" && break
4827 done
4828 rm -f conftest.$ac_ext
4829 CC=$ac_save_CC
4830 fi
4831
4832 if test "x$ac_cv_prog_cc_c11" = xno
4833 then :
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4835 printf "%s\n" "unsupported" >&6; }
4836 else $as_nop
4837 if test "x$ac_cv_prog_cc_c11" = x
4838 then :
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4840 printf "%s\n" "none needed" >&6; }
4841 else $as_nop
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4843 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4844 CC="$CC $ac_cv_prog_cc_c11"
4845 fi
4846 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4847 ac_prog_cc_stdc=c11
4848 fi
4849 fi
4850 if test x$ac_prog_cc_stdc = xno
4851 then :
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4853 printf %s "checking for $CC option to enable C99 features... " >&6; }
4854 if test ${ac_cv_prog_cc_c99+y}
4855 then :
4856 printf %s "(cached) " >&6
4857 else $as_nop
4858 ac_cv_prog_cc_c99=no
4859 ac_save_CC=$CC
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862 $ac_c_conftest_c99_program
4863 _ACEOF
4864 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4865 do
4866 CC="$ac_save_CC $ac_arg"
4867 if ac_fn_c_try_compile "$LINENO"
4868 then :
4869 ac_cv_prog_cc_c99=$ac_arg
4870 fi
4871 rm -f core conftest.err conftest.$ac_objext conftest.beam
4872 test "x$ac_cv_prog_cc_c99" != "xno" && break
4873 done
4874 rm -f conftest.$ac_ext
4875 CC=$ac_save_CC
4876 fi
4877
4878 if test "x$ac_cv_prog_cc_c99" = xno
4879 then :
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4881 printf "%s\n" "unsupported" >&6; }
4882 else $as_nop
4883 if test "x$ac_cv_prog_cc_c99" = x
4884 then :
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4886 printf "%s\n" "none needed" >&6; }
4887 else $as_nop
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4889 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4890 CC="$CC $ac_cv_prog_cc_c99"
4891 fi
4892 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4893 ac_prog_cc_stdc=c99
4894 fi
4895 fi
4896 if test x$ac_prog_cc_stdc = xno
4897 then :
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4899 printf %s "checking for $CC option to enable C89 features... " >&6; }
4900 if test ${ac_cv_prog_cc_c89+y}
4901 then :
4902 printf %s "(cached) " >&6
4903 else $as_nop
4904 ac_cv_prog_cc_c89=no
4905 ac_save_CC=$CC
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 $ac_c_conftest_c89_program
4909 _ACEOF
4910 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4911 do
4912 CC="$ac_save_CC $ac_arg"
4913 if ac_fn_c_try_compile "$LINENO"
4914 then :
4915 ac_cv_prog_cc_c89=$ac_arg
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.beam
4918 test "x$ac_cv_prog_cc_c89" != "xno" && break
4919 done
4920 rm -f conftest.$ac_ext
4921 CC=$ac_save_CC
4922 fi
4923
4924 if test "x$ac_cv_prog_cc_c89" = xno
4925 then :
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4927 printf "%s\n" "unsupported" >&6; }
4928 else $as_nop
4929 if test "x$ac_cv_prog_cc_c89" = x
4930 then :
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4932 printf "%s\n" "none needed" >&6; }
4933 else $as_nop
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4935 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4936 CC="$CC $ac_cv_prog_cc_c89"
4937 fi
4938 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4939 ac_prog_cc_stdc=c89
4940 fi
4941 fi
4942
4943 ac_ext=c
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948
4949
4950 ac_ext=c
4951 ac_cpp='$CPP $CPPFLAGS'
4952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4956 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4957 if test ${am_cv_prog_cc_c_o+y}
4958 then :
4959 printf %s "(cached) " >&6
4960 else $as_nop
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963
4964 int
4965 main (void)
4966 {
4967
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 # Make sure it works both with $CC and with simple cc.
4973 # Following AC_PROG_CC_C_O, we do the test twice because some
4974 # compilers refuse to overwrite an existing .o file with -o,
4975 # though they will create one.
4976 am_cv_prog_cc_c_o=yes
4977 for am_i in 1 2; do
4978 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4979 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } \
4983 && test -f conftest2.$ac_objext; then
4984 : OK
4985 else
4986 am_cv_prog_cc_c_o=no
4987 break
4988 fi
4989 done
4990 rm -f core conftest*
4991 unset am_i
4992 fi
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4994 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4995 if test "$am_cv_prog_cc_c_o" != yes; then
4996 # Losing compiler, so override with the script.
4997 # FIXME: It is wrong to rewrite CC.
4998 # But if we don't then we get into trouble of one sort or another.
4999 # A longer-term fix would be to have automake use am__CC in this case,
5000 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5001 CC="$am_aux_dir/compile $CC"
5002 fi
5003 ac_ext=c
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008
5009
5010 depcc="$CC" am_compiler_list=
5011
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5013 printf %s "checking dependency style of $depcc... " >&6; }
5014 if test ${am_cv_CC_dependencies_compiler_type+y}
5015 then :
5016 printf %s "(cached) " >&6
5017 else $as_nop
5018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5019 # We make a subdir and do the tests there. Otherwise we can end up
5020 # making bogus files that we don't know about and never remove. For
5021 # instance it was reported that on HP-UX the gcc test will end up
5022 # making a dummy file named 'D' -- because '-MD' means "put the output
5023 # in D".
5024 rm -rf conftest.dir
5025 mkdir conftest.dir
5026 # Copy depcomp to subdir because otherwise we won't find it if we're
5027 # using a relative directory.
5028 cp "$am_depcomp" conftest.dir
5029 cd conftest.dir
5030 # We will build objects and dependencies in a subdirectory because
5031 # it helps to detect inapplicable dependency modes. For instance
5032 # both Tru64's cc and ICC support -MD to output dependencies as a
5033 # side effect of compilation, but ICC will put the dependencies in
5034 # the current directory while Tru64 will put them in the object
5035 # directory.
5036 mkdir sub
5037
5038 am_cv_CC_dependencies_compiler_type=none
5039 if test "$am_compiler_list" = ""; then
5040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5041 fi
5042 am__universal=false
5043 case " $depcc " in #(
5044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5045 esac
5046
5047 for depmode in $am_compiler_list; do
5048 # Setup a source with many dependencies, because some compilers
5049 # like to wrap large dependency lists on column 80 (with \), and
5050 # we should not choose a depcomp mode which is confused by this.
5051 #
5052 # We need to recreate these files for each test, as the compiler may
5053 # overwrite some of them when testing with obscure command lines.
5054 # This happens at least with the AIX C compiler.
5055 : > sub/conftest.c
5056 for i in 1 2 3 4 5 6; do
5057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5058 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5059 # Solaris 10 /bin/sh.
5060 echo '/* dummy */' > sub/conftst$i.h
5061 done
5062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5063
5064 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5065 # mode. It turns out that the SunPro C++ compiler does not properly
5066 # handle '-M -o', and we need to detect this. Also, some Intel
5067 # versions had trouble with output in subdirs.
5068 am__obj=sub/conftest.${OBJEXT-o}
5069 am__minus_obj="-o $am__obj"
5070 case $depmode in
5071 gcc)
5072 # This depmode causes a compiler race in universal mode.
5073 test "$am__universal" = false || continue
5074 ;;
5075 nosideeffect)
5076 # After this tag, mechanisms are not by side-effect, so they'll
5077 # only be used when explicitly requested.
5078 if test "x$enable_dependency_tracking" = xyes; then
5079 continue
5080 else
5081 break
5082 fi
5083 ;;
5084 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5085 # This compiler won't grok '-c -o', but also, the minuso test has
5086 # not run yet. These depmodes are late enough in the game, and
5087 # so weak that their functioning should not be impacted.
5088 am__obj=conftest.${OBJEXT-o}
5089 am__minus_obj=
5090 ;;
5091 none) break ;;
5092 esac
5093 if depmode=$depmode \
5094 source=sub/conftest.c object=$am__obj \
5095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5097 >/dev/null 2>conftest.err &&
5098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5102 # icc doesn't choke on unknown options, it will just issue warnings
5103 # or remarks (even with -Werror). So we grep stderr for any message
5104 # that says an option was ignored or not supported.
5105 # When given -MP, icc 7.0 and 7.1 complain thusly:
5106 # icc: Command line warning: ignoring option '-M'; no argument required
5107 # The diagnosis changed in icc 8.0:
5108 # icc: Command line remark: option '-MP' not supported
5109 if (grep 'ignoring option' conftest.err ||
5110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5111 am_cv_CC_dependencies_compiler_type=$depmode
5112 break
5113 fi
5114 fi
5115 done
5116
5117 cd ..
5118 rm -rf conftest.dir
5119 else
5120 am_cv_CC_dependencies_compiler_type=none
5121 fi
5122
5123 fi
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5125 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5127
5128 if
5129 test "x$enable_dependency_tracking" != xno \
5130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5131 am__fastdepCC_TRUE=
5132 am__fastdepCC_FALSE='#'
5133 else
5134 am__fastdepCC_TRUE='#'
5135 am__fastdepCC_FALSE=
5136 fi
5137
5138
5139
5140 ac_header= ac_cache=
5141 for ac_item in $ac_header_c_list
5142 do
5143 if test $ac_cache; then
5144 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5145 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5146 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5147 fi
5148 ac_header= ac_cache=
5149 elif test $ac_header; then
5150 ac_cache=$ac_item
5151 else
5152 ac_header=$ac_item
5153 fi
5154 done
5155
5156
5157
5158
5159
5160
5161
5162
5163 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5164 then :
5165
5166 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5167
5168 fi
5169
5170
5171
5172
5173
5174
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5176 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5177 if test ${ac_cv_safe_to_define___extensions__+y}
5178 then :
5179 printf %s "(cached) " >&6
5180 else $as_nop
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183
5184 # define __EXTENSIONS__ 1
5185 $ac_includes_default
5186 int
5187 main (void)
5188 {
5189
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"
5195 then :
5196 ac_cv_safe_to_define___extensions__=yes
5197 else $as_nop
5198 ac_cv_safe_to_define___extensions__=no
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5201 fi
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5203 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5204
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5206 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5207 if test ${ac_cv_should_define__xopen_source+y}
5208 then :
5209 printf %s "(cached) " >&6
5210 else $as_nop
5211 ac_cv_should_define__xopen_source=no
5212 if test $ac_cv_header_wchar_h = yes
5213 then :
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216
5217 #include <wchar.h>
5218 mbstate_t x;
5219 int
5220 main (void)
5221 {
5222
5223 ;
5224 return 0;
5225 }
5226 _ACEOF
5227 if ac_fn_c_try_compile "$LINENO"
5228 then :
5229
5230 else $as_nop
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233
5234 #define _XOPEN_SOURCE 500
5235 #include <wchar.h>
5236 mbstate_t x;
5237 int
5238 main (void)
5239 {
5240
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"
5246 then :
5247 ac_cv_should_define__xopen_source=yes
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5252 fi
5253 fi
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5255 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5256
5257 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5258
5259 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5260
5261 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5262
5263 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5264
5265 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5266
5267 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5268
5269 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5270
5271 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5272
5273 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5274
5275 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5276
5277 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5278
5279 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5280
5281 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5282
5283 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5284
5285 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5286
5287 if test $ac_cv_header_minix_config_h = yes
5288 then :
5289 MINIX=yes
5290 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5291
5292 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5293
5294 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5295
5296 else $as_nop
5297 MINIX=
5298 fi
5299 if test $ac_cv_safe_to_define___extensions__ = yes
5300 then :
5301 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5302
5303 fi
5304 if test $ac_cv_should_define__xopen_source = yes
5305 then :
5306 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5307
5308 fi
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320 ######################
5321 ## Basic checks. ### (we need some results later on (e.g. $GCC)
5322 ######################
5323
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5325 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5326 set x ${MAKE-make}
5327 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5328 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5329 then :
5330 printf %s "(cached) " >&6
5331 else $as_nop
5332 cat >conftest.make <<\_ACEOF
5333 SHELL = /bin/sh
5334 all:
5335 @echo '@@@%%%=$(MAKE)=@@@%%%'
5336 _ACEOF
5337 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5338 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5339 *@@@%%%=?*=@@@%%%*)
5340 eval ac_cv_prog_make_${ac_make}_set=yes;;
5341 *)
5342 eval ac_cv_prog_make_${ac_make}_set=no;;
5343 esac
5344 rm -f conftest.make
5345 fi
5346 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5348 printf "%s\n" "yes" >&6; }
5349 SET_MAKE=
5350 else
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 printf "%s\n" "no" >&6; }
5353 SET_MAKE="MAKE=${MAKE-make}"
5354 fi
5355
5356 missing_dir=`cd $ac_aux_dir && pwd`
5357
5358 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
5359
5360
5361 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5362
5363
5364 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
5365
5366
5367 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5368
5369 # AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
5370 ac_ext=c
5371 ac_cpp='$CPP $CPPFLAGS'
5372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375 if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 printf %s "checking for $ac_word... " >&6; }
5380 if test ${ac_cv_prog_CC+y}
5381 then :
5382 printf %s "(cached) " >&6
5383 else $as_nop
5384 if test -n "$CC"; then
5385 ac_cv_prog_CC="$CC" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390 IFS=$as_save_IFS
5391 case $as_dir in #(((
5392 '') as_dir=./ ;;
5393 */) ;;
5394 *) as_dir=$as_dir/ ;;
5395 esac
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402 done
5403 done
5404 IFS=$as_save_IFS
5405
5406 fi
5407 fi
5408 CC=$ac_cv_prog_CC
5409 if test -n "$CC"; then
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5411 printf "%s\n" "$CC" >&6; }
5412 else
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 printf "%s\n" "no" >&6; }
5415 fi
5416
5417
5418 fi
5419 if test -z "$ac_cv_prog_CC"; then
5420 ac_ct_CC=$CC
5421 # Extract the first word of "gcc", so it can be a program name with args.
5422 set dummy gcc; ac_word=$2
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 printf %s "checking for $ac_word... " >&6; }
5425 if test ${ac_cv_prog_ac_ct_CC+y}
5426 then :
5427 printf %s "(cached) " >&6
5428 else $as_nop
5429 if test -n "$ac_ct_CC"; then
5430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 case $as_dir in #(((
5437 '') as_dir=./ ;;
5438 */) ;;
5439 *) as_dir=$as_dir/ ;;
5440 esac
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5443 ac_cv_prog_ac_ct_CC="gcc"
5444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447 done
5448 done
5449 IFS=$as_save_IFS
5450
5451 fi
5452 fi
5453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5454 if test -n "$ac_ct_CC"; then
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5456 printf "%s\n" "$ac_ct_CC" >&6; }
5457 else
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 printf "%s\n" "no" >&6; }
5460 fi
5461
5462 if test "x$ac_ct_CC" = x; then
5463 CC=""
5464 else
5465 case $cross_compiling:$ac_tool_warned in
5466 yes:)
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471 CC=$ac_ct_CC
5472 fi
5473 else
5474 CC="$ac_cv_prog_CC"
5475 fi
5476
5477 if test -z "$CC"; then
5478 if test -n "$ac_tool_prefix"; then
5479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5480 set dummy ${ac_tool_prefix}cc; ac_word=$2
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 printf %s "checking for $ac_word... " >&6; }
5483 if test ${ac_cv_prog_CC+y}
5484 then :
5485 printf %s "(cached) " >&6
5486 else $as_nop
5487 if test -n "$CC"; then
5488 ac_cv_prog_CC="$CC" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493 IFS=$as_save_IFS
5494 case $as_dir in #(((
5495 '') as_dir=./ ;;
5496 */) ;;
5497 *) as_dir=$as_dir/ ;;
5498 esac
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_CC="${ac_tool_prefix}cc"
5502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505 done
5506 done
5507 IFS=$as_save_IFS
5508
5509 fi
5510 fi
5511 CC=$ac_cv_prog_CC
5512 if test -n "$CC"; then
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5514 printf "%s\n" "$CC" >&6; }
5515 else
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 printf "%s\n" "no" >&6; }
5518 fi
5519
5520
5521 fi
5522 fi
5523 if test -z "$CC"; then
5524 # Extract the first word of "cc", so it can be a program name with args.
5525 set dummy cc; ac_word=$2
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 printf %s "checking for $ac_word... " >&6; }
5528 if test ${ac_cv_prog_CC+y}
5529 then :
5530 printf %s "(cached) " >&6
5531 else $as_nop
5532 if test -n "$CC"; then
5533 ac_cv_prog_CC="$CC" # Let the user override the test.
5534 else
5535 ac_prog_rejected=no
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539 IFS=$as_save_IFS
5540 case $as_dir in #(((
5541 '') as_dir=./ ;;
5542 */) ;;
5543 *) as_dir=$as_dir/ ;;
5544 esac
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5547 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5548 ac_prog_rejected=yes
5549 continue
5550 fi
5551 ac_cv_prog_CC="cc"
5552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 if test $ac_prog_rejected = yes; then
5560 # We found a bogon in the path, so make sure we never use it.
5561 set dummy $ac_cv_prog_CC
5562 shift
5563 if test $# != 0; then
5564 # We chose a different compiler from the bogus one.
5565 # However, it has the same basename, so the bogon will be chosen
5566 # first if we set CC to just the basename; use the full file name.
5567 shift
5568 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5569 fi
5570 fi
5571 fi
5572 fi
5573 CC=$ac_cv_prog_CC
5574 if test -n "$CC"; then
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5576 printf "%s\n" "$CC" >&6; }
5577 else
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 printf "%s\n" "no" >&6; }
5580 fi
5581
5582
5583 fi
5584 if test -z "$CC"; then
5585 if test -n "$ac_tool_prefix"; then
5586 for ac_prog in cl.exe
5587 do
5588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 printf %s "checking for $ac_word... " >&6; }
5592 if test ${ac_cv_prog_CC+y}
5593 then :
5594 printf %s "(cached) " >&6
5595 else $as_nop
5596 if test -n "$CC"; then
5597 ac_cv_prog_CC="$CC" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602 IFS=$as_save_IFS
5603 case $as_dir in #(((
5604 '') as_dir=./ ;;
5605 */) ;;
5606 *) as_dir=$as_dir/ ;;
5607 esac
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5612 break 2
5613 fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi
5619 fi
5620 CC=$ac_cv_prog_CC
5621 if test -n "$CC"; then
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5623 printf "%s\n" "$CC" >&6; }
5624 else
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 printf "%s\n" "no" >&6; }
5627 fi
5628
5629
5630 test -n "$CC" && break
5631 done
5632 fi
5633 if test -z "$CC"; then
5634 ac_ct_CC=$CC
5635 for ac_prog in cl.exe
5636 do
5637 # Extract the first word of "$ac_prog", so it can be a program name with args.
5638 set dummy $ac_prog; ac_word=$2
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 printf %s "checking for $ac_word... " >&6; }
5641 if test ${ac_cv_prog_ac_ct_CC+y}
5642 then :
5643 printf %s "(cached) " >&6
5644 else $as_nop
5645 if test -n "$ac_ct_CC"; then
5646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651 IFS=$as_save_IFS
5652 case $as_dir in #(((
5653 '') as_dir=./ ;;
5654 */) ;;
5655 *) as_dir=$as_dir/ ;;
5656 esac
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_ac_ct_CC="$ac_prog"
5660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663 done
5664 done
5665 IFS=$as_save_IFS
5666
5667 fi
5668 fi
5669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5670 if test -n "$ac_ct_CC"; then
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5672 printf "%s\n" "$ac_ct_CC" >&6; }
5673 else
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 printf "%s\n" "no" >&6; }
5676 fi
5677
5678
5679 test -n "$ac_ct_CC" && break
5680 done
5681
5682 if test "x$ac_ct_CC" = x; then
5683 CC=""
5684 else
5685 case $cross_compiling:$ac_tool_warned in
5686 yes:)
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5689 ac_tool_warned=yes ;;
5690 esac
5691 CC=$ac_ct_CC
5692 fi
5693 fi
5694
5695 fi
5696 if test -z "$CC"; then
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}clang; ac_word=$2
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 printf %s "checking for $ac_word... " >&6; }
5702 if test ${ac_cv_prog_CC+y}
5703 then :
5704 printf %s "(cached) " >&6
5705 else $as_nop
5706 if test -n "$CC"; then
5707 ac_cv_prog_CC="$CC" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712 IFS=$as_save_IFS
5713 case $as_dir in #(((
5714 '') as_dir=./ ;;
5715 */) ;;
5716 *) as_dir=$as_dir/ ;;
5717 esac
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_CC="${ac_tool_prefix}clang"
5721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5722 break 2
5723 fi
5724 done
5725 done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 CC=$ac_cv_prog_CC
5731 if test -n "$CC"; then
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5733 printf "%s\n" "$CC" >&6; }
5734 else
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 printf "%s\n" "no" >&6; }
5737 fi
5738
5739
5740 fi
5741 if test -z "$ac_cv_prog_CC"; then
5742 ac_ct_CC=$CC
5743 # Extract the first word of "clang", so it can be a program name with args.
5744 set dummy clang; ac_word=$2
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 printf %s "checking for $ac_word... " >&6; }
5747 if test ${ac_cv_prog_ac_ct_CC+y}
5748 then :
5749 printf %s "(cached) " >&6
5750 else $as_nop
5751 if test -n "$ac_ct_CC"; then
5752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757 IFS=$as_save_IFS
5758 case $as_dir in #(((
5759 '') as_dir=./ ;;
5760 */) ;;
5761 *) as_dir=$as_dir/ ;;
5762 esac
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_ac_ct_CC="clang"
5766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769 done
5770 done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5776 if test -n "$ac_ct_CC"; then
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5778 printf "%s\n" "$ac_ct_CC" >&6; }
5779 else
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 printf "%s\n" "no" >&6; }
5782 fi
5783
5784 if test "x$ac_ct_CC" = x; then
5785 CC=""
5786 else
5787 case $cross_compiling:$ac_tool_warned in
5788 yes:)
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned=yes ;;
5792 esac
5793 CC=$ac_ct_CC
5794 fi
5795 else
5796 CC="$ac_cv_prog_CC"
5797 fi
5798
5799 fi
5800
5801
5802 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5803 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5804 as_fn_error $? "no acceptable C compiler found in \$PATH
5805 See \`config.log' for more details" "$LINENO" 5; }
5806
5807 # Provide some information about the compiler.
5808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5809 set X $ac_compile
5810 ac_compiler=$2
5811 for ac_option in --version -v -V -qversion -version; do
5812 { { ac_try="$ac_compiler $ac_option >&5"
5813 case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816 esac
5817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5818 printf "%s\n" "$ac_try_echo"; } >&5
5819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5820 ac_status=$?
5821 if test -s conftest.err; then
5822 sed '10a\
5823 ... rest of stderr output deleted ...
5824 10q' conftest.err >conftest.er1
5825 cat conftest.er1 >&5
5826 fi
5827 rm -f conftest.er1 conftest.err
5828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829 test $ac_status = 0; }
5830 done
5831
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5833 printf %s "checking whether the compiler supports GNU C... " >&6; }
5834 if test ${ac_cv_c_compiler_gnu+y}
5835 then :
5836 printf %s "(cached) " >&6
5837 else $as_nop
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840
5841 int
5842 main (void)
5843 {
5844 #ifndef __GNUC__
5845 choke me
5846 #endif
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_c_try_compile "$LINENO"
5853 then :
5854 ac_compiler_gnu=yes
5855 else $as_nop
5856 ac_compiler_gnu=no
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5860
5861 fi
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5863 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5865
5866 if test $ac_compiler_gnu = yes; then
5867 GCC=yes
5868 else
5869 GCC=
5870 fi
5871 ac_test_CFLAGS=${CFLAGS+y}
5872 ac_save_CFLAGS=$CFLAGS
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5874 printf %s "checking whether $CC accepts -g... " >&6; }
5875 if test ${ac_cv_prog_cc_g+y}
5876 then :
5877 printf %s "(cached) " >&6
5878 else $as_nop
5879 ac_save_c_werror_flag=$ac_c_werror_flag
5880 ac_c_werror_flag=yes
5881 ac_cv_prog_cc_g=no
5882 CFLAGS="-g"
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885
5886 int
5887 main (void)
5888 {
5889
5890 ;
5891 return 0;
5892 }
5893 _ACEOF
5894 if ac_fn_c_try_compile "$LINENO"
5895 then :
5896 ac_cv_prog_cc_g=yes
5897 else $as_nop
5898 CFLAGS=""
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5901
5902 int
5903 main (void)
5904 {
5905
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 if ac_fn_c_try_compile "$LINENO"
5911 then :
5912
5913 else $as_nop
5914 ac_c_werror_flag=$ac_save_c_werror_flag
5915 CFLAGS="-g"
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918
5919 int
5920 main (void)
5921 {
5922
5923 ;
5924 return 0;
5925 }
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"
5928 then :
5929 ac_cv_prog_cc_g=yes
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5932 fi
5933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936 ac_c_werror_flag=$ac_save_c_werror_flag
5937 fi
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5939 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5940 if test $ac_test_CFLAGS; then
5941 CFLAGS=$ac_save_CFLAGS
5942 elif test $ac_cv_prog_cc_g = yes; then
5943 if test "$GCC" = yes; then
5944 CFLAGS="-g -O2"
5945 else
5946 CFLAGS="-g"
5947 fi
5948 else
5949 if test "$GCC" = yes; then
5950 CFLAGS="-O2"
5951 else
5952 CFLAGS=
5953 fi
5954 fi
5955 ac_prog_cc_stdc=no
5956 if test x$ac_prog_cc_stdc = xno
5957 then :
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5959 printf %s "checking for $CC option to enable C11 features... " >&6; }
5960 if test ${ac_cv_prog_cc_c11+y}
5961 then :
5962 printf %s "(cached) " >&6
5963 else $as_nop
5964 ac_cv_prog_cc_c11=no
5965 ac_save_CC=$CC
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 $ac_c_conftest_c11_program
5969 _ACEOF
5970 for ac_arg in '' -std=gnu11
5971 do
5972 CC="$ac_save_CC $ac_arg"
5973 if ac_fn_c_try_compile "$LINENO"
5974 then :
5975 ac_cv_prog_cc_c11=$ac_arg
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.beam
5978 test "x$ac_cv_prog_cc_c11" != "xno" && break
5979 done
5980 rm -f conftest.$ac_ext
5981 CC=$ac_save_CC
5982 fi
5983
5984 if test "x$ac_cv_prog_cc_c11" = xno
5985 then :
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5987 printf "%s\n" "unsupported" >&6; }
5988 else $as_nop
5989 if test "x$ac_cv_prog_cc_c11" = x
5990 then :
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5992 printf "%s\n" "none needed" >&6; }
5993 else $as_nop
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5995 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5996 CC="$CC $ac_cv_prog_cc_c11"
5997 fi
5998 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5999 ac_prog_cc_stdc=c11
6000 fi
6001 fi
6002 if test x$ac_prog_cc_stdc = xno
6003 then :
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6005 printf %s "checking for $CC option to enable C99 features... " >&6; }
6006 if test ${ac_cv_prog_cc_c99+y}
6007 then :
6008 printf %s "(cached) " >&6
6009 else $as_nop
6010 ac_cv_prog_cc_c99=no
6011 ac_save_CC=$CC
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 $ac_c_conftest_c99_program
6015 _ACEOF
6016 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6017 do
6018 CC="$ac_save_CC $ac_arg"
6019 if ac_fn_c_try_compile "$LINENO"
6020 then :
6021 ac_cv_prog_cc_c99=$ac_arg
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.beam
6024 test "x$ac_cv_prog_cc_c99" != "xno" && break
6025 done
6026 rm -f conftest.$ac_ext
6027 CC=$ac_save_CC
6028 fi
6029
6030 if test "x$ac_cv_prog_cc_c99" = xno
6031 then :
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6033 printf "%s\n" "unsupported" >&6; }
6034 else $as_nop
6035 if test "x$ac_cv_prog_cc_c99" = x
6036 then :
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6038 printf "%s\n" "none needed" >&6; }
6039 else $as_nop
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6041 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6042 CC="$CC $ac_cv_prog_cc_c99"
6043 fi
6044 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6045 ac_prog_cc_stdc=c99
6046 fi
6047 fi
6048 if test x$ac_prog_cc_stdc = xno
6049 then :
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6051 printf %s "checking for $CC option to enable C89 features... " >&6; }
6052 if test ${ac_cv_prog_cc_c89+y}
6053 then :
6054 printf %s "(cached) " >&6
6055 else $as_nop
6056 ac_cv_prog_cc_c89=no
6057 ac_save_CC=$CC
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 $ac_c_conftest_c89_program
6061 _ACEOF
6062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6063 do
6064 CC="$ac_save_CC $ac_arg"
6065 if ac_fn_c_try_compile "$LINENO"
6066 then :
6067 ac_cv_prog_cc_c89=$ac_arg
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext conftest.beam
6070 test "x$ac_cv_prog_cc_c89" != "xno" && break
6071 done
6072 rm -f conftest.$ac_ext
6073 CC=$ac_save_CC
6074 fi
6075
6076 if test "x$ac_cv_prog_cc_c89" = xno
6077 then :
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6079 printf "%s\n" "unsupported" >&6; }
6080 else $as_nop
6081 if test "x$ac_cv_prog_cc_c89" = x
6082 then :
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6084 printf "%s\n" "none needed" >&6; }
6085 else $as_nop
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6087 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6088 CC="$CC $ac_cv_prog_cc_c89"
6089 fi
6090 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6091 ac_prog_cc_stdc=c89
6092 fi
6093 fi
6094
6095 ac_ext=c
6096 ac_cpp='$CPP $CPPFLAGS'
6097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100
6101
6102 ac_ext=c
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6108 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6109 if test ${am_cv_prog_cc_c_o+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else $as_nop
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115
6116 int
6117 main (void)
6118 {
6119
6120 ;
6121 return 0;
6122 }
6123 _ACEOF
6124 # Make sure it works both with $CC and with simple cc.
6125 # Following AC_PROG_CC_C_O, we do the test twice because some
6126 # compilers refuse to overwrite an existing .o file with -o,
6127 # though they will create one.
6128 am_cv_prog_cc_c_o=yes
6129 for am_i in 1 2; do
6130 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6131 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } \
6135 && test -f conftest2.$ac_objext; then
6136 : OK
6137 else
6138 am_cv_prog_cc_c_o=no
6139 break
6140 fi
6141 done
6142 rm -f core conftest*
6143 unset am_i
6144 fi
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6146 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6147 if test "$am_cv_prog_cc_c_o" != yes; then
6148 # Losing compiler, so override with the script.
6149 # FIXME: It is wrong to rewrite CC.
6150 # But if we don't then we get into trouble of one sort or another.
6151 # A longer-term fix would be to have automake use am__CC in this case,
6152 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6153 CC="$am_aux_dir/compile $CC"
6154 fi
6155 ac_ext=c
6156 ac_cpp='$CPP $CPPFLAGS'
6157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6160
6161
6162 depcc="$CC" am_compiler_list=
6163
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6165 printf %s "checking dependency style of $depcc... " >&6; }
6166 if test ${am_cv_CC_dependencies_compiler_type+y}
6167 then :
6168 printf %s "(cached) " >&6
6169 else $as_nop
6170 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6171 # We make a subdir and do the tests there. Otherwise we can end up
6172 # making bogus files that we don't know about and never remove. For
6173 # instance it was reported that on HP-UX the gcc test will end up
6174 # making a dummy file named 'D' -- because '-MD' means "put the output
6175 # in D".
6176 rm -rf conftest.dir
6177 mkdir conftest.dir
6178 # Copy depcomp to subdir because otherwise we won't find it if we're
6179 # using a relative directory.
6180 cp "$am_depcomp" conftest.dir
6181 cd conftest.dir
6182 # We will build objects and dependencies in a subdirectory because
6183 # it helps to detect inapplicable dependency modes. For instance
6184 # both Tru64's cc and ICC support -MD to output dependencies as a
6185 # side effect of compilation, but ICC will put the dependencies in
6186 # the current directory while Tru64 will put them in the object
6187 # directory.
6188 mkdir sub
6189
6190 am_cv_CC_dependencies_compiler_type=none
6191 if test "$am_compiler_list" = ""; then
6192 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6193 fi
6194 am__universal=false
6195 case " $depcc " in #(
6196 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6197 esac
6198
6199 for depmode in $am_compiler_list; do
6200 # Setup a source with many dependencies, because some compilers
6201 # like to wrap large dependency lists on column 80 (with \), and
6202 # we should not choose a depcomp mode which is confused by this.
6203 #
6204 # We need to recreate these files for each test, as the compiler may
6205 # overwrite some of them when testing with obscure command lines.
6206 # This happens at least with the AIX C compiler.
6207 : > sub/conftest.c
6208 for i in 1 2 3 4 5 6; do
6209 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6210 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6211 # Solaris 10 /bin/sh.
6212 echo '/* dummy */' > sub/conftst$i.h
6213 done
6214 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6215
6216 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6217 # mode. It turns out that the SunPro C++ compiler does not properly
6218 # handle '-M -o', and we need to detect this. Also, some Intel
6219 # versions had trouble with output in subdirs.
6220 am__obj=sub/conftest.${OBJEXT-o}
6221 am__minus_obj="-o $am__obj"
6222 case $depmode in
6223 gcc)
6224 # This depmode causes a compiler race in universal mode.
6225 test "$am__universal" = false || continue
6226 ;;
6227 nosideeffect)
6228 # After this tag, mechanisms are not by side-effect, so they'll
6229 # only be used when explicitly requested.
6230 if test "x$enable_dependency_tracking" = xyes; then
6231 continue
6232 else
6233 break
6234 fi
6235 ;;
6236 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6237 # This compiler won't grok '-c -o', but also, the minuso test has
6238 # not run yet. These depmodes are late enough in the game, and
6239 # so weak that their functioning should not be impacted.
6240 am__obj=conftest.${OBJEXT-o}
6241 am__minus_obj=
6242 ;;
6243 none) break ;;
6244 esac
6245 if depmode=$depmode \
6246 source=sub/conftest.c object=$am__obj \
6247 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6248 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6249 >/dev/null 2>conftest.err &&
6250 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6251 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6252 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6253 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6254 # icc doesn't choke on unknown options, it will just issue warnings
6255 # or remarks (even with -Werror). So we grep stderr for any message
6256 # that says an option was ignored or not supported.
6257 # When given -MP, icc 7.0 and 7.1 complain thusly:
6258 # icc: Command line warning: ignoring option '-M'; no argument required
6259 # The diagnosis changed in icc 8.0:
6260 # icc: Command line remark: option '-MP' not supported
6261 if (grep 'ignoring option' conftest.err ||
6262 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6263 am_cv_CC_dependencies_compiler_type=$depmode
6264 break
6265 fi
6266 fi
6267 done
6268
6269 cd ..
6270 rm -rf conftest.dir
6271 else
6272 am_cv_CC_dependencies_compiler_type=none
6273 fi
6274
6275 fi
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6277 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6278 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6279
6280 if
6281 test "x$enable_dependency_tracking" != xno \
6282 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6283 am__fastdepCC_TRUE=
6284 am__fastdepCC_FALSE='#'
6285 else
6286 am__fastdepCC_TRUE='#'
6287 am__fastdepCC_FALSE=
6288 fi
6289
6290
6291 ac_ext=c
6292 ac_cpp='$CPP $CPPFLAGS'
6293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6297 printf %s "checking how to run the C preprocessor... " >&6; }
6298 # On Suns, sometimes $CPP names a directory.
6299 if test -n "$CPP" && test -d "$CPP"; then
6300 CPP=
6301 fi
6302 if test -z "$CPP"; then
6303 if test ${ac_cv_prog_CPP+y}
6304 then :
6305 printf %s "(cached) " >&6
6306 else $as_nop
6307 # Double quotes because $CC needs to be expanded
6308 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6309 do
6310 ac_preproc_ok=false
6311 for ac_c_preproc_warn_flag in '' yes
6312 do
6313 # Use a header file that comes with gcc, so configuring glibc
6314 # with a fresh cross-compiler works.
6315 # On the NeXT, cc -E runs the code through the compiler's parser,
6316 # not just through cpp. "Syntax error" is here to catch this case.
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 #include <limits.h>
6320 Syntax error
6321 _ACEOF
6322 if ac_fn_c_try_cpp "$LINENO"
6323 then :
6324
6325 else $as_nop
6326 # Broken: fails on valid input.
6327 continue
6328 fi
6329 rm -f conftest.err conftest.i conftest.$ac_ext
6330
6331 # OK, works on sane cases. Now check whether nonexistent headers
6332 # can be detected and how.
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6335 #include <ac_nonexistent.h>
6336 _ACEOF
6337 if ac_fn_c_try_cpp "$LINENO"
6338 then :
6339 # Broken: success on invalid input.
6340 continue
6341 else $as_nop
6342 # Passes both tests.
6343 ac_preproc_ok=:
6344 break
6345 fi
6346 rm -f conftest.err conftest.i conftest.$ac_ext
6347
6348 done
6349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6350 rm -f conftest.i conftest.err conftest.$ac_ext
6351 if $ac_preproc_ok
6352 then :
6353 break
6354 fi
6355
6356 done
6357 ac_cv_prog_CPP=$CPP
6358
6359 fi
6360 CPP=$ac_cv_prog_CPP
6361 else
6362 ac_cv_prog_CPP=$CPP
6363 fi
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6365 printf "%s\n" "$CPP" >&6; }
6366 ac_preproc_ok=false
6367 for ac_c_preproc_warn_flag in '' yes
6368 do
6369 # Use a header file that comes with gcc, so configuring glibc
6370 # with a fresh cross-compiler works.
6371 # On the NeXT, cc -E runs the code through the compiler's parser,
6372 # not just through cpp. "Syntax error" is here to catch this case.
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375 #include <limits.h>
6376 Syntax error
6377 _ACEOF
6378 if ac_fn_c_try_cpp "$LINENO"
6379 then :
6380
6381 else $as_nop
6382 # Broken: fails on valid input.
6383 continue
6384 fi
6385 rm -f conftest.err conftest.i conftest.$ac_ext
6386
6387 # OK, works on sane cases. Now check whether nonexistent headers
6388 # can be detected and how.
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6391 #include <ac_nonexistent.h>
6392 _ACEOF
6393 if ac_fn_c_try_cpp "$LINENO"
6394 then :
6395 # Broken: success on invalid input.
6396 continue
6397 else $as_nop
6398 # Passes both tests.
6399 ac_preproc_ok=:
6400 break
6401 fi
6402 rm -f conftest.err conftest.i conftest.$ac_ext
6403
6404 done
6405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6406 rm -f conftest.i conftest.err conftest.$ac_ext
6407 if $ac_preproc_ok
6408 then :
6409
6410 else $as_nop
6411 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6412 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6413 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6414 See \`config.log' for more details" "$LINENO" 5; }
6415 fi
6416
6417 ac_ext=c
6418 ac_cpp='$CPP $CPPFLAGS'
6419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422
6423
6424 # By default we simply use the C compiler to build assembly code.
6425
6426 test "${CCAS+set}" = set || CCAS=$CC
6427 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6428
6429
6430
6431 depcc="$CCAS" am_compiler_list=
6432
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6434 printf %s "checking dependency style of $depcc... " >&6; }
6435 if test ${am_cv_CCAS_dependencies_compiler_type+y}
6436 then :
6437 printf %s "(cached) " >&6
6438 else $as_nop
6439 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6440 # We make a subdir and do the tests there. Otherwise we can end up
6441 # making bogus files that we don't know about and never remove. For
6442 # instance it was reported that on HP-UX the gcc test will end up
6443 # making a dummy file named 'D' -- because '-MD' means "put the output
6444 # in D".
6445 rm -rf conftest.dir
6446 mkdir conftest.dir
6447 # Copy depcomp to subdir because otherwise we won't find it if we're
6448 # using a relative directory.
6449 cp "$am_depcomp" conftest.dir
6450 cd conftest.dir
6451 # We will build objects and dependencies in a subdirectory because
6452 # it helps to detect inapplicable dependency modes. For instance
6453 # both Tru64's cc and ICC support -MD to output dependencies as a
6454 # side effect of compilation, but ICC will put the dependencies in
6455 # the current directory while Tru64 will put them in the object
6456 # directory.
6457 mkdir sub
6458
6459 am_cv_CCAS_dependencies_compiler_type=none
6460 if test "$am_compiler_list" = ""; then
6461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6462 fi
6463 am__universal=false
6464
6465
6466 for depmode in $am_compiler_list; do
6467 # Setup a source with many dependencies, because some compilers
6468 # like to wrap large dependency lists on column 80 (with \), and
6469 # we should not choose a depcomp mode which is confused by this.
6470 #
6471 # We need to recreate these files for each test, as the compiler may
6472 # overwrite some of them when testing with obscure command lines.
6473 # This happens at least with the AIX C compiler.
6474 : > sub/conftest.c
6475 for i in 1 2 3 4 5 6; do
6476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6477 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6478 # Solaris 10 /bin/sh.
6479 echo '/* dummy */' > sub/conftst$i.h
6480 done
6481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6482
6483 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6484 # mode. It turns out that the SunPro C++ compiler does not properly
6485 # handle '-M -o', and we need to detect this. Also, some Intel
6486 # versions had trouble with output in subdirs.
6487 am__obj=sub/conftest.${OBJEXT-o}
6488 am__minus_obj="-o $am__obj"
6489 case $depmode in
6490 gcc)
6491 # This depmode causes a compiler race in universal mode.
6492 test "$am__universal" = false || continue
6493 ;;
6494 nosideeffect)
6495 # After this tag, mechanisms are not by side-effect, so they'll
6496 # only be used when explicitly requested.
6497 if test "x$enable_dependency_tracking" = xyes; then
6498 continue
6499 else
6500 break
6501 fi
6502 ;;
6503 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6504 # This compiler won't grok '-c -o', but also, the minuso test has
6505 # not run yet. These depmodes are late enough in the game, and
6506 # so weak that their functioning should not be impacted.
6507 am__obj=conftest.${OBJEXT-o}
6508 am__minus_obj=
6509 ;;
6510 none) break ;;
6511 esac
6512 if depmode=$depmode \
6513 source=sub/conftest.c object=$am__obj \
6514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6515 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6516 >/dev/null 2>conftest.err &&
6517 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6519 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6521 # icc doesn't choke on unknown options, it will just issue warnings
6522 # or remarks (even with -Werror). So we grep stderr for any message
6523 # that says an option was ignored or not supported.
6524 # When given -MP, icc 7.0 and 7.1 complain thusly:
6525 # icc: Command line warning: ignoring option '-M'; no argument required
6526 # The diagnosis changed in icc 8.0:
6527 # icc: Command line remark: option '-MP' not supported
6528 if (grep 'ignoring option' conftest.err ||
6529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6530 am_cv_CCAS_dependencies_compiler_type=$depmode
6531 break
6532 fi
6533 fi
6534 done
6535
6536 cd ..
6537 rm -rf conftest.dir
6538 else
6539 am_cv_CCAS_dependencies_compiler_type=none
6540 fi
6541
6542 fi
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6544 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6545 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6546
6547 if
6548 test "x$enable_dependency_tracking" != xno \
6549 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6550 am__fastdepCCAS_TRUE=
6551 am__fastdepCCAS_FALSE='#'
6552 else
6553 am__fastdepCCAS_TRUE='#'
6554 am__fastdepCCAS_FALSE=
6555 fi
6556
6557
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6559 printf %s "checking for library containing strerror... " >&6; }
6560 if test ${ac_cv_search_strerror+y}
6561 then :
6562 printf %s "(cached) " >&6
6563 else $as_nop
6564 ac_func_search_save_LIBS=$LIBS
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567
6568 /* Override any GCC internal prototype to avoid an error.
6569 Use char because int might match the return type of a GCC
6570 builtin and then its argument prototype would still apply. */
6571 char strerror ();
6572 int
6573 main (void)
6574 {
6575 return strerror ();
6576 ;
6577 return 0;
6578 }
6579 _ACEOF
6580 for ac_lib in '' cposix
6581 do
6582 if test -z "$ac_lib"; then
6583 ac_res="none required"
6584 else
6585 ac_res=-l$ac_lib
6586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6587 fi
6588 if ac_fn_c_try_link "$LINENO"
6589 then :
6590 ac_cv_search_strerror=$ac_res
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6593 conftest$ac_exeext
6594 if test ${ac_cv_search_strerror+y}
6595 then :
6596 break
6597 fi
6598 done
6599 if test ${ac_cv_search_strerror+y}
6600 then :
6601
6602 else $as_nop
6603 ac_cv_search_strerror=no
6604 fi
6605 rm conftest.$ac_ext
6606 LIBS=$ac_func_search_save_LIBS
6607 fi
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6609 printf "%s\n" "$ac_cv_search_strerror" >&6; }
6610 ac_res=$ac_cv_search_strerror
6611 if test "$ac_res" != no
6612 then :
6613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6614
6615 fi
6616
6617
6618 for ac_prog in gawk mawk nawk awk
6619 do
6620 # Extract the first word of "$ac_prog", so it can be a program name with args.
6621 set dummy $ac_prog; ac_word=$2
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 printf %s "checking for $ac_word... " >&6; }
6624 if test ${ac_cv_prog_AWK+y}
6625 then :
6626 printf %s "(cached) " >&6
6627 else $as_nop
6628 if test -n "$AWK"; then
6629 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634 IFS=$as_save_IFS
6635 case $as_dir in #(((
6636 '') as_dir=./ ;;
6637 */) ;;
6638 *) as_dir=$as_dir/ ;;
6639 esac
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_AWK="$ac_prog"
6643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 AWK=$ac_cv_prog_AWK
6653 if test -n "$AWK"; then
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6655 printf "%s\n" "$AWK" >&6; }
6656 else
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 printf "%s\n" "no" >&6; }
6659 fi
6660
6661
6662 test -n "$AWK" && break
6663 done
6664
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6666 printf %s "checking for grep that handles long lines and -e... " >&6; }
6667 if test ${ac_cv_path_GREP+y}
6668 then :
6669 printf %s "(cached) " >&6
6670 else $as_nop
6671 if test -z "$GREP"; then
6672 ac_path_GREP_found=false
6673 # Loop through the user's path and test for each of PROGNAME-LIST
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6676 do
6677 IFS=$as_save_IFS
6678 case $as_dir in #(((
6679 '') as_dir=./ ;;
6680 */) ;;
6681 *) as_dir=$as_dir/ ;;
6682 esac
6683 for ac_prog in grep ggrep
6684 do
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6687 as_fn_executable_p "$ac_path_GREP" || continue
6688 # Check for GNU ac_path_GREP and select it if it is found.
6689 # Check for GNU $ac_path_GREP
6690 case `"$ac_path_GREP" --version 2>&1` in
6691 *GNU*)
6692 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6693 *)
6694 ac_count=0
6695 printf %s 0123456789 >"conftest.in"
6696 while :
6697 do
6698 cat "conftest.in" "conftest.in" >"conftest.tmp"
6699 mv "conftest.tmp" "conftest.in"
6700 cp "conftest.in" "conftest.nl"
6701 printf "%s\n" 'GREP' >> "conftest.nl"
6702 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6704 as_fn_arith $ac_count + 1 && ac_count=$as_val
6705 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6706 # Best one so far, save it but keep looking for a better one
6707 ac_cv_path_GREP="$ac_path_GREP"
6708 ac_path_GREP_max=$ac_count
6709 fi
6710 # 10*(2^10) chars as input seems more than enough
6711 test $ac_count -gt 10 && break
6712 done
6713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6714 esac
6715
6716 $ac_path_GREP_found && break 3
6717 done
6718 done
6719 done
6720 IFS=$as_save_IFS
6721 if test -z "$ac_cv_path_GREP"; then
6722 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6723 fi
6724 else
6725 ac_cv_path_GREP=$GREP
6726 fi
6727
6728 fi
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6730 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6731 GREP="$ac_cv_path_GREP"
6732
6733
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6735 printf %s "checking for fgrep... " >&6; }
6736 if test ${ac_cv_path_FGREP+y}
6737 then :
6738 printf %s "(cached) " >&6
6739 else $as_nop
6740 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6741 then ac_cv_path_FGREP="$GREP -F"
6742 else
6743 if test -z "$FGREP"; then
6744 ac_path_FGREP_found=false
6745 # Loop through the user's path and test for each of PROGNAME-LIST
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6748 do
6749 IFS=$as_save_IFS
6750 case $as_dir in #(((
6751 '') as_dir=./ ;;
6752 */) ;;
6753 *) as_dir=$as_dir/ ;;
6754 esac
6755 for ac_prog in fgrep
6756 do
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6759 as_fn_executable_p "$ac_path_FGREP" || continue
6760 # Check for GNU ac_path_FGREP and select it if it is found.
6761 # Check for GNU $ac_path_FGREP
6762 case `"$ac_path_FGREP" --version 2>&1` in
6763 *GNU*)
6764 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6765 *)
6766 ac_count=0
6767 printf %s 0123456789 >"conftest.in"
6768 while :
6769 do
6770 cat "conftest.in" "conftest.in" >"conftest.tmp"
6771 mv "conftest.tmp" "conftest.in"
6772 cp "conftest.in" "conftest.nl"
6773 printf "%s\n" 'FGREP' >> "conftest.nl"
6774 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6776 as_fn_arith $ac_count + 1 && ac_count=$as_val
6777 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6778 # Best one so far, save it but keep looking for a better one
6779 ac_cv_path_FGREP="$ac_path_FGREP"
6780 ac_path_FGREP_max=$ac_count
6781 fi
6782 # 10*(2^10) chars as input seems more than enough
6783 test $ac_count -gt 10 && break
6784 done
6785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6786 esac
6787
6788 $ac_path_FGREP_found && break 3
6789 done
6790 done
6791 done
6792 IFS=$as_save_IFS
6793 if test -z "$ac_cv_path_FGREP"; then
6794 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6795 fi
6796 else
6797 ac_cv_path_FGREP=$FGREP
6798 fi
6799
6800 fi
6801 fi
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6803 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6804 FGREP="$ac_cv_path_FGREP"
6805
6806
6807
6808 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
6809 case $host in
6810 *-*-linux*)
6811 if test -n "$LD_LIBRARY_PATH"; then
6812 saved_LDFLAGS="$LDFLAGS"
6813 LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
6814 LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
6816 printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; }
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6819
6820 int main (void) { return 0; }
6821
6822 _ACEOF
6823 if ac_fn_c_try_link "$LINENO"
6824 then :
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
6826 printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
6827 else $as_nop
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 printf "%s\n" "no" >&6; }
6830 LDADD_FOR_TESTS_KLUDGE=""
6831
6832 fi
6833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6834 conftest$ac_exeext conftest.$ac_ext
6835 LDFLAGS="$saved_LDFLAGS"
6836 fi
6837 ;;
6838 esac
6839
6840
6841 VERSION_NUMBER=0x010c02
6842
6843
6844 # We need to compile and run a program on the build machine.
6845 # Put a plausible default for CC_FOR_BUILD in Makefile.
6846 if test -z "$CC_FOR_BUILD"; then
6847 if test "x$cross_compiling" = "xno"; then
6848 CC_FOR_BUILD='$(CC)'
6849 else
6850 CC_FOR_BUILD=gcc
6851 fi
6852 fi
6853
6854 # Also set EXEEXT_FOR_BUILD.
6855 if test "x$cross_compiling" = "xno"; then
6856 EXEEXT_FOR_BUILD='$(EXEEXT)'
6857 else
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
6859 printf %s "checking for build system executable suffix... " >&6; }
6860 if test ${bfd_cv_build_exeext+y}
6861 then :
6862 printf %s "(cached) " >&6
6863 else $as_nop
6864 rm -f conftest*
6865 echo 'int main (void) { return 0; }' > conftest.c
6866 bfd_cv_build_exeext=
6867 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
6868 for file in conftest.*; do
6869 case $file in
6870 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
6871 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
6872 esac
6873 done
6874 rm -f conftest*
6875 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
6876 fi
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
6878 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
6879 EXEEXT_FOR_BUILD=""
6880 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
6881 fi
6882
6883
6884
6885
6886 case `pwd` in
6887 *\ * | *\ *)
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6889 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6890 esac
6891
6892
6893
6894 macro_version='2.4.7'
6895 macro_revision='2.4.7'
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910 ltmain=$ac_aux_dir/ltmain.sh
6911
6912 # Backslashify metacharacters that are still active within
6913 # double-quoted strings.
6914 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6915
6916 # Same as above, but do not quote variable references.
6917 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6918
6919 # Sed substitution to delay expansion of an escaped shell variable in a
6920 # double_quote_subst'ed string.
6921 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6922
6923 # Sed substitution to delay expansion of an escaped single quote.
6924 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6925
6926 # Sed substitution to avoid accidental globbing in evaled expressions
6927 no_glob_subst='s/\*/\\\*/g'
6928
6929 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6930 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6931 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6932
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6934 printf %s "checking how to print strings... " >&6; }
6935 # Test print first, because it will be a builtin if present.
6936 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6937 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6938 ECHO='print -r --'
6939 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6940 ECHO='printf %s\n'
6941 else
6942 # Use this function as a fallback that always works.
6943 func_fallback_echo ()
6944 {
6945 eval 'cat <<_LTECHO_EOF
6946 $1
6947 _LTECHO_EOF'
6948 }
6949 ECHO='func_fallback_echo'
6950 fi
6951
6952 # func_echo_all arg...
6953 # Invoke $ECHO with all args, space-separated.
6954 func_echo_all ()
6955 {
6956 $ECHO ""
6957 }
6958
6959 case $ECHO in
6960 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6961 printf "%s\n" "printf" >&6; } ;;
6962 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6963 printf "%s\n" "print -r" >&6; } ;;
6964 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6965 printf "%s\n" "cat" >&6; } ;;
6966 esac
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6982 printf %s "checking for a sed that does not truncate output... " >&6; }
6983 if test ${ac_cv_path_SED+y}
6984 then :
6985 printf %s "(cached) " >&6
6986 else $as_nop
6987 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6988 for ac_i in 1 2 3 4 5 6 7; do
6989 ac_script="$ac_script$as_nl$ac_script"
6990 done
6991 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6992 { ac_script=; unset ac_script;}
6993 if test -z "$SED"; then
6994 ac_path_SED_found=false
6995 # Loop through the user's path and test for each of PROGNAME-LIST
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999 IFS=$as_save_IFS
7000 case $as_dir in #(((
7001 '') as_dir=./ ;;
7002 */) ;;
7003 *) as_dir=$as_dir/ ;;
7004 esac
7005 for ac_prog in sed gsed
7006 do
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7009 as_fn_executable_p "$ac_path_SED" || continue
7010 # Check for GNU ac_path_SED and select it if it is found.
7011 # Check for GNU $ac_path_SED
7012 case `"$ac_path_SED" --version 2>&1` in
7013 *GNU*)
7014 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7015 *)
7016 ac_count=0
7017 printf %s 0123456789 >"conftest.in"
7018 while :
7019 do
7020 cat "conftest.in" "conftest.in" >"conftest.tmp"
7021 mv "conftest.tmp" "conftest.in"
7022 cp "conftest.in" "conftest.nl"
7023 printf "%s\n" '' >> "conftest.nl"
7024 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7026 as_fn_arith $ac_count + 1 && ac_count=$as_val
7027 if test $ac_count -gt ${ac_path_SED_max-0}; then
7028 # Best one so far, save it but keep looking for a better one
7029 ac_cv_path_SED="$ac_path_SED"
7030 ac_path_SED_max=$ac_count
7031 fi
7032 # 10*(2^10) chars as input seems more than enough
7033 test $ac_count -gt 10 && break
7034 done
7035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7036 esac
7037
7038 $ac_path_SED_found && break 3
7039 done
7040 done
7041 done
7042 IFS=$as_save_IFS
7043 if test -z "$ac_cv_path_SED"; then
7044 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7045 fi
7046 else
7047 ac_cv_path_SED=$SED
7048 fi
7049
7050 fi
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7052 printf "%s\n" "$ac_cv_path_SED" >&6; }
7053 SED="$ac_cv_path_SED"
7054 rm -f conftest.sed
7055
7056 test -z "$SED" && SED=sed
7057 Xsed="$SED -e 1s/^X//"
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7070 printf %s "checking for egrep... " >&6; }
7071 if test ${ac_cv_path_EGREP+y}
7072 then :
7073 printf %s "(cached) " >&6
7074 else $as_nop
7075 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7076 then ac_cv_path_EGREP="$GREP -E"
7077 else
7078 if test -z "$EGREP"; then
7079 ac_path_EGREP_found=false
7080 # Loop through the user's path and test for each of PROGNAME-LIST
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7083 do
7084 IFS=$as_save_IFS
7085 case $as_dir in #(((
7086 '') as_dir=./ ;;
7087 */) ;;
7088 *) as_dir=$as_dir/ ;;
7089 esac
7090 for ac_prog in egrep
7091 do
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7094 as_fn_executable_p "$ac_path_EGREP" || continue
7095 # Check for GNU ac_path_EGREP and select it if it is found.
7096 # Check for GNU $ac_path_EGREP
7097 case `"$ac_path_EGREP" --version 2>&1` in
7098 *GNU*)
7099 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7100 *)
7101 ac_count=0
7102 printf %s 0123456789 >"conftest.in"
7103 while :
7104 do
7105 cat "conftest.in" "conftest.in" >"conftest.tmp"
7106 mv "conftest.tmp" "conftest.in"
7107 cp "conftest.in" "conftest.nl"
7108 printf "%s\n" 'EGREP' >> "conftest.nl"
7109 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7111 as_fn_arith $ac_count + 1 && ac_count=$as_val
7112 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7113 # Best one so far, save it but keep looking for a better one
7114 ac_cv_path_EGREP="$ac_path_EGREP"
7115 ac_path_EGREP_max=$ac_count
7116 fi
7117 # 10*(2^10) chars as input seems more than enough
7118 test $ac_count -gt 10 && break
7119 done
7120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7121 esac
7122
7123 $ac_path_EGREP_found && break 3
7124 done
7125 done
7126 done
7127 IFS=$as_save_IFS
7128 if test -z "$ac_cv_path_EGREP"; then
7129 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7130 fi
7131 else
7132 ac_cv_path_EGREP=$EGREP
7133 fi
7134
7135 fi
7136 fi
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7138 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7139 EGREP="$ac_cv_path_EGREP"
7140
7141
7142 test -z "$GREP" && GREP=grep
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162 # Check whether --with-gnu-ld was given.
7163 if test ${with_gnu_ld+y}
7164 then :
7165 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7166 else $as_nop
7167 with_gnu_ld=no
7168 fi
7169
7170 ac_prog=ld
7171 if test yes = "$GCC"; then
7172 # Check if gcc -print-prog-name=ld gives a path.
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7174 printf %s "checking for ld used by $CC... " >&6; }
7175 case $host in
7176 *-*-mingw*)
7177 # gcc leaves a trailing carriage return, which upsets mingw
7178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7179 *)
7180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7181 esac
7182 case $ac_prog in
7183 # Accept absolute paths.
7184 [\\/]* | ?:[\\/]*)
7185 re_direlt='/[^/][^/]*/\.\./'
7186 # Canonicalize the pathname of ld
7187 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7188 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7189 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7190 done
7191 test -z "$LD" && LD=$ac_prog
7192 ;;
7193 "")
7194 # If it fails, then pretend we aren't using GCC.
7195 ac_prog=ld
7196 ;;
7197 *)
7198 # If it is relative, then search for the first ld in PATH.
7199 with_gnu_ld=unknown
7200 ;;
7201 esac
7202 elif test yes = "$with_gnu_ld"; then
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7204 printf %s "checking for GNU ld... " >&6; }
7205 else
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7207 printf %s "checking for non-GNU ld... " >&6; }
7208 fi
7209 if test ${lt_cv_path_LD+y}
7210 then :
7211 printf %s "(cached) " >&6
7212 else $as_nop
7213 if test -z "$LD"; then
7214 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7215 for ac_dir in $PATH; do
7216 IFS=$lt_save_ifs
7217 test -z "$ac_dir" && ac_dir=.
7218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7219 lt_cv_path_LD=$ac_dir/$ac_prog
7220 # Check to see if the program is GNU ld. I'd rather use --version,
7221 # but apparently some variants of GNU ld only accept -v.
7222 # Break only if it was the GNU/non-GNU ld that we prefer.
7223 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7224 *GNU* | *'with BFD'*)
7225 test no != "$with_gnu_ld" && break
7226 ;;
7227 *)
7228 test yes != "$with_gnu_ld" && break
7229 ;;
7230 esac
7231 fi
7232 done
7233 IFS=$lt_save_ifs
7234 else
7235 lt_cv_path_LD=$LD # Let the user override the test with a path.
7236 fi
7237 fi
7238
7239 LD=$lt_cv_path_LD
7240 if test -n "$LD"; then
7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7242 printf "%s\n" "$LD" >&6; }
7243 else
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 printf "%s\n" "no" >&6; }
7246 fi
7247 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7249 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7250 if test ${lt_cv_prog_gnu_ld+y}
7251 then :
7252 printf %s "(cached) " >&6
7253 else $as_nop
7254 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7255 case `$LD -v 2>&1 </dev/null` in
7256 *GNU* | *'with BFD'*)
7257 lt_cv_prog_gnu_ld=yes
7258 ;;
7259 *)
7260 lt_cv_prog_gnu_ld=no
7261 ;;
7262 esac
7263 fi
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7265 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7266 with_gnu_ld=$lt_cv_prog_gnu_ld
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7277 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7278 if test ${lt_cv_path_NM+y}
7279 then :
7280 printf %s "(cached) " >&6
7281 else $as_nop
7282 if test -n "$NM"; then
7283 # Let the user override the test.
7284 lt_cv_path_NM=$NM
7285 else
7286 lt_nm_to_check=${ac_tool_prefix}nm
7287 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7288 lt_nm_to_check="$lt_nm_to_check nm"
7289 fi
7290 for lt_tmp_nm in $lt_nm_to_check; do
7291 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7292 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7293 IFS=$lt_save_ifs
7294 test -z "$ac_dir" && ac_dir=.
7295 tmp_nm=$ac_dir/$lt_tmp_nm
7296 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7297 # Check to see if the nm accepts a BSD-compat flag.
7298 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7299 # nm: unknown option "B" ignored
7300 # Tru64's nm complains that /dev/null is an invalid object file
7301 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7302 case $build_os in
7303 mingw*) lt_bad_file=conftest.nm/nofile ;;
7304 *) lt_bad_file=/dev/null ;;
7305 esac
7306 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7307 *$lt_bad_file* | *'Invalid file or object type'*)
7308 lt_cv_path_NM="$tmp_nm -B"
7309 break 2
7310 ;;
7311 *)
7312 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7313 */dev/null*)
7314 lt_cv_path_NM="$tmp_nm -p"
7315 break 2
7316 ;;
7317 *)
7318 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7319 continue # so that we can try to find one that supports BSD flags
7320 ;;
7321 esac
7322 ;;
7323 esac
7324 fi
7325 done
7326 IFS=$lt_save_ifs
7327 done
7328 : ${lt_cv_path_NM=no}
7329 fi
7330 fi
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7332 printf "%s\n" "$lt_cv_path_NM" >&6; }
7333 if test no != "$lt_cv_path_NM"; then
7334 NM=$lt_cv_path_NM
7335 else
7336 # Didn't find any BSD compatible name lister, look for dumpbin.
7337 if test -n "$DUMPBIN"; then :
7338 # Let the user override the test.
7339 else
7340 if test -n "$ac_tool_prefix"; then
7341 for ac_prog in dumpbin "link -dump"
7342 do
7343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 printf %s "checking for $ac_word... " >&6; }
7347 if test ${ac_cv_prog_DUMPBIN+y}
7348 then :
7349 printf %s "(cached) " >&6
7350 else $as_nop
7351 if test -n "$DUMPBIN"; then
7352 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357 IFS=$as_save_IFS
7358 case $as_dir in #(((
7359 '') as_dir=./ ;;
7360 */) ;;
7361 *) as_dir=$as_dir/ ;;
7362 esac
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7367 break 2
7368 fi
7369 done
7370 done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 DUMPBIN=$ac_cv_prog_DUMPBIN
7376 if test -n "$DUMPBIN"; then
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7378 printf "%s\n" "$DUMPBIN" >&6; }
7379 else
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 printf "%s\n" "no" >&6; }
7382 fi
7383
7384
7385 test -n "$DUMPBIN" && break
7386 done
7387 fi
7388 if test -z "$DUMPBIN"; then
7389 ac_ct_DUMPBIN=$DUMPBIN
7390 for ac_prog in dumpbin "link -dump"
7391 do
7392 # Extract the first word of "$ac_prog", so it can be a program name with args.
7393 set dummy $ac_prog; ac_word=$2
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 printf %s "checking for $ac_word... " >&6; }
7396 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7397 then :
7398 printf %s "(cached) " >&6
7399 else $as_nop
7400 if test -n "$ac_ct_DUMPBIN"; then
7401 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406 IFS=$as_save_IFS
7407 case $as_dir in #(((
7408 '') as_dir=./ ;;
7409 */) ;;
7410 *) as_dir=$as_dir/ ;;
7411 esac
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7414 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7416 break 2
7417 fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7425 if test -n "$ac_ct_DUMPBIN"; then
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7427 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7428 else
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 printf "%s\n" "no" >&6; }
7431 fi
7432
7433
7434 test -n "$ac_ct_DUMPBIN" && break
7435 done
7436
7437 if test "x$ac_ct_DUMPBIN" = x; then
7438 DUMPBIN=":"
7439 else
7440 case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446 DUMPBIN=$ac_ct_DUMPBIN
7447 fi
7448 fi
7449
7450 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7451 *COFF*)
7452 DUMPBIN="$DUMPBIN -symbols -headers"
7453 ;;
7454 *)
7455 DUMPBIN=:
7456 ;;
7457 esac
7458 fi
7459
7460 if test : != "$DUMPBIN"; then
7461 NM=$DUMPBIN
7462 fi
7463 fi
7464 test -z "$NM" && NM=nm
7465
7466
7467
7468
7469
7470
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7472 printf %s "checking the name lister ($NM) interface... " >&6; }
7473 if test ${lt_cv_nm_interface+y}
7474 then :
7475 printf %s "(cached) " >&6
7476 else $as_nop
7477 lt_cv_nm_interface="BSD nm"
7478 echo "int some_variable = 0;" > conftest.$ac_ext
7479 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7480 (eval "$ac_compile" 2>conftest.err)
7481 cat conftest.err >&5
7482 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7484 cat conftest.err >&5
7485 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7486 cat conftest.out >&5
7487 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7488 lt_cv_nm_interface="MS dumpbin"
7489 fi
7490 rm -f conftest*
7491 fi
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7493 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7494
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7496 printf %s "checking whether ln -s works... " >&6; }
7497 LN_S=$as_ln_s
7498 if test "$LN_S" = "ln -s"; then
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7500 printf "%s\n" "yes" >&6; }
7501 else
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7503 printf "%s\n" "no, using $LN_S" >&6; }
7504 fi
7505
7506 # find the maximum length of command line arguments
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7508 printf %s "checking the maximum length of command line arguments... " >&6; }
7509 if test ${lt_cv_sys_max_cmd_len+y}
7510 then :
7511 printf %s "(cached) " >&6
7512 else $as_nop
7513 i=0
7514 teststring=ABCD
7515
7516 case $build_os in
7517 msdosdjgpp*)
7518 # On DJGPP, this test can blow up pretty badly due to problems in libc
7519 # (any single argument exceeding 2000 bytes causes a buffer overrun
7520 # during glob expansion). Even if it were fixed, the result of this
7521 # check would be larger than it should be.
7522 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7523 ;;
7524
7525 gnu*)
7526 # Under GNU Hurd, this test is not required because there is
7527 # no limit to the length of command line arguments.
7528 # Libtool will interpret -1 as no limit whatsoever
7529 lt_cv_sys_max_cmd_len=-1;
7530 ;;
7531
7532 cygwin* | mingw* | cegcc*)
7533 # On Win9x/ME, this test blows up -- it succeeds, but takes
7534 # about 5 minutes as the teststring grows exponentially.
7535 # Worse, since 9x/ME are not pre-emptively multitasking,
7536 # you end up with a "frozen" computer, even though with patience
7537 # the test eventually succeeds (with a max line length of 256k).
7538 # Instead, let's just punt: use the minimum linelength reported by
7539 # all of the supported platforms: 8192 (on NT/2K/XP).
7540 lt_cv_sys_max_cmd_len=8192;
7541 ;;
7542
7543 mint*)
7544 # On MiNT this can take a long time and run out of memory.
7545 lt_cv_sys_max_cmd_len=8192;
7546 ;;
7547
7548 amigaos*)
7549 # On AmigaOS with pdksh, this test takes hours, literally.
7550 # So we just punt and use a minimum line length of 8192.
7551 lt_cv_sys_max_cmd_len=8192;
7552 ;;
7553
7554 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7555 # This has been around since 386BSD, at least. Likely further.
7556 if test -x /sbin/sysctl; then
7557 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7558 elif test -x /usr/sbin/sysctl; then
7559 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7560 else
7561 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7562 fi
7563 # And add a safety zone
7564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7566 ;;
7567
7568 interix*)
7569 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7570 lt_cv_sys_max_cmd_len=196608
7571 ;;
7572
7573 os2*)
7574 # The test takes a long time on OS/2.
7575 lt_cv_sys_max_cmd_len=8192
7576 ;;
7577
7578 osf*)
7579 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7580 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7581 # nice to cause kernel panics so lets avoid the loop below.
7582 # First set a reasonable default.
7583 lt_cv_sys_max_cmd_len=16384
7584 #
7585 if test -x /sbin/sysconfig; then
7586 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7587 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7588 esac
7589 fi
7590 ;;
7591 sco3.2v5*)
7592 lt_cv_sys_max_cmd_len=102400
7593 ;;
7594 sysv5* | sco5v6* | sysv4.2uw2*)
7595 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7596 if test -n "$kargmax"; then
7597 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7598 else
7599 lt_cv_sys_max_cmd_len=32768
7600 fi
7601 ;;
7602 *)
7603 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7604 if test -n "$lt_cv_sys_max_cmd_len" && \
7605 test undefined != "$lt_cv_sys_max_cmd_len"; then
7606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7608 else
7609 # Make teststring a little bigger before we do anything with it.
7610 # a 1K string should be a reasonable start.
7611 for i in 1 2 3 4 5 6 7 8; do
7612 teststring=$teststring$teststring
7613 done
7614 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7615 # If test is not a shell built-in, we'll probably end up computing a
7616 # maximum length that is only half of the actual maximum length, but
7617 # we can't tell.
7618 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7619 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7620 test 17 != "$i" # 1/2 MB should be enough
7621 do
7622 i=`expr $i + 1`
7623 teststring=$teststring$teststring
7624 done
7625 # Only check the string length outside the loop.
7626 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7627 teststring=
7628 # Add a significant safety factor because C++ compilers can tack on
7629 # massive amounts of additional arguments before passing them to the
7630 # linker. It appears as though 1/2 is a usable value.
7631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7632 fi
7633 ;;
7634 esac
7635
7636 fi
7637
7638 if test -n "$lt_cv_sys_max_cmd_len"; then
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7640 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7641 else
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7643 printf "%s\n" "none" >&6; }
7644 fi
7645 max_cmd_len=$lt_cv_sys_max_cmd_len
7646
7647
7648
7649
7650
7651
7652 : ${CP="cp -f"}
7653 : ${MV="mv -f"}
7654 : ${RM="rm -f"}
7655
7656 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7657 lt_unset=unset
7658 else
7659 lt_unset=false
7660 fi
7661
7662
7663
7664
7665
7666 # test EBCDIC or ASCII
7667 case `echo X|tr X '\101'` in
7668 A) # ASCII based system
7669 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7670 lt_SP2NL='tr \040 \012'
7671 lt_NL2SP='tr \015\012 \040\040'
7672 ;;
7673 *) # EBCDIC based system
7674 lt_SP2NL='tr \100 \n'
7675 lt_NL2SP='tr \r\n \100\100'
7676 ;;
7677 esac
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7688 printf %s "checking how to convert $build file names to $host format... " >&6; }
7689 if test ${lt_cv_to_host_file_cmd+y}
7690 then :
7691 printf %s "(cached) " >&6
7692 else $as_nop
7693 case $host in
7694 *-*-mingw* )
7695 case $build in
7696 *-*-mingw* ) # actually msys
7697 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7698 ;;
7699 *-*-cygwin* )
7700 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7701 ;;
7702 * ) # otherwise, assume *nix
7703 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7704 ;;
7705 esac
7706 ;;
7707 *-*-cygwin* )
7708 case $build in
7709 *-*-mingw* ) # actually msys
7710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7711 ;;
7712 *-*-cygwin* )
7713 lt_cv_to_host_file_cmd=func_convert_file_noop
7714 ;;
7715 * ) # otherwise, assume *nix
7716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7717 ;;
7718 esac
7719 ;;
7720 * ) # unhandled hosts (and "normal" native builds)
7721 lt_cv_to_host_file_cmd=func_convert_file_noop
7722 ;;
7723 esac
7724
7725 fi
7726
7727 to_host_file_cmd=$lt_cv_to_host_file_cmd
7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7729 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7730
7731
7732
7733
7734
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7736 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7737 if test ${lt_cv_to_tool_file_cmd+y}
7738 then :
7739 printf %s "(cached) " >&6
7740 else $as_nop
7741 #assume ordinary cross tools, or native build.
7742 lt_cv_to_tool_file_cmd=func_convert_file_noop
7743 case $host in
7744 *-*-mingw* )
7745 case $build in
7746 *-*-mingw* ) # actually msys
7747 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7748 ;;
7749 esac
7750 ;;
7751 esac
7752
7753 fi
7754
7755 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7757 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7758
7759
7760
7761
7762
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7764 printf %s "checking for $LD option to reload object files... " >&6; }
7765 if test ${lt_cv_ld_reload_flag+y}
7766 then :
7767 printf %s "(cached) " >&6
7768 else $as_nop
7769 lt_cv_ld_reload_flag='-r'
7770 fi
7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7772 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7773 reload_flag=$lt_cv_ld_reload_flag
7774 case $reload_flag in
7775 "" | " "*) ;;
7776 *) reload_flag=" $reload_flag" ;;
7777 esac
7778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7779 case $host_os in
7780 cygwin* | mingw* | pw32* | cegcc*)
7781 if test yes != "$GCC"; then
7782 reload_cmds=false
7783 fi
7784 ;;
7785 darwin*)
7786 if test yes = "$GCC"; then
7787 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7788 else
7789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7790 fi
7791 ;;
7792 esac
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802 if test -n "$ac_tool_prefix"; then
7803 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}file; ac_word=$2
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 printf %s "checking for $ac_word... " >&6; }
7807 if test ${ac_cv_prog_FILECMD+y}
7808 then :
7809 printf %s "(cached) " >&6
7810 else $as_nop
7811 if test -n "$FILECMD"; then
7812 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 case $as_dir in #(((
7819 '') as_dir=./ ;;
7820 */) ;;
7821 *) as_dir=$as_dir/ ;;
7822 esac
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829 done
7830 done
7831 IFS=$as_save_IFS
7832
7833 fi
7834 fi
7835 FILECMD=$ac_cv_prog_FILECMD
7836 if test -n "$FILECMD"; then
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7838 printf "%s\n" "$FILECMD" >&6; }
7839 else
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 printf "%s\n" "no" >&6; }
7842 fi
7843
7844
7845 fi
7846 if test -z "$ac_cv_prog_FILECMD"; then
7847 ac_ct_FILECMD=$FILECMD
7848 # Extract the first word of "file", so it can be a program name with args.
7849 set dummy file; ac_word=$2
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 printf %s "checking for $ac_word... " >&6; }
7852 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7853 then :
7854 printf %s "(cached) " >&6
7855 else $as_nop
7856 if test -n "$ac_ct_FILECMD"; then
7857 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 case $as_dir in #(((
7864 '') as_dir=./ ;;
7865 */) ;;
7866 *) as_dir=$as_dir/ ;;
7867 esac
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_ac_ct_FILECMD="file"
7871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7881 if test -n "$ac_ct_FILECMD"; then
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7883 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7884 else
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 printf "%s\n" "no" >&6; }
7887 fi
7888
7889 if test "x$ac_ct_FILECMD" = x; then
7890 FILECMD=":"
7891 else
7892 case $cross_compiling:$ac_tool_warned in
7893 yes:)
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896 ac_tool_warned=yes ;;
7897 esac
7898 FILECMD=$ac_ct_FILECMD
7899 fi
7900 else
7901 FILECMD="$ac_cv_prog_FILECMD"
7902 fi
7903
7904
7905
7906
7907
7908
7909
7910 if test -n "$ac_tool_prefix"; then
7911 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7912 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 printf %s "checking for $ac_word... " >&6; }
7915 if test ${ac_cv_prog_OBJDUMP+y}
7916 then :
7917 printf %s "(cached) " >&6
7918 else $as_nop
7919 if test -n "$OBJDUMP"; then
7920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 case $as_dir in #(((
7927 '') as_dir=./ ;;
7928 */) ;;
7929 *) as_dir=$as_dir/ ;;
7930 esac
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7933 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7935 break 2
7936 fi
7937 done
7938 done
7939 IFS=$as_save_IFS
7940
7941 fi
7942 fi
7943 OBJDUMP=$ac_cv_prog_OBJDUMP
7944 if test -n "$OBJDUMP"; then
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7946 printf "%s\n" "$OBJDUMP" >&6; }
7947 else
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 printf "%s\n" "no" >&6; }
7950 fi
7951
7952
7953 fi
7954 if test -z "$ac_cv_prog_OBJDUMP"; then
7955 ac_ct_OBJDUMP=$OBJDUMP
7956 # Extract the first word of "objdump", so it can be a program name with args.
7957 set dummy objdump; ac_word=$2
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 printf %s "checking for $ac_word... " >&6; }
7960 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else $as_nop
7964 if test -n "$ac_ct_OBJDUMP"; then
7965 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970 IFS=$as_save_IFS
7971 case $as_dir in #(((
7972 '') as_dir=./ ;;
7973 */) ;;
7974 *) as_dir=$as_dir/ ;;
7975 esac
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 fi
7987 fi
7988 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7989 if test -n "$ac_ct_OBJDUMP"; then
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7991 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7992 else
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 printf "%s\n" "no" >&6; }
7995 fi
7996
7997 if test "x$ac_ct_OBJDUMP" = x; then
7998 OBJDUMP="false"
7999 else
8000 case $cross_compiling:$ac_tool_warned in
8001 yes:)
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8003 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8004 ac_tool_warned=yes ;;
8005 esac
8006 OBJDUMP=$ac_ct_OBJDUMP
8007 fi
8008 else
8009 OBJDUMP="$ac_cv_prog_OBJDUMP"
8010 fi
8011
8012 test -z "$OBJDUMP" && OBJDUMP=objdump
8013
8014
8015
8016
8017
8018
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8020 printf %s "checking how to recognize dependent libraries... " >&6; }
8021 if test ${lt_cv_deplibs_check_method+y}
8022 then :
8023 printf %s "(cached) " >&6
8024 else $as_nop
8025 lt_cv_file_magic_cmd='$MAGIC_CMD'
8026 lt_cv_file_magic_test_file=
8027 lt_cv_deplibs_check_method='unknown'
8028 # Need to set the preceding variable on all platforms that support
8029 # interlibrary dependencies.
8030 # 'none' -- dependencies not supported.
8031 # 'unknown' -- same as none, but documents that we really don't know.
8032 # 'pass_all' -- all dependencies passed with no checks.
8033 # 'test_compile' -- check by making test program.
8034 # 'file_magic [[regex]]' -- check by looking for files in library path
8035 # that responds to the $file_magic_cmd with a given extended regex.
8036 # If you have 'file' or equivalent on your system and you're not sure
8037 # whether 'pass_all' will *always* work, you probably want this one.
8038
8039 case $host_os in
8040 aix[4-9]*)
8041 lt_cv_deplibs_check_method=pass_all
8042 ;;
8043
8044 beos*)
8045 lt_cv_deplibs_check_method=pass_all
8046 ;;
8047
8048 bsdi[45]*)
8049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8050 lt_cv_file_magic_cmd='$FILECMD -L'
8051 lt_cv_file_magic_test_file=/shlib/libc.so
8052 ;;
8053
8054 cygwin*)
8055 # func_win32_libid is a shell function defined in ltmain.sh
8056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8057 lt_cv_file_magic_cmd='func_win32_libid'
8058 ;;
8059
8060 mingw* | pw32*)
8061 # Base MSYS/MinGW do not provide the 'file' command needed by
8062 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8063 # unless we find 'file', for example because we are cross-compiling.
8064 if ( file / ) >/dev/null 2>&1; then
8065 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8066 lt_cv_file_magic_cmd='func_win32_libid'
8067 else
8068 # Keep this pattern in sync with the one in func_win32_libid.
8069 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8070 lt_cv_file_magic_cmd='$OBJDUMP -f'
8071 fi
8072 ;;
8073
8074 cegcc*)
8075 # use the weaker test based on 'objdump'. See mingw*.
8076 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8077 lt_cv_file_magic_cmd='$OBJDUMP -f'
8078 ;;
8079
8080 darwin* | rhapsody*)
8081 lt_cv_deplibs_check_method=pass_all
8082 ;;
8083
8084 freebsd* | dragonfly* | midnightbsd*)
8085 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8086 case $host_cpu in
8087 i*86 )
8088 # Not sure whether the presence of OpenBSD here was a mistake.
8089 # Let's accept both of them until this is cleared up.
8090 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8091 lt_cv_file_magic_cmd=$FILECMD
8092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8093 ;;
8094 esac
8095 else
8096 lt_cv_deplibs_check_method=pass_all
8097 fi
8098 ;;
8099
8100 haiku*)
8101 lt_cv_deplibs_check_method=pass_all
8102 ;;
8103
8104 hpux10.20* | hpux11*)
8105 lt_cv_file_magic_cmd=$FILECMD
8106 case $host_cpu in
8107 ia64*)
8108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8109 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8110 ;;
8111 hppa*64*)
8112 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]'
8113 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8114 ;;
8115 *)
8116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8117 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8118 ;;
8119 esac
8120 ;;
8121
8122 interix[3-9]*)
8123 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8125 ;;
8126
8127 irix5* | irix6* | nonstopux*)
8128 case $LD in
8129 *-32|*"-32 ") libmagic=32-bit;;
8130 *-n32|*"-n32 ") libmagic=N32;;
8131 *-64|*"-64 ") libmagic=64-bit;;
8132 *) libmagic=never-match;;
8133 esac
8134 lt_cv_deplibs_check_method=pass_all
8135 ;;
8136
8137 # This must be glibc/ELF.
8138 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8139 lt_cv_deplibs_check_method=pass_all
8140 ;;
8141
8142 netbsd* | netbsdelf*-gnu)
8143 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8145 else
8146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8147 fi
8148 ;;
8149
8150 newos6*)
8151 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8152 lt_cv_file_magic_cmd=$FILECMD
8153 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8154 ;;
8155
8156 *nto* | *qnx*)
8157 lt_cv_deplibs_check_method=pass_all
8158 ;;
8159
8160 openbsd* | bitrig*)
8161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8163 else
8164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8165 fi
8166 ;;
8167
8168 openedition*)
8169 lt_cv_deplibs_check_method=pass_all
8170 ;;
8171
8172 osf3* | osf4* | osf5*)
8173 lt_cv_deplibs_check_method=pass_all
8174 ;;
8175
8176 rdos*)
8177 lt_cv_deplibs_check_method=pass_all
8178 ;;
8179
8180 solaris*)
8181 lt_cv_deplibs_check_method=pass_all
8182 ;;
8183
8184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8185 lt_cv_deplibs_check_method=pass_all
8186 ;;
8187
8188 sysv4 | sysv4.3*)
8189 case $host_vendor in
8190 motorola)
8191 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]'
8192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8193 ;;
8194 ncr)
8195 lt_cv_deplibs_check_method=pass_all
8196 ;;
8197 sequent)
8198 lt_cv_file_magic_cmd='/bin/file'
8199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8200 ;;
8201 sni)
8202 lt_cv_file_magic_cmd='/bin/file'
8203 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8204 lt_cv_file_magic_test_file=/lib/libc.so
8205 ;;
8206 siemens)
8207 lt_cv_deplibs_check_method=pass_all
8208 ;;
8209 pc)
8210 lt_cv_deplibs_check_method=pass_all
8211 ;;
8212 esac
8213 ;;
8214
8215 tpf*)
8216 lt_cv_deplibs_check_method=pass_all
8217 ;;
8218 os2*)
8219 lt_cv_deplibs_check_method=pass_all
8220 ;;
8221 esac
8222
8223 fi
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8225 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8226
8227 file_magic_glob=
8228 want_nocaseglob=no
8229 if test "$build" = "$host"; then
8230 case $host_os in
8231 mingw* | pw32*)
8232 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8233 want_nocaseglob=yes
8234 else
8235 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8236 fi
8237 ;;
8238 esac
8239 fi
8240
8241 file_magic_cmd=$lt_cv_file_magic_cmd
8242 deplibs_check_method=$lt_cv_deplibs_check_method
8243 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266 if test -n "$ac_tool_prefix"; then
8267 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8268 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 printf %s "checking for $ac_word... " >&6; }
8271 if test ${ac_cv_prog_DLLTOOL+y}
8272 then :
8273 printf %s "(cached) " >&6
8274 else $as_nop
8275 if test -n "$DLLTOOL"; then
8276 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281 IFS=$as_save_IFS
8282 case $as_dir in #(((
8283 '') as_dir=./ ;;
8284 */) ;;
8285 *) as_dir=$as_dir/ ;;
8286 esac
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8289 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8291 break 2
8292 fi
8293 done
8294 done
8295 IFS=$as_save_IFS
8296
8297 fi
8298 fi
8299 DLLTOOL=$ac_cv_prog_DLLTOOL
8300 if test -n "$DLLTOOL"; then
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8302 printf "%s\n" "$DLLTOOL" >&6; }
8303 else
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 printf "%s\n" "no" >&6; }
8306 fi
8307
8308
8309 fi
8310 if test -z "$ac_cv_prog_DLLTOOL"; then
8311 ac_ct_DLLTOOL=$DLLTOOL
8312 # Extract the first word of "dlltool", so it can be a program name with args.
8313 set dummy dlltool; ac_word=$2
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 printf %s "checking for $ac_word... " >&6; }
8316 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8317 then :
8318 printf %s "(cached) " >&6
8319 else $as_nop
8320 if test -n "$ac_ct_DLLTOOL"; then
8321 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326 IFS=$as_save_IFS
8327 case $as_dir in #(((
8328 '') as_dir=./ ;;
8329 */) ;;
8330 *) as_dir=$as_dir/ ;;
8331 esac
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8336 break 2
8337 fi
8338 done
8339 done
8340 IFS=$as_save_IFS
8341
8342 fi
8343 fi
8344 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8345 if test -n "$ac_ct_DLLTOOL"; then
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8347 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8348 else
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 printf "%s\n" "no" >&6; }
8351 fi
8352
8353 if test "x$ac_ct_DLLTOOL" = x; then
8354 DLLTOOL="false"
8355 else
8356 case $cross_compiling:$ac_tool_warned in
8357 yes:)
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8359 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8360 ac_tool_warned=yes ;;
8361 esac
8362 DLLTOOL=$ac_ct_DLLTOOL
8363 fi
8364 else
8365 DLLTOOL="$ac_cv_prog_DLLTOOL"
8366 fi
8367
8368 test -z "$DLLTOOL" && DLLTOOL=dlltool
8369
8370
8371
8372
8373
8374
8375
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8377 printf %s "checking how to associate runtime and link libraries... " >&6; }
8378 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8379 then :
8380 printf %s "(cached) " >&6
8381 else $as_nop
8382 lt_cv_sharedlib_from_linklib_cmd='unknown'
8383
8384 case $host_os in
8385 cygwin* | mingw* | pw32* | cegcc*)
8386 # two different shell functions defined in ltmain.sh;
8387 # decide which one to use based on capabilities of $DLLTOOL
8388 case `$DLLTOOL --help 2>&1` in
8389 *--identify-strict*)
8390 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8391 ;;
8392 *)
8393 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8394 ;;
8395 esac
8396 ;;
8397 *)
8398 # fallback: assume linklib IS sharedlib
8399 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8400 ;;
8401 esac
8402
8403 fi
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8405 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8406 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8407 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8408
8409
8410
8411
8412
8413
8414
8415 if test -n "$ac_tool_prefix"; then
8416 for ac_prog in ar
8417 do
8418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 printf %s "checking for $ac_word... " >&6; }
8422 if test ${ac_cv_prog_AR+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else $as_nop
8426 if test -n "$AR"; then
8427 ac_cv_prog_AR="$AR" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432 IFS=$as_save_IFS
8433 case $as_dir in #(((
8434 '') as_dir=./ ;;
8435 */) ;;
8436 *) as_dir=$as_dir/ ;;
8437 esac
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8440 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8442 break 2
8443 fi
8444 done
8445 done
8446 IFS=$as_save_IFS
8447
8448 fi
8449 fi
8450 AR=$ac_cv_prog_AR
8451 if test -n "$AR"; then
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8453 printf "%s\n" "$AR" >&6; }
8454 else
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 printf "%s\n" "no" >&6; }
8457 fi
8458
8459
8460 test -n "$AR" && break
8461 done
8462 fi
8463 if test -z "$AR"; then
8464 ac_ct_AR=$AR
8465 for ac_prog in ar
8466 do
8467 # Extract the first word of "$ac_prog", so it can be a program name with args.
8468 set dummy $ac_prog; ac_word=$2
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470 printf %s "checking for $ac_word... " >&6; }
8471 if test ${ac_cv_prog_ac_ct_AR+y}
8472 then :
8473 printf %s "(cached) " >&6
8474 else $as_nop
8475 if test -n "$ac_ct_AR"; then
8476 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8477 else
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481 IFS=$as_save_IFS
8482 case $as_dir in #(((
8483 '') as_dir=./ ;;
8484 */) ;;
8485 *) as_dir=$as_dir/ ;;
8486 esac
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8489 ac_cv_prog_ac_ct_AR="$ac_prog"
8490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8491 break 2
8492 fi
8493 done
8494 done
8495 IFS=$as_save_IFS
8496
8497 fi
8498 fi
8499 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8500 if test -n "$ac_ct_AR"; then
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8502 printf "%s\n" "$ac_ct_AR" >&6; }
8503 else
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 printf "%s\n" "no" >&6; }
8506 fi
8507
8508
8509 test -n "$ac_ct_AR" && break
8510 done
8511
8512 if test "x$ac_ct_AR" = x; then
8513 AR="false"
8514 else
8515 case $cross_compiling:$ac_tool_warned in
8516 yes:)
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8518 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8519 ac_tool_warned=yes ;;
8520 esac
8521 AR=$ac_ct_AR
8522 fi
8523 fi
8524
8525 : ${AR=ar}
8526
8527
8528
8529
8530
8531
8532 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8533 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8534 # higher priority because thats what people were doing historically (setting
8535 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8536 # variable obsoleted/removed.
8537
8538 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8539 lt_ar_flags=$AR_FLAGS
8540
8541
8542
8543
8544
8545
8546 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8547 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8548
8549
8550
8551
8552
8553
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8555 printf %s "checking for archiver @FILE support... " >&6; }
8556 if test ${lt_cv_ar_at_file+y}
8557 then :
8558 printf %s "(cached) " >&6
8559 else $as_nop
8560 lt_cv_ar_at_file=no
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563
8564 int
8565 main (void)
8566 {
8567
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_compile "$LINENO"
8573 then :
8574 echo conftest.$ac_objext > conftest.lst
8575 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8577 (eval $lt_ar_try) 2>&5
8578 ac_status=$?
8579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8580 test $ac_status = 0; }
8581 if test 0 -eq "$ac_status"; then
8582 # Ensure the archiver fails upon bogus file names.
8583 rm -f conftest.$ac_objext libconftest.a
8584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8585 (eval $lt_ar_try) 2>&5
8586 ac_status=$?
8587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8588 test $ac_status = 0; }
8589 if test 0 -ne "$ac_status"; then
8590 lt_cv_ar_at_file=@
8591 fi
8592 fi
8593 rm -f conftest.* libconftest.a
8594
8595 fi
8596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8597
8598 fi
8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8600 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8601
8602 if test no = "$lt_cv_ar_at_file"; then
8603 archiver_list_spec=
8604 else
8605 archiver_list_spec=$lt_cv_ar_at_file
8606 fi
8607
8608
8609
8610
8611
8612
8613
8614 if test -n "$ac_tool_prefix"; then
8615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8616 set dummy ${ac_tool_prefix}strip; ac_word=$2
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 printf %s "checking for $ac_word... " >&6; }
8619 if test ${ac_cv_prog_STRIP+y}
8620 then :
8621 printf %s "(cached) " >&6
8622 else $as_nop
8623 if test -n "$STRIP"; then
8624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8625 else
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 for as_dir in $PATH
8628 do
8629 IFS=$as_save_IFS
8630 case $as_dir in #(((
8631 '') as_dir=./ ;;
8632 */) ;;
8633 *) as_dir=$as_dir/ ;;
8634 esac
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641 done
8642 done
8643 IFS=$as_save_IFS
8644
8645 fi
8646 fi
8647 STRIP=$ac_cv_prog_STRIP
8648 if test -n "$STRIP"; then
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8650 printf "%s\n" "$STRIP" >&6; }
8651 else
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 printf "%s\n" "no" >&6; }
8654 fi
8655
8656
8657 fi
8658 if test -z "$ac_cv_prog_STRIP"; then
8659 ac_ct_STRIP=$STRIP
8660 # Extract the first word of "strip", so it can be a program name with args.
8661 set dummy strip; ac_word=$2
8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663 printf %s "checking for $ac_word... " >&6; }
8664 if test ${ac_cv_prog_ac_ct_STRIP+y}
8665 then :
8666 printf %s "(cached) " >&6
8667 else $as_nop
8668 if test -n "$ac_ct_STRIP"; then
8669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8670 else
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8673 do
8674 IFS=$as_save_IFS
8675 case $as_dir in #(((
8676 '') as_dir=./ ;;
8677 */) ;;
8678 *) as_dir=$as_dir/ ;;
8679 esac
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8682 ac_cv_prog_ac_ct_STRIP="strip"
8683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8684 break 2
8685 fi
8686 done
8687 done
8688 IFS=$as_save_IFS
8689
8690 fi
8691 fi
8692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8693 if test -n "$ac_ct_STRIP"; then
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8695 printf "%s\n" "$ac_ct_STRIP" >&6; }
8696 else
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 printf "%s\n" "no" >&6; }
8699 fi
8700
8701 if test "x$ac_ct_STRIP" = x; then
8702 STRIP=":"
8703 else
8704 case $cross_compiling:$ac_tool_warned in
8705 yes:)
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8707 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8708 ac_tool_warned=yes ;;
8709 esac
8710 STRIP=$ac_ct_STRIP
8711 fi
8712 else
8713 STRIP="$ac_cv_prog_STRIP"
8714 fi
8715
8716 test -z "$STRIP" && STRIP=:
8717
8718
8719
8720
8721
8722
8723 if test -n "$ac_tool_prefix"; then
8724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 printf %s "checking for $ac_word... " >&6; }
8728 if test ${ac_cv_prog_RANLIB+y}
8729 then :
8730 printf %s "(cached) " >&6
8731 else $as_nop
8732 if test -n "$RANLIB"; then
8733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738 IFS=$as_save_IFS
8739 case $as_dir in #(((
8740 '') as_dir=./ ;;
8741 */) ;;
8742 *) as_dir=$as_dir/ ;;
8743 esac
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8748 break 2
8749 fi
8750 done
8751 done
8752 IFS=$as_save_IFS
8753
8754 fi
8755 fi
8756 RANLIB=$ac_cv_prog_RANLIB
8757 if test -n "$RANLIB"; then
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8759 printf "%s\n" "$RANLIB" >&6; }
8760 else
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 printf "%s\n" "no" >&6; }
8763 fi
8764
8765
8766 fi
8767 if test -z "$ac_cv_prog_RANLIB"; then
8768 ac_ct_RANLIB=$RANLIB
8769 # Extract the first word of "ranlib", so it can be a program name with args.
8770 set dummy ranlib; ac_word=$2
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 printf %s "checking for $ac_word... " >&6; }
8773 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8774 then :
8775 printf %s "(cached) " >&6
8776 else $as_nop
8777 if test -n "$ac_ct_RANLIB"; then
8778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783 IFS=$as_save_IFS
8784 case $as_dir in #(((
8785 '') as_dir=./ ;;
8786 */) ;;
8787 *) as_dir=$as_dir/ ;;
8788 esac
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8791 ac_cv_prog_ac_ct_RANLIB="ranlib"
8792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8793 break 2
8794 fi
8795 done
8796 done
8797 IFS=$as_save_IFS
8798
8799 fi
8800 fi
8801 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8802 if test -n "$ac_ct_RANLIB"; then
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8804 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8805 else
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 printf "%s\n" "no" >&6; }
8808 fi
8809
8810 if test "x$ac_ct_RANLIB" = x; then
8811 RANLIB=":"
8812 else
8813 case $cross_compiling:$ac_tool_warned in
8814 yes:)
8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8817 ac_tool_warned=yes ;;
8818 esac
8819 RANLIB=$ac_ct_RANLIB
8820 fi
8821 else
8822 RANLIB="$ac_cv_prog_RANLIB"
8823 fi
8824
8825 test -z "$RANLIB" && RANLIB=:
8826
8827
8828
8829
8830
8831
8832 # Determine commands to create old-style static archives.
8833 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8834 old_postinstall_cmds='chmod 644 $oldlib'
8835 old_postuninstall_cmds=
8836
8837 if test -n "$RANLIB"; then
8838 case $host_os in
8839 bitrig* | openbsd*)
8840 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8841 ;;
8842 *)
8843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8844 ;;
8845 esac
8846 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8847 fi
8848
8849 case $host_os in
8850 darwin*)
8851 lock_old_archive_extraction=yes ;;
8852 *)
8853 lock_old_archive_extraction=no ;;
8854 esac
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894 # If no C compiler was specified, use CC.
8895 LTCC=${LTCC-"$CC"}
8896
8897 # If no C compiler flags were specified, use CFLAGS.
8898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8899
8900 # Allow CC to be a program name with arguments.
8901 compiler=$CC
8902
8903
8904 # Check for command to grab the raw symbol name followed by C symbol from nm.
8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8906 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8907 if test ${lt_cv_sys_global_symbol_pipe+y}
8908 then :
8909 printf %s "(cached) " >&6
8910 else $as_nop
8911
8912 # These are sane defaults that work on at least a few old systems.
8913 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8914
8915 # Character class describing NM global symbol codes.
8916 symcode='[BCDEGRST]'
8917
8918 # Regexp to match symbols that can be accessed directly from C.
8919 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8920
8921 # Define system-specific variables.
8922 case $host_os in
8923 aix*)
8924 symcode='[BCDT]'
8925 ;;
8926 cygwin* | mingw* | pw32* | cegcc*)
8927 symcode='[ABCDGISTW]'
8928 ;;
8929 hpux*)
8930 if test ia64 = "$host_cpu"; then
8931 symcode='[ABCDEGRST]'
8932 fi
8933 ;;
8934 irix* | nonstopux*)
8935 symcode='[BCDEGRST]'
8936 ;;
8937 osf*)
8938 symcode='[BCDEGQRST]'
8939 ;;
8940 solaris*)
8941 symcode='[BDRT]'
8942 ;;
8943 sco3.2v5*)
8944 symcode='[DT]'
8945 ;;
8946 sysv4.2uw2*)
8947 symcode='[DT]'
8948 ;;
8949 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8950 symcode='[ABDT]'
8951 ;;
8952 sysv4)
8953 symcode='[DFNSTU]'
8954 ;;
8955 esac
8956
8957 # If we're using GNU nm, then use its standard symbol codes.
8958 case `$NM -V 2>&1` in
8959 *GNU* | *'with BFD'*)
8960 symcode='[ABCDGIRSTW]' ;;
8961 esac
8962
8963 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8964 # Gets list of data symbols to import.
8965 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8966 # Adjust the below global symbol transforms to fixup imported variables.
8967 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8968 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8969 lt_c_name_lib_hook="\
8970 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8971 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8972 else
8973 # Disable hooks by default.
8974 lt_cv_sys_global_symbol_to_import=
8975 lt_cdecl_hook=
8976 lt_c_name_hook=
8977 lt_c_name_lib_hook=
8978 fi
8979
8980 # Transform an extracted symbol line into a proper C declaration.
8981 # Some systems (esp. on ia64) link data and code symbols differently,
8982 # so use this general approach.
8983 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8984 $lt_cdecl_hook\
8985 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8986 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8987
8988 # Transform an extracted symbol line into symbol name and symbol address
8989 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8990 $lt_c_name_hook\
8991 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8992 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8993
8994 # Transform an extracted symbol line into symbol name with lib prefix and
8995 # symbol address.
8996 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8997 $lt_c_name_lib_hook\
8998 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8999 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9000 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9001
9002 # Handle CRLF in mingw tool chain
9003 opt_cr=
9004 case $build_os in
9005 mingw*)
9006 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9007 ;;
9008 esac
9009
9010 # Try without a prefix underscore, then with it.
9011 for ac_symprfx in "" "_"; do
9012
9013 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9014 symxfrm="\\1 $ac_symprfx\\2 \\2"
9015
9016 # Write the raw and C identifiers.
9017 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9018 # Fake it for dumpbin and say T for any non-static function,
9019 # D for any global variable and I for any imported variable.
9020 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9021 # which start with @ or ?.
9022 lt_cv_sys_global_symbol_pipe="$AWK '"\
9023 " {last_section=section; section=\$ 3};"\
9024 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9025 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9026 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9027 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9028 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9029 " \$ 0!~/External *\|/{next};"\
9030 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9031 " {if(hide[section]) next};"\
9032 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9033 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9034 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9035 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9036 " ' prfx=^$ac_symprfx"
9037 else
9038 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9039 fi
9040 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9041
9042 # Check to see that the pipe works correctly.
9043 pipe_works=no
9044
9045 rm -f conftest*
9046 cat > conftest.$ac_ext <<_LT_EOF
9047 #ifdef __cplusplus
9048 extern "C" {
9049 #endif
9050 char nm_test_var;
9051 void nm_test_func(void);
9052 void nm_test_func(void){}
9053 #ifdef __cplusplus
9054 }
9055 #endif
9056 int main(){nm_test_var='a';nm_test_func();return(0);}
9057 _LT_EOF
9058
9059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9060 (eval $ac_compile) 2>&5
9061 ac_status=$?
9062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9063 test $ac_status = 0; }; then
9064 # Now try to grab the symbols.
9065 nlist=conftest.nm
9066 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9067 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9068 # Try sorting and uniquifying the output.
9069 if sort "$nlist" | uniq > "$nlist"T; then
9070 mv -f "$nlist"T "$nlist"
9071 else
9072 rm -f "$nlist"T
9073 fi
9074
9075 # Make sure that we snagged all the symbols we need.
9076 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9077 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9078 cat <<_LT_EOF > conftest.$ac_ext
9079 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9080 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9081 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9082 relocations are performed -- see ld's documentation on pseudo-relocs. */
9083 # define LT_DLSYM_CONST
9084 #elif defined __osf__
9085 /* This system does not cope well with relocations in const data. */
9086 # define LT_DLSYM_CONST
9087 #else
9088 # define LT_DLSYM_CONST const
9089 #endif
9090
9091 #ifdef __cplusplus
9092 extern "C" {
9093 #endif
9094
9095 _LT_EOF
9096 # Now generate the symbol file.
9097 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9098
9099 cat <<_LT_EOF >> conftest.$ac_ext
9100
9101 /* The mapping between symbol names and symbols. */
9102 LT_DLSYM_CONST struct {
9103 const char *name;
9104 void *address;
9105 }
9106 lt__PROGRAM__LTX_preloaded_symbols[] =
9107 {
9108 { "@PROGRAM@", (void *) 0 },
9109 _LT_EOF
9110 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9111 cat <<\_LT_EOF >> conftest.$ac_ext
9112 {0, (void *) 0}
9113 };
9114
9115 /* This works around a problem in FreeBSD linker */
9116 #ifdef FREEBSD_WORKAROUND
9117 static const void *lt_preloaded_setup() {
9118 return lt__PROGRAM__LTX_preloaded_symbols;
9119 }
9120 #endif
9121
9122 #ifdef __cplusplus
9123 }
9124 #endif
9125 _LT_EOF
9126 # Now try linking the two files.
9127 mv conftest.$ac_objext conftstm.$ac_objext
9128 lt_globsym_save_LIBS=$LIBS
9129 lt_globsym_save_CFLAGS=$CFLAGS
9130 LIBS=conftstm.$ac_objext
9131 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9133 (eval $ac_link) 2>&5
9134 ac_status=$?
9135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9136 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9137 pipe_works=yes
9138 fi
9139 LIBS=$lt_globsym_save_LIBS
9140 CFLAGS=$lt_globsym_save_CFLAGS
9141 else
9142 echo "cannot find nm_test_func in $nlist" >&5
9143 fi
9144 else
9145 echo "cannot find nm_test_var in $nlist" >&5
9146 fi
9147 else
9148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9149 fi
9150 else
9151 echo "$progname: failed program was:" >&5
9152 cat conftest.$ac_ext >&5
9153 fi
9154 rm -rf conftest* conftst*
9155
9156 # Do not use the global_symbol_pipe unless it works.
9157 if test yes = "$pipe_works"; then
9158 break
9159 else
9160 lt_cv_sys_global_symbol_pipe=
9161 fi
9162 done
9163
9164 fi
9165
9166 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9167 lt_cv_sys_global_symbol_to_cdecl=
9168 fi
9169 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9171 printf "%s\n" "failed" >&6; }
9172 else
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9174 printf "%s\n" "ok" >&6; }
9175 fi
9176
9177 # Response file support.
9178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9179 nm_file_list_spec='@'
9180 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9181 nm_file_list_spec='@'
9182 fi
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9221 printf %s "checking for sysroot... " >&6; }
9222
9223 # Check whether --with-sysroot was given.
9224 if test ${with_sysroot+y}
9225 then :
9226 withval=$with_sysroot;
9227 else $as_nop
9228 with_sysroot=no
9229 fi
9230
9231
9232 lt_sysroot=
9233 case $with_sysroot in #(
9234 yes)
9235 if test yes = "$GCC"; then
9236 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9237 fi
9238 ;; #(
9239 /*)
9240 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9241 ;; #(
9242 no|'')
9243 ;; #(
9244 *)
9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9246 printf "%s\n" "$with_sysroot" >&6; }
9247 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9248 ;;
9249 esac
9250
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9252 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9253
9254
9255
9256
9257
9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9259 printf %s "checking for a working dd... " >&6; }
9260 if test ${ac_cv_path_lt_DD+y}
9261 then :
9262 printf %s "(cached) " >&6
9263 else $as_nop
9264 printf 0123456789abcdef0123456789abcdef >conftest.i
9265 cat conftest.i conftest.i >conftest2.i
9266 : ${lt_DD:=$DD}
9267 if test -z "$lt_DD"; then
9268 ac_path_lt_DD_found=false
9269 # Loop through the user's path and test for each of PROGNAME-LIST
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9272 do
9273 IFS=$as_save_IFS
9274 case $as_dir in #(((
9275 '') as_dir=./ ;;
9276 */) ;;
9277 *) as_dir=$as_dir/ ;;
9278 esac
9279 for ac_prog in dd
9280 do
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9283 as_fn_executable_p "$ac_path_lt_DD" || continue
9284 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9285 cmp -s conftest.i conftest.out \
9286 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9287 fi
9288 $ac_path_lt_DD_found && break 3
9289 done
9290 done
9291 done
9292 IFS=$as_save_IFS
9293 if test -z "$ac_cv_path_lt_DD"; then
9294 :
9295 fi
9296 else
9297 ac_cv_path_lt_DD=$lt_DD
9298 fi
9299
9300 rm -f conftest.i conftest2.i conftest.out
9301 fi
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9303 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9304
9305
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9307 printf %s "checking how to truncate binary pipes... " >&6; }
9308 if test ${lt_cv_truncate_bin+y}
9309 then :
9310 printf %s "(cached) " >&6
9311 else $as_nop
9312 printf 0123456789abcdef0123456789abcdef >conftest.i
9313 cat conftest.i conftest.i >conftest2.i
9314 lt_cv_truncate_bin=
9315 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9316 cmp -s conftest.i conftest.out \
9317 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9318 fi
9319 rm -f conftest.i conftest2.i conftest.out
9320 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9321 fi
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9323 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9324
9325
9326
9327
9328
9329
9330
9331 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9332 func_cc_basename ()
9333 {
9334 for cc_temp in $*""; do
9335 case $cc_temp in
9336 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9337 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9338 \-*) ;;
9339 *) break;;
9340 esac
9341 done
9342 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9343 }
9344
9345 # Check whether --enable-libtool-lock was given.
9346 if test ${enable_libtool_lock+y}
9347 then :
9348 enableval=$enable_libtool_lock;
9349 fi
9350
9351 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9352
9353 # Some flags need to be propagated to the compiler or linker for good
9354 # libtool support.
9355 case $host in
9356 ia64-*-hpux*)
9357 # Find out what ABI is being produced by ac_compile, and set mode
9358 # options accordingly.
9359 echo 'int i;' > conftest.$ac_ext
9360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9361 (eval $ac_compile) 2>&5
9362 ac_status=$?
9363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9364 test $ac_status = 0; }; then
9365 case `$FILECMD conftest.$ac_objext` in
9366 *ELF-32*)
9367 HPUX_IA64_MODE=32
9368 ;;
9369 *ELF-64*)
9370 HPUX_IA64_MODE=64
9371 ;;
9372 esac
9373 fi
9374 rm -rf conftest*
9375 ;;
9376 *-*-irix6*)
9377 # Find out what ABI is being produced by ac_compile, and set linker
9378 # options accordingly.
9379 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9381 (eval $ac_compile) 2>&5
9382 ac_status=$?
9383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9384 test $ac_status = 0; }; then
9385 if test yes = "$lt_cv_prog_gnu_ld"; then
9386 case `$FILECMD conftest.$ac_objext` in
9387 *32-bit*)
9388 LD="${LD-ld} -melf32bsmip"
9389 ;;
9390 *N32*)
9391 LD="${LD-ld} -melf32bmipn32"
9392 ;;
9393 *64-bit*)
9394 LD="${LD-ld} -melf64bmip"
9395 ;;
9396 esac
9397 else
9398 case `$FILECMD conftest.$ac_objext` in
9399 *32-bit*)
9400 LD="${LD-ld} -32"
9401 ;;
9402 *N32*)
9403 LD="${LD-ld} -n32"
9404 ;;
9405 *64-bit*)
9406 LD="${LD-ld} -64"
9407 ;;
9408 esac
9409 fi
9410 fi
9411 rm -rf conftest*
9412 ;;
9413
9414 mips64*-*linux*)
9415 # Find out what ABI is being produced by ac_compile, and set linker
9416 # options accordingly.
9417 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9419 (eval $ac_compile) 2>&5
9420 ac_status=$?
9421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9422 test $ac_status = 0; }; then
9423 emul=elf
9424 case `$FILECMD conftest.$ac_objext` in
9425 *32-bit*)
9426 emul="${emul}32"
9427 ;;
9428 *64-bit*)
9429 emul="${emul}64"
9430 ;;
9431 esac
9432 case `$FILECMD conftest.$ac_objext` in
9433 *MSB*)
9434 emul="${emul}btsmip"
9435 ;;
9436 *LSB*)
9437 emul="${emul}ltsmip"
9438 ;;
9439 esac
9440 case `$FILECMD conftest.$ac_objext` in
9441 *N32*)
9442 emul="${emul}n32"
9443 ;;
9444 esac
9445 LD="${LD-ld} -m $emul"
9446 fi
9447 rm -rf conftest*
9448 ;;
9449
9450 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9451 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9452 # Find out what ABI is being produced by ac_compile, and set linker
9453 # options accordingly. Note that the listed cases only cover the
9454 # situations where additional linker options are needed (such as when
9455 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9456 # vice versa); the common cases where no linker options are needed do
9457 # not appear in the list.
9458 echo 'int i;' > conftest.$ac_ext
9459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9460 (eval $ac_compile) 2>&5
9461 ac_status=$?
9462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9463 test $ac_status = 0; }; then
9464 case `$FILECMD conftest.o` in
9465 *32-bit*)
9466 case $host in
9467 x86_64-*kfreebsd*-gnu)
9468 LD="${LD-ld} -m elf_i386_fbsd"
9469 ;;
9470 x86_64-*linux*)
9471 case `$FILECMD conftest.o` in
9472 *x86-64*)
9473 LD="${LD-ld} -m elf32_x86_64"
9474 ;;
9475 *)
9476 LD="${LD-ld} -m elf_i386"
9477 ;;
9478 esac
9479 ;;
9480 powerpc64le-*linux*)
9481 LD="${LD-ld} -m elf32lppclinux"
9482 ;;
9483 powerpc64-*linux*)
9484 LD="${LD-ld} -m elf32ppclinux"
9485 ;;
9486 s390x-*linux*)
9487 LD="${LD-ld} -m elf_s390"
9488 ;;
9489 sparc64-*linux*)
9490 LD="${LD-ld} -m elf32_sparc"
9491 ;;
9492 esac
9493 ;;
9494 *64-bit*)
9495 case $host in
9496 x86_64-*kfreebsd*-gnu)
9497 LD="${LD-ld} -m elf_x86_64_fbsd"
9498 ;;
9499 x86_64-*linux*)
9500 LD="${LD-ld} -m elf_x86_64"
9501 ;;
9502 powerpcle-*linux*)
9503 LD="${LD-ld} -m elf64lppc"
9504 ;;
9505 powerpc-*linux*)
9506 LD="${LD-ld} -m elf64ppc"
9507 ;;
9508 s390*-*linux*|s390*-*tpf*)
9509 LD="${LD-ld} -m elf64_s390"
9510 ;;
9511 sparc*-*linux*)
9512 LD="${LD-ld} -m elf64_sparc"
9513 ;;
9514 esac
9515 ;;
9516 esac
9517 fi
9518 rm -rf conftest*
9519 ;;
9520
9521 *-*-sco3.2v5*)
9522 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9523 SAVE_CFLAGS=$CFLAGS
9524 CFLAGS="$CFLAGS -belf"
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9526 printf %s "checking whether the C compiler needs -belf... " >&6; }
9527 if test ${lt_cv_cc_needs_belf+y}
9528 then :
9529 printf %s "(cached) " >&6
9530 else $as_nop
9531 ac_ext=c
9532 ac_cpp='$CPP $CPPFLAGS'
9533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9536
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9539
9540 int
9541 main (void)
9542 {
9543
9544 ;
9545 return 0;
9546 }
9547 _ACEOF
9548 if ac_fn_c_try_link "$LINENO"
9549 then :
9550 lt_cv_cc_needs_belf=yes
9551 else $as_nop
9552 lt_cv_cc_needs_belf=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9555 conftest$ac_exeext conftest.$ac_ext
9556 ac_ext=c
9557 ac_cpp='$CPP $CPPFLAGS'
9558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9561
9562 fi
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9564 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9565 if test yes != "$lt_cv_cc_needs_belf"; then
9566 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9567 CFLAGS=$SAVE_CFLAGS
9568 fi
9569 ;;
9570 *-*solaris*)
9571 # Find out what ABI is being produced by ac_compile, and set linker
9572 # options accordingly.
9573 echo 'int i;' > conftest.$ac_ext
9574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9575 (eval $ac_compile) 2>&5
9576 ac_status=$?
9577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9578 test $ac_status = 0; }; then
9579 case `$FILECMD conftest.o` in
9580 *64-bit*)
9581 case $lt_cv_prog_gnu_ld in
9582 yes*)
9583 case $host in
9584 i?86-*-solaris*|x86_64-*-solaris*)
9585 LD="${LD-ld} -m elf_x86_64"
9586 ;;
9587 sparc*-*-solaris*)
9588 LD="${LD-ld} -m elf64_sparc"
9589 ;;
9590 esac
9591 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9592 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9593 LD=${LD-ld}_sol2
9594 fi
9595 ;;
9596 *)
9597 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9598 LD="${LD-ld} -64"
9599 fi
9600 ;;
9601 esac
9602 ;;
9603 esac
9604 fi
9605 rm -rf conftest*
9606 ;;
9607 esac
9608
9609 need_locks=$enable_libtool_lock
9610
9611 if test -n "$ac_tool_prefix"; then
9612 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9613 set dummy ${ac_tool_prefix}mt; ac_word=$2
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9615 printf %s "checking for $ac_word... " >&6; }
9616 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9617 then :
9618 printf %s "(cached) " >&6
9619 else $as_nop
9620 if test -n "$MANIFEST_TOOL"; then
9621 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9622 else
9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624 for as_dir in $PATH
9625 do
9626 IFS=$as_save_IFS
9627 case $as_dir in #(((
9628 '') as_dir=./ ;;
9629 */) ;;
9630 *) as_dir=$as_dir/ ;;
9631 esac
9632 for ac_exec_ext in '' $ac_executable_extensions; do
9633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9634 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9636 break 2
9637 fi
9638 done
9639 done
9640 IFS=$as_save_IFS
9641
9642 fi
9643 fi
9644 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9645 if test -n "$MANIFEST_TOOL"; then
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9647 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9648 else
9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 printf "%s\n" "no" >&6; }
9651 fi
9652
9653
9654 fi
9655 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9656 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9657 # Extract the first word of "mt", so it can be a program name with args.
9658 set dummy mt; ac_word=$2
9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9660 printf %s "checking for $ac_word... " >&6; }
9661 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9662 then :
9663 printf %s "(cached) " >&6
9664 else $as_nop
9665 if test -n "$ac_ct_MANIFEST_TOOL"; then
9666 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9667 else
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in $PATH
9670 do
9671 IFS=$as_save_IFS
9672 case $as_dir in #(((
9673 '') as_dir=./ ;;
9674 */) ;;
9675 *) as_dir=$as_dir/ ;;
9676 esac
9677 for ac_exec_ext in '' $ac_executable_extensions; do
9678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9679 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9681 break 2
9682 fi
9683 done
9684 done
9685 IFS=$as_save_IFS
9686
9687 fi
9688 fi
9689 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9690 if test -n "$ac_ct_MANIFEST_TOOL"; then
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9692 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9693 else
9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 printf "%s\n" "no" >&6; }
9696 fi
9697
9698 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9699 MANIFEST_TOOL=":"
9700 else
9701 case $cross_compiling:$ac_tool_warned in
9702 yes:)
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9704 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9705 ac_tool_warned=yes ;;
9706 esac
9707 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9708 fi
9709 else
9710 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9711 fi
9712
9713 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9715 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9716 if test ${lt_cv_path_mainfest_tool+y}
9717 then :
9718 printf %s "(cached) " >&6
9719 else $as_nop
9720 lt_cv_path_mainfest_tool=no
9721 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9722 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9723 cat conftest.err >&5
9724 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9725 lt_cv_path_mainfest_tool=yes
9726 fi
9727 rm -f conftest*
9728 fi
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9730 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9731 if test yes != "$lt_cv_path_mainfest_tool"; then
9732 MANIFEST_TOOL=:
9733 fi
9734
9735
9736
9737
9738
9739
9740 case $host_os in
9741 rhapsody* | darwin*)
9742 if test -n "$ac_tool_prefix"; then
9743 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9744 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 printf %s "checking for $ac_word... " >&6; }
9747 if test ${ac_cv_prog_DSYMUTIL+y}
9748 then :
9749 printf %s "(cached) " >&6
9750 else $as_nop
9751 if test -n "$DSYMUTIL"; then
9752 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9753 else
9754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9755 for as_dir in $PATH
9756 do
9757 IFS=$as_save_IFS
9758 case $as_dir in #(((
9759 '') as_dir=./ ;;
9760 */) ;;
9761 *) as_dir=$as_dir/ ;;
9762 esac
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9765 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9767 break 2
9768 fi
9769 done
9770 done
9771 IFS=$as_save_IFS
9772
9773 fi
9774 fi
9775 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9776 if test -n "$DSYMUTIL"; then
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9778 printf "%s\n" "$DSYMUTIL" >&6; }
9779 else
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 printf "%s\n" "no" >&6; }
9782 fi
9783
9784
9785 fi
9786 if test -z "$ac_cv_prog_DSYMUTIL"; then
9787 ac_ct_DSYMUTIL=$DSYMUTIL
9788 # Extract the first word of "dsymutil", so it can be a program name with args.
9789 set dummy dsymutil; ac_word=$2
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 printf %s "checking for $ac_word... " >&6; }
9792 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9793 then :
9794 printf %s "(cached) " >&6
9795 else $as_nop
9796 if test -n "$ac_ct_DSYMUTIL"; then
9797 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9798 else
9799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9800 for as_dir in $PATH
9801 do
9802 IFS=$as_save_IFS
9803 case $as_dir in #(((
9804 '') as_dir=./ ;;
9805 */) ;;
9806 *) as_dir=$as_dir/ ;;
9807 esac
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814 done
9815 done
9816 IFS=$as_save_IFS
9817
9818 fi
9819 fi
9820 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9821 if test -n "$ac_ct_DSYMUTIL"; then
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9823 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9824 else
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 printf "%s\n" "no" >&6; }
9827 fi
9828
9829 if test "x$ac_ct_DSYMUTIL" = x; then
9830 DSYMUTIL=":"
9831 else
9832 case $cross_compiling:$ac_tool_warned in
9833 yes:)
9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9836 ac_tool_warned=yes ;;
9837 esac
9838 DSYMUTIL=$ac_ct_DSYMUTIL
9839 fi
9840 else
9841 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9842 fi
9843
9844 if test -n "$ac_tool_prefix"; then
9845 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9846 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 printf %s "checking for $ac_word... " >&6; }
9849 if test ${ac_cv_prog_NMEDIT+y}
9850 then :
9851 printf %s "(cached) " >&6
9852 else $as_nop
9853 if test -n "$NMEDIT"; then
9854 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9855 else
9856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9857 for as_dir in $PATH
9858 do
9859 IFS=$as_save_IFS
9860 case $as_dir in #(((
9861 '') as_dir=./ ;;
9862 */) ;;
9863 *) as_dir=$as_dir/ ;;
9864 esac
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9867 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9869 break 2
9870 fi
9871 done
9872 done
9873 IFS=$as_save_IFS
9874
9875 fi
9876 fi
9877 NMEDIT=$ac_cv_prog_NMEDIT
9878 if test -n "$NMEDIT"; then
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9880 printf "%s\n" "$NMEDIT" >&6; }
9881 else
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 printf "%s\n" "no" >&6; }
9884 fi
9885
9886
9887 fi
9888 if test -z "$ac_cv_prog_NMEDIT"; then
9889 ac_ct_NMEDIT=$NMEDIT
9890 # Extract the first word of "nmedit", so it can be a program name with args.
9891 set dummy nmedit; ac_word=$2
9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 printf %s "checking for $ac_word... " >&6; }
9894 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9895 then :
9896 printf %s "(cached) " >&6
9897 else $as_nop
9898 if test -n "$ac_ct_NMEDIT"; then
9899 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9903 do
9904 IFS=$as_save_IFS
9905 case $as_dir in #(((
9906 '') as_dir=./ ;;
9907 */) ;;
9908 *) as_dir=$as_dir/ ;;
9909 esac
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9912 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9914 break 2
9915 fi
9916 done
9917 done
9918 IFS=$as_save_IFS
9919
9920 fi
9921 fi
9922 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9923 if test -n "$ac_ct_NMEDIT"; then
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9925 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9926 else
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 printf "%s\n" "no" >&6; }
9929 fi
9930
9931 if test "x$ac_ct_NMEDIT" = x; then
9932 NMEDIT=":"
9933 else
9934 case $cross_compiling:$ac_tool_warned in
9935 yes:)
9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9937 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9938 ac_tool_warned=yes ;;
9939 esac
9940 NMEDIT=$ac_ct_NMEDIT
9941 fi
9942 else
9943 NMEDIT="$ac_cv_prog_NMEDIT"
9944 fi
9945
9946 if test -n "$ac_tool_prefix"; then
9947 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9948 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 printf %s "checking for $ac_word... " >&6; }
9951 if test ${ac_cv_prog_LIPO+y}
9952 then :
9953 printf %s "(cached) " >&6
9954 else $as_nop
9955 if test -n "$LIPO"; then
9956 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9957 else
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9960 do
9961 IFS=$as_save_IFS
9962 case $as_dir in #(((
9963 '') as_dir=./ ;;
9964 */) ;;
9965 *) as_dir=$as_dir/ ;;
9966 esac
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9969 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9971 break 2
9972 fi
9973 done
9974 done
9975 IFS=$as_save_IFS
9976
9977 fi
9978 fi
9979 LIPO=$ac_cv_prog_LIPO
9980 if test -n "$LIPO"; then
9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9982 printf "%s\n" "$LIPO" >&6; }
9983 else
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 printf "%s\n" "no" >&6; }
9986 fi
9987
9988
9989 fi
9990 if test -z "$ac_cv_prog_LIPO"; then
9991 ac_ct_LIPO=$LIPO
9992 # Extract the first word of "lipo", so it can be a program name with args.
9993 set dummy lipo; ac_word=$2
9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 printf %s "checking for $ac_word... " >&6; }
9996 if test ${ac_cv_prog_ac_ct_LIPO+y}
9997 then :
9998 printf %s "(cached) " >&6
9999 else $as_nop
10000 if test -n "$ac_ct_LIPO"; then
10001 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10002 else
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006 IFS=$as_save_IFS
10007 case $as_dir in #(((
10008 '') as_dir=./ ;;
10009 */) ;;
10010 *) as_dir=$as_dir/ ;;
10011 esac
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10014 ac_cv_prog_ac_ct_LIPO="lipo"
10015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10016 break 2
10017 fi
10018 done
10019 done
10020 IFS=$as_save_IFS
10021
10022 fi
10023 fi
10024 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10025 if test -n "$ac_ct_LIPO"; then
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10027 printf "%s\n" "$ac_ct_LIPO" >&6; }
10028 else
10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 printf "%s\n" "no" >&6; }
10031 fi
10032
10033 if test "x$ac_ct_LIPO" = x; then
10034 LIPO=":"
10035 else
10036 case $cross_compiling:$ac_tool_warned in
10037 yes:)
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10039 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10040 ac_tool_warned=yes ;;
10041 esac
10042 LIPO=$ac_ct_LIPO
10043 fi
10044 else
10045 LIPO="$ac_cv_prog_LIPO"
10046 fi
10047
10048 if test -n "$ac_tool_prefix"; then
10049 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10050 set dummy ${ac_tool_prefix}otool; ac_word=$2
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 printf %s "checking for $ac_word... " >&6; }
10053 if test ${ac_cv_prog_OTOOL+y}
10054 then :
10055 printf %s "(cached) " >&6
10056 else $as_nop
10057 if test -n "$OTOOL"; then
10058 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10059 else
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10062 do
10063 IFS=$as_save_IFS
10064 case $as_dir in #(((
10065 '') as_dir=./ ;;
10066 */) ;;
10067 *) as_dir=$as_dir/ ;;
10068 esac
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10071 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10073 break 2
10074 fi
10075 done
10076 done
10077 IFS=$as_save_IFS
10078
10079 fi
10080 fi
10081 OTOOL=$ac_cv_prog_OTOOL
10082 if test -n "$OTOOL"; then
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10084 printf "%s\n" "$OTOOL" >&6; }
10085 else
10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 printf "%s\n" "no" >&6; }
10088 fi
10089
10090
10091 fi
10092 if test -z "$ac_cv_prog_OTOOL"; then
10093 ac_ct_OTOOL=$OTOOL
10094 # Extract the first word of "otool", so it can be a program name with args.
10095 set dummy otool; ac_word=$2
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 printf %s "checking for $ac_word... " >&6; }
10098 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10099 then :
10100 printf %s "(cached) " >&6
10101 else $as_nop
10102 if test -n "$ac_ct_OTOOL"; then
10103 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10104 else
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10107 do
10108 IFS=$as_save_IFS
10109 case $as_dir in #(((
10110 '') as_dir=./ ;;
10111 */) ;;
10112 *) as_dir=$as_dir/ ;;
10113 esac
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10116 ac_cv_prog_ac_ct_OTOOL="otool"
10117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10118 break 2
10119 fi
10120 done
10121 done
10122 IFS=$as_save_IFS
10123
10124 fi
10125 fi
10126 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10127 if test -n "$ac_ct_OTOOL"; then
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10129 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10130 else
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132 printf "%s\n" "no" >&6; }
10133 fi
10134
10135 if test "x$ac_ct_OTOOL" = x; then
10136 OTOOL=":"
10137 else
10138 case $cross_compiling:$ac_tool_warned in
10139 yes:)
10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10141 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10142 ac_tool_warned=yes ;;
10143 esac
10144 OTOOL=$ac_ct_OTOOL
10145 fi
10146 else
10147 OTOOL="$ac_cv_prog_OTOOL"
10148 fi
10149
10150 if test -n "$ac_tool_prefix"; then
10151 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10152 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 printf %s "checking for $ac_word... " >&6; }
10155 if test ${ac_cv_prog_OTOOL64+y}
10156 then :
10157 printf %s "(cached) " >&6
10158 else $as_nop
10159 if test -n "$OTOOL64"; then
10160 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10161 else
10162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163 for as_dir in $PATH
10164 do
10165 IFS=$as_save_IFS
10166 case $as_dir in #(((
10167 '') as_dir=./ ;;
10168 */) ;;
10169 *) as_dir=$as_dir/ ;;
10170 esac
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10173 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10175 break 2
10176 fi
10177 done
10178 done
10179 IFS=$as_save_IFS
10180
10181 fi
10182 fi
10183 OTOOL64=$ac_cv_prog_OTOOL64
10184 if test -n "$OTOOL64"; then
10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10186 printf "%s\n" "$OTOOL64" >&6; }
10187 else
10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 printf "%s\n" "no" >&6; }
10190 fi
10191
10192
10193 fi
10194 if test -z "$ac_cv_prog_OTOOL64"; then
10195 ac_ct_OTOOL64=$OTOOL64
10196 # Extract the first word of "otool64", so it can be a program name with args.
10197 set dummy otool64; ac_word=$2
10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 printf %s "checking for $ac_word... " >&6; }
10200 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10201 then :
10202 printf %s "(cached) " >&6
10203 else $as_nop
10204 if test -n "$ac_ct_OTOOL64"; then
10205 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10206 else
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210 IFS=$as_save_IFS
10211 case $as_dir in #(((
10212 '') as_dir=./ ;;
10213 */) ;;
10214 *) as_dir=$as_dir/ ;;
10215 esac
10216 for ac_exec_ext in '' $ac_executable_extensions; do
10217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10218 ac_cv_prog_ac_ct_OTOOL64="otool64"
10219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10220 break 2
10221 fi
10222 done
10223 done
10224 IFS=$as_save_IFS
10225
10226 fi
10227 fi
10228 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10229 if test -n "$ac_ct_OTOOL64"; then
10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10231 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10232 else
10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 printf "%s\n" "no" >&6; }
10235 fi
10236
10237 if test "x$ac_ct_OTOOL64" = x; then
10238 OTOOL64=":"
10239 else
10240 case $cross_compiling:$ac_tool_warned in
10241 yes:)
10242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10244 ac_tool_warned=yes ;;
10245 esac
10246 OTOOL64=$ac_ct_OTOOL64
10247 fi
10248 else
10249 OTOOL64="$ac_cv_prog_OTOOL64"
10250 fi
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10279 printf %s "checking for -single_module linker flag... " >&6; }
10280 if test ${lt_cv_apple_cc_single_mod+y}
10281 then :
10282 printf %s "(cached) " >&6
10283 else $as_nop
10284 lt_cv_apple_cc_single_mod=no
10285 if test -z "$LT_MULTI_MODULE"; then
10286 # By default we will add the -single_module flag. You can override
10287 # by either setting the environment variable LT_MULTI_MODULE
10288 # non-empty at configure time, or by adding -multi_module to the
10289 # link flags.
10290 rm -rf libconftest.dylib*
10291 echo "int foo(void){return 1;}" > conftest.c
10292 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10293 -dynamiclib -Wl,-single_module conftest.c" >&5
10294 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10295 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10296 _lt_result=$?
10297 # If there is a non-empty error log, and "single_module"
10298 # appears in it, assume the flag caused a linker warning
10299 if test -s conftest.err && $GREP single_module conftest.err; then
10300 cat conftest.err >&5
10301 # Otherwise, if the output was created with a 0 exit code from
10302 # the compiler, it worked.
10303 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10304 lt_cv_apple_cc_single_mod=yes
10305 else
10306 cat conftest.err >&5
10307 fi
10308 rm -rf libconftest.dylib*
10309 rm -f conftest.*
10310 fi
10311 fi
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10313 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10314
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10316 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10317 if test ${lt_cv_ld_exported_symbols_list+y}
10318 then :
10319 printf %s "(cached) " >&6
10320 else $as_nop
10321 lt_cv_ld_exported_symbols_list=no
10322 save_LDFLAGS=$LDFLAGS
10323 echo "_main" > conftest.sym
10324 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327
10328 int
10329 main (void)
10330 {
10331
10332 ;
10333 return 0;
10334 }
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"
10337 then :
10338 lt_cv_ld_exported_symbols_list=yes
10339 else $as_nop
10340 lt_cv_ld_exported_symbols_list=no
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LDFLAGS=$save_LDFLAGS
10345
10346 fi
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10348 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10349
10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10351 printf %s "checking for -force_load linker flag... " >&6; }
10352 if test ${lt_cv_ld_force_load+y}
10353 then :
10354 printf %s "(cached) " >&6
10355 else $as_nop
10356 lt_cv_ld_force_load=no
10357 cat > conftest.c << _LT_EOF
10358 int forced_loaded() { return 2;}
10359 _LT_EOF
10360 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10361 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10362 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10363 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10364 echo "$RANLIB libconftest.a" >&5
10365 $RANLIB libconftest.a 2>&5
10366 cat > conftest.c << _LT_EOF
10367 int main() { return 0;}
10368 _LT_EOF
10369 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10370 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10371 _lt_result=$?
10372 if test -s conftest.err && $GREP force_load conftest.err; then
10373 cat conftest.err >&5
10374 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10375 lt_cv_ld_force_load=yes
10376 else
10377 cat conftest.err >&5
10378 fi
10379 rm -f conftest.err libconftest.a conftest conftest.c
10380 rm -rf conftest.dSYM
10381
10382 fi
10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10384 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10385 case $host_os in
10386 rhapsody* | darwin1.[012])
10387 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10388 darwin1.*)
10389 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10390 darwin*)
10391 case $MACOSX_DEPLOYMENT_TARGET,$host in
10392 10.[012],*|,*powerpc*-darwin[5-8]*)
10393 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10394 *)
10395 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10396 esac
10397 ;;
10398 esac
10399 if test yes = "$lt_cv_apple_cc_single_mod"; then
10400 _lt_dar_single_mod='$single_module'
10401 fi
10402 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10403 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10404 else
10405 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10406 fi
10407 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10408 _lt_dsymutil='~$DSYMUTIL $lib || :'
10409 else
10410 _lt_dsymutil=
10411 fi
10412 ;;
10413 esac
10414
10415 # func_munge_path_list VARIABLE PATH
10416 # -----------------------------------
10417 # VARIABLE is name of variable containing _space_ separated list of
10418 # directories to be munged by the contents of PATH, which is string
10419 # having a format:
10420 # "DIR[:DIR]:"
10421 # string "DIR[ DIR]" will be prepended to VARIABLE
10422 # ":DIR[:DIR]"
10423 # string "DIR[ DIR]" will be appended to VARIABLE
10424 # "DIRP[:DIRP]::[DIRA:]DIRA"
10425 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10426 # "DIRA[ DIRA]" will be appended to VARIABLE
10427 # "DIR[:DIR]"
10428 # VARIABLE will be replaced by "DIR[ DIR]"
10429 func_munge_path_list ()
10430 {
10431 case x$2 in
10432 x)
10433 ;;
10434 *:)
10435 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10436 ;;
10437 x:*)
10438 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10439 ;;
10440 *::*)
10441 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10442 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10443 ;;
10444 *)
10445 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10446 ;;
10447 esac
10448 }
10449
10450 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10451 "
10452 if test "x$ac_cv_header_dlfcn_h" = xyes
10453 then :
10454 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10455
10456 fi
10457
10458
10459
10460
10461
10462 # Set options
10463 enable_win32_dll=yes
10464
10465 case $host in
10466 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10467 if test -n "$ac_tool_prefix"; then
10468 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10469 set dummy ${ac_tool_prefix}as; ac_word=$2
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 printf %s "checking for $ac_word... " >&6; }
10472 if test ${ac_cv_prog_AS+y}
10473 then :
10474 printf %s "(cached) " >&6
10475 else $as_nop
10476 if test -n "$AS"; then
10477 ac_cv_prog_AS="$AS" # Let the user override the test.
10478 else
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10481 do
10482 IFS=$as_save_IFS
10483 case $as_dir in #(((
10484 '') as_dir=./ ;;
10485 */) ;;
10486 *) as_dir=$as_dir/ ;;
10487 esac
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10490 ac_cv_prog_AS="${ac_tool_prefix}as"
10491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10492 break 2
10493 fi
10494 done
10495 done
10496 IFS=$as_save_IFS
10497
10498 fi
10499 fi
10500 AS=$ac_cv_prog_AS
10501 if test -n "$AS"; then
10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10503 printf "%s\n" "$AS" >&6; }
10504 else
10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 printf "%s\n" "no" >&6; }
10507 fi
10508
10509
10510 fi
10511 if test -z "$ac_cv_prog_AS"; then
10512 ac_ct_AS=$AS
10513 # Extract the first word of "as", so it can be a program name with args.
10514 set dummy as; ac_word=$2
10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516 printf %s "checking for $ac_word... " >&6; }
10517 if test ${ac_cv_prog_ac_ct_AS+y}
10518 then :
10519 printf %s "(cached) " >&6
10520 else $as_nop
10521 if test -n "$ac_ct_AS"; then
10522 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10523 else
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10526 do
10527 IFS=$as_save_IFS
10528 case $as_dir in #(((
10529 '') as_dir=./ ;;
10530 */) ;;
10531 *) as_dir=$as_dir/ ;;
10532 esac
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10535 ac_cv_prog_ac_ct_AS="as"
10536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10537 break 2
10538 fi
10539 done
10540 done
10541 IFS=$as_save_IFS
10542
10543 fi
10544 fi
10545 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10546 if test -n "$ac_ct_AS"; then
10547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10548 printf "%s\n" "$ac_ct_AS" >&6; }
10549 else
10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 printf "%s\n" "no" >&6; }
10552 fi
10553
10554 if test "x$ac_ct_AS" = x; then
10555 AS="false"
10556 else
10557 case $cross_compiling:$ac_tool_warned in
10558 yes:)
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10560 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10561 ac_tool_warned=yes ;;
10562 esac
10563 AS=$ac_ct_AS
10564 fi
10565 else
10566 AS="$ac_cv_prog_AS"
10567 fi
10568
10569 if test -n "$ac_tool_prefix"; then
10570 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10571 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573 printf %s "checking for $ac_word... " >&6; }
10574 if test ${ac_cv_prog_DLLTOOL+y}
10575 then :
10576 printf %s "(cached) " >&6
10577 else $as_nop
10578 if test -n "$DLLTOOL"; then
10579 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10580 else
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10583 do
10584 IFS=$as_save_IFS
10585 case $as_dir in #(((
10586 '') as_dir=./ ;;
10587 */) ;;
10588 *) as_dir=$as_dir/ ;;
10589 esac
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10592 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596 done
10597 done
10598 IFS=$as_save_IFS
10599
10600 fi
10601 fi
10602 DLLTOOL=$ac_cv_prog_DLLTOOL
10603 if test -n "$DLLTOOL"; then
10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10605 printf "%s\n" "$DLLTOOL" >&6; }
10606 else
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 printf "%s\n" "no" >&6; }
10609 fi
10610
10611
10612 fi
10613 if test -z "$ac_cv_prog_DLLTOOL"; then
10614 ac_ct_DLLTOOL=$DLLTOOL
10615 # Extract the first word of "dlltool", so it can be a program name with args.
10616 set dummy dlltool; ac_word=$2
10617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 printf %s "checking for $ac_word... " >&6; }
10619 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10620 then :
10621 printf %s "(cached) " >&6
10622 else $as_nop
10623 if test -n "$ac_ct_DLLTOOL"; then
10624 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10625 else
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627 for as_dir in $PATH
10628 do
10629 IFS=$as_save_IFS
10630 case $as_dir in #(((
10631 '') as_dir=./ ;;
10632 */) ;;
10633 *) as_dir=$as_dir/ ;;
10634 esac
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10637 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10639 break 2
10640 fi
10641 done
10642 done
10643 IFS=$as_save_IFS
10644
10645 fi
10646 fi
10647 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10648 if test -n "$ac_ct_DLLTOOL"; then
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10650 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10651 else
10652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 printf "%s\n" "no" >&6; }
10654 fi
10655
10656 if test "x$ac_ct_DLLTOOL" = x; then
10657 DLLTOOL="false"
10658 else
10659 case $cross_compiling:$ac_tool_warned in
10660 yes:)
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10663 ac_tool_warned=yes ;;
10664 esac
10665 DLLTOOL=$ac_ct_DLLTOOL
10666 fi
10667 else
10668 DLLTOOL="$ac_cv_prog_DLLTOOL"
10669 fi
10670
10671 if test -n "$ac_tool_prefix"; then
10672 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10673 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675 printf %s "checking for $ac_word... " >&6; }
10676 if test ${ac_cv_prog_OBJDUMP+y}
10677 then :
10678 printf %s "(cached) " >&6
10679 else $as_nop
10680 if test -n "$OBJDUMP"; then
10681 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686 IFS=$as_save_IFS
10687 case $as_dir in #(((
10688 '') as_dir=./ ;;
10689 */) ;;
10690 *) as_dir=$as_dir/ ;;
10691 esac
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698 done
10699 done
10700 IFS=$as_save_IFS
10701
10702 fi
10703 fi
10704 OBJDUMP=$ac_cv_prog_OBJDUMP
10705 if test -n "$OBJDUMP"; then
10706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10707 printf "%s\n" "$OBJDUMP" >&6; }
10708 else
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 printf "%s\n" "no" >&6; }
10711 fi
10712
10713
10714 fi
10715 if test -z "$ac_cv_prog_OBJDUMP"; then
10716 ac_ct_OBJDUMP=$OBJDUMP
10717 # Extract the first word of "objdump", so it can be a program name with args.
10718 set dummy objdump; ac_word=$2
10719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10720 printf %s "checking for $ac_word... " >&6; }
10721 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10722 then :
10723 printf %s "(cached) " >&6
10724 else $as_nop
10725 if test -n "$ac_ct_OBJDUMP"; then
10726 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10727 else
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $PATH
10730 do
10731 IFS=$as_save_IFS
10732 case $as_dir in #(((
10733 '') as_dir=./ ;;
10734 */) ;;
10735 *) as_dir=$as_dir/ ;;
10736 esac
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10739 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10741 break 2
10742 fi
10743 done
10744 done
10745 IFS=$as_save_IFS
10746
10747 fi
10748 fi
10749 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10750 if test -n "$ac_ct_OBJDUMP"; then
10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10752 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10753 else
10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 printf "%s\n" "no" >&6; }
10756 fi
10757
10758 if test "x$ac_ct_OBJDUMP" = x; then
10759 OBJDUMP="false"
10760 else
10761 case $cross_compiling:$ac_tool_warned in
10762 yes:)
10763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10764 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10765 ac_tool_warned=yes ;;
10766 esac
10767 OBJDUMP=$ac_ct_OBJDUMP
10768 fi
10769 else
10770 OBJDUMP="$ac_cv_prog_OBJDUMP"
10771 fi
10772
10773 ;;
10774 esac
10775
10776 test -z "$AS" && AS=as
10777
10778
10779
10780
10781
10782 test -z "$DLLTOOL" && DLLTOOL=dlltool
10783
10784
10785
10786
10787
10788 test -z "$OBJDUMP" && OBJDUMP=objdump
10789
10790
10791
10792
10793 # Check whether --enable-static was given.
10794 if test ${enable_static+y}
10795 then :
10796 enableval=$enable_static; p=${PACKAGE-default}
10797 case $enableval in
10798 yes) enable_static=yes ;;
10799 no) enable_static=no ;;
10800 *)
10801 enable_static=no
10802 # Look at the argument we got. We use all the common list separators.
10803 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10804 for pkg in $enableval; do
10805 IFS=$lt_save_ifs
10806 if test "X$pkg" = "X$p"; then
10807 enable_static=yes
10808 fi
10809 done
10810 IFS=$lt_save_ifs
10811 ;;
10812 esac
10813 else $as_nop
10814 enable_static=no
10815 fi
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826 enable_dlopen=no
10827
10828
10829
10830 # Check whether --enable-shared was given.
10831 if test ${enable_shared+y}
10832 then :
10833 enableval=$enable_shared; p=${PACKAGE-default}
10834 case $enableval in
10835 yes) enable_shared=yes ;;
10836 no) enable_shared=no ;;
10837 *)
10838 enable_shared=no
10839 # Look at the argument we got. We use all the common list separators.
10840 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10841 for pkg in $enableval; do
10842 IFS=$lt_save_ifs
10843 if test "X$pkg" = "X$p"; then
10844 enable_shared=yes
10845 fi
10846 done
10847 IFS=$lt_save_ifs
10848 ;;
10849 esac
10850 else $as_nop
10851 enable_shared=yes
10852 fi
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864 # Check whether --with-pic was given.
10865 if test ${with_pic+y}
10866 then :
10867 withval=$with_pic; lt_p=${PACKAGE-default}
10868 case $withval in
10869 yes|no) pic_mode=$withval ;;
10870 *)
10871 pic_mode=default
10872 # Look at the argument we got. We use all the common list separators.
10873 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10874 for lt_pkg in $withval; do
10875 IFS=$lt_save_ifs
10876 if test "X$lt_pkg" = "X$lt_p"; then
10877 pic_mode=yes
10878 fi
10879 done
10880 IFS=$lt_save_ifs
10881 ;;
10882 esac
10883 else $as_nop
10884 pic_mode=default
10885 fi
10886
10887
10888
10889
10890
10891
10892
10893
10894 # Check whether --enable-fast-install was given.
10895 if test ${enable_fast_install+y}
10896 then :
10897 enableval=$enable_fast_install; p=${PACKAGE-default}
10898 case $enableval in
10899 yes) enable_fast_install=yes ;;
10900 no) enable_fast_install=no ;;
10901 *)
10902 enable_fast_install=no
10903 # Look at the argument we got. We use all the common list separators.
10904 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10905 for pkg in $enableval; do
10906 IFS=$lt_save_ifs
10907 if test "X$pkg" = "X$p"; then
10908 enable_fast_install=yes
10909 fi
10910 done
10911 IFS=$lt_save_ifs
10912 ;;
10913 esac
10914 else $as_nop
10915 enable_fast_install=yes
10916 fi
10917
10918
10919
10920
10921
10922
10923
10924
10925 shared_archive_member_spec=
10926 case $host,$enable_shared in
10927 power*-*-aix[5-9]*,yes)
10928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10929 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10930
10931 # Check whether --with-aix-soname was given.
10932 if test ${with_aix_soname+y}
10933 then :
10934 withval=$with_aix_soname; case $withval in
10935 aix|svr4|both)
10936 ;;
10937 *)
10938 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10939 ;;
10940 esac
10941 lt_cv_with_aix_soname=$with_aix_soname
10942 else $as_nop
10943 if test ${lt_cv_with_aix_soname+y}
10944 then :
10945 printf %s "(cached) " >&6
10946 else $as_nop
10947 lt_cv_with_aix_soname=aix
10948 fi
10949
10950 with_aix_soname=$lt_cv_with_aix_soname
10951 fi
10952
10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10954 printf "%s\n" "$with_aix_soname" >&6; }
10955 if test aix != "$with_aix_soname"; then
10956 # For the AIX way of multilib, we name the shared archive member
10957 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10958 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10959 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10960 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10961 if test 64 = "${OBJECT_MODE-32}"; then
10962 shared_archive_member_spec=shr_64
10963 else
10964 shared_archive_member_spec=shr
10965 fi
10966 fi
10967 ;;
10968 *)
10969 with_aix_soname=aix
10970 ;;
10971 esac
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982 # This can be used to rebuild libtool when needed
10983 LIBTOOL_DEPS=$ltmain
10984
10985 # Always use our own libtool.
10986 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017 test -z "$LN_S" && LN_S="ln -s"
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032 if test -n "${ZSH_VERSION+set}"; then
11033 setopt NO_GLOB_SUBST
11034 fi
11035
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11037 printf %s "checking for objdir... " >&6; }
11038 if test ${lt_cv_objdir+y}
11039 then :
11040 printf %s "(cached) " >&6
11041 else $as_nop
11042 rm -f .libs 2>/dev/null
11043 mkdir .libs 2>/dev/null
11044 if test -d .libs; then
11045 lt_cv_objdir=.libs
11046 else
11047 # MS-DOS does not allow filenames that begin with a dot.
11048 lt_cv_objdir=_libs
11049 fi
11050 rmdir .libs 2>/dev/null
11051 fi
11052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11053 printf "%s\n" "$lt_cv_objdir" >&6; }
11054 objdir=$lt_cv_objdir
11055
11056
11057
11058
11059
11060 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11061
11062
11063
11064
11065 case $host_os in
11066 aix3*)
11067 # AIX sometimes has problems with the GCC collect2 program. For some
11068 # reason, if we set the COLLECT_NAMES environment variable, the problems
11069 # vanish in a puff of smoke.
11070 if test set != "${COLLECT_NAMES+set}"; then
11071 COLLECT_NAMES=
11072 export COLLECT_NAMES
11073 fi
11074 ;;
11075 esac
11076
11077 # Global variables:
11078 ofile=libtool
11079 can_build_shared=yes
11080
11081 # All known linkers require a '.a' archive for static linking (except MSVC and
11082 # ICC, which need '.lib').
11083 libext=a
11084
11085 with_gnu_ld=$lt_cv_prog_gnu_ld
11086
11087 old_CC=$CC
11088 old_CFLAGS=$CFLAGS
11089
11090 # Set sane defaults for various variables
11091 test -z "$CC" && CC=cc
11092 test -z "$LTCC" && LTCC=$CC
11093 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11094 test -z "$LD" && LD=ld
11095 test -z "$ac_objext" && ac_objext=o
11096
11097 func_cc_basename $compiler
11098 cc_basename=$func_cc_basename_result
11099
11100
11101 # Only perform the check for file, if the check method requires it
11102 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11103 case $deplibs_check_method in
11104 file_magic*)
11105 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11107 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11108 if test ${lt_cv_path_MAGIC_CMD+y}
11109 then :
11110 printf %s "(cached) " >&6
11111 else $as_nop
11112 case $MAGIC_CMD in
11113 [\\/*] | ?:[\\/]*)
11114 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11115 ;;
11116 *)
11117 lt_save_MAGIC_CMD=$MAGIC_CMD
11118 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11120 for ac_dir in $ac_dummy; do
11121 IFS=$lt_save_ifs
11122 test -z "$ac_dir" && ac_dir=.
11123 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11124 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11125 if test -n "$file_magic_test_file"; then
11126 case $deplibs_check_method in
11127 "file_magic "*)
11128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11129 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11131 $EGREP "$file_magic_regex" > /dev/null; then
11132 :
11133 else
11134 cat <<_LT_EOF 1>&2
11135
11136 *** Warning: the command libtool uses to detect shared libraries,
11137 *** $file_magic_cmd, produces output that libtool cannot recognize.
11138 *** The result is that libtool may fail to recognize shared libraries
11139 *** as such. This will affect the creation of libtool libraries that
11140 *** depend on shared libraries, but programs linked with such libtool
11141 *** libraries will work regardless of this problem. Nevertheless, you
11142 *** may want to report the problem to your system manager and/or to
11143 *** [email protected]
11144
11145 _LT_EOF
11146 fi ;;
11147 esac
11148 fi
11149 break
11150 fi
11151 done
11152 IFS=$lt_save_ifs
11153 MAGIC_CMD=$lt_save_MAGIC_CMD
11154 ;;
11155 esac
11156 fi
11157
11158 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11159 if test -n "$MAGIC_CMD"; then
11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11161 printf "%s\n" "$MAGIC_CMD" >&6; }
11162 else
11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 printf "%s\n" "no" >&6; }
11165 fi
11166
11167
11168
11169
11170
11171 if test -z "$lt_cv_path_MAGIC_CMD"; then
11172 if test -n "$ac_tool_prefix"; then
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11174 printf %s "checking for file... " >&6; }
11175 if test ${lt_cv_path_MAGIC_CMD+y}
11176 then :
11177 printf %s "(cached) " >&6
11178 else $as_nop
11179 case $MAGIC_CMD in
11180 [\\/*] | ?:[\\/]*)
11181 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11182 ;;
11183 *)
11184 lt_save_MAGIC_CMD=$MAGIC_CMD
11185 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11187 for ac_dir in $ac_dummy; do
11188 IFS=$lt_save_ifs
11189 test -z "$ac_dir" && ac_dir=.
11190 if test -f "$ac_dir/file"; then
11191 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11192 if test -n "$file_magic_test_file"; then
11193 case $deplibs_check_method in
11194 "file_magic "*)
11195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11196 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11198 $EGREP "$file_magic_regex" > /dev/null; then
11199 :
11200 else
11201 cat <<_LT_EOF 1>&2
11202
11203 *** Warning: the command libtool uses to detect shared libraries,
11204 *** $file_magic_cmd, produces output that libtool cannot recognize.
11205 *** The result is that libtool may fail to recognize shared libraries
11206 *** as such. This will affect the creation of libtool libraries that
11207 *** depend on shared libraries, but programs linked with such libtool
11208 *** libraries will work regardless of this problem. Nevertheless, you
11209 *** may want to report the problem to your system manager and/or to
11210 *** [email protected]
11211
11212 _LT_EOF
11213 fi ;;
11214 esac
11215 fi
11216 break
11217 fi
11218 done
11219 IFS=$lt_save_ifs
11220 MAGIC_CMD=$lt_save_MAGIC_CMD
11221 ;;
11222 esac
11223 fi
11224
11225 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11226 if test -n "$MAGIC_CMD"; then
11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11228 printf "%s\n" "$MAGIC_CMD" >&6; }
11229 else
11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 printf "%s\n" "no" >&6; }
11232 fi
11233
11234
11235 else
11236 MAGIC_CMD=:
11237 fi
11238 fi
11239
11240 fi
11241 ;;
11242 esac
11243
11244 # Use C for the default configuration in the libtool script
11245
11246 lt_save_CC=$CC
11247 ac_ext=c
11248 ac_cpp='$CPP $CPPFLAGS'
11249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11252
11253
11254 # Source file extension for C test sources.
11255 ac_ext=c
11256
11257 # Object file extension for compiled C test sources.
11258 objext=o
11259 objext=$objext
11260
11261 # Code to be used in simple compile tests
11262 lt_simple_compile_test_code="int some_variable = 0;"
11263
11264 # Code to be used in simple link tests
11265 lt_simple_link_test_code='int main(){return(0);}'
11266
11267
11268
11269
11270
11271
11272
11273 # If no C compiler was specified, use CC.
11274 LTCC=${LTCC-"$CC"}
11275
11276 # If no C compiler flags were specified, use CFLAGS.
11277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11278
11279 # Allow CC to be a program name with arguments.
11280 compiler=$CC
11281
11282 # Save the default compiler, since it gets overwritten when the other
11283 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11284 compiler_DEFAULT=$CC
11285
11286 # save warnings/boilerplate of simple test code
11287 ac_outfile=conftest.$ac_objext
11288 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11289 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11290 _lt_compiler_boilerplate=`cat conftest.err`
11291 $RM conftest*
11292
11293 ac_outfile=conftest.$ac_objext
11294 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11295 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11296 _lt_linker_boilerplate=`cat conftest.err`
11297 $RM -r conftest*
11298
11299
11300 ## CAVEAT EMPTOR:
11301 ## There is no encapsulation within the following macros, do not change
11302 ## the running order or otherwise move them around unless you know exactly
11303 ## what you are doing...
11304 if test -n "$compiler"; then
11305
11306 lt_prog_compiler_no_builtin_flag=
11307
11308 if test yes = "$GCC"; then
11309 case $cc_basename in
11310 nvcc*)
11311 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11312 *)
11313 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11314 esac
11315
11316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11317 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11318 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11319 then :
11320 printf %s "(cached) " >&6
11321 else $as_nop
11322 lt_cv_prog_compiler_rtti_exceptions=no
11323 ac_outfile=conftest.$ac_objext
11324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11325 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11326 # Insert the option either (1) after the last *FLAGS variable, or
11327 # (2) before a word containing "conftest.", or (3) at the end.
11328 # Note that $ac_compile itself does not contain backslashes and begins
11329 # with a dollar sign (not a hyphen), so the echo should work correctly.
11330 # The option is referenced via a variable to avoid confusing sed.
11331 lt_compile=`echo "$ac_compile" | $SED \
11332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11334 -e 's:$: $lt_compiler_flag:'`
11335 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11336 (eval "$lt_compile" 2>conftest.err)
11337 ac_status=$?
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 if (exit $ac_status) && test -s "$ac_outfile"; then
11341 # The compiler can only warn and ignore the option if not recognized
11342 # So say no if there are warnings other than the usual output.
11343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11345 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11346 lt_cv_prog_compiler_rtti_exceptions=yes
11347 fi
11348 fi
11349 $RM conftest*
11350
11351 fi
11352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11353 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11354
11355 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11356 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11357 else
11358 :
11359 fi
11360
11361 fi
11362
11363
11364
11365
11366
11367
11368 lt_prog_compiler_wl=
11369 lt_prog_compiler_pic=
11370 lt_prog_compiler_static=
11371
11372
11373 if test yes = "$GCC"; then
11374 lt_prog_compiler_wl='-Wl,'
11375 lt_prog_compiler_static='-static'
11376
11377 case $host_os in
11378 aix*)
11379 # All AIX code is PIC.
11380 if test ia64 = "$host_cpu"; then
11381 # AIX 5 now supports IA64 processor
11382 lt_prog_compiler_static='-Bstatic'
11383 fi
11384 lt_prog_compiler_pic='-fPIC'
11385 ;;
11386
11387 amigaos*)
11388 case $host_cpu in
11389 powerpc)
11390 # see comment about AmigaOS4 .so support
11391 lt_prog_compiler_pic='-fPIC'
11392 ;;
11393 m68k)
11394 # FIXME: we need at least 68020 code to build shared libraries, but
11395 # adding the '-m68020' flag to GCC prevents building anything better,
11396 # like '-m68040'.
11397 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11398 ;;
11399 esac
11400 ;;
11401
11402 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11403 # PIC is the default for these OSes.
11404 ;;
11405
11406 mingw* | cygwin* | pw32* | os2* | cegcc*)
11407 # This hack is so that the source file can tell whether it is being
11408 # built for inclusion in a dll (and should export symbols for example).
11409 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11410 # (--disable-auto-import) libraries
11411 lt_prog_compiler_pic='-DDLL_EXPORT'
11412 case $host_os in
11413 os2*)
11414 lt_prog_compiler_static='$wl-static'
11415 ;;
11416 esac
11417 ;;
11418
11419 darwin* | rhapsody*)
11420 # PIC is the default on this platform
11421 # Common symbols not allowed in MH_DYLIB files
11422 lt_prog_compiler_pic='-fno-common'
11423 ;;
11424
11425 haiku*)
11426 # PIC is the default for Haiku.
11427 # The "-static" flag exists, but is broken.
11428 lt_prog_compiler_static=
11429 ;;
11430
11431 hpux*)
11432 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11433 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11434 # sets the default TLS model and affects inlining.
11435 case $host_cpu in
11436 hppa*64*)
11437 # +Z the default
11438 ;;
11439 *)
11440 lt_prog_compiler_pic='-fPIC'
11441 ;;
11442 esac
11443 ;;
11444
11445 interix[3-9]*)
11446 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11447 # Instead, we relocate shared libraries at runtime.
11448 ;;
11449
11450 msdosdjgpp*)
11451 # Just because we use GCC doesn't mean we suddenly get shared libraries
11452 # on systems that don't support them.
11453 lt_prog_compiler_can_build_shared=no
11454 enable_shared=no
11455 ;;
11456
11457 *nto* | *qnx*)
11458 # QNX uses GNU C++, but need to define -shared option too, otherwise
11459 # it will coredump.
11460 lt_prog_compiler_pic='-fPIC -shared'
11461 ;;
11462
11463 sysv4*MP*)
11464 if test -d /usr/nec; then
11465 lt_prog_compiler_pic=-Kconform_pic
11466 fi
11467 ;;
11468
11469 *)
11470 lt_prog_compiler_pic='-fPIC'
11471 ;;
11472 esac
11473
11474 case $cc_basename in
11475 nvcc*) # Cuda Compiler Driver 2.2
11476 lt_prog_compiler_wl='-Xlinker '
11477 if test -n "$lt_prog_compiler_pic"; then
11478 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11479 fi
11480 ;;
11481 esac
11482 else
11483 # PORTME Check for flag to pass linker flags through the system compiler.
11484 case $host_os in
11485 aix*)
11486 lt_prog_compiler_wl='-Wl,'
11487 if test ia64 = "$host_cpu"; then
11488 # AIX 5 now supports IA64 processor
11489 lt_prog_compiler_static='-Bstatic'
11490 else
11491 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11492 fi
11493 ;;
11494
11495 darwin* | rhapsody*)
11496 # PIC is the default on this platform
11497 # Common symbols not allowed in MH_DYLIB files
11498 lt_prog_compiler_pic='-fno-common'
11499 case $cc_basename in
11500 nagfor*)
11501 # NAG Fortran compiler
11502 lt_prog_compiler_wl='-Wl,-Wl,,'
11503 lt_prog_compiler_pic='-PIC'
11504 lt_prog_compiler_static='-Bstatic'
11505 ;;
11506 esac
11507 ;;
11508
11509 mingw* | cygwin* | pw32* | os2* | cegcc*)
11510 # This hack is so that the source file can tell whether it is being
11511 # built for inclusion in a dll (and should export symbols for example).
11512 lt_prog_compiler_pic='-DDLL_EXPORT'
11513 case $host_os in
11514 os2*)
11515 lt_prog_compiler_static='$wl-static'
11516 ;;
11517 esac
11518 ;;
11519
11520 hpux9* | hpux10* | hpux11*)
11521 lt_prog_compiler_wl='-Wl,'
11522 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11523 # not for PA HP-UX.
11524 case $host_cpu in
11525 hppa*64*|ia64*)
11526 # +Z the default
11527 ;;
11528 *)
11529 lt_prog_compiler_pic='+Z'
11530 ;;
11531 esac
11532 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11533 lt_prog_compiler_static='$wl-a ${wl}archive'
11534 ;;
11535
11536 irix5* | irix6* | nonstopux*)
11537 lt_prog_compiler_wl='-Wl,'
11538 # PIC (with -KPIC) is the default.
11539 lt_prog_compiler_static='-non_shared'
11540 ;;
11541
11542 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11543 case $cc_basename in
11544 # old Intel for x86_64, which still supported -KPIC.
11545 ecc*)
11546 lt_prog_compiler_wl='-Wl,'
11547 lt_prog_compiler_pic='-KPIC'
11548 lt_prog_compiler_static='-static'
11549 ;;
11550 # flang / f18. f95 an alias for gfortran or flang on Debian
11551 flang* | f18* | f95*)
11552 lt_prog_compiler_wl='-Wl,'
11553 lt_prog_compiler_pic='-fPIC'
11554 lt_prog_compiler_static='-static'
11555 ;;
11556 # icc used to be incompatible with GCC.
11557 # ICC 10 doesn't accept -KPIC any more.
11558 icc* | ifort*)
11559 lt_prog_compiler_wl='-Wl,'
11560 lt_prog_compiler_pic='-fPIC'
11561 lt_prog_compiler_static='-static'
11562 ;;
11563 # Lahey Fortran 8.1.
11564 lf95*)
11565 lt_prog_compiler_wl='-Wl,'
11566 lt_prog_compiler_pic='--shared'
11567 lt_prog_compiler_static='--static'
11568 ;;
11569 nagfor*)
11570 # NAG Fortran compiler
11571 lt_prog_compiler_wl='-Wl,-Wl,,'
11572 lt_prog_compiler_pic='-PIC'
11573 lt_prog_compiler_static='-Bstatic'
11574 ;;
11575 tcc*)
11576 # Fabrice Bellard et al's Tiny C Compiler
11577 lt_prog_compiler_wl='-Wl,'
11578 lt_prog_compiler_pic='-fPIC'
11579 lt_prog_compiler_static='-static'
11580 ;;
11581 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11582 # Portland Group compilers (*not* the Pentium gcc compiler,
11583 # which looks to be a dead project)
11584 lt_prog_compiler_wl='-Wl,'
11585 lt_prog_compiler_pic='-fpic'
11586 lt_prog_compiler_static='-Bstatic'
11587 ;;
11588 ccc*)
11589 lt_prog_compiler_wl='-Wl,'
11590 # All Alpha code is PIC.
11591 lt_prog_compiler_static='-non_shared'
11592 ;;
11593 xl* | bgxl* | bgf* | mpixl*)
11594 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11595 lt_prog_compiler_wl='-Wl,'
11596 lt_prog_compiler_pic='-qpic'
11597 lt_prog_compiler_static='-qstaticlink'
11598 ;;
11599 *)
11600 case `$CC -V 2>&1 | $SED 5q` in
11601 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11602 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11603 lt_prog_compiler_pic='-KPIC'
11604 lt_prog_compiler_static='-Bstatic'
11605 lt_prog_compiler_wl=''
11606 ;;
11607 *Sun\ F* | *Sun*Fortran*)
11608 lt_prog_compiler_pic='-KPIC'
11609 lt_prog_compiler_static='-Bstatic'
11610 lt_prog_compiler_wl='-Qoption ld '
11611 ;;
11612 *Sun\ C*)
11613 # Sun C 5.9
11614 lt_prog_compiler_pic='-KPIC'
11615 lt_prog_compiler_static='-Bstatic'
11616 lt_prog_compiler_wl='-Wl,'
11617 ;;
11618 *Intel*\ [CF]*Compiler*)
11619 lt_prog_compiler_wl='-Wl,'
11620 lt_prog_compiler_pic='-fPIC'
11621 lt_prog_compiler_static='-static'
11622 ;;
11623 *Portland\ Group*)
11624 lt_prog_compiler_wl='-Wl,'
11625 lt_prog_compiler_pic='-fpic'
11626 lt_prog_compiler_static='-Bstatic'
11627 ;;
11628 esac
11629 ;;
11630 esac
11631 ;;
11632
11633 newsos6)
11634 lt_prog_compiler_pic='-KPIC'
11635 lt_prog_compiler_static='-Bstatic'
11636 ;;
11637
11638 *nto* | *qnx*)
11639 # QNX uses GNU C++, but need to define -shared option too, otherwise
11640 # it will coredump.
11641 lt_prog_compiler_pic='-fPIC -shared'
11642 ;;
11643
11644 osf3* | osf4* | osf5*)
11645 lt_prog_compiler_wl='-Wl,'
11646 # All OSF/1 code is PIC.
11647 lt_prog_compiler_static='-non_shared'
11648 ;;
11649
11650 rdos*)
11651 lt_prog_compiler_static='-non_shared'
11652 ;;
11653
11654 solaris*)
11655 lt_prog_compiler_pic='-KPIC'
11656 lt_prog_compiler_static='-Bstatic'
11657 case $cc_basename in
11658 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11659 lt_prog_compiler_wl='-Qoption ld ';;
11660 *)
11661 lt_prog_compiler_wl='-Wl,';;
11662 esac
11663 ;;
11664
11665 sunos4*)
11666 lt_prog_compiler_wl='-Qoption ld '
11667 lt_prog_compiler_pic='-PIC'
11668 lt_prog_compiler_static='-Bstatic'
11669 ;;
11670
11671 sysv4 | sysv4.2uw2* | sysv4.3*)
11672 lt_prog_compiler_wl='-Wl,'
11673 lt_prog_compiler_pic='-KPIC'
11674 lt_prog_compiler_static='-Bstatic'
11675 ;;
11676
11677 sysv4*MP*)
11678 if test -d /usr/nec; then
11679 lt_prog_compiler_pic='-Kconform_pic'
11680 lt_prog_compiler_static='-Bstatic'
11681 fi
11682 ;;
11683
11684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11685 lt_prog_compiler_wl='-Wl,'
11686 lt_prog_compiler_pic='-KPIC'
11687 lt_prog_compiler_static='-Bstatic'
11688 ;;
11689
11690 unicos*)
11691 lt_prog_compiler_wl='-Wl,'
11692 lt_prog_compiler_can_build_shared=no
11693 ;;
11694
11695 uts4*)
11696 lt_prog_compiler_pic='-pic'
11697 lt_prog_compiler_static='-Bstatic'
11698 ;;
11699
11700 *)
11701 lt_prog_compiler_can_build_shared=no
11702 ;;
11703 esac
11704 fi
11705
11706 case $host_os in
11707 # For platforms that do not support PIC, -DPIC is meaningless:
11708 *djgpp*)
11709 lt_prog_compiler_pic=
11710 ;;
11711 *)
11712 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11713 ;;
11714 esac
11715
11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11717 printf %s "checking for $compiler option to produce PIC... " >&6; }
11718 if test ${lt_cv_prog_compiler_pic+y}
11719 then :
11720 printf %s "(cached) " >&6
11721 else $as_nop
11722 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11723 fi
11724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11725 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11726 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11727
11728 #
11729 # Check to make sure the PIC flag actually works.
11730 #
11731 if test -n "$lt_prog_compiler_pic"; then
11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11733 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11734 if test ${lt_cv_prog_compiler_pic_works+y}
11735 then :
11736 printf %s "(cached) " >&6
11737 else $as_nop
11738 lt_cv_prog_compiler_pic_works=no
11739 ac_outfile=conftest.$ac_objext
11740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11741 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11742 # Insert the option either (1) after the last *FLAGS variable, or
11743 # (2) before a word containing "conftest.", or (3) at the end.
11744 # Note that $ac_compile itself does not contain backslashes and begins
11745 # with a dollar sign (not a hyphen), so the echo should work correctly.
11746 # The option is referenced via a variable to avoid confusing sed.
11747 lt_compile=`echo "$ac_compile" | $SED \
11748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11750 -e 's:$: $lt_compiler_flag:'`
11751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11752 (eval "$lt_compile" 2>conftest.err)
11753 ac_status=$?
11754 cat conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 if (exit $ac_status) && test -s "$ac_outfile"; then
11757 # The compiler can only warn and ignore the option if not recognized
11758 # So say no if there are warnings other than the usual output.
11759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11762 lt_cv_prog_compiler_pic_works=yes
11763 fi
11764 fi
11765 $RM conftest*
11766
11767 fi
11768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11769 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11770
11771 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11772 case $lt_prog_compiler_pic in
11773 "" | " "*) ;;
11774 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11775 esac
11776 else
11777 lt_prog_compiler_pic=
11778 lt_prog_compiler_can_build_shared=no
11779 fi
11780
11781 fi
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793 #
11794 # Check to make sure the static flag actually works.
11795 #
11796 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11798 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11799 if test ${lt_cv_prog_compiler_static_works+y}
11800 then :
11801 printf %s "(cached) " >&6
11802 else $as_nop
11803 lt_cv_prog_compiler_static_works=no
11804 save_LDFLAGS=$LDFLAGS
11805 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11806 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11808 # The linker can only warn and ignore the option if not recognized
11809 # So say no if there are warnings
11810 if test -s conftest.err; then
11811 # Append any errors to the config.log.
11812 cat conftest.err 1>&5
11813 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11815 if diff conftest.exp conftest.er2 >/dev/null; then
11816 lt_cv_prog_compiler_static_works=yes
11817 fi
11818 else
11819 lt_cv_prog_compiler_static_works=yes
11820 fi
11821 fi
11822 $RM -r conftest*
11823 LDFLAGS=$save_LDFLAGS
11824
11825 fi
11826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11827 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11828
11829 if test yes = "$lt_cv_prog_compiler_static_works"; then
11830 :
11831 else
11832 lt_prog_compiler_static=
11833 fi
11834
11835
11836
11837
11838
11839
11840
11841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11842 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11843 if test ${lt_cv_prog_compiler_c_o+y}
11844 then :
11845 printf %s "(cached) " >&6
11846 else $as_nop
11847 lt_cv_prog_compiler_c_o=no
11848 $RM -r conftest 2>/dev/null
11849 mkdir conftest
11850 cd conftest
11851 mkdir out
11852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11853
11854 lt_compiler_flag="-o out/conftest2.$ac_objext"
11855 # Insert the option either (1) after the last *FLAGS variable, or
11856 # (2) before a word containing "conftest.", or (3) at the end.
11857 # Note that $ac_compile itself does not contain backslashes and begins
11858 # with a dollar sign (not a hyphen), so the echo should work correctly.
11859 lt_compile=`echo "$ac_compile" | $SED \
11860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11862 -e 's:$: $lt_compiler_flag:'`
11863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11864 (eval "$lt_compile" 2>out/conftest.err)
11865 ac_status=$?
11866 cat out/conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11869 then
11870 # The compiler can only warn and ignore the option if not recognized
11871 # So say no if there are warnings
11872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11875 lt_cv_prog_compiler_c_o=yes
11876 fi
11877 fi
11878 chmod u+w . 2>&5
11879 $RM conftest*
11880 # SGI C++ compiler will create directory out/ii_files/ for
11881 # template instantiation
11882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11883 $RM out/* && rmdir out
11884 cd ..
11885 $RM -r conftest
11886 $RM conftest*
11887
11888 fi
11889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11890 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11891
11892
11893
11894
11895
11896
11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11898 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11899 if test ${lt_cv_prog_compiler_c_o+y}
11900 then :
11901 printf %s "(cached) " >&6
11902 else $as_nop
11903 lt_cv_prog_compiler_c_o=no
11904 $RM -r conftest 2>/dev/null
11905 mkdir conftest
11906 cd conftest
11907 mkdir out
11908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11909
11910 lt_compiler_flag="-o out/conftest2.$ac_objext"
11911 # Insert the option either (1) after the last *FLAGS variable, or
11912 # (2) before a word containing "conftest.", or (3) at the end.
11913 # Note that $ac_compile itself does not contain backslashes and begins
11914 # with a dollar sign (not a hyphen), so the echo should work correctly.
11915 lt_compile=`echo "$ac_compile" | $SED \
11916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11918 -e 's:$: $lt_compiler_flag:'`
11919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11920 (eval "$lt_compile" 2>out/conftest.err)
11921 ac_status=$?
11922 cat out/conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11925 then
11926 # The compiler can only warn and ignore the option if not recognized
11927 # So say no if there are warnings
11928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11931 lt_cv_prog_compiler_c_o=yes
11932 fi
11933 fi
11934 chmod u+w . 2>&5
11935 $RM conftest*
11936 # SGI C++ compiler will create directory out/ii_files/ for
11937 # template instantiation
11938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11939 $RM out/* && rmdir out
11940 cd ..
11941 $RM -r conftest
11942 $RM conftest*
11943
11944 fi
11945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11946 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11947
11948
11949
11950
11951 hard_links=nottested
11952 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11953 # do not overwrite the value of need_locks provided by the user
11954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11955 printf %s "checking if we can lock with hard links... " >&6; }
11956 hard_links=yes
11957 $RM conftest*
11958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11959 touch conftest.a
11960 ln conftest.a conftest.b 2>&5 || hard_links=no
11961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11963 printf "%s\n" "$hard_links" >&6; }
11964 if test no = "$hard_links"; then
11965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11966 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11967 need_locks=warn
11968 fi
11969 else
11970 need_locks=no
11971 fi
11972
11973
11974
11975
11976
11977
11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11979 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11980
11981 runpath_var=
11982 allow_undefined_flag=
11983 always_export_symbols=no
11984 archive_cmds=
11985 archive_expsym_cmds=
11986 compiler_needs_object=no
11987 enable_shared_with_static_runtimes=no
11988 export_dynamic_flag_spec=
11989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11990 hardcode_automatic=no
11991 hardcode_direct=no
11992 hardcode_direct_absolute=no
11993 hardcode_libdir_flag_spec=
11994 hardcode_libdir_separator=
11995 hardcode_minus_L=no
11996 hardcode_shlibpath_var=unsupported
11997 inherit_rpath=no
11998 link_all_deplibs=unknown
11999 module_cmds=
12000 module_expsym_cmds=
12001 old_archive_from_new_cmds=
12002 old_archive_from_expsyms_cmds=
12003 thread_safe_flag_spec=
12004 whole_archive_flag_spec=
12005 # include_expsyms should be a list of space-separated symbols to be *always*
12006 # included in the symbol list
12007 include_expsyms=
12008 # exclude_expsyms can be an extended regexp of symbols to exclude
12009 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12010 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12011 # as well as any symbol that contains 'd'.
12012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12014 # platforms (ab)use it in PIC code, but their linkers get confused if
12015 # the symbol is explicitly referenced. Since portable code cannot
12016 # rely on this symbol name, it's probably fine to never include it in
12017 # preloaded symbol tables.
12018 # Exclude shared library initialization/finalization symbols.
12019 extract_expsyms_cmds=
12020
12021 case $host_os in
12022 cygwin* | mingw* | pw32* | cegcc*)
12023 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12024 # When not using gcc, we currently assume that we are using
12025 # Microsoft Visual C++ or Intel C++ Compiler.
12026 if test yes != "$GCC"; then
12027 with_gnu_ld=no
12028 fi
12029 ;;
12030 interix*)
12031 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12032 with_gnu_ld=yes
12033 ;;
12034 openbsd* | bitrig*)
12035 with_gnu_ld=no
12036 ;;
12037 linux* | k*bsd*-gnu | gnu*)
12038 link_all_deplibs=no
12039 ;;
12040 esac
12041
12042 ld_shlibs=yes
12043
12044 # On some targets, GNU ld is compatible enough with the native linker
12045 # that we're better off using the native interface for both.
12046 lt_use_gnu_ld_interface=no
12047 if test yes = "$with_gnu_ld"; then
12048 case $host_os in
12049 aix*)
12050 # The AIX port of GNU ld has always aspired to compatibility
12051 # with the native linker. However, as the warning in the GNU ld
12052 # block says, versions before 2.19.5* couldn't really create working
12053 # shared libraries, regardless of the interface used.
12054 case `$LD -v 2>&1` in
12055 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12056 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12057 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12058 *)
12059 lt_use_gnu_ld_interface=yes
12060 ;;
12061 esac
12062 ;;
12063 *)
12064 lt_use_gnu_ld_interface=yes
12065 ;;
12066 esac
12067 fi
12068
12069 if test yes = "$lt_use_gnu_ld_interface"; then
12070 # If archive_cmds runs LD, not CC, wlarc should be empty
12071 wlarc='$wl'
12072
12073 # Set some defaults for GNU ld with shared library support. These
12074 # are reset later if shared libraries are not supported. Putting them
12075 # here allows them to be overridden if necessary.
12076 runpath_var=LD_RUN_PATH
12077 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12078 export_dynamic_flag_spec='$wl--export-dynamic'
12079 # ancient GNU ld didn't support --whole-archive et. al.
12080 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12081 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12082 else
12083 whole_archive_flag_spec=
12084 fi
12085 supports_anon_versioning=no
12086 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12087 *GNU\ gold*) supports_anon_versioning=yes ;;
12088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12091 *\ 2.11.*) ;; # other 2.11 versions
12092 *) supports_anon_versioning=yes ;;
12093 esac
12094
12095 # See if GNU ld supports shared libraries.
12096 case $host_os in
12097 aix[3-9]*)
12098 # On AIX/PPC, the GNU linker is very broken
12099 if test ia64 != "$host_cpu"; then
12100 ld_shlibs=no
12101 cat <<_LT_EOF 1>&2
12102
12103 *** Warning: the GNU linker, at least up to release 2.19, is reported
12104 *** to be unable to reliably create shared libraries on AIX.
12105 *** Therefore, libtool is disabling shared libraries support. If you
12106 *** really care for shared libraries, you may want to install binutils
12107 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12108 *** You will then need to restart the configuration process.
12109
12110 _LT_EOF
12111 fi
12112 ;;
12113
12114 amigaos*)
12115 case $host_cpu in
12116 powerpc)
12117 # see comment about AmigaOS4 .so support
12118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12119 archive_expsym_cmds=''
12120 ;;
12121 m68k)
12122 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)'
12123 hardcode_libdir_flag_spec='-L$libdir'
12124 hardcode_minus_L=yes
12125 ;;
12126 esac
12127 ;;
12128
12129 beos*)
12130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12131 allow_undefined_flag=unsupported
12132 # Joseph Beckenbach <[email protected]> says some releases of gcc
12133 # support --undefined. This deserves some investigation. FIXME
12134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12135 else
12136 ld_shlibs=no
12137 fi
12138 ;;
12139
12140 cygwin* | mingw* | pw32* | cegcc*)
12141 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12142 # as there is no search path for DLLs.
12143 hardcode_libdir_flag_spec='-L$libdir'
12144 export_dynamic_flag_spec='$wl--export-all-symbols'
12145 allow_undefined_flag=unsupported
12146 always_export_symbols=no
12147 enable_shared_with_static_runtimes=yes
12148 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'
12149 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12150
12151 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12153 # If the export-symbols file already is a .def file, use it as
12154 # is; otherwise, prepend EXPORTS...
12155 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12156 cp $export_symbols $output_objdir/$soname.def;
12157 else
12158 echo EXPORTS > $output_objdir/$soname.def;
12159 cat $export_symbols >> $output_objdir/$soname.def;
12160 fi~
12161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12162 else
12163 ld_shlibs=no
12164 fi
12165 ;;
12166
12167 haiku*)
12168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12169 link_all_deplibs=yes
12170 ;;
12171
12172 os2*)
12173 hardcode_libdir_flag_spec='-L$libdir'
12174 hardcode_minus_L=yes
12175 allow_undefined_flag=unsupported
12176 shrext_cmds=.dll
12177 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12178 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12179 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12180 $ECHO EXPORTS >> $output_objdir/$libname.def~
12181 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12182 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12183 emximp -o $lib $output_objdir/$libname.def'
12184 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12185 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12186 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12187 $ECHO EXPORTS >> $output_objdir/$libname.def~
12188 prefix_cmds="$SED"~
12189 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12190 prefix_cmds="$prefix_cmds -e 1d";
12191 fi~
12192 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12193 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12194 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12195 emximp -o $lib $output_objdir/$libname.def'
12196 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12197 enable_shared_with_static_runtimes=yes
12198 file_list_spec='@'
12199 ;;
12200
12201 interix[3-9]*)
12202 hardcode_direct=no
12203 hardcode_shlibpath_var=no
12204 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12205 export_dynamic_flag_spec='$wl-E'
12206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12207 # Instead, shared libraries are loaded at an image base (0x10000000 by
12208 # default) and relocated if they conflict, which is a slow very memory
12209 # consuming and fragmenting process. To avoid this, we pick a random,
12210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12213 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'
12214 ;;
12215
12216 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12217 tmp_diet=no
12218 if test linux-dietlibc = "$host_os"; then
12219 case $cc_basename in
12220 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12221 esac
12222 fi
12223 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12224 && test no = "$tmp_diet"
12225 then
12226 tmp_addflag=' $pic_flag'
12227 tmp_sharedflag='-shared'
12228 case $cc_basename,$host_cpu in
12229 pgcc*) # Portland Group C compiler
12230 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'
12231 tmp_addflag=' $pic_flag'
12232 ;;
12233 pgf77* | pgf90* | pgf95* | pgfortran*)
12234 # Portland Group f77 and f90 compilers
12235 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'
12236 tmp_addflag=' $pic_flag -Mnomain' ;;
12237 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12238 tmp_addflag=' -i_dynamic' ;;
12239 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12240 tmp_addflag=' -i_dynamic -nofor_main' ;;
12241 ifc* | ifort*) # Intel Fortran compiler
12242 tmp_addflag=' -nofor_main' ;;
12243 lf95*) # Lahey Fortran 8.1
12244 whole_archive_flag_spec=
12245 tmp_sharedflag='--shared' ;;
12246 nagfor*) # NAGFOR 5.3
12247 tmp_sharedflag='-Wl,-shared' ;;
12248 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12249 tmp_sharedflag='-qmkshrobj'
12250 tmp_addflag= ;;
12251 nvcc*) # Cuda Compiler Driver 2.2
12252 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'
12253 compiler_needs_object=yes
12254 ;;
12255 esac
12256 case `$CC -V 2>&1 | $SED 5q` in
12257 *Sun\ C*) # Sun C 5.9
12258 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'
12259 compiler_needs_object=yes
12260 tmp_sharedflag='-G' ;;
12261 *Sun\ F*) # Sun Fortran 8.3
12262 tmp_sharedflag='-G' ;;
12263 esac
12264 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12265
12266 if test yes = "$supports_anon_versioning"; then
12267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12268 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12269 echo "local: *; };" >> $output_objdir/$libname.ver~
12270 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12271 fi
12272
12273 case $cc_basename in
12274 tcc*)
12275 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12276 export_dynamic_flag_spec='-rdynamic'
12277 ;;
12278 xlf* | bgf* | bgxlf* | mpixlf*)
12279 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12280 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12282 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12283 if test yes = "$supports_anon_versioning"; then
12284 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12285 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12286 echo "local: *; };" >> $output_objdir/$libname.ver~
12287 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12288 fi
12289 ;;
12290 esac
12291 else
12292 ld_shlibs=no
12293 fi
12294 ;;
12295
12296 netbsd* | netbsdelf*-gnu)
12297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12298 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12299 wlarc=
12300 else
12301 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12302 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12303 fi
12304 ;;
12305
12306 solaris*)
12307 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12308 ld_shlibs=no
12309 cat <<_LT_EOF 1>&2
12310
12311 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12312 *** create shared libraries on Solaris systems. Therefore, libtool
12313 *** is disabling shared libraries support. We urge you to upgrade GNU
12314 *** binutils to release 2.9.1 or newer. Another option is to modify
12315 *** your PATH or compiler configuration so that the native linker is
12316 *** used, and then restart.
12317
12318 _LT_EOF
12319 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12321 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12322 else
12323 ld_shlibs=no
12324 fi
12325 ;;
12326
12327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12328 case `$LD -v 2>&1` in
12329 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12330 ld_shlibs=no
12331 cat <<_LT_EOF 1>&2
12332
12333 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12334 *** reliably create shared libraries on SCO systems. Therefore, libtool
12335 *** is disabling shared libraries support. We urge you to upgrade GNU
12336 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12337 *** your PATH or compiler configuration so that the native linker is
12338 *** used, and then restart.
12339
12340 _LT_EOF
12341 ;;
12342 *)
12343 # For security reasons, it is highly recommended that you always
12344 # use absolute paths for naming shared libraries, and exclude the
12345 # DT_RUNPATH tag from executables and libraries. But doing so
12346 # requires that you compile everything twice, which is a pain.
12347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12348 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12351 else
12352 ld_shlibs=no
12353 fi
12354 ;;
12355 esac
12356 ;;
12357
12358 sunos4*)
12359 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12360 wlarc=
12361 hardcode_direct=yes
12362 hardcode_shlibpath_var=no
12363 ;;
12364
12365 *)
12366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12368 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12369 else
12370 ld_shlibs=no
12371 fi
12372 ;;
12373 esac
12374
12375 if test no = "$ld_shlibs"; then
12376 runpath_var=
12377 hardcode_libdir_flag_spec=
12378 export_dynamic_flag_spec=
12379 whole_archive_flag_spec=
12380 fi
12381 else
12382 # PORTME fill in a description of your system's linker (not GNU ld)
12383 case $host_os in
12384 aix3*)
12385 allow_undefined_flag=unsupported
12386 always_export_symbols=yes
12387 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'
12388 # Note: this linker hardcodes the directories in LIBPATH if there
12389 # are no directories specified by -L.
12390 hardcode_minus_L=yes
12391 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12392 # Neither direct hardcoding nor static linking is supported with a
12393 # broken collect2.
12394 hardcode_direct=unsupported
12395 fi
12396 ;;
12397
12398 aix[4-9]*)
12399 if test ia64 = "$host_cpu"; then
12400 # On IA64, the linker does run time linking by default, so we don't
12401 # have to do anything special.
12402 aix_use_runtimelinking=no
12403 exp_sym_flag='-Bexport'
12404 no_entry_flag=
12405 else
12406 # If we're using GNU nm, then we don't want the "-C" option.
12407 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12408 # Without the "-l" option, or with the "-B" option, AIX nm treats
12409 # weak defined symbols like other global defined symbols, whereas
12410 # GNU nm marks them as "W".
12411 # While the 'weak' keyword is ignored in the Export File, we need
12412 # it in the Import File for the 'aix-soname' feature, so we have
12413 # to replace the "-B" option with "-P" for AIX nm.
12414 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12415 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12416 else
12417 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12418 fi
12419 aix_use_runtimelinking=no
12420
12421 # Test if we are trying to use run time linking or normal
12422 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12423 # have runtime linking enabled, and use it for executables.
12424 # For shared libraries, we enable/disable runtime linking
12425 # depending on the kind of the shared library created -
12426 # when "with_aix_soname,aix_use_runtimelinking" is:
12427 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12428 # "aix,yes" lib.so shared, rtl:yes, for executables
12429 # lib.a static archive
12430 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12431 # lib.a(lib.so.V) shared, rtl:no, for executables
12432 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12433 # lib.a(lib.so.V) shared, rtl:no
12434 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12435 # lib.a static archive
12436 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12437 for ld_flag in $LDFLAGS; do
12438 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12439 aix_use_runtimelinking=yes
12440 break
12441 fi
12442 done
12443 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12444 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12445 # so we don't have lib.a shared libs to link our executables.
12446 # We have to force runtime linking in this case.
12447 aix_use_runtimelinking=yes
12448 LDFLAGS="$LDFLAGS -Wl,-brtl"
12449 fi
12450 ;;
12451 esac
12452
12453 exp_sym_flag='-bexport'
12454 no_entry_flag='-bnoentry'
12455 fi
12456
12457 # When large executables or shared objects are built, AIX ld can
12458 # have problems creating the table of contents. If linking a library
12459 # or program results in "error TOC overflow" add -mminimal-toc to
12460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12462
12463 archive_cmds=''
12464 hardcode_direct=yes
12465 hardcode_direct_absolute=yes
12466 hardcode_libdir_separator=':'
12467 link_all_deplibs=yes
12468 file_list_spec='$wl-f,'
12469 case $with_aix_soname,$aix_use_runtimelinking in
12470 aix,*) ;; # traditional, no import file
12471 svr4,* | *,yes) # use import file
12472 # The Import File defines what to hardcode.
12473 hardcode_direct=no
12474 hardcode_direct_absolute=no
12475 ;;
12476 esac
12477
12478 if test yes = "$GCC"; then
12479 case $host_os in aix4.[012]|aix4.[012].*)
12480 # We only want to do this on AIX 4.2 and lower, the check
12481 # below for broken collect2 doesn't work under 4.3+
12482 collect2name=`$CC -print-prog-name=collect2`
12483 if test -f "$collect2name" &&
12484 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12485 then
12486 # We have reworked collect2
12487 :
12488 else
12489 # We have old collect2
12490 hardcode_direct=unsupported
12491 # It fails to find uninstalled libraries when the uninstalled
12492 # path is not listed in the libpath. Setting hardcode_minus_L
12493 # to unsupported forces relinking
12494 hardcode_minus_L=yes
12495 hardcode_libdir_flag_spec='-L$libdir'
12496 hardcode_libdir_separator=
12497 fi
12498 ;;
12499 esac
12500 shared_flag='-shared'
12501 if test yes = "$aix_use_runtimelinking"; then
12502 shared_flag="$shared_flag "'$wl-G'
12503 fi
12504 # Need to ensure runtime linking is disabled for the traditional
12505 # shared library, or the linker may eventually find shared libraries
12506 # /with/ Import File - we do not want to mix them.
12507 shared_flag_aix='-shared'
12508 shared_flag_svr4='-shared $wl-G'
12509 else
12510 # not using gcc
12511 if test ia64 = "$host_cpu"; then
12512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12513 # chokes on -Wl,-G. The following line is correct:
12514 shared_flag='-G'
12515 else
12516 if test yes = "$aix_use_runtimelinking"; then
12517 shared_flag='$wl-G'
12518 else
12519 shared_flag='$wl-bM:SRE'
12520 fi
12521 shared_flag_aix='$wl-bM:SRE'
12522 shared_flag_svr4='$wl-G'
12523 fi
12524 fi
12525
12526 export_dynamic_flag_spec='$wl-bexpall'
12527 # It seems that -bexpall does not export symbols beginning with
12528 # underscore (_), so it is better to generate a list of symbols to export.
12529 always_export_symbols=yes
12530 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12531 # Warning - without using the other runtime loading flags (-brtl),
12532 # -berok will link without error, but may produce a broken library.
12533 allow_undefined_flag='-berok'
12534 # Determine the default libpath from the value encoded in an
12535 # empty executable.
12536 if test set = "${lt_cv_aix_libpath+set}"; then
12537 aix_libpath=$lt_cv_aix_libpath
12538 else
12539 if test ${lt_cv_aix_libpath_+y}
12540 then :
12541 printf %s "(cached) " >&6
12542 else $as_nop
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545
12546 int
12547 main (void)
12548 {
12549
12550 ;
12551 return 0;
12552 }
12553 _ACEOF
12554 if ac_fn_c_try_link "$LINENO"
12555 then :
12556
12557 lt_aix_libpath_sed='
12558 /Import File Strings/,/^$/ {
12559 /^0/ {
12560 s/^0 *\([^ ]*\) *$/\1/
12561 p
12562 }
12563 }'
12564 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12565 # Check for a 64-bit object if we didn't find anything.
12566 if test -z "$lt_cv_aix_libpath_"; then
12567 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12568 fi
12569 fi
12570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12571 conftest$ac_exeext conftest.$ac_ext
12572 if test -z "$lt_cv_aix_libpath_"; then
12573 lt_cv_aix_libpath_=/usr/lib:/lib
12574 fi
12575
12576 fi
12577
12578 aix_libpath=$lt_cv_aix_libpath_
12579 fi
12580
12581 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12582 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12583 else
12584 if test ia64 = "$host_cpu"; then
12585 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12586 allow_undefined_flag="-z nodefs"
12587 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"
12588 else
12589 # Determine the default libpath from the value encoded in an
12590 # empty executable.
12591 if test set = "${lt_cv_aix_libpath+set}"; then
12592 aix_libpath=$lt_cv_aix_libpath
12593 else
12594 if test ${lt_cv_aix_libpath_+y}
12595 then :
12596 printf %s "(cached) " >&6
12597 else $as_nop
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12600
12601 int
12602 main (void)
12603 {
12604
12605 ;
12606 return 0;
12607 }
12608 _ACEOF
12609 if ac_fn_c_try_link "$LINENO"
12610 then :
12611
12612 lt_aix_libpath_sed='
12613 /Import File Strings/,/^$/ {
12614 /^0/ {
12615 s/^0 *\([^ ]*\) *$/\1/
12616 p
12617 }
12618 }'
12619 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12620 # Check for a 64-bit object if we didn't find anything.
12621 if test -z "$lt_cv_aix_libpath_"; then
12622 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12623 fi
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12626 conftest$ac_exeext conftest.$ac_ext
12627 if test -z "$lt_cv_aix_libpath_"; then
12628 lt_cv_aix_libpath_=/usr/lib:/lib
12629 fi
12630
12631 fi
12632
12633 aix_libpath=$lt_cv_aix_libpath_
12634 fi
12635
12636 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12637 # Warning - without using the other run time loading flags,
12638 # -berok will link without error, but may produce a broken library.
12639 no_undefined_flag=' $wl-bernotok'
12640 allow_undefined_flag=' $wl-berok'
12641 if test yes = "$with_gnu_ld"; then
12642 # We only use this code for GNU lds that support --whole-archive.
12643 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12644 else
12645 # Exported symbols can be pulled into shared objects from archives
12646 whole_archive_flag_spec='$convenience'
12647 fi
12648 archive_cmds_need_lc=yes
12649 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12650 # -brtl affects multiple linker settings, -berok does not and is overridden later
12651 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12652 if test svr4 != "$with_aix_soname"; then
12653 # This is similar to how AIX traditionally builds its shared libraries.
12654 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12655 fi
12656 if test aix != "$with_aix_soname"; then
12657 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12658 else
12659 # used by -dlpreopen to get the symbols
12660 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12661 fi
12662 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12663 fi
12664 fi
12665 ;;
12666
12667 amigaos*)
12668 case $host_cpu in
12669 powerpc)
12670 # see comment about AmigaOS4 .so support
12671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12672 archive_expsym_cmds=''
12673 ;;
12674 m68k)
12675 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)'
12676 hardcode_libdir_flag_spec='-L$libdir'
12677 hardcode_minus_L=yes
12678 ;;
12679 esac
12680 ;;
12681
12682 bsdi[45]*)
12683 export_dynamic_flag_spec=-rdynamic
12684 ;;
12685
12686 cygwin* | mingw* | pw32* | cegcc*)
12687 # When not using gcc, we currently assume that we are using
12688 # Microsoft Visual C++ or Intel C++ Compiler.
12689 # hardcode_libdir_flag_spec is actually meaningless, as there is
12690 # no search path for DLLs.
12691 case $cc_basename in
12692 cl* | icl*)
12693 # Native MSVC or ICC
12694 hardcode_libdir_flag_spec=' '
12695 allow_undefined_flag=unsupported
12696 always_export_symbols=yes
12697 file_list_spec='@'
12698 # Tell ltmain to make .lib files, not .a files.
12699 libext=lib
12700 # Tell ltmain to make .dll files, not .so files.
12701 shrext_cmds=.dll
12702 # FIXME: Setting linknames here is a bad hack.
12703 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12704 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12705 cp "$export_symbols" "$output_objdir/$soname.def";
12706 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12707 else
12708 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12709 fi~
12710 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12711 linknames='
12712 # The linker will not automatically build a static lib if we build a DLL.
12713 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12714 enable_shared_with_static_runtimes=yes
12715 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12717 # Don't use ranlib
12718 old_postinstall_cmds='chmod 644 $oldlib'
12719 postlink_cmds='lt_outputfile="@OUTPUT@"~
12720 lt_tool_outputfile="@TOOL_OUTPUT@"~
12721 case $lt_outputfile in
12722 *.exe|*.EXE) ;;
12723 *)
12724 lt_outputfile=$lt_outputfile.exe
12725 lt_tool_outputfile=$lt_tool_outputfile.exe
12726 ;;
12727 esac~
12728 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12729 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12730 $RM "$lt_outputfile.manifest";
12731 fi'
12732 ;;
12733 *)
12734 # Assume MSVC and ICC wrapper
12735 hardcode_libdir_flag_spec=' '
12736 allow_undefined_flag=unsupported
12737 # Tell ltmain to make .lib files, not .a files.
12738 libext=lib
12739 # Tell ltmain to make .dll files, not .so files.
12740 shrext_cmds=.dll
12741 # FIXME: Setting linknames here is a bad hack.
12742 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12743 # The linker will automatically build a .lib file if we build a DLL.
12744 old_archive_from_new_cmds='true'
12745 # FIXME: Should let the user specify the lib program.
12746 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12747 enable_shared_with_static_runtimes=yes
12748 ;;
12749 esac
12750 ;;
12751
12752 darwin* | rhapsody*)
12753
12754
12755 archive_cmds_need_lc=no
12756 hardcode_direct=no
12757 hardcode_automatic=yes
12758 hardcode_shlibpath_var=unsupported
12759 if test yes = "$lt_cv_ld_force_load"; then
12760 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\"`'
12761
12762 else
12763 whole_archive_flag_spec=''
12764 fi
12765 link_all_deplibs=yes
12766 allow_undefined_flag=$_lt_dar_allow_undefined
12767 case $cc_basename in
12768 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12769 *) _lt_dar_can_shared=$GCC ;;
12770 esac
12771 if test yes = "$_lt_dar_can_shared"; then
12772 output_verbose_link_cmd=func_echo_all
12773 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12774 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12775 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"
12776 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"
12777
12778 else
12779 ld_shlibs=no
12780 fi
12781
12782 ;;
12783
12784 dgux*)
12785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12786 hardcode_libdir_flag_spec='-L$libdir'
12787 hardcode_shlibpath_var=no
12788 ;;
12789
12790 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12791 # support. Future versions do this automatically, but an explicit c++rt0.o
12792 # does not break anything, and helps significantly (at the cost of a little
12793 # extra space).
12794 freebsd2.2*)
12795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12796 hardcode_libdir_flag_spec='-R$libdir'
12797 hardcode_direct=yes
12798 hardcode_shlibpath_var=no
12799 ;;
12800
12801 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12802 freebsd2.*)
12803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12804 hardcode_direct=yes
12805 hardcode_minus_L=yes
12806 hardcode_shlibpath_var=no
12807 ;;
12808
12809 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12810 freebsd* | dragonfly* | midnightbsd*)
12811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12812 hardcode_libdir_flag_spec='-R$libdir'
12813 hardcode_direct=yes
12814 hardcode_shlibpath_var=no
12815 ;;
12816
12817 hpux9*)
12818 if test yes = "$GCC"; then
12819 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12820 else
12821 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12822 fi
12823 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12824 hardcode_libdir_separator=:
12825 hardcode_direct=yes
12826
12827 # hardcode_minus_L: Not really in the search PATH,
12828 # but as the default location of the library.
12829 hardcode_minus_L=yes
12830 export_dynamic_flag_spec='$wl-E'
12831 ;;
12832
12833 hpux10*)
12834 if test yes,no = "$GCC,$with_gnu_ld"; then
12835 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12836 else
12837 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12838 fi
12839 if test no = "$with_gnu_ld"; then
12840 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12841 hardcode_libdir_separator=:
12842 hardcode_direct=yes
12843 hardcode_direct_absolute=yes
12844 export_dynamic_flag_spec='$wl-E'
12845 # hardcode_minus_L: Not really in the search PATH,
12846 # but as the default location of the library.
12847 hardcode_minus_L=yes
12848 fi
12849 ;;
12850
12851 hpux11*)
12852 if test yes,no = "$GCC,$with_gnu_ld"; then
12853 case $host_cpu in
12854 hppa*64*)
12855 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12856 ;;
12857 ia64*)
12858 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12859 ;;
12860 *)
12861 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12862 ;;
12863 esac
12864 else
12865 case $host_cpu in
12866 hppa*64*)
12867 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12868 ;;
12869 ia64*)
12870 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12871 ;;
12872 *)
12873
12874 # Older versions of the 11.00 compiler do not understand -b yet
12875 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12877 printf %s "checking if $CC understands -b... " >&6; }
12878 if test ${lt_cv_prog_compiler__b+y}
12879 then :
12880 printf %s "(cached) " >&6
12881 else $as_nop
12882 lt_cv_prog_compiler__b=no
12883 save_LDFLAGS=$LDFLAGS
12884 LDFLAGS="$LDFLAGS -b"
12885 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12887 # The linker can only warn and ignore the option if not recognized
12888 # So say no if there are warnings
12889 if test -s conftest.err; then
12890 # Append any errors to the config.log.
12891 cat conftest.err 1>&5
12892 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12894 if diff conftest.exp conftest.er2 >/dev/null; then
12895 lt_cv_prog_compiler__b=yes
12896 fi
12897 else
12898 lt_cv_prog_compiler__b=yes
12899 fi
12900 fi
12901 $RM -r conftest*
12902 LDFLAGS=$save_LDFLAGS
12903
12904 fi
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12906 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12907
12908 if test yes = "$lt_cv_prog_compiler__b"; then
12909 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12910 else
12911 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12912 fi
12913
12914 ;;
12915 esac
12916 fi
12917 if test no = "$with_gnu_ld"; then
12918 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12919 hardcode_libdir_separator=:
12920
12921 case $host_cpu in
12922 hppa*64*|ia64*)
12923 hardcode_direct=no
12924 hardcode_shlibpath_var=no
12925 ;;
12926 *)
12927 hardcode_direct=yes
12928 hardcode_direct_absolute=yes
12929 export_dynamic_flag_spec='$wl-E'
12930
12931 # hardcode_minus_L: Not really in the search PATH,
12932 # but as the default location of the library.
12933 hardcode_minus_L=yes
12934 ;;
12935 esac
12936 fi
12937 ;;
12938
12939 irix5* | irix6* | nonstopux*)
12940 if test yes = "$GCC"; then
12941 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'
12942 # Try to use the -exported_symbol ld option, if it does not
12943 # work, assume that -exports_file does not work either and
12944 # implicitly export all symbols.
12945 # This should be the same for all languages, so no per-tag cache variable.
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12947 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12948 if test ${lt_cv_irix_exported_symbol+y}
12949 then :
12950 printf %s "(cached) " >&6
12951 else $as_nop
12952 save_LDFLAGS=$LDFLAGS
12953 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12956 int foo (void) { return 0; }
12957 _ACEOF
12958 if ac_fn_c_try_link "$LINENO"
12959 then :
12960 lt_cv_irix_exported_symbol=yes
12961 else $as_nop
12962 lt_cv_irix_exported_symbol=no
12963 fi
12964 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12965 conftest$ac_exeext conftest.$ac_ext
12966 LDFLAGS=$save_LDFLAGS
12967 fi
12968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12969 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12970 if test yes = "$lt_cv_irix_exported_symbol"; then
12971 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'
12972 fi
12973 link_all_deplibs=no
12974 else
12975 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'
12976 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'
12977 fi
12978 archive_cmds_need_lc='no'
12979 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12980 hardcode_libdir_separator=:
12981 inherit_rpath=yes
12982 link_all_deplibs=yes
12983 ;;
12984
12985 linux*)
12986 case $cc_basename in
12987 tcc*)
12988 # Fabrice Bellard et al's Tiny C Compiler
12989 ld_shlibs=yes
12990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12991 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12992 ;;
12993 esac
12994 ;;
12995
12996 netbsd* | netbsdelf*-gnu)
12997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12999 else
13000 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13001 fi
13002 hardcode_libdir_flag_spec='-R$libdir'
13003 hardcode_direct=yes
13004 hardcode_shlibpath_var=no
13005 ;;
13006
13007 newsos6)
13008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13009 hardcode_direct=yes
13010 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13011 hardcode_libdir_separator=:
13012 hardcode_shlibpath_var=no
13013 ;;
13014
13015 *nto* | *qnx*)
13016 ;;
13017
13018 openbsd* | bitrig*)
13019 if test -f /usr/libexec/ld.so; then
13020 hardcode_direct=yes
13021 hardcode_shlibpath_var=no
13022 hardcode_direct_absolute=yes
13023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13024 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13025 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13026 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13027 export_dynamic_flag_spec='$wl-E'
13028 else
13029 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13030 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13031 fi
13032 else
13033 ld_shlibs=no
13034 fi
13035 ;;
13036
13037 os2*)
13038 hardcode_libdir_flag_spec='-L$libdir'
13039 hardcode_minus_L=yes
13040 allow_undefined_flag=unsupported
13041 shrext_cmds=.dll
13042 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13043 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13044 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13045 $ECHO EXPORTS >> $output_objdir/$libname.def~
13046 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13047 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13048 emximp -o $lib $output_objdir/$libname.def'
13049 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13050 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13051 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13052 $ECHO EXPORTS >> $output_objdir/$libname.def~
13053 prefix_cmds="$SED"~
13054 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13055 prefix_cmds="$prefix_cmds -e 1d";
13056 fi~
13057 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13058 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13059 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13060 emximp -o $lib $output_objdir/$libname.def'
13061 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13062 enable_shared_with_static_runtimes=yes
13063 file_list_spec='@'
13064 ;;
13065
13066 osf3*)
13067 if test yes = "$GCC"; then
13068 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13069 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'
13070 else
13071 allow_undefined_flag=' -expect_unresolved \*'
13072 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'
13073 fi
13074 archive_cmds_need_lc='no'
13075 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13076 hardcode_libdir_separator=:
13077 ;;
13078
13079 osf4* | osf5*) # as osf3* with the addition of -msym flag
13080 if test yes = "$GCC"; then
13081 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13082 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'
13083 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13084 else
13085 allow_undefined_flag=' -expect_unresolved \*'
13086 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'
13087 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~
13088 $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'
13089
13090 # Both c and cxx compiler support -rpath directly
13091 hardcode_libdir_flag_spec='-rpath $libdir'
13092 fi
13093 archive_cmds_need_lc='no'
13094 hardcode_libdir_separator=:
13095 ;;
13096
13097 solaris*)
13098 no_undefined_flag=' -z defs'
13099 if test yes = "$GCC"; then
13100 wlarc='$wl'
13101 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13103 $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'
13104 else
13105 case `$CC -V 2>&1` in
13106 *"Compilers 5.0"*)
13107 wlarc=''
13108 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13110 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13111 ;;
13112 *)
13113 wlarc='$wl'
13114 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13115 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13116 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13117 ;;
13118 esac
13119 fi
13120 hardcode_libdir_flag_spec='-R$libdir'
13121 hardcode_shlibpath_var=no
13122 case $host_os in
13123 solaris2.[0-5] | solaris2.[0-5].*) ;;
13124 *)
13125 # The compiler driver will combine and reorder linker options,
13126 # but understands '-z linker_flag'. GCC discards it without '$wl',
13127 # but is careful enough not to reorder.
13128 # Supported since Solaris 2.6 (maybe 2.5.1?)
13129 if test yes = "$GCC"; then
13130 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13131 else
13132 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13133 fi
13134 ;;
13135 esac
13136 link_all_deplibs=yes
13137 ;;
13138
13139 sunos4*)
13140 if test sequent = "$host_vendor"; then
13141 # Use $CC to link under sequent, because it throws in some extra .o
13142 # files that make .init and .fini sections work.
13143 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13144 else
13145 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13146 fi
13147 hardcode_libdir_flag_spec='-L$libdir'
13148 hardcode_direct=yes
13149 hardcode_minus_L=yes
13150 hardcode_shlibpath_var=no
13151 ;;
13152
13153 sysv4)
13154 case $host_vendor in
13155 sni)
13156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13157 hardcode_direct=yes # is this really true???
13158 ;;
13159 siemens)
13160 ## LD is ld it makes a PLAMLIB
13161 ## CC just makes a GrossModule.
13162 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13163 reload_cmds='$CC -r -o $output$reload_objs'
13164 hardcode_direct=no
13165 ;;
13166 motorola)
13167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13168 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13169 ;;
13170 esac
13171 runpath_var='LD_RUN_PATH'
13172 hardcode_shlibpath_var=no
13173 ;;
13174
13175 sysv4.3*)
13176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13177 hardcode_shlibpath_var=no
13178 export_dynamic_flag_spec='-Bexport'
13179 ;;
13180
13181 sysv4*MP*)
13182 if test -d /usr/nec; then
13183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13184 hardcode_shlibpath_var=no
13185 runpath_var=LD_RUN_PATH
13186 hardcode_runpath_var=yes
13187 ld_shlibs=yes
13188 fi
13189 ;;
13190
13191 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13192 no_undefined_flag='$wl-z,text'
13193 archive_cmds_need_lc=no
13194 hardcode_shlibpath_var=no
13195 runpath_var='LD_RUN_PATH'
13196
13197 if test yes = "$GCC"; then
13198 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13199 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13200 else
13201 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13202 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13203 fi
13204 ;;
13205
13206 sysv5* | sco3.2v5* | sco5v6*)
13207 # Note: We CANNOT use -z defs as we might desire, because we do not
13208 # link with -lc, and that would cause any symbols used from libc to
13209 # always be unresolved, which means just about no library would
13210 # ever link correctly. If we're not using GNU ld we use -z text
13211 # though, which does catch some bad symbols but isn't as heavy-handed
13212 # as -z defs.
13213 no_undefined_flag='$wl-z,text'
13214 allow_undefined_flag='$wl-z,nodefs'
13215 archive_cmds_need_lc=no
13216 hardcode_shlibpath_var=no
13217 hardcode_libdir_flag_spec='$wl-R,$libdir'
13218 hardcode_libdir_separator=':'
13219 link_all_deplibs=yes
13220 export_dynamic_flag_spec='$wl-Bexport'
13221 runpath_var='LD_RUN_PATH'
13222
13223 if test yes = "$GCC"; then
13224 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13225 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13226 else
13227 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13228 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13229 fi
13230 ;;
13231
13232 uts4*)
13233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13234 hardcode_libdir_flag_spec='-L$libdir'
13235 hardcode_shlibpath_var=no
13236 ;;
13237
13238 *)
13239 ld_shlibs=no
13240 ;;
13241 esac
13242
13243 if test sni = "$host_vendor"; then
13244 case $host in
13245 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13246 export_dynamic_flag_spec='$wl-Blargedynsym'
13247 ;;
13248 esac
13249 fi
13250 fi
13251
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13253 printf "%s\n" "$ld_shlibs" >&6; }
13254 test no = "$ld_shlibs" && can_build_shared=no
13255
13256 with_gnu_ld=$with_gnu_ld
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272 #
13273 # Do we need to explicitly link libc?
13274 #
13275 case "x$archive_cmds_need_lc" in
13276 x|xyes)
13277 # Assume -lc should be added
13278 archive_cmds_need_lc=yes
13279
13280 if test yes,yes = "$GCC,$enable_shared"; then
13281 case $archive_cmds in
13282 *'~'*)
13283 # FIXME: we may have to deal with multi-command sequences.
13284 ;;
13285 '$CC '*)
13286 # Test whether the compiler implicitly links with -lc since on some
13287 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13288 # to ld, don't add -lc before -lgcc.
13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13290 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13291 if test ${lt_cv_archive_cmds_need_lc+y}
13292 then :
13293 printf %s "(cached) " >&6
13294 else $as_nop
13295 $RM conftest*
13296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13297
13298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13299 (eval $ac_compile) 2>&5
13300 ac_status=$?
13301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13302 test $ac_status = 0; } 2>conftest.err; then
13303 soname=conftest
13304 lib=conftest
13305 libobjs=conftest.$ac_objext
13306 deplibs=
13307 wl=$lt_prog_compiler_wl
13308 pic_flag=$lt_prog_compiler_pic
13309 compiler_flags=-v
13310 linker_flags=-v
13311 verstring=
13312 output_objdir=.
13313 libname=conftest
13314 lt_save_allow_undefined_flag=$allow_undefined_flag
13315 allow_undefined_flag=
13316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13317 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13318 ac_status=$?
13319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13320 test $ac_status = 0; }
13321 then
13322 lt_cv_archive_cmds_need_lc=no
13323 else
13324 lt_cv_archive_cmds_need_lc=yes
13325 fi
13326 allow_undefined_flag=$lt_save_allow_undefined_flag
13327 else
13328 cat conftest.err 1>&5
13329 fi
13330 $RM conftest*
13331
13332 fi
13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13334 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13335 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13336 ;;
13337 esac
13338 fi
13339 ;;
13340 esac
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13494 printf %s "checking dynamic linker characteristics... " >&6; }
13495
13496 if test yes = "$GCC"; then
13497 case $host_os in
13498 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13499 *) lt_awk_arg='/^libraries:/' ;;
13500 esac
13501 case $host_os in
13502 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13503 *) lt_sed_strip_eq='s|=/|/|g' ;;
13504 esac
13505 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13506 case $lt_search_path_spec in
13507 *\;*)
13508 # if the path contains ";" then we assume it to be the separator
13509 # otherwise default to the standard path separator (i.e. ":") - it is
13510 # assumed that no part of a normal pathname contains ";" but that should
13511 # okay in the real world where ";" in dirpaths is itself problematic.
13512 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13513 ;;
13514 *)
13515 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13516 ;;
13517 esac
13518 # Ok, now we have the path, separated by spaces, we can step through it
13519 # and add multilib dir if necessary...
13520 lt_tmp_lt_search_path_spec=
13521 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13522 # ...but if some path component already ends with the multilib dir we assume
13523 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13524 case "$lt_multi_os_dir; $lt_search_path_spec " in
13525 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13526 lt_multi_os_dir=
13527 ;;
13528 esac
13529 for lt_sys_path in $lt_search_path_spec; do
13530 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13531 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13532 elif test -n "$lt_multi_os_dir"; then
13533 test -d "$lt_sys_path" && \
13534 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13535 fi
13536 done
13537 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13538 BEGIN {RS = " "; FS = "/|\n";} {
13539 lt_foo = "";
13540 lt_count = 0;
13541 for (lt_i = NF; lt_i > 0; lt_i--) {
13542 if ($lt_i != "" && $lt_i != ".") {
13543 if ($lt_i == "..") {
13544 lt_count++;
13545 } else {
13546 if (lt_count == 0) {
13547 lt_foo = "/" $lt_i lt_foo;
13548 } else {
13549 lt_count--;
13550 }
13551 }
13552 }
13553 }
13554 if (lt_foo != "") { lt_freq[lt_foo]++; }
13555 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13556 }'`
13557 # AWK program above erroneously prepends '/' to C:/dos/paths
13558 # for these hosts.
13559 case $host_os in
13560 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13561 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13562 esac
13563 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13564 else
13565 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13566 fi
13567 library_names_spec=
13568 libname_spec='lib$name'
13569 soname_spec=
13570 shrext_cmds=.so
13571 postinstall_cmds=
13572 postuninstall_cmds=
13573 finish_cmds=
13574 finish_eval=
13575 shlibpath_var=
13576 shlibpath_overrides_runpath=unknown
13577 version_type=none
13578 dynamic_linker="$host_os ld.so"
13579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13580 need_lib_prefix=unknown
13581 hardcode_into_libs=no
13582
13583 # when you set need_version to no, make sure it does not cause -set_version
13584 # flags to be left without arguments
13585 need_version=unknown
13586
13587
13588
13589 case $host_os in
13590 aix3*)
13591 version_type=linux # correct to gnu/linux during the next big refactor
13592 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13593 shlibpath_var=LIBPATH
13594
13595 # AIX 3 has no versioning support, so we append a major version to the name.
13596 soname_spec='$libname$release$shared_ext$major'
13597 ;;
13598
13599 aix[4-9]*)
13600 version_type=linux # correct to gnu/linux during the next big refactor
13601 need_lib_prefix=no
13602 need_version=no
13603 hardcode_into_libs=yes
13604 if test ia64 = "$host_cpu"; then
13605 # AIX 5 supports IA64
13606 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13607 shlibpath_var=LD_LIBRARY_PATH
13608 else
13609 # With GCC up to 2.95.x, collect2 would create an import file
13610 # for dependence libraries. The import file would start with
13611 # the line '#! .'. This would cause the generated library to
13612 # depend on '.', always an invalid library. This was fixed in
13613 # development snapshots of GCC prior to 3.0.
13614 case $host_os in
13615 aix4 | aix4.[01] | aix4.[01].*)
13616 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13617 echo ' yes '
13618 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13619 :
13620 else
13621 can_build_shared=no
13622 fi
13623 ;;
13624 esac
13625 # Using Import Files as archive members, it is possible to support
13626 # filename-based versioning of shared library archives on AIX. While
13627 # this would work for both with and without runtime linking, it will
13628 # prevent static linking of such archives. So we do filename-based
13629 # shared library versioning with .so extension only, which is used
13630 # when both runtime linking and shared linking is enabled.
13631 # Unfortunately, runtime linking may impact performance, so we do
13632 # not want this to be the default eventually. Also, we use the
13633 # versioned .so libs for executables only if there is the -brtl
13634 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13635 # To allow for filename-based versioning support, we need to create
13636 # libNAME.so.V as an archive file, containing:
13637 # *) an Import File, referring to the versioned filename of the
13638 # archive as well as the shared archive member, telling the
13639 # bitwidth (32 or 64) of that shared object, and providing the
13640 # list of exported symbols of that shared object, eventually
13641 # decorated with the 'weak' keyword
13642 # *) the shared object with the F_LOADONLY flag set, to really avoid
13643 # it being seen by the linker.
13644 # At run time we better use the real file rather than another symlink,
13645 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13646
13647 case $with_aix_soname,$aix_use_runtimelinking in
13648 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13649 # soname into executable. Probably we can add versioning support to
13650 # collect2, so additional links can be useful in future.
13651 aix,yes) # traditional libtool
13652 dynamic_linker='AIX unversionable lib.so'
13653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13654 # instead of lib<name>.a to let people know that these are not
13655 # typical AIX shared libraries.
13656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13657 ;;
13658 aix,no) # traditional AIX only
13659 dynamic_linker='AIX lib.a(lib.so.V)'
13660 # We preserve .a as extension for shared libraries through AIX4.2
13661 # and later when we are not doing run time linking.
13662 library_names_spec='$libname$release.a $libname.a'
13663 soname_spec='$libname$release$shared_ext$major'
13664 ;;
13665 svr4,*) # full svr4 only
13666 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13667 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13668 # We do not specify a path in Import Files, so LIBPATH fires.
13669 shlibpath_overrides_runpath=yes
13670 ;;
13671 *,yes) # both, prefer svr4
13672 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13673 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13674 # unpreferred sharedlib libNAME.a needs extra handling
13675 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13676 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13677 # We do not specify a path in Import Files, so LIBPATH fires.
13678 shlibpath_overrides_runpath=yes
13679 ;;
13680 *,no) # both, prefer aix
13681 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13682 library_names_spec='$libname$release.a $libname.a'
13683 soname_spec='$libname$release$shared_ext$major'
13684 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13685 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13686 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13687 ;;
13688 esac
13689 shlibpath_var=LIBPATH
13690 fi
13691 ;;
13692
13693 amigaos*)
13694 case $host_cpu in
13695 powerpc)
13696 # Since July 2007 AmigaOS4 officially supports .so libraries.
13697 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13699 ;;
13700 m68k)
13701 library_names_spec='$libname.ixlibrary $libname.a'
13702 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13703 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13704 ;;
13705 esac
13706 ;;
13707
13708 beos*)
13709 library_names_spec='$libname$shared_ext'
13710 dynamic_linker="$host_os ld.so"
13711 shlibpath_var=LIBRARY_PATH
13712 ;;
13713
13714 bsdi[45]*)
13715 version_type=linux # correct to gnu/linux during the next big refactor
13716 need_version=no
13717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13718 soname_spec='$libname$release$shared_ext$major'
13719 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13720 shlibpath_var=LD_LIBRARY_PATH
13721 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13722 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13723 # the default ld.so.conf also contains /usr/contrib/lib and
13724 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13725 # libtool to hard-code these into programs
13726 ;;
13727
13728 cygwin* | mingw* | pw32* | cegcc*)
13729 version_type=windows
13730 shrext_cmds=.dll
13731 need_version=no
13732 need_lib_prefix=no
13733
13734 case $GCC,$cc_basename in
13735 yes,*)
13736 # gcc
13737 library_names_spec='$libname.dll.a'
13738 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13739 postinstall_cmds='base_file=`basename \$file`~
13740 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13741 dldir=$destdir/`dirname \$dlpath`~
13742 test -d \$dldir || mkdir -p \$dldir~
13743 $install_prog $dir/$dlname \$dldir/$dlname~
13744 chmod a+x \$dldir/$dlname~
13745 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13746 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13747 fi'
13748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13749 dlpath=$dir/\$dldll~
13750 $RM \$dlpath'
13751 shlibpath_overrides_runpath=yes
13752
13753 case $host_os in
13754 cygwin*)
13755 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13756 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13757
13758 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13759 ;;
13760 mingw* | cegcc*)
13761 # MinGW DLLs use traditional 'lib' prefix
13762 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13763 ;;
13764 pw32*)
13765 # pw32 DLLs use 'pw' prefix rather than 'lib'
13766 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13767 ;;
13768 esac
13769 dynamic_linker='Win32 ld.exe'
13770 ;;
13771
13772 *,cl* | *,icl*)
13773 # Native MSVC or ICC
13774 libname_spec='$name'
13775 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13776 library_names_spec='$libname.dll.lib'
13777
13778 case $build_os in
13779 mingw*)
13780 sys_lib_search_path_spec=
13781 lt_save_ifs=$IFS
13782 IFS=';'
13783 for lt_path in $LIB
13784 do
13785 IFS=$lt_save_ifs
13786 # Let DOS variable expansion print the short 8.3 style file name.
13787 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13788 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13789 done
13790 IFS=$lt_save_ifs
13791 # Convert to MSYS style.
13792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13793 ;;
13794 cygwin*)
13795 # Convert to unix form, then to dos form, then back to unix form
13796 # but this time dos style (no spaces!) so that the unix form looks
13797 # like /cygdrive/c/PROGRA~1:/cygdr...
13798 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13799 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13800 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13801 ;;
13802 *)
13803 sys_lib_search_path_spec=$LIB
13804 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13805 # It is most probably a Windows format PATH.
13806 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13807 else
13808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13809 fi
13810 # FIXME: find the short name or the path components, as spaces are
13811 # common. (e.g. "Program Files" -> "PROGRA~1")
13812 ;;
13813 esac
13814
13815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13816 postinstall_cmds='base_file=`basename \$file`~
13817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13818 dldir=$destdir/`dirname \$dlpath`~
13819 test -d \$dldir || mkdir -p \$dldir~
13820 $install_prog $dir/$dlname \$dldir/$dlname'
13821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13822 dlpath=$dir/\$dldll~
13823 $RM \$dlpath'
13824 shlibpath_overrides_runpath=yes
13825 dynamic_linker='Win32 link.exe'
13826 ;;
13827
13828 *)
13829 # Assume MSVC and ICC wrapper
13830 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13831 dynamic_linker='Win32 ld.exe'
13832 ;;
13833 esac
13834 # FIXME: first we should search . and the directory the executable is in
13835 shlibpath_var=PATH
13836 ;;
13837
13838 darwin* | rhapsody*)
13839 dynamic_linker="$host_os dyld"
13840 version_type=darwin
13841 need_lib_prefix=no
13842 need_version=no
13843 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13844 soname_spec='$libname$release$major$shared_ext'
13845 shlibpath_overrides_runpath=yes
13846 shlibpath_var=DYLD_LIBRARY_PATH
13847 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13848
13849 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13851 ;;
13852
13853 dgux*)
13854 version_type=linux # correct to gnu/linux during the next big refactor
13855 need_lib_prefix=no
13856 need_version=no
13857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13858 soname_spec='$libname$release$shared_ext$major'
13859 shlibpath_var=LD_LIBRARY_PATH
13860 ;;
13861
13862 freebsd* | dragonfly* | midnightbsd*)
13863 # DragonFly does not have aout. When/if they implement a new
13864 # versioning mechanism, adjust this.
13865 if test -x /usr/bin/objformat; then
13866 objformat=`/usr/bin/objformat`
13867 else
13868 case $host_os in
13869 freebsd[23].*) objformat=aout ;;
13870 *) objformat=elf ;;
13871 esac
13872 fi
13873 version_type=freebsd-$objformat
13874 case $version_type in
13875 freebsd-elf*)
13876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13877 soname_spec='$libname$release$shared_ext$major'
13878 need_version=no
13879 need_lib_prefix=no
13880 ;;
13881 freebsd-*)
13882 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13883 need_version=yes
13884 ;;
13885 esac
13886 shlibpath_var=LD_LIBRARY_PATH
13887 case $host_os in
13888 freebsd2.*)
13889 shlibpath_overrides_runpath=yes
13890 ;;
13891 freebsd3.[01]* | freebsdelf3.[01]*)
13892 shlibpath_overrides_runpath=yes
13893 hardcode_into_libs=yes
13894 ;;
13895 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13896 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13897 shlibpath_overrides_runpath=no
13898 hardcode_into_libs=yes
13899 ;;
13900 *) # from 4.6 on, and DragonFly
13901 shlibpath_overrides_runpath=yes
13902 hardcode_into_libs=yes
13903 ;;
13904 esac
13905 ;;
13906
13907 haiku*)
13908 version_type=linux # correct to gnu/linux during the next big refactor
13909 need_lib_prefix=no
13910 need_version=no
13911 dynamic_linker="$host_os runtime_loader"
13912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13913 soname_spec='$libname$release$shared_ext$major'
13914 shlibpath_var=LIBRARY_PATH
13915 shlibpath_overrides_runpath=no
13916 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13917 hardcode_into_libs=yes
13918 ;;
13919
13920 hpux9* | hpux10* | hpux11*)
13921 # Give a soname corresponding to the major version so that dld.sl refuses to
13922 # link against other versions.
13923 version_type=sunos
13924 need_lib_prefix=no
13925 need_version=no
13926 case $host_cpu in
13927 ia64*)
13928 shrext_cmds='.so'
13929 hardcode_into_libs=yes
13930 dynamic_linker="$host_os dld.so"
13931 shlibpath_var=LD_LIBRARY_PATH
13932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13934 soname_spec='$libname$release$shared_ext$major'
13935 if test 32 = "$HPUX_IA64_MODE"; then
13936 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13937 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13938 else
13939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13940 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13941 fi
13942 ;;
13943 hppa*64*)
13944 shrext_cmds='.sl'
13945 hardcode_into_libs=yes
13946 dynamic_linker="$host_os dld.sl"
13947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13950 soname_spec='$libname$release$shared_ext$major'
13951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13953 ;;
13954 *)
13955 shrext_cmds='.sl'
13956 dynamic_linker="$host_os dld.sl"
13957 shlibpath_var=SHLIB_PATH
13958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13960 soname_spec='$libname$release$shared_ext$major'
13961 ;;
13962 esac
13963 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13964 postinstall_cmds='chmod 555 $lib'
13965 # or fails outright, so override atomically:
13966 install_override_mode=555
13967 ;;
13968
13969 interix[3-9]*)
13970 version_type=linux # correct to gnu/linux during the next big refactor
13971 need_lib_prefix=no
13972 need_version=no
13973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13974 soname_spec='$libname$release$shared_ext$major'
13975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13976 shlibpath_var=LD_LIBRARY_PATH
13977 shlibpath_overrides_runpath=no
13978 hardcode_into_libs=yes
13979 ;;
13980
13981 irix5* | irix6* | nonstopux*)
13982 case $host_os in
13983 nonstopux*) version_type=nonstopux ;;
13984 *)
13985 if test yes = "$lt_cv_prog_gnu_ld"; then
13986 version_type=linux # correct to gnu/linux during the next big refactor
13987 else
13988 version_type=irix
13989 fi ;;
13990 esac
13991 need_lib_prefix=no
13992 need_version=no
13993 soname_spec='$libname$release$shared_ext$major'
13994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13995 case $host_os in
13996 irix5* | nonstopux*)
13997 libsuff= shlibsuff=
13998 ;;
13999 *)
14000 case $LD in # libtool.m4 will add one of these switches to LD
14001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14002 libsuff= shlibsuff= libmagic=32-bit;;
14003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14004 libsuff=32 shlibsuff=N32 libmagic=N32;;
14005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14007 *) libsuff= shlibsuff= libmagic=never-match;;
14008 esac
14009 ;;
14010 esac
14011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14012 shlibpath_overrides_runpath=no
14013 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14014 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14015 hardcode_into_libs=yes
14016 ;;
14017
14018 # No shared lib support for Linux oldld, aout, or coff.
14019 linux*oldld* | linux*aout* | linux*coff*)
14020 dynamic_linker=no
14021 ;;
14022
14023 linux*android*)
14024 version_type=none # Android doesn't support versioned libraries.
14025 need_lib_prefix=no
14026 need_version=no
14027 library_names_spec='$libname$release$shared_ext'
14028 soname_spec='$libname$release$shared_ext'
14029 finish_cmds=
14030 shlibpath_var=LD_LIBRARY_PATH
14031 shlibpath_overrides_runpath=yes
14032
14033 # This implies no fast_install, which is unacceptable.
14034 # Some rework will be needed to allow for fast_install
14035 # before this can be enabled.
14036 hardcode_into_libs=yes
14037
14038 dynamic_linker='Android linker'
14039 # Don't embed -rpath directories since the linker doesn't support them.
14040 hardcode_libdir_flag_spec='-L$libdir'
14041 ;;
14042
14043 # This must be glibc/ELF.
14044 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14045 version_type=linux # correct to gnu/linux during the next big refactor
14046 need_lib_prefix=no
14047 need_version=no
14048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14049 soname_spec='$libname$release$shared_ext$major'
14050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 shlibpath_overrides_runpath=no
14053
14054 # Some binutils ld are patched to set DT_RUNPATH
14055 if test ${lt_cv_shlibpath_overrides_runpath+y}
14056 then :
14057 printf %s "(cached) " >&6
14058 else $as_nop
14059 lt_cv_shlibpath_overrides_runpath=no
14060 save_LDFLAGS=$LDFLAGS
14061 save_libdir=$libdir
14062 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14063 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066
14067 int
14068 main (void)
14069 {
14070
14071 ;
14072 return 0;
14073 }
14074 _ACEOF
14075 if ac_fn_c_try_link "$LINENO"
14076 then :
14077 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14078 then :
14079 lt_cv_shlibpath_overrides_runpath=yes
14080 fi
14081 fi
14082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14083 conftest$ac_exeext conftest.$ac_ext
14084 LDFLAGS=$save_LDFLAGS
14085 libdir=$save_libdir
14086
14087 fi
14088
14089 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14090
14091 # This implies no fast_install, which is unacceptable.
14092 # Some rework will be needed to allow for fast_install
14093 # before this can be enabled.
14094 hardcode_into_libs=yes
14095
14096 # Ideally, we could use ldconfig to report *all* directores which are
14097 # searched for libraries, however this is still not possible. Aside from not
14098 # being certain /sbin/ldconfig is available, command
14099 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14100 # even though it is searched at run-time. Try to do the best guess by
14101 # appending ld.so.conf contents (and includes) to the search path.
14102 if test -f /etc/ld.so.conf; then
14103 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' ' '`
14104 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14105 fi
14106
14107 # We used to test for /lib/ld.so.1 and disable shared libraries on
14108 # powerpc, because MkLinux only supported shared libraries with the
14109 # GNU dynamic linker. Since this was broken with cross compilers,
14110 # most powerpc-linux boxes support dynamic linking these days and
14111 # people can always --disable-shared, the test was removed, and we
14112 # assume the GNU/Linux dynamic linker is in use.
14113 dynamic_linker='GNU/Linux ld.so'
14114 ;;
14115
14116 netbsdelf*-gnu)
14117 version_type=linux
14118 need_lib_prefix=no
14119 need_version=no
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 shlibpath_overrides_runpath=no
14124 hardcode_into_libs=yes
14125 dynamic_linker='NetBSD ld.elf_so'
14126 ;;
14127
14128 netbsd*)
14129 version_type=sunos
14130 need_lib_prefix=no
14131 need_version=no
14132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14133 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14135 dynamic_linker='NetBSD (a.out) ld.so'
14136 else
14137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14138 soname_spec='$libname$release$shared_ext$major'
14139 dynamic_linker='NetBSD ld.elf_so'
14140 fi
14141 shlibpath_var=LD_LIBRARY_PATH
14142 shlibpath_overrides_runpath=yes
14143 hardcode_into_libs=yes
14144 ;;
14145
14146 newsos6)
14147 version_type=linux # correct to gnu/linux during the next big refactor
14148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14149 shlibpath_var=LD_LIBRARY_PATH
14150 shlibpath_overrides_runpath=yes
14151 ;;
14152
14153 *nto* | *qnx*)
14154 version_type=qnx
14155 need_lib_prefix=no
14156 need_version=no
14157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14158 soname_spec='$libname$release$shared_ext$major'
14159 shlibpath_var=LD_LIBRARY_PATH
14160 shlibpath_overrides_runpath=no
14161 hardcode_into_libs=yes
14162 dynamic_linker='ldqnx.so'
14163 ;;
14164
14165 openbsd* | bitrig*)
14166 version_type=sunos
14167 sys_lib_dlsearch_path_spec=/usr/lib
14168 need_lib_prefix=no
14169 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14170 need_version=no
14171 else
14172 need_version=yes
14173 fi
14174 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14176 shlibpath_var=LD_LIBRARY_PATH
14177 shlibpath_overrides_runpath=yes
14178 ;;
14179
14180 os2*)
14181 libname_spec='$name'
14182 version_type=windows
14183 shrext_cmds=.dll
14184 need_version=no
14185 need_lib_prefix=no
14186 # OS/2 can only load a DLL with a base name of 8 characters or less.
14187 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14188 v=$($ECHO $release$versuffix | tr -d .-);
14189 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14190 $ECHO $n$v`$shared_ext'
14191 library_names_spec='${libname}_dll.$libext'
14192 dynamic_linker='OS/2 ld.exe'
14193 shlibpath_var=BEGINLIBPATH
14194 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14196 postinstall_cmds='base_file=`basename \$file`~
14197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14198 dldir=$destdir/`dirname \$dlpath`~
14199 test -d \$dldir || mkdir -p \$dldir~
14200 $install_prog $dir/$dlname \$dldir/$dlname~
14201 chmod a+x \$dldir/$dlname~
14202 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14203 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14204 fi'
14205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14206 dlpath=$dir/\$dldll~
14207 $RM \$dlpath'
14208 ;;
14209
14210 osf3* | osf4* | osf5*)
14211 version_type=osf
14212 need_lib_prefix=no
14213 need_version=no
14214 soname_spec='$libname$release$shared_ext$major'
14215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14216 shlibpath_var=LD_LIBRARY_PATH
14217 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14219 ;;
14220
14221 rdos*)
14222 dynamic_linker=no
14223 ;;
14224
14225 solaris*)
14226 version_type=linux # correct to gnu/linux during the next big refactor
14227 need_lib_prefix=no
14228 need_version=no
14229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14230 soname_spec='$libname$release$shared_ext$major'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 shlibpath_overrides_runpath=yes
14233 hardcode_into_libs=yes
14234 # ldd complains unless libraries are executable
14235 postinstall_cmds='chmod +x $lib'
14236 ;;
14237
14238 sunos4*)
14239 version_type=sunos
14240 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14241 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 shlibpath_overrides_runpath=yes
14244 if test yes = "$with_gnu_ld"; then
14245 need_lib_prefix=no
14246 fi
14247 need_version=yes
14248 ;;
14249
14250 sysv4 | sysv4.3*)
14251 version_type=linux # correct to gnu/linux during the next big refactor
14252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14253 soname_spec='$libname$release$shared_ext$major'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 case $host_vendor in
14256 sni)
14257 shlibpath_overrides_runpath=no
14258 need_lib_prefix=no
14259 runpath_var=LD_RUN_PATH
14260 ;;
14261 siemens)
14262 need_lib_prefix=no
14263 ;;
14264 motorola)
14265 need_lib_prefix=no
14266 need_version=no
14267 shlibpath_overrides_runpath=no
14268 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14269 ;;
14270 esac
14271 ;;
14272
14273 sysv4*MP*)
14274 if test -d /usr/nec; then
14275 version_type=linux # correct to gnu/linux during the next big refactor
14276 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14277 soname_spec='$libname$shared_ext.$major'
14278 shlibpath_var=LD_LIBRARY_PATH
14279 fi
14280 ;;
14281
14282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14283 version_type=sco
14284 need_lib_prefix=no
14285 need_version=no
14286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14287 soname_spec='$libname$release$shared_ext$major'
14288 shlibpath_var=LD_LIBRARY_PATH
14289 shlibpath_overrides_runpath=yes
14290 hardcode_into_libs=yes
14291 if test yes = "$with_gnu_ld"; then
14292 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14293 else
14294 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14295 case $host_os in
14296 sco3.2v5*)
14297 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14298 ;;
14299 esac
14300 fi
14301 sys_lib_dlsearch_path_spec='/usr/lib'
14302 ;;
14303
14304 tpf*)
14305 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14306 version_type=linux # correct to gnu/linux during the next big refactor
14307 need_lib_prefix=no
14308 need_version=no
14309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14310 shlibpath_var=LD_LIBRARY_PATH
14311 shlibpath_overrides_runpath=no
14312 hardcode_into_libs=yes
14313 ;;
14314
14315 uts4*)
14316 version_type=linux # correct to gnu/linux during the next big refactor
14317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14318 soname_spec='$libname$release$shared_ext$major'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 ;;
14321
14322 *)
14323 dynamic_linker=no
14324 ;;
14325 esac
14326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14327 printf "%s\n" "$dynamic_linker" >&6; }
14328 test no = "$dynamic_linker" && can_build_shared=no
14329
14330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14331 if test yes = "$GCC"; then
14332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14333 fi
14334
14335 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14336 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14337 fi
14338
14339 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14340 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14341 fi
14342
14343 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14344 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14345
14346 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14347 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14348
14349 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14350 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14449 printf %s "checking how to hardcode library paths into programs... " >&6; }
14450 hardcode_action=
14451 if test -n "$hardcode_libdir_flag_spec" ||
14452 test -n "$runpath_var" ||
14453 test yes = "$hardcode_automatic"; then
14454
14455 # We can hardcode non-existent directories.
14456 if test no != "$hardcode_direct" &&
14457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14458 # have to relink, otherwise we might link with an installed library
14459 # when we should be linking with a yet-to-be-installed one
14460 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14461 test no != "$hardcode_minus_L"; then
14462 # Linking always hardcodes the temporary library directory.
14463 hardcode_action=relink
14464 else
14465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14466 hardcode_action=immediate
14467 fi
14468 else
14469 # We cannot hardcode anything, or else we can only hardcode existing
14470 # directories.
14471 hardcode_action=unsupported
14472 fi
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14474 printf "%s\n" "$hardcode_action" >&6; }
14475
14476 if test relink = "$hardcode_action" ||
14477 test yes = "$inherit_rpath"; then
14478 # Fast installation is not supported
14479 enable_fast_install=no
14480 elif test yes = "$shlibpath_overrides_runpath" ||
14481 test no = "$enable_shared"; then
14482 # Fast installation is not necessary
14483 enable_fast_install=needless
14484 fi
14485
14486
14487
14488
14489
14490
14491 if test yes != "$enable_dlopen"; then
14492 enable_dlopen=unknown
14493 enable_dlopen_self=unknown
14494 enable_dlopen_self_static=unknown
14495 else
14496 lt_cv_dlopen=no
14497 lt_cv_dlopen_libs=
14498
14499 case $host_os in
14500 beos*)
14501 lt_cv_dlopen=load_add_on
14502 lt_cv_dlopen_libs=
14503 lt_cv_dlopen_self=yes
14504 ;;
14505
14506 mingw* | pw32* | cegcc*)
14507 lt_cv_dlopen=LoadLibrary
14508 lt_cv_dlopen_libs=
14509 ;;
14510
14511 cygwin*)
14512 lt_cv_dlopen=dlopen
14513 lt_cv_dlopen_libs=
14514 ;;
14515
14516 darwin*)
14517 # if libdl is installed we need to link against it
14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14519 printf %s "checking for dlopen in -ldl... " >&6; }
14520 if test ${ac_cv_lib_dl_dlopen+y}
14521 then :
14522 printf %s "(cached) " >&6
14523 else $as_nop
14524 ac_check_lib_save_LIBS=$LIBS
14525 LIBS="-ldl $LIBS"
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14528
14529 /* Override any GCC internal prototype to avoid an error.
14530 Use char because int might match the return type of a GCC
14531 builtin and then its argument prototype would still apply. */
14532 char dlopen ();
14533 int
14534 main (void)
14535 {
14536 return dlopen ();
14537 ;
14538 return 0;
14539 }
14540 _ACEOF
14541 if ac_fn_c_try_link "$LINENO"
14542 then :
14543 ac_cv_lib_dl_dlopen=yes
14544 else $as_nop
14545 ac_cv_lib_dl_dlopen=no
14546 fi
14547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14548 conftest$ac_exeext conftest.$ac_ext
14549 LIBS=$ac_check_lib_save_LIBS
14550 fi
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14552 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14553 if test "x$ac_cv_lib_dl_dlopen" = xyes
14554 then :
14555 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14556 else $as_nop
14557
14558 lt_cv_dlopen=dyld
14559 lt_cv_dlopen_libs=
14560 lt_cv_dlopen_self=yes
14561
14562 fi
14563
14564 ;;
14565
14566 tpf*)
14567 # Don't try to run any link tests for TPF. We know it's impossible
14568 # because TPF is a cross-compiler, and we know how we open DSOs.
14569 lt_cv_dlopen=dlopen
14570 lt_cv_dlopen_libs=
14571 lt_cv_dlopen_self=no
14572 ;;
14573
14574 *)
14575 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14576 if test "x$ac_cv_func_shl_load" = xyes
14577 then :
14578 lt_cv_dlopen=shl_load
14579 else $as_nop
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14581 printf %s "checking for shl_load in -ldld... " >&6; }
14582 if test ${ac_cv_lib_dld_shl_load+y}
14583 then :
14584 printf %s "(cached) " >&6
14585 else $as_nop
14586 ac_check_lib_save_LIBS=$LIBS
14587 LIBS="-ldld $LIBS"
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590
14591 /* Override any GCC internal prototype to avoid an error.
14592 Use char because int might match the return type of a GCC
14593 builtin and then its argument prototype would still apply. */
14594 char shl_load ();
14595 int
14596 main (void)
14597 {
14598 return shl_load ();
14599 ;
14600 return 0;
14601 }
14602 _ACEOF
14603 if ac_fn_c_try_link "$LINENO"
14604 then :
14605 ac_cv_lib_dld_shl_load=yes
14606 else $as_nop
14607 ac_cv_lib_dld_shl_load=no
14608 fi
14609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14610 conftest$ac_exeext conftest.$ac_ext
14611 LIBS=$ac_check_lib_save_LIBS
14612 fi
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14614 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14615 if test "x$ac_cv_lib_dld_shl_load" = xyes
14616 then :
14617 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14618 else $as_nop
14619 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14620 if test "x$ac_cv_func_dlopen" = xyes
14621 then :
14622 lt_cv_dlopen=dlopen
14623 else $as_nop
14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14625 printf %s "checking for dlopen in -ldl... " >&6; }
14626 if test ${ac_cv_lib_dl_dlopen+y}
14627 then :
14628 printf %s "(cached) " >&6
14629 else $as_nop
14630 ac_check_lib_save_LIBS=$LIBS
14631 LIBS="-ldl $LIBS"
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634
14635 /* Override any GCC internal prototype to avoid an error.
14636 Use char because int might match the return type of a GCC
14637 builtin and then its argument prototype would still apply. */
14638 char dlopen ();
14639 int
14640 main (void)
14641 {
14642 return dlopen ();
14643 ;
14644 return 0;
14645 }
14646 _ACEOF
14647 if ac_fn_c_try_link "$LINENO"
14648 then :
14649 ac_cv_lib_dl_dlopen=yes
14650 else $as_nop
14651 ac_cv_lib_dl_dlopen=no
14652 fi
14653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14654 conftest$ac_exeext conftest.$ac_ext
14655 LIBS=$ac_check_lib_save_LIBS
14656 fi
14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14658 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14659 if test "x$ac_cv_lib_dl_dlopen" = xyes
14660 then :
14661 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14662 else $as_nop
14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14664 printf %s "checking for dlopen in -lsvld... " >&6; }
14665 if test ${ac_cv_lib_svld_dlopen+y}
14666 then :
14667 printf %s "(cached) " >&6
14668 else $as_nop
14669 ac_check_lib_save_LIBS=$LIBS
14670 LIBS="-lsvld $LIBS"
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672 /* end confdefs.h. */
14673
14674 /* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
14677 char dlopen ();
14678 int
14679 main (void)
14680 {
14681 return dlopen ();
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 if ac_fn_c_try_link "$LINENO"
14687 then :
14688 ac_cv_lib_svld_dlopen=yes
14689 else $as_nop
14690 ac_cv_lib_svld_dlopen=no
14691 fi
14692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14693 conftest$ac_exeext conftest.$ac_ext
14694 LIBS=$ac_check_lib_save_LIBS
14695 fi
14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14697 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14698 if test "x$ac_cv_lib_svld_dlopen" = xyes
14699 then :
14700 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14701 else $as_nop
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14703 printf %s "checking for dld_link in -ldld... " >&6; }
14704 if test ${ac_cv_lib_dld_dld_link+y}
14705 then :
14706 printf %s "(cached) " >&6
14707 else $as_nop
14708 ac_check_lib_save_LIBS=$LIBS
14709 LIBS="-ldld $LIBS"
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14712
14713 /* Override any GCC internal prototype to avoid an error.
14714 Use char because int might match the return type of a GCC
14715 builtin and then its argument prototype would still apply. */
14716 char dld_link ();
14717 int
14718 main (void)
14719 {
14720 return dld_link ();
14721 ;
14722 return 0;
14723 }
14724 _ACEOF
14725 if ac_fn_c_try_link "$LINENO"
14726 then :
14727 ac_cv_lib_dld_dld_link=yes
14728 else $as_nop
14729 ac_cv_lib_dld_dld_link=no
14730 fi
14731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14732 conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14734 fi
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14736 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14737 if test "x$ac_cv_lib_dld_dld_link" = xyes
14738 then :
14739 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14740 fi
14741
14742
14743 fi
14744
14745
14746 fi
14747
14748
14749 fi
14750
14751
14752 fi
14753
14754
14755 fi
14756
14757 ;;
14758 esac
14759
14760 if test no = "$lt_cv_dlopen"; then
14761 enable_dlopen=no
14762 else
14763 enable_dlopen=yes
14764 fi
14765
14766 case $lt_cv_dlopen in
14767 dlopen)
14768 save_CPPFLAGS=$CPPFLAGS
14769 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14770
14771 save_LDFLAGS=$LDFLAGS
14772 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14773
14774 save_LIBS=$LIBS
14775 LIBS="$lt_cv_dlopen_libs $LIBS"
14776
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14778 printf %s "checking whether a program can dlopen itself... " >&6; }
14779 if test ${lt_cv_dlopen_self+y}
14780 then :
14781 printf %s "(cached) " >&6
14782 else $as_nop
14783 if test yes = "$cross_compiling"; then :
14784 lt_cv_dlopen_self=cross
14785 else
14786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14787 lt_status=$lt_dlunknown
14788 cat > conftest.$ac_ext <<_LT_EOF
14789 #line $LINENO "configure"
14790 #include "confdefs.h"
14791
14792 #if HAVE_DLFCN_H
14793 #include <dlfcn.h>
14794 #endif
14795
14796 #include <stdio.h>
14797
14798 #ifdef RTLD_GLOBAL
14799 # define LT_DLGLOBAL RTLD_GLOBAL
14800 #else
14801 # ifdef DL_GLOBAL
14802 # define LT_DLGLOBAL DL_GLOBAL
14803 # else
14804 # define LT_DLGLOBAL 0
14805 # endif
14806 #endif
14807
14808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14809 find out it does not work in some platform. */
14810 #ifndef LT_DLLAZY_OR_NOW
14811 # ifdef RTLD_LAZY
14812 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14813 # else
14814 # ifdef DL_LAZY
14815 # define LT_DLLAZY_OR_NOW DL_LAZY
14816 # else
14817 # ifdef RTLD_NOW
14818 # define LT_DLLAZY_OR_NOW RTLD_NOW
14819 # else
14820 # ifdef DL_NOW
14821 # define LT_DLLAZY_OR_NOW DL_NOW
14822 # else
14823 # define LT_DLLAZY_OR_NOW 0
14824 # endif
14825 # endif
14826 # endif
14827 # endif
14828 #endif
14829
14830 /* When -fvisibility=hidden is used, assume the code has been annotated
14831 correspondingly for the symbols needed. */
14832 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14833 int fnord () __attribute__((visibility("default")));
14834 #endif
14835
14836 int fnord () { return 42; }
14837 int main ()
14838 {
14839 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14840 int status = $lt_dlunknown;
14841
14842 if (self)
14843 {
14844 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14845 else
14846 {
14847 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14848 else puts (dlerror ());
14849 }
14850 /* dlclose (self); */
14851 }
14852 else
14853 puts (dlerror ());
14854
14855 return status;
14856 }
14857 _LT_EOF
14858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14859 (eval $ac_link) 2>&5
14860 ac_status=$?
14861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14862 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14863 (./conftest; exit; ) >&5 2>/dev/null
14864 lt_status=$?
14865 case x$lt_status in
14866 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14867 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14868 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14869 esac
14870 else :
14871 # compilation failed
14872 lt_cv_dlopen_self=no
14873 fi
14874 fi
14875 rm -fr conftest*
14876
14877
14878 fi
14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14880 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14881
14882 if test yes = "$lt_cv_dlopen_self"; then
14883 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14885 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14886 if test ${lt_cv_dlopen_self_static+y}
14887 then :
14888 printf %s "(cached) " >&6
14889 else $as_nop
14890 if test yes = "$cross_compiling"; then :
14891 lt_cv_dlopen_self_static=cross
14892 else
14893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14894 lt_status=$lt_dlunknown
14895 cat > conftest.$ac_ext <<_LT_EOF
14896 #line $LINENO "configure"
14897 #include "confdefs.h"
14898
14899 #if HAVE_DLFCN_H
14900 #include <dlfcn.h>
14901 #endif
14902
14903 #include <stdio.h>
14904
14905 #ifdef RTLD_GLOBAL
14906 # define LT_DLGLOBAL RTLD_GLOBAL
14907 #else
14908 # ifdef DL_GLOBAL
14909 # define LT_DLGLOBAL DL_GLOBAL
14910 # else
14911 # define LT_DLGLOBAL 0
14912 # endif
14913 #endif
14914
14915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14916 find out it does not work in some platform. */
14917 #ifndef LT_DLLAZY_OR_NOW
14918 # ifdef RTLD_LAZY
14919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14920 # else
14921 # ifdef DL_LAZY
14922 # define LT_DLLAZY_OR_NOW DL_LAZY
14923 # else
14924 # ifdef RTLD_NOW
14925 # define LT_DLLAZY_OR_NOW RTLD_NOW
14926 # else
14927 # ifdef DL_NOW
14928 # define LT_DLLAZY_OR_NOW DL_NOW
14929 # else
14930 # define LT_DLLAZY_OR_NOW 0
14931 # endif
14932 # endif
14933 # endif
14934 # endif
14935 #endif
14936
14937 /* When -fvisibility=hidden is used, assume the code has been annotated
14938 correspondingly for the symbols needed. */
14939 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14940 int fnord () __attribute__((visibility("default")));
14941 #endif
14942
14943 int fnord () { return 42; }
14944 int main ()
14945 {
14946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14947 int status = $lt_dlunknown;
14948
14949 if (self)
14950 {
14951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14952 else
14953 {
14954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14955 else puts (dlerror ());
14956 }
14957 /* dlclose (self); */
14958 }
14959 else
14960 puts (dlerror ());
14961
14962 return status;
14963 }
14964 _LT_EOF
14965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14966 (eval $ac_link) 2>&5
14967 ac_status=$?
14968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14969 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14970 (./conftest; exit; ) >&5 2>/dev/null
14971 lt_status=$?
14972 case x$lt_status in
14973 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14974 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14975 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14976 esac
14977 else :
14978 # compilation failed
14979 lt_cv_dlopen_self_static=no
14980 fi
14981 fi
14982 rm -fr conftest*
14983
14984
14985 fi
14986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14987 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14988 fi
14989
14990 CPPFLAGS=$save_CPPFLAGS
14991 LDFLAGS=$save_LDFLAGS
14992 LIBS=$save_LIBS
14993 ;;
14994 esac
14995
14996 case $lt_cv_dlopen_self in
14997 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14998 *) enable_dlopen_self=unknown ;;
14999 esac
15000
15001 case $lt_cv_dlopen_self_static in
15002 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15003 *) enable_dlopen_self_static=unknown ;;
15004 esac
15005 fi
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023 striplib=
15024 old_striplib=
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15026 printf %s "checking whether stripping libraries is possible... " >&6; }
15027 if test -z "$STRIP"; then
15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 printf "%s\n" "no" >&6; }
15030 else
15031 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15032 old_striplib="$STRIP --strip-debug"
15033 striplib="$STRIP --strip-unneeded"
15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15035 printf "%s\n" "yes" >&6; }
15036 else
15037 case $host_os in
15038 darwin*)
15039 # FIXME - insert some real tests, host_os isn't really good enough
15040 striplib="$STRIP -x"
15041 old_striplib="$STRIP -S"
15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15043 printf "%s\n" "yes" >&6; }
15044 ;;
15045 freebsd*)
15046 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15047 old_striplib="$STRIP --strip-debug"
15048 striplib="$STRIP --strip-unneeded"
15049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15050 printf "%s\n" "yes" >&6; }
15051 else
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053 printf "%s\n" "no" >&6; }
15054 fi
15055 ;;
15056 *)
15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 printf "%s\n" "no" >&6; }
15059 ;;
15060 esac
15061 fi
15062 fi
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075 # Report what library types will actually be built
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15077 printf %s "checking if libtool supports shared libraries... " >&6; }
15078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15079 printf "%s\n" "$can_build_shared" >&6; }
15080
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15082 printf %s "checking whether to build shared libraries... " >&6; }
15083 test no = "$can_build_shared" && enable_shared=no
15084
15085 # On AIX, shared libraries and static libraries use the same namespace, and
15086 # are all built from PIC.
15087 case $host_os in
15088 aix3*)
15089 test yes = "$enable_shared" && enable_static=no
15090 if test -n "$RANLIB"; then
15091 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15092 postinstall_cmds='$RANLIB $lib'
15093 fi
15094 ;;
15095
15096 aix[4-9]*)
15097 if test ia64 != "$host_cpu"; then
15098 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15099 yes,aix,yes) ;; # shared object as lib.so file only
15100 yes,svr4,*) ;; # shared object as lib.so archive member only
15101 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15102 esac
15103 fi
15104 ;;
15105 esac
15106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15107 printf "%s\n" "$enable_shared" >&6; }
15108
15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15110 printf %s "checking whether to build static libraries... " >&6; }
15111 # Make sure either enable_shared or enable_static is yes.
15112 test yes = "$enable_shared" || enable_static=yes
15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15114 printf "%s\n" "$enable_static" >&6; }
15115
15116
15117
15118
15119 fi
15120 ac_ext=c
15121 ac_cpp='$CPP $CPPFLAGS'
15122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15125
15126 CC=$lt_save_CC
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142 ac_config_commands="$ac_config_commands libtool"
15143
15144
15145
15146
15147 # Only expand once:
15148
15149
15150 if test -n "$ac_tool_prefix"; then
15151 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15152 set dummy ${ac_tool_prefix}windres; ac_word=$2
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15154 printf %s "checking for $ac_word... " >&6; }
15155 if test ${ac_cv_prog_RC+y}
15156 then :
15157 printf %s "(cached) " >&6
15158 else $as_nop
15159 if test -n "$RC"; then
15160 ac_cv_prog_RC="$RC" # Let the user override the test.
15161 else
15162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15163 for as_dir in $PATH
15164 do
15165 IFS=$as_save_IFS
15166 case $as_dir in #(((
15167 '') as_dir=./ ;;
15168 */) ;;
15169 *) as_dir=$as_dir/ ;;
15170 esac
15171 for ac_exec_ext in '' $ac_executable_extensions; do
15172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15173 ac_cv_prog_RC="${ac_tool_prefix}windres"
15174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15175 break 2
15176 fi
15177 done
15178 done
15179 IFS=$as_save_IFS
15180
15181 fi
15182 fi
15183 RC=$ac_cv_prog_RC
15184 if test -n "$RC"; then
15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15186 printf "%s\n" "$RC" >&6; }
15187 else
15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15189 printf "%s\n" "no" >&6; }
15190 fi
15191
15192
15193 fi
15194 if test -z "$ac_cv_prog_RC"; then
15195 ac_ct_RC=$RC
15196 # Extract the first word of "windres", so it can be a program name with args.
15197 set dummy windres; ac_word=$2
15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15199 printf %s "checking for $ac_word... " >&6; }
15200 if test ${ac_cv_prog_ac_ct_RC+y}
15201 then :
15202 printf %s "(cached) " >&6
15203 else $as_nop
15204 if test -n "$ac_ct_RC"; then
15205 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15206 else
15207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15208 for as_dir in $PATH
15209 do
15210 IFS=$as_save_IFS
15211 case $as_dir in #(((
15212 '') as_dir=./ ;;
15213 */) ;;
15214 *) as_dir=$as_dir/ ;;
15215 esac
15216 for ac_exec_ext in '' $ac_executable_extensions; do
15217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15218 ac_cv_prog_ac_ct_RC="windres"
15219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15220 break 2
15221 fi
15222 done
15223 done
15224 IFS=$as_save_IFS
15225
15226 fi
15227 fi
15228 ac_ct_RC=$ac_cv_prog_ac_ct_RC
15229 if test -n "$ac_ct_RC"; then
15230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15231 printf "%s\n" "$ac_ct_RC" >&6; }
15232 else
15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 printf "%s\n" "no" >&6; }
15235 fi
15236
15237 if test "x$ac_ct_RC" = x; then
15238 RC=""
15239 else
15240 case $cross_compiling:$ac_tool_warned in
15241 yes:)
15242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15244 ac_tool_warned=yes ;;
15245 esac
15246 RC=$ac_ct_RC
15247 fi
15248 else
15249 RC="$ac_cv_prog_RC"
15250 fi
15251
15252
15253
15254
15255 # Source file extension for RC test sources.
15256 ac_ext=rc
15257
15258 # Object file extension for compiled RC test sources.
15259 objext=o
15260 objext_RC=$objext
15261
15262 # Code to be used in simple compile tests
15263 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15264
15265 # Code to be used in simple link tests
15266 lt_simple_link_test_code=$lt_simple_compile_test_code
15267
15268 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15269
15270
15271
15272
15273
15274
15275 # If no C compiler was specified, use CC.
15276 LTCC=${LTCC-"$CC"}
15277
15278 # If no C compiler flags were specified, use CFLAGS.
15279 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15280
15281 # Allow CC to be a program name with arguments.
15282 compiler=$CC
15283
15284
15285 # save warnings/boilerplate of simple test code
15286 ac_outfile=conftest.$ac_objext
15287 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15288 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15289 _lt_compiler_boilerplate=`cat conftest.err`
15290 $RM conftest*
15291
15292 ac_outfile=conftest.$ac_objext
15293 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15294 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15295 _lt_linker_boilerplate=`cat conftest.err`
15296 $RM -r conftest*
15297
15298
15299 # Allow CC to be a program name with arguments.
15300 lt_save_CC=$CC
15301 lt_save_CFLAGS=$CFLAGS
15302 lt_save_GCC=$GCC
15303 GCC=
15304 CC=${RC-"windres"}
15305 CFLAGS=
15306 compiler=$CC
15307 compiler_RC=$CC
15308 func_cc_basename $compiler
15309 cc_basename=$func_cc_basename_result
15310
15311 lt_cv_prog_compiler_c_o_RC=yes
15312
15313 if test -n "$compiler"; then
15314 :
15315
15316
15317
15318 fi
15319
15320 GCC=$lt_save_GCC
15321 ac_ext=c
15322 ac_cpp='$CPP $CPPFLAGS'
15323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15326
15327 CC=$lt_save_CC
15328 CFLAGS=$lt_save_CFLAGS
15329
15330
15331
15332 ##########################
15333 ## General definitions. ##
15334 ##########################
15335
15336 # Used by libgcrypt-config
15337 LIBGCRYPT_CONFIG_LIBS="-lgcrypt"
15338 LIBGCRYPT_CONFIG_CFLAGS=""
15339 LIBGCRYPT_CONFIG_HOST="$host"
15340
15341 # Definitions for symmetric ciphers.
15342 available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed"
15343 available_ciphers="$available_ciphers camellia idea salsa20 gost28147 chacha20"
15344 available_ciphers="$available_ciphers sm4 aria"
15345 enabled_ciphers=""
15346
15347 # Definitions for public-key ciphers.
15348 available_pubkey_ciphers="dsa elgamal rsa ecc kyber dilithium"
15349 enabled_pubkey_ciphers=""
15350
15351 # Definitions for message digests.
15352 available_digests="crc gostr3411-94 md2 md4 md5 rmd160 sha1 sha256 sha512"
15353 available_digests="$available_digests sha3 tiger whirlpool stribog blake2"
15354 available_digests="$available_digests sm3"
15355 enabled_digests=""
15356
15357 # Definitions for kdfs (optional ones)
15358 available_kdfs="s2k pkdf2 scrypt"
15359 enabled_kdfs=""
15360
15361 # Definitions for random modules.
15362 available_random_modules="getentropy linux egd unix"
15363 auto_random_modules="$available_random_modules"
15364
15365 # Supported thread backends.
15366 LIBGCRYPT_THREAD_MODULES=""
15367
15368 # Other definitions.
15369 have_w32_system=no
15370 have_pthread=no
15371
15372
15373 # Setup some stuff depending on host.
15374 case "${host}" in
15375 *-*-linux*)
15376 # It makes no sense to check the requirement of -lpthread for
15377 # libgcrypt. It's done by libgpg-error and we use
15378 # GPG_ERROR_MT_CFLAGS and GPG_ERROR_MT_LIBS in libgcrypt.
15379 have_pthread=yes
15380 ;;
15381
15382 *-*-mingw32*)
15383 ac_cv_have_dev_random=no
15384 have_w32_system=yes
15385 available_random_modules="w32"
15386
15387 printf "%s\n" "#define USE_ONLY_8DOT3 1" >>confdefs.h
15388
15389
15390 printf "%s\n" "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
15391
15392
15393 printf "%s\n" "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
15394
15395 ;;
15396
15397 i?86-emx-os2 | i?86-*-os2*emx)
15398 # OS/2 with the EMX environment
15399 ac_cv_have_dev_random=no
15400 printf "%s\n" "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
15401
15402 printf "%s\n" "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
15403
15404 ;;
15405
15406 i?86-*-msdosdjgpp*)
15407 # DOS with the DJGPP environment
15408 ac_cv_have_dev_random=no
15409 printf "%s\n" "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
15410
15411 printf "%s\n" "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
15412
15413 ;;
15414
15415 *-*-hpux*)
15416 if test -z "$GCC" ; then
15417 CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
15418 fi
15419 ;;
15420 *-dec-osf4*)
15421 if test -z "$GCC" ; then
15422 # Suppress all warnings
15423 # to get rid of the unsigned/signed char mismatch warnings.
15424 CFLAGS="$CFLAGS -w"
15425 fi
15426 ;;
15427 m68k-atari-mint)
15428 ;;
15429 *-apple-darwin*)
15430
15431 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
15432
15433
15434 printf "%s\n" "#define USE_POSIX_SPAWN_FOR_TESTS 1" >>confdefs.h
15435
15436 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
15437 if test "x$ac_cv_header_spawn_h" = xyes
15438 then :
15439 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
15440
15441 fi
15442
15443 ;;
15444
15445 *-openedition*)
15446 # The z/OS C runtime includes pthread support, and linking is
15447 # handled automatically at build time.
15448 have_pthread=yes
15449 # mmap is not fully supported on z/OS.
15450 ac_cv_func_mmap=no
15451 ;;
15452
15453 *)
15454 ;;
15455 esac
15456
15457 if test "$have_w32_system" = yes; then
15458
15459 printf "%s\n" "#define HAVE_W32_SYSTEM 1" >>confdefs.h
15460
15461 fi
15462 if test "$have_w32_system" = yes; then
15463 HAVE_W32_SYSTEM_TRUE=
15464 HAVE_W32_SYSTEM_FALSE='#'
15465 else
15466 HAVE_W32_SYSTEM_TRUE='#'
15467 HAVE_W32_SYSTEM_FALSE=
15468 fi
15469
15470
15471
15472 # A printable OS Name is sometimes useful.
15473 case "${host}" in
15474 *-*-mingw32*)
15475 PRINTABLE_OS_NAME="W32"
15476 ;;
15477
15478 i?86-emx-os2 | i?86-*-os2*emx )
15479 PRINTABLE_OS_NAME="OS/2"
15480 ;;
15481
15482 i?86-*-msdosdjgpp*)
15483 PRINTABLE_OS_NAME="MSDOS/DJGPP"
15484 ;;
15485
15486 *-linux*)
15487 PRINTABLE_OS_NAME="GNU/Linux"
15488 ;;
15489
15490 *-openedition*)
15491 PRINTABLE_OS_NAME="IBM z/OS"
15492 ;;
15493
15494 *)
15495 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
15496 ;;
15497 esac
15498
15499 NAME_OF_DEV_RANDOM="/dev/random"
15500 NAME_OF_DEV_URANDOM="/dev/urandom"
15501
15502 # Check whether --enable-endian-check was given.
15503 if test ${enable_endian_check+y}
15504 then :
15505 enableval=$enable_endian_check; endiancheck=$enableval
15506 else $as_nop
15507 endiancheck=yes
15508 fi
15509
15510 if test x"$endiancheck" = xyes ; then
15511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15512 printf %s "checking whether byte ordering is bigendian... " >&6; }
15513 if test ${ac_cv_c_bigendian+y}
15514 then :
15515 printf %s "(cached) " >&6
15516 else $as_nop
15517 ac_cv_c_bigendian=unknown
15518 # See if we're dealing with a universal compiler.
15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520 /* end confdefs.h. */
15521 #ifndef __APPLE_CC__
15522 not a universal capable compiler
15523 #endif
15524 typedef int dummy;
15525
15526 _ACEOF
15527 if ac_fn_c_try_compile "$LINENO"
15528 then :
15529
15530 # Check for potential -arch flags. It is not universal unless
15531 # there are at least two -arch flags with different values.
15532 ac_arch=
15533 ac_prev=
15534 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15535 if test -n "$ac_prev"; then
15536 case $ac_word in
15537 i?86 | x86_64 | ppc | ppc64)
15538 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15539 ac_arch=$ac_word
15540 else
15541 ac_cv_c_bigendian=universal
15542 break
15543 fi
15544 ;;
15545 esac
15546 ac_prev=
15547 elif test "x$ac_word" = "x-arch"; then
15548 ac_prev=arch
15549 fi
15550 done
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15553 if test $ac_cv_c_bigendian = unknown; then
15554 # See if sys/param.h defines the BYTE_ORDER macro.
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #include <sys/types.h>
15558 #include <sys/param.h>
15559
15560 int
15561 main (void)
15562 {
15563 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15564 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15565 && LITTLE_ENDIAN)
15566 bogus endian macros
15567 #endif
15568
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 if ac_fn_c_try_compile "$LINENO"
15574 then :
15575 # It does; now see whether it defined to BIG_ENDIAN or not.
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15578 #include <sys/types.h>
15579 #include <sys/param.h>
15580
15581 int
15582 main (void)
15583 {
15584 #if BYTE_ORDER != BIG_ENDIAN
15585 not big endian
15586 #endif
15587
15588 ;
15589 return 0;
15590 }
15591 _ACEOF
15592 if ac_fn_c_try_compile "$LINENO"
15593 then :
15594 ac_cv_c_bigendian=yes
15595 else $as_nop
15596 ac_cv_c_bigendian=no
15597 fi
15598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15599 fi
15600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15601 fi
15602 if test $ac_cv_c_bigendian = unknown; then
15603 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 #include <limits.h>
15607
15608 int
15609 main (void)
15610 {
15611 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15612 bogus endian macros
15613 #endif
15614
15615 ;
15616 return 0;
15617 }
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"
15620 then :
15621 # It does; now see whether it defined to _BIG_ENDIAN or not.
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 #include <limits.h>
15625
15626 int
15627 main (void)
15628 {
15629 #ifndef _BIG_ENDIAN
15630 not big endian
15631 #endif
15632
15633 ;
15634 return 0;
15635 }
15636 _ACEOF
15637 if ac_fn_c_try_compile "$LINENO"
15638 then :
15639 ac_cv_c_bigendian=yes
15640 else $as_nop
15641 ac_cv_c_bigendian=no
15642 fi
15643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15644 fi
15645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15646 fi
15647 if test $ac_cv_c_bigendian = unknown; then
15648 # Compile a test program.
15649 if test "$cross_compiling" = yes
15650 then :
15651 # Try to guess by grepping values from an object file.
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h. */
15654 unsigned short int ascii_mm[] =
15655 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15656 unsigned short int ascii_ii[] =
15657 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15658 int use_ascii (int i) {
15659 return ascii_mm[i] + ascii_ii[i];
15660 }
15661 unsigned short int ebcdic_ii[] =
15662 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15663 unsigned short int ebcdic_mm[] =
15664 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15665 int use_ebcdic (int i) {
15666 return ebcdic_mm[i] + ebcdic_ii[i];
15667 }
15668 extern int foo;
15669
15670 int
15671 main (void)
15672 {
15673 return use_ascii (foo) == use_ebcdic (foo);
15674 ;
15675 return 0;
15676 }
15677 _ACEOF
15678 if ac_fn_c_try_compile "$LINENO"
15679 then :
15680 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15681 ac_cv_c_bigendian=yes
15682 fi
15683 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15684 if test "$ac_cv_c_bigendian" = unknown; then
15685 ac_cv_c_bigendian=no
15686 else
15687 # finding both strings is unlikely to happen, but who knows?
15688 ac_cv_c_bigendian=unknown
15689 fi
15690 fi
15691 fi
15692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15693 else $as_nop
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15696 $ac_includes_default
15697 int
15698 main (void)
15699 {
15700
15701 /* Are we little or big endian? From Harbison&Steele. */
15702 union
15703 {
15704 long int l;
15705 char c[sizeof (long int)];
15706 } u;
15707 u.l = 1;
15708 return u.c[sizeof (long int) - 1] == 1;
15709
15710 ;
15711 return 0;
15712 }
15713 _ACEOF
15714 if ac_fn_c_try_run "$LINENO"
15715 then :
15716 ac_cv_c_bigendian=no
15717 else $as_nop
15718 ac_cv_c_bigendian=yes
15719 fi
15720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15721 conftest.$ac_objext conftest.beam conftest.$ac_ext
15722 fi
15723
15724 fi
15725 fi
15726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15727 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
15728 case $ac_cv_c_bigendian in #(
15729 yes)
15730 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
15731 ;; #(
15732 no)
15733 ;; #(
15734 universal)
15735
15736 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15737
15738 ;; #(
15739 *)
15740 as_fn_error $? "unknown endianness
15741 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15742 esac
15743
15744 else
15745
15746 printf "%s\n" "#define DISABLED_ENDIAN_CHECK 1" >>confdefs.h
15747
15748 fi
15749
15750 # The cast to long int works around a bug in the HP C Compiler
15751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15753 # This bug is HP SR number 8606223364.
15754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
15755 printf %s "checking size of unsigned short... " >&6; }
15756 if test ${ac_cv_sizeof_unsigned_short+y}
15757 then :
15758 printf %s "(cached) " >&6
15759 else $as_nop
15760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"
15761 then :
15762
15763 else $as_nop
15764 if test "$ac_cv_type_unsigned_short" = yes; then
15765 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15766 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15767 as_fn_error 77 "cannot compute sizeof (unsigned short)
15768 See \`config.log' for more details" "$LINENO" 5; }
15769 else
15770 ac_cv_sizeof_unsigned_short=0
15771 fi
15772 fi
15773
15774 fi
15775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
15776 printf "%s\n" "$ac_cv_sizeof_unsigned_short" >&6; }
15777
15778
15779
15780 printf "%s\n" "#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short" >>confdefs.h
15781
15782
15783 # The cast to long int works around a bug in the HP C Compiler
15784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15786 # This bug is HP SR number 8606223364.
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
15788 printf %s "checking size of unsigned int... " >&6; }
15789 if test ${ac_cv_sizeof_unsigned_int+y}
15790 then :
15791 printf %s "(cached) " >&6
15792 else $as_nop
15793 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
15794 then :
15795
15796 else $as_nop
15797 if test "$ac_cv_type_unsigned_int" = yes; then
15798 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15799 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15800 as_fn_error 77 "cannot compute sizeof (unsigned int)
15801 See \`config.log' for more details" "$LINENO" 5; }
15802 else
15803 ac_cv_sizeof_unsigned_int=0
15804 fi
15805 fi
15806
15807 fi
15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
15809 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
15810
15811
15812
15813 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
15814
15815
15816 # The cast to long int works around a bug in the HP C Compiler
15817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15819 # This bug is HP SR number 8606223364.
15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
15821 printf %s "checking size of unsigned long... " >&6; }
15822 if test ${ac_cv_sizeof_unsigned_long+y}
15823 then :
15824 printf %s "(cached) " >&6
15825 else $as_nop
15826 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
15827 then :
15828
15829 else $as_nop
15830 if test "$ac_cv_type_unsigned_long" = yes; then
15831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15832 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15833 as_fn_error 77 "cannot compute sizeof (unsigned long)
15834 See \`config.log' for more details" "$LINENO" 5; }
15835 else
15836 ac_cv_sizeof_unsigned_long=0
15837 fi
15838 fi
15839
15840 fi
15841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
15842 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
15843
15844
15845
15846 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
15847
15848
15849 # The cast to long int works around a bug in the HP C Compiler
15850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15852 # This bug is HP SR number 8606223364.
15853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
15854 printf %s "checking size of unsigned long long... " >&6; }
15855 if test ${ac_cv_sizeof_unsigned_long_long+y}
15856 then :
15857 printf %s "(cached) " >&6
15858 else $as_nop
15859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"
15860 then :
15861
15862 else $as_nop
15863 if test "$ac_cv_type_unsigned_long_long" = yes; then
15864 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15865 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15866 as_fn_error 77 "cannot compute sizeof (unsigned long long)
15867 See \`config.log' for more details" "$LINENO" 5; }
15868 else
15869 ac_cv_sizeof_unsigned_long_long=0
15870 fi
15871 fi
15872
15873 fi
15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
15875 printf "%s\n" "$ac_cv_sizeof_unsigned_long_long" >&6; }
15876
15877
15878
15879 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h
15880
15881
15882 # The cast to long int works around a bug in the HP C Compiler
15883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15885 # This bug is HP SR number 8606223364.
15886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
15887 printf %s "checking size of unsigned __int128... " >&6; }
15888 if test ${ac_cv_sizeof_unsigned___int128+y}
15889 then :
15890 printf %s "(cached) " >&6
15891 else $as_nop
15892 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"
15893 then :
15894
15895 else $as_nop
15896 if test "$ac_cv_type_unsigned___int128" = yes; then
15897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15898 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15899 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
15900 See \`config.log' for more details" "$LINENO" 5; }
15901 else
15902 ac_cv_sizeof_unsigned___int128=0
15903 fi
15904 fi
15905
15906 fi
15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
15908 printf "%s\n" "$ac_cv_sizeof_unsigned___int128" >&6; }
15909
15910
15911
15912 printf "%s\n" "#define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128" >>confdefs.h
15913
15914
15915 # The cast to long int works around a bug in the HP C Compiler
15916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15918 # This bug is HP SR number 8606223364.
15919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15920 printf %s "checking size of void *... " >&6; }
15921 if test ${ac_cv_sizeof_void_p+y}
15922 then :
15923 printf %s "(cached) " >&6
15924 else $as_nop
15925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
15926 then :
15927
15928 else $as_nop
15929 if test "$ac_cv_type_void_p" = yes; then
15930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15931 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15932 as_fn_error 77 "cannot compute sizeof (void *)
15933 See \`config.log' for more details" "$LINENO" 5; }
15934 else
15935 ac_cv_sizeof_void_p=0
15936 fi
15937 fi
15938
15939 fi
15940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15941 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
15942
15943
15944
15945 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
15946
15947
15948
15949
15950 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15951 if test "x$ac_cv_type_uintptr_t" = xyes
15952 then :
15953
15954 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
15955
15956 else $as_nop
15957 for ac_type in 'unsigned int' 'unsigned long int' \
15958 'unsigned long long int'; do
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15961 $ac_includes_default
15962 int
15963 main (void)
15964 {
15965 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15966 test_array [0] = 0;
15967 return test_array [0];
15968
15969 ;
15970 return 0;
15971 }
15972 _ACEOF
15973 if ac_fn_c_try_compile "$LINENO"
15974 then :
15975
15976 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
15977
15978 ac_type=
15979 fi
15980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15981 test -z "$ac_type" && break
15982 done
15983 fi
15984
15985
15986
15987 if test "$ac_cv_sizeof_unsigned_short" = "0" \
15988 || test "$ac_cv_sizeof_unsigned_int" = "0" \
15989 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
15990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
15991 printf "%s\n" "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
15992 fi
15993
15994 # Ensure that we have UINT64_C before we bother to check for uint64_t
15995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UINT64_C" >&5
15996 printf %s "checking for UINT64_C... " >&6; }
15997 if test ${gnupg_cv_uint64_c_works+y}
15998 then :
15999 printf %s "(cached) " >&6
16000 else $as_nop
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003 #include <inttypes.h>
16004 int
16005 main (void)
16006 {
16007 uint64_t foo=UINT64_C(42);
16008 ;
16009 return 0;
16010 }
16011 _ACEOF
16012 if ac_fn_c_try_compile "$LINENO"
16013 then :
16014 gnupg_cv_uint64_c_works=yes
16015 else $as_nop
16016 gnupg_cv_uint64_c_works=no
16017 fi
16018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16019 fi
16020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_uint64_c_works" >&5
16021 printf "%s\n" "$gnupg_cv_uint64_c_works" >&6; }
16022 if test "$gnupg_cv_uint64_c_works" = "yes" ; then
16023 # The cast to long int works around a bug in the HP C Compiler
16024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16026 # This bug is HP SR number 8606223364.
16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
16028 printf %s "checking size of uint64_t... " >&6; }
16029 if test ${ac_cv_sizeof_uint64_t+y}
16030 then :
16031 printf %s "(cached) " >&6
16032 else $as_nop
16033 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"
16034 then :
16035
16036 else $as_nop
16037 if test "$ac_cv_type_uint64_t" = yes; then
16038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16039 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16040 as_fn_error 77 "cannot compute sizeof (uint64_t)
16041 See \`config.log' for more details" "$LINENO" 5; }
16042 else
16043 ac_cv_sizeof_uint64_t=0
16044 fi
16045 fi
16046
16047 fi
16048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
16049 printf "%s\n" "$ac_cv_sizeof_uint64_t" >&6; }
16050
16051
16052
16053 printf "%s\n" "#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t" >>confdefs.h
16054
16055
16056 fi
16057
16058 # Do we have any 64-bit data types?
16059 if test "$ac_cv_sizeof_unsigned_int" != "8" \
16060 && test "$ac_cv_sizeof_unsigned_long" != "8" \
16061 && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
16062 && test "$ac_cv_sizeof_uint64_t" != "8"; then
16063 as_fn_error $? "
16064 ***
16065 *** No 64-bit integer type available.
16066 *** It is not possible to build Libgcrypt on this platform.
16067 ***" "$LINENO" 5
16068 fi
16069
16070
16071 # If not specified otherwise, all available algorithms will be
16072 # included.
16073 default_ciphers="$available_ciphers"
16074 default_pubkey_ciphers="$available_pubkey_ciphers"
16075 default_digests="$available_digests"
16076 default_kdfs="$available_kdfs"
16077 # Blacklist MD2 by default
16078 default_digests=`echo $default_digests | sed -e 's/md2//g'`
16079
16080 # Substitutions to set generated files in a Emacs buffer to read-only.
16081 emacs_local_vars_begin='Local Variables:'
16082
16083 emacs_local_vars_read_only='buffer-read-only: t'
16084
16085 emacs_local_vars_end='End:'
16086
16087
16088 ############################
16089 ## Command line switches. ##
16090 ############################
16091
16092 # Implementation of the --enable-ciphers switch.
16093 # Check whether --enable-ciphers was given.
16094 if test ${enable_ciphers+y}
16095 then :
16096 enableval=$enable_ciphers; enabled_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
16097 else $as_nop
16098 enabled_ciphers=""
16099 fi
16100
16101 if test "x$enabled_ciphers" = "x" \
16102 -o "$enabled_ciphers" = "yes" \
16103 -o "$enabled_ciphers" = "no"; then
16104 enabled_ciphers=$default_ciphers
16105 fi
16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which symmetric ciphers to include" >&5
16107 printf %s "checking which symmetric ciphers to include... " >&6; }
16108 for cipher in $enabled_ciphers; do
16109
16110 name=$cipher
16111 list=$available_ciphers
16112 found=0
16113
16114 for n in $list; do
16115 if test "x$name" = "x$n"; then
16116 found=1
16117 fi
16118 done
16119
16120 if test "$found" = "0"; then
16121 as_fn_error $? "unsupported cipher \"$cipher\" specified" "$LINENO" 5
16122 fi
16123 done
16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled_ciphers" >&5
16125 printf "%s\n" "$enabled_ciphers" >&6; }
16126
16127 # Implementation of the --enable-pubkey-ciphers switch.
16128 # Check whether --enable-pubkey-ciphers was given.
16129 if test ${enable_pubkey_ciphers+y}
16130 then :
16131 enableval=$enable_pubkey_ciphers; enabled_pubkey_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
16132 else $as_nop
16133 enabled_pubkey_ciphers=""
16134 fi
16135
16136 if test "x$enabled_pubkey_ciphers" = "x" \
16137 -o "$enabled_pubkey_ciphers" = "yes" \
16138 -o "$enabled_pubkey_ciphers" = "no"; then
16139 enabled_pubkey_ciphers=$default_pubkey_ciphers
16140 fi
16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which public-key ciphers to include" >&5
16142 printf %s "checking which public-key ciphers to include... " >&6; }
16143 for cipher in $enabled_pubkey_ciphers; do
16144
16145 name=$cipher
16146 list=$available_pubkey_ciphers
16147 found=0
16148
16149 for n in $list; do
16150 if test "x$name" = "x$n"; then
16151 found=1
16152 fi
16153 done
16154
16155 if test "$found" = "0"; then
16156 as_fn_error $? "unsupported public-key cipher specified" "$LINENO" 5
16157 fi
16158 done
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled_pubkey_ciphers" >&5
16160 printf "%s\n" "$enabled_pubkey_ciphers" >&6; }
16161
16162 # Implementation of the --enable-digests switch.
16163 # Check whether --enable-digests was given.
16164 if test ${enable_digests+y}
16165 then :
16166 enableval=$enable_digests; enabled_digests=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
16167 else $as_nop
16168 enabled_digests=""
16169 fi
16170
16171 if test "x$enabled_digests" = "x" \
16172 -o "$enabled_digests" = "yes" \
16173 -o "$enabled_digests" = "no"; then
16174 enabled_digests=$default_digests
16175 fi
16176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which message digests to include" >&5
16177 printf %s "checking which message digests to include... " >&6; }
16178 for digest in $enabled_digests; do
16179
16180 name=$digest
16181 list=$available_digests
16182 found=0
16183
16184 for n in $list; do
16185 if test "x$name" = "x$n"; then
16186 found=1
16187 fi
16188 done
16189
16190 if test "$found" = "0"; then
16191 as_fn_error $? "unsupported message digest specified" "$LINENO" 5
16192 fi
16193 done
16194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled_digests" >&5
16195 printf "%s\n" "$enabled_digests" >&6; }
16196
16197 # Implementation of the --enable-kdfs switch.
16198 # Check whether --enable-kdfs was given.
16199 if test ${enable_kdfs+y}
16200 then :
16201 enableval=$enable_kdfs; enabled_kdfs=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
16202 else $as_nop
16203 enabled_kdfs=""
16204 fi
16205
16206 if test "x$enabled_kdfs" = "x" \
16207 -o "$enabled_kdfs" = "yes" \
16208 -o "$enabled_kdfs" = "no"; then
16209 enabled_kdfs=$default_kdfs
16210 fi
16211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which key derivation functions to include" >&5
16212 printf %s "checking which key derivation functions to include... " >&6; }
16213 for kdf in $enabled_kdfs; do
16214
16215 name=$kdf
16216 list=$available_kdfs
16217 found=0
16218
16219 for n in $list; do
16220 if test "x$name" = "x$n"; then
16221 found=1
16222 fi
16223 done
16224
16225 if test "$found" = "0"; then
16226 as_fn_error $? "unsupported key derivation function specified" "$LINENO" 5
16227 fi
16228 done
16229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled_kdfs" >&5
16230 printf "%s\n" "$enabled_kdfs" >&6; }
16231
16232 # Implementation of the --enable-random switch.
16233 # Check whether --enable-random was given.
16234 if test ${enable_random+y}
16235 then :
16236 enableval=$enable_random; random=`echo $enableval | tr 'A-Z' 'a-z'`
16237 fi
16238
16239 if test "x$random" = "x" -o "$random" = "yes" -o "$random" = "no"; then
16240 random=default
16241 fi
16242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which random module to use" >&5
16243 printf %s "checking which random module to use... " >&6; }
16244 if test "$random" != "default" && test "$random" != "auto"; then
16245
16246 name=$random
16247 list=$available_random_modules
16248 found=0
16249
16250 for n in $list; do
16251 if test "x$name" = "x$n"; then
16252 found=1
16253 fi
16254 done
16255
16256 if test "$found" = "0"; then
16257 as_fn_error $? "unsupported random module specified" "$LINENO" 5
16258 fi
16259 fi
16260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $random" >&5
16261 printf "%s\n" "$random" >&6; }
16262
16263 # Implementation of the --disable-dev-random switch.
16264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether use of /dev/random is requested" >&5
16265 printf %s "checking whether use of /dev/random is requested... " >&6; }
16266 # Check whether --enable-dev-random was given.
16267 if test ${enable_dev_random+y}
16268 then :
16269 enableval=$enable_dev_random; try_dev_random=$enableval
16270 else $as_nop
16271 try_dev_random=yes
16272 fi
16273
16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try_dev_random" >&5
16275 printf "%s\n" "$try_dev_random" >&6; }
16276
16277 # Implementation of the --with-egd-socket switch.
16278
16279 # Check whether --with-egd-socket was given.
16280 if test ${with_egd_socket+y}
16281 then :
16282 withval=$with_egd_socket; egd_socket_name="$withval"
16283 else $as_nop
16284 egd_socket_name=""
16285 fi
16286
16287
16288 printf "%s\n" "#define EGD_SOCKET_NAME \"$egd_socket_name\"" >>confdefs.h
16289
16290
16291
16292 # Implementation of --disable-asm.
16293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MPI and cipher assembler modules are requested" >&5
16294 printf %s "checking whether MPI and cipher assembler modules are requested... " >&6; }
16295 # Check whether --enable-asm was given.
16296 if test ${enable_asm+y}
16297 then :
16298 enableval=$enable_asm; try_asm_modules=$enableval
16299 else $as_nop
16300 try_asm_modules=yes
16301 fi
16302
16303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $try_asm_modules" >&5
16304 printf "%s\n" "$try_asm_modules" >&6; }
16305 if test "$try_asm_modules" != yes ; then
16306
16307 printf "%s\n" "#define ASM_DISABLED 1" >>confdefs.h
16308
16309 fi
16310
16311 # Implementation of the --enable-large-data-tests switch.
16312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to run large data tests" >&5
16313 printf %s "checking whether to run large data tests... " >&6; }
16314 # Check whether --enable-large-data-tests was given.
16315 if test ${enable_large_data_tests+y}
16316 then :
16317 enableval=$enable_large_data_tests; large_data_tests=$enableval
16318 else $as_nop
16319 large_data_tests=no
16320 fi
16321
16322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $large_data_tests" >&5
16323 printf "%s\n" "$large_data_tests" >&6; }
16324 RUN_LARGE_DATA_TESTS=$large_data_tests
16325
16326
16327 # Implementation of --enable-force-soft-hwfeatures
16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'soft' HW feature bits are forced on" >&5
16329 printf %s "checking whether 'soft' HW feature bits are forced on... " >&6; }
16330 # Check whether --enable-force-soft-hwfeatures was given.
16331 if test ${enable_force_soft_hwfeatures+y}
16332 then :
16333 enableval=$enable_force_soft_hwfeatures; force_soft_hwfeatures=$enableval
16334 else $as_nop
16335 force_soft_hwfeatures=no
16336 fi
16337
16338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $force_soft_hwfeatures" >&5
16339 printf "%s\n" "$force_soft_hwfeatures" >&6; }
16340
16341
16342 # Implementation of the --with-capabilities switch.
16343 # Check whether we want to use Linux capabilities
16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
16345 printf %s "checking whether use of capabilities is requested... " >&6; }
16346
16347 # Check whether --with-capabilities was given.
16348 if test ${with_capabilities+y}
16349 then :
16350 withval=$with_capabilities; use_capabilities="$withval"
16351 else $as_nop
16352 use_capabilities=no
16353 fi
16354
16355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
16356 printf "%s\n" "$use_capabilities" >&6; }
16357
16358 # Implementation of the --enable-hmac-binary-check.
16359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a HMAC binary check is requested" >&5
16360 printf %s "checking whether a HMAC binary check is requested... " >&6; }
16361 # Check whether --enable-hmac-binary-check was given.
16362 if test ${enable_hmac_binary_check+y}
16363 then :
16364 enableval=$enable_hmac_binary_check; use_hmac_binary_check="$enableval"
16365 else $as_nop
16366 use_hmac_binary_check=no
16367 fi
16368
16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_hmac_binary_check" >&5
16370 printf "%s\n" "$use_hmac_binary_check" >&6; }
16371 if test "$use_hmac_binary_check" = no ; then
16372 DEF_HMAC_BINARY_CHECK=''
16373 else
16374
16375 printf "%s\n" "#define ENABLE_HMAC_BINARY_CHECK 1" >>confdefs.h
16376
16377 if test -n "$ac_tool_prefix"; then
16378 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
16379 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16381 printf %s "checking for $ac_word... " >&6; }
16382 if test ${ac_cv_prog_OBJCOPY+y}
16383 then :
16384 printf %s "(cached) " >&6
16385 else $as_nop
16386 if test -n "$OBJCOPY"; then
16387 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
16388 else
16389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16390 for as_dir in $PATH
16391 do
16392 IFS=$as_save_IFS
16393 case $as_dir in #(((
16394 '') as_dir=./ ;;
16395 */) ;;
16396 *) as_dir=$as_dir/ ;;
16397 esac
16398 for ac_exec_ext in '' $ac_executable_extensions; do
16399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16400 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
16401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16402 break 2
16403 fi
16404 done
16405 done
16406 IFS=$as_save_IFS
16407
16408 fi
16409 fi
16410 OBJCOPY=$ac_cv_prog_OBJCOPY
16411 if test -n "$OBJCOPY"; then
16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
16413 printf "%s\n" "$OBJCOPY" >&6; }
16414 else
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16416 printf "%s\n" "no" >&6; }
16417 fi
16418
16419
16420 fi
16421 if test -z "$ac_cv_prog_OBJCOPY"; then
16422 ac_ct_OBJCOPY=$OBJCOPY
16423 # Extract the first word of "objcopy", so it can be a program name with args.
16424 set dummy objcopy; ac_word=$2
16425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16426 printf %s "checking for $ac_word... " >&6; }
16427 if test ${ac_cv_prog_ac_ct_OBJCOPY+y}
16428 then :
16429 printf %s "(cached) " >&6
16430 else $as_nop
16431 if test -n "$ac_ct_OBJCOPY"; then
16432 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
16433 else
16434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16435 for as_dir in $PATH
16436 do
16437 IFS=$as_save_IFS
16438 case $as_dir in #(((
16439 '') as_dir=./ ;;
16440 */) ;;
16441 *) as_dir=$as_dir/ ;;
16442 esac
16443 for ac_exec_ext in '' $ac_executable_extensions; do
16444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16445 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
16446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16447 break 2
16448 fi
16449 done
16450 done
16451 IFS=$as_save_IFS
16452
16453 fi
16454 fi
16455 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
16456 if test -n "$ac_ct_OBJCOPY"; then
16457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
16458 printf "%s\n" "$ac_ct_OBJCOPY" >&6; }
16459 else
16460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16461 printf "%s\n" "no" >&6; }
16462 fi
16463
16464 if test "x$ac_ct_OBJCOPY" = x; then
16465 OBJCOPY=""
16466 else
16467 case $cross_compiling:$ac_tool_warned in
16468 yes:)
16469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16470 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16471 ac_tool_warned=yes ;;
16472 esac
16473 OBJCOPY=$ac_ct_OBJCOPY
16474 fi
16475 else
16476 OBJCOPY="$ac_cv_prog_OBJCOPY"
16477 fi
16478
16479 if test -n "$ac_tool_prefix"; then
16480 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
16481 set dummy ${ac_tool_prefix}readelf; ac_word=$2
16482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16483 printf %s "checking for $ac_word... " >&6; }
16484 if test ${ac_cv_prog_READELF+y}
16485 then :
16486 printf %s "(cached) " >&6
16487 else $as_nop
16488 if test -n "$READELF"; then
16489 ac_cv_prog_READELF="$READELF" # Let the user override the test.
16490 else
16491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16492 for as_dir in $PATH
16493 do
16494 IFS=$as_save_IFS
16495 case $as_dir in #(((
16496 '') as_dir=./ ;;
16497 */) ;;
16498 *) as_dir=$as_dir/ ;;
16499 esac
16500 for ac_exec_ext in '' $ac_executable_extensions; do
16501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16502 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
16503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16504 break 2
16505 fi
16506 done
16507 done
16508 IFS=$as_save_IFS
16509
16510 fi
16511 fi
16512 READELF=$ac_cv_prog_READELF
16513 if test -n "$READELF"; then
16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
16515 printf "%s\n" "$READELF" >&6; }
16516 else
16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16518 printf "%s\n" "no" >&6; }
16519 fi
16520
16521
16522 fi
16523 if test -z "$ac_cv_prog_READELF"; then
16524 ac_ct_READELF=$READELF
16525 # Extract the first word of "readelf", so it can be a program name with args.
16526 set dummy readelf; ac_word=$2
16527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16528 printf %s "checking for $ac_word... " >&6; }
16529 if test ${ac_cv_prog_ac_ct_READELF+y}
16530 then :
16531 printf %s "(cached) " >&6
16532 else $as_nop
16533 if test -n "$ac_ct_READELF"; then
16534 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
16535 else
16536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16537 for as_dir in $PATH
16538 do
16539 IFS=$as_save_IFS
16540 case $as_dir in #(((
16541 '') as_dir=./ ;;
16542 */) ;;
16543 *) as_dir=$as_dir/ ;;
16544 esac
16545 for ac_exec_ext in '' $ac_executable_extensions; do
16546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16547 ac_cv_prog_ac_ct_READELF="readelf"
16548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16549 break 2
16550 fi
16551 done
16552 done
16553 IFS=$as_save_IFS
16554
16555 fi
16556 fi
16557 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
16558 if test -n "$ac_ct_READELF"; then
16559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
16560 printf "%s\n" "$ac_ct_READELF" >&6; }
16561 else
16562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563 printf "%s\n" "no" >&6; }
16564 fi
16565
16566 if test "x$ac_ct_READELF" = x; then
16567 READELF=""
16568 else
16569 case $cross_compiling:$ac_tool_warned in
16570 yes:)
16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16573 ac_tool_warned=yes ;;
16574 esac
16575 READELF=$ac_ct_READELF
16576 fi
16577 else
16578 READELF="$ac_cv_prog_READELF"
16579 fi
16580
16581 if test "$use_hmac_binary_check" != yes ; then
16582 DEF_HMAC_BINARY_CHECK=-DKEY_FOR_BINARY_CHECK="'\"$use_hmac_binary_check\"'"
16583 fi
16584 fi
16585 if test "x$use_hmac_binary_check" != xno; then
16586 USE_HMAC_BINARY_CHECK_TRUE=
16587 USE_HMAC_BINARY_CHECK_FALSE='#'
16588 else
16589 USE_HMAC_BINARY_CHECK_TRUE='#'
16590 USE_HMAC_BINARY_CHECK_FALSE=
16591 fi
16592
16593
16594
16595 # Implementation of the --with-fips-module-version.
16596
16597 # Check whether --with-fips-module-version was given.
16598 if test ${with_fips_module_version+y}
16599 then :
16600 withval=$with_fips_module_version; fips_module_version="$withval"
16601 else $as_nop
16602 fips_module_version=""
16603 fi
16604
16605
16606 printf "%s\n" "#define FIPS_MODULE_VERSION \"$fips_module_version\"" >>confdefs.h
16607
16608
16609 # Implementation of the --disable-jent-support switch.
16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether jitter entropy support is requested" >&5
16611 printf %s "checking whether jitter entropy support is requested... " >&6; }
16612 # Check whether --enable-jent-support was given.
16613 if test ${enable_jent_support+y}
16614 then :
16615 enableval=$enable_jent_support; jentsupport=$enableval
16616 else $as_nop
16617 jentsupport=yes
16618 fi
16619
16620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $jentsupport" >&5
16621 printf "%s\n" "$jentsupport" >&6; }
16622
16623 # Implementation of the --disable-padlock-support switch.
16624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether padlock support is requested" >&5
16625 printf %s "checking whether padlock support is requested... " >&6; }
16626 # Check whether --enable-padlock-support was given.
16627 if test ${enable_padlock_support+y}
16628 then :
16629 enableval=$enable_padlock_support; padlocksupport=$enableval
16630 else $as_nop
16631 padlocksupport=yes
16632 fi
16633
16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $padlocksupport" >&5
16635 printf "%s\n" "$padlocksupport" >&6; }
16636
16637 # Implementation of the --disable-aesni-support switch.
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether AESNI support is requested" >&5
16639 printf %s "checking whether AESNI support is requested... " >&6; }
16640 # Check whether --enable-aesni-support was given.
16641 if test ${enable_aesni_support+y}
16642 then :
16643 enableval=$enable_aesni_support; aesnisupport=$enableval
16644 else $as_nop
16645 aesnisupport=yes
16646 fi
16647
16648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $aesnisupport" >&5
16649 printf "%s\n" "$aesnisupport" >&6; }
16650
16651 # Implementation of the --disable-shaext-support switch.
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SHAEXT support is requested" >&5
16653 printf %s "checking whether SHAEXT support is requested... " >&6; }
16654 # Check whether --enable-shaext-support was given.
16655 if test ${enable_shaext_support+y}
16656 then :
16657 enableval=$enable_shaext_support; shaextsupport=$enableval
16658 else $as_nop
16659 shaextsupport=yes
16660 fi
16661
16662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $shaextsupport" >&5
16663 printf "%s\n" "$shaextsupport" >&6; }
16664
16665 # Implementation of the --disable-pclmul-support switch.
16666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PCLMUL support is requested" >&5
16667 printf %s "checking whether PCLMUL support is requested... " >&6; }
16668 # Check whether --enable-pclmul-support was given.
16669 if test ${enable_pclmul_support+y}
16670 then :
16671 enableval=$enable_pclmul_support; pclmulsupport=$enableval
16672 else $as_nop
16673 pclmulsupport=yes
16674 fi
16675
16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pclmulsupport" >&5
16677 printf "%s\n" "$pclmulsupport" >&6; }
16678
16679 # Implementation of the --disable-sse41-support switch.
16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SSE4.1 support is requested" >&5
16681 printf %s "checking whether SSE4.1 support is requested... " >&6; }
16682 # Check whether --enable-sse41-support was given.
16683 if test ${enable_sse41_support+y}
16684 then :
16685 enableval=$enable_sse41_support; sse41support=$enableval
16686 else $as_nop
16687 sse41support=yes
16688 fi
16689
16690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sse41support" >&5
16691 printf "%s\n" "$sse41support" >&6; }
16692
16693 # Implementation of the --disable-drng-support switch.
16694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DRNG support is requested" >&5
16695 printf %s "checking whether DRNG support is requested... " >&6; }
16696 # Check whether --enable-drng-support was given.
16697 if test ${enable_drng_support+y}
16698 then :
16699 enableval=$enable_drng_support; drngsupport=$enableval
16700 else $as_nop
16701 drngsupport=yes
16702 fi
16703
16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $drngsupport" >&5
16705 printf "%s\n" "$drngsupport" >&6; }
16706
16707 # Implementation of the --disable-avx-support switch.
16708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether AVX support is requested" >&5
16709 printf %s "checking whether AVX support is requested... " >&6; }
16710 # Check whether --enable-avx-support was given.
16711 if test ${enable_avx_support+y}
16712 then :
16713 enableval=$enable_avx_support; avxsupport=$enableval
16714 else $as_nop
16715 avxsupport=yes
16716 fi
16717
16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $avxsupport" >&5
16719 printf "%s\n" "$avxsupport" >&6; }
16720
16721 # Implementation of the --disable-avx2-support switch.
16722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether AVX2 support is requested" >&5
16723 printf %s "checking whether AVX2 support is requested... " >&6; }
16724 # Check whether --enable-avx2-support was given.
16725 if test ${enable_avx2_support+y}
16726 then :
16727 enableval=$enable_avx2_support; avx2support=$enableval
16728 else $as_nop
16729 avx2support=yes
16730 fi
16731
16732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $avx2support" >&5
16733 printf "%s\n" "$avx2support" >&6; }
16734
16735 # Implementation of the --disable-avx512-support switch.
16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether AVX512 support is requested" >&5
16737 printf %s "checking whether AVX512 support is requested... " >&6; }
16738 # Check whether --enable-avx512-support was given.
16739 if test ${enable_avx512_support+y}
16740 then :
16741 enableval=$enable_avx512_support; avx512support=$enableval
16742 else $as_nop
16743 avx512support=yes
16744 fi
16745
16746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $avx512support" >&5
16747 printf "%s\n" "$avx512support" >&6; }
16748
16749 # Implementation of the --disable-gfni-support switch.
16750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GFNI support is requested" >&5
16751 printf %s "checking whether GFNI support is requested... " >&6; }
16752 # Check whether --enable-gfni-support was given.
16753 if test ${enable_gfni_support+y}
16754 then :
16755 enableval=$enable_gfni_support; gfnisupport=$enableval
16756 else $as_nop
16757 gfnisupport=yes
16758 fi
16759
16760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gfnisupport" >&5
16761 printf "%s\n" "$gfnisupport" >&6; }
16762
16763 # Implementation of the --disable-neon-support switch.
16764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NEON support is requested" >&5
16765 printf %s "checking whether NEON support is requested... " >&6; }
16766 # Check whether --enable-neon-support was given.
16767 if test ${enable_neon_support+y}
16768 then :
16769 enableval=$enable_neon_support; neonsupport=$enableval
16770 else $as_nop
16771 neonsupport=yes
16772 fi
16773
16774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $neonsupport" >&5
16775 printf "%s\n" "$neonsupport" >&6; }
16776
16777 # Implementation of the --disable-arm-crypto-support switch.
16778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ARMv8 Crypto Extension support is requested" >&5
16779 printf %s "checking whether ARMv8 Crypto Extension support is requested... " >&6; }
16780 # Check whether --enable-arm-crypto-support was given.
16781 if test ${enable_arm_crypto_support+y}
16782 then :
16783 enableval=$enable_arm_crypto_support; armcryptosupport=$enableval
16784 else $as_nop
16785 armcryptosupport=yes
16786 fi
16787
16788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $armcryptosupport" >&5
16789 printf "%s\n" "$armcryptosupport" >&6; }
16790
16791 # Implementation of the --disable-sve-support switch.
16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SVE support is requested" >&5
16793 printf %s "checking whether SVE support is requested... " >&6; }
16794 # Check whether --enable-sve-support was given.
16795 if test ${enable_sve_support+y}
16796 then :
16797 enableval=$enable_sve_support; svesupport=$enableval
16798 else $as_nop
16799 svesupport=yes
16800 fi
16801
16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $svesupport" >&5
16803 printf "%s\n" "$svesupport" >&6; }
16804
16805 # Implementation of the --disable-sve2-support switch.
16806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SVE2 support is requested" >&5
16807 printf %s "checking whether SVE2 support is requested... " >&6; }
16808 # Check whether --enable-sve2-support was given.
16809 if test ${enable_sve2_support+y}
16810 then :
16811 enableval=$enable_sve2_support; sve2support=$enableval
16812 else $as_nop
16813 sve2support=yes
16814 fi
16815
16816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sve2support" >&5
16817 printf "%s\n" "$sve2support" >&6; }
16818
16819 # Implementation of the --disable-ppc-crypto-support switch.
16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PPC crypto support is requested" >&5
16821 printf %s "checking whether PPC crypto support is requested... " >&6; }
16822 # Check whether --enable-ppc-crypto-support was given.
16823 if test ${enable_ppc_crypto_support+y}
16824 then :
16825 enableval=$enable_ppc_crypto_support; ppccryptosupport=$enableval
16826 else $as_nop
16827 ppccryptosupport=yes
16828 fi
16829
16830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ppccryptosupport" >&5
16831 printf "%s\n" "$ppccryptosupport" >&6; }
16832
16833 # Implementation of the --disable-O-flag-munging switch.
16834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a -O flag munging is requested" >&5
16835 printf %s "checking whether a -O flag munging is requested... " >&6; }
16836 # Check whether --enable-O-flag-munging was given.
16837 if test ${enable_O_flag_munging+y}
16838 then :
16839 enableval=$enable_O_flag_munging; enable_o_flag_munging=$enableval
16840 else $as_nop
16841 enable_o_flag_munging=yes
16842 fi
16843
16844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_o_flag_munging" >&5
16845 printf "%s\n" "$enable_o_flag_munging" >&6; }
16846 if test "$enable_o_flag_munging" = "yes"; then
16847 ENABLE_O_FLAG_MUNGING_TRUE=
16848 ENABLE_O_FLAG_MUNGING_FALSE='#'
16849 else
16850 ENABLE_O_FLAG_MUNGING_TRUE='#'
16851 ENABLE_O_FLAG_MUNGING_FALSE=
16852 fi
16853
16854
16855 # Implementation of the --disable-instrumentation-munging switch.
16856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a instrumentation (-fprofile, -fsanitize) munging is requested" >&5
16857 printf %s "checking whether a instrumentation (-fprofile, -fsanitize) munging is requested... " >&6; }
16858 # Check whether --enable-instrumentation-munging was given.
16859 if test ${enable_instrumentation_munging+y}
16860 then :
16861 enableval=$enable_instrumentation_munging; enable_instrumentation_munging=$enableval
16862 else $as_nop
16863 enable_instrumentation_munging=yes
16864 fi
16865
16866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_instrumentation_munging" >&5
16867 printf "%s\n" "$enable_instrumentation_munging" >&6; }
16868 if test "$enable_instrumentation_munging" = "yes"; then
16869 ENABLE_INSTRUMENTATION_MUNGING_TRUE=
16870 ENABLE_INSTRUMENTATION_MUNGING_FALSE='#'
16871 else
16872 ENABLE_INSTRUMENTATION_MUNGING_TRUE='#'
16873 ENABLE_INSTRUMENTATION_MUNGING_FALSE=
16874 fi
16875
16876
16877 # Implementation of the --disable-amd64-as-feature-detection switch.
16878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable AMD64 as(1) feature detection" >&5
16879 printf %s "checking whether to enable AMD64 as(1) feature detection... " >&6; }
16880 # Check whether --enable-amd64-as-feature-detection was given.
16881 if test ${enable_amd64_as_feature_detection+y}
16882 then :
16883 enableval=$enable_amd64_as_feature_detection; amd64_as_feature_detection=$enableval
16884 else $as_nop
16885 amd64_as_feature_detection=yes
16886 fi
16887
16888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $amd64_as_feature_detection" >&5
16889 printf "%s\n" "$amd64_as_feature_detection" >&6; }
16890
16891
16892
16893 printf "%s\n" "#define PRINTABLE_OS_NAME \"$PRINTABLE_OS_NAME\"" >>confdefs.h
16894
16895
16896 # For some systems we know that we have ld_version scripts.
16897 # Use it then as default.
16898 have_ld_version_script=no
16899 case "${host}" in
16900 *-*-linux*)
16901 have_ld_version_script=yes
16902 ;;
16903 *-*-gnu*)
16904 have_ld_version_script=yes
16905 ;;
16906 esac
16907 # Check whether --enable-ld-version-script was given.
16908 if test ${enable_ld_version_script+y}
16909 then :
16910 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
16911 else $as_nop
16912 :
16913 fi
16914
16915 if test "$have_ld_version_script" = "yes"; then
16916 HAVE_LD_VERSION_SCRIPT_TRUE=
16917 HAVE_LD_VERSION_SCRIPT_FALSE='#'
16918 else
16919 HAVE_LD_VERSION_SCRIPT_TRUE='#'
16920 HAVE_LD_VERSION_SCRIPT_FALSE=
16921 fi
16922
16923
16924
16925 printf "%s\n" "#define NAME_OF_DEV_RANDOM \"$NAME_OF_DEV_RANDOM\"" >>confdefs.h
16926
16927
16928 printf "%s\n" "#define NAME_OF_DEV_URANDOM \"$NAME_OF_DEV_URANDOM\"" >>confdefs.h
16929
16930
16931 #
16932 # Specify how we support our local modification of libtool for Windows
16933 # 64-bit. Options are:
16934 #
16935 # (1) apply: when appying patch fails, it results failure of entire build
16936 # (2) never: never apply the patch (no try)
16937 # (3) try: use patched if it goes well, use original if fails
16938 #
16939
16940 # Check whether --with-libtool-modification was given.
16941 if test ${with_libtool_modification+y}
16942 then :
16943 withval=$with_libtool_modification; build_libtool_modification=$withval
16944 else $as_nop
16945 build_libtool_modification=never
16946 fi
16947
16948
16949 #
16950 # Apply a patch (locally maintained one of ours) to libtool
16951 #
16952 case $host in
16953 x86_64-*mingw32*)
16954 ac_config_commands="$ac_config_commands libtool-patch"
16955
16956 ;;
16957 *)
16958 ;;
16959 esac
16960
16961 ###############################
16962 #### Checks for libraries. ####
16963 ###############################
16964
16965 #
16966 # gpg-error is required.
16967 #
16968 gpg_error_config_prefix=""
16969
16970 # Check whether --with-libgpg-error-prefix was given.
16971 if test ${with_libgpg_error_prefix+y}
16972 then :
16973 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
16974 fi
16975
16976
16977
16978 # Check whether --with-gpg-error-prefix was given.
16979 if test ${with_gpg_error_prefix+y}
16980 then :
16981 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
16982 fi
16983
16984
16985 if test x"${GPG_ERROR_CONFIG}" = x ; then
16986 if test x"${gpg_error_config_prefix}" != x ; then
16987 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
16988 else
16989 case "${SYSROOT}" in
16990 /*)
16991 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
16992 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
16993 fi
16994 ;;
16995 '')
16996 ;;
16997 *)
16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
16999 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
17000 ;;
17001 esac
17002 fi
17003 fi
17004
17005 # Extract the first word of "gpg-error-config", so it can be a program name with args.
17006 set dummy gpg-error-config; ac_word=$2
17007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17008 printf %s "checking for $ac_word... " >&6; }
17009 if test ${ac_cv_path_GPG_ERROR_CONFIG+y}
17010 then :
17011 printf %s "(cached) " >&6
17012 else $as_nop
17013 case $GPG_ERROR_CONFIG in
17014 [\\/]* | ?:[\\/]*)
17015 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
17016 ;;
17017 *)
17018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17019 for as_dir in $PATH
17020 do
17021 IFS=$as_save_IFS
17022 case $as_dir in #(((
17023 '') as_dir=./ ;;
17024 */) ;;
17025 *) as_dir=$as_dir/ ;;
17026 esac
17027 for ac_exec_ext in '' $ac_executable_extensions; do
17028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17029 ac_cv_path_GPG_ERROR_CONFIG="$as_dir$ac_word$ac_exec_ext"
17030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17031 break 2
17032 fi
17033 done
17034 done
17035 IFS=$as_save_IFS
17036
17037 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
17038 ;;
17039 esac
17040 fi
17041 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
17042 if test -n "$GPG_ERROR_CONFIG"; then
17043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
17044 printf "%s\n" "$GPG_ERROR_CONFIG" >&6; }
17045 else
17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17047 printf "%s\n" "no" >&6; }
17048 fi
17049
17050
17051
17052 # Extract the first word of "gpgrt-config", so it can be a program name with args.
17053 set dummy gpgrt-config; ac_word=$2
17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17055 printf %s "checking for $ac_word... " >&6; }
17056 if test ${ac_cv_path_GPGRT_CONFIG+y}
17057 then :
17058 printf %s "(cached) " >&6
17059 else $as_nop
17060 case $GPGRT_CONFIG in
17061 [\\/]* | ?:[\\/]*)
17062 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
17063 ;;
17064 *)
17065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17066 as_dummy="$prefix/bin:$PATH"
17067 for as_dir in $as_dummy
17068 do
17069 IFS=$as_save_IFS
17070 case $as_dir in #(((
17071 '') as_dir=./ ;;
17072 */) ;;
17073 *) as_dir=$as_dir/ ;;
17074 esac
17075 for ac_exec_ext in '' $ac_executable_extensions; do
17076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17077 ac_cv_path_GPGRT_CONFIG="$as_dir$ac_word$ac_exec_ext"
17078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17079 break 2
17080 fi
17081 done
17082 done
17083 IFS=$as_save_IFS
17084
17085 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
17086 ;;
17087 esac
17088 fi
17089 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
17090 if test -n "$GPGRT_CONFIG"; then
17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
17092 printf "%s\n" "$GPGRT_CONFIG" >&6; }
17093 else
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 printf "%s\n" "no" >&6; }
17096 fi
17097
17098
17099 if test "$GPGRT_CONFIG" != "no"; then
17100 # Determine gpgrt_libdir
17101 #
17102 # Get the prefix of gpgrt-config assuming it's something like:
17103 # <PREFIX>/bin/gpgrt-config
17104 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
17105 possible_libdir1=${gpgrt_prefix}/lib
17106 # Determine by using system libdir-format with CC, it's like:
17107 # Normal style: /usr/lib
17108 # GNU cross style: /usr/<triplet>/lib
17109 # Debian style: /usr/lib/<multiarch-name>
17110 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
17111 # It is assumed that CC is specified to the one of host on cross build.
17112 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
17113 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
17114 /g;p;}"); then
17115 # From the output of -print-search-dirs, select valid pkgconfig dirs.
17116 libdir_candidates=$(for dir in $libdir_candidates; do
17117 if p=$(cd $dir 2>/dev/null && pwd); then
17118 test -d "$p/pkgconfig" && echo $p;
17119 fi
17120 done)
17121
17122 for possible_libdir0 in $libdir_candidates; do
17123 # possible_libdir0:
17124 # Fallback candidate, the one of system-installed (by $CC)
17125 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
17126 # possible_libdir1:
17127 # Another candidate, user-locally-installed
17128 # (<gpgrt_prefix>/lib)
17129 # possible_libdir2
17130 # Most preferred
17131 # (<gpgrt_prefix>/<triplet>/lib,
17132 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
17133 if test "${possible_libdir0##*/}" = "lib"; then
17134 possible_prefix0=${possible_libdir0%/lib}
17135 possible_prefix0_triplet=${possible_prefix0##*/}
17136 if test -z "$possible_prefix0_triplet"; then
17137 continue
17138 fi
17139 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
17140 else
17141 possible_prefix0=${possible_libdir0%%/lib*}
17142 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
17143 fi
17144 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
17145 gpgrt_libdir=${possible_libdir2}
17146 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
17147 gpgrt_libdir=${possible_libdir1}
17148 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
17149 gpgrt_libdir=${possible_libdir0}
17150 fi
17151 if test -n "$gpgrt_libdir"; then break; fi
17152 done
17153 fi
17154 if test -z "$gpgrt_libdir"; then
17155 # No valid pkgconfig dir in any of the system directories, fallback
17156 gpgrt_libdir=${possible_libdir1}
17157 fi
17158 else
17159 unset GPGRT_CONFIG
17160 fi
17161
17162 if test -n "$gpgrt_libdir"; then
17163 # Add the --libdir option to GPGRT_CONFIG
17164 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
17165 # Make sure if gpgrt-config really works, by testing config gpg-error
17166 if ! $GPGRT_CONFIG gpg-error --exists; then
17167 # If it doesn't work, clear the GPGRT_CONFIG variable.
17168 unset GPGRT_CONFIG
17169 fi
17170 else
17171 # GPGRT_CONFIG found but no suitable dir for --libdir found.
17172 # This is a failure. Clear the GPGRT_CONFIG variable.
17173 unset GPGRT_CONFIG
17174 fi
17175
17176 if test x"$GPGRT_CONFIG" != x && test "$GPGRT_CONFIG" != "no"; then
17177 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
17179 printf "%s\n" "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
17180 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
17181 elif test x"$GPG_ERROR_CONFIG" != x && test "$GPG_ERROR_CONFIG" != "no"; then
17182 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
17183 else
17184 gpg_error_config_version="0.0"
17185 fi
17186
17187 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
17188 ok=no
17189 if test "$GPG_ERROR_CONFIG" != "no"; then
17190 req_major=`echo $min_gpg_error_version | \
17191 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
17192 req_minor=`echo $min_gpg_error_version | \
17193 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
17194 major=`echo $gpg_error_config_version | \
17195 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
17196 minor=`echo $gpg_error_config_version | \
17197 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
17198 if test "$major" -gt "$req_major"; then
17199 ok=yes
17200 else
17201 if test "$major" -eq "$req_major"; then
17202 if test "$minor" -ge "$req_minor"; then
17203 ok=yes
17204 fi
17205 fi
17206 fi
17207 fi
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
17209 printf %s "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
17210 if test $ok = yes; then
17211 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
17212 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
17213 if test -z "$GPGRT_CONFIG"; then
17214 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
17215 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
17216 else
17217 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
17218 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
17219 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
17220 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
17221 fi
17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
17223 printf "%s\n" "yes ($gpg_error_config_version)" >&6; }
17224 :
17225 if test -z "$GPGRT_CONFIG"; then
17226 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
17227 else
17228 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
17229 fi
17230 if test x"$gpg_error_config_host" != xnone ; then
17231 if test x"$gpg_error_config_host" != x"$host" ; then
17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
17233 ***
17234 *** The config script \"$GPG_ERROR_CONFIG\" was
17235 *** built for $gpg_error_config_host and thus may not match the
17236 *** used host $host.
17237 *** You may want to use the configure option --with-libgpg-error-prefix
17238 *** to specify a matching config script or use \$SYSROOT.
17239 ***" >&5
17240 printf "%s\n" "$as_me: WARNING:
17241 ***
17242 *** The config script \"$GPG_ERROR_CONFIG\" was
17243 *** built for $gpg_error_config_host and thus may not match the
17244 *** used host $host.
17245 *** You may want to use the configure option --with-libgpg-error-prefix
17246 *** to specify a matching config script or use \$SYSROOT.
17247 ***" >&2;}
17248 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
17249 fi
17250 fi
17251 else
17252 GPG_ERROR_CFLAGS=""
17253 GPG_ERROR_LIBS=""
17254 GPG_ERROR_MT_CFLAGS=""
17255 GPG_ERROR_MT_LIBS=""
17256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17257 printf "%s\n" "no" >&6; }
17258 :
17259 fi
17260
17261
17262
17263
17264
17265 if test "x$GPG_ERROR_LIBS" = "x"; then
17266 as_fn_error $? "libgpg-error is needed.
17267 See https://gnupg.org/ftp/gcrypt/gpgrt/ ." "$LINENO" 5
17268 fi
17269
17270
17271 printf "%s\n" "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GCRYPT" >>confdefs.h
17272
17273
17274 if test -n "$GPGRT_CONFIG" \
17275 && test "$ac_cv_path_GPG_ERROR_CONFIG" = no; then
17276 USE_GPGRT_CONFIG_TRUE=
17277 USE_GPGRT_CONFIG_FALSE='#'
17278 else
17279 USE_GPGRT_CONFIG_TRUE='#'
17280 USE_GPGRT_CONFIG_FALSE=
17281 fi
17282
17283
17284 #
17285 # Check whether pthreads is available
17286 #
17287 if test "$have_w32_system" != yes && test "$have_pthread" != yes; then
17288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17289 printf %s "checking for pthread_create in -lpthread... " >&6; }
17290 if test ${ac_cv_lib_pthread_pthread_create+y}
17291 then :
17292 printf %s "(cached) " >&6
17293 else $as_nop
17294 ac_check_lib_save_LIBS=$LIBS
17295 LIBS="-lpthread $LIBS"
17296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297 /* end confdefs.h. */
17298
17299 /* Override any GCC internal prototype to avoid an error.
17300 Use char because int might match the return type of a GCC
17301 builtin and then its argument prototype would still apply. */
17302 char pthread_create ();
17303 int
17304 main (void)
17305 {
17306 return pthread_create ();
17307 ;
17308 return 0;
17309 }
17310 _ACEOF
17311 if ac_fn_c_try_link "$LINENO"
17312 then :
17313 ac_cv_lib_pthread_pthread_create=yes
17314 else $as_nop
17315 ac_cv_lib_pthread_pthread_create=no
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17318 conftest$ac_exeext conftest.$ac_ext
17319 LIBS=$ac_check_lib_save_LIBS
17320 fi
17321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17322 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
17323 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
17324 then :
17325 have_pthread=yes
17326 fi
17327
17328 fi
17329 if test "$have_pthread" = yes; then
17330
17331 printf "%s\n" "#define HAVE_PTHREAD 1 " >>confdefs.h
17332
17333 fi
17334
17335 # Solaris needs -lsocket and -lnsl. Unisys system includes
17336 # gethostbyname in libsocket but needs libnsl for socket.
17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
17338 printf %s "checking for library containing setsockopt... " >&6; }
17339 if test ${ac_cv_search_setsockopt+y}
17340 then :
17341 printf %s "(cached) " >&6
17342 else $as_nop
17343 ac_func_search_save_LIBS=$LIBS
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17346
17347 /* Override any GCC internal prototype to avoid an error.
17348 Use char because int might match the return type of a GCC
17349 builtin and then its argument prototype would still apply. */
17350 char setsockopt ();
17351 int
17352 main (void)
17353 {
17354 return setsockopt ();
17355 ;
17356 return 0;
17357 }
17358 _ACEOF
17359 for ac_lib in '' socket
17360 do
17361 if test -z "$ac_lib"; then
17362 ac_res="none required"
17363 else
17364 ac_res=-l$ac_lib
17365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17366 fi
17367 if ac_fn_c_try_link "$LINENO"
17368 then :
17369 ac_cv_search_setsockopt=$ac_res
17370 fi
17371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17372 conftest$ac_exeext
17373 if test ${ac_cv_search_setsockopt+y}
17374 then :
17375 break
17376 fi
17377 done
17378 if test ${ac_cv_search_setsockopt+y}
17379 then :
17380
17381 else $as_nop
17382 ac_cv_search_setsockopt=no
17383 fi
17384 rm conftest.$ac_ext
17385 LIBS=$ac_func_search_save_LIBS
17386 fi
17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
17388 printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
17389 ac_res=$ac_cv_search_setsockopt
17390 if test "$ac_res" != no
17391 then :
17392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17393
17394 else $as_nop
17395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
17396 printf %s "checking for library containing setsockopt... " >&6; }
17397 if test ${ac_cv_search_setsockopt+y}
17398 then :
17399 printf %s "(cached) " >&6
17400 else $as_nop
17401 ac_func_search_save_LIBS=$LIBS
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17404
17405 /* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17408 char setsockopt ();
17409 int
17410 main (void)
17411 {
17412 return setsockopt ();
17413 ;
17414 return 0;
17415 }
17416 _ACEOF
17417 for ac_lib in '' socket
17418 do
17419 if test -z "$ac_lib"; then
17420 ac_res="none required"
17421 else
17422 ac_res=-l$ac_lib
17423 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
17424 fi
17425 if ac_fn_c_try_link "$LINENO"
17426 then :
17427 ac_cv_search_setsockopt=$ac_res
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17430 conftest$ac_exeext
17431 if test ${ac_cv_search_setsockopt+y}
17432 then :
17433 break
17434 fi
17435 done
17436 if test ${ac_cv_search_setsockopt+y}
17437 then :
17438
17439 else $as_nop
17440 ac_cv_search_setsockopt=no
17441 fi
17442 rm conftest.$ac_ext
17443 LIBS=$ac_func_search_save_LIBS
17444 fi
17445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
17446 printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
17447 ac_res=$ac_cv_search_setsockopt
17448 if test "$ac_res" != no
17449 then :
17450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17451
17452 fi
17453
17454 fi
17455
17456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
17457 printf %s "checking for library containing setsockopt... " >&6; }
17458 if test ${ac_cv_search_setsockopt+y}
17459 then :
17460 printf %s "(cached) " >&6
17461 else $as_nop
17462 ac_func_search_save_LIBS=$LIBS
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 char setsockopt ();
17470 int
17471 main (void)
17472 {
17473 return setsockopt ();
17474 ;
17475 return 0;
17476 }
17477 _ACEOF
17478 for ac_lib in '' nsl
17479 do
17480 if test -z "$ac_lib"; then
17481 ac_res="none required"
17482 else
17483 ac_res=-l$ac_lib
17484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17485 fi
17486 if ac_fn_c_try_link "$LINENO"
17487 then :
17488 ac_cv_search_setsockopt=$ac_res
17489 fi
17490 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17491 conftest$ac_exeext
17492 if test ${ac_cv_search_setsockopt+y}
17493 then :
17494 break
17495 fi
17496 done
17497 if test ${ac_cv_search_setsockopt+y}
17498 then :
17499
17500 else $as_nop
17501 ac_cv_search_setsockopt=no
17502 fi
17503 rm conftest.$ac_ext
17504 LIBS=$ac_func_search_save_LIBS
17505 fi
17506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
17507 printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
17508 ac_res=$ac_cv_search_setsockopt
17509 if test "$ac_res" != no
17510 then :
17511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17512
17513 fi
17514
17515
17516 ##################################
17517 #### Checks for header files. ####
17518 ##################################
17519
17520 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17521 if test "x$ac_cv_header_unistd_h" = xyes
17522 then :
17523 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17524
17525 fi
17526 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
17527 if test "x$ac_cv_header_sys_auxv_h" = xyes
17528 then :
17529 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
17530
17531 fi
17532 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
17533 if test "x$ac_cv_header_sys_random_h" = xyes
17534 then :
17535 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
17536
17537 fi
17538 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
17539 if test "x$ac_cv_header_sys_sysctl_h" = xyes
17540 then :
17541 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
17542
17543 fi
17544
17545
17546
17547 ##########################################
17548 #### Checks for typedefs, structures, ####
17549 #### and compiler characteristics. ####
17550 ##########################################
17551
17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17553 printf %s "checking for an ANSI C-conforming const... " >&6; }
17554 if test ${ac_cv_c_const+y}
17555 then :
17556 printf %s "(cached) " >&6
17557 else $as_nop
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560
17561 int
17562 main (void)
17563 {
17564
17565 #ifndef __cplusplus
17566 /* Ultrix mips cc rejects this sort of thing. */
17567 typedef int charset[2];
17568 const charset cs = { 0, 0 };
17569 /* SunOS 4.1.1 cc rejects this. */
17570 char const *const *pcpcc;
17571 char **ppc;
17572 /* NEC SVR4.0.2 mips cc rejects this. */
17573 struct point {int x, y;};
17574 static struct point const zero = {0,0};
17575 /* IBM XL C 1.02.0.0 rejects this.
17576 It does not let you subtract one const X* pointer from another in
17577 an arm of an if-expression whose if-part is not a constant
17578 expression */
17579 const char *g = "string";
17580 pcpcc = &g + (g ? g-g : 0);
17581 /* HPUX 7.0 cc rejects these. */
17582 ++pcpcc;
17583 ppc = (char**) pcpcc;
17584 pcpcc = (char const *const *) ppc;
17585 { /* SCO 3.2v4 cc rejects this sort of thing. */
17586 char tx;
17587 char *t = &tx;
17588 char const *s = 0 ? (char *) 0 : (char const *) 0;
17589
17590 *t++ = 0;
17591 if (s) return 0;
17592 }
17593 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17594 int x[] = {25, 17};
17595 const int *foo = &x[0];
17596 ++foo;
17597 }
17598 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17599 typedef const int *iptr;
17600 iptr p = 0;
17601 ++p;
17602 }
17603 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17604 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17605 struct s { int j; const int *ap[3]; } bx;
17606 struct s *b = &bx; b->j = 5;
17607 }
17608 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17609 const int foo = 10;
17610 if (!foo) return 0;
17611 }
17612 return !cs[0] && !zero.x;
17613 #endif
17614
17615 ;
17616 return 0;
17617 }
17618 _ACEOF
17619 if ac_fn_c_try_compile "$LINENO"
17620 then :
17621 ac_cv_c_const=yes
17622 else $as_nop
17623 ac_cv_c_const=no
17624 fi
17625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17626 fi
17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17628 printf "%s\n" "$ac_cv_c_const" >&6; }
17629 if test $ac_cv_c_const = no; then
17630
17631 printf "%s\n" "#define const /**/" >>confdefs.h
17632
17633 fi
17634
17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17636 printf %s "checking for inline... " >&6; }
17637 if test ${ac_cv_c_inline+y}
17638 then :
17639 printf %s "(cached) " >&6
17640 else $as_nop
17641 ac_cv_c_inline=no
17642 for ac_kw in inline __inline__ __inline; do
17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h. */
17645 #ifndef __cplusplus
17646 typedef int foo_t;
17647 static $ac_kw foo_t static_foo (void) {return 0; }
17648 $ac_kw foo_t foo (void) {return 0; }
17649 #endif
17650
17651 _ACEOF
17652 if ac_fn_c_try_compile "$LINENO"
17653 then :
17654 ac_cv_c_inline=$ac_kw
17655 fi
17656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17657 test "$ac_cv_c_inline" != no && break
17658 done
17659
17660 fi
17661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17662 printf "%s\n" "$ac_cv_c_inline" >&6; }
17663
17664 case $ac_cv_c_inline in
17665 inline | yes) ;;
17666 *)
17667 case $ac_cv_c_inline in
17668 no) ac_val=;;
17669 *) ac_val=$ac_cv_c_inline;;
17670 esac
17671 cat >>confdefs.h <<_ACEOF
17672 #ifndef __cplusplus
17673 #define inline $ac_val
17674 #endif
17675 _ACEOF
17676 ;;
17677 esac
17678
17679 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17680 if test "x$ac_cv_type_size_t" = xyes
17681 then :
17682
17683 else $as_nop
17684
17685 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17686
17687 fi
17688
17689
17690 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
17691 "
17692 if test "x$ac_cv_type_pid_t" = xyes
17693 then :
17694
17695 else $as_nop
17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17698
17699 #if defined _WIN64 && !defined __CYGWIN__
17700 LLP64
17701 #endif
17702
17703 int
17704 main (void)
17705 {
17706
17707 ;
17708 return 0;
17709 }
17710
17711 _ACEOF
17712 if ac_fn_c_try_compile "$LINENO"
17713 then :
17714 ac_pid_type='int'
17715 else $as_nop
17716 ac_pid_type='__int64'
17717 fi
17718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17719
17720 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
17721
17722
17723 fi
17724
17725
17726
17727 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
17728 if test "x$ac_cv_type_byte" = xyes
17729 then :
17730
17731 printf "%s\n" "#define HAVE_BYTE 1" >>confdefs.h
17732
17733
17734 fi
17735 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
17736 if test "x$ac_cv_type_ushort" = xyes
17737 then :
17738
17739 printf "%s\n" "#define HAVE_USHORT 1" >>confdefs.h
17740
17741
17742 fi
17743 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
17744 if test "x$ac_cv_type_u16" = xyes
17745 then :
17746
17747 printf "%s\n" "#define HAVE_U16 1" >>confdefs.h
17748
17749
17750 fi
17751 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
17752 if test "x$ac_cv_type_u32" = xyes
17753 then :
17754
17755 printf "%s\n" "#define HAVE_U32 1" >>confdefs.h
17756
17757
17758 fi
17759 ac_fn_c_check_type "$LINENO" "u64" "ac_cv_type_u64" "$ac_includes_default"
17760 if test "x$ac_cv_type_u64" = xyes
17761 then :
17762
17763 printf "%s\n" "#define HAVE_U64 1" >>confdefs.h
17764
17765
17766 fi
17767
17768
17769 #
17770 # Check for __builtin_bswap32 intrinsic.
17771 #
17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
17773 printf %s "checking for __builtin_bswap32... " >&6; }
17774 if test ${gcry_cv_have_builtin_bswap32+y}
17775 then :
17776 printf %s "(cached) " >&6
17777 else $as_nop
17778 gcry_cv_have_builtin_bswap32=no
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17781
17782 int
17783 main (void)
17784 {
17785 int x = 0; int y = __builtin_bswap32(x); return y;
17786 ;
17787 return 0;
17788 }
17789 _ACEOF
17790 if ac_fn_c_try_link "$LINENO"
17791 then :
17792 gcry_cv_have_builtin_bswap32=yes
17793 fi
17794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17795 conftest$ac_exeext conftest.$ac_ext
17796 fi
17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_bswap32" >&5
17798 printf "%s\n" "$gcry_cv_have_builtin_bswap32" >&6; }
17799 if test "$gcry_cv_have_builtin_bswap32" = "yes" ; then
17800
17801 printf "%s\n" "#define HAVE_BUILTIN_BSWAP32 1" >>confdefs.h
17802
17803 fi
17804
17805
17806 #
17807 # Check for __builtin_bswap64 intrinsic.
17808 #
17809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
17810 printf %s "checking for __builtin_bswap64... " >&6; }
17811 if test ${gcry_cv_have_builtin_bswap64+y}
17812 then :
17813 printf %s "(cached) " >&6
17814 else $as_nop
17815 gcry_cv_have_builtin_bswap64=no
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17818
17819 int
17820 main (void)
17821 {
17822 long long x = 0; long long y = __builtin_bswap64(x); return y;
17823 ;
17824 return 0;
17825 }
17826 _ACEOF
17827 if ac_fn_c_try_link "$LINENO"
17828 then :
17829 gcry_cv_have_builtin_bswap64=yes
17830 fi
17831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17832 conftest$ac_exeext conftest.$ac_ext
17833 fi
17834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_bswap64" >&5
17835 printf "%s\n" "$gcry_cv_have_builtin_bswap64" >&6; }
17836 if test "$gcry_cv_have_builtin_bswap64" = "yes" ; then
17837
17838 printf "%s\n" "#define HAVE_BUILTIN_BSWAP64 1" >>confdefs.h
17839
17840 fi
17841
17842
17843 #
17844 # Check for __builtin_ctz intrinsic.
17845 #
17846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
17847 printf %s "checking for __builtin_ctz... " >&6; }
17848 if test ${gcry_cv_have_builtin_ctz+y}
17849 then :
17850 printf %s "(cached) " >&6
17851 else $as_nop
17852 gcry_cv_have_builtin_ctz=no
17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17855
17856 int
17857 main (void)
17858 {
17859 unsigned int x = 0; int y = __builtin_ctz(x); return y;
17860 ;
17861 return 0;
17862 }
17863 _ACEOF
17864 if ac_fn_c_try_link "$LINENO"
17865 then :
17866 gcry_cv_have_builtin_ctz=yes
17867 fi
17868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17869 conftest$ac_exeext conftest.$ac_ext
17870 fi
17871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_ctz" >&5
17872 printf "%s\n" "$gcry_cv_have_builtin_ctz" >&6; }
17873 if test "$gcry_cv_have_builtin_ctz" = "yes" ; then
17874
17875 printf "%s\n" "#define HAVE_BUILTIN_CTZ 1" >>confdefs.h
17876
17877 fi
17878
17879
17880 #
17881 # Check for __builtin_ctzl intrinsic.
17882 #
17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl" >&5
17884 printf %s "checking for __builtin_ctzl... " >&6; }
17885 if test ${gcry_cv_have_builtin_ctzl+y}
17886 then :
17887 printf %s "(cached) " >&6
17888 else $as_nop
17889 gcry_cv_have_builtin_ctzl=no
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892
17893 int
17894 main (void)
17895 {
17896 unsigned long x = 0; long y = __builtin_ctzl(x); return y;
17897 ;
17898 return 0;
17899 }
17900 _ACEOF
17901 if ac_fn_c_try_link "$LINENO"
17902 then :
17903 gcry_cv_have_builtin_ctzl=yes
17904 fi
17905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17906 conftest$ac_exeext conftest.$ac_ext
17907 fi
17908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_ctzl" >&5
17909 printf "%s\n" "$gcry_cv_have_builtin_ctzl" >&6; }
17910 if test "$gcry_cv_have_builtin_ctzl" = "yes" ; then
17911
17912 printf "%s\n" "#define HAVE_BUILTIN_CTZL 1" >>confdefs.h
17913
17914 fi
17915
17916
17917 #
17918 # Check for __builtin_clz intrinsic.
17919 #
17920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
17921 printf %s "checking for __builtin_clz... " >&6; }
17922 if test ${gcry_cv_have_builtin_clz+y}
17923 then :
17924 printf %s "(cached) " >&6
17925 else $as_nop
17926 gcry_cv_have_builtin_clz=no
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929
17930 int
17931 main (void)
17932 {
17933 unsigned int x = 0; int y = __builtin_clz(x); return y;
17934 ;
17935 return 0;
17936 }
17937 _ACEOF
17938 if ac_fn_c_try_link "$LINENO"
17939 then :
17940 gcry_cv_have_builtin_clz=yes
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17943 conftest$ac_exeext conftest.$ac_ext
17944 fi
17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_clz" >&5
17946 printf "%s\n" "$gcry_cv_have_builtin_clz" >&6; }
17947 if test "$gcry_cv_have_builtin_clz" = "yes" ; then
17948
17949 printf "%s\n" "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
17950
17951 fi
17952
17953
17954 #
17955 # Check for __builtin_clzl intrinsic.
17956 #
17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5
17958 printf %s "checking for __builtin_clzl... " >&6; }
17959 if test ${gcry_cv_have_builtin_clzl+y}
17960 then :
17961 printf %s "(cached) " >&6
17962 else $as_nop
17963 gcry_cv_have_builtin_clzl=no
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17966
17967 int
17968 main (void)
17969 {
17970 unsigned long x = 0; long y = __builtin_clzl(x); return y;
17971 ;
17972 return 0;
17973 }
17974 _ACEOF
17975 if ac_fn_c_try_link "$LINENO"
17976 then :
17977 gcry_cv_have_builtin_clzl=yes
17978 fi
17979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17980 conftest$ac_exeext conftest.$ac_ext
17981 fi
17982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_clzl" >&5
17983 printf "%s\n" "$gcry_cv_have_builtin_clzl" >&6; }
17984 if test "$gcry_cv_have_builtin_clzl" = "yes" ; then
17985
17986 printf "%s\n" "#define HAVE_BUILTIN_CLZL 1" >>confdefs.h
17987
17988 fi
17989
17990
17991 #
17992 # Check for __sync_synchronize intrinsic.
17993 #
17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __sync_synchronize" >&5
17995 printf %s "checking for __sync_synchronize... " >&6; }
17996 if test ${gcry_cv_have_sync_synchronize+y}
17997 then :
17998 printf %s "(cached) " >&6
17999 else $as_nop
18000 gcry_cv_have_sync_synchronize=no
18001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h. */
18003
18004 int
18005 main (void)
18006 {
18007 __sync_synchronize(); return 0;
18008 ;
18009 return 0;
18010 }
18011 _ACEOF
18012 if ac_fn_c_try_link "$LINENO"
18013 then :
18014 gcry_cv_have_sync_synchronize=yes
18015 fi
18016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18017 conftest$ac_exeext conftest.$ac_ext
18018 fi
18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_sync_synchronize" >&5
18020 printf "%s\n" "$gcry_cv_have_sync_synchronize" >&6; }
18021 if test "$gcry_cv_have_sync_synchronize" = "yes" ; then
18022
18023 printf "%s\n" "#define HAVE_SYNC_SYNCHRONIZE 1" >>confdefs.h
18024
18025 fi
18026
18027
18028 #
18029 # Check for VLA support (variable length arrays).
18030 #
18031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the variable length arrays are supported" >&5
18032 printf %s "checking whether the variable length arrays are supported... " >&6; }
18033 if test ${gcry_cv_have_vla+y}
18034 then :
18035 printf %s "(cached) " >&6
18036 else $as_nop
18037 gcry_cv_have_vla=no
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18040 void f1(char *, int);
18041 char foo(int i) {
18042 char b[(i < 0 ? 0 : i) + 1];
18043 f1(b, sizeof b); return b[0];}
18044 _ACEOF
18045 if ac_fn_c_try_compile "$LINENO"
18046 then :
18047 gcry_cv_have_vla=yes
18048 fi
18049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18050 fi
18051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_vla" >&5
18052 printf "%s\n" "$gcry_cv_have_vla" >&6; }
18053 if test "$gcry_cv_have_vla" = "yes" ; then
18054
18055 printf "%s\n" "#define HAVE_VLA 1" >>confdefs.h
18056
18057 fi
18058
18059
18060 #
18061 # Check for ELF visibility support.
18062 #
18063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
18064 printf %s "checking whether the visibility attribute is supported... " >&6; }
18065 if test ${gcry_cv_visibility_attribute+y}
18066 then :
18067 printf %s "(cached) " >&6
18068 else $as_nop
18069 gcry_cv_visibility_attribute=no
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18072 int foo __attribute__ ((visibility ("hidden"))) = 1;
18073 int bar __attribute__ ((visibility ("protected"))) = 1;
18074
18075 _ACEOF
18076
18077 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
18078 1>&5 2>&5 ; then
18079 if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
18080 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
18081 gcry_cv_visibility_attribute=yes
18082 fi
18083 fi
18084 fi
18085
18086 fi
18087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_visibility_attribute" >&5
18088 printf "%s\n" "$gcry_cv_visibility_attribute" >&6; }
18089 if test "$gcry_cv_visibility_attribute" = "yes"; then
18090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
18091 printf %s "checking for broken visibility attribute... " >&6; }
18092 if test ${gcry_cv_broken_visibility_attribute+y}
18093 then :
18094 printf %s "(cached) " >&6
18095 else $as_nop
18096 gcry_cv_broken_visibility_attribute=yes
18097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098 /* end confdefs.h. */
18099 int foo (int x);
18100 int bar (int x) __asm__ ("foo")
18101 __attribute__ ((visibility ("hidden")));
18102 int bar (int x) { return x; }
18103
18104 _ACEOF
18105
18106 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
18107 1>&5 2>&5 ; then
18108 if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1;
18109 then
18110 gcry_cv_broken_visibility_attribute=no
18111 fi
18112 fi
18113
18114 fi
18115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_visibility_attribute" >&5
18116 printf "%s\n" "$gcry_cv_broken_visibility_attribute" >&6; }
18117 fi
18118 if test "$gcry_cv_visibility_attribute" = "yes"; then
18119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
18120 printf %s "checking for broken alias attribute... " >&6; }
18121 if test ${gcry_cv_broken_alias_attribute+y}
18122 then :
18123 printf %s "(cached) " >&6
18124 else $as_nop
18125 gcry_cv_broken_alias_attribute=yes
18126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127 /* end confdefs.h. */
18128 extern int foo (int x) __asm ("xyzzy");
18129 int bar (int x) { return x; }
18130 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
18131 extern int dfoo;
18132 extern __typeof (dfoo) dfoo __asm ("abccb");
18133 int dfoo = 1;
18134
18135 _ACEOF
18136
18137 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
18138 1>&5 2>&5 ; then
18139 if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
18140 grep 'abccb' conftest.s >/dev/null 2>&1; then
18141 gcry_cv_broken_alias_attribute=no
18142 fi
18143 fi
18144
18145 fi
18146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_alias_attribute" >&5
18147 printf "%s\n" "$gcry_cv_broken_alias_attribute" >&6; }
18148 fi
18149 if test "$gcry_cv_visibility_attribute" = "yes"; then
18150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
18151 printf %s "checking if gcc supports -fvisibility=hidden... " >&6; }
18152 if test ${gcry_cv_gcc_has_f_visibility+y}
18153 then :
18154 printf %s "(cached) " >&6
18155 else $as_nop
18156 gcry_cv_gcc_has_f_visibility=no
18157 _gcc_cflags_save=$CFLAGS
18158 CFLAGS="-fvisibility=hidden"
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18161
18162 int
18163 main (void)
18164 {
18165
18166 ;
18167 return 0;
18168 }
18169 _ACEOF
18170 if ac_fn_c_try_compile "$LINENO"
18171 then :
18172 gcry_cv_gcc_has_f_visibility=yes
18173 fi
18174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18175 CFLAGS=$_gcc_cflags_save;
18176
18177 fi
18178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_has_f_visibility" >&5
18179 printf "%s\n" "$gcry_cv_gcc_has_f_visibility" >&6; }
18180 fi
18181 if test "$gcry_cv_visibility_attribute" = "yes" \
18182 && test "$gcry_cv_broken_visibility_attribute" != "yes" \
18183 && test "$gcry_cv_broken_alias_attribute" != "yes" \
18184 && test "$gcry_cv_gcc_has_f_visibility" = "yes"
18185 then
18186
18187 printf "%s\n" "#define GCRY_USE_VISIBILITY 1" >>confdefs.h
18188
18189 CFLAGS="$CFLAGS -fvisibility=hidden"
18190 fi
18191
18192
18193 # Following attribute tests depend on warnings to cause compile to fail,
18194 # so set -Werror temporarily.
18195 _gcc_cflags_save=$CFLAGS
18196 CFLAGS="$CFLAGS -Werror"
18197
18198
18199 #
18200 # Check whether the compiler supports the GCC style aligned attribute
18201 #
18202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the GCC style aligned attribute is supported" >&5
18203 printf %s "checking whether the GCC style aligned attribute is supported... " >&6; }
18204 if test ${gcry_cv_gcc_attribute_aligned+y}
18205 then :
18206 printf %s "(cached) " >&6
18207 else $as_nop
18208 gcry_cv_gcc_attribute_aligned=no
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18211 struct { int a; } foo __attribute__ ((aligned (16)));
18212 _ACEOF
18213 if ac_fn_c_try_compile "$LINENO"
18214 then :
18215 gcry_cv_gcc_attribute_aligned=yes
18216 fi
18217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18218 fi
18219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_aligned" >&5
18220 printf "%s\n" "$gcry_cv_gcc_attribute_aligned" >&6; }
18221 if test "$gcry_cv_gcc_attribute_aligned" = "yes" ; then
18222
18223 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_ALIGNED 1" >>confdefs.h
18224
18225 fi
18226
18227
18228 #
18229 # Check whether the compiler supports the GCC style packed attribute
18230 #
18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the GCC style packed attribute is supported" >&5
18232 printf %s "checking whether the GCC style packed attribute is supported... " >&6; }
18233 if test ${gcry_cv_gcc_attribute_packed+y}
18234 then :
18235 printf %s "(cached) " >&6
18236 else $as_nop
18237 gcry_cv_gcc_attribute_packed=no
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18240 struct foolong_s { long b; } __attribute__ ((packed));
18241 struct foo_s { char a; struct foolong_s b; }
18242 __attribute__ ((packed));
18243 enum bar {
18244 FOO = 1 / (sizeof(struct foo_s) == (sizeof(char) + sizeof(long))),
18245 };
18246 _ACEOF
18247 if ac_fn_c_try_compile "$LINENO"
18248 then :
18249 gcry_cv_gcc_attribute_packed=yes
18250 fi
18251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18252 fi
18253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_packed" >&5
18254 printf "%s\n" "$gcry_cv_gcc_attribute_packed" >&6; }
18255 if test "$gcry_cv_gcc_attribute_packed" = "yes" ; then
18256
18257 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_PACKED 1" >>confdefs.h
18258
18259 fi
18260
18261
18262 #
18263 # Check whether the compiler supports the GCC style may_alias attribute
18264 #
18265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the GCC style may_alias attribute is supported" >&5
18266 printf %s "checking whether the GCC style may_alias attribute is supported... " >&6; }
18267 if test ${gcry_cv_gcc_attribute_may_alias+y}
18268 then :
18269 printf %s "(cached) " >&6
18270 else $as_nop
18271 gcry_cv_gcc_attribute_may_alias=no
18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 typedef struct foo_s { int a; }
18275 __attribute__ ((may_alias)) foo_t;
18276 _ACEOF
18277 if ac_fn_c_try_compile "$LINENO"
18278 then :
18279 gcry_cv_gcc_attribute_may_alias=yes
18280 fi
18281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18282 fi
18283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_may_alias" >&5
18284 printf "%s\n" "$gcry_cv_gcc_attribute_may_alias" >&6; }
18285 if test "$gcry_cv_gcc_attribute_may_alias" = "yes" ; then
18286
18287 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_MAY_ALIAS 1" >>confdefs.h
18288
18289 fi
18290
18291
18292 # Restore flags.
18293 CFLAGS=$_gcc_cflags_save;
18294
18295
18296 #
18297 # Check whether the compiler supports 'asm' or '__asm__' keyword for
18298 # assembler blocks.
18299 #
18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'asm' assembler keyword is supported" >&5
18301 printf %s "checking whether 'asm' assembler keyword is supported... " >&6; }
18302 if test ${gcry_cv_have_asm+y}
18303 then :
18304 printf %s "(cached) " >&6
18305 else $as_nop
18306 gcry_cv_have_asm=no
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18309 void a(void) { asm("":::"memory"); }
18310 _ACEOF
18311 if ac_fn_c_try_compile "$LINENO"
18312 then :
18313 gcry_cv_have_asm=yes
18314 fi
18315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18316 fi
18317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm" >&5
18318 printf "%s\n" "$gcry_cv_have_asm" >&6; }
18319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether '__asm__' assembler keyword is supported" >&5
18320 printf %s "checking whether '__asm__' assembler keyword is supported... " >&6; }
18321 if test ${gcry_cv_have___asm__+y}
18322 then :
18323 printf %s "(cached) " >&6
18324 else $as_nop
18325 gcry_cv_have___asm__=no
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18328 void a(void) { __asm__("":::"memory"); }
18329 _ACEOF
18330 if ac_fn_c_try_compile "$LINENO"
18331 then :
18332 gcry_cv_have___asm__=yes
18333 fi
18334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18335 fi
18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have___asm__" >&5
18337 printf "%s\n" "$gcry_cv_have___asm__" >&6; }
18338 if test "$gcry_cv_have_asm" = "no" ; then
18339 if test "$gcry_cv_have___asm__" = "yes" ; then
18340
18341 printf "%s\n" "#define asm __asm__" >>confdefs.h
18342
18343 fi
18344 fi
18345
18346
18347 #
18348 # Check whether the compiler supports inline assembly memory barrier.
18349 #
18350 if test "$gcry_cv_have_asm" = "no" ; then
18351 if test "$gcry_cv_have___asm__" = "yes" ; then
18352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether inline assembly memory barrier is supported" >&5
18353 printf %s "checking whether inline assembly memory barrier is supported... " >&6; }
18354 if test ${gcry_cv_have_asm_volatile_memory+y}
18355 then :
18356 printf %s "(cached) " >&6
18357 else $as_nop
18358 gcry_cv_have_asm_volatile_memory=no
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18361 void a(int x)
18362 {
18363 __asm__ volatile("":::"memory");
18364 __asm__ volatile("":"+r"(x)::"memory");
18365 }
18366 _ACEOF
18367 if ac_fn_c_try_compile "$LINENO"
18368 then :
18369 gcry_cv_have_asm_volatile_memory=yes
18370 fi
18371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18372 fi
18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm_volatile_memory" >&5
18374 printf "%s\n" "$gcry_cv_have_asm_volatile_memory" >&6; }
18375 fi
18376 else
18377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether inline assembly memory barrier is supported" >&5
18378 printf %s "checking whether inline assembly memory barrier is supported... " >&6; }
18379 if test ${gcry_cv_have_asm_volatile_memory+y}
18380 then :
18381 printf %s "(cached) " >&6
18382 else $as_nop
18383 gcry_cv_have_asm_volatile_memory=no
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 void a(int x)
18387 {
18388 asm volatile("":::"memory");
18389 asm volatile("":"+r"(x)::"memory"); }
18390 _ACEOF
18391 if ac_fn_c_try_compile "$LINENO"
18392 then :
18393 gcry_cv_have_asm_volatile_memory=yes
18394 fi
18395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18396 fi
18397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm_volatile_memory" >&5
18398 printf "%s\n" "$gcry_cv_have_asm_volatile_memory" >&6; }
18399 fi
18400 if test "$gcry_cv_have_asm_volatile_memory" = "yes" ; then
18401
18402 printf "%s\n" "#define HAVE_GCC_ASM_VOLATILE_MEMORY 1" >>confdefs.h
18403
18404 fi
18405
18406
18407 #
18408 # Check whether GCC assembler supports features needed for our ARM
18409 # implementations. This needs to be done before setting up the
18410 # assembler stuff.
18411 #
18412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for ARM assembly implementations" >&5
18413 printf %s "checking whether GCC assembler is compatible for ARM assembly implementations... " >&6; }
18414 if test ${gcry_cv_gcc_arm_platform_as_ok+y}
18415 then :
18416 printf %s "(cached) " >&6
18417 else $as_nop
18418 if test "$try_asm_modules" != "yes" ; then
18419 gcry_cv_gcc_arm_platform_as_ok="n/a"
18420 else
18421 gcry_cv_gcc_arm_platform_as_ok=no
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18424 __asm__(
18425 /* Test if assembler supports UAL syntax. */
18426 ".syntax unified\n\t"
18427 ".arm\n\t" /* our assembly code is in ARM mode */
18428 ".text\n\t"
18429 /* Following causes error if assembler ignored '.syntax unified'. */
18430 "asmfunc:\n\t"
18431 "add r0, r0, r4, ror #12;\n\t"
18432
18433 /* Test if '.type' and '.size' are supported. */
18434 ".size asmfunc,.-asmfunc;\n\t"
18435 ".type asmfunc,%function;\n\t"
18436 );
18437 void asmfunc(void);
18438 int
18439 main (void)
18440 {
18441 asmfunc();
18442 ;
18443 return 0;
18444 }
18445 _ACEOF
18446 if ac_fn_c_try_link "$LINENO"
18447 then :
18448 gcry_cv_gcc_arm_platform_as_ok=yes
18449 fi
18450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18451 conftest$ac_exeext conftest.$ac_ext
18452 fi
18453 fi
18454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_arm_platform_as_ok" >&5
18455 printf "%s\n" "$gcry_cv_gcc_arm_platform_as_ok" >&6; }
18456 if test "$gcry_cv_gcc_arm_platform_as_ok" = "yes" ; then
18457
18458 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_ARM_PLATFORM_AS 1" >>confdefs.h
18459
18460 fi
18461
18462
18463 #
18464 # Check whether GCC assembler supports features needed for our ARMv8/Aarch64
18465 # implementations. This needs to be done before setting up the
18466 # assembler stuff.
18467 #
18468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for ARMv8/Aarch64 assembly implementations" >&5
18469 printf %s "checking whether GCC assembler is compatible for ARMv8/Aarch64 assembly implementations... " >&6; }
18470 if test ${gcry_cv_gcc_aarch64_platform_as_ok+y}
18471 then :
18472 printf %s "(cached) " >&6
18473 else $as_nop
18474 if test "$try_asm_modules" != "yes" ; then
18475 gcry_cv_gcc_aarch64_platform_as_ok="n/a"
18476 else
18477 gcry_cv_gcc_aarch64_platform_as_ok=no
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18480 __asm__(
18481 ".text\n\t"
18482 "asmfunc:\n\t"
18483 "eor x0, x0, x30, ror #12;\n\t"
18484 "add x0, x0, x30, asr #12;\n\t"
18485 "eor v0.16b, v0.16b, v31.16b;\n\t"
18486 );
18487 void asmfunc(void);
18488 int
18489 main (void)
18490 {
18491 asmfunc();
18492 ;
18493 return 0;
18494 }
18495 _ACEOF
18496 if ac_fn_c_try_link "$LINENO"
18497 then :
18498 gcry_cv_gcc_aarch64_platform_as_ok=yes
18499 fi
18500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18501 conftest$ac_exeext conftest.$ac_ext
18502 fi
18503 fi
18504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_aarch64_platform_as_ok" >&5
18505 printf "%s\n" "$gcry_cv_gcc_aarch64_platform_as_ok" >&6; }
18506 if test "$gcry_cv_gcc_aarch64_platform_as_ok" = "yes" ; then
18507
18508 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_AARCH64_PLATFORM_AS 1" >>confdefs.h
18509
18510 fi
18511
18512 #
18513 # Check whether GCC assembler supports for CFI directives.
18514 #
18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler supports for CFI directives" >&5
18516 printf %s "checking whether GCC assembler supports for CFI directives... " >&6; }
18517 if test ${gcry_cv_gcc_asm_cfi_directives+y}
18518 then :
18519 printf %s "(cached) " >&6
18520 else $as_nop
18521 gcry_cv_gcc_asm_cfi_directives=no
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18524 __asm__(
18525 ".text\n\t"
18526 "ac_test:\n\t"
18527 ".cfi_startproc\n\t"
18528 ".cfi_remember_state\n\t"
18529 ".cfi_adjust_cfa_offset 8\n\t"
18530 ".cfi_rel_offset 0, 8\n\t"
18531 ".cfi_def_cfa_register 1\n\t"
18532 ".cfi_register 2, 3\n\t"
18533 ".cfi_restore 2\n\t"
18534 ".cfi_escape 0x0f, 0x02, 0x11, 0x00\n\t"
18535 ".cfi_restore_state\n\t"
18536 ".long 0\n\t"
18537 ".cfi_endproc\n\t"
18538 );
18539 int
18540 main (void)
18541 {
18542
18543 ;
18544 return 0;
18545 }
18546 _ACEOF
18547 if ac_fn_c_try_link "$LINENO"
18548 then :
18549 gcry_cv_gcc_asm_cfi_directives=yes
18550 fi
18551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18552 conftest$ac_exeext conftest.$ac_ext
18553 fi
18554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_asm_cfi_directives" >&5
18555 printf "%s\n" "$gcry_cv_gcc_asm_cfi_directives" >&6; }
18556 if test "$gcry_cv_gcc_asm_cfi_directives" = "yes" ; then
18557
18558 printf "%s\n" "#define HAVE_GCC_ASM_CFI_DIRECTIVES 1" >>confdefs.h
18559
18560 fi
18561
18562
18563 #
18564 # Check whether GCC assembler supports for ELF directives.
18565 #
18566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler supports for ELF directives" >&5
18567 printf %s "checking whether GCC assembler supports for ELF directives... " >&6; }
18568 if test ${gcry_cv_gcc_asm_elf_directives+y}
18569 then :
18570 printf %s "(cached) " >&6
18571 else $as_nop
18572 gcry_cv_gcc_asm_elf_directives=no
18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18575 __asm__(
18576 /* Test if ELF directives '.type' and '.size' are supported. */
18577 ".text\n\t"
18578 "asmfunc:\n\t"
18579 ".size asmfunc,.-asmfunc;\n\t"
18580 ".type asmfunc,STT_FUNC;\n\t"
18581 );
18582 int
18583 main (void)
18584 {
18585
18586 ;
18587 return 0;
18588 }
18589 _ACEOF
18590 if ac_fn_c_try_link "$LINENO"
18591 then :
18592 gcry_cv_gcc_asm_elf_directives=yes
18593 fi
18594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18595 conftest$ac_exeext conftest.$ac_ext
18596 fi
18597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_asm_elf_directives" >&5
18598 printf "%s\n" "$gcry_cv_gcc_asm_elf_directives" >&6; }
18599 if test "$gcry_cv_gcc_asm_elf_directives" = "yes" ; then
18600
18601 printf "%s\n" "#define HAVE_GCC_ASM_ELF_DIRECTIVES 1" >>confdefs.h
18602
18603 fi
18604
18605
18606 #
18607 # Check whether underscores in symbols are required. This needs to be
18608 # done before setting up the assembler stuff.
18609 #
18610
18611 tmp_do_check="no"
18612 case "${host}" in
18613 i?86-mingw32* | i?86-*-mingw32*)
18614 ac_cv_sys_symbol_underscore=yes
18615 ;;
18616 x86_64-*-mingw32*)
18617 ac_cv_sys_symbol_underscore=no
18618 ;;
18619 i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
18620 ac_cv_sys_symbol_underscore=yes
18621 ;;
18622 *)
18623 if test "$cross_compiling" != yes; then
18624 tmp_do_check="yes"
18625 fi
18626 ;;
18627 esac
18628 if test "$tmp_do_check" = "yes"; then
18629
18630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18631 printf %s "checking for _ prefix in compiled symbols... " >&6; }
18632 if test ${ac_cv_sys_symbol_underscore+y}
18633 then :
18634 printf %s "(cached) " >&6
18635 else $as_nop
18636 ac_cv_sys_symbol_underscore=no
18637 cat > conftest.$ac_ext <<EOF
18638 void nm_test_func(void){}
18639 int main(void){nm_test_func();return 0;}
18640 EOF
18641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18642 (eval $ac_compile) 2>&5
18643 ac_status=$?
18644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18645 test $ac_status = 0; }; then
18646 # Now try to grab the symbols.
18647 ac_nlist=conftest.nm
18648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $ac_nlist\""; } >&5
18649 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $ac_nlist) 2>&5
18650 ac_status=$?
18651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18652 test $ac_status = 0; } && test -s "$ac_nlist"; then
18653 # See whether the symbols have a leading underscore.
18654 if $GREP '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18655 ac_cv_sys_symbol_underscore=yes
18656 else
18657 if $GREP '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18658 :
18659 else
18660 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18661 fi
18662 fi
18663 else
18664 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18665 fi
18666 else
18667 echo "configure: failed program was:" >&5
18668 cat conftest.c >&5
18669 fi
18670 rm -rf conftest*
18671
18672 fi
18673
18674 else
18675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18676 printf %s "checking for _ prefix in compiled symbols... " >&6; }
18677 fi
18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
18679 printf "%s\n" "$ac_cv_sys_symbol_underscore" >&6; }
18680 if test x$ac_cv_sys_symbol_underscore = xyes; then
18681
18682 printf "%s\n" "#define WITH_SYMBOL_UNDERSCORE 1" >>confdefs.h
18683
18684 fi
18685
18686
18687
18688 #################################
18689 #### ####
18690 #### Setup assembler stuff. ####
18691 #### Define mpi_cpu_arch. ####
18692 #### ####
18693 #################################
18694 # Check whether --enable-mpi-path was given.
18695 if test ${enable_mpi_path+y}
18696 then :
18697 enableval=$enable_mpi_path; mpi_extra_path="$enableval"
18698 else $as_nop
18699 mpi_extra_path=""
18700 fi
18701
18702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking architecture and mpi assembler functions" >&5
18703 printf %s "checking architecture and mpi assembler functions... " >&6; }
18704 if test -f $srcdir/mpi/config.links ; then
18705 . $srcdir/mpi/config.links
18706 ac_config_links="$ac_config_links "$mpi_ln_list""
18707
18708 ac_cv_mpi_sflags="$mpi_sflags"
18709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpi_cpu_arch" >&5
18710 printf "%s\n" "$mpi_cpu_arch" >&6; }
18711 else
18712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
18713 printf "%s\n" "failed" >&6; }
18714 as_fn_error $? "mpi/config.links missing!" "$LINENO" 5
18715 fi
18716 MPI_SFLAGS="$ac_cv_mpi_sflags"
18717
18718
18719 if test "$mpi_mod_asm_mpih_add1" = yes; then
18720 MPI_MOD_ASM_MPIH_ADD1_TRUE=
18721 MPI_MOD_ASM_MPIH_ADD1_FALSE='#'
18722 else
18723 MPI_MOD_ASM_MPIH_ADD1_TRUE='#'
18724 MPI_MOD_ASM_MPIH_ADD1_FALSE=
18725 fi
18726
18727 if test "$mpi_mod_asm_mpih_sub1" = yes; then
18728 MPI_MOD_ASM_MPIH_SUB1_TRUE=
18729 MPI_MOD_ASM_MPIH_SUB1_FALSE='#'
18730 else
18731 MPI_MOD_ASM_MPIH_SUB1_TRUE='#'
18732 MPI_MOD_ASM_MPIH_SUB1_FALSE=
18733 fi
18734
18735 if test "$mpi_mod_asm_mpih_mul1" = yes; then
18736 MPI_MOD_ASM_MPIH_MUL1_TRUE=
18737 MPI_MOD_ASM_MPIH_MUL1_FALSE='#'
18738 else
18739 MPI_MOD_ASM_MPIH_MUL1_TRUE='#'
18740 MPI_MOD_ASM_MPIH_MUL1_FALSE=
18741 fi
18742
18743 if test "$mpi_mod_asm_mpih_mul2" = yes; then
18744 MPI_MOD_ASM_MPIH_MUL2_TRUE=
18745 MPI_MOD_ASM_MPIH_MUL2_FALSE='#'
18746 else
18747 MPI_MOD_ASM_MPIH_MUL2_TRUE='#'
18748 MPI_MOD_ASM_MPIH_MUL2_FALSE=
18749 fi
18750
18751 if test "$mpi_mod_asm_mpih_mul3" = yes; then
18752 MPI_MOD_ASM_MPIH_MUL3_TRUE=
18753 MPI_MOD_ASM_MPIH_MUL3_FALSE='#'
18754 else
18755 MPI_MOD_ASM_MPIH_MUL3_TRUE='#'
18756 MPI_MOD_ASM_MPIH_MUL3_FALSE=
18757 fi
18758
18759 if test "$mpi_mod_asm_mpih_lshift" = yes; then
18760 MPI_MOD_ASM_MPIH_LSHIFT_TRUE=
18761 MPI_MOD_ASM_MPIH_LSHIFT_FALSE='#'
18762 else
18763 MPI_MOD_ASM_MPIH_LSHIFT_TRUE='#'
18764 MPI_MOD_ASM_MPIH_LSHIFT_FALSE=
18765 fi
18766
18767 if test "$mpi_mod_asm_mpih_rshift" = yes; then
18768 MPI_MOD_ASM_MPIH_RSHIFT_TRUE=
18769 MPI_MOD_ASM_MPIH_RSHIFT_FALSE='#'
18770 else
18771 MPI_MOD_ASM_MPIH_RSHIFT_TRUE='#'
18772 MPI_MOD_ASM_MPIH_RSHIFT_FALSE=
18773 fi
18774
18775 if test "$mpi_mod_asm_udiv" = yes; then
18776 MPI_MOD_ASM_UDIV_TRUE=
18777 MPI_MOD_ASM_UDIV_FALSE='#'
18778 else
18779 MPI_MOD_ASM_UDIV_TRUE='#'
18780 MPI_MOD_ASM_UDIV_FALSE=
18781 fi
18782
18783 if test "$mpi_mod_asm_udiv_qrnnd" = yes; then
18784 MPI_MOD_ASM_UDIV_QRNND_TRUE=
18785 MPI_MOD_ASM_UDIV_QRNND_FALSE='#'
18786 else
18787 MPI_MOD_ASM_UDIV_QRNND_TRUE='#'
18788 MPI_MOD_ASM_UDIV_QRNND_FALSE=
18789 fi
18790
18791 if test "$mpi_mod_c_mpih_add1" = yes; then
18792 MPI_MOD_C_MPIH_ADD1_TRUE=
18793 MPI_MOD_C_MPIH_ADD1_FALSE='#'
18794 else
18795 MPI_MOD_C_MPIH_ADD1_TRUE='#'
18796 MPI_MOD_C_MPIH_ADD1_FALSE=
18797 fi
18798
18799 if test "$mpi_mod_c_mpih_sub1" = yes; then
18800 MPI_MOD_C_MPIH_SUB1_TRUE=
18801 MPI_MOD_C_MPIH_SUB1_FALSE='#'
18802 else
18803 MPI_MOD_C_MPIH_SUB1_TRUE='#'
18804 MPI_MOD_C_MPIH_SUB1_FALSE=
18805 fi
18806
18807 if test "$mpi_mod_c_mpih_mul1" = yes; then
18808 MPI_MOD_C_MPIH_MUL1_TRUE=
18809 MPI_MOD_C_MPIH_MUL1_FALSE='#'
18810 else
18811 MPI_MOD_C_MPIH_MUL1_TRUE='#'
18812 MPI_MOD_C_MPIH_MUL1_FALSE=
18813 fi
18814
18815 if test "$mpi_mod_c_mpih_mul2" = yes; then
18816 MPI_MOD_C_MPIH_MUL2_TRUE=
18817 MPI_MOD_C_MPIH_MUL2_FALSE='#'
18818 else
18819 MPI_MOD_C_MPIH_MUL2_TRUE='#'
18820 MPI_MOD_C_MPIH_MUL2_FALSE=
18821 fi
18822
18823 if test "$mpi_mod_c_mpih_mul3" = yes; then
18824 MPI_MOD_C_MPIH_MUL3_TRUE=
18825 MPI_MOD_C_MPIH_MUL3_FALSE='#'
18826 else
18827 MPI_MOD_C_MPIH_MUL3_TRUE='#'
18828 MPI_MOD_C_MPIH_MUL3_FALSE=
18829 fi
18830
18831 if test "$mpi_mod_c_mpih_lshift" = yes; then
18832 MPI_MOD_C_MPIH_LSHIFT_TRUE=
18833 MPI_MOD_C_MPIH_LSHIFT_FALSE='#'
18834 else
18835 MPI_MOD_C_MPIH_LSHIFT_TRUE='#'
18836 MPI_MOD_C_MPIH_LSHIFT_FALSE=
18837 fi
18838
18839 if test "$mpi_mod_c_mpih_rshift" = yes; then
18840 MPI_MOD_C_MPIH_RSHIFT_TRUE=
18841 MPI_MOD_C_MPIH_RSHIFT_FALSE='#'
18842 else
18843 MPI_MOD_C_MPIH_RSHIFT_TRUE='#'
18844 MPI_MOD_C_MPIH_RSHIFT_FALSE=
18845 fi
18846
18847 if test "$mpi_mod_c_udiv" = yes; then
18848 MPI_MOD_C_UDIV_TRUE=
18849 MPI_MOD_C_UDIV_FALSE='#'
18850 else
18851 MPI_MOD_C_UDIV_TRUE='#'
18852 MPI_MOD_C_UDIV_FALSE=
18853 fi
18854
18855 if test "$mpi_mod_c_udiv_qrnnd" = yes; then
18856 MPI_MOD_C_UDIV_QRNND_TRUE=
18857 MPI_MOD_C_UDIV_QRNND_FALSE='#'
18858 else
18859 MPI_MOD_C_UDIV_QRNND_TRUE='#'
18860 MPI_MOD_C_UDIV_QRNND_FALSE=
18861 fi
18862
18863
18864 # Reset non applicable feature flags.
18865 if test "$mpi_cpu_arch" != "x86" ; then
18866 aesnisupport="n/a"
18867 shaextsupport="n/a"
18868 pclmulsupport="n/a"
18869 sse41support="n/a"
18870 avxsupport="n/a"
18871 avx2support="n/a"
18872 avx512support="n/a"
18873 gfnisupport="n/a"
18874 padlocksupport="n/a"
18875 drngsupport="n/a"
18876 fi
18877
18878 if test "$mpi_cpu_arch" != "arm" ; then
18879 if test "$mpi_cpu_arch" != "aarch64" ; then
18880 neonsupport="n/a"
18881 armcryptosupport="n/a"
18882 svesupport="n/a"
18883 sve2support="n/a"
18884 fi
18885 fi
18886
18887 if test "$mpi_cpu_arch" != "ppc"; then
18888 ppccryptosupport="n/a"
18889 fi
18890
18891 #############################################
18892 #### ####
18893 #### Platform specific compiler checks. ####
18894 #### ####
18895 #############################################
18896
18897
18898 # Following tests depend on warnings to cause compile to fail, so set -Werror
18899 # temporarily.
18900 _gcc_cflags_save=$CFLAGS
18901 CFLAGS="$CFLAGS -Werror"
18902
18903
18904 #
18905 # Check whether compiler supports 'optimize' function attribute
18906 #
18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'optimize' function attribute" >&5
18908 printf %s "checking whether compiler supports 'optimize' function attribute... " >&6; }
18909 if test ${gcry_cv_gcc_attribute_optimize+y}
18910 then :
18911 printf %s "(cached) " >&6
18912 else $as_nop
18913 gcry_cv_gcc_attribute_optimize=no
18914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18915 /* end confdefs.h. */
18916 int __attribute__ ((optimize("-O2"))) fn(int i){return i;}
18917 _ACEOF
18918 if ac_fn_c_try_compile "$LINENO"
18919 then :
18920 gcry_cv_gcc_attribute_optimize=yes
18921 fi
18922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18923 fi
18924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_optimize" >&5
18925 printf "%s\n" "$gcry_cv_gcc_attribute_optimize" >&6; }
18926 if test "$gcry_cv_gcc_attribute_optimize" = "yes" ; then
18927
18928 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_OPTIMIZE 1" >>confdefs.h
18929
18930 fi
18931
18932
18933 #
18934 # Check whether compiler supports 'ms_abi' function attribute.
18935 #
18936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'ms_abi' function attribute" >&5
18937 printf %s "checking whether compiler supports 'ms_abi' function attribute... " >&6; }
18938 if test ${gcry_cv_gcc_attribute_ms_abi+y}
18939 then :
18940 printf %s "(cached) " >&6
18941 else $as_nop
18942 gcry_cv_gcc_attribute_ms_abi=no
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18945 int __attribute__ ((ms_abi)) proto(int);
18946 _ACEOF
18947 if ac_fn_c_try_compile "$LINENO"
18948 then :
18949 gcry_cv_gcc_attribute_ms_abi=yes
18950 fi
18951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18952 fi
18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_ms_abi" >&5
18954 printf "%s\n" "$gcry_cv_gcc_attribute_ms_abi" >&6; }
18955 if test "$gcry_cv_gcc_attribute_ms_abi" = "yes" ; then
18956
18957 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_MS_ABI 1" >>confdefs.h
18958
18959 fi
18960
18961
18962 #
18963 # Check whether compiler supports 'sysv_abi' function attribute.
18964 #
18965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'sysv_abi' function attribute" >&5
18966 printf %s "checking whether compiler supports 'sysv_abi' function attribute... " >&6; }
18967 if test ${gcry_cv_gcc_attribute_sysv_abi+y}
18968 then :
18969 printf %s "(cached) " >&6
18970 else $as_nop
18971 gcry_cv_gcc_attribute_sysv_abi=no
18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973 /* end confdefs.h. */
18974 int __attribute__ ((sysv_abi)) proto(int);
18975 _ACEOF
18976 if ac_fn_c_try_compile "$LINENO"
18977 then :
18978 gcry_cv_gcc_attribute_sysv_abi=yes
18979 fi
18980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18981 fi
18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_sysv_abi" >&5
18983 printf "%s\n" "$gcry_cv_gcc_attribute_sysv_abi" >&6; }
18984 if test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" ; then
18985
18986 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_SYSV_ABI 1" >>confdefs.h
18987
18988 fi
18989
18990
18991 #
18992 # Check whether default calling convention is 'ms_abi'.
18993 #
18994 if test "$gcry_cv_gcc_attribute_ms_abi" = "yes" ; then
18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether default calling convention is 'ms_abi'" >&5
18996 printf %s "checking whether default calling convention is 'ms_abi'... " >&6; }
18997 if test ${gcry_cv_gcc_default_abi_is_ms_abi+y}
18998 then :
18999 printf %s "(cached) " >&6
19000 else $as_nop
19001 gcry_cv_gcc_default_abi_is_ms_abi=no
19002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19004 void *test(void) {
19005 void *(*def_func)(void) = test;
19006 void *__attribute__((ms_abi))(*msabi_func)(void);
19007 /* warning on SysV abi targets, passes on Windows based targets */
19008 msabi_func = def_func;
19009 return msabi_func;
19010 }
19011 _ACEOF
19012 if ac_fn_c_try_compile "$LINENO"
19013 then :
19014 gcry_cv_gcc_default_abi_is_ms_abi=yes
19015 fi
19016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19017 fi
19018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_default_abi_is_ms_abi" >&5
19019 printf "%s\n" "$gcry_cv_gcc_default_abi_is_ms_abi" >&6; }
19020 if test "$gcry_cv_gcc_default_abi_is_ms_abi" = "yes" ; then
19021
19022 printf "%s\n" "#define HAVE_GCC_DEFAULT_ABI_IS_MS_ABI 1" >>confdefs.h
19023
19024 fi
19025 fi
19026
19027
19028 #
19029 # Check whether default calling convention is 'sysv_abi'.
19030 #
19031 if test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" ; then
19032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether default calling convention is 'sysv_abi'" >&5
19033 printf %s "checking whether default calling convention is 'sysv_abi'... " >&6; }
19034 if test ${gcry_cv_gcc_default_abi_is_sysv_abi+y}
19035 then :
19036 printf %s "(cached) " >&6
19037 else $as_nop
19038 gcry_cv_gcc_default_abi_is_sysv_abi=no
19039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h. */
19041 void *test(void) {
19042 void *(*def_func)(void) = test;
19043 void *__attribute__((sysv_abi))(*sysvabi_func)(void);
19044 /* warning on MS ABI targets, passes on SysV ABI targets */
19045 sysvabi_func = def_func;
19046 return sysvabi_func;
19047 }
19048 _ACEOF
19049 if ac_fn_c_try_compile "$LINENO"
19050 then :
19051 gcry_cv_gcc_default_abi_is_sysv_abi=yes
19052 fi
19053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19054 fi
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_default_abi_is_sysv_abi" >&5
19056 printf "%s\n" "$gcry_cv_gcc_default_abi_is_sysv_abi" >&6; }
19057 if test "$gcry_cv_gcc_default_abi_is_sysv_abi" = "yes" ; then
19058
19059 printf "%s\n" "#define HAVE_GCC_DEFAULT_ABI_IS_SYSV_ABI 1" >>confdefs.h
19060
19061 fi
19062 fi
19063
19064 #
19065 # Check whether compiler support '__thread' storage class specifier.
19066 #
19067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports '__thread' storage class specifier" >&5
19068 printf %s "checking whether compiler supports '__thread' storage class specifier... " >&6; }
19069 if test ${gcry_cv_gcc_storage_class__thread+y}
19070 then :
19071 printf %s "(cached) " >&6
19072 else $as_nop
19073 gcry_cv_gcc_storage_class__thread=no
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19076 static __thread int bar;
19077 int
19078 main (void)
19079 {
19080 (void)bar;
19081
19082 ;
19083 return 0;
19084 }
19085 _ACEOF
19086 if ac_fn_c_try_compile "$LINENO"
19087 then :
19088 gcry_cv_gcc_storage_class__thread=yes
19089 fi
19090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19091 fi
19092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_storage_class__thread" >&5
19093 printf "%s\n" "$gcry_cv_gcc_storage_class__thread" >&6; }
19094 if test "$gcry_cv_gcc_storage_class__thread" = "yes" ; then
19095
19096 printf "%s\n" "#define HAVE_GCC_STORAGE_CLASS__THREAD 1" >>confdefs.h
19097
19098 fi
19099
19100 # Restore flags.
19101 CFLAGS=$_gcc_cflags_save;
19102
19103
19104 #
19105 # Check whether GCC inline assembler supports SSSE3 instructions
19106 # This is required for the AES-NI instructions.
19107 #
19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SSSE3 instructions" >&5
19109 printf %s "checking whether GCC inline assembler supports SSSE3 instructions... " >&6; }
19110 if test ${gcry_cv_gcc_inline_asm_ssse3+y}
19111 then :
19112 printf %s "(cached) " >&6
19113 else $as_nop
19114 if test "$mpi_cpu_arch" != "x86" ||
19115 test "$try_asm_modules" != "yes" ; then
19116 gcry_cv_gcc_inline_asm_ssse3="n/a"
19117 else
19118 gcry_cv_gcc_inline_asm_ssse3=no
19119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19120 /* end confdefs.h. */
19121 static unsigned char be_mask[16] __attribute__ ((aligned (16))) =
19122 { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
19123 void a(void) {
19124 __asm__("pshufb %[mask], %%xmm2\n\t"::[mask]"m"(*be_mask):);
19125 }
19126 int
19127 main (void)
19128 {
19129 a();
19130 ;
19131 return 0;
19132 }
19133 _ACEOF
19134 if ac_fn_c_try_link "$LINENO"
19135 then :
19136 gcry_cv_gcc_inline_asm_ssse3=yes
19137 fi
19138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19139 conftest$ac_exeext conftest.$ac_ext
19140 fi
19141 fi
19142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_ssse3" >&5
19143 printf "%s\n" "$gcry_cv_gcc_inline_asm_ssse3" >&6; }
19144 if test "$gcry_cv_gcc_inline_asm_ssse3" = "yes" ; then
19145
19146 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_SSSE3 1" >>confdefs.h
19147
19148 fi
19149
19150
19151 #
19152 # Check whether GCC inline assembler supports PCLMUL instructions.
19153 #
19154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports PCLMUL instructions" >&5
19155 printf %s "checking whether GCC inline assembler supports PCLMUL instructions... " >&6; }
19156 if test ${gcry_cv_gcc_inline_asm_pclmul+y}
19157 then :
19158 printf %s "(cached) " >&6
19159 else $as_nop
19160 if test "$mpi_cpu_arch" != "x86" ||
19161 test "$try_asm_modules" != "yes" ; then
19162 gcry_cv_gcc_inline_asm_pclmul="n/a"
19163 else
19164 gcry_cv_gcc_inline_asm_pclmul=no
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h. */
19167 void a(void) {
19168 __asm__("pclmulqdq \$0, %%xmm1, %%xmm3\n\t":::"cc");
19169 }
19170 int
19171 main (void)
19172 {
19173 a();
19174 ;
19175 return 0;
19176 }
19177 _ACEOF
19178 if ac_fn_c_try_link "$LINENO"
19179 then :
19180 gcry_cv_gcc_inline_asm_pclmul=yes
19181 fi
19182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19183 conftest$ac_exeext conftest.$ac_ext
19184 fi
19185 fi
19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_pclmul" >&5
19187 printf "%s\n" "$gcry_cv_gcc_inline_asm_pclmul" >&6; }
19188 if test "$gcry_cv_gcc_inline_asm_pclmul" = "yes" ; then
19189
19190 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_PCLMUL 1" >>confdefs.h
19191
19192 fi
19193
19194
19195 #
19196 # Check whether GCC inline assembler supports SHA Extensions instructions.
19197 #
19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SHA Extensions instructions" >&5
19199 printf %s "checking whether GCC inline assembler supports SHA Extensions instructions... " >&6; }
19200 if test ${gcry_cv_gcc_inline_asm_shaext+y}
19201 then :
19202 printf %s "(cached) " >&6
19203 else $as_nop
19204 if test "$mpi_cpu_arch" != "x86" ||
19205 test "$try_asm_modules" != "yes" ; then
19206 gcry_cv_gcc_inline_asm_shaext="n/a"
19207 else
19208 gcry_cv_gcc_inline_asm_shaext=no
19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h. */
19211 void a(void) {
19212 __asm__("sha1rnds4 \$0, %%xmm1, %%xmm3\n\t":::"cc");
19213 __asm__("sha1nexte %%xmm1, %%xmm3\n\t":::"cc");
19214 __asm__("sha1msg1 %%xmm1, %%xmm3\n\t":::"cc");
19215 __asm__("sha1msg2 %%xmm1, %%xmm3\n\t":::"cc");
19216 __asm__("sha256rnds2 %%xmm0, %%xmm1, %%xmm3\n\t":::"cc");
19217 __asm__("sha256msg1 %%xmm1, %%xmm3\n\t":::"cc");
19218 __asm__("sha256msg2 %%xmm1, %%xmm3\n\t":::"cc");
19219 }
19220 int
19221 main (void)
19222 {
19223 a();
19224 ;
19225 return 0;
19226 }
19227 _ACEOF
19228 if ac_fn_c_try_link "$LINENO"
19229 then :
19230 gcry_cv_gcc_inline_asm_shaext=yes
19231 fi
19232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19233 conftest$ac_exeext conftest.$ac_ext
19234 fi
19235 fi
19236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_shaext" >&5
19237 printf "%s\n" "$gcry_cv_gcc_inline_asm_shaext" >&6; }
19238 if test "$gcry_cv_gcc_inline_asm_shaext" = "yes" ; then
19239
19240 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_SHAEXT 1" >>confdefs.h
19241
19242 fi
19243
19244
19245 #
19246 # Check whether GCC inline assembler supports SSE4.1 instructions.
19247 #
19248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SSE4.1 instructions" >&5
19249 printf %s "checking whether GCC inline assembler supports SSE4.1 instructions... " >&6; }
19250 if test ${gcry_cv_gcc_inline_asm_sse41+y}
19251 then :
19252 printf %s "(cached) " >&6
19253 else $as_nop
19254 if test "$mpi_cpu_arch" != "x86" ||
19255 test "$try_asm_modules" != "yes" ; then
19256 gcry_cv_gcc_inline_asm_sse41="n/a"
19257 else
19258 gcry_cv_gcc_inline_asm_sse41=no
19259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19260 /* end confdefs.h. */
19261 void a(void) {
19262 int i;
19263 __asm__("pextrd \$2, %%xmm0, %[out]\n\t" : [out] "=m" (i));
19264 }
19265 int
19266 main (void)
19267 {
19268 a();
19269 ;
19270 return 0;
19271 }
19272 _ACEOF
19273 if ac_fn_c_try_link "$LINENO"
19274 then :
19275 gcry_cv_gcc_inline_asm_sse41=yes
19276 fi
19277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19278 conftest$ac_exeext conftest.$ac_ext
19279 fi
19280 fi
19281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_sse41" >&5
19282 printf "%s\n" "$gcry_cv_gcc_inline_asm_sse41" >&6; }
19283 if test "$gcry_cv_gcc_inline_asm_sse41" = "yes" ; then
19284
19285 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_SSE41 1" >>confdefs.h
19286
19287 fi
19288
19289
19290 #
19291 # Check whether GCC inline assembler supports AVX instructions
19292 #
19293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX instructions" >&5
19294 printf %s "checking whether GCC inline assembler supports AVX instructions... " >&6; }
19295 if test ${gcry_cv_gcc_inline_asm_avx+y}
19296 then :
19297 printf %s "(cached) " >&6
19298 else $as_nop
19299 if test "$mpi_cpu_arch" != "x86" ||
19300 test "$try_asm_modules" != "yes" ; then
19301 gcry_cv_gcc_inline_asm_avx="n/a"
19302 else
19303 gcry_cv_gcc_inline_asm_avx=no
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19306 void a(void) {
19307 __asm__("xgetbv; vaesdeclast (%[mem]),%%xmm0,%%xmm7\n\t"::[mem]"r"(0):);
19308 }
19309 int
19310 main (void)
19311 {
19312 a();
19313 ;
19314 return 0;
19315 }
19316 _ACEOF
19317 if ac_fn_c_try_link "$LINENO"
19318 then :
19319 gcry_cv_gcc_inline_asm_avx=yes
19320 fi
19321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19322 conftest$ac_exeext conftest.$ac_ext
19323 fi
19324 fi
19325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_avx" >&5
19326 printf "%s\n" "$gcry_cv_gcc_inline_asm_avx" >&6; }
19327 if test "$gcry_cv_gcc_inline_asm_avx" = "yes" ; then
19328
19329 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AVX 1" >>confdefs.h
19330
19331 fi
19332
19333
19334 #
19335 # Check whether GCC inline assembler supports AVX2 instructions
19336 #
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX2 instructions" >&5
19338 printf %s "checking whether GCC inline assembler supports AVX2 instructions... " >&6; }
19339 if test ${gcry_cv_gcc_inline_asm_avx2+y}
19340 then :
19341 printf %s "(cached) " >&6
19342 else $as_nop
19343 if test "$mpi_cpu_arch" != "x86" ||
19344 test "$try_asm_modules" != "yes" ; then
19345 gcry_cv_gcc_inline_asm_avx2="n/a"
19346 else
19347 gcry_cv_gcc_inline_asm_avx2=no
19348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19350 void a(void) {
19351 __asm__("xgetbv; vpbroadcastb %%xmm7,%%ymm1\n\t":::"cc");
19352 }
19353 int
19354 main (void)
19355 {
19356 a();
19357 ;
19358 return 0;
19359 }
19360 _ACEOF
19361 if ac_fn_c_try_link "$LINENO"
19362 then :
19363 gcry_cv_gcc_inline_asm_avx2=yes
19364 fi
19365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19366 conftest$ac_exeext conftest.$ac_ext
19367 fi
19368 fi
19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_avx2" >&5
19370 printf "%s\n" "$gcry_cv_gcc_inline_asm_avx2" >&6; }
19371 if test "$gcry_cv_gcc_inline_asm_avx2" = "yes" ; then
19372
19373 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AVX2 1" >>confdefs.h
19374
19375 fi
19376
19377
19378 #
19379 # Check whether GCC inline assembler supports AVX512 instructions
19380 #
19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX512 instructions" >&5
19382 printf %s "checking whether GCC inline assembler supports AVX512 instructions... " >&6; }
19383 if test ${gcry_cv_gcc_inline_asm_avx512+y}
19384 then :
19385 printf %s "(cached) " >&6
19386 else $as_nop
19387 if test "$mpi_cpu_arch" != "x86" ||
19388 test "$try_asm_modules" != "yes" ; then
19389 gcry_cv_gcc_inline_asm_avx512="n/a"
19390 else
19391 gcry_cv_gcc_inline_asm_avx512=no
19392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393 /* end confdefs.h. */
19394 void a(void) {
19395 __asm__("xgetbv; vpopcntq %%zmm7, %%zmm1%{%%k1%}%{z%};\n\t":::"cc");
19396 __asm__("vpexpandb %%zmm3, %%zmm1;\n\t":::"cc");
19397 __asm__("vpxorq %%xmm7, %%xmm7, %%xmm7;\n\t":::"cc");
19398 __asm__("vpxorq %%ymm7, %%ymm7, %%ymm7;\n\t":::"cc");
19399 __asm__("vpxorq (%%eax)%{1to8%}, %%zmm7, %%zmm7;\n\t":::"cc");
19400 }
19401 int
19402 main (void)
19403 {
19404 a();
19405 ;
19406 return 0;
19407 }
19408 _ACEOF
19409 if ac_fn_c_try_link "$LINENO"
19410 then :
19411 gcry_cv_gcc_inline_asm_avx512=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_avx512" >&5
19418 printf "%s\n" "$gcry_cv_gcc_inline_asm_avx512" >&6; }
19419 if test "$gcry_cv_gcc_inline_asm_avx512" = "yes" ; then
19420
19421 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AVX512 1" >>confdefs.h
19422
19423 fi
19424
19425
19426 #
19427 # Check whether GCC inline assembler supports VAES and VPCLMUL instructions
19428 #
19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports VAES and VPCLMUL instructions" >&5
19430 printf %s "checking whether GCC inline assembler supports VAES and VPCLMUL instructions... " >&6; }
19431 if test ${gcry_cv_gcc_inline_asm_vaes_vpclmul+y}
19432 then :
19433 printf %s "(cached) " >&6
19434 else $as_nop
19435 if test "$mpi_cpu_arch" != "x86" ||
19436 test "$try_asm_modules" != "yes" ; then
19437 gcry_cv_gcc_inline_asm_vaes_vpclmul="n/a"
19438 else
19439 gcry_cv_gcc_inline_asm_vaes_vpclmul=no
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19442 void a(void) {
19443 __asm__("vaesenclast %%ymm7,%%ymm7,%%ymm1\n\t":::"cc");/*256-bit*/
19444 __asm__("vaesenclast %%zmm7,%%zmm7,%%zmm1\n\t":::"cc");/*512-bit*/
19445 __asm__("vpclmulqdq \$0,%%ymm7,%%ymm7,%%ymm1\n\t":::"cc");/*256-bit*/
19446 __asm__("vpclmulqdq \$0,%%zmm7,%%zmm7,%%zmm1\n\t":::"cc");/*512-bit*/
19447 }
19448 int
19449 main (void)
19450 {
19451 a();
19452 ;
19453 return 0;
19454 }
19455 _ACEOF
19456 if ac_fn_c_try_link "$LINENO"
19457 then :
19458 gcry_cv_gcc_inline_asm_vaes_vpclmul=yes
19459 fi
19460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19461 conftest$ac_exeext conftest.$ac_ext
19462 fi
19463 fi
19464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_vaes_vpclmul" >&5
19465 printf "%s\n" "$gcry_cv_gcc_inline_asm_vaes_vpclmul" >&6; }
19466 if test "$gcry_cv_gcc_inline_asm_vaes_vpclmul" = "yes" ; then
19467
19468 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_VAES_VPCLMUL 1" >>confdefs.h
19469
19470 fi
19471
19472
19473 #
19474 # Check whether GCC inline assembler supports GFNI instructions
19475 #
19476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports GFNI instructions" >&5
19477 printf %s "checking whether GCC inline assembler supports GFNI instructions... " >&6; }
19478 if test ${gcry_cv_gcc_inline_asm_gfni+y}
19479 then :
19480 printf %s "(cached) " >&6
19481 else $as_nop
19482 if test "$mpi_cpu_arch" != "x86" ||
19483 test "$try_asm_modules" != "yes" ; then
19484 gcry_cv_gcc_inline_asm_gfni="n/a"
19485 else
19486 gcry_cv_gcc_inline_asm_gfni=no
19487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19488 /* end confdefs.h. */
19489 void a(void) {
19490 __asm__("gf2p8affineqb \$123, %%xmm0, %%xmm0;\n\t":::"cc"); /* SSE */
19491 __asm__("vgf2p8affineinvqb \$234, %%ymm1, %%ymm1, %%ymm1;\n\t":::"cc"); /* AVX */
19492 __asm__("vgf2p8mulb (%%eax), %%zmm2, %%zmm2;\n\t":::"cc"); /* AVX512 */
19493 }
19494 int
19495 main (void)
19496 {
19497 a();
19498 ;
19499 return 0;
19500 }
19501 _ACEOF
19502 if ac_fn_c_try_link "$LINENO"
19503 then :
19504 gcry_cv_gcc_inline_asm_gfni=yes
19505 fi
19506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19507 conftest$ac_exeext conftest.$ac_ext
19508 fi
19509 fi
19510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_gfni" >&5
19511 printf "%s\n" "$gcry_cv_gcc_inline_asm_gfni" >&6; }
19512 if test "$gcry_cv_gcc_inline_asm_gfni" = "yes" ; then
19513
19514 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_GFNI 1" >>confdefs.h
19515
19516 fi
19517
19518
19519 #
19520 # Check whether GCC inline assembler supports BMI2 instructions
19521 #
19522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports BMI2 instructions" >&5
19523 printf %s "checking whether GCC inline assembler supports BMI2 instructions... " >&6; }
19524 if test ${gcry_cv_gcc_inline_asm_bmi2+y}
19525 then :
19526 printf %s "(cached) " >&6
19527 else $as_nop
19528 if test "$mpi_cpu_arch" != "x86" ||
19529 test "$try_asm_modules" != "yes" ; then
19530 gcry_cv_gcc_inline_asm_bmi2="n/a"
19531 else
19532 gcry_cv_gcc_inline_asm_bmi2=no
19533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19535 unsigned int a(unsigned int x, unsigned int y) {
19536 unsigned int tmp1, tmp2;
19537 asm ("rorxl %2, %1, %0"
19538 : "=r" (tmp1)
19539 : "rm0" (x), "J" (32 - ((23) & 31)));
19540 asm ("andnl %2, %1, %0"
19541 : "=r" (tmp2)
19542 : "r0" (x), "rm" (y));
19543 return tmp1 + tmp2;
19544 }
19545 int
19546 main (void)
19547 {
19548 a(1, 2);
19549 ;
19550 return 0;
19551 }
19552 _ACEOF
19553 if ac_fn_c_try_link "$LINENO"
19554 then :
19555 gcry_cv_gcc_inline_asm_bmi2=yes
19556 fi
19557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19558 conftest$ac_exeext conftest.$ac_ext
19559 fi
19560 fi
19561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_bmi2" >&5
19562 printf "%s\n" "$gcry_cv_gcc_inline_asm_bmi2" >&6; }
19563 if test "$gcry_cv_gcc_inline_asm_bmi2" = "yes" ; then
19564
19565 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_BMI2 1" >>confdefs.h
19566
19567 fi
19568
19569
19570 #
19571 # Check whether compiler supports x86/AVX512 intrinsics
19572 #
19573 _gcc_cflags_save=$CFLAGS
19574 CFLAGS="$CFLAGS -mavx512f"
19575
19576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports x86/AVX512 intrinsics" >&5
19577 printf %s "checking whether compiler supports x86/AVX512 intrinsics... " >&6; }
19578 if test ${gcry_cv_cc_x86_avx512_intrinsics+y}
19579 then :
19580 printf %s "(cached) " >&6
19581 else $as_nop
19582 if test "$mpi_cpu_arch" != "x86" ||
19583 test "$try_asm_modules" != "yes" ; then
19584 gcry_cv_cc_x86_avx512_intrinsics="n/a"
19585 else
19586 gcry_cv_cc_x86_avx512_intrinsics=no
19587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19588 /* end confdefs.h. */
19589 #include <immintrin.h>
19590 __m512i fn(void *in, __m128i y)
19591 {
19592 __m512i x;
19593 x = _mm512_loadu_epi32 (in); /* check the GCC bug 90980. */
19594 x = _mm512_maskz_loadu_epi32(_cvtu32_mask16(0xfff0), in)
19595 ^ _mm512_castsi128_si512(y);
19596 asm volatile ("vinserti32x4 \$3, %0, %%zmm6, %%zmm6;\n\t"
19597 "vpxord %%zmm6, %%zmm6, %%zmm6"
19598 ::"x"(y),"r"(in):"memory","xmm6");
19599 return x;
19600 }
19601
19602 _ACEOF
19603 if ac_fn_c_try_compile "$LINENO"
19604 then :
19605 gcry_cv_cc_x86_avx512_intrinsics=yes
19606 fi
19607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19608 fi
19609 fi
19610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_x86_avx512_intrinsics" >&5
19611 printf "%s\n" "$gcry_cv_cc_x86_avx512_intrinsics" >&6; }
19612 if test "$gcry_cv_cc_x86_avx512_intrinsics" = "yes" ; then
19613
19614 printf "%s\n" "#define HAVE_COMPATIBLE_CC_X86_AVX512_INTRINSICS 1" >>confdefs.h
19615
19616 fi
19617
19618 if test "$gcry_cv_cc_x86_avx512_intrinsics" = "yes"; then
19619 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_TRUE=
19620 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_FALSE='#'
19621 else
19622 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_TRUE='#'
19623 ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_FALSE=
19624 fi
19625
19626
19627 # Restore flags.
19628 CFLAGS=$_gcc_cflags_save;
19629
19630
19631 #
19632 # Check whether GCC assembler needs "-Wa,--divide" to correctly handle
19633 # constant division
19634 #
19635 if test $amd64_as_feature_detection = yes; then
19636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler handles division correctly" >&5
19637 printf %s "checking whether GCC assembler handles division correctly... " >&6; }
19638 if test ${gcry_cv_gcc_as_const_division_ok+y}
19639 then :
19640 printf %s "(cached) " >&6
19641 else $as_nop
19642 gcry_cv_gcc_as_const_division_ok=no
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645 __asm__(".text\n\tfn:\n\t xorl \$(123456789/12345678), %ebp;\n\t");
19646 void fn(void);
19647 int
19648 main (void)
19649 {
19650 fn();
19651 ;
19652 return 0;
19653 }
19654 _ACEOF
19655 if ac_fn_c_try_link "$LINENO"
19656 then :
19657 gcry_cv_gcc_as_const_division_ok=yes
19658 fi
19659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19660 conftest$ac_exeext conftest.$ac_ext
19661 fi
19662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_as_const_division_ok" >&5
19663 printf "%s\n" "$gcry_cv_gcc_as_const_division_ok" >&6; }
19664 if test "$gcry_cv_gcc_as_const_division_ok" = "no" ; then
19665 #
19666 # Add '-Wa,--divide' to CPPFLAGS and try check again.
19667 #
19668 _gcc_cppflags_save="$CPPFLAGS"
19669 CPPFLAGS="$CPPFLAGS -Wa,--divide"
19670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler handles division correctly with \"-Wa,--divide\"" >&5
19671 printf %s "checking whether GCC assembler handles division correctly with \"-Wa,--divide\"... " >&6; }
19672 if test ${gcry_cv_gcc_as_const_division_with_wadivide_ok+y}
19673 then :
19674 printf %s "(cached) " >&6
19675 else $as_nop
19676 gcry_cv_gcc_as_const_division_with_wadivide_ok=no
19677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h. */
19679 __asm__(".text\n\tfn:\n\t xorl \$(123456789/12345678), %ebp;\n\t");
19680 void fn(void);
19681 int
19682 main (void)
19683 {
19684 fn();
19685 ;
19686 return 0;
19687 }
19688 _ACEOF
19689 if ac_fn_c_try_link "$LINENO"
19690 then :
19691 gcry_cv_gcc_as_const_division_with_wadivide_ok=yes
19692 fi
19693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19694 conftest$ac_exeext conftest.$ac_ext
19695 fi
19696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_as_const_division_with_wadivide_ok" >&5
19697 printf "%s\n" "$gcry_cv_gcc_as_const_division_with_wadivide_ok" >&6; }
19698 if test "$gcry_cv_gcc_as_const_division_with_wadivide_ok" = "no" ; then
19699 # '-Wa,--divide' did not work, restore old flags.
19700 CPPFLAGS="$_gcc_cppflags_save"
19701 fi
19702 fi
19703 fi
19704
19705
19706 #
19707 # Check whether compiler defines __x86_64__ macro (amd64 or x32)
19708 #
19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler defines __x86_64__ macro" >&5
19710 printf %s "checking whether compiler defines __x86_64__ macro... " >&6; }
19711 if test ${gcry_cv_compiler_defines__x86_64__+y}
19712 then :
19713 printf %s "(cached) " >&6
19714 else $as_nop
19715 if test "$mpi_cpu_arch" != "x86" ||
19716 test "$try_asm_modules" != "yes" ; then
19717 gcry_cv_compiler_defines__x86_64__="n/a"
19718 else
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19721
19722 int
19723 main (void)
19724 {
19725
19726 #ifndef __x86_64__
19727 # error "Architecture is not x86_64"
19728 #endif
19729
19730 ;
19731 return 0;
19732 }
19733 _ACEOF
19734 if ac_fn_c_try_compile "$LINENO"
19735 then :
19736 gcry_cv_compiler_defines__x86_64__=yes
19737 else $as_nop
19738 gcry_cv_compiler_defines__x86_64__=no
19739 fi
19740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19741 fi
19742 fi
19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_compiler_defines__x86_64__" >&5
19744 printf "%s\n" "$gcry_cv_compiler_defines__x86_64__" >&6; }
19745
19746
19747 #
19748 # Check whether GCC assembler supports features needed for our i386/amd64
19749 # implementations
19750 #
19751 if test $amd64_as_feature_detection = yes; then
19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for i386/amd64 assembly implementations" >&5
19753 printf %s "checking whether GCC assembler is compatible for i386/amd64 assembly implementations... " >&6; }
19754 if test ${gcry_cv_gcc_x86_platform_as_ok+y}
19755 then :
19756 printf %s "(cached) " >&6
19757 else $as_nop
19758 if test "$mpi_cpu_arch" != "x86" ||
19759 test "$try_asm_modules" != "yes" ; then
19760 gcry_cv_gcc_x86_platform_as_ok="n/a"
19761 else
19762 gcry_cv_gcc_x86_platform_as_ok=no
19763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19764 /* end confdefs.h. */
19765 __asm__(
19766 /* Test if '.type' and '.size' are supported. */
19767 /* These work only on ELF targets. */
19768 ".text\n\t"
19769 "asmfunc:\n\t"
19770 ".size asmfunc,.-asmfunc;\n\t"
19771 ".type asmfunc,@function;\n\t"
19772 /* Test if assembler allows use of '/' for constant division
19773 * (Solaris/x86 issue). If previous constant division check
19774 * and "-Wa,--divide" workaround failed, this causes assembly
19775 * to be disable on this machine. */
19776 "xorl \$(123456789/12345678), %ebp;\n\t"
19777 );
19778 void asmfunc(void);
19779 int
19780 main (void)
19781 {
19782 asmfunc();
19783 ;
19784 return 0;
19785 }
19786 _ACEOF
19787 if ac_fn_c_try_link "$LINENO"
19788 then :
19789 gcry_cv_gcc_x86_platform_as_ok=yes
19790 fi
19791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19792 conftest$ac_exeext conftest.$ac_ext
19793 fi
19794 fi
19795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_x86_platform_as_ok" >&5
19796 printf "%s\n" "$gcry_cv_gcc_x86_platform_as_ok" >&6; }
19797 if test "$gcry_cv_gcc_x86_platform_as_ok" = "yes" &&
19798 test "$gcry_cv_compiler_defines__x86_64__" = "yes" &&
19799 (test "$ac_cv_sizeof_unsigned_long" = "4" ||
19800 test "$ac_cv_sizeof_unsigned_long" = "8"); then
19801
19802 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS 1" >>confdefs.h
19803
19804 fi
19805 if test "$gcry_cv_gcc_x86_platform_as_ok" = "yes" &&
19806 test "$ac_cv_sizeof_unsigned_long" = "4"; then
19807
19808 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_I386_PLATFORM_AS 1" >>confdefs.h
19809
19810 fi
19811 if test "$gcry_cv_gcc_x86_platform_as_ok" = "no" &&
19812 test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" &&
19813 test "$gcry_cv_gcc_default_abi_is_ms_abi" = "yes"; then
19814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for WIN64 assembly implementations" >&5
19815 printf %s "checking whether GCC assembler is compatible for WIN64 assembly implementations... " >&6; }
19816 if test ${gcry_cv_gcc_win64_platform_as_ok+y}
19817 then :
19818 printf %s "(cached) " >&6
19819 else $as_nop
19820 gcry_cv_gcc_win64_platform_as_ok=no
19821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19822 /* end confdefs.h. */
19823 __asm__(
19824 ".text\n\t"
19825 ".globl asmfunc\n\t"
19826 "asmfunc:\n\t"
19827 "xorq \$(1234), %rbp;\n\t"
19828 );
19829 void asmfunc(void);
19830 int
19831 main (void)
19832 {
19833 asmfunc();
19834 ;
19835 return 0;
19836 }
19837 _ACEOF
19838 if ac_fn_c_try_link "$LINENO"
19839 then :
19840 gcry_cv_gcc_win64_platform_as_ok=yes
19841 fi
19842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19843 conftest$ac_exeext conftest.$ac_ext
19844 fi
19845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_win64_platform_as_ok" >&5
19846 printf "%s\n" "$gcry_cv_gcc_win64_platform_as_ok" >&6; }
19847 if test "$gcry_cv_gcc_win64_platform_as_ok" = "yes" ; then
19848
19849 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS 1" >>confdefs.h
19850
19851 fi
19852 fi
19853 if test "$gcry_cv_gcc_x86_platform_as_ok" = "no" &&
19854 test "$ac_cv_sizeof_unsigned_long" = "4"; then
19855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for WIN32 assembly implementations" >&5
19856 printf %s "checking whether GCC assembler is compatible for WIN32 assembly implementations... " >&6; }
19857 if test ${gcry_cv_gcc_win32_platform_as_ok+y}
19858 then :
19859 printf %s "(cached) " >&6
19860 else $as_nop
19861 gcry_cv_gcc_win32_platform_as_ok=no
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19864 __asm__(
19865 ".text\n\t"
19866 ".globl _asmfunc\n\t"
19867 "_asmfunc:\n\t"
19868 "xorl \$(1234), %ebp;\n\t"
19869 );
19870 void asmfunc(void);
19871 int
19872 main (void)
19873 {
19874 asmfunc();
19875 ;
19876 return 0;
19877 }
19878 _ACEOF
19879 if ac_fn_c_try_link "$LINENO"
19880 then :
19881 gcry_cv_gcc_win32_platform_as_ok=yes
19882 fi
19883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19884 conftest$ac_exeext conftest.$ac_ext
19885 fi
19886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_win32_platform_as_ok" >&5
19887 printf "%s\n" "$gcry_cv_gcc_win32_platform_as_ok" >&6; }
19888 if test "$gcry_cv_gcc_win32_platform_as_ok" = "yes" ; then
19889
19890 printf "%s\n" "#define HAVE_COMPATIBLE_GCC_WIN32_PLATFORM_AS 1" >>confdefs.h
19891
19892 fi
19893 fi
19894 fi
19895
19896
19897 #
19898 # Check whether GCC assembler supports features needed for assembly
19899 # implementations that use Intel syntax
19900 #
19901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for Intel syntax assembly implementations" >&5
19902 printf %s "checking whether GCC assembler is compatible for Intel syntax assembly implementations... " >&6; }
19903 if test ${gcry_cv_gcc_platform_as_ok_for_intel_syntax+y}
19904 then :
19905 printf %s "(cached) " >&6
19906 else $as_nop
19907 if test "$mpi_cpu_arch" != "x86" ||
19908 test "$try_asm_modules" != "yes" ; then
19909 gcry_cv_gcc_platform_as_ok_for_intel_syntax="n/a"
19910 else
19911 gcry_cv_gcc_platform_as_ok_for_intel_syntax=no
19912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19913 /* end confdefs.h. */
19914 __asm__(
19915 ".intel_syntax noprefix\n\t"
19916 ".text\n\t"
19917 "actest:\n\t"
19918 "pxor xmm1, xmm7;\n\t"
19919 "vperm2i128 ymm2, ymm3, ymm0, 1;\n\t"
19920 "add eax, ebp;\n\t"
19921 "rorx eax, ebp, 1;\n\t"
19922 "sub eax, [esp + 4];\n\t"
19923 "add dword ptr [esp + eax], 0b10101;\n\t"
19924 ".att_syntax prefix\n\t"
19925 );
19926 void actest(void);
19927 int
19928 main (void)
19929 {
19930 actest();
19931 ;
19932 return 0;
19933 }
19934 _ACEOF
19935 if ac_fn_c_try_link "$LINENO"
19936 then :
19937 gcry_cv_gcc_platform_as_ok_for_intel_syntax=yes
19938 fi
19939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19940 conftest$ac_exeext conftest.$ac_ext
19941 fi
19942 fi
19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_platform_as_ok_for_intel_syntax" >&5
19944 printf "%s\n" "$gcry_cv_gcc_platform_as_ok_for_intel_syntax" >&6; }
19945 if test "$gcry_cv_gcc_platform_as_ok_for_intel_syntax" = "yes" ; then
19946
19947 printf "%s\n" "#define HAVE_INTEL_SYNTAX_PLATFORM_AS 1" >>confdefs.h
19948
19949 fi
19950
19951
19952 #
19953 # Check whether compiler is configured for ARMv6 or newer architecture
19954 #
19955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler is configured for ARMv6 or newer architecture" >&5
19956 printf %s "checking whether compiler is configured for ARMv6 or newer architecture... " >&6; }
19957 if test ${gcry_cv_cc_arm_arch_is_v6+y}
19958 then :
19959 printf %s "(cached) " >&6
19960 else $as_nop
19961 if test "$mpi_cpu_arch" != "arm" ||
19962 test "$try_asm_modules" != "yes" ; then
19963 gcry_cv_cc_arm_arch_is_v6="n/a"
19964 else
19965 gcry_cv_cc_arm_arch_is_v6=no
19966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19967 /* end confdefs.h. */
19968
19969 #if defined(__arm__) && \
19970 ((defined(__ARM_ARCH) && __ARM_ARCH >= 6) \
19971 || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
19972 || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) \
19973 || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) \
19974 || defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
19975 || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \
19976 || defined(__ARM_ARCH_7EM__))
19977 /* empty */
19978 #else
19979 /* fail compile if not ARMv6. */
19980 not_armv6 not_armv6 = (not_armv6)not_armv6;
19981 #endif
19982
19983 _ACEOF
19984 if ac_fn_c_try_compile "$LINENO"
19985 then :
19986 gcry_cv_cc_arm_arch_is_v6=yes
19987 fi
19988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19989 fi
19990 fi
19991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_arm_arch_is_v6" >&5
19992 printf "%s\n" "$gcry_cv_cc_arm_arch_is_v6" >&6; }
19993 if test "$gcry_cv_cc_arm_arch_is_v6" = "yes" ; then
19994
19995 printf "%s\n" "#define HAVE_ARM_ARCH_V6 1" >>confdefs.h
19996
19997 fi
19998
19999
20000 #
20001 # Check whether GCC inline assembler supports NEON instructions
20002 #
20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports NEON instructions" >&5
20004 printf %s "checking whether GCC inline assembler supports NEON instructions... " >&6; }
20005 if test ${gcry_cv_gcc_inline_asm_neon+y}
20006 then :
20007 printf %s "(cached) " >&6
20008 else $as_nop
20009 if test "$mpi_cpu_arch" != "arm" ||
20010 test "$try_asm_modules" != "yes" ; then
20011 gcry_cv_gcc_inline_asm_neon="n/a"
20012 else
20013 gcry_cv_gcc_inline_asm_neon=no
20014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20015 /* end confdefs.h. */
20016 __asm__(
20017 ".syntax unified\n\t"
20018 ".arm\n\t"
20019 ".fpu neon\n\t"
20020 ".text\n\t"
20021 "testfn:\n\t"
20022 "vld1.64 {q0-q1}, [r0]!;\n\t"
20023 "vrev64.8 q0, q3;\n\t"
20024 "vadd.u64 q0, q1;\n\t"
20025 "vadd.s64 d3, d2, d3;\n\t"
20026 );
20027 void testfn(void);
20028
20029 int
20030 main (void)
20031 {
20032 testfn();
20033 ;
20034 return 0;
20035 }
20036 _ACEOF
20037 if ac_fn_c_try_link "$LINENO"
20038 then :
20039 gcry_cv_gcc_inline_asm_neon=yes
20040 fi
20041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20042 conftest$ac_exeext conftest.$ac_ext
20043 fi
20044 fi
20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_neon" >&5
20046 printf "%s\n" "$gcry_cv_gcc_inline_asm_neon" >&6; }
20047 if test "$gcry_cv_gcc_inline_asm_neon" = "yes" ; then
20048
20049 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_NEON 1" >>confdefs.h
20050
20051 fi
20052
20053
20054 #
20055 # Check whether GCC inline assembler supports AArch32 Crypto Extension instructions
20056 #
20057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch32 Crypto Extension instructions" >&5
20058 printf %s "checking whether GCC inline assembler supports AArch32 Crypto Extension instructions... " >&6; }
20059 if test ${gcry_cv_gcc_inline_asm_aarch32_crypto+y}
20060 then :
20061 printf %s "(cached) " >&6
20062 else $as_nop
20063 if test "$mpi_cpu_arch" != "arm" ||
20064 test "$try_asm_modules" != "yes" ; then
20065 gcry_cv_gcc_inline_asm_aarch32_crypto="n/a"
20066 else
20067 gcry_cv_gcc_inline_asm_aarch32_crypto=no
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20070 __asm__(
20071 ".syntax unified\n\t"
20072 ".arch armv8-a\n\t"
20073 ".arm\n\t"
20074 ".fpu crypto-neon-fp-armv8\n\t"
20075 ".text\n\t"
20076
20077 "testfn:\n\t"
20078 "sha1h.32 q0, q0;\n\t"
20079 "sha1c.32 q0, q0, q0;\n\t"
20080 "sha1p.32 q0, q0, q0;\n\t"
20081 "sha1su0.32 q0, q0, q0;\n\t"
20082 "sha1su1.32 q0, q0;\n\t"
20083
20084 "sha256h.32 q0, q0, q0;\n\t"
20085 "sha256h2.32 q0, q0, q0;\n\t"
20086 "sha1p.32 q0, q0, q0;\n\t"
20087 "sha256su0.32 q0, q0;\n\t"
20088 "sha256su1.32 q0, q0, q15;\n\t"
20089
20090 "aese.8 q0, q0;\n\t"
20091 "aesd.8 q0, q0;\n\t"
20092 "aesmc.8 q0, q0;\n\t"
20093 "aesimc.8 q0, q0;\n\t"
20094
20095 "vmull.p64 q0, d0, d0;\n\t"
20096 );
20097 void testfn(void);
20098
20099 int
20100 main (void)
20101 {
20102 testfn();
20103 ;
20104 return 0;
20105 }
20106 _ACEOF
20107 if ac_fn_c_try_link "$LINENO"
20108 then :
20109 gcry_cv_gcc_inline_asm_aarch32_crypto=yes
20110 fi
20111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20112 conftest$ac_exeext conftest.$ac_ext
20113 fi
20114 fi
20115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch32_crypto" >&5
20116 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch32_crypto" >&6; }
20117 if test "$gcry_cv_gcc_inline_asm_aarch32_crypto" = "yes" ; then
20118
20119 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH32_CRYPTO 1" >>confdefs.h
20120
20121 fi
20122
20123
20124 #
20125 # Check whether GCC inline assembler supports AArch64 NEON instructions
20126 #
20127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 NEON instructions" >&5
20128 printf %s "checking whether GCC inline assembler supports AArch64 NEON instructions... " >&6; }
20129 if test ${gcry_cv_gcc_inline_asm_aarch64_neon+y}
20130 then :
20131 printf %s "(cached) " >&6
20132 else $as_nop
20133 if test "$mpi_cpu_arch" != "aarch64" ||
20134 test "$try_asm_modules" != "yes" ; then
20135 gcry_cv_gcc_inline_asm_aarch64_neon="n/a"
20136 else
20137 gcry_cv_gcc_inline_asm_aarch64_neon=no
20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139 /* end confdefs.h. */
20140 __asm__(
20141 ".cpu generic+simd\n\t"
20142 ".text\n\t"
20143 "testfn:\n\t"
20144 "mov w0, \#42;\n\t"
20145 "dup v0.8b, w0;\n\t"
20146 "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
20147 );
20148 void testfn(void);
20149
20150 int
20151 main (void)
20152 {
20153 testfn();
20154 ;
20155 return 0;
20156 }
20157 _ACEOF
20158 if ac_fn_c_try_link "$LINENO"
20159 then :
20160 gcry_cv_gcc_inline_asm_aarch64_neon=yes
20161 fi
20162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20163 conftest$ac_exeext conftest.$ac_ext
20164 fi
20165 fi
20166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_neon" >&5
20167 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_neon" >&6; }
20168 if test "$gcry_cv_gcc_inline_asm_aarch64_neon" = "yes" ; then
20169
20170 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_NEON 1" >>confdefs.h
20171
20172 fi
20173
20174
20175 #
20176 # Check whether GCC inline assembler supports AArch64 Crypto Extension instructions
20177 #
20178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 Crypto Extension instructions" >&5
20179 printf %s "checking whether GCC inline assembler supports AArch64 Crypto Extension instructions... " >&6; }
20180 if test ${gcry_cv_gcc_inline_asm_aarch64_crypto+y}
20181 then :
20182 printf %s "(cached) " >&6
20183 else $as_nop
20184 if test "$mpi_cpu_arch" != "aarch64" ||
20185 test "$try_asm_modules" != "yes" ; then
20186 gcry_cv_gcc_inline_asm_aarch64_crypto="n/a"
20187 else
20188 gcry_cv_gcc_inline_asm_aarch64_crypto=no
20189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20190 /* end confdefs.h. */
20191 __asm__(
20192 ".cpu generic+simd+crypto\n\t"
20193 ".text\n\t"
20194 "testfn:\n\t"
20195 "mov w0, \#42;\n\t"
20196 "dup v0.8b, w0;\n\t"
20197 "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
20198
20199 "sha1h s0, s0;\n\t"
20200 "sha1c q0, s0, v0.4s;\n\t"
20201 "sha1p q0, s0, v0.4s;\n\t"
20202 "sha1su0 v0.4s, v0.4s, v0.4s;\n\t"
20203 "sha1su1 v0.4s, v0.4s;\n\t"
20204
20205 "sha256h q0, q0, v0.4s;\n\t"
20206 "sha256h2 q0, q0, v0.4s;\n\t"
20207 "sha1p q0, s0, v0.4s;\n\t"
20208 "sha256su0 v0.4s, v0.4s;\n\t"
20209 "sha256su1 v0.4s, v0.4s, v31.4s;\n\t"
20210
20211 "aese v0.16b, v0.16b;\n\t"
20212 "aesd v0.16b, v0.16b;\n\t"
20213 "aesmc v0.16b, v0.16b;\n\t"
20214 "aesimc v0.16b, v0.16b;\n\t"
20215
20216 "pmull v0.1q, v0.1d, v31.1d;\n\t"
20217 "pmull2 v0.1q, v0.2d, v31.2d;\n\t"
20218 );
20219 void testfn(void);
20220
20221 int
20222 main (void)
20223 {
20224 testfn();
20225 ;
20226 return 0;
20227 }
20228 _ACEOF
20229 if ac_fn_c_try_link "$LINENO"
20230 then :
20231 gcry_cv_gcc_inline_asm_aarch64_crypto=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_aarch64_crypto" >&5
20238 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_crypto" >&6; }
20239 if test "$gcry_cv_gcc_inline_asm_aarch64_crypto" = "yes" ; then
20240
20241 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_CRYPTO 1" >>confdefs.h
20242
20243 fi
20244
20245
20246 #
20247 # Check whether GCC inline assembler supports AArch64 SVE instructions
20248 #
20249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 SVE instructions" >&5
20250 printf %s "checking whether GCC inline assembler supports AArch64 SVE instructions... " >&6; }
20251 if test ${gcry_cv_gcc_inline_asm_aarch64_sve+y}
20252 then :
20253 printf %s "(cached) " >&6
20254 else $as_nop
20255 if test "$mpi_cpu_arch" != "aarch64" ||
20256 test "$try_asm_modules" != "yes" ; then
20257 gcry_cv_gcc_inline_asm_aarch64_sve="n/a"
20258 else
20259 gcry_cv_gcc_inline_asm_aarch64_sve=no
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h. */
20262 __asm__(
20263 ".cpu generic+simd+sve\n\t"
20264 ".text\n\t"
20265 "testfn:\n\t"
20266 "mov x0, \#60;\n\t"
20267 "whilelo p0.s, xzr, x0;\n\t"
20268 "mov z0.s, p0/z, \#55;\n\t"
20269 "ld1b {z0.b}, p0/z, [x1];\n\t"
20270 );
20271 void testfn(void);
20272
20273 int
20274 main (void)
20275 {
20276 testfn();
20277 ;
20278 return 0;
20279 }
20280 _ACEOF
20281 if ac_fn_c_try_link "$LINENO"
20282 then :
20283 gcry_cv_gcc_inline_asm_aarch64_sve=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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_sve" >&5
20290 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_sve" >&6; }
20291 if test "$gcry_cv_gcc_inline_asm_aarch64_sve" = "yes" ; then
20292
20293 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_SVE 1" >>confdefs.h
20294
20295 fi
20296
20297
20298 #
20299 # Check whether GCC inline assembler supports AArch64 SVE2 instructions
20300 #
20301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 SVE2 instructions" >&5
20302 printf %s "checking whether GCC inline assembler supports AArch64 SVE2 instructions... " >&6; }
20303 if test ${gcry_cv_gcc_inline_asm_aarch64_sve2+y}
20304 then :
20305 printf %s "(cached) " >&6
20306 else $as_nop
20307 if test "$mpi_cpu_arch" != "aarch64" ||
20308 test "$try_asm_modules" != "yes" ; then
20309 gcry_cv_gcc_inline_asm_aarch64_sve2="n/a"
20310 else
20311 gcry_cv_gcc_inline_asm_aarch64_sve2=no
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h. */
20314 __asm__(
20315 ".cpu generic+simd+sve2\n\t"
20316 ".text\n\t"
20317 "testfn:\n\t"
20318 ";\n\t"
20319 "eor3 z0.d, z0.d, z1.d, z2.d;\n\t"
20320 "ext z8.b, {z20.b, z21.b}, \#3;\n\t"
20321 "adclt z0.d, z1.d, z2.d;\n\t"
20322 "tbl z0.b, {z8.b, z9.b}, z1.b;\n\t"
20323 "addhnb z16.s, z17.d, z18.d;\n\t"
20324 "mov z0.s, p0/z, \#55;\n\t"
20325 "ld1b {z0.b}, p0/z, [x1];\n\t"
20326 );
20327 void testfn(void);
20328
20329 int
20330 main (void)
20331 {
20332 testfn();
20333 ;
20334 return 0;
20335 }
20336 _ACEOF
20337 if ac_fn_c_try_link "$LINENO"
20338 then :
20339 gcry_cv_gcc_inline_asm_aarch64_sve2=yes
20340 fi
20341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20342 conftest$ac_exeext conftest.$ac_ext
20343 fi
20344 fi
20345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_sve2" >&5
20346 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_sve2" >&6; }
20347 if test "$gcry_cv_gcc_inline_asm_aarch64_sve2" = "yes" ; then
20348
20349 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_SVE2 1" >>confdefs.h
20350
20351 fi
20352
20353
20354 #
20355 # Check whether GCC inline assembler supports AArch64 SHA3/SHA512/SM3/SM4 instructions
20356 #
20357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 SHA3/SHA512/SM3/SM4 instructions" >&5
20358 printf %s "checking whether GCC inline assembler supports AArch64 SHA3/SHA512/SM3/SM4 instructions... " >&6; }
20359 if test ${gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4+y}
20360 then :
20361 printf %s "(cached) " >&6
20362 else $as_nop
20363 if test "$mpi_cpu_arch" != "aarch64" ||
20364 test "$try_asm_modules" != "yes" ; then
20365 gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4="n/a"
20366 else
20367 gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4=no
20368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h. */
20370 __asm__(
20371 ".arch armv8.2-a+sha3+sm4\n\t"
20372 ".text\n\t"
20373 "testfn:\n\t"
20374
20375 /* Test for SHA512 instructions */
20376 "sha512h q0, q0, v0.2d;\n\t"
20377 "sha512h2 q0, q0, v0.2d;\n\t"
20378 "sha512su0 v0.2d, v0.2d;\n\t"
20379 "sha512su1 v0.2d, v0.2d, v31.2d;\n\t"
20380
20381 /* Test for SHA3 instructions */
20382 "bcax v0.16b, v1.16b, v2.16b, v3.16b;\n\t"
20383 "eor3 v0.16b, v1.16b, v2.16b, v3.16b;\n\t"
20384 "rax1 v0.2d, v1.2d, v2.2d;\n\t"
20385 "xar v0.2d, v1.2d, v2.2d, \#1;\n\t"
20386
20387 /* Test for SM3 instructions */
20388 "sm3partw1 v0.4s, v1.4s, v2.4s;\n\t"
20389 "sm3partw2 v0.4s, v1.4s, v2.4s;\n\t"
20390 "sm3ss1 v0.4s, v1.4s, v2.4s, v3.4s;\n\t"
20391 "sm3tt1a v0.4s, v1.4s, v2.s[0];\n\t"
20392 "sm3tt1b v0.4s, v1.4s, v2.s[0];\n\t"
20393 "sm3tt2a v0.4s, v1.4s, v2.s[0];\n\t"
20394 "sm3tt2b v0.4s, v1.4s, v2.s[0];\n\t"
20395
20396 /* Test for SM4 instructions */
20397 "sm4e v0.4s, v1.4s;\n\t"
20398 "sm4ekey v0.4s, v1.4s, v2.4s;\n\t"
20399 );
20400 void testfn(void);
20401
20402 int
20403 main (void)
20404 {
20405 testfn();
20406 ;
20407 return 0;
20408 }
20409 _ACEOF
20410 if ac_fn_c_try_link "$LINENO"
20411 then :
20412 gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4=yes
20413 fi
20414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20415 conftest$ac_exeext conftest.$ac_ext
20416 fi
20417 fi
20418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4" >&5
20419 printf "%s\n" "$gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4" >&6; }
20420 if test "$gcry_cv_gcc_inline_asm_aarch64_sha3_sha512_sm3_sm4" = "yes" ; then
20421
20422 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_AARCH64_SHA3_SHA512_SM3_SM4 1" >>confdefs.h
20423
20424 fi
20425
20426
20427 #
20428 # Check whether compiler supports AArch64/NEON/crypto intrinsics
20429 #
20430
20431
20432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports AArch64/NEON/crypto intrinsics" >&5
20433 printf %s "checking whether compiler supports AArch64/NEON/crypto intrinsics... " >&6; }
20434 if test ${gcry_cv_cc_aarch64_neon_intrinsics+y}
20435 then :
20436 printf %s "(cached) " >&6
20437 else $as_nop
20438 if test "$mpi_cpu_arch" != "aarch64" ||
20439 test "$try_asm_modules" != "yes" ; then
20440 gcry_cv_cc_aarch64_neon_intrinsics="n/a"
20441 else
20442 gcry_cv_cc_aarch64_neon_intrinsics=no
20443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h. */
20445 #include <arm_neon.h>
20446 #define __m128i uint64x2_t
20447 #define vpsrldq128(s, a, o) \
20448 ({ uint64x2_t __tmp = { 0, 0 }; \
20449 o = (__m128i)vextq_u8((uint8x16_t)a, \
20450 (uint8x16_t)__tmp, (s) & 15); })
20451 #define vaesenclast128(a, b, o) \
20452 (o = (__m128i)vaeseq_u8((uint8x16_t)b, (uint8x16_t)a))
20453 #define memory_barrier_with_vec(a) __asm__("" : "+w"(a) :: "memory")
20454 static inline __attribute__((always_inline)) __m128i
20455 fn2(__m128i a)
20456 {
20457 vpsrldq128(2, a, a);
20458 return a;
20459 }
20460 __m128i fn(__m128i in)
20461 {
20462 __m128i x;
20463 memory_barrier_with_vec(in);
20464 x = fn2(in);
20465 memory_barrier_with_vec(x);
20466 vaesenclast128(in, x, in);
20467 memory_barrier_with_vec(in);
20468 return in;
20469 }
20470
20471
20472
20473 _ACEOF
20474 if ac_fn_c_try_compile "$LINENO"
20475 then :
20476 gcry_cv_cc_aarch64_neon_intrinsics=yes
20477 fi
20478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20479 fi
20480 fi
20481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_aarch64_neon_intrinsics" >&5
20482 printf "%s\n" "$gcry_cv_cc_aarch64_neon_intrinsics" >&6; }
20483 if test "$gcry_cv_cc_aarch64_neon_intrinsics" = "yes" ; then
20484
20485 printf "%s\n" "#define HAVE_COMPATIBLE_CC_AARCH64_NEON_INTRINSICS 1" >>confdefs.h
20486
20487 fi
20488
20489 _gcc_cflags_save=$CFLAGS
20490 CFLAGS="$CFLAGS -O2 -march=armv8-a+crypto"
20491
20492 if test "$gcry_cv_cc_aarch64_neon_intrinsics" = "no" &&
20493 test "$mpi_cpu_arch" = "aarch64" &&
20494 test "$try_asm_modules" = "yes" ; then
20495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports AArch64/NEON/crypto intrinsics with extra GCC flags" >&5
20496 printf %s "checking whether compiler supports AArch64/NEON/crypto intrinsics with extra GCC flags... " >&6; }
20497 if test ${gcry_cv_cc_aarch64_neon_intrinsics_cflags+y}
20498 then :
20499 printf %s "(cached) " >&6
20500 else $as_nop
20501
20502 gcry_cv_cc_aarch64_neon_intrinsics_cflags=no
20503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20504 /* end confdefs.h. */
20505 #include <arm_neon.h>
20506 #define __m128i uint64x2_t
20507 #define vpsrldq128(s, a, o) \
20508 ({ uint64x2_t __tmp = { 0, 0 }; \
20509 o = (__m128i)vextq_u8((uint8x16_t)a, \
20510 (uint8x16_t)__tmp, (s) & 15); })
20511 #define vaesenclast128(a, b, o) \
20512 (o = (__m128i)vaeseq_u8((uint8x16_t)b, (uint8x16_t)a))
20513 #define memory_barrier_with_vec(a) __asm__("" : "+w"(a) :: "memory")
20514 static inline __attribute__((always_inline)) __m128i
20515 fn2(__m128i a)
20516 {
20517 vpsrldq128(2, a, a);
20518 return a;
20519 }
20520 __m128i fn(__m128i in)
20521 {
20522 __m128i x;
20523 memory_barrier_with_vec(in);
20524 x = fn2(in);
20525 memory_barrier_with_vec(x);
20526 vaesenclast128(in, x, in);
20527 memory_barrier_with_vec(in);
20528 return in;
20529 }
20530
20531
20532
20533 _ACEOF
20534 if ac_fn_c_try_compile "$LINENO"
20535 then :
20536 gcry_cv_cc_aarch64_neon_intrinsics_cflags=yes
20537 fi
20538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20539
20540 fi
20541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_aarch64_neon_intrinsics_cflags" >&5
20542 printf "%s\n" "$gcry_cv_cc_aarch64_neon_intrinsics_cflags" >&6; }
20543 if test "$gcry_cv_cc_aarch64_neon_intrinsics_cflags" = "yes" ; then
20544
20545 printf "%s\n" "#define HAVE_COMPATIBLE_CC_AARCH64_NEON_INTRINSICS 1" >>confdefs.h
20546
20547
20548 printf "%s\n" "#define HAVE_COMPATIBLE_CC_AARCH64_NEON_INTRINSICS_WITH_CFLAGS 1" >>confdefs.h
20549
20550 fi
20551 fi
20552
20553 if test "$gcry_cv_cc_aarch64_neon_intrinsics_cflags" = "yes"; then
20554 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_TRUE=
20555 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_FALSE='#'
20556 else
20557 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_TRUE='#'
20558 ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_FALSE=
20559 fi
20560
20561
20562 # Restore flags.
20563 CFLAGS=$_gcc_cflags_save;
20564
20565
20566 #
20567 # Check whether compiler supports PowerPC AltiVec/VSX intrinsics
20568 #
20569
20570
20571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports PowerPC AltiVec/VSX/crypto intrinsics" >&5
20572 printf %s "checking whether compiler supports PowerPC AltiVec/VSX/crypto intrinsics... " >&6; }
20573 if test ${gcry_cv_cc_ppc_altivec+y}
20574 then :
20575 printf %s "(cached) " >&6
20576 else $as_nop
20577 if test "$mpi_cpu_arch" != "ppc" ||
20578 test "$try_asm_modules" != "yes" ; then
20579 gcry_cv_cc_ppc_altivec="n/a"
20580 else
20581 gcry_cv_cc_ppc_altivec=no
20582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20583 /* end confdefs.h. */
20584 #include <altivec.h>
20585 typedef vector unsigned char block;
20586 typedef vector unsigned int vecu32;
20587 static inline __attribute__((always_inline)) vecu32
20588 vec_sld_u32(vecu32 a, vecu32 b, unsigned int idx)
20589 {
20590 return vec_sld (a, b, (4 * idx) & 15);
20591 }
20592 block fn(block in)
20593 {
20594 block t = vec_perm (in, in, vec_vsx_ld (0, (unsigned char*)0));
20595 vecu32 y = vec_vsx_ld (0, (unsigned int*)0);
20596 y = vec_sld_u32 (y, y, 3);
20597 return vec_cipher_be (t, in) ^ (block)y;
20598 }
20599
20600
20601
20602 _ACEOF
20603 if ac_fn_c_try_compile "$LINENO"
20604 then :
20605 gcry_cv_cc_ppc_altivec=yes
20606 fi
20607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20608 fi
20609 fi
20610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_ppc_altivec" >&5
20611 printf "%s\n" "$gcry_cv_cc_ppc_altivec" >&6; }
20612 if test "$gcry_cv_cc_ppc_altivec" = "yes" ; then
20613
20614 printf "%s\n" "#define HAVE_COMPATIBLE_CC_PPC_ALTIVEC 1" >>confdefs.h
20615
20616 fi
20617
20618 _gcc_cflags_save=$CFLAGS
20619 CFLAGS="$CFLAGS -O2 -maltivec -mvsx -mcrypto"
20620
20621 if test "$gcry_cv_cc_ppc_altivec" = "no" &&
20622 test "$mpi_cpu_arch" = "ppc" &&
20623 test "$try_asm_modules" = "yes" ; then
20624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports PowerPC AltiVec/VSX/crypto intrinsics with extra GCC flags" >&5
20625 printf %s "checking whether compiler supports PowerPC AltiVec/VSX/crypto intrinsics with extra GCC flags... " >&6; }
20626 if test ${gcry_cv_cc_ppc_altivec_cflags+y}
20627 then :
20628 printf %s "(cached) " >&6
20629 else $as_nop
20630
20631 gcry_cv_cc_ppc_altivec_cflags=no
20632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h. */
20634 #include <altivec.h>
20635 typedef vector unsigned char block;
20636 typedef vector unsigned int vecu32;
20637 static inline __attribute__((always_inline)) vecu32
20638 vec_sld_u32(vecu32 a, vecu32 b, unsigned int idx)
20639 {
20640 return vec_sld (a, b, (4 * idx) & 15);
20641 }
20642 block fn(block in)
20643 {
20644 block t = vec_perm (in, in, vec_vsx_ld (0, (unsigned char*)0));
20645 vecu32 y = vec_vsx_ld (0, (unsigned int*)0);
20646 y = vec_sld_u32 (y, y, 3);
20647 return vec_cipher_be (t, in) ^ (block)y;
20648 }
20649
20650
20651
20652 _ACEOF
20653 if ac_fn_c_try_compile "$LINENO"
20654 then :
20655 gcry_cv_cc_ppc_altivec_cflags=yes
20656 fi
20657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20658
20659 fi
20660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_ppc_altivec_cflags" >&5
20661 printf "%s\n" "$gcry_cv_cc_ppc_altivec_cflags" >&6; }
20662 if test "$gcry_cv_cc_ppc_altivec_cflags" = "yes" ; then
20663
20664 printf "%s\n" "#define HAVE_COMPATIBLE_CC_PPC_ALTIVEC 1" >>confdefs.h
20665
20666
20667 printf "%s\n" "#define HAVE_COMPATIBLE_CC_PPC_ALTIVEC_WITH_CFLAGS 1" >>confdefs.h
20668
20669 fi
20670 fi
20671
20672 if test "$gcry_cv_cc_ppc_altivec_cflags" = "yes"; then
20673 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_TRUE=
20674 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_FALSE='#'
20675 else
20676 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_TRUE='#'
20677 ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_FALSE=
20678 fi
20679
20680
20681 # Restore flags.
20682 CFLAGS=$_gcc_cflags_save;
20683
20684
20685 #
20686 # Check whether GCC inline assembler supports PowerPC AltiVec/VSX/crypto instructions
20687 #
20688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports PowerPC AltiVec/VSX/crypto instructions" >&5
20689 printf %s "checking whether GCC inline assembler supports PowerPC AltiVec/VSX/crypto instructions... " >&6; }
20690 if test ${gcry_cv_gcc_inline_asm_ppc_altivec+y}
20691 then :
20692 printf %s "(cached) " >&6
20693 else $as_nop
20694 if test "$mpi_cpu_arch" != "ppc" ||
20695 test "$try_asm_modules" != "yes" ; then
20696 gcry_cv_gcc_inline_asm_ppc_altivec="n/a"
20697 else
20698 gcry_cv_gcc_inline_asm_ppc_altivec=no
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20701 __asm__(".machine \"any\"\n"
20702 ".abiversion 2\n"
20703 ".globl testfn;\n"
20704 ".text\n\t"
20705 "testfn:\n"
20706 "stvx %v31,%r12,%r0;\n"
20707 "lvx %v20,%r12,%r0;\n"
20708 "vcipher %v0, %v1, %v22;\n"
20709 "lxvw4x %vs32, %r0, %r1;\n"
20710 "vadduwm %v0, %v1, %v22;\n"
20711 "vshasigmaw %v0, %v1, 0, 15;\n"
20712 "vshasigmad %v0, %v1, 0, 15;\n"
20713 "vpmsumd %v11, %v11, %v11;\n"
20714 );
20715 void testfn(void);
20716
20717 int
20718 main (void)
20719 {
20720 testfn();
20721 ;
20722 return 0;
20723 }
20724 _ACEOF
20725 if ac_fn_c_try_link "$LINENO"
20726 then :
20727 gcry_cv_gcc_inline_asm_ppc_altivec=yes
20728 fi
20729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20730 conftest$ac_exeext conftest.$ac_ext
20731 fi
20732 fi
20733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_ppc_altivec" >&5
20734 printf "%s\n" "$gcry_cv_gcc_inline_asm_ppc_altivec" >&6; }
20735 if test "$gcry_cv_gcc_inline_asm_ppc_altivec" = "yes" ; then
20736
20737 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_PPC_ALTIVEC 1" >>confdefs.h
20738
20739 fi
20740
20741
20742 #
20743 # Check whether GCC inline assembler supports PowerISA 3.00 instructions
20744 #
20745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports PowerISA 3.00 instructions" >&5
20746 printf %s "checking whether GCC inline assembler supports PowerISA 3.00 instructions... " >&6; }
20747 if test ${gcry_cv_gcc_inline_asm_ppc_arch_3_00+y}
20748 then :
20749 printf %s "(cached) " >&6
20750 else $as_nop
20751 if test "$mpi_cpu_arch" != "ppc" ||
20752 test "$try_asm_modules" != "yes" ; then
20753 gcry_cv_gcc_inline_asm_ppc_arch_3_00="n/a"
20754 else
20755 gcry_cv_gcc_inline_asm_ppc_arch_3_00=no
20756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20757 /* end confdefs.h. */
20758 __asm__(".machine \"any\"\n"
20759 ".abiversion 2\n"
20760 ".text\n\t"
20761 ".globl testfn;\n"
20762 "testfn:\n"
20763 "stxvb16x %r1,%v12,%v30;\n"
20764 );
20765 void testfn(void);
20766
20767 int
20768 main (void)
20769 {
20770 testfn();
20771 ;
20772 return 0;
20773 }
20774 _ACEOF
20775 if ac_fn_c_try_link "$LINENO"
20776 then :
20777 gcry_cv_gcc_inline_asm_ppc_arch_3_00=yes
20778 fi
20779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20780 conftest$ac_exeext conftest.$ac_ext
20781 fi
20782 fi
20783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_ppc_arch_3_00" >&5
20784 printf "%s\n" "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" >&6; }
20785 if test "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" = "yes" ; then
20786
20787 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_PPC_ARCH_3_00 1" >>confdefs.h
20788
20789 fi
20790
20791
20792 #
20793 # Check whether compiler supports GCC PowerPC target attributes
20794 #
20795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports GCC PowerPC target attributes" >&5
20796 printf %s "checking whether compiler supports GCC PowerPC target attributes... " >&6; }
20797 if test ${gcry_cv_gcc_attribute_ppc_target+y}
20798 then :
20799 printf %s "(cached) " >&6
20800 else $as_nop
20801 if test "$mpi_cpu_arch" != "ppc" ; then
20802 gcry_cv_gcc_attribute_ppc_target="n/a"
20803 else
20804 gcry_cv_gcc_attribute_ppc_target=no
20805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20806 /* end confdefs.h. */
20807 void __attribute__((always_inline)) inline aifn(void) {}
20808 void __attribute__((target("cpu=power8"))) testfn8(void) {aifn();}
20809 void __attribute__((target("cpu=power9"))) testfn9(void)
20810 { testfn8(); aifn(); }
20811
20812 int
20813 main (void)
20814 {
20815 testfn9(); aifn();
20816 ;
20817 return 0;
20818 }
20819 _ACEOF
20820 if ac_fn_c_try_link "$LINENO"
20821 then :
20822 gcry_cv_gcc_attribute_ppc_target=yes
20823 fi
20824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20825 conftest$ac_exeext conftest.$ac_ext
20826 fi
20827 fi
20828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_ppc_target" >&5
20829 printf "%s\n" "$gcry_cv_gcc_attribute_ppc_target" >&6; }
20830 if test "$gcry_cv_gcc_attribute_ppc_target" = "yes" ; then
20831
20832 printf "%s\n" "#define HAVE_GCC_ATTRIBUTE_PPC_TARGET 1" >>confdefs.h
20833
20834 fi
20835
20836
20837 #
20838 # Check whether compiler supports clang PowerPC target attributes
20839 #
20840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports clang PowerPC target attributes" >&5
20841 printf %s "checking whether compiler supports clang PowerPC target attributes... " >&6; }
20842 if test ${gcry_cv_clang_attribute_ppc_target+y}
20843 then :
20844 printf %s "(cached) " >&6
20845 else $as_nop
20846 if test "$mpi_cpu_arch" != "ppc" ; then
20847 gcry_cv_clang_attribute_ppc_target="n/a"
20848 else
20849 gcry_cv_clang_attribute_ppc_target=no
20850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20851 /* end confdefs.h. */
20852 void __attribute__((always_inline)) inline aifn(void) {}
20853 void __attribute__((target("arch=pwr8"))) testfn8(void) {aifn();}
20854 void __attribute__((target("arch=pwr9"))) testfn9(void)
20855 { testfn8(); aifn(); }
20856
20857 int
20858 main (void)
20859 {
20860 testfn9(); aifn();
20861 ;
20862 return 0;
20863 }
20864 _ACEOF
20865 if ac_fn_c_try_link "$LINENO"
20866 then :
20867 gcry_cv_clang_attribute_ppc_target=yes
20868 fi
20869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20870 conftest$ac_exeext conftest.$ac_ext
20871 fi
20872 fi
20873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_clang_attribute_ppc_target" >&5
20874 printf "%s\n" "$gcry_cv_clang_attribute_ppc_target" >&6; }
20875 if test "$gcry_cv_clang_attribute_ppc_target" = "yes" ; then
20876
20877 printf "%s\n" "#define HAVE_CLANG_ATTRIBUTE_PPC_TARGET 1" >>confdefs.h
20878
20879 fi
20880
20881
20882 #
20883 # Check whether GCC inline assembler supports zSeries instructions
20884 #
20885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports zSeries instructions" >&5
20886 printf %s "checking whether GCC inline assembler supports zSeries instructions... " >&6; }
20887 if test ${gcry_cv_gcc_inline_asm_s390x+y}
20888 then :
20889 printf %s "(cached) " >&6
20890 else $as_nop
20891 if test "$mpi_cpu_arch" != "s390x" ||
20892 test "$try_asm_modules" != "yes" ; then
20893 gcry_cv_gcc_inline_asm_s390x="n/a"
20894 else
20895 gcry_cv_gcc_inline_asm_s390x=no
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20898 typedef unsigned int u128_t __attribute__ ((mode (TI)));
20899 unsigned int testfunc(unsigned int x, void *y, unsigned int z)
20900 {
20901 unsigned long fac[8];
20902 register unsigned long reg0 asm("0") = 0;
20903 register unsigned long reg1 asm("1") = x;
20904 u128_t r1 = ((u128_t)(unsigned long)y << 64) | (unsigned long)z;
20905 u128_t r2 = 0;
20906 u128_t r3 = 0;
20907 asm volatile (".insn rre,0xb92e << 16, %[r1], %[r2]\n\t"
20908 : [r1] "+a" (r1), [r2] "+a" (r2)
20909 : "r" (reg0), "r" (reg1)
20910 : "cc", "memory");
20911 asm volatile (".insn rrf,0xb929 << 16, %[r1], %[r2], %[r3], 0\n\t"
20912 : [r1] "+a" (r1), [r2] "+a" (r2), [r3] "+a" (r3)
20913 : "r" (reg0), "r" (reg1)
20914 : "cc", "memory");
20915 reg0 = 8 - 1;
20916 asm ("stfle %1\n\t"
20917 : "+d" (reg0), "=Q" (fac[0])
20918 :
20919 : "cc", "memory");
20920 asm volatile ("mvc 0(16, %0), 0(%1)\n\t"
20921 :
20922 : "a" (y), "a" (fac)
20923 : "memory");
20924 asm volatile ("xc 0(16, %0), 0(%0)\n\t"
20925 :
20926 : "a" (fac)
20927 : "memory");
20928 asm volatile ("risbgn %%r11, %%r11, 0, 129, 0\n\t"
20929 :
20930 :
20931 : "memory", "r11");
20932 asm volatile ("algrk %%r14, %%r14, %%r14\n\t"
20933 :
20934 :
20935 : "memory", "r14");
20936 return (unsigned int)r1 ^ reg0;
20937 }
20938
20939 int
20940 main (void)
20941 {
20942 testfunc(0, 0, 0);
20943 ;
20944 return 0;
20945 }
20946 _ACEOF
20947 if ac_fn_c_try_link "$LINENO"
20948 then :
20949 gcry_cv_gcc_inline_asm_s390x=yes
20950 fi
20951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20952 conftest$ac_exeext conftest.$ac_ext
20953 fi
20954 fi
20955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_s390x" >&5
20956 printf "%s\n" "$gcry_cv_gcc_inline_asm_s390x" >&6; }
20957 if test "$gcry_cv_gcc_inline_asm_s390x" = "yes" ; then
20958
20959 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_S390X 1" >>confdefs.h
20960
20961 fi
20962
20963
20964 #
20965 # Check whether GCC inline assembler supports zSeries vector instructions
20966 #
20967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports zSeries vector instructions" >&5
20968 printf %s "checking whether GCC inline assembler supports zSeries vector instructions... " >&6; }
20969 if test ${gcry_cv_gcc_inline_asm_s390x_vx+y}
20970 then :
20971 printf %s "(cached) " >&6
20972 else $as_nop
20973 if test "$mpi_cpu_arch" != "s390x" ||
20974 test "$try_asm_modules" != "yes" ; then
20975 gcry_cv_gcc_inline_asm_s390x_vx="n/a"
20976 else
20977 gcry_cv_gcc_inline_asm_s390x_vx=no
20978 if test "$gcry_cv_gcc_inline_asm_s390x" = "yes" ; then
20979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980 /* end confdefs.h. */
20981 void testfunc(void)
20982 {
20983 asm volatile (".machine \"z13+vx\"\n\t"
20984 "vx %%v0, %%v1, %%v31\n\t"
20985 "verllf %%v11, %%v11, (16)(0)\n\t"
20986 :
20987 :
20988 : "memory");
20989 }
20990
20991 int
20992 main (void)
20993 {
20994 testfunc();
20995 ;
20996 return 0;
20997 }
20998 _ACEOF
20999 if ac_fn_c_try_link "$LINENO"
21000 then :
21001 gcry_cv_gcc_inline_asm_s390x_vx=yes
21002 fi
21003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21004 conftest$ac_exeext conftest.$ac_ext
21005 fi
21006 fi
21007 fi
21008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_s390x_vx" >&5
21009 printf "%s\n" "$gcry_cv_gcc_inline_asm_s390x_vx" >&6; }
21010 if test "$gcry_cv_gcc_inline_asm_s390x_vx" = "yes" ; then
21011
21012 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_S390X_VX 1" >>confdefs.h
21013
21014 fi
21015
21016
21017 #
21018 # Check whether GCC inline assembler supports RISC-V instructions
21019 #
21020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports RISC-V instructions" >&5
21021 printf %s "checking whether GCC inline assembler supports RISC-V instructions... " >&6; }
21022 if test ${gcry_cv_gcc_inline_asm_riscv+y}
21023 then :
21024 printf %s "(cached) " >&6
21025 else $as_nop
21026 if test "$mpi_cpu_arch" != "riscv64" ||
21027 test "$try_asm_modules" != "yes" ; then
21028 gcry_cv_gcc_inline_asm_riscv="n/a"
21029 else
21030 gcry_cv_gcc_inline_asm_riscv=no
21031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032 /* end confdefs.h. */
21033 unsigned int testfunc(unsigned int x)
21034 {
21035 unsigned int y;
21036 asm volatile ("add %0, %1, %2" :
21037 "=r" (y) : "r" (1), "r" (x) : "a5");
21038 asm volatile (".option push;\n\t"
21039 ".option arch, +zba;\n\t"
21040 "sh3add %0, %1, %1;\n\t"
21041 ".option pop;\n\t"
21042 : "=r" (y)
21043 : "r" (y));
21044 asm volatile (".option push;\n\t"
21045 ".option arch, +zbb;\n\t"
21046 "cpop %0, %1;\n\t"
21047 ".option pop;\n\t"
21048 : "=r" (y)
21049 : "r" (y));
21050 asm volatile (".option push;\n\t"
21051 ".option arch, +zbs;\n\t"
21052 "bexti %0, %1, 1;\n\t"
21053 ".option pop;\n\t"
21054 : "=r" (y)
21055 : "r" (y));
21056 asm volatile (".option push;\n\t"
21057 ".option arch, +zbc;\n\t"
21058 "clmulr %0, %1, %2;\n\t"
21059 ".option pop;\n\t"
21060 : "=r" (y)
21061 : "r" (y), "r" (y));
21062 return y;
21063 }
21064
21065 int
21066 main (void)
21067 {
21068 testfunc(0);
21069 ;
21070 return 0;
21071 }
21072 _ACEOF
21073 if ac_fn_c_try_link "$LINENO"
21074 then :
21075 gcry_cv_gcc_inline_asm_riscv=yes
21076 fi
21077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21078 conftest$ac_exeext conftest.$ac_ext
21079 fi
21080 fi
21081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_riscv" >&5
21082 printf "%s\n" "$gcry_cv_gcc_inline_asm_riscv" >&6; }
21083 if test "$gcry_cv_gcc_inline_asm_riscv" = "yes" ; then
21084
21085 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_RISCV 1" >>confdefs.h
21086
21087 fi
21088
21089
21090 #
21091 # Check whether GCC inline assembler supports RISC-V vector instructions
21092 #
21093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports RISC-V vector instructions" >&5
21094 printf %s "checking whether GCC inline assembler supports RISC-V vector instructions... " >&6; }
21095 if test ${gcry_cv_gcc_inline_asm_riscv_v+y}
21096 then :
21097 printf %s "(cached) " >&6
21098 else $as_nop
21099 if test "$mpi_cpu_arch" != "riscv64" ||
21100 test "$try_asm_modules" != "yes" ; then
21101 gcry_cv_gcc_inline_asm_riscv_v="n/a"
21102 else
21103 gcry_cv_gcc_inline_asm_riscv_v=no
21104 if test "$gcry_cv_gcc_inline_asm_riscv" = "yes" ; then
21105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21106 /* end confdefs.h. */
21107 unsigned int testfunc(void)
21108 {
21109 unsigned int vlmax;
21110 asm volatile (".option push;\n\t"
21111 ".option arch, +v;\n\t"
21112 "vsetvli %0, %1, e8, m1, ta, ma;\n\t"
21113 "vxor.vv v1, v1, v1;\n\t"
21114 ".option pop;\n\t"
21115 : "=r" (vlmax)
21116 : "r" (~0)
21117 : "vl", "vtype", "v1");
21118 return vlmax;
21119 }
21120
21121 int
21122 main (void)
21123 {
21124 testfunc();
21125 ;
21126 return 0;
21127 }
21128 _ACEOF
21129 if ac_fn_c_try_link "$LINENO"
21130 then :
21131 gcry_cv_gcc_inline_asm_riscv_v=yes
21132 fi
21133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21134 conftest$ac_exeext conftest.$ac_ext
21135 fi
21136 fi
21137 fi
21138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_riscv_v" >&5
21139 printf "%s\n" "$gcry_cv_gcc_inline_asm_riscv_v" >&6; }
21140 if test "$gcry_cv_gcc_inline_asm_riscv_v" = "yes" ; then
21141
21142 printf "%s\n" "#define HAVE_GCC_INLINE_ASM_RISCV_V 1" >>confdefs.h
21143
21144 fi
21145
21146
21147 #
21148 # Check whether compiler supports RISC-V -mstrict-align flag
21149 #
21150 _gcc_cflags_save=$CFLAGS
21151 # Note: -mstrict-align needed for GCC-14 bug (disable unaligned vector loads)
21152 CFLAGS="$CFLAGS -mstrict-align"
21153
21154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports RISC-V -mstrict-align flag" >&5
21155 printf %s "checking whether compiler supports RISC-V -mstrict-align flag... " >&6; }
21156 if test ${gcry_cv_cc_riscv_mstrict_align+y}
21157 then :
21158 printf %s "(cached) " >&6
21159 else $as_nop
21160 if test "$mpi_cpu_arch" != "riscv64" ||
21161 test "$try_asm_modules" != "yes" ; then
21162 gcry_cv_cc_riscv_mstrict_align="n/a"
21163 else
21164 gcry_cv_cc_riscv_mstrict_align=no
21165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h. */
21167 void testfn(void) { }
21168 _ACEOF
21169 if ac_fn_c_try_compile "$LINENO"
21170 then :
21171 gcry_cv_cc_riscv_mstrict_align=yes
21172 fi
21173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21174 fi
21175 fi
21176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_riscv_mstrict_align" >&5
21177 printf "%s\n" "$gcry_cv_cc_riscv_mstrict_align" >&6; }
21178 if test "$gcry_cv_cc_riscv_mstrict_align" = "yes"; then
21179 SUPPORT_CC_RISCV_MSTRICT_ALIGN_TRUE=
21180 SUPPORT_CC_RISCV_MSTRICT_ALIGN_FALSE='#'
21181 else
21182 SUPPORT_CC_RISCV_MSTRICT_ALIGN_TRUE='#'
21183 SUPPORT_CC_RISCV_MSTRICT_ALIGN_FALSE=
21184 fi
21185
21186
21187 # Restore flags.
21188 CFLAGS=$_gcc_cflags_save;
21189
21190
21191 #
21192 # Check whether compiler supports RISC-V vector intrinsics
21193 #
21194
21195
21196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports RISC-V vector intrinsics" >&5
21197 printf %s "checking whether compiler supports RISC-V vector intrinsics... " >&6; }
21198 if test ${gcry_cv_cc_riscv_vector_intrinsics+y}
21199 then :
21200 printf %s "(cached) " >&6
21201 else $as_nop
21202 if test "$mpi_cpu_arch" != "riscv64" ||
21203 test "$try_asm_modules" != "yes" ; then
21204 gcry_cv_cc_riscv_vector_intrinsics="n/a"
21205 else
21206 gcry_cv_cc_riscv_vector_intrinsics=no
21207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21208 /* end confdefs.h. */
21209 #if !(defined(__riscv_v_intrinsic) && __riscv_v_intrinsic >= 12000)
21210 #error __riscv_v_intrinsic not defined or too old version
21211 #endif
21212 #include <riscv_vector.h>
21213 typedef vuint8m1_t __m128i;
21214 #define cast_m128i_to_u64(a) (__riscv_vreinterpret_v_u8m1_u64m1(a))
21215 #define cast_u64_to_m128i(a) (__riscv_vreinterpret_v_u64m1_u8m1(a))
21216 #define paddq128(a, o) (o = cast_u64_to_m128i( \
21217 __riscv_vadd_vv_u64m1( \
21218 cast_m128i_to_u64(o), \
21219 cast_m128i_to_u64(a), 2)))
21220 #define pshufb128(m8, o) (o = __riscv_vrgather_vv_u8m1((o), (m8), 16))
21221 #define memory_barrier_with_vec(a) __asm__("" : "+vr"(a) :: "memory")
21222 #define clear_vec_reg_v0() \
21223 __asm__ volatile("vsetivli zero, 16, e8, m1, ta, ma;\n" \
21224 "vmv.v.x v0, zero;\n" \
21225 ::: "memory", "vtype", "vl", "v0")
21226 static inline __attribute__((always_inline)) __m128i
21227 fn2(__m128i a)
21228 {
21229 paddq128(a, a);
21230 return a;
21231 }
21232 __m128i fn(__m128i in)
21233 {
21234 __m128i x;
21235 memory_barrier_with_vec(in);
21236 x = fn2(in);
21237 memory_barrier_with_vec(x);
21238 pshufb128(in, x);
21239 memory_barrier_with_vec(in);
21240 clear_vec_reg_v0();
21241 return in;
21242 }
21243
21244
21245
21246 _ACEOF
21247 if ac_fn_c_try_compile "$LINENO"
21248 then :
21249 gcry_cv_cc_riscv_vector_intrinsics=yes
21250 fi
21251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21252 fi
21253 fi
21254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_riscv_vector_intrinsics" >&5
21255 printf "%s\n" "$gcry_cv_cc_riscv_vector_intrinsics" >&6; }
21256 if test "$gcry_cv_cc_riscv_vector_intrinsics" = "yes" ; then
21257
21258 printf "%s\n" "#define HAVE_COMPATIBLE_CC_RISCV_VECTOR_INTRINSICS 1" >>confdefs.h
21259
21260 fi
21261
21262 _gcc_cflags_save=$CFLAGS
21263 # Enable B extension (Zba+Zbb+Zbs) to align with RVA22U64 profile and for
21264 # better code generation for RISC-V vector implementations.
21265 MARCH_RVA22U64_WITH_VEC=rv64imafdcv_zba_zbb_zbs
21266
21267 # Note: -mstrict-align needed for GCC-14 bug (disable unaligned vector loads)
21268 CFLAGS="$CFLAGS -O2 -march=$MARCH_RVA22U64_WITH_VEC -mstrict-align"
21269
21270 if test "$gcry_cv_cc_riscv_vector_intrinsics" = "no" &&
21271 test "$mpi_cpu_arch" = "riscv64" &&
21272 test "$try_asm_modules" = "yes" ; then
21273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports RISC-V vector intrinsics with extra GCC flags" >&5
21274 printf %s "checking whether compiler supports RISC-V vector intrinsics with extra GCC flags... " >&6; }
21275 if test ${gcry_cv_cc_riscv_vector_intrinsics_cflags+y}
21276 then :
21277 printf %s "(cached) " >&6
21278 else $as_nop
21279
21280 gcry_cv_cc_riscv_vector_intrinsics_cflags=no
21281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21282 /* end confdefs.h. */
21283 #if !(defined(__riscv_v_intrinsic) && __riscv_v_intrinsic >= 12000)
21284 #error __riscv_v_intrinsic not defined or too old version
21285 #endif
21286 #include <riscv_vector.h>
21287 typedef vuint8m1_t __m128i;
21288 #define cast_m128i_to_u64(a) (__riscv_vreinterpret_v_u8m1_u64m1(a))
21289 #define cast_u64_to_m128i(a) (__riscv_vreinterpret_v_u64m1_u8m1(a))
21290 #define paddq128(a, o) (o = cast_u64_to_m128i( \
21291 __riscv_vadd_vv_u64m1( \
21292 cast_m128i_to_u64(o), \
21293 cast_m128i_to_u64(a), 2)))
21294 #define pshufb128(m8, o) (o = __riscv_vrgather_vv_u8m1((o), (m8), 16))
21295 #define memory_barrier_with_vec(a) __asm__("" : "+vr"(a) :: "memory")
21296 #define clear_vec_reg_v0() \
21297 __asm__ volatile("vsetivli zero, 16, e8, m1, ta, ma;\n" \
21298 "vmv.v.x v0, zero;\n" \
21299 ::: "memory", "vtype", "vl", "v0")
21300 static inline __attribute__((always_inline)) __m128i
21301 fn2(__m128i a)
21302 {
21303 paddq128(a, a);
21304 return a;
21305 }
21306 __m128i fn(__m128i in)
21307 {
21308 __m128i x;
21309 memory_barrier_with_vec(in);
21310 x = fn2(in);
21311 memory_barrier_with_vec(x);
21312 pshufb128(in, x);
21313 memory_barrier_with_vec(in);
21314 clear_vec_reg_v0();
21315 return in;
21316 }
21317
21318
21319
21320 _ACEOF
21321 if ac_fn_c_try_compile "$LINENO"
21322 then :
21323 gcry_cv_cc_riscv_vector_intrinsics_cflags=yes
21324 fi
21325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21326
21327 fi
21328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_riscv_vector_intrinsics_cflags" >&5
21329 printf "%s\n" "$gcry_cv_cc_riscv_vector_intrinsics_cflags" >&6; }
21330 if test "$gcry_cv_cc_riscv_vector_intrinsics_cflags" = "yes" ; then
21331
21332 printf "%s\n" "#define HAVE_COMPATIBLE_CC_RISCV_VECTOR_INTRINSICS 1" >>confdefs.h
21333
21334
21335 printf "%s\n" "#define HAVE_COMPATIBLE_CC_RISCV_VECTOR_INTRINSICS_WITH_CFLAGS 1" >>confdefs.h
21336
21337 fi
21338 fi
21339
21340 if test "$gcry_cv_cc_riscv_vector_intrinsics_cflags" = "yes"; then
21341 ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS_TRUE=
21342 ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS_FALSE='#'
21343 else
21344 ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS_TRUE='#'
21345 ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS_FALSE=
21346 fi
21347
21348
21349 # Restore flags.
21350 CFLAGS=$_gcc_cflags_save;
21351
21352
21353 #
21354 # Check whether compiler supports RISC-V vector cryptography intrinsics
21355 #
21356
21357
21358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports RISC-V vector cryptography intrinsics" >&5
21359 printf %s "checking whether compiler supports RISC-V vector cryptography intrinsics... " >&6; }
21360 if test ${gcry_cv_cc_riscv_vector_crypto_intrinsics+y}
21361 then :
21362 printf %s "(cached) " >&6
21363 else $as_nop
21364 if test "$mpi_cpu_arch" != "riscv64" ||
21365 test "$try_asm_modules" != "yes" ; then
21366 gcry_cv_cc_riscv_vector_crypto_intrinsics="n/a"
21367 else
21368 gcry_cv_cc_riscv_vector_crypto_intrinsics=no
21369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21370 /* end confdefs.h. */
21371 #if !(defined(__riscv_v_intrinsic) && __riscv_v_intrinsic >= 12000)
21372 #error __riscv_v_intrinsic not defined or too old version
21373 #endif
21374 #include <riscv_vector.h>
21375 void test_sha2(unsigned int *ptr)
21376 {
21377 int vl = __riscv_vsetvl_e32m1 (4);
21378 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21379 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21380 vuint32m1_t w0 = __riscv_vle32_v_u32m1(ptr + 2 * vl, vl);
21381 vuint32m1_t w1 = __riscv_vle32_v_u32m1(ptr + 3 * vl, vl);
21382 vuint32m1_t w2 = __riscv_vle32_v_u32m1(ptr + 4 * vl, vl);
21383 vuint32m1_t w3 = __riscv_vle32_v_u32m1(ptr + 5 * vl, vl);
21384 vuint32m1_t m;
21385 vuint32m1_t idx = __riscv_vid_v_u32m1 (vl);
21386 vbool32_t merge_mask = __riscv_vmseq_vx_u32m1_b32 (idx, 0, vl);
21387 a = __riscv_vsha2cl_vv_u32m1(a, b, w0, vl);
21388 b = __riscv_vsha2ch_vv_u32m1(a, b, w0, vl);
21389 m = __riscv_vmerge_vvm_u32m1(w2, w1, merge_mask, vl);
21390 w0 = __riscv_vsha2ms_vv_u32m1(w0, m, w3, vl);
21391 __riscv_vse32_v_u32m1(ptr + 0 * vl, a, vl);
21392 __riscv_vse32_v_u32m1(ptr + 1 * vl, b, vl);
21393 __riscv_vse32_v_u32m1(ptr + 2 * vl, w0, vl);
21394 __riscv_vse32_v_u32m1(ptr + 3 * vl, w1, vl);
21395 __riscv_vse32_v_u32m1(ptr + 4 * vl, w2, vl);
21396 __riscv_vse32_v_u32m1(ptr + 5 * vl, w3, vl);
21397 }
21398 void test_aes_key(unsigned int *ptr)
21399 {
21400 int vl = __riscv_vsetvl_e32m1 (4);
21401 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21402 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21403 vuint32m1_t c = __riscv_vaeskf1_vi_u32m1(a, 1, vl);
21404 vuint32m1_t d = __riscv_vaeskf2_vi_u32m1(a, b, 2, vl);
21405 __riscv_vse32_v_u32m1(ptr + 0 * vl, c, vl);
21406 __riscv_vse32_v_u32m1(ptr + 1 * vl, d, vl);
21407 }
21408 void test_aes_crypt(unsigned int *ptr)
21409 {
21410 int vl = __riscv_vsetvl_e32m1 (4);
21411 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21412 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21413 vuint32m1_t c = __riscv_vaesz_vs_u32m1_u32m1(a, b, vl);
21414 vuint32m1_t d = __riscv_vaesem_vs_u32m1_u32m1(a, b, vl);
21415 vuint32m1_t e = __riscv_vaesef_vs_u32m1_u32m1(a, b, vl);
21416 vuint32m1_t f = __riscv_vaesdm_vs_u32m1_u32m1(a, b, vl);
21417 vuint32m1_t g = __riscv_vaesdf_vs_u32m1_u32m1(a, b, vl);
21418 __riscv_vse32_v_u32m1(ptr + 0 * vl, c, vl);
21419 __riscv_vse32_v_u32m1(ptr + 1 * vl, d, vl);
21420 __riscv_vse32_v_u32m1(ptr + 2 * vl, e, vl);
21421 __riscv_vse32_v_u32m1(ptr + 3 * vl, f, vl);
21422 __riscv_vse32_v_u32m1(ptr + 4 * vl, g, vl);
21423 }
21424 void test_ghash(unsigned int *ptr)
21425 {
21426 int vl = __riscv_vsetvl_e32m1 (4);
21427 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21428 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21429 vuint32m1_t c = __riscv_vle32_v_u32m1(ptr + 2 * vl, vl);
21430 vuint32m1_t d = __riscv_vghsh_vv_u32m1(a, b, c, vl);
21431 __riscv_vse32_v_u32m1(ptr + 0 * vl, d, vl);
21432 }
21433 void test_inline_vec_asm(unsigned int *ptr)
21434 {
21435 int vl = __riscv_vsetvl_e32m1 (4);
21436 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21437 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21438 asm (
21439 "vsetvli zero,%1,e32,m1,ta,ma;\n\t"
21440 "vsha2ms.vv %0,%2,%2;\n\t"
21441 : "+vr" (a)
21442 : "r" (vl), "vr" (b)
21443 : "vl", "vtype"
21444 );
21445 __riscv_vse32_v_u32m1(ptr + 0 * vl, a, vl);
21446 }
21447
21448
21449
21450 _ACEOF
21451 if ac_fn_c_try_compile "$LINENO"
21452 then :
21453 gcry_cv_cc_riscv_vector_crypto_intrinsics=yes
21454 fi
21455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21456 fi
21457 fi
21458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_riscv_vector_crypto_intrinsics" >&5
21459 printf "%s\n" "$gcry_cv_cc_riscv_vector_crypto_intrinsics" >&6; }
21460 if test "$gcry_cv_cc_riscv_vector_crypto_intrinsics" = "yes" ; then
21461
21462 printf "%s\n" "#define HAVE_COMPATIBLE_CC_RISCV_VECTOR_CRYPTO_INTRINSICS 1" >>confdefs.h
21463
21464 fi
21465
21466 _gcc_cflags_save=$CFLAGS
21467 # Enable B extension (Zba+Zbb+Zbs) to align with RVA23U64 profile and for
21468 # better code generation for RISC-V vector implementations.
21469 MARCH_RVA23U64_BASE=${MARCH_RVA22U64_WITH_VEC}
21470 MARCH_RVA23U64_WITH_VEC_CRYPTO=${MARCH_RVA23U64_BASE}_zvbc_zvkg_zvkn_zvks
21471
21472 # Note: -mstrict-align needed for GCC-14 bug (disable unaligned vector loads)
21473 CFLAGS="$CFLAGS -O2 -march=$MARCH_RVA23U64_WITH_VEC_CRYPTO -mstrict-align"
21474
21475 if test "$gcry_cv_cc_riscv_vector_crypto_intrinsics" = "no" &&
21476 test "$mpi_cpu_arch" = "riscv64" &&
21477 test "$try_asm_modules" = "yes" ; then
21478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports RISC-V vector intrinsics with extra GCC flags" >&5
21479 printf %s "checking whether compiler supports RISC-V vector intrinsics with extra GCC flags... " >&6; }
21480 if test ${gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags+y}
21481 then :
21482 printf %s "(cached) " >&6
21483 else $as_nop
21484 gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags=no
21485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21486 /* end confdefs.h. */
21487 #if !(defined(__riscv_v_intrinsic) && __riscv_v_intrinsic >= 12000)
21488 #error __riscv_v_intrinsic not defined or too old version
21489 #endif
21490 #include <riscv_vector.h>
21491 void test_sha2(unsigned int *ptr)
21492 {
21493 int vl = __riscv_vsetvl_e32m1 (4);
21494 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21495 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21496 vuint32m1_t w0 = __riscv_vle32_v_u32m1(ptr + 2 * vl, vl);
21497 vuint32m1_t w1 = __riscv_vle32_v_u32m1(ptr + 3 * vl, vl);
21498 vuint32m1_t w2 = __riscv_vle32_v_u32m1(ptr + 4 * vl, vl);
21499 vuint32m1_t w3 = __riscv_vle32_v_u32m1(ptr + 5 * vl, vl);
21500 vuint32m1_t m;
21501 vuint32m1_t idx = __riscv_vid_v_u32m1 (vl);
21502 vbool32_t merge_mask = __riscv_vmseq_vx_u32m1_b32 (idx, 0, vl);
21503 a = __riscv_vsha2cl_vv_u32m1(a, b, w0, vl);
21504 b = __riscv_vsha2ch_vv_u32m1(a, b, w0, vl);
21505 m = __riscv_vmerge_vvm_u32m1(w2, w1, merge_mask, vl);
21506 w0 = __riscv_vsha2ms_vv_u32m1(w0, m, w3, vl);
21507 __riscv_vse32_v_u32m1(ptr + 0 * vl, a, vl);
21508 __riscv_vse32_v_u32m1(ptr + 1 * vl, b, vl);
21509 __riscv_vse32_v_u32m1(ptr + 2 * vl, w0, vl);
21510 __riscv_vse32_v_u32m1(ptr + 3 * vl, w1, vl);
21511 __riscv_vse32_v_u32m1(ptr + 4 * vl, w2, vl);
21512 __riscv_vse32_v_u32m1(ptr + 5 * vl, w3, vl);
21513 }
21514 void test_aes_key(unsigned int *ptr)
21515 {
21516 int vl = __riscv_vsetvl_e32m1 (4);
21517 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21518 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21519 vuint32m1_t c = __riscv_vaeskf1_vi_u32m1(a, 1, vl);
21520 vuint32m1_t d = __riscv_vaeskf2_vi_u32m1(a, b, 2, vl);
21521 __riscv_vse32_v_u32m1(ptr + 0 * vl, c, vl);
21522 __riscv_vse32_v_u32m1(ptr + 1 * vl, d, vl);
21523 }
21524 void test_aes_crypt(unsigned int *ptr)
21525 {
21526 int vl = __riscv_vsetvl_e32m1 (4);
21527 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21528 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21529 vuint32m1_t c = __riscv_vaesz_vs_u32m1_u32m1(a, b, vl);
21530 vuint32m1_t d = __riscv_vaesem_vs_u32m1_u32m1(a, b, vl);
21531 vuint32m1_t e = __riscv_vaesef_vs_u32m1_u32m1(a, b, vl);
21532 vuint32m1_t f = __riscv_vaesdm_vs_u32m1_u32m1(a, b, vl);
21533 vuint32m1_t g = __riscv_vaesdf_vs_u32m1_u32m1(a, b, vl);
21534 __riscv_vse32_v_u32m1(ptr + 0 * vl, c, vl);
21535 __riscv_vse32_v_u32m1(ptr + 1 * vl, d, vl);
21536 __riscv_vse32_v_u32m1(ptr + 2 * vl, e, vl);
21537 __riscv_vse32_v_u32m1(ptr + 3 * vl, f, vl);
21538 __riscv_vse32_v_u32m1(ptr + 4 * vl, g, vl);
21539 }
21540 void test_ghash(unsigned int *ptr)
21541 {
21542 int vl = __riscv_vsetvl_e32m1 (4);
21543 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21544 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21545 vuint32m1_t c = __riscv_vle32_v_u32m1(ptr + 2 * vl, vl);
21546 vuint32m1_t d = __riscv_vghsh_vv_u32m1(a, b, c, vl);
21547 __riscv_vse32_v_u32m1(ptr + 0 * vl, d, vl);
21548 }
21549 void test_inline_vec_asm(unsigned int *ptr)
21550 {
21551 int vl = __riscv_vsetvl_e32m1 (4);
21552 vuint32m1_t a = __riscv_vle32_v_u32m1(ptr + 0 * vl, vl);
21553 vuint32m1_t b = __riscv_vle32_v_u32m1(ptr + 1 * vl, vl);
21554 asm (
21555 "vsetvli zero,%1,e32,m1,ta,ma;\n\t"
21556 "vsha2ms.vv %0,%2,%2;\n\t"
21557 : "+vr" (a)
21558 : "r" (vl), "vr" (b)
21559 : "vl", "vtype"
21560 );
21561 __riscv_vse32_v_u32m1(ptr + 0 * vl, a, vl);
21562 }
21563
21564
21565
21566 _ACEOF
21567 if ac_fn_c_try_compile "$LINENO"
21568 then :
21569 gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags=yes
21570 fi
21571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21572 fi
21573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags" >&5
21574 printf "%s\n" "$gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags" >&6; }
21575 if test "$gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags" = "yes" ; then
21576
21577 printf "%s\n" "#define HAVE_COMPATIBLE_CC_RISCV_VECTOR_CRYPTO_INTRINSICS 1" >>confdefs.h
21578
21579
21580 printf "%s\n" "#define HAVE_COMPATIBLE_CC_RISCV_VECTOR_CRYPTO_INTRINSICS_WITH_CFLAGS 1" >>confdefs.h
21581
21582 fi
21583 fi
21584
21585 if test "$gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags" = "yes"; then
21586 ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS_TRUE=
21587 ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS_FALSE='#'
21588 else
21589 ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS_TRUE='#'
21590 ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS_FALSE=
21591 fi
21592
21593
21594 # Restore flags.
21595 CFLAGS=$_gcc_cflags_save;
21596
21597
21598 #
21599 # Check whether compiler has working RISC-V vector __riscv_vsha2cl intrinsics
21600 #
21601 # LLVM has broken __riscv_vsha2cl_* intrinsics where they emit 'vsha2ch.vv'
21602 # instructions instead of expected 'vsha2cl.vv':
21603 # https://github.com/llvm/llvm-project/issues/151814
21604 #
21605 if test "$gcry_cv_cc_riscv_vector_crypto_intrinsics" = "yes" ||
21606 test "$gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags" = "yes"; then
21607
21608 # Setup flags for test if needed.
21609 _gcc_cflags_save=$CFLAGS
21610 if test "$gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags" = "yes"; then
21611 CFLAGS="$CFLAGS -O2 -march=$MARCH_RVA23U64_WITH_VEC_CRYPTO -mstrict-align"
21612 fi
21613
21614 # Disable LTO optimization for following check to generate
21615 # RISC-V instructions in compiler output
21616 CFLAGS="$CFLAGS -fno-lto"
21617
21618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler has working RISC-V __riscv_vsha2cl intrinsics" >&5
21619 printf %s "checking whether compiler has working RISC-V __riscv_vsha2cl intrinsics... " >&6; }
21620 if test ${gcry_cv_riscv_vsha2cl_intrinsics_work+y}
21621 then :
21622 printf %s "(cached) " >&6
21623 else $as_nop
21624 gcry_cv_riscv_vsha2cl_intrinsics_work=no
21625 cat > conftest.c <<EOF
21626 #include <riscv_vector.h>
21627 vuint32m1_t test_fn(vuint32m1_t a, vuint32m1_t b, vuint32m1_t c, int vl)
21628 {
21629 return __riscv_vsha2cl_vv_u32m1(a, b, c, vl);
21630 }
21631 EOF
21632
21633 if $CC $CFLAGS -S conftest.c -o conftest.s >&5 2>&5; then
21634 if grep 'vsha2cl' conftest.s >/dev/null 2>&1; then
21635 gcry_cv_riscv_vsha2cl_intrinsics_work=yes
21636 fi
21637 fi
21638 rm -f conftest.*
21639
21640 fi
21641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_riscv_vsha2cl_intrinsics_work" >&5
21642 printf "%s\n" "$gcry_cv_riscv_vsha2cl_intrinsics_work" >&6; }
21643
21644 if test "$gcry_cv_riscv_vsha2cl_intrinsics_work" = "no"; then
21645
21646 printf "%s\n" "#define HAVE_BROKEN_VSHA2CL_INTRINSIC 1" >>confdefs.h
21647
21648 fi
21649
21650 # Restore flags.
21651 CFLAGS=$_gcc_cflags_save;
21652 fi
21653
21654 #
21655 # Check whether compiler has working RISC-V vector __riscv_vaes*_vs intrinsics
21656 #
21657 # Some GCC versions generate a 'vsetvli' instruction with an incorrect 'm1'
21658 # LMUL instead of the expected 'mX' for the __riscv_vaes*_vs_u32m1_u32mX
21659 # intrinsics:
21660 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121485
21661 #
21662 if test "$gcry_cv_cc_riscv_vector_crypto_intrinsics" = "yes" ||
21663 test "$gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags" = "yes"; then
21664
21665 # Setup flags for test.
21666 _gcc_cflags_save=$CFLAGS
21667 if test "$gcry_cv_cc_riscv_vector_crypto_intrinsics_cflags" = "yes"; then
21668 CFLAGS="$CFLAGS -O2 -march=$MARCH_RVA23U64_WITH_VEC_CRYPTO -mstrict-align"
21669 else
21670 CFLAGS="$CFLAGS -O2"
21671 fi
21672
21673 # Disable LTO optimization for following check to generate
21674 # RISC-V instructions in compiler output
21675 CFLAGS="$CFLAGS -fno-lto"
21676
21677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler has working RISC-V __riscv_vaes*_vs intrinsics" >&5
21678 printf %s "checking whether compiler has working RISC-V __riscv_vaes*_vs intrinsics... " >&6; }
21679 if test ${gcry_cv_riscv_vaes_vs_intrinsics_work+y}
21680 then :
21681 printf %s "(cached) " >&6
21682 else $as_nop
21683 gcry_cv_riscv_vaes_vs_intrinsics_work=no
21684 cat > conftest.c <<EOF
21685 #include <riscv_vector.h>
21686 vuint32m4_t test_fn(vuint32m4_t a, vuint32m1_t b, int vl)
21687 {
21688 /* This intrinsic should result in a 'vsetvli' with m4 */
21689 return __riscv_vaesem_vs_u32m1_u32m4(a, b, vl);
21690 }
21691 EOF
21692
21693 if $CC $CFLAGS -S conftest.c -o conftest.s >&5 2>&5; then
21694 if grep -E 'vsetvli.*,[[:space:]]*m4[[:space:]]*,' conftest.s >/dev/null 2>&1; then
21695 gcry_cv_riscv_vaes_vs_intrinsics_work=yes
21696 fi
21697 fi
21698 rm -f conftest.*
21699
21700 fi
21701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_riscv_vaes_vs_intrinsics_work" >&5
21702 printf "%s\n" "$gcry_cv_riscv_vaes_vs_intrinsics_work" >&6; }
21703
21704 if test "$gcry_cv_riscv_vaes_vs_intrinsics_work" = "no"; then
21705
21706 printf "%s\n" "#define HAVE_BROKEN_VAES_VS_INTRINSIC 1" >>confdefs.h
21707
21708 fi
21709
21710 # Restore flags.
21711 CFLAGS=$_gcc_cflags_save;
21712 fi
21713
21714
21715 #######################################
21716 #### Checks for library functions. ####
21717 #######################################
21718
21719 ac_func=
21720 for ac_item in $ac_func_c_list
21721 do
21722 if test $ac_func; then
21723 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
21724 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
21725 echo "#define $ac_item 1" >> confdefs.h
21726 fi
21727 ac_func=
21728 else
21729 ac_func=$ac_item
21730 fi
21731 done
21732
21733 if test "x$ac_cv_func_vprintf" = xno
21734 then :
21735 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21736 if test "x$ac_cv_func__doprnt" = xyes
21737 then :
21738
21739 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
21740
21741 fi
21742
21743 fi
21744 # We have replacements for these in src/missing-string.c
21745 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
21746 if test "x$ac_cv_func_stpcpy" = xyes
21747 then :
21748 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
21749
21750 fi
21751 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21752 if test "x$ac_cv_func_strcasecmp" = xyes
21753 then :
21754 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21755
21756 fi
21757
21758 # We have replacements for these in src/g10lib.h
21759 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
21760 if test "x$ac_cv_func_strtoul" = xyes
21761 then :
21762 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
21763
21764 fi
21765 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
21766 if test "x$ac_cv_func_memmove" = xyes
21767 then :
21768 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
21769
21770 fi
21771 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
21772 if test "x$ac_cv_func_stricmp" = xyes
21773 then :
21774 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
21775
21776 fi
21777 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
21778 if test "x$ac_cv_func_atexit" = xyes
21779 then :
21780 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
21781
21782 fi
21783 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21784 if test "x$ac_cv_func_raise" = xyes
21785 then :
21786 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
21787
21788 fi
21789
21790 # Other checks
21791 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
21792 if test "x$ac_cv_func_strerror" = xyes
21793 then :
21794 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
21795
21796 fi
21797 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
21798 if test "x$ac_cv_func_rand" = xyes
21799 then :
21800 printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
21801
21802 fi
21803 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
21804 if test "x$ac_cv_func_mmap" = xyes
21805 then :
21806 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
21807
21808 fi
21809 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21810 if test "x$ac_cv_func_getpagesize" = xyes
21811 then :
21812 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
21813
21814 fi
21815 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
21816 if test "x$ac_cv_func_sysconf" = xyes
21817 then :
21818 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
21819
21820 fi
21821 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
21822 if test "x$ac_cv_func_waitpid" = xyes
21823 then :
21824 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
21825
21826 fi
21827 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
21828 if test "x$ac_cv_func_wait4" = xyes
21829 then :
21830 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
21831
21832 fi
21833
21834 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
21835 if test "x$ac_cv_func_gettimeofday" = xyes
21836 then :
21837 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
21838
21839 fi
21840 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
21841 if test "x$ac_cv_func_getrusage" = xyes
21842 then :
21843 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
21844
21845 fi
21846 ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
21847 if test "x$ac_cv_func_gethrtime" = xyes
21848 then :
21849 printf "%s\n" "#define HAVE_GETHRTIME 1" >>confdefs.h
21850
21851 fi
21852 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
21853 if test "x$ac_cv_func_clock_gettime" = xyes
21854 then :
21855 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
21856
21857 fi
21858 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
21859 if test "x$ac_cv_func_syslog" = xyes
21860 then :
21861 printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
21862
21863 fi
21864
21865 ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
21866 if test "x$ac_cv_func_syscall" = xyes
21867 then :
21868 printf "%s\n" "#define HAVE_SYSCALL 1" >>confdefs.h
21869
21870 fi
21871 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
21872 if test "x$ac_cv_func_fcntl" = xyes
21873 then :
21874 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
21875
21876 fi
21877 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
21878 if test "x$ac_cv_func_ftruncate" = xyes
21879 then :
21880 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
21881
21882 fi
21883 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
21884 if test "x$ac_cv_func_flockfile" = xyes
21885 then :
21886 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
21887
21888 fi
21889 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
21890 if test "x$ac_cv_func_getauxval" = xyes
21891 then :
21892 printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
21893
21894 fi
21895 ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
21896 if test "x$ac_cv_func_elf_aux_info" = xyes
21897 then :
21898 printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
21899
21900 fi
21901
21902 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
21903 if test "x$ac_cv_func_explicit_bzero" = xyes
21904 then :
21905 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
21906
21907 fi
21908 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
21909 if test "x$ac_cv_func_explicit_memset" = xyes
21910 then :
21911 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
21912
21913 fi
21914 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
21915 if test "x$ac_cv_func_getentropy" = xyes
21916 then :
21917 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
21918
21919 fi
21920 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
21921 if test "x$ac_cv_func_sysctlbyname" = xyes
21922 then :
21923 printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
21924
21925 fi
21926
21927
21928 ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
21929 if test "x$ac_cv_func_mlock" = xyes
21930 then :
21931 printf "%s\n" "#define HAVE_MLOCK 1" >>confdefs.h
21932
21933 fi
21934
21935 if test "$ac_cv_func_mlock" = "no"; then
21936 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
21937 if test "x$ac_cv_header_sys_mman_h" = xyes
21938 then :
21939 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
21940
21941 fi
21942
21943 if test "$ac_cv_header_sys_mman_h" = "yes"; then
21944 # Add librt to LIBS:
21945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5
21946 printf %s "checking for memlk in -lrt... " >&6; }
21947 if test ${ac_cv_lib_rt_memlk+y}
21948 then :
21949 printf %s "(cached) " >&6
21950 else $as_nop
21951 ac_check_lib_save_LIBS=$LIBS
21952 LIBS="-lrt $LIBS"
21953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21954 /* end confdefs.h. */
21955
21956 /* Override any GCC internal prototype to avoid an error.
21957 Use char because int might match the return type of a GCC
21958 builtin and then its argument prototype would still apply. */
21959 char memlk ();
21960 int
21961 main (void)
21962 {
21963 return memlk ();
21964 ;
21965 return 0;
21966 }
21967 _ACEOF
21968 if ac_fn_c_try_link "$LINENO"
21969 then :
21970 ac_cv_lib_rt_memlk=yes
21971 else $as_nop
21972 ac_cv_lib_rt_memlk=no
21973 fi
21974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21975 conftest$ac_exeext conftest.$ac_ext
21976 LIBS=$ac_check_lib_save_LIBS
21977 fi
21978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5
21979 printf "%s\n" "$ac_cv_lib_rt_memlk" >&6; }
21980 if test "x$ac_cv_lib_rt_memlk" = xyes
21981 then :
21982 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
21983
21984 LIBS="-lrt $LIBS"
21985
21986 fi
21987
21988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5
21989 printf %s "checking whether mlock is in sys/mman.h... " >&6; }
21990 if test ${gnupg_cv_mlock_is_in_sys_mman+y}
21991 then :
21992 printf %s "(cached) " >&6
21993 else $as_nop
21994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995 /* end confdefs.h. */
21996
21997 #include <assert.h>
21998 #ifdef HAVE_SYS_MMAN_H
21999 #include <sys/mman.h>
22000 #endif
22001
22002 int
22003 main (void)
22004 {
22005
22006 int i;
22007
22008 /* glibc defines this for functions which it implements
22009 * to always fail with ENOSYS. Some functions are actually
22010 * named something starting with __ and the normal name
22011 * is an alias. */
22012 #if defined (__stub_mlock) || defined (__stub___mlock)
22013 choke me
22014 #else
22015 mlock(&i, 4);
22016 #endif
22017 ; return 0;
22018
22019 ;
22020 return 0;
22021 }
22022 _ACEOF
22023 if ac_fn_c_try_link "$LINENO"
22024 then :
22025 gnupg_cv_mlock_is_in_sys_mman=yes
22026 else $as_nop
22027 gnupg_cv_mlock_is_in_sys_mman=no
22028 fi
22029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22030 conftest$ac_exeext conftest.$ac_ext
22031 fi
22032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
22033 printf "%s\n" "$gnupg_cv_mlock_is_in_sys_mman" >&6; }
22034 if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
22035
22036 printf "%s\n" "#define HAVE_MLOCK 1" >>confdefs.h
22037
22038 fi
22039 fi
22040 fi
22041 if test "$ac_cv_func_mlock" = "yes"; then
22042 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
22043 if test "x$ac_cv_func_sysconf" = xyes
22044 then :
22045 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
22046
22047 fi
22048 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22049 if test "x$ac_cv_func_getpagesize" = xyes
22050 then :
22051 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
22052
22053 fi
22054
22055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5
22056 printf %s "checking whether mlock is broken... " >&6; }
22057 if test ${gnupg_cv_have_broken_mlock+y}
22058 then :
22059 printf %s "(cached) " >&6
22060 else $as_nop
22061 if test "$cross_compiling" = yes
22062 then :
22063 gnupg_cv_have_broken_mlock="assume-no"
22064
22065 else $as_nop
22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h. */
22068
22069 #include <stdlib.h>
22070 #include <unistd.h>
22071 #include <errno.h>
22072 #include <sys/mman.h>
22073 #include <sys/types.h>
22074 #include <fcntl.h>
22075
22076 int main(void)
22077 {
22078 char *pool;
22079 int err;
22080 long int pgsize;
22081
22082 #if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
22083 pgsize = sysconf (_SC_PAGESIZE);
22084 #elif defined (HAVE_GETPAGESIZE)
22085 pgsize = getpagesize();
22086 #else
22087 pgsize = -1;
22088 #endif
22089
22090 if (pgsize == -1)
22091 pgsize = 4096;
22092
22093 pool = malloc( 4096 + pgsize );
22094 if( !pool )
22095 return 2;
22096 pool += (pgsize - ((size_t)pool % pgsize));
22097
22098 err = mlock( pool, 4096 );
22099 if( !err || errno == EPERM || errno == EAGAIN)
22100 return 0; /* okay */
22101
22102 return 1; /* hmmm */
22103 }
22104
22105 _ACEOF
22106 if ac_fn_c_try_run "$LINENO"
22107 then :
22108 gnupg_cv_have_broken_mlock="no"
22109 else $as_nop
22110 gnupg_cv_have_broken_mlock="yes"
22111 fi
22112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22113 conftest.$ac_objext conftest.beam conftest.$ac_ext
22114 fi
22115
22116
22117 fi
22118
22119 if test "$gnupg_cv_have_broken_mlock" = "yes"; then
22120
22121 printf "%s\n" "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h
22122
22123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22124 printf "%s\n" "yes" >&6; }
22125 else
22126 if test "$gnupg_cv_have_broken_mlock" = "no"; then
22127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22128 printf "%s\n" "no" >&6; }
22129 else
22130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
22131 printf "%s\n" "assuming no" >&6; }
22132 fi
22133 fi
22134 fi
22135
22136
22137 #
22138 # Check whether it is necessary to link against libdl.
22139 #
22140 DL_LIBS=""
22141 if test "$use_hmac_binary_check" != no ; then
22142 _gcry_save_libs="$LIBS"
22143 LIBS=""
22144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22145 printf %s "checking for library containing dlopen... " >&6; }
22146 if test ${ac_cv_search_dlopen+y}
22147 then :
22148 printf %s "(cached) " >&6
22149 else $as_nop
22150 ac_func_search_save_LIBS=$LIBS
22151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h. */
22153
22154 /* Override any GCC internal prototype to avoid an error.
22155 Use char because int might match the return type of a GCC
22156 builtin and then its argument prototype would still apply. */
22157 char dlopen ();
22158 int
22159 main (void)
22160 {
22161 return dlopen ();
22162 ;
22163 return 0;
22164 }
22165 _ACEOF
22166 for ac_lib in '' c dl
22167 do
22168 if test -z "$ac_lib"; then
22169 ac_res="none required"
22170 else
22171 ac_res=-l$ac_lib
22172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22173 fi
22174 if ac_fn_c_try_link "$LINENO"
22175 then :
22176 ac_cv_search_dlopen=$ac_res
22177 fi
22178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22179 conftest$ac_exeext
22180 if test ${ac_cv_search_dlopen+y}
22181 then :
22182 break
22183 fi
22184 done
22185 if test ${ac_cv_search_dlopen+y}
22186 then :
22187
22188 else $as_nop
22189 ac_cv_search_dlopen=no
22190 fi
22191 rm conftest.$ac_ext
22192 LIBS=$ac_func_search_save_LIBS
22193 fi
22194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22195 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
22196 ac_res=$ac_cv_search_dlopen
22197 if test "$ac_res" != no
22198 then :
22199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22200
22201 fi
22202
22203 DL_LIBS=$LIBS
22204 LIBS="$_gcry_save_libs"
22205 fi
22206
22207
22208
22209 #
22210 # Check whether we can use Linux capabilities as requested.
22211 #
22212 if test "$use_capabilities" = "yes" ; then
22213 use_capabilities=no
22214 ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
22215 if test "x$ac_cv_header_sys_capability_h" = xyes
22216 then :
22217 printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
22218
22219 fi
22220
22221 if test "$ac_cv_header_sys_capability_h" = "yes" ; then
22222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
22223 printf %s "checking for cap_init in -lcap... " >&6; }
22224 if test ${ac_cv_lib_cap_cap_init+y}
22225 then :
22226 printf %s "(cached) " >&6
22227 else $as_nop
22228 ac_check_lib_save_LIBS=$LIBS
22229 LIBS="-lcap $LIBS"
22230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231 /* end confdefs.h. */
22232
22233 /* Override any GCC internal prototype to avoid an error.
22234 Use char because int might match the return type of a GCC
22235 builtin and then its argument prototype would still apply. */
22236 char cap_init ();
22237 int
22238 main (void)
22239 {
22240 return cap_init ();
22241 ;
22242 return 0;
22243 }
22244 _ACEOF
22245 if ac_fn_c_try_link "$LINENO"
22246 then :
22247 ac_cv_lib_cap_cap_init=yes
22248 else $as_nop
22249 ac_cv_lib_cap_cap_init=no
22250 fi
22251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22252 conftest$ac_exeext conftest.$ac_ext
22253 LIBS=$ac_check_lib_save_LIBS
22254 fi
22255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
22256 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
22257 if test "x$ac_cv_lib_cap_cap_init" = xyes
22258 then :
22259 ac_need_libcap=1
22260 fi
22261
22262 if test "$ac_cv_lib_cap_cap_init" = "yes"; then
22263
22264 printf "%s\n" "#define USE_CAPABILITIES 1" >>confdefs.h
22265
22266 LIBS="$LIBS -lcap"
22267 use_capabilities=yes
22268 fi
22269 fi
22270 if test "$use_capabilities" = "no" ; then
22271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
22272 ***
22273 *** The use of capabilities on this system is not possible.
22274 *** You need a recent Linux kernel and some patches:
22275 *** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
22276 *** fcap-module-990613.tar.gz (kernel module)
22277 *** libcap-1.92.tar.gz (user mode library and utilities)
22278 *** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
22279 *** set (filesystems menu). Be warned: This code is *really* ALPHA.
22280 ***" >&5
22281 printf "%s\n" "$as_me: WARNING:
22282 ***
22283 *** The use of capabilities on this system is not possible.
22284 *** You need a recent Linux kernel and some patches:
22285 *** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
22286 *** fcap-module-990613.tar.gz (kernel module)
22287 *** libcap-1.92.tar.gz (user mode library and utilities)
22288 *** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
22289 *** set (filesystems menu). Be warned: This code is *really* ALPHA.
22290 ***" >&2;}
22291 fi
22292 fi
22293
22294 # Check whether a random device is available.
22295 if test "$try_dev_random" = yes ; then
22296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
22297 printf %s "checking for random device... " >&6; }
22298 if test ${ac_cv_have_dev_random+y}
22299 then :
22300 printf %s "(cached) " >&6
22301 else $as_nop
22302 if test -r "$NAME_OF_DEV_RANDOM" && test -r "$NAME_OF_DEV_URANDOM" ; then
22303 ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi
22304 fi
22305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_random" >&5
22306 printf "%s\n" "$ac_cv_have_dev_random" >&6; }
22307 if test "$ac_cv_have_dev_random" = yes; then
22308
22309 printf "%s\n" "#define HAVE_DEV_RANDOM 1" >>confdefs.h
22310
22311 fi
22312 else
22313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
22314 printf %s "checking for random device... " >&6; }
22315 ac_cv_have_dev_random=no
22316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: has been disabled" >&5
22317 printf "%s\n" "has been disabled" >&6; }
22318 fi
22319
22320 # Figure out the random modules for this configuration.
22321 if test "$random" = "default"; then
22322
22323 # Select default value.
22324 if test "$ac_cv_func_getentropy" = yes; then
22325 random_modules="getentropy"
22326 elif test "$ac_cv_have_dev_random" = yes; then
22327 # Try Linuxish random device.
22328 random_modules="linux"
22329 else
22330 case "${host}" in
22331 *-*-mingw32*|*-*-cygwin*)
22332 # Windows random device.
22333 random_modules="w32"
22334 ;;
22335 *)
22336 # Build everything, allow selecting at runtime.
22337 random_modules="$auto_random_modules"
22338 ;;
22339 esac
22340 fi
22341 else
22342 if test "$random" = "auto"; then
22343 # Build everything, allow selecting at runtime.
22344 random_modules="$auto_random_modules"
22345 else
22346 random_modules="$random"
22347 fi
22348 fi
22349
22350
22351 #
22352 # Other defines
22353 #
22354 if test mym4_isgit = "yes"; then
22355
22356 printf "%s\n" "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
22357
22358 fi
22359
22360
22361 if test x$cross_compiling = xyes; then
22362 CROSS_COMPILING_TRUE=
22363 CROSS_COMPILING_FALSE='#'
22364 else
22365 CROSS_COMPILING_TRUE='#'
22366 CROSS_COMPILING_FALSE=
22367 fi
22368
22369
22370
22371 # This is handy for debugging so the compiler doesn't rearrange
22372 # things and eliminate variables.
22373 # Check whether --enable-optimization was given.
22374 if test ${enable_optimization+y}
22375 then :
22376 enableval=$enable_optimization; if test $enableval = no ; then
22377 CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
22378 fi
22379 fi
22380
22381
22382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
22383 printf "%s\n" "$as_me: checking for cc features" >&6;}
22384 # CFLAGS mangling when using gcc.
22385 if test "$GCC" = yes; then
22386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fno-delete-null-pointer-checks" >&5
22387 printf %s "checking if gcc supports -fno-delete-null-pointer-checks... " >&6; }
22388 _gcc_cflags_save=$CFLAGS
22389 CFLAGS="-fno-delete-null-pointer-checks"
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391 /* end confdefs.h. */
22392
22393 int
22394 main (void)
22395 {
22396
22397 ;
22398 return 0;
22399 }
22400 _ACEOF
22401 if ac_fn_c_try_compile "$LINENO"
22402 then :
22403 _gcc_wopt=yes
22404 else $as_nop
22405 _gcc_wopt=no
22406 fi
22407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
22409 printf "%s\n" "$_gcc_wopt" >&6; }
22410 CFLAGS=$_gcc_cflags_save;
22411 if test x"$_gcc_wopt" = xyes ; then
22412 CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
22413 fi
22414
22415 CFLAGS="$CFLAGS -Wall"
22416 if test "$USE_MAINTAINER_MODE" = "yes"; then
22417 CFLAGS="$CFLAGS -Wcast-align -Wshadow -Wstrict-prototypes"
22418 CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
22419
22420 # If -Wno-missing-field-initializers is supported we can enable a
22421 # a bunch of really useful warnings.
22422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
22423 printf %s "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
22424 _gcc_cflags_save=$CFLAGS
22425 CFLAGS="-Wno-missing-field-initializers"
22426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22427 /* end confdefs.h. */
22428
22429 int
22430 main (void)
22431 {
22432
22433 ;
22434 return 0;
22435 }
22436 _ACEOF
22437 if ac_fn_c_try_compile "$LINENO"
22438 then :
22439 _gcc_wopt=yes
22440 else $as_nop
22441 _gcc_wopt=no
22442 fi
22443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
22445 printf "%s\n" "$_gcc_wopt" >&6; }
22446 CFLAGS=$_gcc_cflags_save;
22447 if test x"$_gcc_wopt" = xyes ; then
22448 CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
22449 CFLAGS="$CFLAGS -Wwrite-strings"
22450 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
22451 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
22452 CFLAGS="$CFLAGS -Wno-sign-compare"
22453 fi
22454
22455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
22456 printf %s "checking if gcc supports -Wpointer-arith... " >&6; }
22457 _gcc_cflags_save=$CFLAGS
22458 CFLAGS="-Wpointer-arith"
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461
22462 int
22463 main (void)
22464 {
22465
22466 ;
22467 return 0;
22468 }
22469 _ACEOF
22470 if ac_fn_c_try_compile "$LINENO"
22471 then :
22472 _gcc_wopt=yes
22473 else $as_nop
22474 _gcc_wopt=no
22475 fi
22476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
22478 printf "%s\n" "$_gcc_wopt" >&6; }
22479 CFLAGS=$_gcc_cflags_save;
22480 if test x"$_gcc_wopt" = xyes ; then
22481 CFLAGS="$CFLAGS -Wpointer-arith"
22482 fi
22483 fi
22484 fi
22485
22486 # Check whether as(1) supports a noeexecstack feature. This test
22487 # includes an override option.
22488
22489
22490
22491
22492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether non excutable stack support is requested" >&5
22493 printf %s "checking whether non excutable stack support is requested... " >&6; }
22494 # Check whether --enable-noexecstack was given.
22495 if test ${enable_noexecstack+y}
22496 then :
22497 enableval=$enable_noexecstack; noexecstack_support=$enableval
22498 else $as_nop
22499 noexecstack_support=yes
22500 fi
22501
22502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $noexecstack_support" >&5
22503 printf "%s\n" "$noexecstack_support" >&6; }
22504
22505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
22506 printf %s "checking whether assembler supports --noexecstack option... " >&6; }
22507 if test ${cl_cv_as_noexecstack+y}
22508 then :
22509 printf %s "(cached) " >&6
22510 else $as_nop
22511 cat > conftest.c <<EOF
22512 void foo(void) {}
22513 EOF
22514 if { ac_try='${CC} $CFLAGS $CPPFLAGS
22515 -S -o conftest.s conftest.c >/dev/null'
22516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22517 (eval $ac_try) 2>&5
22518 ac_status=$?
22519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22520 test $ac_status = 0; }; } \
22521 && grep .note.GNU-stack conftest.s >/dev/null \
22522 && { ac_try='${CCAS} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
22523 -c -o conftest.o conftest.s >/dev/null'
22524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22525 (eval $ac_try) 2>&5
22526 ac_status=$?
22527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; }; }
22529 then
22530 cl_cv_as_noexecstack=yes
22531 else
22532 cl_cv_as_noexecstack=no
22533 fi
22534 rm -f conftest*
22535 fi
22536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
22537 printf "%s\n" "$cl_cv_as_noexecstack" >&6; }
22538 if test "$noexecstack_support" = yes && test "$cl_cv_as_noexecstack" = yes; then
22539 NOEXECSTACK_FLAGS="-Wa,--noexecstack"
22540 else
22541 NOEXECSTACK_FLAGS=
22542 fi
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553 ac_config_commands="$ac_config_commands gcrypt-conf"
22554
22555
22556 #####################
22557 #### Conclusion. ####
22558 #####################
22559
22560 # Check that requested feature can actually be used and define
22561 # ENABLE_foo_SUPPORT macros.
22562
22563 if test x"$aesnisupport" = xyes ; then
22564 if test "$gcry_cv_gcc_inline_asm_ssse3" != "yes" ; then
22565 aesnisupport="no (unsupported by compiler)"
22566 fi
22567 fi
22568 if test x"$shaextsupport" = xyes ; then
22569 if test "$gcry_cv_gcc_inline_asm_shaext" != "yes" ; then
22570 shaextsupport="no (unsupported by compiler)"
22571 fi
22572 fi
22573 if test x"$pclmulsupport" = xyes ; then
22574 if test "$gcry_cv_gcc_inline_asm_pclmul" != "yes" ; then
22575 pclmulsupport="no (unsupported by compiler)"
22576 fi
22577 fi
22578 if test x"$sse41support" = xyes ; then
22579 if test "$gcry_cv_gcc_inline_asm_sse41" != "yes" ; then
22580 sse41support="no (unsupported by compiler)"
22581 fi
22582 fi
22583 if test x"$avxsupport" = xyes ; then
22584 if test "$gcry_cv_gcc_inline_asm_avx" != "yes" ; then
22585 avxsupport="no (unsupported by compiler)"
22586 fi
22587 fi
22588 if test x"$avx2support" = xyes ; then
22589 if test "$gcry_cv_gcc_inline_asm_avx2" != "yes" ; then
22590 avx2support="no (unsupported by compiler)"
22591 fi
22592 fi
22593 if test x"$avx512support" = xyes ; then
22594 if test "$gcry_cv_gcc_inline_asm_avx512" != "yes" ; then
22595 avx512support="no (unsupported by compiler)"
22596 fi
22597 fi
22598 if test x"$gfnisupport" = xyes ; then
22599 if test "$gcry_cv_gcc_inline_asm_gfni" != "yes" ; then
22600 gfnisupport="no (unsupported by compiler)"
22601 fi
22602 fi
22603 if test x"$neonsupport" = xyes ; then
22604 if test "$gcry_cv_gcc_inline_asm_neon" != "yes" ; then
22605 if test "$gcry_cv_gcc_inline_asm_aarch64_neon" != "yes" ; then
22606 neonsupport="no (unsupported by compiler)"
22607 fi
22608 fi
22609 fi
22610 if test x"$armcryptosupport" = xyes ; then
22611 if test "$gcry_cv_gcc_inline_asm_aarch32_crypto" != "yes" ; then
22612 if test "$gcry_cv_gcc_inline_asm_aarch64_crypto" != "yes" ; then
22613 armcryptosupport="no (unsupported by compiler)"
22614 fi
22615 fi
22616 fi
22617 if test x"$svesupport" = xyes ; then
22618 if test "$gcry_cv_gcc_inline_asm_sve" != "yes" ; then
22619 if test "$gcry_cv_gcc_inline_asm_aarch64_sve" != "yes" ; then
22620 svesupport="no (unsupported by compiler)"
22621 fi
22622 fi
22623 fi
22624 if test x"$sve2support" = xyes ; then
22625 if test "$gcry_cv_gcc_inline_asm_sve2" != "yes" ; then
22626 if test "$gcry_cv_gcc_inline_asm_aarch64_sve2" != "yes" ; then
22627 sve2support="no (unsupported by compiler)"
22628 fi
22629 fi
22630 fi
22631
22632 if test x"$aesnisupport" = xyes ; then
22633
22634 printf "%s\n" "#define ENABLE_AESNI_SUPPORT 1" >>confdefs.h
22635
22636 fi
22637 if test x"$shaextsupport" = xyes ; then
22638
22639 printf "%s\n" "#define ENABLE_SHAEXT_SUPPORT 1" >>confdefs.h
22640
22641 fi
22642 if test x"$pclmulsupport" = xyes ; then
22643
22644 printf "%s\n" "#define ENABLE_PCLMUL_SUPPORT 1" >>confdefs.h
22645
22646 fi
22647 if test x"$sse41support" = xyes ; then
22648
22649 printf "%s\n" "#define ENABLE_SSE41_SUPPORT 1" >>confdefs.h
22650
22651 fi
22652 if test x"$avxsupport" = xyes ; then
22653
22654 printf "%s\n" "#define ENABLE_AVX_SUPPORT 1" >>confdefs.h
22655
22656 fi
22657 if test x"$avx2support" = xyes ; then
22658
22659 printf "%s\n" "#define ENABLE_AVX2_SUPPORT 1" >>confdefs.h
22660
22661 fi
22662 if test x"$avx512support" = xyes ; then
22663
22664 printf "%s\n" "#define ENABLE_AVX512_SUPPORT 1" >>confdefs.h
22665
22666 fi
22667 if test x"$gfnisupport" = xyes ; then
22668
22669 printf "%s\n" "#define ENABLE_GFNI_SUPPORT 1" >>confdefs.h
22670
22671 fi
22672 if test x"$neonsupport" = xyes ; then
22673
22674 printf "%s\n" "#define ENABLE_NEON_SUPPORT 1" >>confdefs.h
22675
22676 fi
22677 if test x"$armcryptosupport" = xyes ; then
22678
22679 printf "%s\n" "#define ENABLE_ARM_CRYPTO_SUPPORT 1" >>confdefs.h
22680
22681 fi
22682 if test x"$svesupport" = xyes ; then
22683
22684 printf "%s\n" "#define ENABLE_SVE_SUPPORT 1" >>confdefs.h
22685
22686 fi
22687 if test x"$sve2support" = xyes ; then
22688
22689 printf "%s\n" "#define ENABLE_SVE2_SUPPORT 1" >>confdefs.h
22690
22691 fi
22692 if test x"$ppccryptosupport" = xyes ; then
22693
22694 printf "%s\n" "#define ENABLE_PPC_CRYPTO_SUPPORT 1" >>confdefs.h
22695
22696 fi
22697 if test x"$jentsupport" = xyes ; then
22698
22699 printf "%s\n" "#define ENABLE_JENT_SUPPORT 1" >>confdefs.h
22700
22701 fi
22702 if test x"$padlocksupport" = xyes ; then
22703
22704 printf "%s\n" "#define ENABLE_PADLOCK_SUPPORT 1" >>confdefs.h
22705
22706 fi
22707 if test x"$drngsupport" = xyes ; then
22708
22709 printf "%s\n" "#define ENABLE_DRNG_SUPPORT 1" >>confdefs.h
22710
22711 fi
22712
22713
22714 if test x"$force_soft_hwfeatures" = xyes ; then
22715
22716 printf "%s\n" "#define ENABLE_FORCE_SOFT_HWFEATURES 1" >>confdefs.h
22717
22718 fi
22719
22720 # Define conditional sources and config.h symbols depending on the
22721 # selected ciphers, pubkey-ciphers, digests, kdfs, and random modules.
22722
22723
22724 name=arcfour
22725 list=$enabled_ciphers
22726 found=0
22727
22728 for n in $list; do
22729 if test "x$name" = "x$n"; then
22730 found=1
22731 fi
22732 done
22733
22734 if test "$found" = "1"; then
22735 GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour.lo"
22736
22737 printf "%s\n" "#define USE_ARCFOUR 1" >>confdefs.h
22738
22739
22740 case "${host}" in
22741 x86_64-*-*)
22742 # Build with the assembly implementation
22743 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS arcfour-amd64.lo"
22744 ;;
22745 esac
22746 fi
22747
22748
22749 name=blowfish
22750 list=$enabled_ciphers
22751 found=0
22752
22753 for n in $list; do
22754 if test "x$name" = "x$n"; then
22755 found=1
22756 fi
22757 done
22758
22759 if test "$found" = "1" ; then
22760 GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish.lo"
22761
22762 printf "%s\n" "#define USE_BLOWFISH 1" >>confdefs.h
22763
22764
22765 case "${host}" in
22766 x86_64-*-*)
22767 # Build with the assembly implementation
22768 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS blowfish-amd64.lo"
22769 ;;
22770 arm*-*-*)
22771 # Build with the assembly implementation
22772 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS blowfish-arm.lo"
22773 ;;
22774 esac
22775 fi
22776
22777
22778 name=cast5
22779 list=$enabled_ciphers
22780 found=0
22781
22782 for n in $list; do
22783 if test "x$name" = "x$n"; then
22784 found=1
22785 fi
22786 done
22787
22788 if test "$found" = "1" ; then
22789 GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5.lo"
22790
22791 printf "%s\n" "#define USE_CAST5 1" >>confdefs.h
22792
22793
22794 case "${host}" in
22795 x86_64-*-*)
22796 # Build with the assembly implementation
22797 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS cast5-amd64.lo"
22798 ;;
22799 arm*-*-*)
22800 # Build with the assembly implementation
22801 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS cast5-arm.lo"
22802 ;;
22803 esac
22804 fi
22805
22806
22807 name=des
22808 list=$enabled_ciphers
22809 found=0
22810
22811 for n in $list; do
22812 if test "x$name" = "x$n"; then
22813 found=1
22814 fi
22815 done
22816
22817 if test "$found" = "1" ; then
22818 GCRYPT_CIPHERS="$GCRYPT_CIPHERS des.lo"
22819
22820 printf "%s\n" "#define USE_DES 1" >>confdefs.h
22821
22822
22823 case "${host}" in
22824 x86_64-*-*)
22825 # Build with the assembly implementation
22826 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS des-amd64.lo"
22827 ;;
22828 esac
22829 fi
22830
22831
22832 name=aes
22833 list=$enabled_ciphers
22834 found=0
22835
22836 for n in $list; do
22837 if test "x$name" = "x$n"; then
22838 found=1
22839 fi
22840 done
22841
22842 if test "$found" = "1" ; then
22843 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael.lo"
22844
22845 printf "%s\n" "#define USE_AES 1" >>confdefs.h
22846
22847
22848 case "${host}" in
22849 i?86-*-*)
22850 # Build with the VAES/AVX2 implementation
22851 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vaes-i386.lo"
22852 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vaes-avx2-i386.lo"
22853 ;;
22854 x86_64-*-*)
22855 # Build with the assembly implementation
22856 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-amd64.lo"
22857
22858 # Build with the SSSE3 implementation
22859 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ssse3-amd64.lo"
22860 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ssse3-amd64-asm.lo"
22861
22862 # Build with the VAES/AVX2 implementation
22863 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vaes.lo"
22864 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vaes-avx2-amd64.lo"
22865 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vaes-avx512-amd64.lo"
22866 ;;
22867 arm*-*-*)
22868 # Build with the assembly implementation
22869 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-arm.lo"
22870
22871 # Build with the ARMv8/AArch32 CE implementation
22872 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-armv8-ce.lo"
22873 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-armv8-aarch32-ce.lo"
22874 ;;
22875 aarch64-*-*)
22876 # Build with the assembly implementation
22877 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-aarch64.lo"
22878
22879 # Build with the vector permute SIMD128 implementation
22880 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vp-aarch64.lo"
22881
22882 # Build with the ARMv8/AArch64 CE implementation
22883 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-armv8-ce.lo"
22884 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-armv8-aarch64-ce.lo"
22885 ;;
22886 powerpc64le-*-*)
22887 # Build with the crypto extension implementation
22888 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ppc.lo"
22889 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ppc9le.lo"
22890
22891 if test "$gcry_cv_gcc_inline_asm_ppc_altivec" = "yes" &&
22892 test "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" = "yes" ; then
22893 # Build with AES-GCM bulk implementation for P10
22894 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-gcm-p10le.lo"
22895 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-p10le.lo"
22896 fi
22897 ;;
22898 powerpc64-*-*)
22899 # Big-Endian.
22900 # Build with the crypto extension implementation
22901 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ppc.lo"
22902 ;;
22903 powerpc-*-*)
22904 # Big-Endian.
22905 # Build with the crypto extension implementation
22906 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-ppc.lo"
22907 ;;
22908 riscv64-*-*)
22909 # Build with the vector permute SIMD128 implementation
22910 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-vp-riscv.lo"
22911
22912 # Build with the RISC-V vector cryptography implementation
22913 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-riscv-zvkned.lo"
22914 ;;
22915 s390x-*-*)
22916 # Big-Endian.
22917 # Build with the crypto extension implementation
22918 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-s390x.lo"
22919 ;;
22920 esac
22921
22922 case "$mpi_cpu_arch" in
22923 x86)
22924 # Build with the AES-NI implementation
22925 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-aesni.lo"
22926
22927 # Build with the Padlock implementation
22928 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS rijndael-padlock.lo"
22929 ;;
22930 esac
22931 fi
22932
22933
22934 name=twofish
22935 list=$enabled_ciphers
22936 found=0
22937
22938 for n in $list; do
22939 if test "x$name" = "x$n"; then
22940 found=1
22941 fi
22942 done
22943
22944 if test "$found" = "1" ; then
22945 GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish.lo"
22946
22947 printf "%s\n" "#define USE_TWOFISH 1" >>confdefs.h
22948
22949
22950 case "${host}" in
22951 x86_64-*-*)
22952 # Build with the assembly implementation
22953 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS twofish-amd64.lo"
22954
22955 if test x"$avx2support" = xyes ; then
22956 # Build with the AVX2 implementation
22957 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS twofish-avx2-amd64.lo"
22958 fi
22959 ;;
22960 arm*-*-*)
22961 # Build with the assembly implementation
22962 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS twofish-arm.lo"
22963 ;;
22964 aarch64-*-*)
22965 # Build with the assembly implementation
22966 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS twofish-aarch64.lo"
22967 ;;
22968 esac
22969 fi
22970
22971
22972 name=serpent
22973 list=$enabled_ciphers
22974 found=0
22975
22976 for n in $list; do
22977 if test "x$name" = "x$n"; then
22978 found=1
22979 fi
22980 done
22981
22982 if test "$found" = "1" ; then
22983 GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent.lo"
22984
22985 printf "%s\n" "#define USE_SERPENT 1" >>confdefs.h
22986
22987
22988 case "${host}" in
22989 x86_64-*-*)
22990 # Build with the SSE2 implementation
22991 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS serpent-sse2-amd64.lo"
22992
22993 if test x"$avx2support" = xyes ; then
22994 # Build with the AVX2 implementation
22995 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS serpent-avx2-amd64.lo"
22996 fi
22997 ;;
22998 arm*-*-*)
22999 if test x"$neonsupport" = xyes ; then
23000 # Build with the NEON implementation
23001 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS serpent-armv7-neon.lo"
23002 fi
23003 ;;
23004 esac
23005
23006 if test x"$avx512support" = xyes ; then
23007 # Build with the AVX512 implementation
23008 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS serpent-avx512-x86.lo"
23009 fi
23010 fi
23011
23012
23013 name=rfc2268
23014 list=$enabled_ciphers
23015 found=0
23016
23017 for n in $list; do
23018 if test "x$name" = "x$n"; then
23019 found=1
23020 fi
23021 done
23022
23023 if test "$found" = "1" ; then
23024 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rfc2268.lo"
23025
23026 printf "%s\n" "#define USE_RFC2268 1" >>confdefs.h
23027
23028 fi
23029
23030
23031 name=seed
23032 list=$enabled_ciphers
23033 found=0
23034
23035 for n in $list; do
23036 if test "x$name" = "x$n"; then
23037 found=1
23038 fi
23039 done
23040
23041 if test "$found" = "1" ; then
23042 GCRYPT_CIPHERS="$GCRYPT_CIPHERS seed.lo"
23043
23044 printf "%s\n" "#define USE_SEED 1" >>confdefs.h
23045
23046 fi
23047
23048
23049 name=camellia
23050 list=$enabled_ciphers
23051 found=0
23052
23053 for n in $list; do
23054 if test "x$name" = "x$n"; then
23055 found=1
23056 fi
23057 done
23058
23059 if test "$found" = "1" ; then
23060 GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia.lo camellia-glue.lo"
23061
23062 printf "%s\n" "#define USE_CAMELLIA 1" >>confdefs.h
23063
23064
23065 case "${host}" in
23066 arm*-*-*)
23067 # Build with the assembly implementation
23068 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-arm.lo"
23069 ;;
23070 aarch64-*-*)
23071 # Build with the assembly implementation
23072 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-aarch64.lo"
23073 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-aarch64-ce.lo"
23074 ;;
23075 powerpc64le-*-*)
23076 # Build with the POWER vector implementations
23077 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-ppc8le.lo"
23078 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-ppc9le.lo"
23079 ;;
23080 esac
23081
23082 case "${host}" in
23083 x86_64-*-*)
23084 if test x"$avxsupport" = xyes ; then
23085 if test x"$aesnisupport" = xyes ; then
23086 # Build with the AES-NI/AVX implementation
23087 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-aesni-avx-amd64.lo"
23088 fi
23089 fi
23090
23091 if test x"$avx2support" = xyes ; then
23092 if test x"$aesnisupport" = xyes ; then
23093 # Build with the AES-NI/AVX2 implementation
23094 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-aesni-avx2-amd64.lo"
23095
23096 # Build with the VAES/AVX2 implementation
23097 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-vaes-avx2-amd64.lo"
23098
23099 # Build with the GFNI/AVX2 implementation
23100 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-gfni-avx2-amd64.lo"
23101
23102 # Build with the GFNI/AVX512 implementation
23103 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS camellia-gfni-avx512-amd64.lo"
23104 fi
23105 fi
23106 ;;
23107 esac
23108 fi
23109
23110
23111 name=idea
23112 list=$enabled_ciphers
23113 found=0
23114
23115 for n in $list; do
23116 if test "x$name" = "x$n"; then
23117 found=1
23118 fi
23119 done
23120
23121 if test "$found" = "1" ; then
23122 GCRYPT_CIPHERS="$GCRYPT_CIPHERS idea.lo"
23123
23124 printf "%s\n" "#define USE_IDEA 1" >>confdefs.h
23125
23126 fi
23127
23128
23129 name=salsa20
23130 list=$enabled_ciphers
23131 found=0
23132
23133 for n in $list; do
23134 if test "x$name" = "x$n"; then
23135 found=1
23136 fi
23137 done
23138
23139 if test "$found" = "1" ; then
23140 GCRYPT_CIPHERS="$GCRYPT_CIPHERS salsa20.lo"
23141
23142 printf "%s\n" "#define USE_SALSA20 1" >>confdefs.h
23143
23144
23145 case "${host}" in
23146 x86_64-*-*)
23147 # Build with the assembly implementation
23148 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS salsa20-amd64.lo"
23149 ;;
23150 arm*-*-*)
23151 if test x"$neonsupport" = xyes ; then
23152 # Build with the NEON implementation
23153 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS salsa20-armv7-neon.lo"
23154 fi
23155 ;;
23156 esac
23157 fi
23158
23159
23160 name=gost28147
23161 list=$enabled_ciphers
23162 found=0
23163
23164 for n in $list; do
23165 if test "x$name" = "x$n"; then
23166 found=1
23167 fi
23168 done
23169
23170 if test "$found" = "1" ; then
23171 GCRYPT_CIPHERS="$GCRYPT_CIPHERS gost28147.lo"
23172
23173 printf "%s\n" "#define USE_GOST28147 1" >>confdefs.h
23174
23175 fi
23176
23177
23178 name=chacha20
23179 list=$enabled_ciphers
23180 found=0
23181
23182 for n in $list; do
23183 if test "x$name" = "x$n"; then
23184 found=1
23185 fi
23186 done
23187
23188 if test "$found" = "1" ; then
23189 GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20.lo"
23190
23191 printf "%s\n" "#define USE_CHACHA20 1" >>confdefs.h
23192
23193
23194 case "${host}" in
23195 x86_64-*-*)
23196 # Build with the assembly implementation
23197 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-amd64-ssse3.lo"
23198 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-amd64-avx2.lo"
23199 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-amd64-avx512.lo"
23200 ;;
23201 arm*-*-*)
23202 if test x"$neonsupport" = xyes ; then
23203 # Build with the NEON implementation
23204 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-armv7-neon.lo"
23205 fi
23206 ;;
23207 aarch64-*-*)
23208 # Build with the assembly implementation
23209 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-aarch64.lo"
23210 ;;
23211 powerpc64le-*-*)
23212 # Build with the ppc8 vector implementation
23213 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-ppc.lo"
23214 # Build with the assembly implementation
23215 if test "$gcry_cv_gcc_inline_asm_ppc_altivec" = "yes" &&
23216 test "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" = "yes" ; then
23217 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-p10le-8x.lo"
23218 fi
23219 ;;
23220 powerpc64-*-*)
23221 # Build with the ppc8 vector implementation
23222 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-ppc.lo"
23223 ;;
23224 powerpc-*-*)
23225 # Build with the ppc8 vector implementation
23226 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-ppc.lo"
23227 ;;
23228 s390x-*-*)
23229 # Build with the s390x/zSeries vector implementation
23230 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-s390x.lo"
23231 ;;
23232 riscv64-*-*)
23233 # Build with the RISC-V vector implementation
23234 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS chacha20-riscv-v.lo"
23235 ;;
23236 esac
23237 fi
23238
23239
23240 name=sm4
23241 list=$enabled_ciphers
23242 found=0
23243
23244 for n in $list; do
23245 if test "x$name" = "x$n"; then
23246 found=1
23247 fi
23248 done
23249
23250 if test "$found" = "1" ; then
23251 GCRYPT_CIPHERS="$GCRYPT_CIPHERS sm4.lo"
23252
23253 printf "%s\n" "#define USE_SM4 1" >>confdefs.h
23254
23255
23256 case "${host}" in
23257 x86_64-*-*)
23258 # Build with the assembly implementation
23259 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-aesni-avx-amd64.lo"
23260 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-aesni-avx2-amd64.lo"
23261 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-gfni-avx2-amd64.lo"
23262 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-gfni-avx512-amd64.lo"
23263 ;;
23264 aarch64-*-*)
23265 # Build with the assembly implementation
23266 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-aarch64.lo"
23267 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-armv8-aarch64-ce.lo"
23268 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-armv9-aarch64-sve-ce.lo"
23269 ;;
23270 powerpc64le-*-*)
23271 # Build with the ppc64le vector implementation
23272 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS sm4-ppc.lo"
23273 ;;
23274 esac
23275 fi
23276
23277
23278 name=aria
23279 list=$enabled_ciphers
23280 found=0
23281
23282 for n in $list; do
23283 if test "x$name" = "x$n"; then
23284 found=1
23285 fi
23286 done
23287
23288 if test "$found" = "1" ; then
23289 GCRYPT_CIPHERS="$GCRYPT_CIPHERS aria.lo"
23290
23291 printf "%s\n" "#define USE_ARIA 1" >>confdefs.h
23292
23293
23294 case "${host}" in
23295 x86_64-*-*)
23296 # Build with the assembly implementation
23297 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS aria-aesni-avx-amd64.lo"
23298 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS aria-aesni-avx2-amd64.lo"
23299 GCRYPT_ASM_CIPHERS="$GCRYPT_ASM_CIPHERS aria-gfni-avx512-amd64.lo"
23300 ;;
23301 esac
23302 fi
23303
23304
23305 name=dsa
23306 list=$enabled_pubkey_ciphers
23307 found=0
23308
23309 for n in $list; do
23310 if test "x$name" = "x$n"; then
23311 found=1
23312 fi
23313 done
23314
23315 if test "$found" = "1"; then
23316 USE_DSA_TRUE=
23317 USE_DSA_FALSE='#'
23318 else
23319 USE_DSA_TRUE='#'
23320 USE_DSA_FALSE=
23321 fi
23322
23323 if test "$found" = "1" ; then
23324 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS dsa.lo"
23325
23326 printf "%s\n" "#define USE_DSA 1" >>confdefs.h
23327
23328 fi
23329
23330
23331 name=rsa
23332 list=$enabled_pubkey_ciphers
23333 found=0
23334
23335 for n in $list; do
23336 if test "x$name" = "x$n"; then
23337 found=1
23338 fi
23339 done
23340
23341 if test "$found" = "1"; then
23342 USE_RSA_TRUE=
23343 USE_RSA_FALSE='#'
23344 else
23345 USE_RSA_TRUE='#'
23346 USE_RSA_FALSE=
23347 fi
23348
23349 if test "$found" = "1" ; then
23350 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS rsa.lo"
23351
23352 printf "%s\n" "#define USE_RSA 1" >>confdefs.h
23353
23354 fi
23355
23356
23357 name=elgamal
23358 list=$enabled_pubkey_ciphers
23359 found=0
23360
23361 for n in $list; do
23362 if test "x$name" = "x$n"; then
23363 found=1
23364 fi
23365 done
23366
23367 if test "$found" = "1"; then
23368 USE_ELGAMAL_TRUE=
23369 USE_ELGAMAL_FALSE='#'
23370 else
23371 USE_ELGAMAL_TRUE='#'
23372 USE_ELGAMAL_FALSE=
23373 fi
23374
23375 if test "$found" = "1" ; then
23376 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS elgamal.lo"
23377
23378 printf "%s\n" "#define USE_ELGAMAL 1" >>confdefs.h
23379
23380 fi
23381
23382
23383 name=ecc
23384 list=$enabled_pubkey_ciphers
23385 found=0
23386
23387 for n in $list; do
23388 if test "x$name" = "x$n"; then
23389 found=1
23390 fi
23391 done
23392
23393 if test "$found" = "1"; then
23394 USE_ECC_TRUE=
23395 USE_ECC_FALSE='#'
23396 else
23397 USE_ECC_TRUE='#'
23398 USE_ECC_FALSE=
23399 fi
23400
23401 if test "$found" = "1" ; then
23402 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS \
23403 ecc.lo ecc-curves.lo ecc-misc.lo \
23404 ecc-ecdh.lo ecc-ecdsa.lo ecc-eddsa.lo ecc-gost.lo \
23405 ecc-sm2.lo"
23406
23407 printf "%s\n" "#define USE_ECC 1" >>confdefs.h
23408
23409 fi
23410
23411
23412 name=kyber
23413 list=$enabled_pubkey_ciphers
23414 found=0
23415
23416 for n in $list; do
23417 if test "x$name" = "x$n"; then
23418 found=1
23419 fi
23420 done
23421
23422 if test "$found" = "1"; then
23423 USE_KYBER_TRUE=
23424 USE_KYBER_FALSE='#'
23425 else
23426 USE_KYBER_TRUE='#'
23427 USE_KYBER_FALSE=
23428 fi
23429
23430 if test "$found" = "1" ; then
23431 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS \
23432 kyber.lo"
23433
23434 printf "%s\n" "#define USE_KYBER 1" >>confdefs.h
23435
23436 fi
23437
23438
23439 name=dilithium
23440 list=$enabled_pubkey_ciphers
23441 found=0
23442
23443 for n in $list; do
23444 if test "x$name" = "x$n"; then
23445 found=1
23446 fi
23447 done
23448
23449 if test "$found" = "1"; then
23450 USE_DILITHIUM_TRUE=
23451 USE_DILITHIUM_FALSE='#'
23452 else
23453 USE_DILITHIUM_TRUE='#'
23454 USE_DILITHIUM_FALSE=
23455 fi
23456
23457 if test "$found" = "1" ; then
23458 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS \
23459 dilithium.lo pubkey-dilithium.lo"
23460
23461 printf "%s\n" "#define USE_DILITHIUM 1" >>confdefs.h
23462
23463 fi
23464
23465
23466 name=crc
23467 list=$enabled_digests
23468 found=0
23469
23470 for n in $list; do
23471 if test "x$name" = "x$n"; then
23472 found=1
23473 fi
23474 done
23475
23476 if test "$found" = "1" ; then
23477 GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc.lo"
23478
23479 printf "%s\n" "#define USE_CRC 1" >>confdefs.h
23480
23481
23482 case "${host}" in
23483 i?86-*-* | x86_64-*-*)
23484 # Build with the assembly implementation
23485 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-intel-pclmul.lo"
23486 ;;
23487 aarch64-*-*)
23488 # Build with the assembly implementation
23489 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-armv8-ce.lo"
23490 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-armv8-aarch64-ce.lo"
23491 ;;
23492 powerpc64le-*-*)
23493 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-ppc.lo"
23494 ;;
23495 powerpc64-*-*)
23496 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-ppc.lo"
23497 ;;
23498 powerpc-*-*)
23499 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-ppc.lo"
23500 ;;
23501 riscv64-*-*)
23502 # Build with the RISC-V vector implementation
23503 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS crc-riscv-zbb-zbc.lo"
23504 ;;
23505 esac
23506 fi
23507
23508
23509 name=gostr3411-94
23510 list=$enabled_digests
23511 found=0
23512
23513 for n in $list; do
23514 if test "x$name" = "x$n"; then
23515 found=1
23516 fi
23517 done
23518
23519 if test "$found" = "1" ; then
23520 # GOST R 34.11-94 internally uses GOST 28147-89
23521
23522 name=gost28147
23523 list=$enabled_ciphers
23524 found=0
23525
23526 for n in $list; do
23527 if test "x$name" = "x$n"; then
23528 found=1
23529 fi
23530 done
23531
23532 if test "$found" = "1" ; then
23533 GCRYPT_DIGESTS="$GCRYPT_DIGESTS gostr3411-94.lo"
23534
23535 printf "%s\n" "#define USE_GOST_R_3411_94 1" >>confdefs.h
23536
23537 fi
23538 fi
23539
23540
23541 name=stribog
23542 list=$enabled_digests
23543 found=0
23544
23545 for n in $list; do
23546 if test "x$name" = "x$n"; then
23547 found=1
23548 fi
23549 done
23550
23551 if test "$found" = "1" ; then
23552 GCRYPT_DIGESTS="$GCRYPT_DIGESTS stribog.lo"
23553
23554 printf "%s\n" "#define USE_GOST_R_3411_12 1" >>confdefs.h
23555
23556 fi
23557
23558
23559 name=md2
23560 list=$enabled_digests
23561 found=0
23562
23563 for n in $list; do
23564 if test "x$name" = "x$n"; then
23565 found=1
23566 fi
23567 done
23568
23569 if test "$found" = "1" ; then
23570 GCRYPT_DIGESTS="$GCRYPT_DIGESTS md2.lo"
23571
23572 printf "%s\n" "#define USE_MD2 1" >>confdefs.h
23573
23574 fi
23575
23576
23577 name=md4
23578 list=$enabled_digests
23579 found=0
23580
23581 for n in $list; do
23582 if test "x$name" = "x$n"; then
23583 found=1
23584 fi
23585 done
23586
23587 if test "$found" = "1" ; then
23588 GCRYPT_DIGESTS="$GCRYPT_DIGESTS md4.lo"
23589
23590 printf "%s\n" "#define USE_MD4 1" >>confdefs.h
23591
23592 fi
23593
23594
23595 name=md5
23596 list=$enabled_digests
23597 found=0
23598
23599 for n in $list; do
23600 if test "x$name" = "x$n"; then
23601 found=1
23602 fi
23603 done
23604
23605 if test "$found" = "1" ; then
23606 GCRYPT_DIGESTS="$GCRYPT_DIGESTS md5.lo"
23607
23608 printf "%s\n" "#define USE_MD5 1" >>confdefs.h
23609
23610 fi
23611
23612
23613 name=rmd160
23614 list=$enabled_digests
23615 found=0
23616
23617 for n in $list; do
23618 if test "x$name" = "x$n"; then
23619 found=1
23620 fi
23621 done
23622
23623 if test "$found" = "1" ; then
23624 GCRYPT_DIGESTS="$GCRYPT_DIGESTS rmd160.lo"
23625
23626 printf "%s\n" "#define USE_RMD160 1" >>confdefs.h
23627
23628 fi
23629
23630
23631 name=sha256
23632 list=$enabled_digests
23633 found=0
23634
23635 for n in $list; do
23636 if test "x$name" = "x$n"; then
23637 found=1
23638 fi
23639 done
23640
23641 if test "$found" = "1" ; then
23642 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256.lo"
23643
23644 printf "%s\n" "#define USE_SHA256 1" >>confdefs.h
23645
23646
23647 case "${host}" in
23648 x86_64-*-*)
23649 # Build with the assembly implementation
23650 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-ssse3-amd64.lo"
23651 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-avx-amd64.lo"
23652 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-avx2-bmi2-amd64.lo"
23653 ;;
23654 arm*-*-*)
23655 # Build with the assembly implementation
23656 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-armv8-aarch32-ce.lo"
23657 ;;
23658 aarch64-*-*)
23659 # Build with the assembly implementation
23660 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-armv8-aarch64-ce.lo"
23661 ;;
23662 powerpc64le-*-*)
23663 # Build with the crypto extension implementation
23664 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-ppc.lo"
23665 ;;
23666 powerpc64-*-*)
23667 # Big-Endian.
23668 # Build with the crypto extension implementation
23669 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-ppc.lo"
23670 ;;
23671 powerpc-*-*)
23672 # Big-Endian.
23673 # Build with the crypto extension implementation
23674 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-ppc.lo"
23675 ;;
23676 riscv64-*-*)
23677 # Build with the RISC-V vector cryptography implementation
23678 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-riscv-zvknha-zvkb.lo"
23679 ;;
23680 esac
23681
23682 case "$mpi_cpu_arch" in
23683 x86)
23684 # Build with the SHAEXT implementation
23685 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha256-intel-shaext.lo"
23686 ;;
23687 esac
23688 fi
23689
23690
23691 name=sha512
23692 list=$enabled_digests
23693 found=0
23694
23695 for n in $list; do
23696 if test "x$name" = "x$n"; then
23697 found=1
23698 fi
23699 done
23700
23701 if test "$found" = "1" ; then
23702 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512.lo"
23703
23704 printf "%s\n" "#define USE_SHA512 1" >>confdefs.h
23705
23706
23707 case "${host}" in
23708 x86_64-*-*)
23709 # Build with the assembly implementation
23710 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ssse3-amd64.lo"
23711 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-avx-amd64.lo"
23712 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-avx2-bmi2-amd64.lo"
23713 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-avx512-amd64.lo"
23714 ;;
23715 i?86-*-*)
23716 # Build with the assembly implementation
23717 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ssse3-i386.lo"
23718 ;;
23719 arm*-*-*)
23720 # Build with the assembly implementation
23721 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-arm.lo"
23722
23723 if test x"$neonsupport" = xyes ; then
23724 # Build with the NEON implementation
23725 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-armv7-neon.lo"
23726 fi
23727 ;;
23728 aarch64-*-*)
23729 # Build with the assembly implementation
23730 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-armv8-aarch64-ce.lo"
23731 ;;
23732 powerpc64le-*-*)
23733 # Build with the crypto extension implementation
23734 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ppc.lo"
23735 ;;
23736 powerpc64-*-*)
23737 # Big-Endian.
23738 # Build with the crypto extension implementation
23739 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ppc.lo"
23740 ;;
23741 powerpc-*-*)
23742 # Big-Endian.
23743 # Build with the crypto extension implementation
23744 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-ppc.lo"
23745 ;;
23746 riscv64-*-*)
23747 # Build with the RISC-V vector cryptography implementation
23748 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha512-riscv-zvknhb-zvkb.lo"
23749 ;;
23750 esac
23751 fi
23752
23753
23754 name=sha3
23755 list=$enabled_digests
23756 found=0
23757
23758 for n in $list; do
23759 if test "x$name" = "x$n"; then
23760 found=1
23761 fi
23762 done
23763
23764 if test "$found" = "1" ; then
23765 GCRYPT_DIGESTS="$GCRYPT_DIGESTS keccak.lo"
23766
23767 printf "%s\n" "#define USE_SHA3 1" >>confdefs.h
23768
23769
23770 case "${host}" in
23771 x86_64-*-*)
23772 # Build with the assembly implementation
23773 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS keccak-amd64-avx512.lo"
23774 ;;
23775 arm*-*-*)
23776 if test x"$neonsupport" = xyes ; then
23777 # Build with the NEON implementation
23778 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS keccak-armv7-neon.lo"
23779 fi
23780 ;;
23781 esac
23782 fi
23783
23784
23785 name=tiger
23786 list=$enabled_digests
23787 found=0
23788
23789 for n in $list; do
23790 if test "x$name" = "x$n"; then
23791 found=1
23792 fi
23793 done
23794
23795 if test "$found" = "1" ; then
23796 GCRYPT_DIGESTS="$GCRYPT_DIGESTS tiger.lo"
23797
23798 printf "%s\n" "#define USE_TIGER 1" >>confdefs.h
23799
23800 fi
23801
23802
23803 name=whirlpool
23804 list=$enabled_digests
23805 found=0
23806
23807 for n in $list; do
23808 if test "x$name" = "x$n"; then
23809 found=1
23810 fi
23811 done
23812
23813 if test "$found" = "1" ; then
23814 GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool.lo"
23815
23816 printf "%s\n" "#define USE_WHIRLPOOL 1" >>confdefs.h
23817
23818
23819 case "${host}" in
23820 x86_64-*-*)
23821 # Build with the assembly implementation
23822 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS whirlpool-sse2-amd64.lo"
23823 ;;
23824 esac
23825 fi
23826
23827
23828 name=blake2
23829 list=$enabled_digests
23830 found=0
23831
23832 for n in $list; do
23833 if test "x$name" = "x$n"; then
23834 found=1
23835 fi
23836 done
23837
23838 if test "$found" = "1" ; then
23839 GCRYPT_DIGESTS="$GCRYPT_DIGESTS blake2.lo"
23840
23841 printf "%s\n" "#define USE_BLAKE2 1" >>confdefs.h
23842
23843
23844 case "${host}" in
23845 x86_64-*-*)
23846 # Build with the assembly implementation
23847 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS blake2b-amd64-avx2.lo"
23848 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS blake2b-amd64-avx512.lo"
23849 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS blake2s-amd64-avx.lo"
23850 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS blake2s-amd64-avx512.lo"
23851 ;;
23852 esac
23853 fi
23854
23855
23856 name=sm3
23857 list=$enabled_digests
23858 found=0
23859
23860 for n in $list; do
23861 if test "x$name" = "x$n"; then
23862 found=1
23863 fi
23864 done
23865
23866 if test "$found" = "1" ; then
23867 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sm3.lo"
23868
23869 printf "%s\n" "#define USE_SM3 1" >>confdefs.h
23870
23871
23872 case "${host}" in
23873 x86_64-*-*)
23874 # Build with the assembly implementation
23875 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sm3-avx-bmi2-amd64.lo"
23876 ;;
23877 aarch64-*-*)
23878 # Build with the assembly implementation
23879 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sm3-aarch64.lo"
23880 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sm3-armv8-aarch64-ce.lo"
23881 ;;
23882 esac
23883 fi
23884
23885 # SHA-1 needs to be included always for example because it is used by
23886 # random-csprng.c.
23887 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1.lo"
23888
23889 printf "%s\n" "#define USE_SHA1 1" >>confdefs.h
23890
23891
23892 case "${host}" in
23893 x86_64-*-*)
23894 # Build with the assembly implementation
23895 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-ssse3-amd64.lo"
23896 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-avx-amd64.lo"
23897 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-avx-bmi2-amd64.lo"
23898 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-avx2-bmi2-amd64.lo"
23899 ;;
23900 arm*-*-*)
23901 # Build with the assembly implementation
23902 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-armv7-neon.lo"
23903 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-armv8-aarch32-ce.lo"
23904 ;;
23905 aarch64-*-*)
23906 # Build with the assembly implementation
23907 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-armv8-aarch64-ce.lo"
23908 ;;
23909 esac
23910
23911 case "$mpi_cpu_arch" in
23912 x86)
23913 # Build with the SHAEXT implementation
23914 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS sha1-intel-shaext.lo"
23915 ;;
23916 esac
23917
23918 # Arch specific GCM implementations
23919 case "${host}" in
23920 i?86-*-* | x86_64-*-*)
23921 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-intel-pclmul.lo"
23922 ;;
23923 arm*-*-*)
23924 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-armv7-neon.lo"
23925 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-armv8-aarch32-ce.lo"
23926 ;;
23927 aarch64-*-*)
23928 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-aarch64-simd.lo"
23929 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-armv8-aarch64-ce.lo"
23930 ;;
23931 powerpc64le-*-* | powerpc64-*-* | powerpc-*-*)
23932 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-ppc.lo"
23933 ;;
23934 riscv64-*-*)
23935 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-riscv-zbb-zbc.lo"
23936 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS cipher-gcm-riscv-zvkg.lo"
23937 ;;
23938 esac
23939
23940 # Arch specific MAC implementations
23941 case "${host}" in
23942 s390x-*-*)
23943 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS poly1305-s390x.lo"
23944 ;;
23945 x86_64-*-*)
23946 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS poly1305-amd64-avx512.lo"
23947 ;;
23948 powerpc64le-*-*)
23949 # Build with the assembly implementation
23950 if test "$gcry_cv_gcc_inline_asm_ppc_altivec" = "yes" &&
23951 test "$gcry_cv_gcc_inline_asm_ppc_arch_3_00" = "yes" ; then
23952 GCRYPT_ASM_DIGESTS="$GCRYPT_ASM_DIGESTS poly1305-p10le.lo"
23953 fi
23954 ;;
23955 esac
23956
23957
23958 name=scrypt
23959 list=$enabled_kdfs
23960 found=0
23961
23962 for n in $list; do
23963 if test "x$name" = "x$n"; then
23964 found=1
23965 fi
23966 done
23967
23968 if test "$found" = "1" ; then
23969 GCRYPT_KDFS="$GCRYPT_KDFS scrypt.lo"
23970
23971 printf "%s\n" "#define USE_SCRYPT 1" >>confdefs.h
23972
23973 fi
23974
23975
23976 name=getentropy
23977 list=$random_modules
23978 found=0
23979
23980 for n in $list; do
23981 if test "x$name" = "x$n"; then
23982 found=1
23983 fi
23984 done
23985
23986 if test "$found" = "1" ; then
23987 GCRYPT_RANDOM="$GCRYPT_RANDOM rndgetentropy.lo"
23988
23989 printf "%s\n" "#define USE_RNDGETENTROPY 1" >>confdefs.h
23990
23991 fi
23992
23993
23994 name=linux
23995 list=$random_modules
23996 found=0
23997
23998 for n in $list; do
23999 if test "x$name" = "x$n"; then
24000 found=1
24001 fi
24002 done
24003
24004 if test "$found" = "1" ; then
24005 GCRYPT_RANDOM="$GCRYPT_RANDOM rndoldlinux.lo"
24006
24007 printf "%s\n" "#define USE_RNDOLDLINUX 1" >>confdefs.h
24008
24009 fi
24010
24011
24012 name=unix
24013 list=$random_modules
24014 found=0
24015
24016 for n in $list; do
24017 if test "x$name" = "x$n"; then
24018 found=1
24019 fi
24020 done
24021
24022 if test "$found" = "1" ; then
24023 GCRYPT_RANDOM="$GCRYPT_RANDOM rndunix.lo"
24024
24025 printf "%s\n" "#define USE_RNDUNIX 1" >>confdefs.h
24026
24027 fi
24028
24029
24030 name=egd
24031 list=$random_modules
24032 found=0
24033
24034 for n in $list; do
24035 if test "x$name" = "x$n"; then
24036 found=1
24037 fi
24038 done
24039
24040 if test "$found" = "1" ; then
24041 GCRYPT_RANDOM="$GCRYPT_RANDOM rndegd.lo"
24042
24043 printf "%s\n" "#define USE_RNDEGD 1" >>confdefs.h
24044
24045 fi
24046
24047
24048 name=w32
24049 list=$random_modules
24050 found=0
24051
24052 for n in $list; do
24053 if test "x$name" = "x$n"; then
24054 found=1
24055 fi
24056 done
24057
24058 if test "$found" = "1" ; then
24059 GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32.lo"
24060
24061 printf "%s\n" "#define USE_RNDW32 1" >>confdefs.h
24062
24063 fi
24064
24065 if test "$try_asm_modules" = yes ; then
24066 # Build with assembly implementations
24067 GCRYPT_CIPHERS="$GCRYPT_CIPHERS $GCRYPT_ASM_CIPHERS"
24068 GCRYPT_DIGESTS="$GCRYPT_DIGESTS $GCRYPT_ASM_DIGESTS"
24069 fi
24070
24071
24072
24073
24074
24075
24076
24077 LIBGCRYPT_CIPHERS=$enabled_ciphers
24078
24079 LIBGCRYPT_PUBKEY_CIPHERS=$enabled_pubkey_ciphers
24080
24081 LIBGCRYPT_DIGESTS=$enabled_digests
24082
24083
24084 # For printing the configuration we need a colon separated list of
24085 # algorithm names.
24086 tmp=`echo "$enabled_ciphers" | tr ' ' : `
24087
24088 printf "%s\n" "#define LIBGCRYPT_CIPHERS \"$tmp\"" >>confdefs.h
24089
24090 tmp=`echo "$enabled_pubkey_ciphers" | tr ' ' : `
24091
24092 printf "%s\n" "#define LIBGCRYPT_PUBKEY_CIPHERS \"$tmp\"" >>confdefs.h
24093
24094 tmp=`echo "$enabled_digests" | tr ' ' : `
24095
24096 printf "%s\n" "#define LIBGCRYPT_DIGESTS \"$tmp\"" >>confdefs.h
24097
24098 tmp=`echo "$enabled_kdfs" | tr ' ' : `
24099
24100 printf "%s\n" "#define LIBGCRYPT_KDFS \"$tmp\"" >>confdefs.h
24101
24102
24103
24104 #
24105 # Define conditional sources depending on the used hardware platform.
24106 # Note that all possible modules must also be listed in
24107 # src/Makefile.am (EXTRA_libgcrypt_la_SOURCES).
24108 #
24109 GCRYPT_HWF_MODULES=
24110 case "$mpi_cpu_arch" in
24111 x86)
24112
24113 printf "%s\n" "#define HAVE_CPU_ARCH_X86 1" >>confdefs.h
24114
24115 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-x86.lo"
24116 ;;
24117 alpha)
24118
24119 printf "%s\n" "#define HAVE_CPU_ARCH_ALPHA 1" >>confdefs.h
24120
24121 ;;
24122 sparc)
24123
24124 printf "%s\n" "#define HAVE_CPU_ARCH_SPARC 1" >>confdefs.h
24125
24126 ;;
24127 mips)
24128
24129 printf "%s\n" "#define HAVE_CPU_ARCH_MIPS 1" >>confdefs.h
24130
24131 ;;
24132 m68k)
24133
24134 printf "%s\n" "#define HAVE_CPU_ARCH_M68K 1" >>confdefs.h
24135
24136 ;;
24137 ppc)
24138
24139 printf "%s\n" "#define HAVE_CPU_ARCH_PPC 1" >>confdefs.h
24140
24141 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-ppc.lo"
24142 ;;
24143 arm)
24144
24145 printf "%s\n" "#define HAVE_CPU_ARCH_ARM 1" >>confdefs.h
24146
24147 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-arm.lo"
24148 ;;
24149 aarch64)
24150
24151 printf "%s\n" "#define HAVE_CPU_ARCH_ARM 1" >>confdefs.h
24152
24153 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-arm.lo"
24154 ;;
24155 s390x)
24156
24157 printf "%s\n" "#define HAVE_CPU_ARCH_S390X 1" >>confdefs.h
24158
24159 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-s390x.lo"
24160 ;;
24161 riscv64)
24162
24163 printf "%s\n" "#define HAVE_CPU_ARCH_RISCV 1" >>confdefs.h
24164
24165 GCRYPT_HWF_MODULES="libgcrypt_la-hwf-riscv.lo"
24166 ;;
24167 esac
24168
24169
24170
24171 #
24172 # Option to disable building of doc file
24173 #
24174 build_doc=yes
24175 # Check whether --enable-doc was given.
24176 if test ${enable_doc+y}
24177 then :
24178 enableval=$enable_doc; build_doc=$enableval
24179 else $as_nop
24180 build_doc=yes
24181 fi
24182
24183 if test "x$build_doc" != xno; then
24184 BUILD_DOC_TRUE=
24185 BUILD_DOC_FALSE='#'
24186 else
24187 BUILD_DOC_TRUE='#'
24188 BUILD_DOC_FALSE=
24189 fi
24190
24191
24192
24193 #
24194 # Provide information about the build.
24195 #
24196 BUILD_REVISION="efc34643"
24197
24198
24199 printf "%s\n" "#define BUILD_REVISION \"$BUILD_REVISION\"" >>confdefs.h
24200
24201 BUILD_COMMITID="efc346430901b84f1f580a147191624d7ded0db6"
24202
24203 printf "%s\n" "#define BUILD_COMMITID \"$BUILD_COMMITID\"" >>confdefs.h
24204
24205
24206 BUILD_VERSION=`echo "$PACKAGE_VERSION" | sed 's/\([0-9.]*\).*/\1./'`
24207 BUILD_VERSION="${BUILD_VERSION}61379"
24208 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
24209
24210
24211
24212 # Check whether --enable-build-timestamp was given.
24213 if test ${enable_build_timestamp+y}
24214 then :
24215 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
24216 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
24217 else
24218 BUILD_TIMESTAMP="$enableval"
24219 fi
24220 else $as_nop
24221 BUILD_TIMESTAMP="<none>"
24222 fi
24223
24224
24225
24226 printf "%s\n" "#define BUILD_TIMESTAMP \"$BUILD_TIMESTAMP\"" >>confdefs.h
24227
24228
24229
24230 # And create the files.
24231 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"
24232
24233 ac_config_files="$ac_config_files tests/hashtest-6g"
24234
24235 ac_config_files="$ac_config_files tests/hashtest-256g"
24236
24237 ac_config_files="$ac_config_files tests/basic-disable-all-hwf"
24238
24239 cat >confcache <<\_ACEOF
24240 # This file is a shell script that caches the results of configure
24241 # tests run on this system so they can be shared between configure
24242 # scripts and configure runs, see configure's option --config-cache.
24243 # It is not useful on other systems. If it contains results you don't
24244 # want to keep, you may remove or edit it.
24245 #
24246 # config.status only pays attention to the cache file if you give it
24247 # the --recheck option to rerun configure.
24248 #
24249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24251 # following values.
24252
24253 _ACEOF
24254
24255 # The following way of writing the cache mishandles newlines in values,
24256 # but we know of no workaround that is simple, portable, and efficient.
24257 # So, we kill variables containing newlines.
24258 # Ultrix sh set writes to stderr and can't be redirected directly,
24259 # and sets the high bit in the cache file unless we assign to the vars.
24260 (
24261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24262 eval ac_val=\$$ac_var
24263 case $ac_val in #(
24264 *${as_nl}*)
24265 case $ac_var in #(
24266 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24267 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24268 esac
24269 case $ac_var in #(
24270 _ | IFS | as_nl) ;; #(
24271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24272 *) { eval $ac_var=; unset $ac_var;} ;;
24273 esac ;;
24274 esac
24275 done
24276
24277 (set) 2>&1 |
24278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24279 *${as_nl}ac_space=\ *)
24280 # `set' does not quote correctly, so add quotes: double-quote
24281 # substitution turns \\\\ into \\, and sed turns \\ into \.
24282 sed -n \
24283 "s/'/'\\\\''/g;
24284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24285 ;; #(
24286 *)
24287 # `set' quotes correctly as required by POSIX, so do not add quotes.
24288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24289 ;;
24290 esac |
24291 sort
24292 ) |
24293 sed '
24294 /^ac_cv_env_/b end
24295 t clear
24296 :clear
24297 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
24298 t end
24299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24300 :end' >>confcache
24301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24302 if test -w "$cache_file"; then
24303 if test "x$cache_file" != "x/dev/null"; then
24304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24305 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
24306 if test ! -f "$cache_file" || test -h "$cache_file"; then
24307 cat confcache >"$cache_file"
24308 else
24309 case $cache_file in #(
24310 */* | ?:*)
24311 mv -f confcache "$cache_file"$$ &&
24312 mv -f "$cache_file"$$ "$cache_file" ;; #(
24313 *)
24314 mv -f confcache "$cache_file" ;;
24315 esac
24316 fi
24317 fi
24318 else
24319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24320 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
24321 fi
24322 fi
24323 rm -f confcache
24324
24325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24326 # Let make expand exec_prefix.
24327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24328
24329 DEFS=-DHAVE_CONFIG_H
24330
24331 ac_libobjs=
24332 ac_ltlibobjs=
24333 U=
24334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24335 # 1. Remove the extension, and $U if already installed.
24336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24337 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
24338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24339 # will be set to the directory where LIBOBJS objects are built.
24340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24342 done
24343 LIBOBJS=$ac_libobjs
24344
24345 LTLIBOBJS=$ac_ltlibobjs
24346
24347
24348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24349 printf %s "checking that generated files are newer than configure... " >&6; }
24350 if test -n "$am_sleep_pid"; then
24351 # Hide warnings about reused PIDs.
24352 wait $am_sleep_pid 2>/dev/null
24353 fi
24354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
24355 printf "%s\n" "done" >&6; }
24356 if test -n "$EXEEXT"; then
24357 am__EXEEXT_TRUE=
24358 am__EXEEXT_FALSE='#'
24359 else
24360 am__EXEEXT_TRUE='#'
24361 am__EXEEXT_FALSE=
24362 fi
24363
24364 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24365 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24367 fi
24368 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24369 as_fn_error $? "conditional \"AMDEP\" was never defined.
24370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24371 fi
24372 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24373 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24375 fi
24376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24377 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24379 fi
24380 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
24381 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
24382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24383 fi
24384 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
24385 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
24386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24387 fi
24388
24389 if test -z "${USE_HMAC_BINARY_CHECK_TRUE}" && test -z "${USE_HMAC_BINARY_CHECK_FALSE}"; then
24390 as_fn_error $? "conditional \"USE_HMAC_BINARY_CHECK\" was never defined.
24391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24392 fi
24393 if test -z "${ENABLE_O_FLAG_MUNGING_TRUE}" && test -z "${ENABLE_O_FLAG_MUNGING_FALSE}"; then
24394 as_fn_error $? "conditional \"ENABLE_O_FLAG_MUNGING\" was never defined.
24395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24396 fi
24397 if test -z "${ENABLE_INSTRUMENTATION_MUNGING_TRUE}" && test -z "${ENABLE_INSTRUMENTATION_MUNGING_FALSE}"; then
24398 as_fn_error $? "conditional \"ENABLE_INSTRUMENTATION_MUNGING\" was never defined.
24399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24400 fi
24401 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
24402 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
24403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24404 fi
24405 if test -z "${USE_GPGRT_CONFIG_TRUE}" && test -z "${USE_GPGRT_CONFIG_FALSE}"; then
24406 as_fn_error $? "conditional \"USE_GPGRT_CONFIG\" was never defined.
24407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24408 fi
24409 if test -z "${MPI_MOD_ASM_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_ADD1_FALSE}"; then
24410 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_ADD1\" was never defined.
24411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24412 fi
24413 if test -z "${MPI_MOD_ASM_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_SUB1_FALSE}"; then
24414 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_SUB1\" was never defined.
24415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24416 fi
24417 if test -z "${MPI_MOD_ASM_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL1_FALSE}"; then
24418 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL1\" was never defined.
24419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24420 fi
24421 if test -z "${MPI_MOD_ASM_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL2_FALSE}"; then
24422 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL2\" was never defined.
24423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24424 fi
24425 if test -z "${MPI_MOD_ASM_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL3_FALSE}"; then
24426 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL3\" was never defined.
24427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24428 fi
24429 if test -z "${MPI_MOD_ASM_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_LSHIFT_FALSE}"; then
24430 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_LSHIFT\" was never defined.
24431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24432 fi
24433 if test -z "${MPI_MOD_ASM_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_RSHIFT_FALSE}"; then
24434 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_RSHIFT\" was never defined.
24435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24436 fi
24437 if test -z "${MPI_MOD_ASM_UDIV_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_FALSE}"; then
24438 as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV\" was never defined.
24439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24440 fi
24441 if test -z "${MPI_MOD_ASM_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_QRNND_FALSE}"; then
24442 as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV_QRNND\" was never defined.
24443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24444 fi
24445 if test -z "${MPI_MOD_C_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_C_MPIH_ADD1_FALSE}"; then
24446 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_ADD1\" was never defined.
24447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24448 fi
24449 if test -z "${MPI_MOD_C_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_C_MPIH_SUB1_FALSE}"; then
24450 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_SUB1\" was never defined.
24451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24452 fi
24453 if test -z "${MPI_MOD_C_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL1_FALSE}"; then
24454 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL1\" was never defined.
24455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24456 fi
24457 if test -z "${MPI_MOD_C_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL2_FALSE}"; then
24458 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL2\" was never defined.
24459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24460 fi
24461 if test -z "${MPI_MOD_C_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL3_FALSE}"; then
24462 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL3\" was never defined.
24463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24464 fi
24465 if test -z "${MPI_MOD_C_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_LSHIFT_FALSE}"; then
24466 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_LSHIFT\" was never defined.
24467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24468 fi
24469 if test -z "${MPI_MOD_C_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_RSHIFT_FALSE}"; then
24470 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_RSHIFT\" was never defined.
24471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24472 fi
24473 if test -z "${MPI_MOD_C_UDIV_TRUE}" && test -z "${MPI_MOD_C_UDIV_FALSE}"; then
24474 as_fn_error $? "conditional \"MPI_MOD_C_UDIV\" was never defined.
24475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24476 fi
24477 if test -z "${MPI_MOD_C_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_C_UDIV_QRNND_FALSE}"; then
24478 as_fn_error $? "conditional \"MPI_MOD_C_UDIV_QRNND\" was never defined.
24479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24480 fi
24481 if test -z "${ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_TRUE}" && test -z "${ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS_FALSE}"; then
24482 as_fn_error $? "conditional \"ENABLE_X86_AVX512_INTRINSICS_EXTRA_CFLAGS\" was never defined.
24483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24484 fi
24485 if test -z "${ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_TRUE}" && test -z "${ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS_FALSE}"; then
24486 as_fn_error $? "conditional \"ENABLE_AARCH64_NEON_INTRINSICS_EXTRA_CFLAGS\" was never defined.
24487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24488 fi
24489 if test -z "${ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_TRUE}" && test -z "${ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS_FALSE}"; then
24490 as_fn_error $? "conditional \"ENABLE_PPC_VCRYPTO_EXTRA_CFLAGS\" was never defined.
24491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24492 fi
24493 if test -z "${SUPPORT_CC_RISCV_MSTRICT_ALIGN_TRUE}" && test -z "${SUPPORT_CC_RISCV_MSTRICT_ALIGN_FALSE}"; then
24494 as_fn_error $? "conditional \"SUPPORT_CC_RISCV_MSTRICT_ALIGN\" was never defined.
24495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24496 fi
24497 if test -z "${ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS_TRUE}" && test -z "${ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS_FALSE}"; then
24498 as_fn_error $? "conditional \"ENABLE_RISCV_VECTOR_INTRINSICS_EXTRA_CFLAGS\" was never defined.
24499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24500 fi
24501 if test -z "${ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS_TRUE}" && test -z "${ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS_FALSE}"; then
24502 as_fn_error $? "conditional \"ENABLE_RISCV_VECTOR_CRYPTO_INTRINSICS_EXTRA_CFLAGS\" was never defined.
24503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24504 fi
24505 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
24506 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
24507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24508 fi
24509 if test -z "${USE_DSA_TRUE}" && test -z "${USE_DSA_FALSE}"; then
24510 as_fn_error $? "conditional \"USE_DSA\" was never defined.
24511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24512 fi
24513 if test -z "${USE_RSA_TRUE}" && test -z "${USE_RSA_FALSE}"; then
24514 as_fn_error $? "conditional \"USE_RSA\" was never defined.
24515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24516 fi
24517 if test -z "${USE_ELGAMAL_TRUE}" && test -z "${USE_ELGAMAL_FALSE}"; then
24518 as_fn_error $? "conditional \"USE_ELGAMAL\" was never defined.
24519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24520 fi
24521 if test -z "${USE_ECC_TRUE}" && test -z "${USE_ECC_FALSE}"; then
24522 as_fn_error $? "conditional \"USE_ECC\" was never defined.
24523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24524 fi
24525 if test -z "${USE_KYBER_TRUE}" && test -z "${USE_KYBER_FALSE}"; then
24526 as_fn_error $? "conditional \"USE_KYBER\" was never defined.
24527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24528 fi
24529 if test -z "${USE_DILITHIUM_TRUE}" && test -z "${USE_DILITHIUM_FALSE}"; then
24530 as_fn_error $? "conditional \"USE_DILITHIUM\" was never defined.
24531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24532 fi
24533 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
24534 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
24535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24536 fi
24537
24538 : "${CONFIG_STATUS=./config.status}"
24539 ac_write_fail=0
24540 ac_clean_files_save=$ac_clean_files
24541 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24543 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
24544 as_write_fail=0
24545 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24546 #! $SHELL
24547 # Generated by $as_me.
24548 # Run this file to recreate the current configuration.
24549 # Compiler output produced by configure, useful for debugging
24550 # configure, is in config.log if it exists.
24551
24552 debug=false
24553 ac_cs_recheck=false
24554 ac_cs_silent=false
24555
24556 SHELL=\${CONFIG_SHELL-$SHELL}
24557 export SHELL
24558 _ASEOF
24559 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24560 ## -------------------- ##
24561 ## M4sh Initialization. ##
24562 ## -------------------- ##
24563
24564 # Be more Bourne compatible
24565 DUALCASE=1; export DUALCASE # for MKS sh
24566 as_nop=:
24567 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24568 then :
24569 emulate sh
24570 NULLCMD=:
24571 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24572 # is contrary to our usage. Disable this feature.
24573 alias -g '${1+"$@"}'='"$@"'
24574 setopt NO_GLOB_SUBST
24575 else $as_nop
24576 case `(set -o) 2>/dev/null` in #(
24577 *posix*) :
24578 set -o posix ;; #(
24579 *) :
24580 ;;
24581 esac
24582 fi
24583
24584
24585
24586 # Reset variables that may have inherited troublesome values from
24587 # the environment.
24588
24589 # IFS needs to be set, to space, tab, and newline, in precisely that order.
24590 # (If _AS_PATH_WALK were called with IFS unset, it would have the
24591 # side effect of setting IFS to empty, thus disabling word splitting.)
24592 # Quoting is to prevent editors from complaining about space-tab.
24593 as_nl='
24594 '
24595 export as_nl
24596 IFS=" "" $as_nl"
24597
24598 PS1='$ '
24599 PS2='> '
24600 PS4='+ '
24601
24602 # Ensure predictable behavior from utilities with locale-dependent output.
24603 LC_ALL=C
24604 export LC_ALL
24605 LANGUAGE=C
24606 export LANGUAGE
24607
24608 # We cannot yet rely on "unset" to work, but we need these variables
24609 # to be unset--not just set to an empty or harmless value--now, to
24610 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
24611 # also avoids known problems related to "unset" and subshell syntax
24612 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
24613 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
24614 do eval test \${$as_var+y} \
24615 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24616 done
24617
24618 # Ensure that fds 0, 1, and 2 are open.
24619 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
24620 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
24621 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
24622
24623 # The user is always right.
24624 if ${PATH_SEPARATOR+false} :; then
24625 PATH_SEPARATOR=:
24626 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24627 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24628 PATH_SEPARATOR=';'
24629 }
24630 fi
24631
24632
24633 # Find who we are. Look in the path if we contain no directory separator.
24634 as_myself=
24635 case $0 in #((
24636 *[\\/]* ) as_myself=$0 ;;
24637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24638 for as_dir in $PATH
24639 do
24640 IFS=$as_save_IFS
24641 case $as_dir in #(((
24642 '') as_dir=./ ;;
24643 */) ;;
24644 *) as_dir=$as_dir/ ;;
24645 esac
24646 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
24647 done
24648 IFS=$as_save_IFS
24649
24650 ;;
24651 esac
24652 # We did not find ourselves, most probably we were run as `sh COMMAND'
24653 # in which case we are not to be found in the path.
24654 if test "x$as_myself" = x; then
24655 as_myself=$0
24656 fi
24657 if test ! -f "$as_myself"; then
24658 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24659 exit 1
24660 fi
24661
24662
24663
24664 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24665 # ----------------------------------------
24666 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24667 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24668 # script with STATUS, using 1 if that was 0.
24669 as_fn_error ()
24670 {
24671 as_status=$1; test $as_status -eq 0 && as_status=1
24672 if test "$4"; then
24673 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24675 fi
24676 printf "%s\n" "$as_me: error: $2" >&2
24677 as_fn_exit $as_status
24678 } # as_fn_error
24679
24680
24681
24682 # as_fn_set_status STATUS
24683 # -----------------------
24684 # Set $? to STATUS, without forking.
24685 as_fn_set_status ()
24686 {
24687 return $1
24688 } # as_fn_set_status
24689
24690 # as_fn_exit STATUS
24691 # -----------------
24692 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24693 as_fn_exit ()
24694 {
24695 set +e
24696 as_fn_set_status $1
24697 exit $1
24698 } # as_fn_exit
24699
24700 # as_fn_unset VAR
24701 # ---------------
24702 # Portably unset VAR.
24703 as_fn_unset ()
24704 {
24705 { eval $1=; unset $1;}
24706 }
24707 as_unset=as_fn_unset
24708
24709 # as_fn_append VAR VALUE
24710 # ----------------------
24711 # Append the text in VALUE to the end of the definition contained in VAR. Take
24712 # advantage of any shell optimizations that allow amortized linear growth over
24713 # repeated appends, instead of the typical quadratic growth present in naive
24714 # implementations.
24715 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
24716 then :
24717 eval 'as_fn_append ()
24718 {
24719 eval $1+=\$2
24720 }'
24721 else $as_nop
24722 as_fn_append ()
24723 {
24724 eval $1=\$$1\$2
24725 }
24726 fi # as_fn_append
24727
24728 # as_fn_arith ARG...
24729 # ------------------
24730 # Perform arithmetic evaluation on the ARGs, and store the result in the
24731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24732 # must be portable across $(()) and expr.
24733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
24734 then :
24735 eval 'as_fn_arith ()
24736 {
24737 as_val=$(( $* ))
24738 }'
24739 else $as_nop
24740 as_fn_arith ()
24741 {
24742 as_val=`expr "$@" || test $? -eq 1`
24743 }
24744 fi # as_fn_arith
24745
24746
24747 if expr a : '\(a\)' >/dev/null 2>&1 &&
24748 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24749 as_expr=expr
24750 else
24751 as_expr=false
24752 fi
24753
24754 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24755 as_basename=basename
24756 else
24757 as_basename=false
24758 fi
24759
24760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24761 as_dirname=dirname
24762 else
24763 as_dirname=false
24764 fi
24765
24766 as_me=`$as_basename -- "$0" ||
24767 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24768 X"$0" : 'X\(//\)$' \| \
24769 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24770 printf "%s\n" X/"$0" |
24771 sed '/^.*\/\([^/][^/]*\)\/*$/{
24772 s//\1/
24773 q
24774 }
24775 /^X\/\(\/\/\)$/{
24776 s//\1/
24777 q
24778 }
24779 /^X\/\(\/\).*/{
24780 s//\1/
24781 q
24782 }
24783 s/.*/./; q'`
24784
24785 # Avoid depending upon Character Ranges.
24786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24789 as_cr_digits='0123456789'
24790 as_cr_alnum=$as_cr_Letters$as_cr_digits
24791
24792
24793 # Determine whether it's possible to make 'echo' print without a newline.
24794 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
24795 # for compatibility with existing Makefiles.
24796 ECHO_C= ECHO_N= ECHO_T=
24797 case `echo -n x` in #(((((
24798 -n*)
24799 case `echo 'xy\c'` in
24800 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24801 xy) ECHO_C='\c';;
24802 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24803 ECHO_T=' ';;
24804 esac;;
24805 *)
24806 ECHO_N='-n';;
24807 esac
24808
24809 # For backward compatibility with old third-party macros, we provide
24810 # the shell variables $as_echo and $as_echo_n. New code should use
24811 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
24812 as_echo='printf %s\n'
24813 as_echo_n='printf %s'
24814
24815 rm -f conf$$ conf$$.exe conf$$.file
24816 if test -d conf$$.dir; then
24817 rm -f conf$$.dir/conf$$.file
24818 else
24819 rm -f conf$$.dir
24820 mkdir conf$$.dir 2>/dev/null
24821 fi
24822 if (echo >conf$$.file) 2>/dev/null; then
24823 if ln -s conf$$.file conf$$ 2>/dev/null; then
24824 as_ln_s='ln -s'
24825 # ... but there are two gotchas:
24826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24828 # In both cases, we have to default to `cp -pR'.
24829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24830 as_ln_s='cp -pR'
24831 elif ln conf$$.file conf$$ 2>/dev/null; then
24832 as_ln_s=ln
24833 else
24834 as_ln_s='cp -pR'
24835 fi
24836 else
24837 as_ln_s='cp -pR'
24838 fi
24839 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24840 rmdir conf$$.dir 2>/dev/null
24841
24842
24843 # as_fn_mkdir_p
24844 # -------------
24845 # Create "$as_dir" as a directory, including parents if necessary.
24846 as_fn_mkdir_p ()
24847 {
24848
24849 case $as_dir in #(
24850 -*) as_dir=./$as_dir;;
24851 esac
24852 test -d "$as_dir" || eval $as_mkdir_p || {
24853 as_dirs=
24854 while :; do
24855 case $as_dir in #(
24856 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24857 *) as_qdir=$as_dir;;
24858 esac
24859 as_dirs="'$as_qdir' $as_dirs"
24860 as_dir=`$as_dirname -- "$as_dir" ||
24861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24862 X"$as_dir" : 'X\(//\)[^/]' \| \
24863 X"$as_dir" : 'X\(//\)$' \| \
24864 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24865 printf "%s\n" X"$as_dir" |
24866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24867 s//\1/
24868 q
24869 }
24870 /^X\(\/\/\)[^/].*/{
24871 s//\1/
24872 q
24873 }
24874 /^X\(\/\/\)$/{
24875 s//\1/
24876 q
24877 }
24878 /^X\(\/\).*/{
24879 s//\1/
24880 q
24881 }
24882 s/.*/./; q'`
24883 test -d "$as_dir" && break
24884 done
24885 test -z "$as_dirs" || eval "mkdir $as_dirs"
24886 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24887
24888
24889 } # as_fn_mkdir_p
24890 if mkdir -p . 2>/dev/null; then
24891 as_mkdir_p='mkdir -p "$as_dir"'
24892 else
24893 test -d ./-p && rmdir ./-p
24894 as_mkdir_p=false
24895 fi
24896
24897
24898 # as_fn_executable_p FILE
24899 # -----------------------
24900 # Test if FILE is an executable regular file.
24901 as_fn_executable_p ()
24902 {
24903 test -f "$1" && test -x "$1"
24904 } # as_fn_executable_p
24905 as_test_x='test -x'
24906 as_executable_p=as_fn_executable_p
24907
24908 # Sed expression to map a string onto a valid CPP name.
24909 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24910
24911 # Sed expression to map a string onto a valid variable name.
24912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24913
24914
24915 exec 6>&1
24916 ## ----------------------------------- ##
24917 ## Main body of $CONFIG_STATUS script. ##
24918 ## ----------------------------------- ##
24919 _ASEOF
24920 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24921
24922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24923 # Save the log message, to keep $0 and so on meaningful, and to
24924 # report actual input values of CONFIG_FILES etc. instead of their
24925 # values after options handling.
24926 ac_log="
24927 This file was extended by libgcrypt $as_me 1.12.2, which was
24928 generated by GNU Autoconf 2.71. Invocation command line was
24929
24930 CONFIG_FILES = $CONFIG_FILES
24931 CONFIG_HEADERS = $CONFIG_HEADERS
24932 CONFIG_LINKS = $CONFIG_LINKS
24933 CONFIG_COMMANDS = $CONFIG_COMMANDS
24934 $ $0 $@
24935
24936 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24937 "
24938
24939 _ACEOF
24940
24941 case $ac_config_files in *"
24942 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24943 esac
24944
24945 case $ac_config_headers in *"
24946 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24947 esac
24948
24949
24950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24951 # Files that config.status was made for.
24952 config_files="$ac_config_files"
24953 config_headers="$ac_config_headers"
24954 config_links="$ac_config_links"
24955 config_commands="$ac_config_commands"
24956
24957 _ACEOF
24958
24959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24960 ac_cs_usage="\
24961 \`$as_me' instantiates files and other configuration actions
24962 from templates according to the current configuration. Unless the files
24963 and actions are specified as TAGs, all are instantiated by default.
24964
24965 Usage: $0 [OPTION]... [TAG]...
24966
24967 -h, --help print this help, then exit
24968 -V, --version print version number and configuration settings, then exit
24969 --config print configuration, then exit
24970 -q, --quiet, --silent
24971 do not print progress messages
24972 -d, --debug don't remove temporary files
24973 --recheck update $as_me by reconfiguring in the same conditions
24974 --file=FILE[:TEMPLATE]
24975 instantiate the configuration file FILE
24976 --header=FILE[:TEMPLATE]
24977 instantiate the configuration header FILE
24978
24979 Configuration files:
24980 $config_files
24981
24982 Configuration headers:
24983 $config_headers
24984
24985 Configuration links:
24986 $config_links
24987
24988 Configuration commands:
24989 $config_commands
24990
24991 Report bugs to <https://bugs.gnupg.org>."
24992
24993 _ACEOF
24994 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
24995 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
24996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24997 ac_cs_config='$ac_cs_config_escaped'
24998 ac_cs_version="\\
24999 libgcrypt config.status 1.12.2
25000 configured by $0, generated by GNU Autoconf 2.71,
25001 with options \\"\$ac_cs_config\\"
25002
25003 Copyright (C) 2021 Free Software Foundation, Inc.
25004 This config.status script is free software; the Free Software Foundation
25005 gives unlimited permission to copy, distribute and modify it."
25006
25007 ac_pwd='$ac_pwd'
25008 srcdir='$srcdir'
25009 INSTALL='$INSTALL'
25010 MKDIR_P='$MKDIR_P'
25011 AWK='$AWK'
25012 test -n "\$AWK" || AWK=awk
25013 _ACEOF
25014
25015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25016 # The default lists apply if the user does not specify any file.
25017 ac_need_defaults=:
25018 while test $# != 0
25019 do
25020 case $1 in
25021 --*=?*)
25022 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25023 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25024 ac_shift=:
25025 ;;
25026 --*=)
25027 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25028 ac_optarg=
25029 ac_shift=:
25030 ;;
25031 *)
25032 ac_option=$1
25033 ac_optarg=$2
25034 ac_shift=shift
25035 ;;
25036 esac
25037
25038 case $ac_option in
25039 # Handling of the options.
25040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25041 ac_cs_recheck=: ;;
25042 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25043 printf "%s\n" "$ac_cs_version"; exit ;;
25044 --config | --confi | --conf | --con | --co | --c )
25045 printf "%s\n" "$ac_cs_config"; exit ;;
25046 --debug | --debu | --deb | --de | --d | -d )
25047 debug=: ;;
25048 --file | --fil | --fi | --f )
25049 $ac_shift
25050 case $ac_optarg in
25051 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25052 '') as_fn_error $? "missing file argument" ;;
25053 esac
25054 as_fn_append CONFIG_FILES " '$ac_optarg'"
25055 ac_need_defaults=false;;
25056 --header | --heade | --head | --hea )
25057 $ac_shift
25058 case $ac_optarg in
25059 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25060 esac
25061 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25062 ac_need_defaults=false;;
25063 --he | --h)
25064 # Conflict between --help and --header
25065 as_fn_error $? "ambiguous option: \`$1'
25066 Try \`$0 --help' for more information.";;
25067 --help | --hel | -h )
25068 printf "%s\n" "$ac_cs_usage"; exit ;;
25069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25070 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25071 ac_cs_silent=: ;;
25072
25073 # This is an error.
25074 -*) as_fn_error $? "unrecognized option: \`$1'
25075 Try \`$0 --help' for more information." ;;
25076
25077 *) as_fn_append ac_config_targets " $1"
25078 ac_need_defaults=false ;;
25079
25080 esac
25081 shift
25082 done
25083
25084 ac_configure_extra_args=
25085
25086 if $ac_cs_silent; then
25087 exec 6>/dev/null
25088 ac_configure_extra_args="$ac_configure_extra_args --silent"
25089 fi
25090
25091 _ACEOF
25092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25093 if \$ac_cs_recheck; then
25094 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25095 shift
25096 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
25097 CONFIG_SHELL='$SHELL'
25098 export CONFIG_SHELL
25099 exec "\$@"
25100 fi
25101
25102 _ACEOF
25103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25104 exec 5>>config.log
25105 {
25106 echo
25107 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25108 ## Running $as_me. ##
25109 _ASBOX
25110 printf "%s\n" "$ac_log"
25111 } >&5
25112
25113 _ACEOF
25114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25115 #
25116 # INIT-COMMANDS
25117 #
25118 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25119
25120
25121 # The HP-UX ksh and POSIX shell print the target directory to stdout
25122 # if CDPATH is set.
25123 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25124
25125 sed_quote_subst='$sed_quote_subst'
25126 double_quote_subst='$double_quote_subst'
25127 delay_variable_subst='$delay_variable_subst'
25128 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25129 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25130 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
25131 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25132 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25133 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25134 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25135 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25136 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25137 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25138 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25139 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25140 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25141 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25142 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25143 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25144 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25145 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25146 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25147 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25148 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25149 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25150 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25151 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25152 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25153 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25154 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25155 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25156 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25157 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25158 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25159 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25160 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25161 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25162 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25163 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25164 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25165 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
25166 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25167 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25168 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25169 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25170 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25171 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25172 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
25173 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25174 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25175 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25176 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25177 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25178 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25179 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25180 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25181 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25182 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25183 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25184 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25185 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25186 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25187 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25188 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25189 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"`'
25190 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25191 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25192 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25193 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25194 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25195 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25196 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25197 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25198 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25199 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25200 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25201 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25202 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25203 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25204 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25205 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25206 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25207 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25208 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25209 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25210 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25211 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25212 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25213 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25214 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25215 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25216 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25217 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25218 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25219 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25220 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25221 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25222 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25223 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25224 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25225 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25226 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25227 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25228 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25229 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25230 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25231 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25232 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25233 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25234 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25235 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25236 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25237 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25238 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25239 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25240 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25241 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25242 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25243 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25244 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25245 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25246 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25247 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25248 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25249 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25250 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25251 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25252 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25253 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25254 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25255 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25256 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25257 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25258 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25259 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25260 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25261 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25262 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25263 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25264 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25265 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25266 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
25267 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
25268 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
25269 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
25270 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
25271 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
25272 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
25273 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
25274 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
25275 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
25276 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
25277 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
25278 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
25279 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
25280 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
25281 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
25282 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
25283 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
25284 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
25285 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
25286 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
25287 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
25288 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
25289 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
25290 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
25291 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
25292 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
25293 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
25294 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
25295 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
25296 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
25297 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
25298 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
25299 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
25300 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
25301 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
25302 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
25303 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
25304 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
25305 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
25306 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
25307 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
25308
25309 LTCC='$LTCC'
25310 LTCFLAGS='$LTCFLAGS'
25311 compiler='$compiler_DEFAULT'
25312
25313 # A function that is used when there is no print builtin or printf.
25314 func_fallback_echo ()
25315 {
25316 eval 'cat <<_LTECHO_EOF
25317 \$1
25318 _LTECHO_EOF'
25319 }
25320
25321 # Quote evaled strings.
25322 for var in AS \
25323 DLLTOOL \
25324 OBJDUMP \
25325 SHELL \
25326 ECHO \
25327 PATH_SEPARATOR \
25328 SED \
25329 GREP \
25330 EGREP \
25331 FGREP \
25332 LD \
25333 NM \
25334 LN_S \
25335 lt_SP2NL \
25336 lt_NL2SP \
25337 reload_flag \
25338 FILECMD \
25339 deplibs_check_method \
25340 file_magic_cmd \
25341 file_magic_glob \
25342 want_nocaseglob \
25343 sharedlib_from_linklib_cmd \
25344 AR \
25345 archiver_list_spec \
25346 STRIP \
25347 RANLIB \
25348 CC \
25349 CFLAGS \
25350 compiler \
25351 lt_cv_sys_global_symbol_pipe \
25352 lt_cv_sys_global_symbol_to_cdecl \
25353 lt_cv_sys_global_symbol_to_import \
25354 lt_cv_sys_global_symbol_to_c_name_address \
25355 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25356 lt_cv_nm_interface \
25357 nm_file_list_spec \
25358 lt_cv_truncate_bin \
25359 lt_prog_compiler_no_builtin_flag \
25360 lt_prog_compiler_pic \
25361 lt_prog_compiler_wl \
25362 lt_prog_compiler_static \
25363 lt_cv_prog_compiler_c_o \
25364 need_locks \
25365 MANIFEST_TOOL \
25366 DSYMUTIL \
25367 NMEDIT \
25368 LIPO \
25369 OTOOL \
25370 OTOOL64 \
25371 shrext_cmds \
25372 export_dynamic_flag_spec \
25373 whole_archive_flag_spec \
25374 compiler_needs_object \
25375 with_gnu_ld \
25376 allow_undefined_flag \
25377 no_undefined_flag \
25378 hardcode_libdir_flag_spec \
25379 hardcode_libdir_separator \
25380 exclude_expsyms \
25381 include_expsyms \
25382 file_list_spec \
25383 variables_saved_for_relink \
25384 libname_spec \
25385 library_names_spec \
25386 soname_spec \
25387 install_override_mode \
25388 finish_eval \
25389 old_striplib \
25390 striplib \
25391 LD_RC \
25392 reload_flag_RC \
25393 compiler_RC \
25394 lt_prog_compiler_no_builtin_flag_RC \
25395 lt_prog_compiler_pic_RC \
25396 lt_prog_compiler_wl_RC \
25397 lt_prog_compiler_static_RC \
25398 lt_cv_prog_compiler_c_o_RC \
25399 export_dynamic_flag_spec_RC \
25400 whole_archive_flag_spec_RC \
25401 compiler_needs_object_RC \
25402 with_gnu_ld_RC \
25403 allow_undefined_flag_RC \
25404 no_undefined_flag_RC \
25405 hardcode_libdir_flag_spec_RC \
25406 hardcode_libdir_separator_RC \
25407 exclude_expsyms_RC \
25408 include_expsyms_RC \
25409 file_list_spec_RC; do
25410 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25411 *[\\\\\\\`\\"\\\$]*)
25412 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25413 ;;
25414 *)
25415 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25416 ;;
25417 esac
25418 done
25419
25420 # Double-quote double-evaled strings.
25421 for var in reload_cmds \
25422 old_postinstall_cmds \
25423 old_postuninstall_cmds \
25424 old_archive_cmds \
25425 extract_expsyms_cmds \
25426 old_archive_from_new_cmds \
25427 old_archive_from_expsyms_cmds \
25428 archive_cmds \
25429 archive_expsym_cmds \
25430 module_cmds \
25431 module_expsym_cmds \
25432 export_symbols_cmds \
25433 prelink_cmds \
25434 postlink_cmds \
25435 postinstall_cmds \
25436 postuninstall_cmds \
25437 finish_cmds \
25438 sys_lib_search_path_spec \
25439 configure_time_dlsearch_path \
25440 configure_time_lt_sys_library_path \
25441 reload_cmds_RC \
25442 old_archive_cmds_RC \
25443 old_archive_from_new_cmds_RC \
25444 old_archive_from_expsyms_cmds_RC \
25445 archive_cmds_RC \
25446 archive_expsym_cmds_RC \
25447 module_cmds_RC \
25448 module_expsym_cmds_RC \
25449 export_symbols_cmds_RC \
25450 prelink_cmds_RC \
25451 postlink_cmds_RC; do
25452 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25453 *[\\\\\\\`\\"\\\$]*)
25454 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25455 ;;
25456 *)
25457 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25458 ;;
25459 esac
25460 done
25461
25462 ac_aux_dir='$ac_aux_dir'
25463
25464 # See if we are running on zsh, and set the options that allow our
25465 # commands through without removal of \ escapes INIT.
25466 if test -n "\${ZSH_VERSION+set}"; then
25467 setopt NO_GLOB_SUBST
25468 fi
25469
25470
25471 PACKAGE='$PACKAGE'
25472 VERSION='$VERSION'
25473 RM='$RM'
25474 ofile='$ofile'
25475
25476
25477
25478
25479
25480 build_selection=$build_libtool_modification
25481
25482 prefix=$prefix
25483 exec_prefix=$exec_prefix
25484 libdir=$libdir
25485 datadir=$datadir
25486 DATADIRNAME=$DATADIRNAME
25487
25488
25489 _ACEOF
25490
25491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25492
25493 # Handling of arguments.
25494 for ac_config_target in $ac_config_targets
25495 do
25496 case $ac_config_target in
25497 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25498 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25499 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25500 "libtool-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-patch" ;;
25501 ""$mpi_ln_list"") CONFIG_LINKS="$CONFIG_LINKS "$mpi_ln_list"" ;;
25502 "gcrypt-conf") CONFIG_COMMANDS="$CONFIG_COMMANDS gcrypt-conf" ;;
25503 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25504 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
25505 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
25506 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
25507 "cipher/Makefile") CONFIG_FILES="$CONFIG_FILES cipher/Makefile" ;;
25508 "random/Makefile") CONFIG_FILES="$CONFIG_FILES random/Makefile" ;;
25509 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25510 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25511 "src/gcrypt.h") CONFIG_FILES="$CONFIG_FILES src/gcrypt.h" ;;
25512 "src/libgcrypt-config") CONFIG_FILES="$CONFIG_FILES src/libgcrypt-config" ;;
25513 "src/libgcrypt.pc") CONFIG_FILES="$CONFIG_FILES src/libgcrypt.pc" ;;
25514 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
25515 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25516 "tests/hashtest-6g") CONFIG_FILES="$CONFIG_FILES tests/hashtest-6g" ;;
25517 "tests/hashtest-256g") CONFIG_FILES="$CONFIG_FILES tests/hashtest-256g" ;;
25518 "tests/basic-disable-all-hwf") CONFIG_FILES="$CONFIG_FILES tests/basic-disable-all-hwf" ;;
25519
25520 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25521 esac
25522 done
25523
25524
25525 # If the user did not use the arguments to specify the items to instantiate,
25526 # then the envvar interface is used. Set only those that are not.
25527 # We use the long form for the default assignment because of an extremely
25528 # bizarre bug on SunOS 4.1.3.
25529 if $ac_need_defaults; then
25530 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
25531 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
25532 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
25533 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
25534 fi
25535
25536 # Have a temporary directory for convenience. Make it in the build tree
25537 # simply because there is no reason against having it here, and in addition,
25538 # creating and moving files from /tmp can sometimes cause problems.
25539 # Hook for its removal unless debugging.
25540 # Note that there is a small window in which the directory will not be cleaned:
25541 # after its creation but before its name has been assigned to `$tmp'.
25542 $debug ||
25543 {
25544 tmp= ac_tmp=
25545 trap 'exit_status=$?
25546 : "${ac_tmp:=$tmp}"
25547 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25548 ' 0
25549 trap 'as_fn_exit 1' 1 2 13 15
25550 }
25551 # Create a (secure) tmp directory for tmp files.
25552
25553 {
25554 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25555 test -d "$tmp"
25556 } ||
25557 {
25558 tmp=./conf$$-$RANDOM
25559 (umask 077 && mkdir "$tmp")
25560 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25561 ac_tmp=$tmp
25562
25563 # Set up the scripts for CONFIG_FILES section.
25564 # No need to generate them if there are no CONFIG_FILES.
25565 # This happens for instance with `./config.status config.h'.
25566 if test -n "$CONFIG_FILES"; then
25567
25568
25569 ac_cr=`echo X | tr X '\015'`
25570 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25571 # But we know of no other shell where ac_cr would be empty at this
25572 # point, so we can use a bashism as a fallback.
25573 if test "x$ac_cr" = x; then
25574 eval ac_cr=\$\'\\r\'
25575 fi
25576 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25577 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25578 ac_cs_awk_cr='\\r'
25579 else
25580 ac_cs_awk_cr=$ac_cr
25581 fi
25582
25583 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25584 _ACEOF
25585
25586
25587 {
25588 echo "cat >conf$$subs.awk <<_ACEOF" &&
25589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25590 echo "_ACEOF"
25591 } >conf$$subs.sh ||
25592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25594 ac_delim='%!_!# '
25595 for ac_last_try in false false false false false :; do
25596 . ./conf$$subs.sh ||
25597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25598
25599 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25600 if test $ac_delim_n = $ac_delim_num; then
25601 break
25602 elif $ac_last_try; then
25603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25604 else
25605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25606 fi
25607 done
25608 rm -f conf$$subs.sh
25609
25610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25611 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25612 _ACEOF
25613 sed -n '
25614 h
25615 s/^/S["/; s/!.*/"]=/
25616 p
25617 g
25618 s/^[^!]*!//
25619 :repl
25620 t repl
25621 s/'"$ac_delim"'$//
25622 t delim
25623 :nl
25624 h
25625 s/\(.\{148\}\)..*/\1/
25626 t more1
25627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25628 p
25629 n
25630 b repl
25631 :more1
25632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25633 p
25634 g
25635 s/.\{148\}//
25636 t nl
25637 :delim
25638 h
25639 s/\(.\{148\}\)..*/\1/
25640 t more2
25641 s/["\\]/\\&/g; s/^/"/; s/$/"/
25642 p
25643 b
25644 :more2
25645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25646 p
25647 g
25648 s/.\{148\}//
25649 t delim
25650 ' <conf$$subs.awk | sed '
25651 /^[^""]/{
25652 N
25653 s/\n//
25654 }
25655 ' >>$CONFIG_STATUS || ac_write_fail=1
25656 rm -f conf$$subs.awk
25657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25658 _ACAWK
25659 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25660 for (key in S) S_is_set[key] = 1
25661 FS = ""
25662
25663 }
25664 {
25665 line = $ 0
25666 nfields = split(line, field, "@")
25667 substed = 0
25668 len = length(field[1])
25669 for (i = 2; i < nfields; i++) {
25670 key = field[i]
25671 keylen = length(key)
25672 if (S_is_set[key]) {
25673 value = S[key]
25674 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25675 len += length(value) + length(field[++i])
25676 substed = 1
25677 } else
25678 len += 1 + keylen
25679 }
25680
25681 print line
25682 }
25683
25684 _ACAWK
25685 _ACEOF
25686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25687 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25688 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25689 else
25690 cat
25691 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25692 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25693 _ACEOF
25694
25695 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25696 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25697 # trailing colons and then remove the whole line if VPATH becomes empty
25698 # (actually we leave an empty line to preserve line numbers).
25699 if test "x$srcdir" = x.; then
25700 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25701 h
25702 s///
25703 s/^/:/
25704 s/[ ]*$/:/
25705 s/:\$(srcdir):/:/g
25706 s/:\${srcdir}:/:/g
25707 s/:@srcdir@:/:/g
25708 s/^:*//
25709 s/:*$//
25710 x
25711 s/\(=[ ]*\).*/\1/
25712 G
25713 s/\n//
25714 s/^[^=]*=[ ]*$//
25715 }'
25716 fi
25717
25718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25719 fi # test -n "$CONFIG_FILES"
25720
25721 # Set up the scripts for CONFIG_HEADERS section.
25722 # No need to generate them if there are no CONFIG_HEADERS.
25723 # This happens for instance with `./config.status Makefile'.
25724 if test -n "$CONFIG_HEADERS"; then
25725 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25726 BEGIN {
25727 _ACEOF
25728
25729 # Transform confdefs.h into an awk script `defines.awk', embedded as
25730 # here-document in config.status, that substitutes the proper values into
25731 # config.h.in to produce config.h.
25732
25733 # Create a delimiter string that does not exist in confdefs.h, to ease
25734 # handling of long lines.
25735 ac_delim='%!_!# '
25736 for ac_last_try in false false :; do
25737 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25738 if test -z "$ac_tt"; then
25739 break
25740 elif $ac_last_try; then
25741 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25742 else
25743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25744 fi
25745 done
25746
25747 # For the awk script, D is an array of macro values keyed by name,
25748 # likewise P contains macro parameters if any. Preserve backslash
25749 # newline sequences.
25750
25751 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25752 sed -n '
25753 s/.\{148\}/&'"$ac_delim"'/g
25754 t rset
25755 :rset
25756 s/^[ ]*#[ ]*define[ ][ ]*/ /
25757 t def
25758 d
25759 :def
25760 s/\\$//
25761 t bsnl
25762 s/["\\]/\\&/g
25763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25764 D["\1"]=" \3"/p
25765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25766 d
25767 :bsnl
25768 s/["\\]/\\&/g
25769 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25770 D["\1"]=" \3\\\\\\n"\\/p
25771 t cont
25772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25773 t cont
25774 d
25775 :cont
25776 n
25777 s/.\{148\}/&'"$ac_delim"'/g
25778 t clear
25779 :clear
25780 s/\\$//
25781 t bsnlc
25782 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25783 d
25784 :bsnlc
25785 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25786 b cont
25787 ' <confdefs.h | sed '
25788 s/'"$ac_delim"'/"\\\
25789 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25790
25791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25792 for (key in D) D_is_set[key] = 1
25793 FS = ""
25794 }
25795 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25796 line = \$ 0
25797 split(line, arg, " ")
25798 if (arg[1] == "#") {
25799 defundef = arg[2]
25800 mac1 = arg[3]
25801 } else {
25802 defundef = substr(arg[1], 2)
25803 mac1 = arg[2]
25804 }
25805 split(mac1, mac2, "(") #)
25806 macro = mac2[1]
25807 prefix = substr(line, 1, index(line, defundef) - 1)
25808 if (D_is_set[macro]) {
25809 # Preserve the white space surrounding the "#".
25810 print prefix "define", macro P[macro] D[macro]
25811 next
25812 } else {
25813 # Replace #undef with comments. This is necessary, for example,
25814 # in the case of _POSIX_SOURCE, which is predefined and required
25815 # on some systems where configure will not decide to define it.
25816 if (defundef == "undef") {
25817 print "/*", prefix defundef, macro, "*/"
25818 next
25819 }
25820 }
25821 }
25822 { print }
25823 _ACAWK
25824 _ACEOF
25825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25826 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25827 fi # test -n "$CONFIG_HEADERS"
25828
25829
25830 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
25831 shift
25832 for ac_tag
25833 do
25834 case $ac_tag in
25835 :[FHLC]) ac_mode=$ac_tag; continue;;
25836 esac
25837 case $ac_mode$ac_tag in
25838 :[FHL]*:*);;
25839 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25840 :[FH]-) ac_tag=-:-;;
25841 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25842 esac
25843 ac_save_IFS=$IFS
25844 IFS=:
25845 set x $ac_tag
25846 IFS=$ac_save_IFS
25847 shift
25848 ac_file=$1
25849 shift
25850
25851 case $ac_mode in
25852 :L) ac_source=$1;;
25853 :[FH])
25854 ac_file_inputs=
25855 for ac_f
25856 do
25857 case $ac_f in
25858 -) ac_f="$ac_tmp/stdin";;
25859 *) # Look for the file first in the build tree, then in the source tree
25860 # (if the path is not absolute). The absolute path cannot be DOS-style,
25861 # because $ac_f cannot contain `:'.
25862 test -f "$ac_f" ||
25863 case $ac_f in
25864 [\\/$]*) false;;
25865 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25866 esac ||
25867 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25868 esac
25869 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25870 as_fn_append ac_file_inputs " '$ac_f'"
25871 done
25872
25873 # Let's still pretend it is `configure' which instantiates (i.e., don't
25874 # use $as_me), people would be surprised to read:
25875 # /* config.h. Generated by config.status. */
25876 configure_input='Generated from '`
25877 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25878 `' by configure.'
25879 if test x"$ac_file" != x-; then
25880 configure_input="$ac_file. $configure_input"
25881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25882 printf "%s\n" "$as_me: creating $ac_file" >&6;}
25883 fi
25884 # Neutralize special characters interpreted by sed in replacement strings.
25885 case $configure_input in #(
25886 *\&* | *\|* | *\\* )
25887 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
25888 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25889 *) ac_sed_conf_input=$configure_input;;
25890 esac
25891
25892 case $ac_tag in
25893 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25895 esac
25896 ;;
25897 esac
25898
25899 ac_dir=`$as_dirname -- "$ac_file" ||
25900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25901 X"$ac_file" : 'X\(//\)[^/]' \| \
25902 X"$ac_file" : 'X\(//\)$' \| \
25903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25904 printf "%s\n" X"$ac_file" |
25905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25906 s//\1/
25907 q
25908 }
25909 /^X\(\/\/\)[^/].*/{
25910 s//\1/
25911 q
25912 }
25913 /^X\(\/\/\)$/{
25914 s//\1/
25915 q
25916 }
25917 /^X\(\/\).*/{
25918 s//\1/
25919 q
25920 }
25921 s/.*/./; q'`
25922 as_dir="$ac_dir"; as_fn_mkdir_p
25923 ac_builddir=.
25924
25925 case "$ac_dir" in
25926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25927 *)
25928 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25929 # A ".." for each directory in $ac_dir_suffix.
25930 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25931 case $ac_top_builddir_sub in
25932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25934 esac ;;
25935 esac
25936 ac_abs_top_builddir=$ac_pwd
25937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25938 # for backward compatibility:
25939 ac_top_builddir=$ac_top_build_prefix
25940
25941 case $srcdir in
25942 .) # We are building in place.
25943 ac_srcdir=.
25944 ac_top_srcdir=$ac_top_builddir_sub
25945 ac_abs_top_srcdir=$ac_pwd ;;
25946 [\\/]* | ?:[\\/]* ) # Absolute name.
25947 ac_srcdir=$srcdir$ac_dir_suffix;
25948 ac_top_srcdir=$srcdir
25949 ac_abs_top_srcdir=$srcdir ;;
25950 *) # Relative name.
25951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25952 ac_top_srcdir=$ac_top_build_prefix$srcdir
25953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25954 esac
25955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25956
25957
25958 case $ac_mode in
25959 :F)
25960 #
25961 # CONFIG_FILE
25962 #
25963
25964 case $INSTALL in
25965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25966 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25967 esac
25968 ac_MKDIR_P=$MKDIR_P
25969 case $MKDIR_P in
25970 [\\/$]* | ?:[\\/]* ) ;;
25971 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25972 esac
25973 _ACEOF
25974
25975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25976 # If the template does not know about datarootdir, expand it.
25977 # FIXME: This hack should be removed a few years after 2.60.
25978 ac_datarootdir_hack=; ac_datarootdir_seen=
25979 ac_sed_dataroot='
25980 /datarootdir/ {
25981 p
25982 q
25983 }
25984 /@datadir@/p
25985 /@docdir@/p
25986 /@infodir@/p
25987 /@localedir@/p
25988 /@mandir@/p'
25989 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25990 *datarootdir*) ac_datarootdir_seen=yes;;
25991 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25993 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25994 _ACEOF
25995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25996 ac_datarootdir_hack='
25997 s&@datadir@&$datadir&g
25998 s&@docdir@&$docdir&g
25999 s&@infodir@&$infodir&g
26000 s&@localedir@&$localedir&g
26001 s&@mandir@&$mandir&g
26002 s&\\\${datarootdir}&$datarootdir&g' ;;
26003 esac
26004 _ACEOF
26005
26006 # Neutralize VPATH when `$srcdir' = `.'.
26007 # Shell code in configure.ac might set extrasub.
26008 # FIXME: do we really want to maintain this feature?
26009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26010 ac_sed_extra="$ac_vpsub
26011 $extrasub
26012 _ACEOF
26013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26014 :t
26015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26016 s|@configure_input@|$ac_sed_conf_input|;t t
26017 s&@top_builddir@&$ac_top_builddir_sub&;t t
26018 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26019 s&@srcdir@&$ac_srcdir&;t t
26020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26021 s&@top_srcdir@&$ac_top_srcdir&;t t
26022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26023 s&@builddir@&$ac_builddir&;t t
26024 s&@abs_builddir@&$ac_abs_builddir&;t t
26025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26026 s&@INSTALL@&$ac_INSTALL&;t t
26027 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26028 $ac_datarootdir_hack
26029 "
26030 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26032
26033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26036 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26038 which seems to be undefined. Please make sure it is defined" >&5
26039 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26040 which seems to be undefined. Please make sure it is defined" >&2;}
26041
26042 rm -f "$ac_tmp/stdin"
26043 case $ac_file in
26044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26046 esac \
26047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26048 ;;
26049 :H)
26050 #
26051 # CONFIG_HEADER
26052 #
26053 if test x"$ac_file" != x-; then
26054 {
26055 printf "%s\n" "/* $configure_input */" >&1 \
26056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26057 } >"$ac_tmp/config.h" \
26058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26059 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26061 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
26062 else
26063 rm -f "$ac_file"
26064 mv "$ac_tmp/config.h" "$ac_file" \
26065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26066 fi
26067 else
26068 printf "%s\n" "/* $configure_input */" >&1 \
26069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26070 || as_fn_error $? "could not create -" "$LINENO" 5
26071 fi
26072 # Compute "$ac_file"'s index in $config_headers.
26073 _am_arg="$ac_file"
26074 _am_stamp_count=1
26075 for _am_header in $config_headers :; do
26076 case $_am_header in
26077 $_am_arg | $_am_arg:* )
26078 break ;;
26079 * )
26080 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26081 esac
26082 done
26083 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26084 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26085 X"$_am_arg" : 'X\(//\)[^/]' \| \
26086 X"$_am_arg" : 'X\(//\)$' \| \
26087 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26088 printf "%s\n" X"$_am_arg" |
26089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26090 s//\1/
26091 q
26092 }
26093 /^X\(\/\/\)[^/].*/{
26094 s//\1/
26095 q
26096 }
26097 /^X\(\/\/\)$/{
26098 s//\1/
26099 q
26100 }
26101 /^X\(\/\).*/{
26102 s//\1/
26103 q
26104 }
26105 s/.*/./; q'`/stamp-h$_am_stamp_count
26106 ;;
26107 :L)
26108 #
26109 # CONFIG_LINK
26110 #
26111
26112 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26113 :
26114 else
26115 # Prefer the file from the source tree if names are identical.
26116 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26117 ac_source=$srcdir/$ac_source
26118 fi
26119
26120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26121 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
26122
26123 if test ! -r "$ac_source"; then
26124 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
26125 fi
26126 rm -f "$ac_file"
26127
26128 # Try a relative symlink, then a hard link, then a copy.
26129 case $ac_source in
26130 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26131 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26132 esac
26133 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26134 ln "$ac_source" "$ac_file" 2>/dev/null ||
26135 cp -p "$ac_source" "$ac_file" ||
26136 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26137 fi
26138 ;;
26139 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26140 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
26141 ;;
26142 esac
26143
26144
26145 case $ac_file$ac_mode in
26146 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26147 # Older Autoconf quotes --file arguments for eval, but not when files
26148 # are listed without --file. Let's play safe and only enable the eval
26149 # if we detect the quoting.
26150 # TODO: see whether this extra hack can be removed once we start
26151 # requiring Autoconf 2.70 or later.
26152 case $CONFIG_FILES in #(
26153 *\'*) :
26154 eval set x "$CONFIG_FILES" ;; #(
26155 *) :
26156 set x $CONFIG_FILES ;; #(
26157 *) :
26158 ;;
26159 esac
26160 shift
26161 # Used to flag and report bootstrapping failures.
26162 am_rc=0
26163 for am_mf
26164 do
26165 # Strip MF so we end up with the name of the file.
26166 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
26167 # Check whether this is an Automake generated Makefile which includes
26168 # dependency-tracking related rules and includes.
26169 # Grep'ing the whole file directly is not great: AIX grep has a line
26170 # limit of 2048, but all sed's we know have understand at least 4000.
26171 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26172 || continue
26173 am_dirpart=`$as_dirname -- "$am_mf" ||
26174 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26175 X"$am_mf" : 'X\(//\)[^/]' \| \
26176 X"$am_mf" : 'X\(//\)$' \| \
26177 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26178 printf "%s\n" X"$am_mf" |
26179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26180 s//\1/
26181 q
26182 }
26183 /^X\(\/\/\)[^/].*/{
26184 s//\1/
26185 q
26186 }
26187 /^X\(\/\/\)$/{
26188 s//\1/
26189 q
26190 }
26191 /^X\(\/\).*/{
26192 s//\1/
26193 q
26194 }
26195 s/.*/./; q'`
26196 am_filepart=`$as_basename -- "$am_mf" ||
26197 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26198 X"$am_mf" : 'X\(//\)$' \| \
26199 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26200 printf "%s\n" X/"$am_mf" |
26201 sed '/^.*\/\([^/][^/]*\)\/*$/{
26202 s//\1/
26203 q
26204 }
26205 /^X\/\(\/\/\)$/{
26206 s//\1/
26207 q
26208 }
26209 /^X\/\(\/\).*/{
26210 s//\1/
26211 q
26212 }
26213 s/.*/./; q'`
26214 { echo "$as_me:$LINENO: cd "$am_dirpart" \
26215 && sed -e '/# am--include-marker/d' "$am_filepart" \
26216 | $MAKE -f - am--depfiles" >&5
26217 (cd "$am_dirpart" \
26218 && sed -e '/# am--include-marker/d' "$am_filepart" \
26219 | $MAKE -f - am--depfiles) >&5 2>&5
26220 ac_status=$?
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); } || am_rc=$?
26223 done
26224 if test $am_rc -ne 0; then
26225 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26226 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26227 as_fn_error $? "Something went wrong bootstrapping makefile fragments
26228 for automatic dependency tracking. If GNU make was not used, consider
26229 re-running the configure script with MAKE=\"gmake\" (or whatever is
26230 necessary). You can also try re-running configure with the
26231 '--disable-dependency-tracking' option to at least be able to build
26232 the package (albeit without support for automatic dependency tracking).
26233 See \`config.log' for more details" "$LINENO" 5; }
26234 fi
26235 { am_dirpart=; unset am_dirpart;}
26236 { am_filepart=; unset am_filepart;}
26237 { am_mf=; unset am_mf;}
26238 { am_rc=; unset am_rc;}
26239 rm -f conftest-deps.mk
26240 }
26241 ;;
26242 "libtool":C)
26243
26244 # See if we are running on zsh, and set the options that allow our
26245 # commands through without removal of \ escapes.
26246 if test -n "${ZSH_VERSION+set}"; then
26247 setopt NO_GLOB_SUBST
26248 fi
26249
26250 cfgfile=${ofile}T
26251 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26252 $RM "$cfgfile"
26253
26254 cat <<_LT_EOF >> "$cfgfile"
26255 #! $SHELL
26256 # Generated automatically by $as_me ($PACKAGE) $VERSION
26257 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26258
26259 # Provide generalized library-building support services.
26260 # Written by Gordon Matzigkeit, 1996
26261
26262 # Copyright (C) 2014 Free Software Foundation, Inc.
26263 # This is free software; see the source for copying conditions. There is NO
26264 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26265
26266 # GNU Libtool is free software; you can redistribute it and/or modify
26267 # it under the terms of the GNU General Public License as published by
26268 # the Free Software Foundation; either version 2 of of the License, or
26269 # (at your option) any later version.
26270 #
26271 # As a special exception to the GNU General Public License, if you
26272 # distribute this file as part of a program or library that is built
26273 # using GNU Libtool, you may include this file under the same
26274 # distribution terms that you use for the rest of that program.
26275 #
26276 # GNU Libtool is distributed in the hope that it will be useful, but
26277 # WITHOUT ANY WARRANTY; without even the implied warranty of
26278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26279 # GNU General Public License for more details.
26280 #
26281 # You should have received a copy of the GNU General Public License
26282 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26283
26284
26285 # The names of the tagged configurations supported by this script.
26286 available_tags='RC '
26287
26288 # Configured defaults for sys_lib_dlsearch_path munging.
26289 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26290
26291 # ### BEGIN LIBTOOL CONFIG
26292
26293 # Which release of libtool.m4 was used?
26294 macro_version=$macro_version
26295 macro_revision=$macro_revision
26296
26297 # Assembler program.
26298 AS=$lt_AS
26299
26300 # DLL creation program.
26301 DLLTOOL=$lt_DLLTOOL
26302
26303 # Object dumper program.
26304 OBJDUMP=$lt_OBJDUMP
26305
26306 # Whether or not to build static libraries.
26307 build_old_libs=$enable_static
26308
26309 # Whether or not to build shared libraries.
26310 build_libtool_libs=$enable_shared
26311
26312 # What type of objects to build.
26313 pic_mode=$pic_mode
26314
26315 # Whether or not to optimize for fast installation.
26316 fast_install=$enable_fast_install
26317
26318 # Shared archive member basename,for filename based shared library versioning on AIX.
26319 shared_archive_member_spec=$shared_archive_member_spec
26320
26321 # Shell to use when invoking shell scripts.
26322 SHELL=$lt_SHELL
26323
26324 # An echo program that protects backslashes.
26325 ECHO=$lt_ECHO
26326
26327 # The PATH separator for the build system.
26328 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26329
26330 # The host system.
26331 host_alias=$host_alias
26332 host=$host
26333 host_os=$host_os
26334
26335 # The build system.
26336 build_alias=$build_alias
26337 build=$build
26338 build_os=$build_os
26339
26340 # A sed program that does not truncate output.
26341 SED=$lt_SED
26342
26343 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26344 Xsed="\$SED -e 1s/^X//"
26345
26346 # A grep program that handles long lines.
26347 GREP=$lt_GREP
26348
26349 # An ERE matcher.
26350 EGREP=$lt_EGREP
26351
26352 # A literal string matcher.
26353 FGREP=$lt_FGREP
26354
26355 # A BSD- or MS-compatible name lister.
26356 NM=$lt_NM
26357
26358 # Whether we need soft or hard links.
26359 LN_S=$lt_LN_S
26360
26361 # What is the maximum length of a command?
26362 max_cmd_len=$max_cmd_len
26363
26364 # Object file suffix (normally "o").
26365 objext=$ac_objext
26366
26367 # Executable file suffix (normally "").
26368 exeext=$exeext
26369
26370 # whether the shell understands "unset".
26371 lt_unset=$lt_unset
26372
26373 # turn spaces into newlines.
26374 SP2NL=$lt_lt_SP2NL
26375
26376 # turn newlines into spaces.
26377 NL2SP=$lt_lt_NL2SP
26378
26379 # convert \$build file names to \$host format.
26380 to_host_file_cmd=$lt_cv_to_host_file_cmd
26381
26382 # convert \$build files to toolchain format.
26383 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26384
26385 # A file(cmd) program that detects file types.
26386 FILECMD=$lt_FILECMD
26387
26388 # Method to check whether dependent libraries are shared objects.
26389 deplibs_check_method=$lt_deplibs_check_method
26390
26391 # Command to use when deplibs_check_method = "file_magic".
26392 file_magic_cmd=$lt_file_magic_cmd
26393
26394 # How to find potential files when deplibs_check_method = "file_magic".
26395 file_magic_glob=$lt_file_magic_glob
26396
26397 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26398 want_nocaseglob=$lt_want_nocaseglob
26399
26400 # Command to associate shared and link libraries.
26401 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26402
26403 # The archiver.
26404 AR=$lt_AR
26405
26406 # Flags to create an archive (by configure).
26407 lt_ar_flags=$lt_ar_flags
26408
26409 # Flags to create an archive.
26410 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
26411
26412 # How to feed a file listing to the archiver.
26413 archiver_list_spec=$lt_archiver_list_spec
26414
26415 # A symbol stripping program.
26416 STRIP=$lt_STRIP
26417
26418 # Commands used to install an old-style archive.
26419 RANLIB=$lt_RANLIB
26420 old_postinstall_cmds=$lt_old_postinstall_cmds
26421 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26422
26423 # Whether to use a lock for old archive extraction.
26424 lock_old_archive_extraction=$lock_old_archive_extraction
26425
26426 # A C compiler.
26427 LTCC=$lt_CC
26428
26429 # LTCC compiler flags.
26430 LTCFLAGS=$lt_CFLAGS
26431
26432 # Take the output of nm and produce a listing of raw symbols and C names.
26433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26434
26435 # Transform the output of nm in a proper C declaration.
26436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26437
26438 # Transform the output of nm into a list of symbols to manually relocate.
26439 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26440
26441 # Transform the output of nm in a C name address pair.
26442 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26443
26444 # Transform the output of nm in a C name address pair when lib prefix is needed.
26445 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26446
26447 # The name lister interface.
26448 nm_interface=$lt_lt_cv_nm_interface
26449
26450 # Specify filename containing input files for \$NM.
26451 nm_file_list_spec=$lt_nm_file_list_spec
26452
26453 # The root where to search for dependent libraries,and where our libraries should be installed.
26454 lt_sysroot=$lt_sysroot
26455
26456 # Command to truncate a binary pipe.
26457 lt_truncate_bin=$lt_lt_cv_truncate_bin
26458
26459 # The name of the directory that contains temporary libtool files.
26460 objdir=$objdir
26461
26462 # Used to examine libraries when file_magic_cmd begins with "file".
26463 MAGIC_CMD=$MAGIC_CMD
26464
26465 # Must we lock files when doing compilation?
26466 need_locks=$lt_need_locks
26467
26468 # Manifest tool.
26469 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26470
26471 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26472 DSYMUTIL=$lt_DSYMUTIL
26473
26474 # Tool to change global to local symbols on Mac OS X.
26475 NMEDIT=$lt_NMEDIT
26476
26477 # Tool to manipulate fat objects and archives on Mac OS X.
26478 LIPO=$lt_LIPO
26479
26480 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26481 OTOOL=$lt_OTOOL
26482
26483 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26484 OTOOL64=$lt_OTOOL64
26485
26486 # Old archive suffix (normally "a").
26487 libext=$libext
26488
26489 # Shared library suffix (normally ".so").
26490 shrext_cmds=$lt_shrext_cmds
26491
26492 # The commands to extract the exported symbol list from a shared archive.
26493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26494
26495 # Variables whose values should be saved in libtool wrapper scripts and
26496 # restored at link time.
26497 variables_saved_for_relink=$lt_variables_saved_for_relink
26498
26499 # Do we need the "lib" prefix for modules?
26500 need_lib_prefix=$need_lib_prefix
26501
26502 # Do we need a version for libraries?
26503 need_version=$need_version
26504
26505 # Library versioning type.
26506 version_type=$version_type
26507
26508 # Shared library runtime path variable.
26509 runpath_var=$runpath_var
26510
26511 # Shared library path variable.
26512 shlibpath_var=$shlibpath_var
26513
26514 # Is shlibpath searched before the hard-coded library search path?
26515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26516
26517 # Format of library name prefix.
26518 libname_spec=$lt_libname_spec
26519
26520 # List of archive names. First name is the real one, the rest are links.
26521 # The last name is the one that the linker finds with -lNAME
26522 library_names_spec=$lt_library_names_spec
26523
26524 # The coded name of the library, if different from the real name.
26525 soname_spec=$lt_soname_spec
26526
26527 # Permission mode override for installation of shared libraries.
26528 install_override_mode=$lt_install_override_mode
26529
26530 # Command to use after installation of a shared archive.
26531 postinstall_cmds=$lt_postinstall_cmds
26532
26533 # Command to use after uninstallation of a shared archive.
26534 postuninstall_cmds=$lt_postuninstall_cmds
26535
26536 # Commands used to finish a libtool library installation in a directory.
26537 finish_cmds=$lt_finish_cmds
26538
26539 # As "finish_cmds", except a single script fragment to be evaled but
26540 # not shown.
26541 finish_eval=$lt_finish_eval
26542
26543 # Whether we should hardcode library paths into libraries.
26544 hardcode_into_libs=$hardcode_into_libs
26545
26546 # Compile-time system search path for libraries.
26547 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26548
26549 # Detected run-time system search path for libraries.
26550 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26551
26552 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26553 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26554
26555 # Whether dlopen is supported.
26556 dlopen_support=$enable_dlopen
26557
26558 # Whether dlopen of programs is supported.
26559 dlopen_self=$enable_dlopen_self
26560
26561 # Whether dlopen of statically linked programs is supported.
26562 dlopen_self_static=$enable_dlopen_self_static
26563
26564 # Commands to strip libraries.
26565 old_striplib=$lt_old_striplib
26566 striplib=$lt_striplib
26567
26568
26569 # The linker used to build libraries.
26570 LD=$lt_LD
26571
26572 # How to create reloadable object files.
26573 reload_flag=$lt_reload_flag
26574 reload_cmds=$lt_reload_cmds
26575
26576 # Commands used to build an old-style archive.
26577 old_archive_cmds=$lt_old_archive_cmds
26578
26579 # A language specific compiler.
26580 CC=$lt_compiler
26581
26582 # Is the compiler the GNU compiler?
26583 with_gcc=$GCC
26584
26585 # Compiler flag to turn off builtin functions.
26586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26587
26588 # Additional compiler flags for building library objects.
26589 pic_flag=$lt_lt_prog_compiler_pic
26590
26591 # How to pass a linker flag through the compiler.
26592 wl=$lt_lt_prog_compiler_wl
26593
26594 # Compiler flag to prevent dynamic linking.
26595 link_static_flag=$lt_lt_prog_compiler_static
26596
26597 # Does compiler simultaneously support -c and -o options?
26598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26599
26600 # Whether or not to add -lc for building shared libraries.
26601 build_libtool_need_lc=$archive_cmds_need_lc
26602
26603 # Whether or not to disallow shared libs when runtime libs are static.
26604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26605
26606 # Compiler flag to allow reflexive dlopens.
26607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26608
26609 # Compiler flag to generate shared objects directly from archives.
26610 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26611
26612 # Whether the compiler copes with passing no objects directly.
26613 compiler_needs_object=$lt_compiler_needs_object
26614
26615 # Create an old-style archive from a shared archive.
26616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26617
26618 # Create a temporary old-style archive to link instead of a shared archive.
26619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26620
26621 # Commands used to build a shared archive.
26622 archive_cmds=$lt_archive_cmds
26623 archive_expsym_cmds=$lt_archive_expsym_cmds
26624
26625 # Commands used to build a loadable module if different from building
26626 # a shared archive.
26627 module_cmds=$lt_module_cmds
26628 module_expsym_cmds=$lt_module_expsym_cmds
26629
26630 # Whether we are building with GNU ld or not.
26631 with_gnu_ld=$lt_with_gnu_ld
26632
26633 # Flag that allows shared libraries with undefined symbols to be built.
26634 allow_undefined_flag=$lt_allow_undefined_flag
26635
26636 # Flag that enforces no undefined symbols.
26637 no_undefined_flag=$lt_no_undefined_flag
26638
26639 # Flag to hardcode \$libdir into a binary during linking.
26640 # This must work even if \$libdir does not exist
26641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26642
26643 # Whether we need a single "-rpath" flag with a separated argument.
26644 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26645
26646 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26647 # DIR into the resulting binary.
26648 hardcode_direct=$hardcode_direct
26649
26650 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26651 # DIR into the resulting binary and the resulting library dependency is
26652 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26653 # library is relocated.
26654 hardcode_direct_absolute=$hardcode_direct_absolute
26655
26656 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26657 # into the resulting binary.
26658 hardcode_minus_L=$hardcode_minus_L
26659
26660 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26661 # into the resulting binary.
26662 hardcode_shlibpath_var=$hardcode_shlibpath_var
26663
26664 # Set to "yes" if building a shared library automatically hardcodes DIR
26665 # into the library and all subsequent libraries and executables linked
26666 # against it.
26667 hardcode_automatic=$hardcode_automatic
26668
26669 # Set to yes if linker adds runtime paths of dependent libraries
26670 # to runtime path list.
26671 inherit_rpath=$inherit_rpath
26672
26673 # Whether libtool must link a program against all its dependency libraries.
26674 link_all_deplibs=$link_all_deplibs
26675
26676 # Set to "yes" if exported symbols are required.
26677 always_export_symbols=$always_export_symbols
26678
26679 # The commands to list exported symbols.
26680 export_symbols_cmds=$lt_export_symbols_cmds
26681
26682 # Symbols that should not be listed in the preloaded symbols.
26683 exclude_expsyms=$lt_exclude_expsyms
26684
26685 # Symbols that must always be exported.
26686 include_expsyms=$lt_include_expsyms
26687
26688 # Commands necessary for linking programs (against libraries) with templates.
26689 prelink_cmds=$lt_prelink_cmds
26690
26691 # Commands necessary for finishing linking programs.
26692 postlink_cmds=$lt_postlink_cmds
26693
26694 # Specify filename containing input files.
26695 file_list_spec=$lt_file_list_spec
26696
26697 # How to hardcode a shared library path into an executable.
26698 hardcode_action=$hardcode_action
26699
26700 # ### END LIBTOOL CONFIG
26701
26702 _LT_EOF
26703
26704 cat <<'_LT_EOF' >> "$cfgfile"
26705
26706 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26707
26708 # func_munge_path_list VARIABLE PATH
26709 # -----------------------------------
26710 # VARIABLE is name of variable containing _space_ separated list of
26711 # directories to be munged by the contents of PATH, which is string
26712 # having a format:
26713 # "DIR[:DIR]:"
26714 # string "DIR[ DIR]" will be prepended to VARIABLE
26715 # ":DIR[:DIR]"
26716 # string "DIR[ DIR]" will be appended to VARIABLE
26717 # "DIRP[:DIRP]::[DIRA:]DIRA"
26718 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26719 # "DIRA[ DIRA]" will be appended to VARIABLE
26720 # "DIR[:DIR]"
26721 # VARIABLE will be replaced by "DIR[ DIR]"
26722 func_munge_path_list ()
26723 {
26724 case x$2 in
26725 x)
26726 ;;
26727 *:)
26728 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26729 ;;
26730 x:*)
26731 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26732 ;;
26733 *::*)
26734 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26735 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26736 ;;
26737 *)
26738 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26739 ;;
26740 esac
26741 }
26742
26743
26744 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26745 func_cc_basename ()
26746 {
26747 for cc_temp in $*""; do
26748 case $cc_temp in
26749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26751 \-*) ;;
26752 *) break;;
26753 esac
26754 done
26755 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26756 }
26757
26758
26759 # ### END FUNCTIONS SHARED WITH CONFIGURE
26760
26761 _LT_EOF
26762
26763 case $host_os in
26764 aix3*)
26765 cat <<\_LT_EOF >> "$cfgfile"
26766 # AIX sometimes has problems with the GCC collect2 program. For some
26767 # reason, if we set the COLLECT_NAMES environment variable, the problems
26768 # vanish in a puff of smoke.
26769 if test set != "${COLLECT_NAMES+set}"; then
26770 COLLECT_NAMES=
26771 export COLLECT_NAMES
26772 fi
26773 _LT_EOF
26774 ;;
26775 esac
26776
26777
26778
26779 ltmain=$ac_aux_dir/ltmain.sh
26780
26781
26782 # We use sed instead of cat because bash on DJGPP gets confused if
26783 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26784 # text mode, it properly converts lines to CR/LF. This bash problem
26785 # is reportedly fixed, but why not run on old versions too?
26786 $SED '$q' "$ltmain" >> "$cfgfile" \
26787 || (rm -f "$cfgfile"; exit 1)
26788
26789 mv -f "$cfgfile" "$ofile" ||
26790 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26791 chmod +x "$ofile"
26792
26793
26794 cat <<_LT_EOF >> "$ofile"
26795
26796 # ### BEGIN LIBTOOL TAG CONFIG: RC
26797
26798 # The linker used to build libraries.
26799 LD=$lt_LD_RC
26800
26801 # How to create reloadable object files.
26802 reload_flag=$lt_reload_flag_RC
26803 reload_cmds=$lt_reload_cmds_RC
26804
26805 # Commands used to build an old-style archive.
26806 old_archive_cmds=$lt_old_archive_cmds_RC
26807
26808 # A language specific compiler.
26809 CC=$lt_compiler_RC
26810
26811 # Is the compiler the GNU compiler?
26812 with_gcc=$GCC_RC
26813
26814 # Compiler flag to turn off builtin functions.
26815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26816
26817 # Additional compiler flags for building library objects.
26818 pic_flag=$lt_lt_prog_compiler_pic_RC
26819
26820 # How to pass a linker flag through the compiler.
26821 wl=$lt_lt_prog_compiler_wl_RC
26822
26823 # Compiler flag to prevent dynamic linking.
26824 link_static_flag=$lt_lt_prog_compiler_static_RC
26825
26826 # Does compiler simultaneously support -c and -o options?
26827 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26828
26829 # Whether or not to add -lc for building shared libraries.
26830 build_libtool_need_lc=$archive_cmds_need_lc_RC
26831
26832 # Whether or not to disallow shared libs when runtime libs are static.
26833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26834
26835 # Compiler flag to allow reflexive dlopens.
26836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26837
26838 # Compiler flag to generate shared objects directly from archives.
26839 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26840
26841 # Whether the compiler copes with passing no objects directly.
26842 compiler_needs_object=$lt_compiler_needs_object_RC
26843
26844 # Create an old-style archive from a shared archive.
26845 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26846
26847 # Create a temporary old-style archive to link instead of a shared archive.
26848 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26849
26850 # Commands used to build a shared archive.
26851 archive_cmds=$lt_archive_cmds_RC
26852 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26853
26854 # Commands used to build a loadable module if different from building
26855 # a shared archive.
26856 module_cmds=$lt_module_cmds_RC
26857 module_expsym_cmds=$lt_module_expsym_cmds_RC
26858
26859 # Whether we are building with GNU ld or not.
26860 with_gnu_ld=$lt_with_gnu_ld_RC
26861
26862 # Flag that allows shared libraries with undefined symbols to be built.
26863 allow_undefined_flag=$lt_allow_undefined_flag_RC
26864
26865 # Flag that enforces no undefined symbols.
26866 no_undefined_flag=$lt_no_undefined_flag_RC
26867
26868 # Flag to hardcode \$libdir into a binary during linking.
26869 # This must work even if \$libdir does not exist
26870 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26871
26872 # Whether we need a single "-rpath" flag with a separated argument.
26873 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26874
26875 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26876 # DIR into the resulting binary.
26877 hardcode_direct=$hardcode_direct_RC
26878
26879 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26880 # DIR into the resulting binary and the resulting library dependency is
26881 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26882 # library is relocated.
26883 hardcode_direct_absolute=$hardcode_direct_absolute_RC
26884
26885 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26886 # into the resulting binary.
26887 hardcode_minus_L=$hardcode_minus_L_RC
26888
26889 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26890 # into the resulting binary.
26891 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26892
26893 # Set to "yes" if building a shared library automatically hardcodes DIR
26894 # into the library and all subsequent libraries and executables linked
26895 # against it.
26896 hardcode_automatic=$hardcode_automatic_RC
26897
26898 # Set to yes if linker adds runtime paths of dependent libraries
26899 # to runtime path list.
26900 inherit_rpath=$inherit_rpath_RC
26901
26902 # Whether libtool must link a program against all its dependency libraries.
26903 link_all_deplibs=$link_all_deplibs_RC
26904
26905 # Set to "yes" if exported symbols are required.
26906 always_export_symbols=$always_export_symbols_RC
26907
26908 # The commands to list exported symbols.
26909 export_symbols_cmds=$lt_export_symbols_cmds_RC
26910
26911 # Symbols that should not be listed in the preloaded symbols.
26912 exclude_expsyms=$lt_exclude_expsyms_RC
26913
26914 # Symbols that must always be exported.
26915 include_expsyms=$lt_include_expsyms_RC
26916
26917 # Commands necessary for linking programs (against libraries) with templates.
26918 prelink_cmds=$lt_prelink_cmds_RC
26919
26920 # Commands necessary for finishing linking programs.
26921 postlink_cmds=$lt_postlink_cmds_RC
26922
26923 # Specify filename containing input files.
26924 file_list_spec=$lt_file_list_spec_RC
26925
26926 # How to hardcode a shared library path into an executable.
26927 hardcode_action=$hardcode_action_RC
26928
26929 # ### END LIBTOOL TAG CONFIG: RC
26930 _LT_EOF
26931
26932 ;;
26933 "libtool-patch":C)
26934 if test "$build_selection" = never; then
26935 echo "patch not applied"
26936 elif (mv -f libtool libtool.orig; \
26937 sed -f $srcdir/build-aux/libtool-patch.sed libtool.orig >libtool); then
26938 echo "applied successfully"
26939 elif test "$build_selection" = try; then
26940 mv -f libtool.orig libtool
26941 echo "patch failed, thus, using original"
26942 else
26943 echo "patch failed"
26944 as_fn_exit 1
26945 fi
26946 ;;
26947 "gcrypt-conf":C)
26948 chmod +x src/libgcrypt-config
26949 ;;
26950 "tests/hashtest-6g":F) chmod +x tests/hashtest-6g ;;
26951 "tests/hashtest-256g":F) chmod +x tests/hashtest-256g ;;
26952 "tests/basic-disable-all-hwf":F) chmod +x tests/basic-disable-all-hwf ;;
26953
26954 esac
26955 done # for ac_tag
26956
26957
26958 as_fn_exit 0
26959 _ACEOF
26960 ac_clean_files=$ac_clean_files_save
26961
26962 test $ac_write_fail = 0 ||
26963 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26964
26965
26966 # configure is writing to config.log, and then calls config.status.
26967 # config.status does its own redirection, appending to config.log.
26968 # Unfortunately, on DOS this fails, as config.log is still kept open
26969 # by configure, so config.status won't be able to write to it; its
26970 # output is simply discarded. So we exec the FD to /dev/null,
26971 # effectively closing config.log, so it can be properly (re)opened and
26972 # appended to by config.status. When coming back to configure, we
26973 # need to make the FD available again.
26974 if test "$no_create" != yes; then
26975 ac_cs_success=:
26976 ac_config_status_args=
26977 test "$silent" = yes &&
26978 ac_config_status_args="$ac_config_status_args --quiet"
26979 exec 5>/dev/null
26980 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26981 exec 5>>config.log
26982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26983 # would make configure fail if this is the last instruction.
26984 $ac_cs_success || as_fn_exit 1
26985 fi
26986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26988 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26989 fi
26990
26991
26992
26993 detection_module="${GCRYPT_HWF_MODULES%.lo}"
26994 test -n "$detection_module" || detection_module="none"
26995
26996 # Give some feedback
26997
26998 echo " " 1>&6
26999
27000
27001 echo " Libgcrypt v${VERSION} has been configured as follows:" 1>&6
27002
27003
27004 echo " " 1>&6
27005
27006
27007 echo " Platform: $PRINTABLE_OS_NAME ($host)" 1>&6
27008
27009
27010 echo " Hardware detection module: $detection_module" 1>&6
27011
27012
27013 tmp=" Enabled cipher algorithms:"
27014 tmpi="abc"
27015 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
27016 echo "$tmp $enabled_ciphers" 1>&6
27017 else
27018 tmpi=`echo "$tmp"| sed 's/./ /g'`
27019 echo $enabled_ciphers EOF | tr ' ' '\n' | \
27020 while read word; do
27021 if test "${#tmp}" -gt 70 ; then
27022 echo "$tmp" 1>&6
27023 tmp="$tmpi"
27024 fi
27025 if test "$word" = "EOF" ; then
27026 echo "$tmp" 1>&6
27027 else
27028 tmp="$tmp $word"
27029 fi
27030 done
27031 fi
27032
27033
27034 tmp=" Enabled digest algorithms:"
27035 tmpi="abc"
27036 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
27037 echo "$tmp $enabled_digests" 1>&6
27038 else
27039 tmpi=`echo "$tmp"| sed 's/./ /g'`
27040 echo $enabled_digests EOF | tr ' ' '\n' | \
27041 while read word; do
27042 if test "${#tmp}" -gt 70 ; then
27043 echo "$tmp" 1>&6
27044 tmp="$tmpi"
27045 fi
27046 if test "$word" = "EOF" ; then
27047 echo "$tmp" 1>&6
27048 else
27049 tmp="$tmp $word"
27050 fi
27051 done
27052 fi
27053
27054
27055 tmp=" Enabled kdf algorithms: "
27056 tmpi="abc"
27057 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
27058 echo "$tmp $enabled_kdfs" 1>&6
27059 else
27060 tmpi=`echo "$tmp"| sed 's/./ /g'`
27061 echo $enabled_kdfs EOF | tr ' ' '\n' | \
27062 while read word; do
27063 if test "${#tmp}" -gt 70 ; then
27064 echo "$tmp" 1>&6
27065 tmp="$tmpi"
27066 fi
27067 if test "$word" = "EOF" ; then
27068 echo "$tmp" 1>&6
27069 else
27070 tmp="$tmp $word"
27071 fi
27072 done
27073 fi
27074
27075
27076 tmp=" Enabled pubkey algorithms:"
27077 tmpi="abc"
27078 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
27079 echo "$tmp $enabled_pubkey_ciphers" 1>&6
27080 else
27081 tmpi=`echo "$tmp"| sed 's/./ /g'`
27082 echo $enabled_pubkey_ciphers EOF | tr ' ' '\n' | \
27083 while read word; do
27084 if test "${#tmp}" -gt 70 ; then
27085 echo "$tmp" 1>&6
27086 tmp="$tmpi"
27087 fi
27088 if test "$word" = "EOF" ; then
27089 echo "$tmp" 1>&6
27090 else
27091 tmp="$tmp $word"
27092 fi
27093 done
27094 fi
27095
27096
27097 echo " Random number generator: $random" 1>&6
27098
27099
27100 echo " Try using jitter entropy: $jentsupport" 1>&6
27101
27102
27103 echo " Using linux capabilities: $use_capabilities" 1>&6
27104
27105
27106 echo " FIPS module version: $fips_module_version" 1>&6
27107
27108
27109 echo " Try using Padlock crypto: $padlocksupport" 1>&6
27110
27111
27112 echo " Try using AES-NI crypto: $aesnisupport" 1>&6
27113
27114
27115 echo " Try using Intel SHAEXT: $shaextsupport" 1>&6
27116
27117
27118 echo " Try using Intel PCLMUL: $pclmulsupport" 1>&6
27119
27120
27121 echo " Try using Intel SSE4.1: $sse41support" 1>&6
27122
27123
27124 echo " Try using DRNG (RDRAND): $drngsupport" 1>&6
27125
27126
27127 echo " Try using Intel AVX: $avxsupport" 1>&6
27128
27129
27130 echo " Try using Intel AVX2: $avx2support" 1>&6
27131
27132
27133 echo " Try using Intel AVX512: $avx512support" 1>&6
27134
27135
27136 echo " Try using Intel GFNI: $gfnisupport" 1>&6
27137
27138
27139 echo " Try using ARM NEON: $neonsupport" 1>&6
27140
27141
27142 echo " Try using ARMv8 crypto: $armcryptosupport" 1>&6
27143
27144
27145 echo " Try using ARMv8 SVE: $svesupport" 1>&6
27146
27147
27148 echo " Try using ARMv9 SVE2: $sve2support" 1>&6
27149
27150
27151 echo " Try using PPC crypto: $ppccryptosupport" 1>&6
27152
27153
27154 echo " " 1>&6
27155
27156
27157 if test "x${gpg_config_script_warn}" != x; then
27158 cat <<G10EOF
27159 Mismatches between the target platform and the to
27160 be used libraries have been been detected for:
27161 ${gpg_config_script_warn}
27162 Please check above for warning messages.
27163
27164 G10EOF
27165 fi
27166
27167 if test "$gcry_cv_gcc_attribute_aligned" != "yes" ; then
27168 cat <<G10EOF
27169 Please note that your compiler does not support the GCC style
27170 aligned attribute. Using this software may evoke bus errors.
27171
27172 G10EOF
27173 fi
27174