Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for Guile-GnuTLS 5.0.2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
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
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system,
283 $0: including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='Guile-GnuTLS'
616 PACKAGE_TARNAME='guile-gnutls'
617 PACKAGE_VERSION='5.0.2'
618 PACKAGE_STRING='Guile-GnuTLS 5.0.2'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL='https://codeberg.org/guile-gnutls/guile-gnutls'
621
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 ac_subst_vars='am__EXEEXT_FALSE
655 am__EXEEXT_TRUE
656 LTLIBOBJS
657 LIBOBJS
658 abs_top_srcdir
659 HAVE_GCC_FALSE
660 HAVE_GCC_TRUE
661 HAVE_GCC_GNU89_INLINE_OPTION_FALSE
662 HAVE_GCC_GNU89_INLINE_OPTION_TRUE
663 CROSS_COMPILING_FALSE
664 CROSS_COMPILING_TRUE
665 HAVE_GUILD_FALSE
666 HAVE_GUILD_TRUE
667 maybe_guileextensiondir
668 ALLOCA
669 sizeof_time_t
670 GUILE_LDFLAGS
671 GUILE_LTLIBS
672 GUILE_LIBS
673 GUILE_CFLAGS
674 GUILE_EXTENSION
675 GUILE_SITE_CCACHE
676 GUILE_SITE
677 GUILE_TOOLS
678 GUILE_CONFIG
679 GUILE
680 GUILE_EFFECTIVE_VERSION
681 GUILD
682 guile_snarf
683 guileextensiondir
684 guilesiteccachedir
685 guilesitedir
686 ENABLE_SRP_FALSE
687 ENABLE_SRP_TRUE
688 GNUTLS_LIBS
689 GNUTLS_CFLAGS
690 PKG_CONFIG
691 LT_SYS_LIBRARY_PATH
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 DLLTOOL
700 OBJDUMP
701 FILECMD
702 LN_S
703 NM
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 EGREP
709 GREP
710 SED
711 host_os
712 host_vendor
713 host_cpu
714 host
715 build_os
716 build_vendor
717 build_cpu
718 build
719 LIBTOOL
720 ac_ct_AR
721 AR
722 CPP
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 am__xargs_n
740 am__rm_f_notfound
741 AM_BACKSLASH
742 AM_DEFAULT_VERBOSITY
743 AM_DEFAULT_V
744 AM_V
745 CSCOPE
746 ETAGS
747 CTAGS
748 am__untar
749 am__tar
750 AMTAR
751 am__leading_dot
752 SET_MAKE
753 AWK
754 mkdir_p
755 MKDIR_P
756 INSTALL_STRIP_PROGRAM
757 STRIP
758 install_sh
759 MAKEINFO
760 AUTOHEADER
761 AUTOMAKE
762 AUTOCONF
763 ACLOCAL
764 VERSION
765 PACKAGE
766 CYGPATH_W
767 am__isrc
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 runstatedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_URL
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL
810 am__quote'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_silent_rules
815 enable_dependency_tracking
816 enable_static
817 enable_shared
818 with_pic
819 enable_fast_install
820 with_aix_soname
821 with_gnu_ld
822 with_sysroot
823 enable_libtool_lock
824 enable_srp_authentication
825 with_guile_site_dir
826 with_guile_site_ccache_dir
827 with_guile_extension_dir
828 enable_rpath
829 '
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 CPP
839 LT_SYS_LIBRARY_PATH
840 PKG_CONFIG
841 GNUTLS_CFLAGS
842 GNUTLS_LIBS
843 GUILE_CFLAGS
844 GUILE_LIBS'
845
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 runstatedir='${localstatedir}/run'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
895
896 ac_prev=
897 ac_dashdash=
898 for ac_option
899 do
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
905 fi
906
907 case $ac_option in
908 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *=) ac_optarg= ;;
910 *) ac_optarg=yes ;;
911 esac
912
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
921
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
936
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
941
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: '$ac_useropt'"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
974
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: '$ac_useropt'"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1010
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1015
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1045
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1119
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -runstatedir | --runstatedir | --runstatedi | --runstated \
1135 | --runstate | --runstat | --runsta | --runst | --runs \
1136 | --run | --ru | --r)
1137 ac_prev=runstatedir ;;
1138 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1139 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1140 | --run=* | --ru=* | --r=*)
1141 runstatedir=$ac_optarg ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: '$ac_useropt'"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: '$ac_useropt'"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) as_fn_error $? "unrecognized option: '$ac_option'
1239 Try '$0 --help' for more information"
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258 ;;
1259
1260 esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1266 fi
1267
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir runstatedir
1281 do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1296
1297 # There might be people who depend on the old broken behavior: '$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 printf "%s\n" X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358 else
1359 ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 fi
1365 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 'configure' configures Guile-GnuTLS 5.0.2 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print 'checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for '--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or '..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, 'make install' will install all the files in
1420 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than '$ac_default_prefix' using '--prefix',
1422 for instance '--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/guile-gnutls]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1448
1449 cat <<\_ACEOF
1450
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of Guile-GnuTLS 5.0.2:";;
1465 esac
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-silent-rules less verbose build output (undo: "make V=1")
1473 --disable-silent-rules verbose build output (undo: "make V=0")
1474 --enable-dependency-tracking
1475 do not reject slow dependency extractors
1476 --disable-dependency-tracking
1477 speeds up one-time build
1478 --enable-static[=PKGS] build static libraries [default=no]
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --enable-srp-authentication
1484 enable the SRP authentication support
1485 --disable-rpath do not hardcode runtime library paths
1486
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1491 both]
1492 --with-aix-soname=aix|svr4|both
1493 shared library versioning (aka "SONAME") variant to
1494 provide on AIX, [default=aix].
1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1496 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1497 compiler's sysroot if not specified).
1498 --with-guile-site-dir=DIR
1499 guile site directory for gnutls, default is guile
1500 system settings
1501 --with-guile-site-ccache-dir=DIR
1502 guile ccache directory for gnutls, default is guile
1503 system settings
1504 --with-guile-extension-dir=DIR
1505 guile extension directory for gnutls, default is
1506 guile system settings
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 LIBS libraries to pass to the linker, e.g. -l<library>
1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516 you have headers in a nonstandard directory <include dir>
1517 CPP C preprocessor
1518 LT_SYS_LIBRARY_PATH
1519 User-defined run-time library search path.
1520 PKG_CONFIG path to pkg-config utility
1521 GNUTLS_CFLAGS
1522 C compiler flags for GNUTLS, overriding pkg-config
1523 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1524 GUILE_CFLAGS
1525 C compiler flags for GUILE, overriding pkg-config
1526 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1527
1528 Use these variables to override the choices made by 'configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1530
1531 Report bugs to <[email protected]>.
1532 Guile-GnuTLS home page: <https://codeberg.org/guile-gnutls/guile-gnutls>.
1533 _ACEOF
1534 ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for configure.gnu first; this name is used for a wrapper for
1579 # Metaconfig's "Configure" on case-insensitive file systems.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 Guile-GnuTLS configure 5.0.2
1597 generated by GNU Autoconf 2.72
1598
1599 Copyright (C) 2023 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603 exit
1604 fi
1605
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext conftest.beam
1617 if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 printf "%s\n" "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext
1636 then :
1637 ac_retval=0
1638 else case e in #(
1639 e) printf "%s\n" "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1 ;;
1643 esac
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_compile
1649
1650 # ac_fn_c_try_cpp LINENO
1651 # ----------------------
1652 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_cpp ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_cpp conftest.$ac_ext"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 printf "%s\n" "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } > conftest.i && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 }
1675 then :
1676 ac_retval=0
1677 else case e in #(
1678 e) printf "%s\n" "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1 ;;
1682 esac
1683 fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_cpp
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 printf "%s\n" "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 test -x conftest$ac_exeext
1717 }
1718 then :
1719 ac_retval=0
1720 else case e in #(
1721 e) printf "%s\n" "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1 ;;
1725 esac
1726 fi
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 printf %s "checking for $2... " >&6; }
1746 if eval test \${$3+y}
1747 then :
1748 printf %s "(cached) " >&6
1749 else case e in #(
1750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"
1756 then :
1757 eval "$3=yes"
1758 else case e in #(
1759 e) eval "$3=no" ;;
1760 esac
1761 fi
1762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1763 esac
1764 fi
1765 eval ac_res=\$$3
1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 printf "%s\n" "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769
1770 } # ac_fn_c_check_header_compile
1771
1772 # ac_fn_c_check_func LINENO FUNC VAR
1773 # ----------------------------------
1774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 ac_fn_c_check_func ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 printf %s "checking for $2... " >&6; }
1780 if eval test \${$3+y}
1781 then :
1782 printf %s "(cached) " >&6
1783 else case e in #(
1784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1789
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (void); below. */
1792
1793 #include <limits.h>
1794 #undef $2
1795
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1799 #ifdef __cplusplus
1800 extern "C"
1801 #endif
1802 char $2 (void);
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1807 choke me
1808 #endif
1809
1810 int
1811 main (void)
1812 {
1813 return $2 ();
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_link "$LINENO"
1819 then :
1820 eval "$3=yes"
1821 else case e in #(
1822 e) eval "$3=no" ;;
1823 esac
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1826 conftest$ac_exeext conftest.$ac_ext ;;
1827 esac
1828 fi
1829 eval ac_res=\$$3
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 printf "%s\n" "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_c_check_func
1835
1836 # ac_fn_c_try_run LINENO
1837 # ----------------------
1838 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1839 # executables *can* be run.
1840 ac_fn_c_try_run ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 printf "%s\n" "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>&5
1851 ac_status=$?
1852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854 { { case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 printf "%s\n" "$ac_try_echo"; } >&5
1860 (eval "$ac_try") 2>&5
1861 ac_status=$?
1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; }; }
1864 then :
1865 ac_retval=0
1866 else case e in #(
1867 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1868 printf "%s\n" "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=$ac_status ;;
1872 esac
1873 fi
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_run
1879
1880 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881 # --------------------------------------------
1882 # Tries to find the compile-time value of EXPR in a program that includes
1883 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1884 # computed
1885 ac_fn_c_compute_int ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if test "$cross_compiling" = yes; then
1889 # Depending upon the size, compute the lo and hi bounds.
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 $4
1893 int
1894 main (void)
1895 {
1896 static int test_array [1 - 2 * !(($2) >= 0)];
1897 test_array [0] = 0;
1898 return test_array [0];
1899
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"
1905 then :
1906 ac_lo=0 ac_mid=0
1907 while :; do
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $4
1911 int
1912 main (void)
1913 {
1914 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1915 test_array [0] = 0;
1916 return test_array [0];
1917
1918 ;
1919 return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"
1923 then :
1924 ac_hi=$ac_mid; break
1925 else case e in #(
1926 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1927 if test $ac_lo -le $ac_mid; then
1928 ac_lo= ac_hi=
1929 break
1930 fi
1931 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1932 esac
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1935 done
1936 else case e in #(
1937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 $4
1940 int
1941 main (void)
1942 {
1943 static int test_array [1 - 2 * !(($2) < 0)];
1944 test_array [0] = 0;
1945 return test_array [0];
1946
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"
1952 then :
1953 ac_hi=-1 ac_mid=-1
1954 while :; do
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 int
1959 main (void)
1960 {
1961 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1962 test_array [0] = 0;
1963 return test_array [0];
1964
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"
1970 then :
1971 ac_lo=$ac_mid; break
1972 else case e in #(
1973 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1974 if test $ac_mid -le $ac_hi; then
1975 ac_lo= ac_hi=
1976 break
1977 fi
1978 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1979 esac
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1982 done
1983 else case e in #(
1984 e) ac_lo= ac_hi= ;;
1985 esac
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1988 esac
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1991 # Binary search between lo and hi bounds.
1992 while test "x$ac_lo" != "x$ac_hi"; do
1993 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 $4
1997 int
1998 main (void)
1999 {
2000 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2001 test_array [0] = 0;
2002 return test_array [0];
2003
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"
2009 then :
2010 ac_hi=$ac_mid
2011 else case e in #(
2012 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2013 esac
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2016 done
2017 case $ac_lo in #((
2018 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2019 '') ac_retval=1 ;;
2020 esac
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 static long int longval (void) { return $2; }
2026 static unsigned long int ulongval (void) { return $2; }
2027 #include <stdio.h>
2028 #include <stdlib.h>
2029 int
2030 main (void)
2031 {
2032
2033 FILE *f = fopen ("conftest.val", "w");
2034 if (! f)
2035 return 1;
2036 if (($2) < 0)
2037 {
2038 long int i = longval ();
2039 if (i != ($2))
2040 return 1;
2041 fprintf (f, "%ld", i);
2042 }
2043 else
2044 {
2045 unsigned long int i = ulongval ();
2046 if (i != ($2))
2047 return 1;
2048 fprintf (f, "%lu", i);
2049 }
2050 /* Do not output a trailing newline, as this causes \r\n confusion
2051 on some platforms. */
2052 return ferror (f) || fclose (f) != 0;
2053
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_run "$LINENO"
2059 then :
2060 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2061 else case e in #(
2062 e) ac_retval=1 ;;
2063 esac
2064 fi
2065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2066 conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 rm -f conftest.val
2068
2069 fi
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2072
2073 } # ac_fn_c_compute_int
2074
2075 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2076 # -------------------------------------------
2077 # Tests whether TYPE exists after having included INCLUDES, setting cache
2078 # variable VAR accordingly.
2079 ac_fn_c_check_type ()
2080 {
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 printf %s "checking for $2... " >&6; }
2084 if eval test \${$3+y}
2085 then :
2086 printf %s "(cached) " >&6
2087 else case e in #(
2088 e) eval "$3=no"
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $4
2092 int
2093 main (void)
2094 {
2095 if (sizeof ($2))
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"
2102 then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main (void)
2108 {
2109 if (sizeof (($2)))
2110 return 0;
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"
2116 then :
2117
2118 else case e in #(
2119 e) eval "$3=yes" ;;
2120 esac
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2125 esac
2126 fi
2127 eval ac_res=\$$3
2128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 printf "%s\n" "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_type
2133 ac_configure_args_raw=
2134 for ac_arg
2135 do
2136 case $ac_arg in
2137 *\'*)
2138 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2139 esac
2140 as_fn_append ac_configure_args_raw " '$ac_arg'"
2141 done
2142
2143 case $ac_configure_args_raw in
2144 *$as_nl*)
2145 ac_safe_unquote= ;;
2146 *)
2147 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2148 ac_unsafe_a="$ac_unsafe_z#~"
2149 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2150 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2151 esac
2152
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2156
2157 It was created by Guile-GnuTLS $as_me 5.0.2, which was
2158 generated by GNU Autoconf 2.72. Invocation command line was
2159
2160 $ $0$ac_configure_args_raw
2161
2162 _ACEOF
2163 exec 5>>config.log
2164 {
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2169
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2186
2187 _ASUNAME
2188
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192 IFS=$as_save_IFS
2193 case $as_dir in #(((
2194 '') as_dir=./ ;;
2195 */) ;;
2196 *) as_dir=$as_dir/ ;;
2197 esac
2198 printf "%s\n" "PATH: $as_dir"
2199 done
2200 IFS=$as_save_IFS
2201
2202 } >&5
2203
2204 cat >&5 <<_ACEOF
2205
2206
2207 ## ----------- ##
2208 ## Core tests. ##
2209 ## ----------- ##
2210
2211 _ACEOF
2212
2213
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_configure_args=
2220 ac_configure_args0=
2221 ac_configure_args1=
2222 ac_must_keep_next=false
2223 for ac_pass in 1 2
2224 do
2225 for ac_arg
2226 do
2227 case $ac_arg in
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2231 continue ;;
2232 *\'*)
2233 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 esac
2235 case $ac_pass in
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2237 2)
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2241 else
2242 case $ac_arg in
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249 esac
2250 ;;
2251 -* ) ac_must_keep_next=true ;;
2252 esac
2253 fi
2254 as_fn_append ac_configure_args " '$ac_arg'"
2255 ;;
2256 esac
2257 done
2258 done
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2261
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Sanitize IFS.
2269 IFS=" "" $as_nl"
2270 # Save into config.log some information that might help in debugging.
2271 {
2272 echo
2273
2274 printf "%s\n" "## ---------------- ##
2275 ## Cache variables. ##
2276 ## ---------------- ##"
2277 echo
2278 # The following way of writing the cache mishandles newlines in values,
2279 (
2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281 eval ac_val=\$$ac_var
2282 case $ac_val in #(
2283 *${as_nl}*)
2284 case $ac_var in #(
2285 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 esac
2288 case $ac_var in #(
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2292 esac ;;
2293 esac
2294 done
2295 (set) 2>&1 |
2296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2298 sed -n \
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 ;; #(
2302 *)
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 ;;
2305 esac |
2306 sort
2307 )
2308 echo
2309
2310 printf "%s\n" "## ----------------- ##
2311 ## Output variables. ##
2312 ## ----------------- ##"
2313 echo
2314 for ac_var in $ac_subst_vars
2315 do
2316 eval ac_val=\$$ac_var
2317 case $ac_val in
2318 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319 esac
2320 printf "%s\n" "$ac_var='\''$ac_val'\''"
2321 done | sort
2322 echo
2323
2324 if test -n "$ac_subst_files"; then
2325 printf "%s\n" "## ------------------- ##
2326 ## File substitutions. ##
2327 ## ------------------- ##"
2328 echo
2329 for ac_var in $ac_subst_files
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 printf "%s\n" "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338 fi
2339
2340 if test -s confdefs.h; then
2341 printf "%s\n" "## ----------- ##
2342 ## confdefs.h. ##
2343 ## ----------- ##"
2344 echo
2345 cat confdefs.h
2346 echo
2347 fi
2348 test "$ac_signal" != 0 &&
2349 printf "%s\n" "$as_me: caught signal $ac_signal"
2350 printf "%s\n" "$as_me: exit $exit_status"
2351 } >&5
2352 rm -f core *.core core.conftest.* &&
2353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354 exit $exit_status
2355 ' 0
2356 for ac_signal in 1 2 13 15; do
2357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2358 done
2359 ac_signal=0
2360
2361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2362 rm -f -r conftest* confdefs.h
2363
2364 printf "%s\n" "/* confdefs.h */" > confdefs.h
2365
2366 # Predefined preprocessor variables.
2367
2368 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2369
2370 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2371
2372 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2373
2374 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2375
2376 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2377
2378 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2379
2380
2381 # Let the site file select an alternate cache file if it wants to.
2382 # Prefer an explicitly selected file to automatically selected ones.
2383 if test -n "$CONFIG_SITE"; then
2384 ac_site_files="$CONFIG_SITE"
2385 elif test "x$prefix" != xNONE; then
2386 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2387 else
2388 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2389 fi
2390
2391 for ac_site_file in $ac_site_files
2392 do
2393 case $ac_site_file in #(
2394 */*) :
2395 ;; #(
2396 *) :
2397 ac_site_file=./$ac_site_file ;;
2398 esac
2399 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2401 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2402 sed 's/^/| /' "$ac_site_file" >&5
2403 . "$ac_site_file" \
2404 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2405 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2406 as_fn_error $? "failed to load site script $ac_site_file
2407 See 'config.log' for more details" "$LINENO" 5; }
2408 fi
2409 done
2410
2411 if test -r "$cache_file"; then
2412 # Some versions of bash will fail to source /dev/null (special files
2413 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2414 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2416 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2417 case $cache_file in
2418 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2419 *) . "./$cache_file";;
2420 esac
2421 fi
2422 else
2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2424 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2425 >$cache_file
2426 fi
2427
2428 # Test code for whether the C compiler supports C89 (global declarations)
2429 ac_c_conftest_c89_globals='
2430 /* Does the compiler advertise C89 conformance?
2431 Do not test the value of __STDC__, because some compilers set it to 0
2432 while being otherwise adequately conformant. */
2433 #if !defined __STDC__
2434 # error "Compiler does not advertise C89 conformance"
2435 #endif
2436
2437 #include <stddef.h>
2438 #include <stdarg.h>
2439 struct stat;
2440 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2441 struct buf { int x; };
2442 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2443 static char *e (char **p, int i)
2444 {
2445 return p[i];
2446 }
2447 static char *f (char * (*g) (char **, int), char **p, ...)
2448 {
2449 char *s;
2450 va_list v;
2451 va_start (v,p);
2452 s = g (p, va_arg (v,int));
2453 va_end (v);
2454 return s;
2455 }
2456
2457 /* C89 style stringification. */
2458 #define noexpand_stringify(a) #a
2459 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2460
2461 /* C89 style token pasting. Exercises some of the corner cases that
2462 e.g. old MSVC gets wrong, but not very hard. */
2463 #define noexpand_concat(a,b) a##b
2464 #define expand_concat(a,b) noexpand_concat(a,b)
2465 extern int vA;
2466 extern int vbee;
2467 #define aye A
2468 #define bee B
2469 int *pvA = &expand_concat(v,aye);
2470 int *pvbee = &noexpand_concat(v,bee);
2471
2472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2473 function prototypes and stuff, but not \xHH hex character constants.
2474 These do not provoke an error unfortunately, instead are silently treated
2475 as an "x". The following induces an error, until -std is added to get
2476 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2477 array size at least. It is necessary to write \x00 == 0 to get something
2478 that is true only with -std. */
2479 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2480
2481 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2482 inside strings and character constants. */
2483 #define FOO(x) '\''x'\''
2484 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2485
2486 int test (int i, double x);
2487 struct s1 {int (*f) (int a);};
2488 struct s2 {int (*f) (double a);};
2489 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2490 int, int);'
2491
2492 # Test code for whether the C compiler supports C89 (body of main).
2493 ac_c_conftest_c89_main='
2494 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2495 '
2496
2497 # Test code for whether the C compiler supports C99 (global declarations)
2498 ac_c_conftest_c99_globals='
2499 /* Does the compiler advertise C99 conformance? */
2500 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2501 # error "Compiler does not advertise C99 conformance"
2502 #endif
2503
2504 // See if C++-style comments work.
2505
2506 #include <stdbool.h>
2507 extern int puts (const char *);
2508 extern int printf (const char *, ...);
2509 extern int dprintf (int, const char *, ...);
2510 extern void *malloc (size_t);
2511 extern void free (void *);
2512
2513 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2514 // dprintf is used instead of fprintf to avoid needing to declare
2515 // FILE and stderr.
2516 #define debug(...) dprintf (2, __VA_ARGS__)
2517 #define showlist(...) puts (#__VA_ARGS__)
2518 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2519 static void
2520 test_varargs_macros (void)
2521 {
2522 int x = 1234;
2523 int y = 5678;
2524 debug ("Flag");
2525 debug ("X = %d\n", x);
2526 showlist (The first, second, and third items.);
2527 report (x>y, "x is %d but y is %d", x, y);
2528 }
2529
2530 // Check long long types.
2531 #define BIG64 18446744073709551615ull
2532 #define BIG32 4294967295ul
2533 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2534 #if !BIG_OK
2535 #error "your preprocessor is broken"
2536 #endif
2537 #if BIG_OK
2538 #else
2539 #error "your preprocessor is broken"
2540 #endif
2541 static long long int bignum = -9223372036854775807LL;
2542 static unsigned long long int ubignum = BIG64;
2543
2544 struct incomplete_array
2545 {
2546 int datasize;
2547 double data[];
2548 };
2549
2550 struct named_init {
2551 int number;
2552 const wchar_t *name;
2553 double average;
2554 };
2555
2556 typedef const char *ccp;
2557
2558 static inline int
2559 test_restrict (ccp restrict text)
2560 {
2561 // Iterate through items via the restricted pointer.
2562 // Also check for declarations in for loops.
2563 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2564 continue;
2565 return 0;
2566 }
2567
2568 // Check varargs and va_copy.
2569 static bool
2570 test_varargs (const char *format, ...)
2571 {
2572 va_list args;
2573 va_start (args, format);
2574 va_list args_copy;
2575 va_copy (args_copy, args);
2576
2577 const char *str = "";
2578 int number = 0;
2579 float fnumber = 0;
2580
2581 while (*format)
2582 {
2583 switch (*format++)
2584 {
2585 case '\''s'\'': // string
2586 str = va_arg (args_copy, const char *);
2587 break;
2588 case '\''d'\'': // int
2589 number = va_arg (args_copy, int);
2590 break;
2591 case '\''f'\'': // float
2592 fnumber = va_arg (args_copy, double);
2593 break;
2594 default:
2595 break;
2596 }
2597 }
2598 va_end (args_copy);
2599 va_end (args);
2600
2601 return *str && number && fnumber;
2602 }
2603 '
2604
2605 # Test code for whether the C compiler supports C99 (body of main).
2606 ac_c_conftest_c99_main='
2607 // Check bool.
2608 _Bool success = false;
2609 success |= (argc != 0);
2610
2611 // Check restrict.
2612 if (test_restrict ("String literal") == 0)
2613 success = true;
2614 char *restrict newvar = "Another string";
2615
2616 // Check varargs.
2617 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2618 test_varargs_macros ();
2619
2620 // Check flexible array members.
2621 struct incomplete_array *ia =
2622 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2623 ia->datasize = 10;
2624 for (int i = 0; i < ia->datasize; ++i)
2625 ia->data[i] = i * 1.234;
2626 // Work around memory leak warnings.
2627 free (ia);
2628
2629 // Check named initializers.
2630 struct named_init ni = {
2631 .number = 34,
2632 .name = L"Test wide string",
2633 .average = 543.34343,
2634 };
2635
2636 ni.number = 58;
2637
2638 int dynamic_array[ni.number];
2639 dynamic_array[0] = argv[0][0];
2640 dynamic_array[ni.number - 1] = 543;
2641
2642 // work around unused variable warnings
2643 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2644 || dynamic_array[ni.number - 1] != 543);
2645 '
2646
2647 # Test code for whether the C compiler supports C11 (global declarations)
2648 ac_c_conftest_c11_globals='
2649 /* Does the compiler advertise C11 conformance? */
2650 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2651 # error "Compiler does not advertise C11 conformance"
2652 #endif
2653
2654 // Check _Alignas.
2655 char _Alignas (double) aligned_as_double;
2656 char _Alignas (0) no_special_alignment;
2657 extern char aligned_as_int;
2658 char _Alignas (0) _Alignas (int) aligned_as_int;
2659
2660 // Check _Alignof.
2661 enum
2662 {
2663 int_alignment = _Alignof (int),
2664 int_array_alignment = _Alignof (int[100]),
2665 char_alignment = _Alignof (char)
2666 };
2667 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2668
2669 // Check _Noreturn.
2670 int _Noreturn does_not_return (void) { for (;;) continue; }
2671
2672 // Check _Static_assert.
2673 struct test_static_assert
2674 {
2675 int x;
2676 _Static_assert (sizeof (int) <= sizeof (long int),
2677 "_Static_assert does not work in struct");
2678 long int y;
2679 };
2680
2681 // Check UTF-8 literals.
2682 #define u8 syntax error!
2683 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2684
2685 // Check duplicate typedefs.
2686 typedef long *long_ptr;
2687 typedef long int *long_ptr;
2688 typedef long_ptr long_ptr;
2689
2690 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2691 struct anonymous
2692 {
2693 union {
2694 struct { int i; int j; };
2695 struct { int k; long int l; } w;
2696 };
2697 int m;
2698 } v1;
2699 '
2700
2701 # Test code for whether the C compiler supports C11 (body of main).
2702 ac_c_conftest_c11_main='
2703 _Static_assert ((offsetof (struct anonymous, i)
2704 == offsetof (struct anonymous, w.k)),
2705 "Anonymous union alignment botch");
2706 v1.i = 2;
2707 v1.w.k = 5;
2708 ok |= v1.i != 5;
2709 '
2710
2711 # Test code for whether the C compiler supports C11 (complete).
2712 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2713 ${ac_c_conftest_c99_globals}
2714 ${ac_c_conftest_c11_globals}
2715
2716 int
2717 main (int argc, char **argv)
2718 {
2719 int ok = 0;
2720 ${ac_c_conftest_c89_main}
2721 ${ac_c_conftest_c99_main}
2722 ${ac_c_conftest_c11_main}
2723 return ok;
2724 }
2725 "
2726
2727 # Test code for whether the C compiler supports C99 (complete).
2728 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2729 ${ac_c_conftest_c99_globals}
2730
2731 int
2732 main (int argc, char **argv)
2733 {
2734 int ok = 0;
2735 ${ac_c_conftest_c89_main}
2736 ${ac_c_conftest_c99_main}
2737 return ok;
2738 }
2739 "
2740
2741 # Test code for whether the C compiler supports C89 (complete).
2742 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2743
2744 int
2745 main (int argc, char **argv)
2746 {
2747 int ok = 0;
2748 ${ac_c_conftest_c89_main}
2749 return ok;
2750 }
2751 "
2752
2753 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2754 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2755 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2756 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2757 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2758 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2759 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2760 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2761 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2762
2763 # Auxiliary files required by this configure script.
2764 ac_aux_files="config.rpath config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2765
2766 # Locations in which to look for auxiliary files.
2767 ac_aux_dir_candidates="${srcdir}/build-aux"
2768
2769 # Search for a directory containing all of the required auxiliary files,
2770 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2771 # If we don't find one directory that contains all the files we need,
2772 # we report the set of missing files from the *first* directory in
2773 # $ac_aux_dir_candidates and give up.
2774 ac_missing_aux_files=""
2775 ac_first_candidate=:
2776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 as_found=false
2779 for as_dir in $ac_aux_dir_candidates
2780 do
2781 IFS=$as_save_IFS
2782 case $as_dir in #(((
2783 '') as_dir=./ ;;
2784 */) ;;
2785 *) as_dir=$as_dir/ ;;
2786 esac
2787 as_found=:
2788
2789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2790 ac_aux_dir_found=yes
2791 ac_install_sh=
2792 for ac_aux in $ac_aux_files
2793 do
2794 # As a special case, if "install-sh" is required, that requirement
2795 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2796 # and $ac_install_sh is set appropriately for whichever one is found.
2797 if test x"$ac_aux" = x"install-sh"
2798 then
2799 if test -f "${as_dir}install-sh"; then
2800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2801 ac_install_sh="${as_dir}install-sh -c"
2802 elif test -f "${as_dir}install.sh"; then
2803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2804 ac_install_sh="${as_dir}install.sh -c"
2805 elif test -f "${as_dir}shtool"; then
2806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2807 ac_install_sh="${as_dir}shtool install -c"
2808 else
2809 ac_aux_dir_found=no
2810 if $ac_first_candidate; then
2811 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2812 else
2813 break
2814 fi
2815 fi
2816 else
2817 if test -f "${as_dir}${ac_aux}"; then
2818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2819 else
2820 ac_aux_dir_found=no
2821 if $ac_first_candidate; then
2822 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2823 else
2824 break
2825 fi
2826 fi
2827 fi
2828 done
2829 if test "$ac_aux_dir_found" = yes; then
2830 ac_aux_dir="$as_dir"
2831 break
2832 fi
2833 ac_first_candidate=false
2834
2835 as_found=false
2836 done
2837 IFS=$as_save_IFS
2838 if $as_found
2839 then :
2840
2841 else case e in #(
2842 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2843 esac
2844 fi
2845
2846
2847 # These three variables are undocumented and unsupported,
2848 # and are intended to be withdrawn in a future Autoconf release.
2849 # They can cause serious problems if a builder's source tree is in a directory
2850 # whose full name contains unusual characters.
2851 if test -f "${ac_aux_dir}config.guess"; then
2852 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2853 fi
2854 if test -f "${ac_aux_dir}config.sub"; then
2855 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2856 fi
2857 if test -f "$ac_aux_dir/configure"; then
2858 ac_configure="$SHELL ${ac_aux_dir}configure"
2859 fi
2860
2861 # Check that the precious variables saved in the cache have kept the same
2862 # value.
2863 ac_cache_corrupted=false
2864 for ac_var in $ac_precious_vars; do
2865 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2866 eval ac_new_set=\$ac_env_${ac_var}_set
2867 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2868 eval ac_new_val=\$ac_env_${ac_var}_value
2869 case $ac_old_set,$ac_new_set in
2870 set,)
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2872 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2873 ac_cache_corrupted=: ;;
2874 ,set)
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2876 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2877 ac_cache_corrupted=: ;;
2878 ,);;
2879 *)
2880 if test "x$ac_old_val" != "x$ac_new_val"; then
2881 # differences in whitespace do not lead to failure.
2882 ac_old_val_w=`echo x $ac_old_val`
2883 ac_new_val_w=`echo x $ac_new_val`
2884 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2886 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2887 ac_cache_corrupted=:
2888 else
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2890 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2891 eval $ac_var=\$ac_old_val
2892 fi
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2894 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2896 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2897 fi;;
2898 esac
2899 # Pass precious variables to config.status.
2900 if test "$ac_new_set" = set; then
2901 case $ac_new_val in
2902 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2903 *) ac_arg=$ac_var=$ac_new_val ;;
2904 esac
2905 case " $ac_configure_args " in
2906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2907 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2908 esac
2909 fi
2910 done
2911 if $ac_cache_corrupted; then
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2913 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2915 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2916 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2917 and start over" "$LINENO" 5
2918 fi
2919 ## -------------------- ##
2920 ## Main body of script. ##
2921 ## -------------------- ##
2922
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928
2929
2930
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME" >&5
2932 printf "%s\n" "$as_me: $PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME" >&6;}
2933
2934
2935
2936
2937 am__api_version='1.17'
2938
2939
2940
2941 # Find a good install program. We prefer a C program (faster),
2942 # so one script is as good as another. But avoid the broken or
2943 # incompatible versions:
2944 # SysV /etc/install, /usr/sbin/install
2945 # SunOS /usr/etc/install
2946 # IRIX /sbin/install
2947 # AIX /bin/install
2948 # AmigaOS /C/install, which installs bootblocks on floppy discs
2949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2952 # OS/2's system install, which has a completely different semantic
2953 # ./install, which can be erroneously created by make from ./install.sh.
2954 # Reject install programs that cannot install multiple files.
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2956 printf %s "checking for a BSD-compatible install... " >&6; }
2957 if test -z "$INSTALL"; then
2958 if test ${ac_cv_path_install+y}
2959 then :
2960 printf %s "(cached) " >&6
2961 else case e in #(
2962 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 case $as_dir in #(((
2967 '') as_dir=./ ;;
2968 */) ;;
2969 *) as_dir=$as_dir/ ;;
2970 esac
2971 # Account for fact that we put trailing slashes in our PATH walk.
2972 case $as_dir in #((
2973 ./ | /[cC]/* | \
2974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2975 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2976 /usr/ucb/* ) ;;
2977 *)
2978 # OSF1 and SCO ODT 3.0 have their own names for install.
2979 # Don't use installbsd from OSF since it installs stuff as root
2980 # by default.
2981 for ac_prog in ginstall scoinst install; do
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2984 if test $ac_prog = install &&
2985 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # AIX install. It has an incompatible calling convention.
2987 :
2988 elif test $ac_prog = install &&
2989 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2990 # program-specific install script used by HP pwplus--don't use.
2991 :
2992 else
2993 rm -rf conftest.one conftest.two conftest.dir
2994 echo one > conftest.one
2995 echo two > conftest.two
2996 mkdir conftest.dir
2997 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2998 test -s conftest.one && test -s conftest.two &&
2999 test -s conftest.dir/conftest.one &&
3000 test -s conftest.dir/conftest.two
3001 then
3002 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3003 break 3
3004 fi
3005 fi
3006 fi
3007 done
3008 done
3009 ;;
3010 esac
3011
3012 done
3013 IFS=$as_save_IFS
3014
3015 rm -rf conftest.one conftest.two conftest.dir
3016 ;;
3017 esac
3018 fi
3019 if test ${ac_cv_path_install+y}; then
3020 INSTALL=$ac_cv_path_install
3021 else
3022 # As a last resort, use the slow shell script. Don't cache a
3023 # value for INSTALL within a source directory, because that will
3024 # break other packages using the cache if that directory is
3025 # removed, or if the value is a relative name.
3026 INSTALL=$ac_install_sh
3027 fi
3028 fi
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3030 printf "%s\n" "$INSTALL" >&6; }
3031
3032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3033 # It thinks the first close brace ends the variable substitution.
3034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3035
3036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3037
3038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3039
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3041 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3042 if test ${am_cv_sleep_fractional_seconds+y}
3043 then :
3044 printf %s "(cached) " >&6
3045 else case e in #(
3046 e) if sleep 0.001 2>/dev/null
3047 then :
3048 am_cv_sleep_fractional_seconds=yes
3049 else case e in #(
3050 e) am_cv_sleep_fractional_seconds=no ;;
3051 esac
3052 fi
3053 ;;
3054 esac
3055 fi
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3057 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3058
3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3060 printf %s "checking filesystem timestamp resolution... " >&6; }
3061 if test ${am_cv_filesystem_timestamp_resolution+y}
3062 then :
3063 printf %s "(cached) " >&6
3064 else case e in #(
3065 e) # Default to the worst case.
3066 am_cv_filesystem_timestamp_resolution=2
3067
3068 # Only try to go finer than 1 sec if sleep can do it.
3069 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3070 # - 1 sec is not much of a win compared to 2 sec, and
3071 # - it takes 2 seconds to perform the test whether 1 sec works.
3072 #
3073 # Instead, just use the default 2s on platforms that have 1s resolution,
3074 # accept the extra 1s delay when using $sleep in the Automake tests, in
3075 # exchange for not incurring the 2s delay for running the test for all
3076 # packages.
3077 #
3078 am_try_resolutions=
3079 if test "$am_cv_sleep_fractional_seconds" = yes; then
3080 # Even a millisecond often causes a bunch of false positives,
3081 # so just try a hundredth of a second. The time saved between .001 and
3082 # .01 is not terribly consequential.
3083 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3084 fi
3085
3086 # In order to catch current-generation FAT out, we must *modify* files
3087 # that already exist; the *creation* timestamp is finer. Use names
3088 # that make ls -t sort them differently when they have equal
3089 # timestamps than when they have distinct timestamps, keeping
3090 # in mind that ls -t prints the *newest* file first.
3091 rm -f conftest.ts?
3092 : > conftest.ts1
3093 : > conftest.ts2
3094 : > conftest.ts3
3095
3096 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3097 # clobber the current shell's arguments. (Outer-level square brackets
3098 # are removed by m4; they're present so that m4 does not expand
3099 # <dollar><star>; be careful, easy to get confused.)
3100 if (
3101 set X `ls -t conftest.ts[12]` &&
3102 {
3103 test "$*" != "X conftest.ts1 conftest.ts2" ||
3104 test "$*" != "X conftest.ts2 conftest.ts1";
3105 }
3106 ); then :; else
3107 # If neither matched, then we have a broken ls. This can happen
3108 # if, for instance, CONFIG_SHELL is bash and it inherits a
3109 # broken ls alias from the environment. This has actually
3110 # happened. Such a system could not be considered "sane".
3111 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3112 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3113 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3114 as_fn_error $? "ls -t produces unexpected output.
3115 Make sure there is not a broken ls alias in your environment.
3116 See 'config.log' for more details" "$LINENO" 5; }
3117 fi
3118
3119 for am_try_res in $am_try_resolutions; do
3120 # Any one fine-grained sleep might happen to cross the boundary
3121 # between two values of a coarser actual resolution, but if we do
3122 # two fine-grained sleeps in a row, at least one of them will fall
3123 # entirely within a coarse interval.
3124 echo alpha > conftest.ts1
3125 sleep $am_try_res
3126 echo beta > conftest.ts2
3127 sleep $am_try_res
3128 echo gamma > conftest.ts3
3129
3130 # We assume that 'ls -t' will make use of high-resolution
3131 # timestamps if the operating system supports them at all.
3132 if (set X `ls -t conftest.ts?` &&
3133 test "$2" = conftest.ts3 &&
3134 test "$3" = conftest.ts2 &&
3135 test "$4" = conftest.ts1); then
3136 #
3137 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3138 # because we don't need to test make.
3139 make_ok=true
3140 if test $am_try_res != 1; then
3141 # But if we've succeeded so far with a subsecond resolution, we
3142 # have one more thing to check: make. It can happen that
3143 # everything else supports the subsecond mtimes, but make doesn't;
3144 # notably on macOS, which ships make 3.81 from 2006 (the last one
3145 # released under GPLv2). https://bugs.gnu.org/68808
3146 #
3147 # We test $MAKE if it is defined in the environment, else "make".
3148 # It might get overridden later, but our hope is that in practice
3149 # it does not matter: it is the system "make" which is (by far)
3150 # the most likely to be broken, whereas if the user overrides it,
3151 # probably they did so with a better, or at least not worse, make.
3152 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3153 #
3154 # Create a Makefile (real tab character here):
3155 rm -f conftest.mk
3156 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3157 echo ' touch conftest.ts2' >>conftest.mk
3158 #
3159 # Now, running
3160 # touch conftest.ts1; touch conftest.ts2; make
3161 # should touch ts1 because ts2 is newer. This could happen by luck,
3162 # but most often, it will fail if make's support is insufficient. So
3163 # test for several consecutive successes.
3164 #
3165 # (We reuse conftest.ts[12] because we still want to modify existing
3166 # files, not create new ones, per above.)
3167 n=0
3168 make=${MAKE-make}
3169 until test $n -eq 3; do
3170 echo one > conftest.ts1
3171 sleep $am_try_res
3172 echo two > conftest.ts2 # ts2 should now be newer than ts1
3173 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3174 make_ok=false
3175 break # out of $n loop
3176 fi
3177 n=`expr $n + 1`
3178 done
3179 fi
3180 #
3181 if $make_ok; then
3182 # Everything we know to check worked out, so call this resolution good.
3183 am_cv_filesystem_timestamp_resolution=$am_try_res
3184 break # out of $am_try_res loop
3185 fi
3186 # Otherwise, we'll go on to check the next resolution.
3187 fi
3188 done
3189 rm -f conftest.ts?
3190 # (end _am_filesystem_timestamp_resolution)
3191 ;;
3192 esac
3193 fi
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3195 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3196
3197 # This check should not be cached, as it may vary across builds of
3198 # different projects.
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3200 printf %s "checking whether build environment is sane... " >&6; }
3201 # Reject unsafe characters in $srcdir or the absolute working directory
3202 # name. Accept space and tab only in the latter.
3203 am_lf='
3204 '
3205 case `pwd` in
3206 *[\\\"\#\$\&\'\`$am_lf]*)
3207 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3208 esac
3209 case $srcdir in
3210 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3211 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3212 esac
3213
3214 # Do 'set' in a subshell so we don't clobber the current shell's
3215 # arguments. Must try -L first in case configure is actually a
3216 # symlink; some systems play weird games with the mod time of symlinks
3217 # (eg FreeBSD returns the mod time of the symlink's containing
3218 # directory).
3219 am_build_env_is_sane=no
3220 am_has_slept=no
3221 rm -f conftest.file
3222 for am_try in 1 2; do
3223 echo "timestamp, slept: $am_has_slept" > conftest.file
3224 if (
3225 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3226 if test "$*" = "X"; then
3227 # -L didn't work.
3228 set X `ls -t "$srcdir/configure" conftest.file`
3229 fi
3230 test "$2" = conftest.file
3231 ); then
3232 am_build_env_is_sane=yes
3233 break
3234 fi
3235 # Just in case.
3236 sleep "$am_cv_filesystem_timestamp_resolution"
3237 am_has_slept=yes
3238 done
3239
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3241 printf "%s\n" "$am_build_env_is_sane" >&6; }
3242 if test "$am_build_env_is_sane" = no; then
3243 as_fn_error $? "newly created file is older than distributed files!
3244 Check your system clock" "$LINENO" 5
3245 fi
3246
3247 # If we didn't sleep, we still need to ensure time stamps of config.status and
3248 # generated files are strictly newer.
3249 am_sleep_pid=
3250 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3251 then :
3252
3253 else case e in #(
3254 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3255 am_sleep_pid=$!
3256 ;;
3257 esac
3258 fi
3259
3260 rm -f conftest.file
3261
3262 test "$program_prefix" != NONE &&
3263 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3264 # Use a double $ so make ignores it.
3265 test "$program_suffix" != NONE &&
3266 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3267 # Double any \ or $.
3268 # By default was 's,x,x', remove it if useless.
3269 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3270 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3271
3272
3273 # Expand $ac_aux_dir to an absolute path.
3274 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3275
3276
3277 if test x"${MISSING+set}" != xset; then
3278 MISSING="\${SHELL} '$am_aux_dir/missing'"
3279 fi
3280 # Use eval to expand $SHELL
3281 if eval "$MISSING --is-lightweight"; then
3282 am_missing_run="$MISSING "
3283 else
3284 am_missing_run=
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3286 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3287 fi
3288
3289 if test x"${install_sh+set}" != xset; then
3290 case $am_aux_dir in
3291 *\ * | *\ *)
3292 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3293 *)
3294 install_sh="\${SHELL} $am_aux_dir/install-sh"
3295 esac
3296 fi
3297
3298 # Installed binaries are usually stripped using 'strip' when the user
3299 # run "make install-strip". However 'strip' might not be the right
3300 # tool to use in cross-compilation environments, therefore Automake
3301 # will honor the 'STRIP' environment variable to overrule this program.
3302 if test "$cross_compiling" != no; then
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}strip; ac_word=$2
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 printf %s "checking for $ac_word... " >&6; }
3308 if test ${ac_cv_prog_STRIP+y}
3309 then :
3310 printf %s "(cached) " >&6
3311 else case e in #(
3312 e) if test -n "$STRIP"; then
3313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318 IFS=$as_save_IFS
3319 case $as_dir in #(((
3320 '') as_dir=./ ;;
3321 */) ;;
3322 *) as_dir=$as_dir/ ;;
3323 esac
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi ;;
3335 esac
3336 fi
3337 STRIP=$ac_cv_prog_STRIP
3338 if test -n "$STRIP"; then
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3340 printf "%s\n" "$STRIP" >&6; }
3341 else
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 printf "%s\n" "no" >&6; }
3344 fi
3345
3346
3347 fi
3348 if test -z "$ac_cv_prog_STRIP"; then
3349 ac_ct_STRIP=$STRIP
3350 # Extract the first word of "strip", so it can be a program name with args.
3351 set dummy strip; ac_word=$2
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 printf %s "checking for $ac_word... " >&6; }
3354 if test ${ac_cv_prog_ac_ct_STRIP+y}
3355 then :
3356 printf %s "(cached) " >&6
3357 else case e in #(
3358 e) if test -n "$ac_ct_STRIP"; then
3359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 case $as_dir in #(((
3366 '') as_dir=./ ;;
3367 */) ;;
3368 *) as_dir=$as_dir/ ;;
3369 esac
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_ac_ct_STRIP="strip"
3373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376 done
3377 done
3378 IFS=$as_save_IFS
3379
3380 fi ;;
3381 esac
3382 fi
3383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3384 if test -n "$ac_ct_STRIP"; then
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3386 printf "%s\n" "$ac_ct_STRIP" >&6; }
3387 else
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 printf "%s\n" "no" >&6; }
3390 fi
3391
3392 if test "x$ac_ct_STRIP" = x; then
3393 STRIP=":"
3394 else
3395 case $cross_compiling:$ac_tool_warned in
3396 yes:)
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3399 ac_tool_warned=yes ;;
3400 esac
3401 STRIP=$ac_ct_STRIP
3402 fi
3403 else
3404 STRIP="$ac_cv_prog_STRIP"
3405 fi
3406
3407 fi
3408 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3409
3410
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3412 printf %s "checking for a race-free mkdir -p... " >&6; }
3413 if test -z "$MKDIR_P"; then
3414 if test ${ac_cv_path_mkdir+y}
3415 then :
3416 printf %s "(cached) " >&6
3417 else case e in #(
3418 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3420 do
3421 IFS=$as_save_IFS
3422 case $as_dir in #(((
3423 '') as_dir=./ ;;
3424 */) ;;
3425 *) as_dir=$as_dir/ ;;
3426 esac
3427 for ac_prog in mkdir gmkdir; do
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3430 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3431 'mkdir ('*'coreutils) '* | \
3432 *'BusyBox '* | \
3433 'mkdir (fileutils) '4.1*)
3434 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3435 break 3;;
3436 esac
3437 done
3438 done
3439 done
3440 IFS=$as_save_IFS
3441 ;;
3442 esac
3443 fi
3444
3445 test -d ./--version && rmdir ./--version
3446 if test ${ac_cv_path_mkdir+y}; then
3447 MKDIR_P="$ac_cv_path_mkdir -p"
3448 else
3449 # As a last resort, use plain mkdir -p,
3450 # in the hope it doesn't have the bugs of ancient mkdir.
3451 MKDIR_P='mkdir -p'
3452 fi
3453 fi
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3455 printf "%s\n" "$MKDIR_P" >&6; }
3456
3457 for ac_prog in gawk mawk nawk awk
3458 do
3459 # Extract the first word of "$ac_prog", so it can be a program name with args.
3460 set dummy $ac_prog; ac_word=$2
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 printf %s "checking for $ac_word... " >&6; }
3463 if test ${ac_cv_prog_AWK+y}
3464 then :
3465 printf %s "(cached) " >&6
3466 else case e in #(
3467 e) if test -n "$AWK"; then
3468 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473 IFS=$as_save_IFS
3474 case $as_dir in #(((
3475 '') as_dir=./ ;;
3476 */) ;;
3477 *) as_dir=$as_dir/ ;;
3478 esac
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3481 ac_cv_prog_AWK="$ac_prog"
3482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485 done
3486 done
3487 IFS=$as_save_IFS
3488
3489 fi ;;
3490 esac
3491 fi
3492 AWK=$ac_cv_prog_AWK
3493 if test -n "$AWK"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3495 printf "%s\n" "$AWK" >&6; }
3496 else
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3499 fi
3500
3501
3502 test -n "$AWK" && break
3503 done
3504
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3506 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3507 set x ${MAKE-make}
3508 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3509 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else case e in #(
3513 e) cat >conftest.make <<\_ACEOF
3514 SHELL = /bin/sh
3515 all:
3516 @echo '@@@%%%=$(MAKE)=@@@%%%'
3517 _ACEOF
3518 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3519 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3520 *@@@%%%=?*=@@@%%%*)
3521 eval ac_cv_prog_make_${ac_make}_set=yes;;
3522 *)
3523 eval ac_cv_prog_make_${ac_make}_set=no;;
3524 esac
3525 rm -f conftest.make ;;
3526 esac
3527 fi
3528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530 printf "%s\n" "yes" >&6; }
3531 SET_MAKE=
3532 else
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 printf "%s\n" "no" >&6; }
3535 SET_MAKE="MAKE=${MAKE-make}"
3536 fi
3537
3538 rm -rf .tst 2>/dev/null
3539 mkdir .tst 2>/dev/null
3540 if test -d .tst; then
3541 am__leading_dot=.
3542 else
3543 am__leading_dot=_
3544 fi
3545 rmdir .tst 2>/dev/null
3546
3547 AM_DEFAULT_VERBOSITY=1
3548 # Check whether --enable-silent-rules was given.
3549 if test ${enable_silent_rules+y}
3550 then :
3551 enableval=$enable_silent_rules;
3552 fi
3553
3554 am_make=${MAKE-make}
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3556 printf %s "checking whether $am_make supports nested variables... " >&6; }
3557 if test ${am_cv_make_support_nested_variables+y}
3558 then :
3559 printf %s "(cached) " >&6
3560 else case e in #(
3561 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3562 BAR0=false
3563 BAR1=true
3564 V=1
3565 am__doit:
3566 @$(TRUE)
3567 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3568 am_cv_make_support_nested_variables=yes
3569 else
3570 am_cv_make_support_nested_variables=no
3571 fi ;;
3572 esac
3573 fi
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3575 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3576 AM_BACKSLASH='\'
3577
3578 am__rm_f_notfound=
3579 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3580 then :
3581
3582 else case e in #(
3583 e) am__rm_f_notfound='""' ;;
3584 esac
3585 fi
3586
3587
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3589 printf %s "checking xargs -n works... " >&6; }
3590 if test ${am_cv_xargs_n_works+y}
3591 then :
3592 printf %s "(cached) " >&6
3593 else case e in #(
3594 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3595 3"
3596 then :
3597 am_cv_xargs_n_works=yes
3598 else case e in #(
3599 e) am_cv_xargs_n_works=no ;;
3600 esac
3601 fi ;;
3602 esac
3603 fi
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3605 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3606 if test "$am_cv_xargs_n_works" = yes
3607 then :
3608 am__xargs_n='xargs -n'
3609 else case e in #(
3610 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3611 ;;
3612 esac
3613 fi
3614
3615 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3616 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3617 # is not polluted with repeated "-I."
3618 am__isrc=' -I$(srcdir)'
3619 # test to see if srcdir already configured
3620 if test -f $srcdir/config.status; then
3621 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3622 fi
3623 fi
3624
3625 # test whether we have cygpath
3626 if test -z "$CYGPATH_W"; then
3627 if (cygpath --version) >/dev/null 2>/dev/null; then
3628 CYGPATH_W='cygpath -w'
3629 else
3630 CYGPATH_W=echo
3631 fi
3632 fi
3633
3634
3635 # Define the identity of the package.
3636 PACKAGE='guile-gnutls'
3637 VERSION='5.0.2'
3638
3639
3640 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3641
3642
3643 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3644
3645 # Some tools Automake needs.
3646
3647 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3648
3649
3650 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3651
3652
3653 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3654
3655
3656 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3657
3658
3659 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3660
3661 # For better backward compatibility. To be removed once Automake 1.9.x
3662 # dies out for good. For more background, see:
3663 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3664 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3665 mkdir_p='$(MKDIR_P)'
3666
3667 # We need awk for the "check" target (and possibly the TAP driver). The
3668 # system "awk" is bad on some platforms.
3669 # Always define AMTAR for backward compatibility. Yes, it's still used
3670 # in the wild :-( We should find a proper way to deprecate it ...
3671 AMTAR='$${TAR-tar}'
3672
3673
3674 # We'll loop over all known methods to create a tar archive until one works.
3675 _am_tools='gnutar plaintar pax cpio none'
3676
3677 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3678 # There is notably a 21 bits limit for the UID and the GID. In fact,
3679 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3680 # and bug#13588).
3681 am_max_uid=2097151 # 2^21 - 1
3682 am_max_gid=$am_max_uid
3683 # The $UID and $GID variables are not portable, so we need to resort
3684 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3685 # below are definitely unexpected, so allow the users to see them
3686 # (that is, avoid stderr redirection).
3687 am_uid=`id -u || echo unknown`
3688 am_gid=`id -g || echo unknown`
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3690 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3691 if test x$am_uid = xunknown; then
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3693 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3694 elif test $am_uid -le $am_max_uid; then
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3696 printf "%s\n" "yes" >&6; }
3697 else
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 printf "%s\n" "no" >&6; }
3700 _am_tools=none
3701 fi
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3703 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3704 if test x$gm_gid = xunknown; then
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3706 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3707 elif test $am_gid -le $am_max_gid; then
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3709 printf "%s\n" "yes" >&6; }
3710 else
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 printf "%s\n" "no" >&6; }
3713 _am_tools=none
3714 fi
3715
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3717 printf %s "checking how to create a ustar tar archive... " >&6; }
3718
3719 # Go ahead even if we have the value already cached. We do so because we
3720 # need to set the values for the 'am__tar' and 'am__untar' variables.
3721 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3722
3723 for _am_tool in $_am_tools; do
3724 case $_am_tool in
3725 gnutar)
3726 for _am_tar in tar gnutar gtar; do
3727 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3728 ($_am_tar --version) >&5 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && break
3732 done
3733 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3734 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3735 am__untar="$_am_tar -xf -"
3736 ;;
3737 plaintar)
3738 # Must skip GNU tar: if it does not support --format= it doesn't create
3739 # ustar tarball either.
3740 (tar --version) >/dev/null 2>&1 && continue
3741 am__tar='tar chf - "$$tardir"'
3742 am__tar_='tar chf - "$tardir"'
3743 am__untar='tar xf -'
3744 ;;
3745 pax)
3746 am__tar='pax -L -x ustar -w "$$tardir"'
3747 am__tar_='pax -L -x ustar -w "$tardir"'
3748 am__untar='pax -r'
3749 ;;
3750 cpio)
3751 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3752 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3753 am__untar='cpio -i -H ustar -d'
3754 ;;
3755 none)
3756 am__tar=false
3757 am__tar_=false
3758 am__untar=false
3759 ;;
3760 esac
3761
3762 # If the value was cached, stop now. We just wanted to have am__tar
3763 # and am__untar set.
3764 test -n "${am_cv_prog_tar_ustar}" && break
3765
3766 # tar/untar a dummy directory, and stop if the command works.
3767 rm -rf conftest.dir
3768 mkdir conftest.dir
3769 echo GrepMe > conftest.dir/file
3770 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3771 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }
3775 rm -rf conftest.dir
3776 if test -s conftest.tar; then
3777 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3778 ($am__untar <conftest.tar) >&5 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }
3782 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3783 (cat conftest.dir/file) >&5 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }
3787 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3788 fi
3789 done
3790 rm -rf conftest.dir
3791
3792 if test ${am_cv_prog_tar_ustar+y}
3793 then :
3794 printf %s "(cached) " >&6
3795 else case e in #(
3796 e) am_cv_prog_tar_ustar=$_am_tool ;;
3797 esac
3798 fi
3799
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3801 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3802
3803
3804
3805
3806
3807 # Variables for tags utilities; see am/tags.am
3808 if test -z "$CTAGS"; then
3809 CTAGS=ctags
3810 fi
3811
3812 if test -z "$ETAGS"; then
3813 ETAGS=etags
3814 fi
3815
3816 if test -z "$CSCOPE"; then
3817 CSCOPE=cscope
3818 fi
3819
3820
3821
3822
3823
3824
3825
3826
3827 AM_DEFAULT_VERBOSITY=0
3828
3829 ac_config_headers="$ac_config_headers config.h"
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841 ac_ext=c
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846 if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 printf %s "checking for $ac_word... " >&6; }
3851 if test ${ac_cv_prog_CC+y}
3852 then :
3853 printf %s "(cached) " >&6
3854 else case e in #(
3855 e) if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861 IFS=$as_save_IFS
3862 case $as_dir in #(((
3863 '') as_dir=./ ;;
3864 */) ;;
3865 *) as_dir=$as_dir/ ;;
3866 esac
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873 done
3874 done
3875 IFS=$as_save_IFS
3876
3877 fi ;;
3878 esac
3879 fi
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 printf "%s\n" "$CC" >&6; }
3884 else
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 printf "%s\n" "no" >&6; }
3887 fi
3888
3889
3890 fi
3891 if test -z "$ac_cv_prog_CC"; then
3892 ac_ct_CC=$CC
3893 # Extract the first word of "gcc", so it can be a program name with args.
3894 set dummy gcc; ac_word=$2
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 printf %s "checking for $ac_word... " >&6; }
3897 if test ${ac_cv_prog_ac_ct_CC+y}
3898 then :
3899 printf %s "(cached) " >&6
3900 else case e in #(
3901 e) if test -n "$ac_ct_CC"; then
3902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 case $as_dir in #(((
3909 '') as_dir=./ ;;
3910 */) ;;
3911 *) as_dir=$as_dir/ ;;
3912 esac
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_ac_ct_CC="gcc"
3916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919 done
3920 done
3921 IFS=$as_save_IFS
3922
3923 fi ;;
3924 esac
3925 fi
3926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3927 if test -n "$ac_ct_CC"; then
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3929 printf "%s\n" "$ac_ct_CC" >&6; }
3930 else
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 printf "%s\n" "no" >&6; }
3933 fi
3934
3935 if test "x$ac_ct_CC" = x; then
3936 CC=""
3937 else
3938 case $cross_compiling:$ac_tool_warned in
3939 yes:)
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3942 ac_tool_warned=yes ;;
3943 esac
3944 CC=$ac_ct_CC
3945 fi
3946 else
3947 CC="$ac_cv_prog_CC"
3948 fi
3949
3950 if test -z "$CC"; then
3951 if test -n "$ac_tool_prefix"; then
3952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3953 set dummy ${ac_tool_prefix}cc; ac_word=$2
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 printf %s "checking for $ac_word... " >&6; }
3956 if test ${ac_cv_prog_CC+y}
3957 then :
3958 printf %s "(cached) " >&6
3959 else case e in #(
3960 e) if test -n "$CC"; then
3961 ac_cv_prog_CC="$CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966 IFS=$as_save_IFS
3967 case $as_dir in #(((
3968 '') as_dir=./ ;;
3969 */) ;;
3970 *) as_dir=$as_dir/ ;;
3971 esac
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_CC="${ac_tool_prefix}cc"
3975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978 done
3979 done
3980 IFS=$as_save_IFS
3981
3982 fi ;;
3983 esac
3984 fi
3985 CC=$ac_cv_prog_CC
3986 if test -n "$CC"; then
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3988 printf "%s\n" "$CC" >&6; }
3989 else
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 printf "%s\n" "no" >&6; }
3992 fi
3993
3994
3995 fi
3996 fi
3997 if test -z "$CC"; then
3998 # Extract the first word of "cc", so it can be a program name with args.
3999 set dummy cc; ac_word=$2
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 printf %s "checking for $ac_word... " >&6; }
4002 if test ${ac_cv_prog_CC+y}
4003 then :
4004 printf %s "(cached) " >&6
4005 else case e in #(
4006 e) if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4008 else
4009 ac_prog_rejected=no
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013 IFS=$as_save_IFS
4014 case $as_dir in #(((
4015 '') as_dir=./ ;;
4016 */) ;;
4017 *) as_dir=$as_dir/ ;;
4018 esac
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4021 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4022 ac_prog_rejected=yes
4023 continue
4024 fi
4025 ac_cv_prog_CC="cc"
4026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4027 break 2
4028 fi
4029 done
4030 done
4031 IFS=$as_save_IFS
4032
4033 if test $ac_prog_rejected = yes; then
4034 # We found a bogon in the path, so make sure we never use it.
4035 set dummy $ac_cv_prog_CC
4036 shift
4037 if test $# != 0; then
4038 # We chose a different compiler from the bogus one.
4039 # However, it has the same basename, so the bogon will be chosen
4040 # first if we set CC to just the basename; use the full file name.
4041 shift
4042 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4043 fi
4044 fi
4045 fi ;;
4046 esac
4047 fi
4048 CC=$ac_cv_prog_CC
4049 if test -n "$CC"; then
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051 printf "%s\n" "$CC" >&6; }
4052 else
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 printf "%s\n" "no" >&6; }
4055 fi
4056
4057
4058 fi
4059 if test -z "$CC"; then
4060 if test -n "$ac_tool_prefix"; then
4061 for ac_prog in cl.exe
4062 do
4063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 printf %s "checking for $ac_word... " >&6; }
4067 if test ${ac_cv_prog_CC+y}
4068 then :
4069 printf %s "(cached) " >&6
4070 else case e in #(
4071 e) if test -n "$CC"; then
4072 ac_cv_prog_CC="$CC" # Let the user override the test.
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077 IFS=$as_save_IFS
4078 case $as_dir in #(((
4079 '') as_dir=./ ;;
4080 */) ;;
4081 *) as_dir=$as_dir/ ;;
4082 esac
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4085 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089 done
4090 done
4091 IFS=$as_save_IFS
4092
4093 fi ;;
4094 esac
4095 fi
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 printf "%s\n" "$CC" >&6; }
4100 else
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4103 fi
4104
4105
4106 test -n "$CC" && break
4107 done
4108 fi
4109 if test -z "$CC"; then
4110 ac_ct_CC=$CC
4111 for ac_prog in cl.exe
4112 do
4113 # Extract the first word of "$ac_prog", so it can be a program name with args.
4114 set dummy $ac_prog; ac_word=$2
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 printf %s "checking for $ac_word... " >&6; }
4117 if test ${ac_cv_prog_ac_ct_CC+y}
4118 then :
4119 printf %s "(cached) " >&6
4120 else case e in #(
4121 e) if test -n "$ac_ct_CC"; then
4122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127 IFS=$as_save_IFS
4128 case $as_dir in #(((
4129 '') as_dir=./ ;;
4130 */) ;;
4131 *) as_dir=$as_dir/ ;;
4132 esac
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_CC="$ac_prog"
4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139 done
4140 done
4141 IFS=$as_save_IFS
4142
4143 fi ;;
4144 esac
4145 fi
4146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4147 if test -n "$ac_ct_CC"; then
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4149 printf "%s\n" "$ac_ct_CC" >&6; }
4150 else
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 printf "%s\n" "no" >&6; }
4153 fi
4154
4155
4156 test -n "$ac_ct_CC" && break
4157 done
4158
4159 if test "x$ac_ct_CC" = x; then
4160 CC=""
4161 else
4162 case $cross_compiling:$ac_tool_warned in
4163 yes:)
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4165 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4166 ac_tool_warned=yes ;;
4167 esac
4168 CC=$ac_ct_CC
4169 fi
4170 fi
4171
4172 fi
4173 if test -z "$CC"; then
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}clang; ac_word=$2
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 printf %s "checking for $ac_word... " >&6; }
4179 if test ${ac_cv_prog_CC+y}
4180 then :
4181 printf %s "(cached) " >&6
4182 else case e in #(
4183 e) if test -n "$CC"; then
4184 ac_cv_prog_CC="$CC" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189 IFS=$as_save_IFS
4190 case $as_dir in #(((
4191 '') as_dir=./ ;;
4192 */) ;;
4193 *) as_dir=$as_dir/ ;;
4194 esac
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_CC="${ac_tool_prefix}clang"
4198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4199 break 2
4200 fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi ;;
4206 esac
4207 fi
4208 CC=$ac_cv_prog_CC
4209 if test -n "$CC"; then
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4211 printf "%s\n" "$CC" >&6; }
4212 else
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 printf "%s\n" "no" >&6; }
4215 fi
4216
4217
4218 fi
4219 if test -z "$ac_cv_prog_CC"; then
4220 ac_ct_CC=$CC
4221 # Extract the first word of "clang", so it can be a program name with args.
4222 set dummy clang; ac_word=$2
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 printf %s "checking for $ac_word... " >&6; }
4225 if test ${ac_cv_prog_ac_ct_CC+y}
4226 then :
4227 printf %s "(cached) " >&6
4228 else case e in #(
4229 e) if test -n "$ac_ct_CC"; then
4230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235 IFS=$as_save_IFS
4236 case $as_dir in #(((
4237 '') as_dir=./ ;;
4238 */) ;;
4239 *) as_dir=$as_dir/ ;;
4240 esac
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_ac_ct_CC="clang"
4244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4245 break 2
4246 fi
4247 done
4248 done
4249 IFS=$as_save_IFS
4250
4251 fi ;;
4252 esac
4253 fi
4254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4255 if test -n "$ac_ct_CC"; then
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4257 printf "%s\n" "$ac_ct_CC" >&6; }
4258 else
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 printf "%s\n" "no" >&6; }
4261 fi
4262
4263 if test "x$ac_ct_CC" = x; then
4264 CC=""
4265 else
4266 case $cross_compiling:$ac_tool_warned in
4267 yes:)
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4270 ac_tool_warned=yes ;;
4271 esac
4272 CC=$ac_ct_CC
4273 fi
4274 else
4275 CC="$ac_cv_prog_CC"
4276 fi
4277
4278 fi
4279
4280
4281 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4282 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4283 as_fn_error $? "no acceptable C compiler found in \$PATH
4284 See 'config.log' for more details" "$LINENO" 5; }
4285
4286 # Provide some information about the compiler.
4287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4288 set X $ac_compile
4289 ac_compiler=$2
4290 for ac_option in --version -v -V -qversion -version; do
4291 { { ac_try="$ac_compiler $ac_option >&5"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 printf "%s\n" "$ac_try_echo"; } >&5
4298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4299 ac_status=$?
4300 if test -s conftest.err; then
4301 sed '10a\
4302 ... rest of stderr output deleted ...
4303 10q' conftest.err >conftest.er1
4304 cat conftest.er1 >&5
4305 fi
4306 rm -f conftest.er1 conftest.err
4307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }
4309 done
4310
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313
4314 int
4315 main (void)
4316 {
4317
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 ac_clean_files_save=$ac_clean_files
4323 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4324 # Try to create an executable without -o first, disregard a.out.
4325 # It will help us diagnose broken compilers, and finding out an intuition
4326 # of exeext.
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4328 printf %s "checking whether the C compiler works... " >&6; }
4329 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4330
4331 # The possible output files:
4332 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4333
4334 ac_rmfiles=
4335 for ac_file in $ac_files
4336 do
4337 case $ac_file in
4338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4339 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4340 esac
4341 done
4342 rm -f $ac_rmfiles
4343
4344 if { { ac_try="$ac_link_default"
4345 case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 printf "%s\n" "$ac_try_echo"; } >&5
4351 (eval "$ac_link_default") 2>&5
4352 ac_status=$?
4353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }
4355 then :
4356 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4357 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4358 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4359 # so that the user can short-circuit this test for compilers unknown to
4360 # Autoconf.
4361 for ac_file in $ac_files ''
4362 do
4363 test -f "$ac_file" || continue
4364 case $ac_file in
4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4366 ;;
4367 [ab].out )
4368 # We found the default executable, but exeext='' is most
4369 # certainly right.
4370 break;;
4371 *.* )
4372 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4373 then :; else
4374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4375 fi
4376 # We set ac_cv_exeext here because the later test for it is not
4377 # safe: cross compilers may not add the suffix if given an '-o'
4378 # argument, so we may need to know it at that point already.
4379 # Even if this section looks crufty: it has the advantage of
4380 # actually working.
4381 break;;
4382 * )
4383 break;;
4384 esac
4385 done
4386 test "$ac_cv_exeext" = no && ac_cv_exeext=
4387
4388 else case e in #(
4389 e) ac_file='' ;;
4390 esac
4391 fi
4392 if test -z "$ac_file"
4393 then :
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 printf "%s\n" "no" >&6; }
4396 printf "%s\n" "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4400 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4401 as_fn_error 77 "C compiler cannot create executables
4402 See 'config.log' for more details" "$LINENO" 5; }
4403 else case e in #(
4404 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405 printf "%s\n" "yes" >&6; } ;;
4406 esac
4407 fi
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4409 printf %s "checking for C compiler default output file name... " >&6; }
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4411 printf "%s\n" "$ac_file" >&6; }
4412 ac_exeext=$ac_cv_exeext
4413
4414 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4415 ac_clean_files=$ac_clean_files_save
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4417 printf %s "checking for suffix of executables... " >&6; }
4418 if { { ac_try="$ac_link"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 printf "%s\n" "$ac_try_echo"; } >&5
4425 (eval "$ac_link") 2>&5
4426 ac_status=$?
4427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }
4429 then :
4430 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4431 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4432 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4433 # 'rm'.
4434 for ac_file in conftest.exe conftest conftest.*; do
4435 test -f "$ac_file" || continue
4436 case $ac_file in
4437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4438 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4439 break;;
4440 * ) break;;
4441 esac
4442 done
4443 else case e in #(
4444 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4445 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4446 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4447 See 'config.log' for more details" "$LINENO" 5; } ;;
4448 esac
4449 fi
4450 rm -f conftest conftest$ac_cv_exeext
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4452 printf "%s\n" "$ac_cv_exeext" >&6; }
4453
4454 rm -f conftest.$ac_ext
4455 EXEEXT=$ac_cv_exeext
4456 ac_exeext=$EXEEXT
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <stdio.h>
4460 int
4461 main (void)
4462 {
4463 FILE *f = fopen ("conftest.out", "w");
4464 if (!f)
4465 return 1;
4466 return ferror (f) || fclose (f) != 0;
4467
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 ac_clean_files="$ac_clean_files conftest.out"
4473 # Check that the compiler produces executables we can run. If not, either
4474 # the compiler is broken, or we cross compile.
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4476 printf %s "checking whether we are cross compiling... " >&6; }
4477 if test "$cross_compiling" != yes; then
4478 { { ac_try="$ac_link"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 printf "%s\n" "$ac_try_echo"; } >&5
4485 (eval "$ac_link") 2>&5
4486 ac_status=$?
4487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }
4489 if { ac_try='./conftest$ac_cv_exeext'
4490 { { case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4495 printf "%s\n" "$ac_try_echo"; } >&5
4496 (eval "$ac_try") 2>&5
4497 ac_status=$?
4498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }; }; then
4500 cross_compiling=no
4501 else
4502 if test "$cross_compiling" = maybe; then
4503 cross_compiling=yes
4504 else
4505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4506 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4507 as_fn_error 77 "cannot run C compiled programs.
4508 If you meant to cross compile, use '--host'.
4509 See 'config.log' for more details" "$LINENO" 5; }
4510 fi
4511 fi
4512 fi
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4514 printf "%s\n" "$cross_compiling" >&6; }
4515
4516 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4517 conftest.o conftest.obj conftest.out
4518 ac_clean_files=$ac_clean_files_save
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4520 printf %s "checking for suffix of object files... " >&6; }
4521 if test ${ac_cv_objext+y}
4522 then :
4523 printf %s "(cached) " >&6
4524 else case e in #(
4525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527
4528 int
4529 main (void)
4530 {
4531
4532 ;
4533 return 0;
4534 }
4535 _ACEOF
4536 rm -f conftest.o conftest.obj
4537 if { { ac_try="$ac_compile"
4538 case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541 esac
4542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543 printf "%s\n" "$ac_try_echo"; } >&5
4544 (eval "$ac_compile") 2>&5
4545 ac_status=$?
4546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; }
4548 then :
4549 for ac_file in conftest.o conftest.obj conftest.*; do
4550 test -f "$ac_file" || continue;
4551 case $ac_file in
4552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4553 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4554 break;;
4555 esac
4556 done
4557 else case e in #(
4558 e) printf "%s\n" "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4562 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4563 as_fn_error $? "cannot compute suffix of object files: cannot compile
4564 See 'config.log' for more details" "$LINENO" 5; } ;;
4565 esac
4566 fi
4567 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4568 esac
4569 fi
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571 printf "%s\n" "$ac_cv_objext" >&6; }
4572 OBJEXT=$ac_cv_objext
4573 ac_objext=$OBJEXT
4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4575 printf %s "checking whether the compiler supports GNU C... " >&6; }
4576 if test ${ac_cv_c_compiler_gnu+y}
4577 then :
4578 printf %s "(cached) " >&6
4579 else case e in #(
4580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582
4583 int
4584 main (void)
4585 {
4586 #ifndef __GNUC__
4587 choke me
4588 #endif
4589
4590 ;
4591 return 0;
4592 }
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"
4595 then :
4596 ac_compiler_gnu=yes
4597 else case e in #(
4598 e) ac_compiler_gnu=no ;;
4599 esac
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4603 ;;
4604 esac
4605 fi
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4607 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
4610 if test $ac_compiler_gnu = yes; then
4611 GCC=yes
4612 else
4613 GCC=
4614 fi
4615 ac_test_CFLAGS=${CFLAGS+y}
4616 ac_save_CFLAGS=$CFLAGS
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4618 printf %s "checking whether $CC accepts -g... " >&6; }
4619 if test ${ac_cv_prog_cc_g+y}
4620 then :
4621 printf %s "(cached) " >&6
4622 else case e in #(
4623 e) ac_save_c_werror_flag=$ac_c_werror_flag
4624 ac_c_werror_flag=yes
4625 ac_cv_prog_cc_g=no
4626 CFLAGS="-g"
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629
4630 int
4631 main (void)
4632 {
4633
4634 ;
4635 return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"
4639 then :
4640 ac_cv_prog_cc_g=yes
4641 else case e in #(
4642 e) CFLAGS=""
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645
4646 int
4647 main (void)
4648 {
4649
4650 ;
4651 return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_c_try_compile "$LINENO"
4655 then :
4656
4657 else case e in #(
4658 e) ac_c_werror_flag=$ac_save_c_werror_flag
4659 CFLAGS="-g"
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662
4663 int
4664 main (void)
4665 {
4666
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"
4672 then :
4673 ac_cv_prog_cc_g=yes
4674 fi
4675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4676 esac
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4679 esac
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4682 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4683 esac
4684 fi
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4686 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4687 if test $ac_test_CFLAGS; then
4688 CFLAGS=$ac_save_CFLAGS
4689 elif test $ac_cv_prog_cc_g = yes; then
4690 if test "$GCC" = yes; then
4691 CFLAGS="-g -O2"
4692 else
4693 CFLAGS="-g"
4694 fi
4695 else
4696 if test "$GCC" = yes; then
4697 CFLAGS="-O2"
4698 else
4699 CFLAGS=
4700 fi
4701 fi
4702 ac_prog_cc_stdc=no
4703 if test x$ac_prog_cc_stdc = xno
4704 then :
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4706 printf %s "checking for $CC option to enable C11 features... " >&6; }
4707 if test ${ac_cv_prog_cc_c11+y}
4708 then :
4709 printf %s "(cached) " >&6
4710 else case e in #(
4711 e) ac_cv_prog_cc_c11=no
4712 ac_save_CC=$CC
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 $ac_c_conftest_c11_program
4716 _ACEOF
4717 for ac_arg in '' -std=gnu11
4718 do
4719 CC="$ac_save_CC $ac_arg"
4720 if ac_fn_c_try_compile "$LINENO"
4721 then :
4722 ac_cv_prog_cc_c11=$ac_arg
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext conftest.beam
4725 test "x$ac_cv_prog_cc_c11" != "xno" && break
4726 done
4727 rm -f conftest.$ac_ext
4728 CC=$ac_save_CC ;;
4729 esac
4730 fi
4731
4732 if test "x$ac_cv_prog_cc_c11" = xno
4733 then :
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4735 printf "%s\n" "unsupported" >&6; }
4736 else case e in #(
4737 e) if test "x$ac_cv_prog_cc_c11" = x
4738 then :
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4740 printf "%s\n" "none needed" >&6; }
4741 else case e in #(
4742 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4743 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4744 CC="$CC $ac_cv_prog_cc_c11" ;;
4745 esac
4746 fi
4747 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4748 ac_prog_cc_stdc=c11 ;;
4749 esac
4750 fi
4751 fi
4752 if test x$ac_prog_cc_stdc = xno
4753 then :
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4755 printf %s "checking for $CC option to enable C99 features... " >&6; }
4756 if test ${ac_cv_prog_cc_c99+y}
4757 then :
4758 printf %s "(cached) " >&6
4759 else case e in #(
4760 e) ac_cv_prog_cc_c99=no
4761 ac_save_CC=$CC
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 $ac_c_conftest_c99_program
4765 _ACEOF
4766 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4767 do
4768 CC="$ac_save_CC $ac_arg"
4769 if ac_fn_c_try_compile "$LINENO"
4770 then :
4771 ac_cv_prog_cc_c99=$ac_arg
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext conftest.beam
4774 test "x$ac_cv_prog_cc_c99" != "xno" && break
4775 done
4776 rm -f conftest.$ac_ext
4777 CC=$ac_save_CC ;;
4778 esac
4779 fi
4780
4781 if test "x$ac_cv_prog_cc_c99" = xno
4782 then :
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4784 printf "%s\n" "unsupported" >&6; }
4785 else case e in #(
4786 e) if test "x$ac_cv_prog_cc_c99" = x
4787 then :
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4789 printf "%s\n" "none needed" >&6; }
4790 else case e in #(
4791 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4792 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4793 CC="$CC $ac_cv_prog_cc_c99" ;;
4794 esac
4795 fi
4796 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4797 ac_prog_cc_stdc=c99 ;;
4798 esac
4799 fi
4800 fi
4801 if test x$ac_prog_cc_stdc = xno
4802 then :
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4804 printf %s "checking for $CC option to enable C89 features... " >&6; }
4805 if test ${ac_cv_prog_cc_c89+y}
4806 then :
4807 printf %s "(cached) " >&6
4808 else case e in #(
4809 e) ac_cv_prog_cc_c89=no
4810 ac_save_CC=$CC
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 $ac_c_conftest_c89_program
4814 _ACEOF
4815 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4816 do
4817 CC="$ac_save_CC $ac_arg"
4818 if ac_fn_c_try_compile "$LINENO"
4819 then :
4820 ac_cv_prog_cc_c89=$ac_arg
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.beam
4823 test "x$ac_cv_prog_cc_c89" != "xno" && break
4824 done
4825 rm -f conftest.$ac_ext
4826 CC=$ac_save_CC ;;
4827 esac
4828 fi
4829
4830 if test "x$ac_cv_prog_cc_c89" = xno
4831 then :
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4833 printf "%s\n" "unsupported" >&6; }
4834 else case e in #(
4835 e) if test "x$ac_cv_prog_cc_c89" = x
4836 then :
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4838 printf "%s\n" "none needed" >&6; }
4839 else case e in #(
4840 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4841 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4842 CC="$CC $ac_cv_prog_cc_c89" ;;
4843 esac
4844 fi
4845 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4846 ac_prog_cc_stdc=c89 ;;
4847 esac
4848 fi
4849 fi
4850
4851 ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857
4858 ac_ext=c
4859 ac_cpp='$CPP $CPPFLAGS'
4860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4864 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4865 if test ${am_cv_prog_cc_c_o+y}
4866 then :
4867 printf %s "(cached) " >&6
4868 else case e in #(
4869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871
4872 int
4873 main (void)
4874 {
4875
4876 ;
4877 return 0;
4878 }
4879 _ACEOF
4880 # Make sure it works both with $CC and with simple cc.
4881 # Following AC_PROG_CC_C_O, we do the test twice because some
4882 # compilers refuse to overwrite an existing .o file with -o,
4883 # though they will create one.
4884 am_cv_prog_cc_c_o=yes
4885 for am_i in 1 2; do
4886 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4887 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } \
4891 && test -f conftest2.$ac_objext; then
4892 : OK
4893 else
4894 am_cv_prog_cc_c_o=no
4895 break
4896 fi
4897 done
4898 rm -f core conftest*
4899 unset am_i ;;
4900 esac
4901 fi
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4903 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4904 if test "$am_cv_prog_cc_c_o" != yes; then
4905 # Losing compiler, so override with the script.
4906 # FIXME: It is wrong to rewrite CC.
4907 # But if we don't then we get into trouble of one sort or another.
4908 # A longer-term fix would be to have automake use am__CC in this case,
4909 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4910 CC="$am_aux_dir/compile $CC"
4911 fi
4912 ac_ext=c
4913 ac_cpp='$CPP $CPPFLAGS'
4914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917
4918 DEPDIR="${am__leading_dot}deps"
4919
4920 ac_config_commands="$ac_config_commands depfiles"
4921
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4923 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4924 cat > confinc.mk << 'END'
4925 am__doit:
4926 @echo this is the am__doit target >confinc.out
4927 .PHONY: am__doit
4928 END
4929 am__include="#"
4930 am__quote=
4931 # BSD make does it like this.
4932 echo '.include "confinc.mk" # ignored' > confmf.BSD
4933 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4934 echo 'include confinc.mk # ignored' > confmf.GNU
4935 _am_result=no
4936 for s in GNU BSD; do
4937 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4938 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }
4942 case $?:`cat confinc.out 2>/dev/null` in #(
4943 '0:this is the am__doit target') :
4944 case $s in #(
4945 BSD) :
4946 am__include='.include' am__quote='"' ;; #(
4947 *) :
4948 am__include='include' am__quote='' ;;
4949 esac ;; #(
4950 *) :
4951 ;;
4952 esac
4953 if test "$am__include" != "#"; then
4954 _am_result="yes ($s style)"
4955 break
4956 fi
4957 done
4958 rm -f confinc.* confmf.*
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4960 printf "%s\n" "${_am_result}" >&6; }
4961
4962 # Check whether --enable-dependency-tracking was given.
4963 if test ${enable_dependency_tracking+y}
4964 then :
4965 enableval=$enable_dependency_tracking;
4966 fi
4967
4968 if test "x$enable_dependency_tracking" != xno; then
4969 am_depcomp="$ac_aux_dir/depcomp"
4970 AMDEPBACKSLASH='\'
4971 am__nodep='_no'
4972 fi
4973 if test "x$enable_dependency_tracking" != xno; then
4974 AMDEP_TRUE=
4975 AMDEP_FALSE='#'
4976 else
4977 AMDEP_TRUE='#'
4978 AMDEP_FALSE=
4979 fi
4980
4981
4982
4983 depcc="$CC" am_compiler_list=
4984
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4986 printf %s "checking dependency style of $depcc... " >&6; }
4987 if test ${am_cv_CC_dependencies_compiler_type+y}
4988 then :
4989 printf %s "(cached) " >&6
4990 else case e in #(
4991 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4992 # We make a subdir and do the tests there. Otherwise we can end up
4993 # making bogus files that we don't know about and never remove. For
4994 # instance it was reported that on HP-UX the gcc test will end up
4995 # making a dummy file named 'D' -- because '-MD' means "put the output
4996 # in D".
4997 rm -rf conftest.dir
4998 mkdir conftest.dir
4999 # Copy depcomp to subdir because otherwise we won't find it if we're
5000 # using a relative directory.
5001 cp "$am_depcomp" conftest.dir
5002 cd conftest.dir
5003 # We will build objects and dependencies in a subdirectory because
5004 # it helps to detect inapplicable dependency modes. For instance
5005 # both Tru64's cc and ICC support -MD to output dependencies as a
5006 # side effect of compilation, but ICC will put the dependencies in
5007 # the current directory while Tru64 will put them in the object
5008 # directory.
5009 mkdir sub
5010
5011 am_cv_CC_dependencies_compiler_type=none
5012 if test "$am_compiler_list" = ""; then
5013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5014 fi
5015 am__universal=false
5016 case " $depcc " in #(
5017 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5018 esac
5019
5020 for depmode in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5024 #
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5028 : > sub/conftest.c
5029 for i in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5032 # Solaris 10 /bin/sh.
5033 echo '/* dummy */' > sub/conftst$i.h
5034 done
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5036
5037 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle '-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs.
5041 am__obj=sub/conftest.${OBJEXT-o}
5042 am__minus_obj="-o $am__obj"
5043 case $depmode in
5044 gcc)
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false || continue
5047 ;;
5048 nosideeffect)
5049 # After this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested.
5051 if test "x$enable_dependency_tracking" = xyes; then
5052 continue
5053 else
5054 break
5055 fi
5056 ;;
5057 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5058 # This compiler won't grok '-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj=conftest.${OBJEXT-o}
5062 am__minus_obj=
5063 ;;
5064 none) break ;;
5065 esac
5066 if depmode=$depmode \
5067 source=sub/conftest.c object=$am__obj \
5068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070 >/dev/null 2>conftest.err &&
5071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thus:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CC_dependencies_compiler_type=$depmode
5085 break
5086 fi
5087 fi
5088 done
5089
5090 cd ..
5091 rm -rf conftest.dir
5092 else
5093 am_cv_CC_dependencies_compiler_type=none
5094 fi
5095 ;;
5096 esac
5097 fi
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5099 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5101
5102 if
5103 test "x$enable_dependency_tracking" != xno \
5104 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5105 am__fastdepCC_TRUE=
5106 am__fastdepCC_FALSE='#'
5107 else
5108 am__fastdepCC_TRUE='#'
5109 am__fastdepCC_FALSE=
5110 fi
5111
5112
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5119 printf %s "checking how to run the C preprocessor... " >&6; }
5120 # On Suns, sometimes $CPP names a directory.
5121 if test -n "$CPP" && test -d "$CPP"; then
5122 CPP=
5123 fi
5124 if test -z "$CPP"; then
5125 if test ${ac_cv_prog_CPP+y}
5126 then :
5127 printf %s "(cached) " >&6
5128 else case e in #(
5129 e) # Double quotes because $CC needs to be expanded
5130 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5131 do
5132 ac_preproc_ok=false
5133 for ac_c_preproc_warn_flag in '' yes
5134 do
5135 # Use a header file that comes with gcc, so configuring glibc
5136 # with a fresh cross-compiler works.
5137 # On the NeXT, cc -E runs the code through the compiler's parser,
5138 # not just through cpp. "Syntax error" is here to catch this case.
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 #include <limits.h>
5142 Syntax error
5143 _ACEOF
5144 if ac_fn_c_try_cpp "$LINENO"
5145 then :
5146
5147 else case e in #(
5148 e) # Broken: fails on valid input.
5149 continue ;;
5150 esac
5151 fi
5152 rm -f conftest.err conftest.i conftest.$ac_ext
5153
5154 # OK, works on sane cases. Now check whether nonexistent headers
5155 # can be detected and how.
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158 #include <ac_nonexistent.h>
5159 _ACEOF
5160 if ac_fn_c_try_cpp "$LINENO"
5161 then :
5162 # Broken: success on invalid input.
5163 continue
5164 else case e in #(
5165 e) # Passes both tests.
5166 ac_preproc_ok=:
5167 break ;;
5168 esac
5169 fi
5170 rm -f conftest.err conftest.i conftest.$ac_ext
5171
5172 done
5173 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5174 rm -f conftest.i conftest.err conftest.$ac_ext
5175 if $ac_preproc_ok
5176 then :
5177 break
5178 fi
5179
5180 done
5181 ac_cv_prog_CPP=$CPP
5182 ;;
5183 esac
5184 fi
5185 CPP=$ac_cv_prog_CPP
5186 else
5187 ac_cv_prog_CPP=$CPP
5188 fi
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5190 printf "%s\n" "$CPP" >&6; }
5191 ac_preproc_ok=false
5192 for ac_c_preproc_warn_flag in '' yes
5193 do
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <limits.h>
5201 Syntax error
5202 _ACEOF
5203 if ac_fn_c_try_cpp "$LINENO"
5204 then :
5205
5206 else case e in #(
5207 e) # Broken: fails on valid input.
5208 continue ;;
5209 esac
5210 fi
5211 rm -f conftest.err conftest.i conftest.$ac_ext
5212
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <ac_nonexistent.h>
5218 _ACEOF
5219 if ac_fn_c_try_cpp "$LINENO"
5220 then :
5221 # Broken: success on invalid input.
5222 continue
5223 else case e in #(
5224 e) # Passes both tests.
5225 ac_preproc_ok=:
5226 break ;;
5227 esac
5228 fi
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5230
5231 done
5232 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.i conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok
5235 then :
5236
5237 else case e in #(
5238 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5239 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5240 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5241 See 'config.log' for more details" "$LINENO" 5; } ;;
5242 esac
5243 fi
5244
5245 ac_ext=c
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250
5251
5252
5253 if test -n "$ac_tool_prefix"; then
5254 for ac_prog in ar lib "link -lib"
5255 do
5256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 printf %s "checking for $ac_word... " >&6; }
5260 if test ${ac_cv_prog_AR+y}
5261 then :
5262 printf %s "(cached) " >&6
5263 else case e in #(
5264 e) if test -n "$AR"; then
5265 ac_cv_prog_AR="$AR" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270 IFS=$as_save_IFS
5271 case $as_dir in #(((
5272 '') as_dir=./ ;;
5273 */) ;;
5274 *) as_dir=$as_dir/ ;;
5275 esac
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi ;;
5287 esac
5288 fi
5289 AR=$ac_cv_prog_AR
5290 if test -n "$AR"; then
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5292 printf "%s\n" "$AR" >&6; }
5293 else
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 printf "%s\n" "no" >&6; }
5296 fi
5297
5298
5299 test -n "$AR" && break
5300 done
5301 fi
5302 if test -z "$AR"; then
5303 ac_ct_AR=$AR
5304 for ac_prog in ar lib "link -lib"
5305 do
5306 # Extract the first word of "$ac_prog", so it can be a program name with args.
5307 set dummy $ac_prog; ac_word=$2
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 printf %s "checking for $ac_word... " >&6; }
5310 if test ${ac_cv_prog_ac_ct_AR+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else case e in #(
5314 e) if test -n "$ac_ct_AR"; then
5315 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320 IFS=$as_save_IFS
5321 case $as_dir in #(((
5322 '') as_dir=./ ;;
5323 */) ;;
5324 *) as_dir=$as_dir/ ;;
5325 esac
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_ac_ct_AR="$ac_prog"
5329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5330 break 2
5331 fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 fi ;;
5337 esac
5338 fi
5339 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5340 if test -n "$ac_ct_AR"; then
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5342 printf "%s\n" "$ac_ct_AR" >&6; }
5343 else
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 printf "%s\n" "no" >&6; }
5346 fi
5347
5348
5349 test -n "$ac_ct_AR" && break
5350 done
5351
5352 if test "x$ac_ct_AR" = x; then
5353 AR="false"
5354 else
5355 case $cross_compiling:$ac_tool_warned in
5356 yes:)
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5358 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5359 ac_tool_warned=yes ;;
5360 esac
5361 AR=$ac_ct_AR
5362 fi
5363 fi
5364
5365 : ${AR=ar}
5366 : ${ARFLAGS=cr}
5367
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5369 printf %s "checking the archiver ($AR) interface... " >&6; }
5370 if test ${am_cv_ar_interface+y}
5371 then :
5372 printf %s "(cached) " >&6
5373 else case e in #(
5374 e) ac_ext=c
5375 ac_cpp='$CPP $CPPFLAGS'
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379
5380 am_cv_ar_interface=ar
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 int some_variable = 0;
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"
5386 then :
5387 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5389 (eval $am_ar_try) 2>&5
5390 ac_status=$?
5391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5392 test $ac_status = 0; }
5393 if test "$ac_status" -eq 0; then
5394 am_cv_ar_interface=ar
5395 else
5396 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5398 (eval $am_ar_try) 2>&5
5399 ac_status=$?
5400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }
5402 if test "$ac_status" -eq 0; then
5403 am_cv_ar_interface=lib
5404 else
5405 am_cv_ar_interface=unknown
5406 fi
5407 fi
5408 rm -f conftest.lib libconftest.a
5409
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5412 ac_ext=c
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417 ;;
5418 esac
5419 fi
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5421 printf "%s\n" "$am_cv_ar_interface" >&6; }
5422
5423 case $am_cv_ar_interface in
5424 ar)
5425 ;;
5426 lib)
5427 # Microsoft lib, so override with the ar-lib wrapper script.
5428 # FIXME: It is wrong to rewrite AR.
5429 # But if we don't then we get into trouble of one sort or another.
5430 # A longer-term fix would be to have automake use am__AR in this case,
5431 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5432 # similar.
5433 AR="$am_aux_dir/ar-lib $AR"
5434 ;;
5435 unknown)
5436 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5437 ;;
5438 esac
5439
5440 case `pwd` in
5441 *\ * | *\ *)
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5443 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5444 esac
5445
5446
5447
5448 macro_version='2.4.7'
5449 macro_revision='2.4.7'
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 ltmain=$ac_aux_dir/ltmain.sh
5465
5466
5467
5468 # Make sure we can run config.sub.
5469 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5470 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5471
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5473 printf %s "checking build system type... " >&6; }
5474 if test ${ac_cv_build+y}
5475 then :
5476 printf %s "(cached) " >&6
5477 else case e in #(
5478 e) ac_build_alias=$build_alias
5479 test "x$ac_build_alias" = x &&
5480 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5481 test "x$ac_build_alias" = x &&
5482 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5483 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5484 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5485 ;;
5486 esac
5487 fi
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5489 printf "%s\n" "$ac_cv_build" >&6; }
5490 case $ac_cv_build in
5491 *-*-*) ;;
5492 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5493 esac
5494 build=$ac_cv_build
5495 ac_save_IFS=$IFS; IFS='-'
5496 set x $ac_cv_build
5497 shift
5498 build_cpu=$1
5499 build_vendor=$2
5500 shift; shift
5501 # Remember, the first character of IFS is used to create $*,
5502 # except with old shells:
5503 build_os=$*
5504 IFS=$ac_save_IFS
5505 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5506
5507
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5509 printf %s "checking host system type... " >&6; }
5510 if test ${ac_cv_host+y}
5511 then :
5512 printf %s "(cached) " >&6
5513 else case e in #(
5514 e) if test "x$host_alias" = x; then
5515 ac_cv_host=$ac_cv_build
5516 else
5517 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5518 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5519 fi
5520 ;;
5521 esac
5522 fi
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5524 printf "%s\n" "$ac_cv_host" >&6; }
5525 case $ac_cv_host in
5526 *-*-*) ;;
5527 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5528 esac
5529 host=$ac_cv_host
5530 ac_save_IFS=$IFS; IFS='-'
5531 set x $ac_cv_host
5532 shift
5533 host_cpu=$1
5534 host_vendor=$2
5535 shift; shift
5536 # Remember, the first character of IFS is used to create $*,
5537 # except with old shells:
5538 host_os=$*
5539 IFS=$ac_save_IFS
5540 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5541
5542
5543 # Backslashify metacharacters that are still active within
5544 # double-quoted strings.
5545 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5546
5547 # Same as above, but do not quote variable references.
5548 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5549
5550 # Sed substitution to delay expansion of an escaped shell variable in a
5551 # double_quote_subst'ed string.
5552 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5553
5554 # Sed substitution to delay expansion of an escaped single quote.
5555 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5556
5557 # Sed substitution to avoid accidental globbing in evaled expressions
5558 no_glob_subst='s/\*/\\\*/g'
5559
5560 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5561 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5562 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5563
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5565 printf %s "checking how to print strings... " >&6; }
5566 # Test print first, because it will be a builtin if present.
5567 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5568 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5569 ECHO='print -r --'
5570 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5571 ECHO='printf %s\n'
5572 else
5573 # Use this function as a fallback that always works.
5574 func_fallback_echo ()
5575 {
5576 eval 'cat <<_LTECHO_EOF
5577 $1
5578 _LTECHO_EOF'
5579 }
5580 ECHO='func_fallback_echo'
5581 fi
5582
5583 # func_echo_all arg...
5584 # Invoke $ECHO with all args, space-separated.
5585 func_echo_all ()
5586 {
5587 $ECHO ""
5588 }
5589
5590 case $ECHO in
5591 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5592 printf "%s\n" "printf" >&6; } ;;
5593 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5594 printf "%s\n" "print -r" >&6; } ;;
5595 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5596 printf "%s\n" "cat" >&6; } ;;
5597 esac
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5613 printf %s "checking for a sed that does not truncate output... " >&6; }
5614 if test ${ac_cv_path_SED+y}
5615 then :
5616 printf %s "(cached) " >&6
5617 else case e in #(
5618 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5619 for ac_i in 1 2 3 4 5 6 7; do
5620 ac_script="$ac_script$as_nl$ac_script"
5621 done
5622 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5623 { ac_script=; unset ac_script;}
5624 if test -z "$SED"; then
5625 ac_path_SED_found=false
5626 # Loop through the user's path and test for each of PROGNAME-LIST
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630 IFS=$as_save_IFS
5631 case $as_dir in #(((
5632 '') as_dir=./ ;;
5633 */) ;;
5634 *) as_dir=$as_dir/ ;;
5635 esac
5636 for ac_prog in sed gsed
5637 do
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5640 as_fn_executable_p "$ac_path_SED" || continue
5641 # Check for GNU ac_path_SED and select it if it is found.
5642 # Check for GNU $ac_path_SED
5643 case `"$ac_path_SED" --version 2>&1` in #(
5644 *GNU*)
5645 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5646 #(
5647 *)
5648 ac_count=0
5649 printf %s 0123456789 >"conftest.in"
5650 while :
5651 do
5652 cat "conftest.in" "conftest.in" >"conftest.tmp"
5653 mv "conftest.tmp" "conftest.in"
5654 cp "conftest.in" "conftest.nl"
5655 printf "%s\n" '' >> "conftest.nl"
5656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5658 as_fn_arith $ac_count + 1 && ac_count=$as_val
5659 if test $ac_count -gt ${ac_path_SED_max-0}; then
5660 # Best one so far, save it but keep looking for a better one
5661 ac_cv_path_SED="$ac_path_SED"
5662 ac_path_SED_max=$ac_count
5663 fi
5664 # 10*(2^10) chars as input seems more than enough
5665 test $ac_count -gt 10 && break
5666 done
5667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5668 esac
5669
5670 $ac_path_SED_found && break 3
5671 done
5672 done
5673 done
5674 IFS=$as_save_IFS
5675 if test -z "$ac_cv_path_SED"; then
5676 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5677 fi
5678 else
5679 ac_cv_path_SED=$SED
5680 fi
5681 ;;
5682 esac
5683 fi
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5685 printf "%s\n" "$ac_cv_path_SED" >&6; }
5686 SED="$ac_cv_path_SED"
5687 rm -f conftest.sed
5688
5689 test -z "$SED" && SED=sed
5690 Xsed="$SED -e 1s/^X//"
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5703 printf %s "checking for grep that handles long lines and -e... " >&6; }
5704 if test ${ac_cv_path_GREP+y}
5705 then :
5706 printf %s "(cached) " >&6
5707 else case e in #(
5708 e) if test -z "$GREP"; then
5709 ac_path_GREP_found=false
5710 # Loop through the user's path and test for each of PROGNAME-LIST
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5713 do
5714 IFS=$as_save_IFS
5715 case $as_dir in #(((
5716 '') as_dir=./ ;;
5717 */) ;;
5718 *) as_dir=$as_dir/ ;;
5719 esac
5720 for ac_prog in grep ggrep
5721 do
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5724 as_fn_executable_p "$ac_path_GREP" || continue
5725 # Check for GNU ac_path_GREP and select it if it is found.
5726 # Check for GNU $ac_path_GREP
5727 case `"$ac_path_GREP" --version 2>&1` in #(
5728 *GNU*)
5729 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5730 #(
5731 *)
5732 ac_count=0
5733 printf %s 0123456789 >"conftest.in"
5734 while :
5735 do
5736 cat "conftest.in" "conftest.in" >"conftest.tmp"
5737 mv "conftest.tmp" "conftest.in"
5738 cp "conftest.in" "conftest.nl"
5739 printf "%s\n" 'GREP' >> "conftest.nl"
5740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5742 as_fn_arith $ac_count + 1 && ac_count=$as_val
5743 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5744 # Best one so far, save it but keep looking for a better one
5745 ac_cv_path_GREP="$ac_path_GREP"
5746 ac_path_GREP_max=$ac_count
5747 fi
5748 # 10*(2^10) chars as input seems more than enough
5749 test $ac_count -gt 10 && break
5750 done
5751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5752 esac
5753
5754 $ac_path_GREP_found && break 3
5755 done
5756 done
5757 done
5758 IFS=$as_save_IFS
5759 if test -z "$ac_cv_path_GREP"; then
5760 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5761 fi
5762 else
5763 ac_cv_path_GREP=$GREP
5764 fi
5765 ;;
5766 esac
5767 fi
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5769 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5770 GREP="$ac_cv_path_GREP"
5771
5772
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5774 printf %s "checking for egrep... " >&6; }
5775 if test ${ac_cv_path_EGREP+y}
5776 then :
5777 printf %s "(cached) " >&6
5778 else case e in #(
5779 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5780 then ac_cv_path_EGREP="$GREP -E"
5781 else
5782 if test -z "$EGREP"; then
5783 ac_path_EGREP_found=false
5784 # Loop through the user's path and test for each of PROGNAME-LIST
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5787 do
5788 IFS=$as_save_IFS
5789 case $as_dir in #(((
5790 '') as_dir=./ ;;
5791 */) ;;
5792 *) as_dir=$as_dir/ ;;
5793 esac
5794 for ac_prog in egrep
5795 do
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5798 as_fn_executable_p "$ac_path_EGREP" || continue
5799 # Check for GNU ac_path_EGREP and select it if it is found.
5800 # Check for GNU $ac_path_EGREP
5801 case `"$ac_path_EGREP" --version 2>&1` in #(
5802 *GNU*)
5803 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5804 #(
5805 *)
5806 ac_count=0
5807 printf %s 0123456789 >"conftest.in"
5808 while :
5809 do
5810 cat "conftest.in" "conftest.in" >"conftest.tmp"
5811 mv "conftest.tmp" "conftest.in"
5812 cp "conftest.in" "conftest.nl"
5813 printf "%s\n" 'EGREP' >> "conftest.nl"
5814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5816 as_fn_arith $ac_count + 1 && ac_count=$as_val
5817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5818 # Best one so far, save it but keep looking for a better one
5819 ac_cv_path_EGREP="$ac_path_EGREP"
5820 ac_path_EGREP_max=$ac_count
5821 fi
5822 # 10*(2^10) chars as input seems more than enough
5823 test $ac_count -gt 10 && break
5824 done
5825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5826 esac
5827
5828 $ac_path_EGREP_found && break 3
5829 done
5830 done
5831 done
5832 IFS=$as_save_IFS
5833 if test -z "$ac_cv_path_EGREP"; then
5834 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5835 fi
5836 else
5837 ac_cv_path_EGREP=$EGREP
5838 fi
5839
5840 fi ;;
5841 esac
5842 fi
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5844 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5845 EGREP="$ac_cv_path_EGREP"
5846
5847 EGREP_TRADITIONAL=$EGREP
5848 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5849
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5851 printf %s "checking for fgrep... " >&6; }
5852 if test ${ac_cv_path_FGREP+y}
5853 then :
5854 printf %s "(cached) " >&6
5855 else case e in #(
5856 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5857 then ac_cv_path_FGREP="$GREP -F"
5858 else
5859 if test -z "$FGREP"; then
5860 ac_path_FGREP_found=false
5861 # Loop through the user's path and test for each of PROGNAME-LIST
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5864 do
5865 IFS=$as_save_IFS
5866 case $as_dir in #(((
5867 '') as_dir=./ ;;
5868 */) ;;
5869 *) as_dir=$as_dir/ ;;
5870 esac
5871 for ac_prog in fgrep
5872 do
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5875 as_fn_executable_p "$ac_path_FGREP" || continue
5876 # Check for GNU ac_path_FGREP and select it if it is found.
5877 # Check for GNU $ac_path_FGREP
5878 case `"$ac_path_FGREP" --version 2>&1` in #(
5879 *GNU*)
5880 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5881 #(
5882 *)
5883 ac_count=0
5884 printf %s 0123456789 >"conftest.in"
5885 while :
5886 do
5887 cat "conftest.in" "conftest.in" >"conftest.tmp"
5888 mv "conftest.tmp" "conftest.in"
5889 cp "conftest.in" "conftest.nl"
5890 printf "%s\n" 'FGREP' >> "conftest.nl"
5891 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5893 as_fn_arith $ac_count + 1 && ac_count=$as_val
5894 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5895 # Best one so far, save it but keep looking for a better one
5896 ac_cv_path_FGREP="$ac_path_FGREP"
5897 ac_path_FGREP_max=$ac_count
5898 fi
5899 # 10*(2^10) chars as input seems more than enough
5900 test $ac_count -gt 10 && break
5901 done
5902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5903 esac
5904
5905 $ac_path_FGREP_found && break 3
5906 done
5907 done
5908 done
5909 IFS=$as_save_IFS
5910 if test -z "$ac_cv_path_FGREP"; then
5911 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5912 fi
5913 else
5914 ac_cv_path_FGREP=$FGREP
5915 fi
5916
5917 fi ;;
5918 esac
5919 fi
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5921 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5922 FGREP="$ac_cv_path_FGREP"
5923
5924
5925 test -z "$GREP" && GREP=grep
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945 # Check whether --with-gnu-ld was given.
5946 if test ${with_gnu_ld+y}
5947 then :
5948 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5949 else case e in #(
5950 e) with_gnu_ld=no ;;
5951 esac
5952 fi
5953
5954 ac_prog=ld
5955 if test yes = "$GCC"; then
5956 # Check if gcc -print-prog-name=ld gives a path.
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5958 printf %s "checking for ld used by $CC... " >&6; }
5959 case $host in
5960 *-*-mingw*)
5961 # gcc leaves a trailing carriage return, which upsets mingw
5962 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5963 *)
5964 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5965 esac
5966 case $ac_prog in
5967 # Accept absolute paths.
5968 [\\/]* | ?:[\\/]*)
5969 re_direlt='/[^/][^/]*/\.\./'
5970 # Canonicalize the pathname of ld
5971 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5972 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5973 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5974 done
5975 test -z "$LD" && LD=$ac_prog
5976 ;;
5977 "")
5978 # If it fails, then pretend we aren't using GCC.
5979 ac_prog=ld
5980 ;;
5981 *)
5982 # If it is relative, then search for the first ld in PATH.
5983 with_gnu_ld=unknown
5984 ;;
5985 esac
5986 elif test yes = "$with_gnu_ld"; then
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5988 printf %s "checking for GNU ld... " >&6; }
5989 else
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5991 printf %s "checking for non-GNU ld... " >&6; }
5992 fi
5993 if test ${lt_cv_path_LD+y}
5994 then :
5995 printf %s "(cached) " >&6
5996 else case e in #(
5997 e) if test -z "$LD"; then
5998 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5999 for ac_dir in $PATH; do
6000 IFS=$lt_save_ifs
6001 test -z "$ac_dir" && ac_dir=.
6002 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6003 lt_cv_path_LD=$ac_dir/$ac_prog
6004 # Check to see if the program is GNU ld. I'd rather use --version,
6005 # but apparently some variants of GNU ld only accept -v.
6006 # Break only if it was the GNU/non-GNU ld that we prefer.
6007 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6008 *GNU* | *'with BFD'*)
6009 test no != "$with_gnu_ld" && break
6010 ;;
6011 *)
6012 test yes != "$with_gnu_ld" && break
6013 ;;
6014 esac
6015 fi
6016 done
6017 IFS=$lt_save_ifs
6018 else
6019 lt_cv_path_LD=$LD # Let the user override the test with a path.
6020 fi ;;
6021 esac
6022 fi
6023
6024 LD=$lt_cv_path_LD
6025 if test -n "$LD"; then
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6027 printf "%s\n" "$LD" >&6; }
6028 else
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 printf "%s\n" "no" >&6; }
6031 fi
6032 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6034 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6035 if test ${lt_cv_prog_gnu_ld+y}
6036 then :
6037 printf %s "(cached) " >&6
6038 else case e in #(
6039 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6040 case `$LD -v 2>&1 </dev/null` in
6041 *GNU* | *'with BFD'*)
6042 lt_cv_prog_gnu_ld=yes
6043 ;;
6044 *)
6045 lt_cv_prog_gnu_ld=no
6046 ;;
6047 esac ;;
6048 esac
6049 fi
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6051 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6052 with_gnu_ld=$lt_cv_prog_gnu_ld
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6063 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6064 if test ${lt_cv_path_NM+y}
6065 then :
6066 printf %s "(cached) " >&6
6067 else case e in #(
6068 e) if test -n "$NM"; then
6069 # Let the user override the test.
6070 lt_cv_path_NM=$NM
6071 else
6072 lt_nm_to_check=${ac_tool_prefix}nm
6073 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6074 lt_nm_to_check="$lt_nm_to_check nm"
6075 fi
6076 for lt_tmp_nm in $lt_nm_to_check; do
6077 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6078 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6079 IFS=$lt_save_ifs
6080 test -z "$ac_dir" && ac_dir=.
6081 tmp_nm=$ac_dir/$lt_tmp_nm
6082 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6083 # Check to see if the nm accepts a BSD-compat flag.
6084 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6085 # nm: unknown option "B" ignored
6086 # Tru64's nm complains that /dev/null is an invalid object file
6087 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6088 case $build_os in
6089 mingw*) lt_bad_file=conftest.nm/nofile ;;
6090 *) lt_bad_file=/dev/null ;;
6091 esac
6092 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6093 *$lt_bad_file* | *'Invalid file or object type'*)
6094 lt_cv_path_NM="$tmp_nm -B"
6095 break 2
6096 ;;
6097 *)
6098 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6099 */dev/null*)
6100 lt_cv_path_NM="$tmp_nm -p"
6101 break 2
6102 ;;
6103 *)
6104 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6105 continue # so that we can try to find one that supports BSD flags
6106 ;;
6107 esac
6108 ;;
6109 esac
6110 fi
6111 done
6112 IFS=$lt_save_ifs
6113 done
6114 : ${lt_cv_path_NM=no}
6115 fi ;;
6116 esac
6117 fi
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6119 printf "%s\n" "$lt_cv_path_NM" >&6; }
6120 if test no != "$lt_cv_path_NM"; then
6121 NM=$lt_cv_path_NM
6122 else
6123 # Didn't find any BSD compatible name lister, look for dumpbin.
6124 if test -n "$DUMPBIN"; then :
6125 # Let the user override the test.
6126 else
6127 if test -n "$ac_tool_prefix"; then
6128 for ac_prog in dumpbin "link -dump"
6129 do
6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 printf %s "checking for $ac_word... " >&6; }
6134 if test ${ac_cv_prog_DUMPBIN+y}
6135 then :
6136 printf %s "(cached) " >&6
6137 else case e in #(
6138 e) if test -n "$DUMPBIN"; then
6139 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144 IFS=$as_save_IFS
6145 case $as_dir in #(((
6146 '') as_dir=./ ;;
6147 */) ;;
6148 *) as_dir=$as_dir/ ;;
6149 esac
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160 fi ;;
6161 esac
6162 fi
6163 DUMPBIN=$ac_cv_prog_DUMPBIN
6164 if test -n "$DUMPBIN"; then
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6166 printf "%s\n" "$DUMPBIN" >&6; }
6167 else
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 printf "%s\n" "no" >&6; }
6170 fi
6171
6172
6173 test -n "$DUMPBIN" && break
6174 done
6175 fi
6176 if test -z "$DUMPBIN"; then
6177 ac_ct_DUMPBIN=$DUMPBIN
6178 for ac_prog in dumpbin "link -dump"
6179 do
6180 # Extract the first word of "$ac_prog", so it can be a program name with args.
6181 set dummy $ac_prog; ac_word=$2
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 printf %s "checking for $ac_word... " >&6; }
6184 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6185 then :
6186 printf %s "(cached) " >&6
6187 else case e in #(
6188 e) if test -n "$ac_ct_DUMPBIN"; then
6189 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 case $as_dir in #(((
6196 '') as_dir=./ ;;
6197 */) ;;
6198 *) as_dir=$as_dir/ ;;
6199 esac
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi ;;
6211 esac
6212 fi
6213 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6214 if test -n "$ac_ct_DUMPBIN"; then
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6216 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6217 else
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 printf "%s\n" "no" >&6; }
6220 fi
6221
6222
6223 test -n "$ac_ct_DUMPBIN" && break
6224 done
6225
6226 if test "x$ac_ct_DUMPBIN" = x; then
6227 DUMPBIN=":"
6228 else
6229 case $cross_compiling:$ac_tool_warned in
6230 yes:)
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6232 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6233 ac_tool_warned=yes ;;
6234 esac
6235 DUMPBIN=$ac_ct_DUMPBIN
6236 fi
6237 fi
6238
6239 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6240 *COFF*)
6241 DUMPBIN="$DUMPBIN -symbols -headers"
6242 ;;
6243 *)
6244 DUMPBIN=:
6245 ;;
6246 esac
6247 fi
6248
6249 if test : != "$DUMPBIN"; then
6250 NM=$DUMPBIN
6251 fi
6252 fi
6253 test -z "$NM" && NM=nm
6254
6255
6256
6257
6258
6259
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6261 printf %s "checking the name lister ($NM) interface... " >&6; }
6262 if test ${lt_cv_nm_interface+y}
6263 then :
6264 printf %s "(cached) " >&6
6265 else case e in #(
6266 e) lt_cv_nm_interface="BSD nm"
6267 echo "int some_variable = 0;" > conftest.$ac_ext
6268 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6269 (eval "$ac_compile" 2>conftest.err)
6270 cat conftest.err >&5
6271 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6272 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6273 cat conftest.err >&5
6274 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6275 cat conftest.out >&5
6276 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6277 lt_cv_nm_interface="MS dumpbin"
6278 fi
6279 rm -f conftest* ;;
6280 esac
6281 fi
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6283 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6284
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6286 printf %s "checking whether ln -s works... " >&6; }
6287 LN_S=$as_ln_s
6288 if test "$LN_S" = "ln -s"; then
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6290 printf "%s\n" "yes" >&6; }
6291 else
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6293 printf "%s\n" "no, using $LN_S" >&6; }
6294 fi
6295
6296 # find the maximum length of command line arguments
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6298 printf %s "checking the maximum length of command line arguments... " >&6; }
6299 if test ${lt_cv_sys_max_cmd_len+y}
6300 then :
6301 printf %s "(cached) " >&6
6302 else case e in #(
6303 e) i=0
6304 teststring=ABCD
6305
6306 case $build_os in
6307 msdosdjgpp*)
6308 # On DJGPP, this test can blow up pretty badly due to problems in libc
6309 # (any single argument exceeding 2000 bytes causes a buffer overrun
6310 # during glob expansion). Even if it were fixed, the result of this
6311 # check would be larger than it should be.
6312 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6313 ;;
6314
6315 gnu*)
6316 # Under GNU Hurd, this test is not required because there is
6317 # no limit to the length of command line arguments.
6318 # Libtool will interpret -1 as no limit whatsoever
6319 lt_cv_sys_max_cmd_len=-1;
6320 ;;
6321
6322 cygwin* | mingw* | cegcc*)
6323 # On Win9x/ME, this test blows up -- it succeeds, but takes
6324 # about 5 minutes as the teststring grows exponentially.
6325 # Worse, since 9x/ME are not pre-emptively multitasking,
6326 # you end up with a "frozen" computer, even though with patience
6327 # the test eventually succeeds (with a max line length of 256k).
6328 # Instead, let's just punt: use the minimum linelength reported by
6329 # all of the supported platforms: 8192 (on NT/2K/XP).
6330 lt_cv_sys_max_cmd_len=8192;
6331 ;;
6332
6333 mint*)
6334 # On MiNT this can take a long time and run out of memory.
6335 lt_cv_sys_max_cmd_len=8192;
6336 ;;
6337
6338 amigaos*)
6339 # On AmigaOS with pdksh, this test takes hours, literally.
6340 # So we just punt and use a minimum line length of 8192.
6341 lt_cv_sys_max_cmd_len=8192;
6342 ;;
6343
6344 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6345 # This has been around since 386BSD, at least. Likely further.
6346 if test -x /sbin/sysctl; then
6347 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6348 elif test -x /usr/sbin/sysctl; then
6349 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6350 else
6351 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6352 fi
6353 # And add a safety zone
6354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6356 ;;
6357
6358 interix*)
6359 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6360 lt_cv_sys_max_cmd_len=196608
6361 ;;
6362
6363 os2*)
6364 # The test takes a long time on OS/2.
6365 lt_cv_sys_max_cmd_len=8192
6366 ;;
6367
6368 osf*)
6369 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6370 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6371 # nice to cause kernel panics so lets avoid the loop below.
6372 # First set a reasonable default.
6373 lt_cv_sys_max_cmd_len=16384
6374 #
6375 if test -x /sbin/sysconfig; then
6376 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6377 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6378 esac
6379 fi
6380 ;;
6381 sco3.2v5*)
6382 lt_cv_sys_max_cmd_len=102400
6383 ;;
6384 sysv5* | sco5v6* | sysv4.2uw2*)
6385 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6386 if test -n "$kargmax"; then
6387 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6388 else
6389 lt_cv_sys_max_cmd_len=32768
6390 fi
6391 ;;
6392 *)
6393 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6394 if test -n "$lt_cv_sys_max_cmd_len" && \
6395 test undefined != "$lt_cv_sys_max_cmd_len"; then
6396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6398 else
6399 # Make teststring a little bigger before we do anything with it.
6400 # a 1K string should be a reasonable start.
6401 for i in 1 2 3 4 5 6 7 8; do
6402 teststring=$teststring$teststring
6403 done
6404 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6405 # If test is not a shell built-in, we'll probably end up computing a
6406 # maximum length that is only half of the actual maximum length, but
6407 # we can't tell.
6408 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6409 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6410 test 17 != "$i" # 1/2 MB should be enough
6411 do
6412 i=`expr $i + 1`
6413 teststring=$teststring$teststring
6414 done
6415 # Only check the string length outside the loop.
6416 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6417 teststring=
6418 # Add a significant safety factor because C++ compilers can tack on
6419 # massive amounts of additional arguments before passing them to the
6420 # linker. It appears as though 1/2 is a usable value.
6421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6422 fi
6423 ;;
6424 esac
6425 ;;
6426 esac
6427 fi
6428
6429 if test -n "$lt_cv_sys_max_cmd_len"; then
6430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6431 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6432 else
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6434 printf "%s\n" "none" >&6; }
6435 fi
6436 max_cmd_len=$lt_cv_sys_max_cmd_len
6437
6438
6439
6440
6441
6442
6443 : ${CP="cp -f"}
6444 : ${MV="mv -f"}
6445 : ${RM="rm -f"}
6446
6447 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6448 lt_unset=unset
6449 else
6450 lt_unset=false
6451 fi
6452
6453
6454
6455
6456
6457 # test EBCDIC or ASCII
6458 case `echo X|tr X '\101'` in
6459 A) # ASCII based system
6460 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6461 lt_SP2NL='tr \040 \012'
6462 lt_NL2SP='tr \015\012 \040\040'
6463 ;;
6464 *) # EBCDIC based system
6465 lt_SP2NL='tr \100 \n'
6466 lt_NL2SP='tr \r\n \100\100'
6467 ;;
6468 esac
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6479 printf %s "checking how to convert $build file names to $host format... " >&6; }
6480 if test ${lt_cv_to_host_file_cmd+y}
6481 then :
6482 printf %s "(cached) " >&6
6483 else case e in #(
6484 e) case $host in
6485 *-*-mingw* )
6486 case $build in
6487 *-*-mingw* ) # actually msys
6488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6489 ;;
6490 *-*-cygwin* )
6491 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6492 ;;
6493 * ) # otherwise, assume *nix
6494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6495 ;;
6496 esac
6497 ;;
6498 *-*-cygwin* )
6499 case $build in
6500 *-*-mingw* ) # actually msys
6501 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6502 ;;
6503 *-*-cygwin* )
6504 lt_cv_to_host_file_cmd=func_convert_file_noop
6505 ;;
6506 * ) # otherwise, assume *nix
6507 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6508 ;;
6509 esac
6510 ;;
6511 * ) # unhandled hosts (and "normal" native builds)
6512 lt_cv_to_host_file_cmd=func_convert_file_noop
6513 ;;
6514 esac
6515 ;;
6516 esac
6517 fi
6518
6519 to_host_file_cmd=$lt_cv_to_host_file_cmd
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6521 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6522
6523
6524
6525
6526
6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6528 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6529 if test ${lt_cv_to_tool_file_cmd+y}
6530 then :
6531 printf %s "(cached) " >&6
6532 else case e in #(
6533 e) #assume ordinary cross tools, or native build.
6534 lt_cv_to_tool_file_cmd=func_convert_file_noop
6535 case $host in
6536 *-*-mingw* )
6537 case $build in
6538 *-*-mingw* ) # actually msys
6539 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6540 ;;
6541 esac
6542 ;;
6543 esac
6544 ;;
6545 esac
6546 fi
6547
6548 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6550 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6551
6552
6553
6554
6555
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6557 printf %s "checking for $LD option to reload object files... " >&6; }
6558 if test ${lt_cv_ld_reload_flag+y}
6559 then :
6560 printf %s "(cached) " >&6
6561 else case e in #(
6562 e) lt_cv_ld_reload_flag='-r' ;;
6563 esac
6564 fi
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6566 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6567 reload_flag=$lt_cv_ld_reload_flag
6568 case $reload_flag in
6569 "" | " "*) ;;
6570 *) reload_flag=" $reload_flag" ;;
6571 esac
6572 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6573 case $host_os in
6574 cygwin* | mingw* | pw32* | cegcc*)
6575 if test yes != "$GCC"; then
6576 reload_cmds=false
6577 fi
6578 ;;
6579 darwin*)
6580 if test yes = "$GCC"; then
6581 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6582 else
6583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6584 fi
6585 ;;
6586 esac
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596 if test -n "$ac_tool_prefix"; then
6597 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}file; ac_word=$2
6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 printf %s "checking for $ac_word... " >&6; }
6601 if test ${ac_cv_prog_FILECMD+y}
6602 then :
6603 printf %s "(cached) " >&6
6604 else case e in #(
6605 e) if test -n "$FILECMD"; then
6606 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611 IFS=$as_save_IFS
6612 case $as_dir in #(((
6613 '') as_dir=./ ;;
6614 */) ;;
6615 *) as_dir=$as_dir/ ;;
6616 esac
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6619 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627 fi ;;
6628 esac
6629 fi
6630 FILECMD=$ac_cv_prog_FILECMD
6631 if test -n "$FILECMD"; then
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6633 printf "%s\n" "$FILECMD" >&6; }
6634 else
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 printf "%s\n" "no" >&6; }
6637 fi
6638
6639
6640 fi
6641 if test -z "$ac_cv_prog_FILECMD"; then
6642 ac_ct_FILECMD=$FILECMD
6643 # Extract the first word of "file", so it can be a program name with args.
6644 set dummy file; ac_word=$2
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 printf %s "checking for $ac_word... " >&6; }
6647 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6648 then :
6649 printf %s "(cached) " >&6
6650 else case e in #(
6651 e) if test -n "$ac_ct_FILECMD"; then
6652 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657 IFS=$as_save_IFS
6658 case $as_dir in #(((
6659 '') as_dir=./ ;;
6660 */) ;;
6661 *) as_dir=$as_dir/ ;;
6662 esac
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_FILECMD="file"
6666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi ;;
6674 esac
6675 fi
6676 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6677 if test -n "$ac_ct_FILECMD"; then
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6679 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6680 else
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 printf "%s\n" "no" >&6; }
6683 fi
6684
6685 if test "x$ac_ct_FILECMD" = x; then
6686 FILECMD=":"
6687 else
6688 case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694 FILECMD=$ac_ct_FILECMD
6695 fi
6696 else
6697 FILECMD="$ac_cv_prog_FILECMD"
6698 fi
6699
6700
6701
6702
6703
6704
6705
6706 if test -n "$ac_tool_prefix"; then
6707 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 printf %s "checking for $ac_word... " >&6; }
6711 if test ${ac_cv_prog_OBJDUMP+y}
6712 then :
6713 printf %s "(cached) " >&6
6714 else case e in #(
6715 e) if test -n "$OBJDUMP"; then
6716 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 case $as_dir in #(((
6723 '') as_dir=./ ;;
6724 */) ;;
6725 *) as_dir=$as_dir/ ;;
6726 esac
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi ;;
6738 esac
6739 fi
6740 OBJDUMP=$ac_cv_prog_OBJDUMP
6741 if test -n "$OBJDUMP"; then
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6743 printf "%s\n" "$OBJDUMP" >&6; }
6744 else
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 printf "%s\n" "no" >&6; }
6747 fi
6748
6749
6750 fi
6751 if test -z "$ac_cv_prog_OBJDUMP"; then
6752 ac_ct_OBJDUMP=$OBJDUMP
6753 # Extract the first word of "objdump", so it can be a program name with args.
6754 set dummy objdump; ac_word=$2
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 printf %s "checking for $ac_word... " >&6; }
6757 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6758 then :
6759 printf %s "(cached) " >&6
6760 else case e in #(
6761 e) if test -n "$ac_ct_OBJDUMP"; then
6762 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 case $as_dir in #(((
6769 '') as_dir=./ ;;
6770 */) ;;
6771 *) as_dir=$as_dir/ ;;
6772 esac
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi ;;
6784 esac
6785 fi
6786 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6787 if test -n "$ac_ct_OBJDUMP"; then
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6789 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6790 else
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 printf "%s\n" "no" >&6; }
6793 fi
6794
6795 if test "x$ac_ct_OBJDUMP" = x; then
6796 OBJDUMP="false"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802 ac_tool_warned=yes ;;
6803 esac
6804 OBJDUMP=$ac_ct_OBJDUMP
6805 fi
6806 else
6807 OBJDUMP="$ac_cv_prog_OBJDUMP"
6808 fi
6809
6810 test -z "$OBJDUMP" && OBJDUMP=objdump
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6821 printf %s "checking how to recognize dependent libraries... " >&6; }
6822 if test ${lt_cv_deplibs_check_method+y}
6823 then :
6824 printf %s "(cached) " >&6
6825 else case e in #(
6826 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6827 lt_cv_file_magic_test_file=
6828 lt_cv_deplibs_check_method='unknown'
6829 # Need to set the preceding variable on all platforms that support
6830 # interlibrary dependencies.
6831 # 'none' -- dependencies not supported.
6832 # 'unknown' -- same as none, but documents that we really don't know.
6833 # 'pass_all' -- all dependencies passed with no checks.
6834 # 'test_compile' -- check by making test program.
6835 # 'file_magic [[regex]]' -- check by looking for files in library path
6836 # that responds to the $file_magic_cmd with a given extended regex.
6837 # If you have 'file' or equivalent on your system and you're not sure
6838 # whether 'pass_all' will *always* work, you probably want this one.
6839
6840 case $host_os in
6841 aix[4-9]*)
6842 lt_cv_deplibs_check_method=pass_all
6843 ;;
6844
6845 beos*)
6846 lt_cv_deplibs_check_method=pass_all
6847 ;;
6848
6849 bsdi[45]*)
6850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6851 lt_cv_file_magic_cmd='$FILECMD -L'
6852 lt_cv_file_magic_test_file=/shlib/libc.so
6853 ;;
6854
6855 cygwin*)
6856 # func_win32_libid is a shell function defined in ltmain.sh
6857 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6858 lt_cv_file_magic_cmd='func_win32_libid'
6859 ;;
6860
6861 mingw* | pw32*)
6862 # Base MSYS/MinGW do not provide the 'file' command needed by
6863 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6864 # unless we find 'file', for example because we are cross-compiling.
6865 if ( file / ) >/dev/null 2>&1; then
6866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6867 lt_cv_file_magic_cmd='func_win32_libid'
6868 else
6869 # Keep this pattern in sync with the one in func_win32_libid.
6870 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6871 lt_cv_file_magic_cmd='$OBJDUMP -f'
6872 fi
6873 ;;
6874
6875 cegcc*)
6876 # use the weaker test based on 'objdump'. See mingw*.
6877 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6878 lt_cv_file_magic_cmd='$OBJDUMP -f'
6879 ;;
6880
6881 darwin* | rhapsody*)
6882 lt_cv_deplibs_check_method=pass_all
6883 ;;
6884
6885 freebsd* | dragonfly* | midnightbsd*)
6886 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6887 case $host_cpu in
6888 i*86 )
6889 # Not sure whether the presence of OpenBSD here was a mistake.
6890 # Let's accept both of them until this is cleared up.
6891 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6892 lt_cv_file_magic_cmd=$FILECMD
6893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6894 ;;
6895 esac
6896 else
6897 lt_cv_deplibs_check_method=pass_all
6898 fi
6899 ;;
6900
6901 haiku*)
6902 lt_cv_deplibs_check_method=pass_all
6903 ;;
6904
6905 hpux10.20* | hpux11*)
6906 lt_cv_file_magic_cmd=$FILECMD
6907 case $host_cpu in
6908 ia64*)
6909 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6910 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6911 ;;
6912 hppa*64*)
6913 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]'
6914 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6915 ;;
6916 *)
6917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6918 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6919 ;;
6920 esac
6921 ;;
6922
6923 interix[3-9]*)
6924 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6926 ;;
6927
6928 irix5* | irix6* | nonstopux*)
6929 case $LD in
6930 *-32|*"-32 ") libmagic=32-bit;;
6931 *-n32|*"-n32 ") libmagic=N32;;
6932 *-64|*"-64 ") libmagic=64-bit;;
6933 *) libmagic=never-match;;
6934 esac
6935 lt_cv_deplibs_check_method=pass_all
6936 ;;
6937
6938 # This must be glibc/ELF.
6939 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6940 lt_cv_deplibs_check_method=pass_all
6941 ;;
6942
6943 netbsd*)
6944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6946 else
6947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6948 fi
6949 ;;
6950
6951 newos6*)
6952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6953 lt_cv_file_magic_cmd=$FILECMD
6954 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6955 ;;
6956
6957 *nto* | *qnx*)
6958 lt_cv_deplibs_check_method=pass_all
6959 ;;
6960
6961 openbsd* | bitrig*)
6962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6964 else
6965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6966 fi
6967 ;;
6968
6969 osf3* | osf4* | osf5*)
6970 lt_cv_deplibs_check_method=pass_all
6971 ;;
6972
6973 rdos*)
6974 lt_cv_deplibs_check_method=pass_all
6975 ;;
6976
6977 solaris*)
6978 lt_cv_deplibs_check_method=pass_all
6979 ;;
6980
6981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6982 lt_cv_deplibs_check_method=pass_all
6983 ;;
6984
6985 sysv4 | sysv4.3*)
6986 case $host_vendor in
6987 motorola)
6988 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]'
6989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6990 ;;
6991 ncr)
6992 lt_cv_deplibs_check_method=pass_all
6993 ;;
6994 sequent)
6995 lt_cv_file_magic_cmd='/bin/file'
6996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6997 ;;
6998 sni)
6999 lt_cv_file_magic_cmd='/bin/file'
7000 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7001 lt_cv_file_magic_test_file=/lib/libc.so
7002 ;;
7003 siemens)
7004 lt_cv_deplibs_check_method=pass_all
7005 ;;
7006 pc)
7007 lt_cv_deplibs_check_method=pass_all
7008 ;;
7009 esac
7010 ;;
7011
7012 tpf*)
7013 lt_cv_deplibs_check_method=pass_all
7014 ;;
7015 os2*)
7016 lt_cv_deplibs_check_method=pass_all
7017 ;;
7018 esac
7019 ;;
7020 esac
7021 fi
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7023 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7024
7025 file_magic_glob=
7026 want_nocaseglob=no
7027 if test "$build" = "$host"; then
7028 case $host_os in
7029 mingw* | pw32*)
7030 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7031 want_nocaseglob=yes
7032 else
7033 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7034 fi
7035 ;;
7036 esac
7037 fi
7038
7039 file_magic_cmd=$lt_cv_file_magic_cmd
7040 deplibs_check_method=$lt_cv_deplibs_check_method
7041 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 printf %s "checking for $ac_word... " >&6; }
7069 if test ${ac_cv_prog_DLLTOOL+y}
7070 then :
7071 printf %s "(cached) " >&6
7072 else case e in #(
7073 e) if test -n "$DLLTOOL"; then
7074 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079 IFS=$as_save_IFS
7080 case $as_dir in #(((
7081 '') as_dir=./ ;;
7082 */) ;;
7083 *) as_dir=$as_dir/ ;;
7084 esac
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095 fi ;;
7096 esac
7097 fi
7098 DLLTOOL=$ac_cv_prog_DLLTOOL
7099 if test -n "$DLLTOOL"; then
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7101 printf "%s\n" "$DLLTOOL" >&6; }
7102 else
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 printf "%s\n" "no" >&6; }
7105 fi
7106
7107
7108 fi
7109 if test -z "$ac_cv_prog_DLLTOOL"; then
7110 ac_ct_DLLTOOL=$DLLTOOL
7111 # Extract the first word of "dlltool", so it can be a program name with args.
7112 set dummy dlltool; ac_word=$2
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 printf %s "checking for $ac_word... " >&6; }
7115 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7116 then :
7117 printf %s "(cached) " >&6
7118 else case e in #(
7119 e) if test -n "$ac_ct_DLLTOOL"; then
7120 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125 IFS=$as_save_IFS
7126 case $as_dir in #(((
7127 '') as_dir=./ ;;
7128 */) ;;
7129 *) as_dir=$as_dir/ ;;
7130 esac
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi ;;
7142 esac
7143 fi
7144 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7145 if test -n "$ac_ct_DLLTOOL"; then
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7147 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7148 else
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 printf "%s\n" "no" >&6; }
7151 fi
7152
7153 if test "x$ac_ct_DLLTOOL" = x; then
7154 DLLTOOL="false"
7155 else
7156 case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160 ac_tool_warned=yes ;;
7161 esac
7162 DLLTOOL=$ac_ct_DLLTOOL
7163 fi
7164 else
7165 DLLTOOL="$ac_cv_prog_DLLTOOL"
7166 fi
7167
7168 test -z "$DLLTOOL" && DLLTOOL=dlltool
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7180 printf %s "checking how to associate runtime and link libraries... " >&6; }
7181 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7182 then :
7183 printf %s "(cached) " >&6
7184 else case e in #(
7185 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7186
7187 case $host_os in
7188 cygwin* | mingw* | pw32* | cegcc*)
7189 # two different shell functions defined in ltmain.sh;
7190 # decide which one to use based on capabilities of $DLLTOOL
7191 case `$DLLTOOL --help 2>&1` in
7192 *--identify-strict*)
7193 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7194 ;;
7195 *)
7196 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7197 ;;
7198 esac
7199 ;;
7200 *)
7201 # fallback: assume linklib IS sharedlib
7202 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7203 ;;
7204 esac
7205 ;;
7206 esac
7207 fi
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7209 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7210 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7211 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7212
7213
7214
7215
7216
7217
7218
7219 if test -n "$ac_tool_prefix"; then
7220 for ac_prog in ar
7221 do
7222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 printf %s "checking for $ac_word... " >&6; }
7226 if test ${ac_cv_prog_AR+y}
7227 then :
7228 printf %s "(cached) " >&6
7229 else case e in #(
7230 e) if test -n "$AR"; then
7231 ac_cv_prog_AR="$AR" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236 IFS=$as_save_IFS
7237 case $as_dir in #(((
7238 '') as_dir=./ ;;
7239 */) ;;
7240 *) as_dir=$as_dir/ ;;
7241 esac
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7246 break 2
7247 fi
7248 done
7249 done
7250 IFS=$as_save_IFS
7251
7252 fi ;;
7253 esac
7254 fi
7255 AR=$ac_cv_prog_AR
7256 if test -n "$AR"; then
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7258 printf "%s\n" "$AR" >&6; }
7259 else
7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 printf "%s\n" "no" >&6; }
7262 fi
7263
7264
7265 test -n "$AR" && break
7266 done
7267 fi
7268 if test -z "$AR"; then
7269 ac_ct_AR=$AR
7270 for ac_prog in ar
7271 do
7272 # Extract the first word of "$ac_prog", so it can be a program name with args.
7273 set dummy $ac_prog; ac_word=$2
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 printf %s "checking for $ac_word... " >&6; }
7276 if test ${ac_cv_prog_ac_ct_AR+y}
7277 then :
7278 printf %s "(cached) " >&6
7279 else case e in #(
7280 e) if test -n "$ac_ct_AR"; then
7281 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286 IFS=$as_save_IFS
7287 case $as_dir in #(((
7288 '') as_dir=./ ;;
7289 */) ;;
7290 *) as_dir=$as_dir/ ;;
7291 esac
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_ac_ct_AR="$ac_prog"
7295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7296 break 2
7297 fi
7298 done
7299 done
7300 IFS=$as_save_IFS
7301
7302 fi ;;
7303 esac
7304 fi
7305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7306 if test -n "$ac_ct_AR"; then
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7308 printf "%s\n" "$ac_ct_AR" >&6; }
7309 else
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 printf "%s\n" "no" >&6; }
7312 fi
7313
7314
7315 test -n "$ac_ct_AR" && break
7316 done
7317
7318 if test "x$ac_ct_AR" = x; then
7319 AR="false"
7320 else
7321 case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327 AR=$ac_ct_AR
7328 fi
7329 fi
7330
7331 : ${AR=ar}
7332
7333
7334
7335
7336
7337
7338 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7339 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7340 # higher priority because thats what people were doing historically (setting
7341 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7342 # variable obsoleted/removed.
7343
7344 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7345 lt_ar_flags=$AR_FLAGS
7346
7347
7348
7349
7350
7351
7352 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7353 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7354
7355
7356
7357
7358
7359
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7361 printf %s "checking for archiver @FILE support... " >&6; }
7362 if test ${lt_cv_ar_at_file+y}
7363 then :
7364 printf %s "(cached) " >&6
7365 else case e in #(
7366 e) lt_cv_ar_at_file=no
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369
7370 int
7371 main (void)
7372 {
7373
7374 ;
7375 return 0;
7376 }
7377 _ACEOF
7378 if ac_fn_c_try_compile "$LINENO"
7379 then :
7380 echo conftest.$ac_objext > conftest.lst
7381 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7383 (eval $lt_ar_try) 2>&5
7384 ac_status=$?
7385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386 test $ac_status = 0; }
7387 if test 0 -eq "$ac_status"; then
7388 # Ensure the archiver fails upon bogus file names.
7389 rm -f conftest.$ac_objext libconftest.a
7390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7391 (eval $lt_ar_try) 2>&5
7392 ac_status=$?
7393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; }
7395 if test 0 -ne "$ac_status"; then
7396 lt_cv_ar_at_file=@
7397 fi
7398 fi
7399 rm -f conftest.* libconftest.a
7400
7401 fi
7402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7403 ;;
7404 esac
7405 fi
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7407 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7408
7409 if test no = "$lt_cv_ar_at_file"; then
7410 archiver_list_spec=
7411 else
7412 archiver_list_spec=$lt_cv_ar_at_file
7413 fi
7414
7415
7416
7417
7418
7419
7420
7421 if test -n "$ac_tool_prefix"; then
7422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7423 set dummy ${ac_tool_prefix}strip; ac_word=$2
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 printf %s "checking for $ac_word... " >&6; }
7426 if test ${ac_cv_prog_STRIP+y}
7427 then :
7428 printf %s "(cached) " >&6
7429 else case e in #(
7430 e) if test -n "$STRIP"; then
7431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436 IFS=$as_save_IFS
7437 case $as_dir in #(((
7438 '') as_dir=./ ;;
7439 */) ;;
7440 *) as_dir=$as_dir/ ;;
7441 esac
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448 done
7449 done
7450 IFS=$as_save_IFS
7451
7452 fi ;;
7453 esac
7454 fi
7455 STRIP=$ac_cv_prog_STRIP
7456 if test -n "$STRIP"; then
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7458 printf "%s\n" "$STRIP" >&6; }
7459 else
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 printf "%s\n" "no" >&6; }
7462 fi
7463
7464
7465 fi
7466 if test -z "$ac_cv_prog_STRIP"; then
7467 ac_ct_STRIP=$STRIP
7468 # Extract the first word of "strip", so it can be a program name with args.
7469 set dummy strip; ac_word=$2
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 printf %s "checking for $ac_word... " >&6; }
7472 if test ${ac_cv_prog_ac_ct_STRIP+y}
7473 then :
7474 printf %s "(cached) " >&6
7475 else case e in #(
7476 e) if test -n "$ac_ct_STRIP"; then
7477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 case $as_dir in #(((
7484 '') as_dir=./ ;;
7485 */) ;;
7486 *) as_dir=$as_dir/ ;;
7487 esac
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7490 ac_cv_prog_ac_ct_STRIP="strip"
7491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7492 break 2
7493 fi
7494 done
7495 done
7496 IFS=$as_save_IFS
7497
7498 fi ;;
7499 esac
7500 fi
7501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7502 if test -n "$ac_ct_STRIP"; then
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7504 printf "%s\n" "$ac_ct_STRIP" >&6; }
7505 else
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 printf "%s\n" "no" >&6; }
7508 fi
7509
7510 if test "x$ac_ct_STRIP" = x; then
7511 STRIP=":"
7512 else
7513 case $cross_compiling:$ac_tool_warned in
7514 yes:)
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517 ac_tool_warned=yes ;;
7518 esac
7519 STRIP=$ac_ct_STRIP
7520 fi
7521 else
7522 STRIP="$ac_cv_prog_STRIP"
7523 fi
7524
7525 test -z "$STRIP" && STRIP=:
7526
7527
7528
7529
7530
7531
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 printf %s "checking for $ac_word... " >&6; }
7537 if test ${ac_cv_prog_RANLIB+y}
7538 then :
7539 printf %s "(cached) " >&6
7540 else case e in #(
7541 e) if test -n "$RANLIB"; then
7542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547 IFS=$as_save_IFS
7548 case $as_dir in #(((
7549 '') as_dir=./ ;;
7550 */) ;;
7551 *) as_dir=$as_dir/ ;;
7552 esac
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563 fi ;;
7564 esac
7565 fi
7566 RANLIB=$ac_cv_prog_RANLIB
7567 if test -n "$RANLIB"; then
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7569 printf "%s\n" "$RANLIB" >&6; }
7570 else
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 printf "%s\n" "no" >&6; }
7573 fi
7574
7575
7576 fi
7577 if test -z "$ac_cv_prog_RANLIB"; then
7578 ac_ct_RANLIB=$RANLIB
7579 # Extract the first word of "ranlib", so it can be a program name with args.
7580 set dummy ranlib; ac_word=$2
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 printf %s "checking for $ac_word... " >&6; }
7583 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7584 then :
7585 printf %s "(cached) " >&6
7586 else case e in #(
7587 e) if test -n "$ac_ct_RANLIB"; then
7588 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593 IFS=$as_save_IFS
7594 case $as_dir in #(((
7595 '') as_dir=./ ;;
7596 */) ;;
7597 *) as_dir=$as_dir/ ;;
7598 esac
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_RANLIB="ranlib"
7602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609 fi ;;
7610 esac
7611 fi
7612 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7613 if test -n "$ac_ct_RANLIB"; then
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7615 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7616 else
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 printf "%s\n" "no" >&6; }
7619 fi
7620
7621 if test "x$ac_ct_RANLIB" = x; then
7622 RANLIB=":"
7623 else
7624 case $cross_compiling:$ac_tool_warned in
7625 yes:)
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7629 esac
7630 RANLIB=$ac_ct_RANLIB
7631 fi
7632 else
7633 RANLIB="$ac_cv_prog_RANLIB"
7634 fi
7635
7636 test -z "$RANLIB" && RANLIB=:
7637
7638
7639
7640
7641
7642
7643 # Determine commands to create old-style static archives.
7644 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7645 old_postinstall_cmds='chmod 644 $oldlib'
7646 old_postuninstall_cmds=
7647
7648 if test -n "$RANLIB"; then
7649 case $host_os in
7650 bitrig* | openbsd*)
7651 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7652 ;;
7653 *)
7654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7655 ;;
7656 esac
7657 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7658 fi
7659
7660 case $host_os in
7661 darwin*)
7662 lock_old_archive_extraction=yes ;;
7663 *)
7664 lock_old_archive_extraction=no ;;
7665 esac
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705 # If no C compiler was specified, use CC.
7706 LTCC=${LTCC-"$CC"}
7707
7708 # If no C compiler flags were specified, use CFLAGS.
7709 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7710
7711 # Allow CC to be a program name with arguments.
7712 compiler=$CC
7713
7714
7715 # Check for command to grab the raw symbol name followed by C symbol from nm.
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7717 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7718 if test ${lt_cv_sys_global_symbol_pipe+y}
7719 then :
7720 printf %s "(cached) " >&6
7721 else case e in #(
7722 e)
7723 # These are sane defaults that work on at least a few old systems.
7724 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7725
7726 # Character class describing NM global symbol codes.
7727 symcode='[BCDEGRST]'
7728
7729 # Regexp to match symbols that can be accessed directly from C.
7730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7731
7732 # Define system-specific variables.
7733 case $host_os in
7734 aix*)
7735 symcode='[BCDT]'
7736 ;;
7737 cygwin* | mingw* | pw32* | cegcc*)
7738 symcode='[ABCDGISTW]'
7739 ;;
7740 hpux*)
7741 if test ia64 = "$host_cpu"; then
7742 symcode='[ABCDEGRST]'
7743 fi
7744 ;;
7745 irix* | nonstopux*)
7746 symcode='[BCDEGRST]'
7747 ;;
7748 osf*)
7749 symcode='[BCDEGQRST]'
7750 ;;
7751 solaris*)
7752 symcode='[BDRT]'
7753 ;;
7754 sco3.2v5*)
7755 symcode='[DT]'
7756 ;;
7757 sysv4.2uw2*)
7758 symcode='[DT]'
7759 ;;
7760 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7761 symcode='[ABDT]'
7762 ;;
7763 sysv4)
7764 symcode='[DFNSTU]'
7765 ;;
7766 esac
7767
7768 # If we're using GNU nm, then use its standard symbol codes.
7769 case `$NM -V 2>&1` in
7770 *GNU* | *'with BFD'*)
7771 symcode='[ABCDGIRSTW]' ;;
7772 esac
7773
7774 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7775 # Gets list of data symbols to import.
7776 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7777 # Adjust the below global symbol transforms to fixup imported variables.
7778 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7779 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7780 lt_c_name_lib_hook="\
7781 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7782 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7783 else
7784 # Disable hooks by default.
7785 lt_cv_sys_global_symbol_to_import=
7786 lt_cdecl_hook=
7787 lt_c_name_hook=
7788 lt_c_name_lib_hook=
7789 fi
7790
7791 # Transform an extracted symbol line into a proper C declaration.
7792 # Some systems (esp. on ia64) link data and code symbols differently,
7793 # so use this general approach.
7794 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7795 $lt_cdecl_hook\
7796 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7797 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7798
7799 # Transform an extracted symbol line into symbol name and symbol address
7800 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7801 $lt_c_name_hook\
7802 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7803 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7804
7805 # Transform an extracted symbol line into symbol name with lib prefix and
7806 # symbol address.
7807 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7808 $lt_c_name_lib_hook\
7809 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7810 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7811 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7812
7813 # Handle CRLF in mingw tool chain
7814 opt_cr=
7815 case $build_os in
7816 mingw*)
7817 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7818 ;;
7819 esac
7820
7821 # Try without a prefix underscore, then with it.
7822 for ac_symprfx in "" "_"; do
7823
7824 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7825 symxfrm="\\1 $ac_symprfx\\2 \\2"
7826
7827 # Write the raw and C identifiers.
7828 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7829 # Fake it for dumpbin and say T for any non-static function,
7830 # D for any global variable and I for any imported variable.
7831 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7832 # which start with @ or ?.
7833 lt_cv_sys_global_symbol_pipe="$AWK '"\
7834 " {last_section=section; section=\$ 3};"\
7835 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7836 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7837 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7838 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7839 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7840 " \$ 0!~/External *\|/{next};"\
7841 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7842 " {if(hide[section]) next};"\
7843 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7844 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7845 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7846 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7847 " ' prfx=^$ac_symprfx"
7848 else
7849 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7850 fi
7851 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7852
7853 # Check to see that the pipe works correctly.
7854 pipe_works=no
7855
7856 rm -f conftest*
7857 cat > conftest.$ac_ext <<_LT_EOF
7858 #ifdef __cplusplus
7859 extern "C" {
7860 #endif
7861 char nm_test_var;
7862 void nm_test_func(void);
7863 void nm_test_func(void){}
7864 #ifdef __cplusplus
7865 }
7866 #endif
7867 int main(){nm_test_var='a';nm_test_func();return(0);}
7868 _LT_EOF
7869
7870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7871 (eval $ac_compile) 2>&5
7872 ac_status=$?
7873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874 test $ac_status = 0; }; then
7875 # Now try to grab the symbols.
7876 nlist=conftest.nm
7877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7878 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7879 ac_status=$?
7880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7881 test $ac_status = 0; } && test -s "$nlist"; then
7882 # Try sorting and uniquifying the output.
7883 if sort "$nlist" | uniq > "$nlist"T; then
7884 mv -f "$nlist"T "$nlist"
7885 else
7886 rm -f "$nlist"T
7887 fi
7888
7889 # Make sure that we snagged all the symbols we need.
7890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7892 cat <<_LT_EOF > conftest.$ac_ext
7893 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7894 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7895 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7896 relocations are performed -- see ld's documentation on pseudo-relocs. */
7897 # define LT_DLSYM_CONST
7898 #elif defined __osf__
7899 /* This system does not cope well with relocations in const data. */
7900 # define LT_DLSYM_CONST
7901 #else
7902 # define LT_DLSYM_CONST const
7903 #endif
7904
7905 #ifdef __cplusplus
7906 extern "C" {
7907 #endif
7908
7909 _LT_EOF
7910 # Now generate the symbol file.
7911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7912
7913 cat <<_LT_EOF >> conftest.$ac_ext
7914
7915 /* The mapping between symbol names and symbols. */
7916 LT_DLSYM_CONST struct {
7917 const char *name;
7918 void *address;
7919 }
7920 lt__PROGRAM__LTX_preloaded_symbols[] =
7921 {
7922 { "@PROGRAM@", (void *) 0 },
7923 _LT_EOF
7924 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7925 cat <<\_LT_EOF >> conftest.$ac_ext
7926 {0, (void *) 0}
7927 };
7928
7929 /* This works around a problem in FreeBSD linker */
7930 #ifdef FREEBSD_WORKAROUND
7931 static const void *lt_preloaded_setup() {
7932 return lt__PROGRAM__LTX_preloaded_symbols;
7933 }
7934 #endif
7935
7936 #ifdef __cplusplus
7937 }
7938 #endif
7939 _LT_EOF
7940 # Now try linking the two files.
7941 mv conftest.$ac_objext conftstm.$ac_objext
7942 lt_globsym_save_LIBS=$LIBS
7943 lt_globsym_save_CFLAGS=$CFLAGS
7944 LIBS=conftstm.$ac_objext
7945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7947 (eval $ac_link) 2>&5
7948 ac_status=$?
7949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7950 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7951 pipe_works=yes
7952 fi
7953 LIBS=$lt_globsym_save_LIBS
7954 CFLAGS=$lt_globsym_save_CFLAGS
7955 else
7956 echo "cannot find nm_test_func in $nlist" >&5
7957 fi
7958 else
7959 echo "cannot find nm_test_var in $nlist" >&5
7960 fi
7961 else
7962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7963 fi
7964 else
7965 echo "$progname: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 fi
7968 rm -rf conftest* conftst*
7969
7970 # Do not use the global_symbol_pipe unless it works.
7971 if test yes = "$pipe_works"; then
7972 break
7973 else
7974 lt_cv_sys_global_symbol_pipe=
7975 fi
7976 done
7977 ;;
7978 esac
7979 fi
7980
7981 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7982 lt_cv_sys_global_symbol_to_cdecl=
7983 fi
7984 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7986 printf "%s\n" "failed" >&6; }
7987 else
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7989 printf "%s\n" "ok" >&6; }
7990 fi
7991
7992 # Response file support.
7993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7994 nm_file_list_spec='@'
7995 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7996 nm_file_list_spec='@'
7997 fi
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8036 printf %s "checking for sysroot... " >&6; }
8037
8038 # Check whether --with-sysroot was given.
8039 if test ${with_sysroot+y}
8040 then :
8041 withval=$with_sysroot;
8042 else case e in #(
8043 e) with_sysroot=no ;;
8044 esac
8045 fi
8046
8047
8048 lt_sysroot=
8049 case $with_sysroot in #(
8050 yes)
8051 if test yes = "$GCC"; then
8052 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8053 fi
8054 ;; #(
8055 /*)
8056 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8057 ;; #(
8058 no|'')
8059 ;; #(
8060 *)
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8062 printf "%s\n" "$with_sysroot" >&6; }
8063 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8064 ;;
8065 esac
8066
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8068 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8069
8070
8071
8072
8073
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8075 printf %s "checking for a working dd... " >&6; }
8076 if test ${ac_cv_path_lt_DD+y}
8077 then :
8078 printf %s "(cached) " >&6
8079 else case e in #(
8080 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8081 cat conftest.i conftest.i >conftest2.i
8082 : ${lt_DD:=$DD}
8083 if test -z "$lt_DD"; then
8084 ac_path_lt_DD_found=false
8085 # Loop through the user's path and test for each of PROGNAME-LIST
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8088 do
8089 IFS=$as_save_IFS
8090 case $as_dir in #(((
8091 '') as_dir=./ ;;
8092 */) ;;
8093 *) as_dir=$as_dir/ ;;
8094 esac
8095 for ac_prog in dd
8096 do
8097 for ac_exec_ext in '' $ac_executable_extensions; do
8098 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8099 as_fn_executable_p "$ac_path_lt_DD" || continue
8100 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8101 cmp -s conftest.i conftest.out \
8102 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8103 fi
8104 $ac_path_lt_DD_found && break 3
8105 done
8106 done
8107 done
8108 IFS=$as_save_IFS
8109 if test -z "$ac_cv_path_lt_DD"; then
8110 :
8111 fi
8112 else
8113 ac_cv_path_lt_DD=$lt_DD
8114 fi
8115
8116 rm -f conftest.i conftest2.i conftest.out ;;
8117 esac
8118 fi
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8120 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8121
8122
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8124 printf %s "checking how to truncate binary pipes... " >&6; }
8125 if test ${lt_cv_truncate_bin+y}
8126 then :
8127 printf %s "(cached) " >&6
8128 else case e in #(
8129 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8130 cat conftest.i conftest.i >conftest2.i
8131 lt_cv_truncate_bin=
8132 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8133 cmp -s conftest.i conftest.out \
8134 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8135 fi
8136 rm -f conftest.i conftest2.i conftest.out
8137 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8138 esac
8139 fi
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8141 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8142
8143
8144
8145
8146
8147
8148
8149 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8150 func_cc_basename ()
8151 {
8152 for cc_temp in $*""; do
8153 case $cc_temp in
8154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8156 \-*) ;;
8157 *) break;;
8158 esac
8159 done
8160 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8161 }
8162
8163 # Check whether --enable-libtool-lock was given.
8164 if test ${enable_libtool_lock+y}
8165 then :
8166 enableval=$enable_libtool_lock;
8167 fi
8168
8169 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8170
8171 # Some flags need to be propagated to the compiler or linker for good
8172 # libtool support.
8173 case $host in
8174 ia64-*-hpux*)
8175 # Find out what ABI is being produced by ac_compile, and set mode
8176 # options accordingly.
8177 echo 'int i;' > conftest.$ac_ext
8178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8179 (eval $ac_compile) 2>&5
8180 ac_status=$?
8181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8182 test $ac_status = 0; }; then
8183 case `$FILECMD conftest.$ac_objext` in
8184 *ELF-32*)
8185 HPUX_IA64_MODE=32
8186 ;;
8187 *ELF-64*)
8188 HPUX_IA64_MODE=64
8189 ;;
8190 esac
8191 fi
8192 rm -rf conftest*
8193 ;;
8194 *-*-irix6*)
8195 # Find out what ABI is being produced by ac_compile, and set linker
8196 # options accordingly.
8197 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8199 (eval $ac_compile) 2>&5
8200 ac_status=$?
8201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8202 test $ac_status = 0; }; then
8203 if test yes = "$lt_cv_prog_gnu_ld"; then
8204 case `$FILECMD conftest.$ac_objext` in
8205 *32-bit*)
8206 LD="${LD-ld} -melf32bsmip"
8207 ;;
8208 *N32*)
8209 LD="${LD-ld} -melf32bmipn32"
8210 ;;
8211 *64-bit*)
8212 LD="${LD-ld} -melf64bmip"
8213 ;;
8214 esac
8215 else
8216 case `$FILECMD conftest.$ac_objext` in
8217 *32-bit*)
8218 LD="${LD-ld} -32"
8219 ;;
8220 *N32*)
8221 LD="${LD-ld} -n32"
8222 ;;
8223 *64-bit*)
8224 LD="${LD-ld} -64"
8225 ;;
8226 esac
8227 fi
8228 fi
8229 rm -rf conftest*
8230 ;;
8231
8232 mips64*-*linux*)
8233 # Find out what ABI is being produced by ac_compile, and set linker
8234 # options accordingly.
8235 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8237 (eval $ac_compile) 2>&5
8238 ac_status=$?
8239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8240 test $ac_status = 0; }; then
8241 emul=elf
8242 case `$FILECMD conftest.$ac_objext` in
8243 *32-bit*)
8244 emul="${emul}32"
8245 ;;
8246 *64-bit*)
8247 emul="${emul}64"
8248 ;;
8249 esac
8250 case `$FILECMD conftest.$ac_objext` in
8251 *MSB*)
8252 emul="${emul}btsmip"
8253 ;;
8254 *LSB*)
8255 emul="${emul}ltsmip"
8256 ;;
8257 esac
8258 case `$FILECMD conftest.$ac_objext` in
8259 *N32*)
8260 emul="${emul}n32"
8261 ;;
8262 esac
8263 LD="${LD-ld} -m $emul"
8264 fi
8265 rm -rf conftest*
8266 ;;
8267
8268 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8269 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8270 # Find out what ABI is being produced by ac_compile, and set linker
8271 # options accordingly. Note that the listed cases only cover the
8272 # situations where additional linker options are needed (such as when
8273 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8274 # vice versa); the common cases where no linker options are needed do
8275 # not appear in the list.
8276 echo 'int i;' > conftest.$ac_ext
8277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8278 (eval $ac_compile) 2>&5
8279 ac_status=$?
8280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8281 test $ac_status = 0; }; then
8282 case `$FILECMD conftest.o` in
8283 *32-bit*)
8284 case $host in
8285 x86_64-*kfreebsd*-gnu)
8286 LD="${LD-ld} -m elf_i386_fbsd"
8287 ;;
8288 x86_64-*linux*)
8289 case `$FILECMD conftest.o` in
8290 *x86-64*)
8291 LD="${LD-ld} -m elf32_x86_64"
8292 ;;
8293 *)
8294 LD="${LD-ld} -m elf_i386"
8295 ;;
8296 esac
8297 ;;
8298 powerpc64le-*linux*)
8299 LD="${LD-ld} -m elf32lppclinux"
8300 ;;
8301 powerpc64-*linux*)
8302 LD="${LD-ld} -m elf32ppclinux"
8303 ;;
8304 s390x-*linux*)
8305 LD="${LD-ld} -m elf_s390"
8306 ;;
8307 sparc64-*linux*)
8308 LD="${LD-ld} -m elf32_sparc"
8309 ;;
8310 esac
8311 ;;
8312 *64-bit*)
8313 case $host in
8314 x86_64-*kfreebsd*-gnu)
8315 LD="${LD-ld} -m elf_x86_64_fbsd"
8316 ;;
8317 x86_64-*linux*)
8318 LD="${LD-ld} -m elf_x86_64"
8319 ;;
8320 powerpcle-*linux*)
8321 LD="${LD-ld} -m elf64lppc"
8322 ;;
8323 powerpc-*linux*)
8324 LD="${LD-ld} -m elf64ppc"
8325 ;;
8326 s390*-*linux*|s390*-*tpf*)
8327 LD="${LD-ld} -m elf64_s390"
8328 ;;
8329 sparc*-*linux*)
8330 LD="${LD-ld} -m elf64_sparc"
8331 ;;
8332 esac
8333 ;;
8334 esac
8335 fi
8336 rm -rf conftest*
8337 ;;
8338
8339 *-*-sco3.2v5*)
8340 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8341 SAVE_CFLAGS=$CFLAGS
8342 CFLAGS="$CFLAGS -belf"
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8344 printf %s "checking whether the C compiler needs -belf... " >&6; }
8345 if test ${lt_cv_cc_needs_belf+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else case e in #(
8349 e) ac_ext=c
8350 ac_cpp='$CPP $CPPFLAGS'
8351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8354
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357
8358 int
8359 main (void)
8360 {
8361
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_link "$LINENO"
8367 then :
8368 lt_cv_cc_needs_belf=yes
8369 else case e in #(
8370 e) lt_cv_cc_needs_belf=no ;;
8371 esac
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8374 conftest$ac_exeext conftest.$ac_ext
8375 ac_ext=c
8376 ac_cpp='$CPP $CPPFLAGS'
8377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8380 ;;
8381 esac
8382 fi
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8384 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8385 if test yes != "$lt_cv_cc_needs_belf"; then
8386 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8387 CFLAGS=$SAVE_CFLAGS
8388 fi
8389 ;;
8390 *-*solaris*)
8391 # Find out what ABI is being produced by ac_compile, and set linker
8392 # options accordingly.
8393 echo 'int i;' > conftest.$ac_ext
8394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8395 (eval $ac_compile) 2>&5
8396 ac_status=$?
8397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8398 test $ac_status = 0; }; then
8399 case `$FILECMD conftest.o` in
8400 *64-bit*)
8401 case $lt_cv_prog_gnu_ld in
8402 yes*)
8403 case $host in
8404 i?86-*-solaris*|x86_64-*-solaris*)
8405 LD="${LD-ld} -m elf_x86_64"
8406 ;;
8407 sparc*-*-solaris*)
8408 LD="${LD-ld} -m elf64_sparc"
8409 ;;
8410 esac
8411 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8412 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8413 LD=${LD-ld}_sol2
8414 fi
8415 ;;
8416 *)
8417 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8418 LD="${LD-ld} -64"
8419 fi
8420 ;;
8421 esac
8422 ;;
8423 esac
8424 fi
8425 rm -rf conftest*
8426 ;;
8427 esac
8428
8429 need_locks=$enable_libtool_lock
8430
8431 if test -n "$ac_tool_prefix"; then
8432 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8433 set dummy ${ac_tool_prefix}mt; ac_word=$2
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 printf %s "checking for $ac_word... " >&6; }
8436 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8437 then :
8438 printf %s "(cached) " >&6
8439 else case e in #(
8440 e) if test -n "$MANIFEST_TOOL"; then
8441 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8445 do
8446 IFS=$as_save_IFS
8447 case $as_dir in #(((
8448 '') as_dir=./ ;;
8449 */) ;;
8450 *) as_dir=$as_dir/ ;;
8451 esac
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8456 break 2
8457 fi
8458 done
8459 done
8460 IFS=$as_save_IFS
8461
8462 fi ;;
8463 esac
8464 fi
8465 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8466 if test -n "$MANIFEST_TOOL"; then
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8468 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8469 else
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 printf "%s\n" "no" >&6; }
8472 fi
8473
8474
8475 fi
8476 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8477 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8478 # Extract the first word of "mt", so it can be a program name with args.
8479 set dummy mt; ac_word=$2
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 printf %s "checking for $ac_word... " >&6; }
8482 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8483 then :
8484 printf %s "(cached) " >&6
8485 else case e in #(
8486 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8487 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 case $as_dir in #(((
8494 '') as_dir=./ ;;
8495 */) ;;
8496 *) as_dir=$as_dir/ ;;
8497 esac
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508 fi ;;
8509 esac
8510 fi
8511 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8512 if test -n "$ac_ct_MANIFEST_TOOL"; then
8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8514 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8515 else
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 printf "%s\n" "no" >&6; }
8518 fi
8519
8520 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8521 MANIFEST_TOOL=":"
8522 else
8523 case $cross_compiling:$ac_tool_warned in
8524 yes:)
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8526 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8527 ac_tool_warned=yes ;;
8528 esac
8529 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8530 fi
8531 else
8532 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8533 fi
8534
8535 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8537 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8538 if test ${lt_cv_path_mainfest_tool+y}
8539 then :
8540 printf %s "(cached) " >&6
8541 else case e in #(
8542 e) lt_cv_path_mainfest_tool=no
8543 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8544 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8545 cat conftest.err >&5
8546 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8547 lt_cv_path_mainfest_tool=yes
8548 fi
8549 rm -f conftest* ;;
8550 esac
8551 fi
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8553 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8554 if test yes != "$lt_cv_path_mainfest_tool"; then
8555 MANIFEST_TOOL=:
8556 fi
8557
8558
8559
8560
8561
8562
8563 case $host_os in
8564 rhapsody* | darwin*)
8565 if test -n "$ac_tool_prefix"; then
8566 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8567 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 printf %s "checking for $ac_word... " >&6; }
8570 if test ${ac_cv_prog_DSYMUTIL+y}
8571 then :
8572 printf %s "(cached) " >&6
8573 else case e in #(
8574 e) if test -n "$DSYMUTIL"; then
8575 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8576 else
8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8579 do
8580 IFS=$as_save_IFS
8581 case $as_dir in #(((
8582 '') as_dir=./ ;;
8583 */) ;;
8584 *) as_dir=$as_dir/ ;;
8585 esac
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8588 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592 done
8593 done
8594 IFS=$as_save_IFS
8595
8596 fi ;;
8597 esac
8598 fi
8599 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8600 if test -n "$DSYMUTIL"; then
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8602 printf "%s\n" "$DSYMUTIL" >&6; }
8603 else
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 printf "%s\n" "no" >&6; }
8606 fi
8607
8608
8609 fi
8610 if test -z "$ac_cv_prog_DSYMUTIL"; then
8611 ac_ct_DSYMUTIL=$DSYMUTIL
8612 # Extract the first word of "dsymutil", so it can be a program name with args.
8613 set dummy dsymutil; ac_word=$2
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 printf %s "checking for $ac_word... " >&6; }
8616 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8617 then :
8618 printf %s "(cached) " >&6
8619 else case e in #(
8620 e) if test -n "$ac_ct_DSYMUTIL"; then
8621 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8625 do
8626 IFS=$as_save_IFS
8627 case $as_dir in #(((
8628 '') as_dir=./ ;;
8629 */) ;;
8630 *) as_dir=$as_dir/ ;;
8631 esac
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8634 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638 done
8639 done
8640 IFS=$as_save_IFS
8641
8642 fi ;;
8643 esac
8644 fi
8645 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8646 if test -n "$ac_ct_DSYMUTIL"; then
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8648 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8649 else
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 printf "%s\n" "no" >&6; }
8652 fi
8653
8654 if test "x$ac_ct_DSYMUTIL" = x; then
8655 DSYMUTIL=":"
8656 else
8657 case $cross_compiling:$ac_tool_warned in
8658 yes:)
8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8660 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661 ac_tool_warned=yes ;;
8662 esac
8663 DSYMUTIL=$ac_ct_DSYMUTIL
8664 fi
8665 else
8666 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8667 fi
8668
8669 if test -n "$ac_tool_prefix"; then
8670 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8671 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 printf %s "checking for $ac_word... " >&6; }
8674 if test ${ac_cv_prog_NMEDIT+y}
8675 then :
8676 printf %s "(cached) " >&6
8677 else case e in #(
8678 e) if test -n "$NMEDIT"; then
8679 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8680 else
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8683 do
8684 IFS=$as_save_IFS
8685 case $as_dir in #(((
8686 '') as_dir=./ ;;
8687 */) ;;
8688 *) as_dir=$as_dir/ ;;
8689 esac
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8692 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696 done
8697 done
8698 IFS=$as_save_IFS
8699
8700 fi ;;
8701 esac
8702 fi
8703 NMEDIT=$ac_cv_prog_NMEDIT
8704 if test -n "$NMEDIT"; then
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8706 printf "%s\n" "$NMEDIT" >&6; }
8707 else
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 printf "%s\n" "no" >&6; }
8710 fi
8711
8712
8713 fi
8714 if test -z "$ac_cv_prog_NMEDIT"; then
8715 ac_ct_NMEDIT=$NMEDIT
8716 # Extract the first word of "nmedit", so it can be a program name with args.
8717 set dummy nmedit; ac_word=$2
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 printf %s "checking for $ac_word... " >&6; }
8720 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8721 then :
8722 printf %s "(cached) " >&6
8723 else case e in #(
8724 e) if test -n "$ac_ct_NMEDIT"; then
8725 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8726 else
8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728 for as_dir in $PATH
8729 do
8730 IFS=$as_save_IFS
8731 case $as_dir in #(((
8732 '') as_dir=./ ;;
8733 */) ;;
8734 *) as_dir=$as_dir/ ;;
8735 esac
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8738 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8740 break 2
8741 fi
8742 done
8743 done
8744 IFS=$as_save_IFS
8745
8746 fi ;;
8747 esac
8748 fi
8749 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8750 if test -n "$ac_ct_NMEDIT"; then
8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8752 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8753 else
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 printf "%s\n" "no" >&6; }
8756 fi
8757
8758 if test "x$ac_ct_NMEDIT" = x; then
8759 NMEDIT=":"
8760 else
8761 case $cross_compiling:$ac_tool_warned in
8762 yes:)
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8766 esac
8767 NMEDIT=$ac_ct_NMEDIT
8768 fi
8769 else
8770 NMEDIT="$ac_cv_prog_NMEDIT"
8771 fi
8772
8773 if test -n "$ac_tool_prefix"; then
8774 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8775 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 printf %s "checking for $ac_word... " >&6; }
8778 if test ${ac_cv_prog_LIPO+y}
8779 then :
8780 printf %s "(cached) " >&6
8781 else case e in #(
8782 e) if test -n "$LIPO"; then
8783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8784 else
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8787 do
8788 IFS=$as_save_IFS
8789 case $as_dir in #(((
8790 '') as_dir=./ ;;
8791 */) ;;
8792 *) as_dir=$as_dir/ ;;
8793 esac
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800 done
8801 done
8802 IFS=$as_save_IFS
8803
8804 fi ;;
8805 esac
8806 fi
8807 LIPO=$ac_cv_prog_LIPO
8808 if test -n "$LIPO"; then
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8810 printf "%s\n" "$LIPO" >&6; }
8811 else
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 printf "%s\n" "no" >&6; }
8814 fi
8815
8816
8817 fi
8818 if test -z "$ac_cv_prog_LIPO"; then
8819 ac_ct_LIPO=$LIPO
8820 # Extract the first word of "lipo", so it can be a program name with args.
8821 set dummy lipo; ac_word=$2
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 printf %s "checking for $ac_word... " >&6; }
8824 if test ${ac_cv_prog_ac_ct_LIPO+y}
8825 then :
8826 printf %s "(cached) " >&6
8827 else case e in #(
8828 e) if test -n "$ac_ct_LIPO"; then
8829 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8830 else
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $PATH
8833 do
8834 IFS=$as_save_IFS
8835 case $as_dir in #(((
8836 '') as_dir=./ ;;
8837 */) ;;
8838 *) as_dir=$as_dir/ ;;
8839 esac
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8842 ac_cv_prog_ac_ct_LIPO="lipo"
8843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8844 break 2
8845 fi
8846 done
8847 done
8848 IFS=$as_save_IFS
8849
8850 fi ;;
8851 esac
8852 fi
8853 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8854 if test -n "$ac_ct_LIPO"; then
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8856 printf "%s\n" "$ac_ct_LIPO" >&6; }
8857 else
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 printf "%s\n" "no" >&6; }
8860 fi
8861
8862 if test "x$ac_ct_LIPO" = x; then
8863 LIPO=":"
8864 else
8865 case $cross_compiling:$ac_tool_warned in
8866 yes:)
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8869 ac_tool_warned=yes ;;
8870 esac
8871 LIPO=$ac_ct_LIPO
8872 fi
8873 else
8874 LIPO="$ac_cv_prog_LIPO"
8875 fi
8876
8877 if test -n "$ac_tool_prefix"; then
8878 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8879 set dummy ${ac_tool_prefix}otool; ac_word=$2
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 printf %s "checking for $ac_word... " >&6; }
8882 if test ${ac_cv_prog_OTOOL+y}
8883 then :
8884 printf %s "(cached) " >&6
8885 else case e in #(
8886 e) if test -n "$OTOOL"; then
8887 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8888 else
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892 IFS=$as_save_IFS
8893 case $as_dir in #(((
8894 '') as_dir=./ ;;
8895 */) ;;
8896 *) as_dir=$as_dir/ ;;
8897 esac
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8900 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8902 break 2
8903 fi
8904 done
8905 done
8906 IFS=$as_save_IFS
8907
8908 fi ;;
8909 esac
8910 fi
8911 OTOOL=$ac_cv_prog_OTOOL
8912 if test -n "$OTOOL"; then
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8914 printf "%s\n" "$OTOOL" >&6; }
8915 else
8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 printf "%s\n" "no" >&6; }
8918 fi
8919
8920
8921 fi
8922 if test -z "$ac_cv_prog_OTOOL"; then
8923 ac_ct_OTOOL=$OTOOL
8924 # Extract the first word of "otool", so it can be a program name with args.
8925 set dummy otool; ac_word=$2
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927 printf %s "checking for $ac_word... " >&6; }
8928 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8929 then :
8930 printf %s "(cached) " >&6
8931 else case e in #(
8932 e) if test -n "$ac_ct_OTOOL"; then
8933 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8934 else
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8937 do
8938 IFS=$as_save_IFS
8939 case $as_dir in #(((
8940 '') as_dir=./ ;;
8941 */) ;;
8942 *) as_dir=$as_dir/ ;;
8943 esac
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8946 ac_cv_prog_ac_ct_OTOOL="otool"
8947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8948 break 2
8949 fi
8950 done
8951 done
8952 IFS=$as_save_IFS
8953
8954 fi ;;
8955 esac
8956 fi
8957 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8958 if test -n "$ac_ct_OTOOL"; then
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8960 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8961 else
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 printf "%s\n" "no" >&6; }
8964 fi
8965
8966 if test "x$ac_ct_OTOOL" = x; then
8967 OTOOL=":"
8968 else
8969 case $cross_compiling:$ac_tool_warned in
8970 yes:)
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8973 ac_tool_warned=yes ;;
8974 esac
8975 OTOOL=$ac_ct_OTOOL
8976 fi
8977 else
8978 OTOOL="$ac_cv_prog_OTOOL"
8979 fi
8980
8981 if test -n "$ac_tool_prefix"; then
8982 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8983 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985 printf %s "checking for $ac_word... " >&6; }
8986 if test ${ac_cv_prog_OTOOL64+y}
8987 then :
8988 printf %s "(cached) " >&6
8989 else case e in #(
8990 e) if test -n "$OTOOL64"; then
8991 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8992 else
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8995 do
8996 IFS=$as_save_IFS
8997 case $as_dir in #(((
8998 '') as_dir=./ ;;
8999 */) ;;
9000 *) as_dir=$as_dir/ ;;
9001 esac
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008 done
9009 done
9010 IFS=$as_save_IFS
9011
9012 fi ;;
9013 esac
9014 fi
9015 OTOOL64=$ac_cv_prog_OTOOL64
9016 if test -n "$OTOOL64"; then
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9018 printf "%s\n" "$OTOOL64" >&6; }
9019 else
9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 printf "%s\n" "no" >&6; }
9022 fi
9023
9024
9025 fi
9026 if test -z "$ac_cv_prog_OTOOL64"; then
9027 ac_ct_OTOOL64=$OTOOL64
9028 # Extract the first word of "otool64", so it can be a program name with args.
9029 set dummy otool64; ac_word=$2
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 printf %s "checking for $ac_word... " >&6; }
9032 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9033 then :
9034 printf %s "(cached) " >&6
9035 else case e in #(
9036 e) if test -n "$ac_ct_OTOOL64"; then
9037 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9038 else
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 for as_dir in $PATH
9041 do
9042 IFS=$as_save_IFS
9043 case $as_dir in #(((
9044 '') as_dir=./ ;;
9045 */) ;;
9046 *) as_dir=$as_dir/ ;;
9047 esac
9048 for ac_exec_ext in '' $ac_executable_extensions; do
9049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9050 ac_cv_prog_ac_ct_OTOOL64="otool64"
9051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9052 break 2
9053 fi
9054 done
9055 done
9056 IFS=$as_save_IFS
9057
9058 fi ;;
9059 esac
9060 fi
9061 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9062 if test -n "$ac_ct_OTOOL64"; then
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9064 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9065 else
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 printf "%s\n" "no" >&6; }
9068 fi
9069
9070 if test "x$ac_ct_OTOOL64" = x; then
9071 OTOOL64=":"
9072 else
9073 case $cross_compiling:$ac_tool_warned in
9074 yes:)
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9076 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9077 ac_tool_warned=yes ;;
9078 esac
9079 OTOOL64=$ac_ct_OTOOL64
9080 fi
9081 else
9082 OTOOL64="$ac_cv_prog_OTOOL64"
9083 fi
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9112 printf %s "checking for -single_module linker flag... " >&6; }
9113 if test ${lt_cv_apple_cc_single_mod+y}
9114 then :
9115 printf %s "(cached) " >&6
9116 else case e in #(
9117 e) lt_cv_apple_cc_single_mod=no
9118 if test -z "$LT_MULTI_MODULE"; then
9119 # By default we will add the -single_module flag. You can override
9120 # by either setting the environment variable LT_MULTI_MODULE
9121 # non-empty at configure time, or by adding -multi_module to the
9122 # link flags.
9123 rm -rf libconftest.dylib*
9124 echo "int foo(void){return 1;}" > conftest.c
9125 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9126 -dynamiclib -Wl,-single_module conftest.c" >&5
9127 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9128 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9129 _lt_result=$?
9130 # If there is a non-empty error log, and "single_module"
9131 # appears in it, assume the flag caused a linker warning
9132 if test -s conftest.err && $GREP single_module conftest.err; then
9133 cat conftest.err >&5
9134 # Otherwise, if the output was created with a 0 exit code from
9135 # the compiler, it worked.
9136 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9137 lt_cv_apple_cc_single_mod=yes
9138 else
9139 cat conftest.err >&5
9140 fi
9141 rm -rf libconftest.dylib*
9142 rm -f conftest.*
9143 fi ;;
9144 esac
9145 fi
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9147 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9148
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9150 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9151 if test ${lt_cv_ld_exported_symbols_list+y}
9152 then :
9153 printf %s "(cached) " >&6
9154 else case e in #(
9155 e) lt_cv_ld_exported_symbols_list=no
9156 save_LDFLAGS=$LDFLAGS
9157 echo "_main" > conftest.sym
9158 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161
9162 int
9163 main (void)
9164 {
9165
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"
9171 then :
9172 lt_cv_ld_exported_symbols_list=yes
9173 else case e in #(
9174 e) lt_cv_ld_exported_symbols_list=no ;;
9175 esac
9176 fi
9177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9178 conftest$ac_exeext conftest.$ac_ext
9179 LDFLAGS=$save_LDFLAGS
9180 ;;
9181 esac
9182 fi
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9184 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9185
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9187 printf %s "checking for -force_load linker flag... " >&6; }
9188 if test ${lt_cv_ld_force_load+y}
9189 then :
9190 printf %s "(cached) " >&6
9191 else case e in #(
9192 e) lt_cv_ld_force_load=no
9193 cat > conftest.c << _LT_EOF
9194 int forced_loaded() { return 2;}
9195 _LT_EOF
9196 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9197 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9198 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9199 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9200 echo "$RANLIB libconftest.a" >&5
9201 $RANLIB libconftest.a 2>&5
9202 cat > conftest.c << _LT_EOF
9203 int main() { return 0;}
9204 _LT_EOF
9205 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9206 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9207 _lt_result=$?
9208 if test -s conftest.err && $GREP force_load conftest.err; then
9209 cat conftest.err >&5
9210 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9211 lt_cv_ld_force_load=yes
9212 else
9213 cat conftest.err >&5
9214 fi
9215 rm -f conftest.err libconftest.a conftest conftest.c
9216 rm -rf conftest.dSYM
9217 ;;
9218 esac
9219 fi
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9221 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9222 case $host_os in
9223 rhapsody* | darwin1.[012])
9224 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9225 darwin1.*)
9226 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9227 darwin*)
9228 case $MACOSX_DEPLOYMENT_TARGET,$host in
9229 10.[012],*|,*powerpc*-darwin[5-8]*)
9230 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9231 *)
9232 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9233 esac
9234 ;;
9235 esac
9236 if test yes = "$lt_cv_apple_cc_single_mod"; then
9237 _lt_dar_single_mod='$single_module'
9238 fi
9239 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9240 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9241 else
9242 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9243 fi
9244 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9245 _lt_dsymutil='~$DSYMUTIL $lib || :'
9246 else
9247 _lt_dsymutil=
9248 fi
9249 ;;
9250 esac
9251
9252 # func_munge_path_list VARIABLE PATH
9253 # -----------------------------------
9254 # VARIABLE is name of variable containing _space_ separated list of
9255 # directories to be munged by the contents of PATH, which is string
9256 # having a format:
9257 # "DIR[:DIR]:"
9258 # string "DIR[ DIR]" will be prepended to VARIABLE
9259 # ":DIR[:DIR]"
9260 # string "DIR[ DIR]" will be appended to VARIABLE
9261 # "DIRP[:DIRP]::[DIRA:]DIRA"
9262 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9263 # "DIRA[ DIRA]" will be appended to VARIABLE
9264 # "DIR[:DIR]"
9265 # VARIABLE will be replaced by "DIR[ DIR]"
9266 func_munge_path_list ()
9267 {
9268 case x$2 in
9269 x)
9270 ;;
9271 *:)
9272 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9273 ;;
9274 x:*)
9275 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9276 ;;
9277 *::*)
9278 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9279 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9280 ;;
9281 *)
9282 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9283 ;;
9284 esac
9285 }
9286
9287 ac_header= ac_cache=
9288 for ac_item in $ac_header_c_list
9289 do
9290 if test $ac_cache; then
9291 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9292 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9293 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9294 fi
9295 ac_header= ac_cache=
9296 elif test $ac_header; then
9297 ac_cache=$ac_item
9298 else
9299 ac_header=$ac_item
9300 fi
9301 done
9302
9303
9304
9305
9306
9307
9308
9309
9310 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9311 then :
9312
9313 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9314
9315 fi
9316 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9317 "
9318 if test "x$ac_cv_header_dlfcn_h" = xyes
9319 then :
9320 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9321
9322 fi
9323
9324
9325
9326
9327
9328 # Set options
9329 # Check whether --enable-static was given.
9330 if test ${enable_static+y}
9331 then :
9332 enableval=$enable_static; p=${PACKAGE-default}
9333 case $enableval in
9334 yes) enable_static=yes ;;
9335 no) enable_static=no ;;
9336 *)
9337 enable_static=no
9338 # Look at the argument we got. We use all the common list separators.
9339 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9340 for pkg in $enableval; do
9341 IFS=$lt_save_ifs
9342 if test "X$pkg" = "X$p"; then
9343 enable_static=yes
9344 fi
9345 done
9346 IFS=$lt_save_ifs
9347 ;;
9348 esac
9349 else case e in #(
9350 e) enable_static=no ;;
9351 esac
9352 fi
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363 enable_dlopen=no
9364
9365
9366 enable_win32_dll=no
9367
9368
9369 # Check whether --enable-shared was given.
9370 if test ${enable_shared+y}
9371 then :
9372 enableval=$enable_shared; p=${PACKAGE-default}
9373 case $enableval in
9374 yes) enable_shared=yes ;;
9375 no) enable_shared=no ;;
9376 *)
9377 enable_shared=no
9378 # Look at the argument we got. We use all the common list separators.
9379 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9380 for pkg in $enableval; do
9381 IFS=$lt_save_ifs
9382 if test "X$pkg" = "X$p"; then
9383 enable_shared=yes
9384 fi
9385 done
9386 IFS=$lt_save_ifs
9387 ;;
9388 esac
9389 else case e in #(
9390 e) enable_shared=yes ;;
9391 esac
9392 fi
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404 # Check whether --with-pic was given.
9405 if test ${with_pic+y}
9406 then :
9407 withval=$with_pic; lt_p=${PACKAGE-default}
9408 case $withval in
9409 yes|no) pic_mode=$withval ;;
9410 *)
9411 pic_mode=default
9412 # Look at the argument we got. We use all the common list separators.
9413 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9414 for lt_pkg in $withval; do
9415 IFS=$lt_save_ifs
9416 if test "X$lt_pkg" = "X$lt_p"; then
9417 pic_mode=yes
9418 fi
9419 done
9420 IFS=$lt_save_ifs
9421 ;;
9422 esac
9423 else case e in #(
9424 e) pic_mode=default ;;
9425 esac
9426 fi
9427
9428
9429
9430
9431
9432
9433
9434
9435 # Check whether --enable-fast-install was given.
9436 if test ${enable_fast_install+y}
9437 then :
9438 enableval=$enable_fast_install; p=${PACKAGE-default}
9439 case $enableval in
9440 yes) enable_fast_install=yes ;;
9441 no) enable_fast_install=no ;;
9442 *)
9443 enable_fast_install=no
9444 # Look at the argument we got. We use all the common list separators.
9445 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9446 for pkg in $enableval; do
9447 IFS=$lt_save_ifs
9448 if test "X$pkg" = "X$p"; then
9449 enable_fast_install=yes
9450 fi
9451 done
9452 IFS=$lt_save_ifs
9453 ;;
9454 esac
9455 else case e in #(
9456 e) enable_fast_install=yes ;;
9457 esac
9458 fi
9459
9460
9461
9462
9463
9464
9465
9466
9467 shared_archive_member_spec=
9468 case $host,$enable_shared in
9469 power*-*-aix[5-9]*,yes)
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9471 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9472
9473 # Check whether --with-aix-soname was given.
9474 if test ${with_aix_soname+y}
9475 then :
9476 withval=$with_aix_soname; case $withval in
9477 aix|svr4|both)
9478 ;;
9479 *)
9480 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9481 ;;
9482 esac
9483 lt_cv_with_aix_soname=$with_aix_soname
9484 else case e in #(
9485 e) if test ${lt_cv_with_aix_soname+y}
9486 then :
9487 printf %s "(cached) " >&6
9488 else case e in #(
9489 e) lt_cv_with_aix_soname=aix ;;
9490 esac
9491 fi
9492
9493 with_aix_soname=$lt_cv_with_aix_soname ;;
9494 esac
9495 fi
9496
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9498 printf "%s\n" "$with_aix_soname" >&6; }
9499 if test aix != "$with_aix_soname"; then
9500 # For the AIX way of multilib, we name the shared archive member
9501 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9502 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9503 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9504 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9505 if test 64 = "${OBJECT_MODE-32}"; then
9506 shared_archive_member_spec=shr_64
9507 else
9508 shared_archive_member_spec=shr
9509 fi
9510 fi
9511 ;;
9512 *)
9513 with_aix_soname=aix
9514 ;;
9515 esac
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526 # This can be used to rebuild libtool when needed
9527 LIBTOOL_DEPS=$ltmain
9528
9529 # Always use our own libtool.
9530 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561 test -z "$LN_S" && LN_S="ln -s"
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576 if test -n "${ZSH_VERSION+set}"; then
9577 setopt NO_GLOB_SUBST
9578 fi
9579
9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9581 printf %s "checking for objdir... " >&6; }
9582 if test ${lt_cv_objdir+y}
9583 then :
9584 printf %s "(cached) " >&6
9585 else case e in #(
9586 e) rm -f .libs 2>/dev/null
9587 mkdir .libs 2>/dev/null
9588 if test -d .libs; then
9589 lt_cv_objdir=.libs
9590 else
9591 # MS-DOS does not allow filenames that begin with a dot.
9592 lt_cv_objdir=_libs
9593 fi
9594 rmdir .libs 2>/dev/null ;;
9595 esac
9596 fi
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9598 printf "%s\n" "$lt_cv_objdir" >&6; }
9599 objdir=$lt_cv_objdir
9600
9601
9602
9603
9604
9605 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9606
9607
9608
9609
9610 case $host_os in
9611 aix3*)
9612 # AIX sometimes has problems with the GCC collect2 program. For some
9613 # reason, if we set the COLLECT_NAMES environment variable, the problems
9614 # vanish in a puff of smoke.
9615 if test set != "${COLLECT_NAMES+set}"; then
9616 COLLECT_NAMES=
9617 export COLLECT_NAMES
9618 fi
9619 ;;
9620 esac
9621
9622 # Global variables:
9623 ofile=libtool
9624 can_build_shared=yes
9625
9626 # All known linkers require a '.a' archive for static linking (except MSVC and
9627 # ICC, which need '.lib').
9628 libext=a
9629
9630 with_gnu_ld=$lt_cv_prog_gnu_ld
9631
9632 old_CC=$CC
9633 old_CFLAGS=$CFLAGS
9634
9635 # Set sane defaults for various variables
9636 test -z "$CC" && CC=cc
9637 test -z "$LTCC" && LTCC=$CC
9638 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9639 test -z "$LD" && LD=ld
9640 test -z "$ac_objext" && ac_objext=o
9641
9642 func_cc_basename $compiler
9643 cc_basename=$func_cc_basename_result
9644
9645
9646 # Only perform the check for file, if the check method requires it
9647 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9648 case $deplibs_check_method in
9649 file_magic*)
9650 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9652 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9653 if test ${lt_cv_path_MAGIC_CMD+y}
9654 then :
9655 printf %s "(cached) " >&6
9656 else case e in #(
9657 e) case $MAGIC_CMD in
9658 [\\/*] | ?:[\\/]*)
9659 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9660 ;;
9661 *)
9662 lt_save_MAGIC_CMD=$MAGIC_CMD
9663 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9664 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9665 for ac_dir in $ac_dummy; do
9666 IFS=$lt_save_ifs
9667 test -z "$ac_dir" && ac_dir=.
9668 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9669 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9670 if test -n "$file_magic_test_file"; then
9671 case $deplibs_check_method in
9672 "file_magic "*)
9673 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9674 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9675 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9676 $EGREP "$file_magic_regex" > /dev/null; then
9677 :
9678 else
9679 cat <<_LT_EOF 1>&2
9680
9681 *** Warning: the command libtool uses to detect shared libraries,
9682 *** $file_magic_cmd, produces output that libtool cannot recognize.
9683 *** The result is that libtool may fail to recognize shared libraries
9684 *** as such. This will affect the creation of libtool libraries that
9685 *** depend on shared libraries, but programs linked with such libtool
9686 *** libraries will work regardless of this problem. Nevertheless, you
9687 *** may want to report the problem to your system manager and/or to
9688 *** [email protected]
9689
9690 _LT_EOF
9691 fi ;;
9692 esac
9693 fi
9694 break
9695 fi
9696 done
9697 IFS=$lt_save_ifs
9698 MAGIC_CMD=$lt_save_MAGIC_CMD
9699 ;;
9700 esac ;;
9701 esac
9702 fi
9703
9704 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9705 if test -n "$MAGIC_CMD"; then
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9707 printf "%s\n" "$MAGIC_CMD" >&6; }
9708 else
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 printf "%s\n" "no" >&6; }
9711 fi
9712
9713
9714
9715
9716
9717 if test -z "$lt_cv_path_MAGIC_CMD"; then
9718 if test -n "$ac_tool_prefix"; then
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9720 printf %s "checking for file... " >&6; }
9721 if test ${lt_cv_path_MAGIC_CMD+y}
9722 then :
9723 printf %s "(cached) " >&6
9724 else case e in #(
9725 e) case $MAGIC_CMD in
9726 [\\/*] | ?:[\\/]*)
9727 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9728 ;;
9729 *)
9730 lt_save_MAGIC_CMD=$MAGIC_CMD
9731 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9733 for ac_dir in $ac_dummy; do
9734 IFS=$lt_save_ifs
9735 test -z "$ac_dir" && ac_dir=.
9736 if test -f "$ac_dir/file"; then
9737 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9738 if test -n "$file_magic_test_file"; then
9739 case $deplibs_check_method in
9740 "file_magic "*)
9741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9742 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9744 $EGREP "$file_magic_regex" > /dev/null; then
9745 :
9746 else
9747 cat <<_LT_EOF 1>&2
9748
9749 *** Warning: the command libtool uses to detect shared libraries,
9750 *** $file_magic_cmd, produces output that libtool cannot recognize.
9751 *** The result is that libtool may fail to recognize shared libraries
9752 *** as such. This will affect the creation of libtool libraries that
9753 *** depend on shared libraries, but programs linked with such libtool
9754 *** libraries will work regardless of this problem. Nevertheless, you
9755 *** may want to report the problem to your system manager and/or to
9756 *** [email protected]
9757
9758 _LT_EOF
9759 fi ;;
9760 esac
9761 fi
9762 break
9763 fi
9764 done
9765 IFS=$lt_save_ifs
9766 MAGIC_CMD=$lt_save_MAGIC_CMD
9767 ;;
9768 esac ;;
9769 esac
9770 fi
9771
9772 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9773 if test -n "$MAGIC_CMD"; then
9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9775 printf "%s\n" "$MAGIC_CMD" >&6; }
9776 else
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778 printf "%s\n" "no" >&6; }
9779 fi
9780
9781
9782 else
9783 MAGIC_CMD=:
9784 fi
9785 fi
9786
9787 fi
9788 ;;
9789 esac
9790
9791 # Use C for the default configuration in the libtool script
9792
9793 lt_save_CC=$CC
9794 ac_ext=c
9795 ac_cpp='$CPP $CPPFLAGS'
9796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9799
9800
9801 # Source file extension for C test sources.
9802 ac_ext=c
9803
9804 # Object file extension for compiled C test sources.
9805 objext=o
9806 objext=$objext
9807
9808 # Code to be used in simple compile tests
9809 lt_simple_compile_test_code="int some_variable = 0;"
9810
9811 # Code to be used in simple link tests
9812 lt_simple_link_test_code='int main(){return(0);}'
9813
9814
9815
9816
9817
9818
9819
9820 # If no C compiler was specified, use CC.
9821 LTCC=${LTCC-"$CC"}
9822
9823 # If no C compiler flags were specified, use CFLAGS.
9824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9825
9826 # Allow CC to be a program name with arguments.
9827 compiler=$CC
9828
9829 # Save the default compiler, since it gets overwritten when the other
9830 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9831 compiler_DEFAULT=$CC
9832
9833 # save warnings/boilerplate of simple test code
9834 ac_outfile=conftest.$ac_objext
9835 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9836 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9837 _lt_compiler_boilerplate=`cat conftest.err`
9838 $RM conftest*
9839
9840 ac_outfile=conftest.$ac_objext
9841 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9842 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9843 _lt_linker_boilerplate=`cat conftest.err`
9844 $RM -r conftest*
9845
9846
9847 ## CAVEAT EMPTOR:
9848 ## There is no encapsulation within the following macros, do not change
9849 ## the running order or otherwise move them around unless you know exactly
9850 ## what you are doing...
9851 if test -n "$compiler"; then
9852
9853 lt_prog_compiler_no_builtin_flag=
9854
9855 if test yes = "$GCC"; then
9856 case $cc_basename in
9857 nvcc*)
9858 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9859 *)
9860 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9861 esac
9862
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9864 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9865 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9866 then :
9867 printf %s "(cached) " >&6
9868 else case e in #(
9869 e) lt_cv_prog_compiler_rtti_exceptions=no
9870 ac_outfile=conftest.$ac_objext
9871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9872 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9873 # Insert the option either (1) after the last *FLAGS variable, or
9874 # (2) before a word containing "conftest.", or (3) at the end.
9875 # Note that $ac_compile itself does not contain backslashes and begins
9876 # with a dollar sign (not a hyphen), so the echo should work correctly.
9877 # The option is referenced via a variable to avoid confusing sed.
9878 lt_compile=`echo "$ac_compile" | $SED \
9879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9881 -e 's:$: $lt_compiler_flag:'`
9882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9883 (eval "$lt_compile" 2>conftest.err)
9884 ac_status=$?
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 if (exit $ac_status) && test -s "$ac_outfile"; then
9888 # The compiler can only warn and ignore the option if not recognized
9889 # So say no if there are warnings other than the usual output.
9890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9893 lt_cv_prog_compiler_rtti_exceptions=yes
9894 fi
9895 fi
9896 $RM conftest*
9897 ;;
9898 esac
9899 fi
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9901 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9902
9903 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9904 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9905 else
9906 :
9907 fi
9908
9909 fi
9910
9911
9912
9913
9914
9915
9916 lt_prog_compiler_wl=
9917 lt_prog_compiler_pic=
9918 lt_prog_compiler_static=
9919
9920
9921 if test yes = "$GCC"; then
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_static='-static'
9924
9925 case $host_os in
9926 aix*)
9927 # All AIX code is PIC.
9928 if test ia64 = "$host_cpu"; then
9929 # AIX 5 now supports IA64 processor
9930 lt_prog_compiler_static='-Bstatic'
9931 fi
9932 lt_prog_compiler_pic='-fPIC'
9933 ;;
9934
9935 amigaos*)
9936 case $host_cpu in
9937 powerpc)
9938 # see comment about AmigaOS4 .so support
9939 lt_prog_compiler_pic='-fPIC'
9940 ;;
9941 m68k)
9942 # FIXME: we need at least 68020 code to build shared libraries, but
9943 # adding the '-m68020' flag to GCC prevents building anything better,
9944 # like '-m68040'.
9945 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9946 ;;
9947 esac
9948 ;;
9949
9950 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9951 # PIC is the default for these OSes.
9952 ;;
9953
9954 mingw* | cygwin* | pw32* | os2* | cegcc*)
9955 # This hack is so that the source file can tell whether it is being
9956 # built for inclusion in a dll (and should export symbols for example).
9957 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9958 # (--disable-auto-import) libraries
9959 lt_prog_compiler_pic='-DDLL_EXPORT'
9960 case $host_os in
9961 os2*)
9962 lt_prog_compiler_static='$wl-static'
9963 ;;
9964 esac
9965 ;;
9966
9967 darwin* | rhapsody*)
9968 # PIC is the default on this platform
9969 # Common symbols not allowed in MH_DYLIB files
9970 lt_prog_compiler_pic='-fno-common'
9971 ;;
9972
9973 haiku*)
9974 # PIC is the default for Haiku.
9975 # The "-static" flag exists, but is broken.
9976 lt_prog_compiler_static=
9977 ;;
9978
9979 hpux*)
9980 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9981 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9982 # sets the default TLS model and affects inlining.
9983 case $host_cpu in
9984 hppa*64*)
9985 # +Z the default
9986 ;;
9987 *)
9988 lt_prog_compiler_pic='-fPIC'
9989 ;;
9990 esac
9991 ;;
9992
9993 interix[3-9]*)
9994 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9995 # Instead, we relocate shared libraries at runtime.
9996 ;;
9997
9998 msdosdjgpp*)
9999 # Just because we use GCC doesn't mean we suddenly get shared libraries
10000 # on systems that don't support them.
10001 lt_prog_compiler_can_build_shared=no
10002 enable_shared=no
10003 ;;
10004
10005 *nto* | *qnx*)
10006 # QNX uses GNU C++, but need to define -shared option too, otherwise
10007 # it will coredump.
10008 lt_prog_compiler_pic='-fPIC -shared'
10009 ;;
10010
10011 sysv4*MP*)
10012 if test -d /usr/nec; then
10013 lt_prog_compiler_pic=-Kconform_pic
10014 fi
10015 ;;
10016
10017 *)
10018 lt_prog_compiler_pic='-fPIC'
10019 ;;
10020 esac
10021
10022 case $cc_basename in
10023 nvcc*) # Cuda Compiler Driver 2.2
10024 lt_prog_compiler_wl='-Xlinker '
10025 if test -n "$lt_prog_compiler_pic"; then
10026 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10027 fi
10028 ;;
10029 esac
10030 else
10031 # PORTME Check for flag to pass linker flags through the system compiler.
10032 case $host_os in
10033 aix*)
10034 lt_prog_compiler_wl='-Wl,'
10035 if test ia64 = "$host_cpu"; then
10036 # AIX 5 now supports IA64 processor
10037 lt_prog_compiler_static='-Bstatic'
10038 else
10039 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10040 fi
10041 ;;
10042
10043 darwin* | rhapsody*)
10044 # PIC is the default on this platform
10045 # Common symbols not allowed in MH_DYLIB files
10046 lt_prog_compiler_pic='-fno-common'
10047 case $cc_basename in
10048 nagfor*)
10049 # NAG Fortran compiler
10050 lt_prog_compiler_wl='-Wl,-Wl,,'
10051 lt_prog_compiler_pic='-PIC'
10052 lt_prog_compiler_static='-Bstatic'
10053 ;;
10054 esac
10055 ;;
10056
10057 mingw* | cygwin* | pw32* | os2* | cegcc*)
10058 # This hack is so that the source file can tell whether it is being
10059 # built for inclusion in a dll (and should export symbols for example).
10060 lt_prog_compiler_pic='-DDLL_EXPORT'
10061 case $host_os in
10062 os2*)
10063 lt_prog_compiler_static='$wl-static'
10064 ;;
10065 esac
10066 ;;
10067
10068 hpux9* | hpux10* | hpux11*)
10069 lt_prog_compiler_wl='-Wl,'
10070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10071 # not for PA HP-UX.
10072 case $host_cpu in
10073 hppa*64*|ia64*)
10074 # +Z the default
10075 ;;
10076 *)
10077 lt_prog_compiler_pic='+Z'
10078 ;;
10079 esac
10080 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10081 lt_prog_compiler_static='$wl-a ${wl}archive'
10082 ;;
10083
10084 irix5* | irix6* | nonstopux*)
10085 lt_prog_compiler_wl='-Wl,'
10086 # PIC (with -KPIC) is the default.
10087 lt_prog_compiler_static='-non_shared'
10088 ;;
10089
10090 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10091 case $cc_basename in
10092 # old Intel for x86_64, which still supported -KPIC.
10093 ecc*)
10094 lt_prog_compiler_wl='-Wl,'
10095 lt_prog_compiler_pic='-KPIC'
10096 lt_prog_compiler_static='-static'
10097 ;;
10098 # icc used to be incompatible with GCC.
10099 # ICC 10 doesn't accept -KPIC any more.
10100 icc* | ifort*)
10101 lt_prog_compiler_wl='-Wl,'
10102 lt_prog_compiler_pic='-fPIC'
10103 lt_prog_compiler_static='-static'
10104 ;;
10105 # Lahey Fortran 8.1.
10106 lf95*)
10107 lt_prog_compiler_wl='-Wl,'
10108 lt_prog_compiler_pic='--shared'
10109 lt_prog_compiler_static='--static'
10110 ;;
10111 nagfor*)
10112 # NAG Fortran compiler
10113 lt_prog_compiler_wl='-Wl,-Wl,,'
10114 lt_prog_compiler_pic='-PIC'
10115 lt_prog_compiler_static='-Bstatic'
10116 ;;
10117 tcc*)
10118 # Fabrice Bellard et al's Tiny C Compiler
10119 lt_prog_compiler_wl='-Wl,'
10120 lt_prog_compiler_pic='-fPIC'
10121 lt_prog_compiler_static='-static'
10122 ;;
10123 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10124 # Portland Group compilers (*not* the Pentium gcc compiler,
10125 # which looks to be a dead project)
10126 lt_prog_compiler_wl='-Wl,'
10127 lt_prog_compiler_pic='-fpic'
10128 lt_prog_compiler_static='-Bstatic'
10129 ;;
10130 ccc*)
10131 lt_prog_compiler_wl='-Wl,'
10132 # All Alpha code is PIC.
10133 lt_prog_compiler_static='-non_shared'
10134 ;;
10135 xl* | bgxl* | bgf* | mpixl*)
10136 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10137 lt_prog_compiler_wl='-Wl,'
10138 lt_prog_compiler_pic='-qpic'
10139 lt_prog_compiler_static='-qstaticlink'
10140 ;;
10141 *)
10142 case `$CC -V 2>&1 | $SED 5q` in
10143 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10144 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10145 lt_prog_compiler_pic='-KPIC'
10146 lt_prog_compiler_static='-Bstatic'
10147 lt_prog_compiler_wl=''
10148 ;;
10149 *Sun\ F* | *Sun*Fortran*)
10150 lt_prog_compiler_pic='-KPIC'
10151 lt_prog_compiler_static='-Bstatic'
10152 lt_prog_compiler_wl='-Qoption ld '
10153 ;;
10154 *Sun\ C*)
10155 # Sun C 5.9
10156 lt_prog_compiler_pic='-KPIC'
10157 lt_prog_compiler_static='-Bstatic'
10158 lt_prog_compiler_wl='-Wl,'
10159 ;;
10160 *Intel*\ [CF]*Compiler*)
10161 lt_prog_compiler_wl='-Wl,'
10162 lt_prog_compiler_pic='-fPIC'
10163 lt_prog_compiler_static='-static'
10164 ;;
10165 *Portland\ Group*)
10166 lt_prog_compiler_wl='-Wl,'
10167 lt_prog_compiler_pic='-fpic'
10168 lt_prog_compiler_static='-Bstatic'
10169 ;;
10170 esac
10171 ;;
10172 esac
10173 ;;
10174
10175 newsos6)
10176 lt_prog_compiler_pic='-KPIC'
10177 lt_prog_compiler_static='-Bstatic'
10178 ;;
10179
10180 *nto* | *qnx*)
10181 # QNX uses GNU C++, but need to define -shared option too, otherwise
10182 # it will coredump.
10183 lt_prog_compiler_pic='-fPIC -shared'
10184 ;;
10185
10186 osf3* | osf4* | osf5*)
10187 lt_prog_compiler_wl='-Wl,'
10188 # All OSF/1 code is PIC.
10189 lt_prog_compiler_static='-non_shared'
10190 ;;
10191
10192 rdos*)
10193 lt_prog_compiler_static='-non_shared'
10194 ;;
10195
10196 solaris*)
10197 lt_prog_compiler_pic='-KPIC'
10198 lt_prog_compiler_static='-Bstatic'
10199 case $cc_basename in
10200 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10201 lt_prog_compiler_wl='-Qoption ld ';;
10202 *)
10203 lt_prog_compiler_wl='-Wl,';;
10204 esac
10205 ;;
10206
10207 sunos4*)
10208 lt_prog_compiler_wl='-Qoption ld '
10209 lt_prog_compiler_pic='-PIC'
10210 lt_prog_compiler_static='-Bstatic'
10211 ;;
10212
10213 sysv4 | sysv4.2uw2* | sysv4.3*)
10214 lt_prog_compiler_wl='-Wl,'
10215 lt_prog_compiler_pic='-KPIC'
10216 lt_prog_compiler_static='-Bstatic'
10217 ;;
10218
10219 sysv4*MP*)
10220 if test -d /usr/nec; then
10221 lt_prog_compiler_pic='-Kconform_pic'
10222 lt_prog_compiler_static='-Bstatic'
10223 fi
10224 ;;
10225
10226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10227 lt_prog_compiler_wl='-Wl,'
10228 lt_prog_compiler_pic='-KPIC'
10229 lt_prog_compiler_static='-Bstatic'
10230 ;;
10231
10232 unicos*)
10233 lt_prog_compiler_wl='-Wl,'
10234 lt_prog_compiler_can_build_shared=no
10235 ;;
10236
10237 uts4*)
10238 lt_prog_compiler_pic='-pic'
10239 lt_prog_compiler_static='-Bstatic'
10240 ;;
10241
10242 *)
10243 lt_prog_compiler_can_build_shared=no
10244 ;;
10245 esac
10246 fi
10247
10248 case $host_os in
10249 # For platforms that do not support PIC, -DPIC is meaningless:
10250 *djgpp*)
10251 lt_prog_compiler_pic=
10252 ;;
10253 *)
10254 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10255 ;;
10256 esac
10257
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10259 printf %s "checking for $compiler option to produce PIC... " >&6; }
10260 if test ${lt_cv_prog_compiler_pic+y}
10261 then :
10262 printf %s "(cached) " >&6
10263 else case e in #(
10264 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10265 esac
10266 fi
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10268 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10269 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10270
10271 #
10272 # Check to make sure the PIC flag actually works.
10273 #
10274 if test -n "$lt_prog_compiler_pic"; then
10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10276 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10277 if test ${lt_cv_prog_compiler_pic_works+y}
10278 then :
10279 printf %s "(cached) " >&6
10280 else case e in #(
10281 e) lt_cv_prog_compiler_pic_works=no
10282 ac_outfile=conftest.$ac_objext
10283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10284 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10285 # Insert the option either (1) after the last *FLAGS variable, or
10286 # (2) before a word containing "conftest.", or (3) at the end.
10287 # Note that $ac_compile itself does not contain backslashes and begins
10288 # with a dollar sign (not a hyphen), so the echo should work correctly.
10289 # The option is referenced via a variable to avoid confusing sed.
10290 lt_compile=`echo "$ac_compile" | $SED \
10291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10293 -e 's:$: $lt_compiler_flag:'`
10294 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10295 (eval "$lt_compile" 2>conftest.err)
10296 ac_status=$?
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 if (exit $ac_status) && test -s "$ac_outfile"; then
10300 # The compiler can only warn and ignore the option if not recognized
10301 # So say no if there are warnings other than the usual output.
10302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10305 lt_cv_prog_compiler_pic_works=yes
10306 fi
10307 fi
10308 $RM conftest*
10309 ;;
10310 esac
10311 fi
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10313 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10314
10315 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10316 case $lt_prog_compiler_pic in
10317 "" | " "*) ;;
10318 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10319 esac
10320 else
10321 lt_prog_compiler_pic=
10322 lt_prog_compiler_can_build_shared=no
10323 fi
10324
10325 fi
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337 #
10338 # Check to make sure the static flag actually works.
10339 #
10340 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10342 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10343 if test ${lt_cv_prog_compiler_static_works+y}
10344 then :
10345 printf %s "(cached) " >&6
10346 else case e in #(
10347 e) lt_cv_prog_compiler_static_works=no
10348 save_LDFLAGS=$LDFLAGS
10349 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10350 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10352 # The linker can only warn and ignore the option if not recognized
10353 # So say no if there are warnings
10354 if test -s conftest.err; then
10355 # Append any errors to the config.log.
10356 cat conftest.err 1>&5
10357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10359 if diff conftest.exp conftest.er2 >/dev/null; then
10360 lt_cv_prog_compiler_static_works=yes
10361 fi
10362 else
10363 lt_cv_prog_compiler_static_works=yes
10364 fi
10365 fi
10366 $RM -r conftest*
10367 LDFLAGS=$save_LDFLAGS
10368 ;;
10369 esac
10370 fi
10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10372 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10373
10374 if test yes = "$lt_cv_prog_compiler_static_works"; then
10375 :
10376 else
10377 lt_prog_compiler_static=
10378 fi
10379
10380
10381
10382
10383
10384
10385
10386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10387 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10388 if test ${lt_cv_prog_compiler_c_o+y}
10389 then :
10390 printf %s "(cached) " >&6
10391 else case e in #(
10392 e) lt_cv_prog_compiler_c_o=no
10393 $RM -r conftest 2>/dev/null
10394 mkdir conftest
10395 cd conftest
10396 mkdir out
10397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10398
10399 lt_compiler_flag="-o out/conftest2.$ac_objext"
10400 # Insert the option either (1) after the last *FLAGS variable, or
10401 # (2) before a word containing "conftest.", or (3) at the end.
10402 # Note that $ac_compile itself does not contain backslashes and begins
10403 # with a dollar sign (not a hyphen), so the echo should work correctly.
10404 lt_compile=`echo "$ac_compile" | $SED \
10405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10407 -e 's:$: $lt_compiler_flag:'`
10408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10409 (eval "$lt_compile" 2>out/conftest.err)
10410 ac_status=$?
10411 cat out/conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10414 then
10415 # The compiler can only warn and ignore the option if not recognized
10416 # So say no if there are warnings
10417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10420 lt_cv_prog_compiler_c_o=yes
10421 fi
10422 fi
10423 chmod u+w . 2>&5
10424 $RM conftest*
10425 # SGI C++ compiler will create directory out/ii_files/ for
10426 # template instantiation
10427 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10428 $RM out/* && rmdir out
10429 cd ..
10430 $RM -r conftest
10431 $RM conftest*
10432 ;;
10433 esac
10434 fi
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10436 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10437
10438
10439
10440
10441
10442
10443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10444 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10445 if test ${lt_cv_prog_compiler_c_o+y}
10446 then :
10447 printf %s "(cached) " >&6
10448 else case e in #(
10449 e) lt_cv_prog_compiler_c_o=no
10450 $RM -r conftest 2>/dev/null
10451 mkdir conftest
10452 cd conftest
10453 mkdir out
10454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10455
10456 lt_compiler_flag="-o out/conftest2.$ac_objext"
10457 # Insert the option either (1) after the last *FLAGS variable, or
10458 # (2) before a word containing "conftest.", or (3) at the end.
10459 # Note that $ac_compile itself does not contain backslashes and begins
10460 # with a dollar sign (not a hyphen), so the echo should work correctly.
10461 lt_compile=`echo "$ac_compile" | $SED \
10462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10464 -e 's:$: $lt_compiler_flag:'`
10465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10466 (eval "$lt_compile" 2>out/conftest.err)
10467 ac_status=$?
10468 cat out/conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10471 then
10472 # The compiler can only warn and ignore the option if not recognized
10473 # So say no if there are warnings
10474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10475 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10476 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10477 lt_cv_prog_compiler_c_o=yes
10478 fi
10479 fi
10480 chmod u+w . 2>&5
10481 $RM conftest*
10482 # SGI C++ compiler will create directory out/ii_files/ for
10483 # template instantiation
10484 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10485 $RM out/* && rmdir out
10486 cd ..
10487 $RM -r conftest
10488 $RM conftest*
10489 ;;
10490 esac
10491 fi
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10493 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10494
10495
10496
10497
10498 hard_links=nottested
10499 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10500 # do not overwrite the value of need_locks provided by the user
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10502 printf %s "checking if we can lock with hard links... " >&6; }
10503 hard_links=yes
10504 $RM conftest*
10505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10506 touch conftest.a
10507 ln conftest.a conftest.b 2>&5 || hard_links=no
10508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10510 printf "%s\n" "$hard_links" >&6; }
10511 if test no = "$hard_links"; then
10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10513 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10514 need_locks=warn
10515 fi
10516 else
10517 need_locks=no
10518 fi
10519
10520
10521
10522
10523
10524
10525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10526 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10527
10528 runpath_var=
10529 allow_undefined_flag=
10530 always_export_symbols=no
10531 archive_cmds=
10532 archive_expsym_cmds=
10533 compiler_needs_object=no
10534 enable_shared_with_static_runtimes=no
10535 export_dynamic_flag_spec=
10536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10537 hardcode_automatic=no
10538 hardcode_direct=no
10539 hardcode_direct_absolute=no
10540 hardcode_libdir_flag_spec=
10541 hardcode_libdir_separator=
10542 hardcode_minus_L=no
10543 hardcode_shlibpath_var=unsupported
10544 inherit_rpath=no
10545 link_all_deplibs=unknown
10546 module_cmds=
10547 module_expsym_cmds=
10548 old_archive_from_new_cmds=
10549 old_archive_from_expsyms_cmds=
10550 thread_safe_flag_spec=
10551 whole_archive_flag_spec=
10552 # include_expsyms should be a list of space-separated symbols to be *always*
10553 # included in the symbol list
10554 include_expsyms=
10555 # exclude_expsyms can be an extended regexp of symbols to exclude
10556 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10557 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10558 # as well as any symbol that contains 'd'.
10559 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10560 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10561 # platforms (ab)use it in PIC code, but their linkers get confused if
10562 # the symbol is explicitly referenced. Since portable code cannot
10563 # rely on this symbol name, it's probably fine to never include it in
10564 # preloaded symbol tables.
10565 # Exclude shared library initialization/finalization symbols.
10566 extract_expsyms_cmds=
10567
10568 case $host_os in
10569 cygwin* | mingw* | pw32* | cegcc*)
10570 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10571 # When not using gcc, we currently assume that we are using
10572 # Microsoft Visual C++ or Intel C++ Compiler.
10573 if test yes != "$GCC"; then
10574 with_gnu_ld=no
10575 fi
10576 ;;
10577 interix*)
10578 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10579 with_gnu_ld=yes
10580 ;;
10581 openbsd* | bitrig*)
10582 with_gnu_ld=no
10583 ;;
10584 esac
10585
10586 ld_shlibs=yes
10587
10588 # On some targets, GNU ld is compatible enough with the native linker
10589 # that we're better off using the native interface for both.
10590 lt_use_gnu_ld_interface=no
10591 if test yes = "$with_gnu_ld"; then
10592 case $host_os in
10593 aix*)
10594 # The AIX port of GNU ld has always aspired to compatibility
10595 # with the native linker. However, as the warning in the GNU ld
10596 # block says, versions before 2.19.5* couldn't really create working
10597 # shared libraries, regardless of the interface used.
10598 case `$LD -v 2>&1` in
10599 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10600 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10601 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10602 *)
10603 lt_use_gnu_ld_interface=yes
10604 ;;
10605 esac
10606 ;;
10607 *)
10608 lt_use_gnu_ld_interface=yes
10609 ;;
10610 esac
10611 fi
10612
10613 if test yes = "$lt_use_gnu_ld_interface"; then
10614 # If archive_cmds runs LD, not CC, wlarc should be empty
10615 wlarc='$wl'
10616
10617 # Set some defaults for GNU ld with shared library support. These
10618 # are reset later if shared libraries are not supported. Putting them
10619 # here allows them to be overridden if necessary.
10620 runpath_var=LD_RUN_PATH
10621 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10622 export_dynamic_flag_spec='$wl--export-dynamic'
10623 # ancient GNU ld didn't support --whole-archive et. al.
10624 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10625 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10626 else
10627 whole_archive_flag_spec=
10628 fi
10629 supports_anon_versioning=no
10630 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10631 *GNU\ gold*) supports_anon_versioning=yes ;;
10632 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10633 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10634 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10635 *\ 2.11.*) ;; # other 2.11 versions
10636 *) supports_anon_versioning=yes ;;
10637 esac
10638
10639 # See if GNU ld supports shared libraries.
10640 case $host_os in
10641 aix[3-9]*)
10642 # On AIX/PPC, the GNU linker is very broken
10643 if test ia64 != "$host_cpu"; then
10644 ld_shlibs=no
10645 cat <<_LT_EOF 1>&2
10646
10647 *** Warning: the GNU linker, at least up to release 2.19, is reported
10648 *** to be unable to reliably create shared libraries on AIX.
10649 *** Therefore, libtool is disabling shared libraries support. If you
10650 *** really care for shared libraries, you may want to install binutils
10651 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10652 *** You will then need to restart the configuration process.
10653
10654 _LT_EOF
10655 fi
10656 ;;
10657
10658 amigaos*)
10659 case $host_cpu in
10660 powerpc)
10661 # see comment about AmigaOS4 .so support
10662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10663 archive_expsym_cmds=''
10664 ;;
10665 m68k)
10666 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)'
10667 hardcode_libdir_flag_spec='-L$libdir'
10668 hardcode_minus_L=yes
10669 ;;
10670 esac
10671 ;;
10672
10673 beos*)
10674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10675 allow_undefined_flag=unsupported
10676 # Joseph Beckenbach <[email protected]> says some releases of gcc
10677 # support --undefined. This deserves some investigation. FIXME
10678 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10679 else
10680 ld_shlibs=no
10681 fi
10682 ;;
10683
10684 cygwin* | mingw* | pw32* | cegcc*)
10685 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10686 # as there is no search path for DLLs.
10687 hardcode_libdir_flag_spec='-L$libdir'
10688 export_dynamic_flag_spec='$wl--export-all-symbols'
10689 allow_undefined_flag=unsupported
10690 always_export_symbols=no
10691 enable_shared_with_static_runtimes=yes
10692 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'
10693 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10694
10695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10697 # If the export-symbols file already is a .def file, use it as
10698 # is; otherwise, prepend EXPORTS...
10699 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10700 cp $export_symbols $output_objdir/$soname.def;
10701 else
10702 echo EXPORTS > $output_objdir/$soname.def;
10703 cat $export_symbols >> $output_objdir/$soname.def;
10704 fi~
10705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10706 else
10707 ld_shlibs=no
10708 fi
10709 ;;
10710
10711 haiku*)
10712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10713 link_all_deplibs=yes
10714 ;;
10715
10716 os2*)
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_minus_L=yes
10719 allow_undefined_flag=unsupported
10720 shrext_cmds=.dll
10721 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10722 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10723 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10724 $ECHO EXPORTS >> $output_objdir/$libname.def~
10725 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10726 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10727 emximp -o $lib $output_objdir/$libname.def'
10728 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10729 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10730 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10731 $ECHO EXPORTS >> $output_objdir/$libname.def~
10732 prefix_cmds="$SED"~
10733 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10734 prefix_cmds="$prefix_cmds -e 1d";
10735 fi~
10736 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10737 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10738 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10739 emximp -o $lib $output_objdir/$libname.def'
10740 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10741 enable_shared_with_static_runtimes=yes
10742 file_list_spec='@'
10743 ;;
10744
10745 interix[3-9]*)
10746 hardcode_direct=no
10747 hardcode_shlibpath_var=no
10748 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10749 export_dynamic_flag_spec='$wl-E'
10750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10751 # Instead, shared libraries are loaded at an image base (0x10000000 by
10752 # default) and relocated if they conflict, which is a slow very memory
10753 # consuming and fragmenting process. To avoid this, we pick a random,
10754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10755 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10756 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10757 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'
10758 ;;
10759
10760 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10761 tmp_diet=no
10762 if test linux-dietlibc = "$host_os"; then
10763 case $cc_basename in
10764 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10765 esac
10766 fi
10767 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10768 && test no = "$tmp_diet"
10769 then
10770 tmp_addflag=' $pic_flag'
10771 tmp_sharedflag='-shared'
10772 case $cc_basename,$host_cpu in
10773 pgcc*) # Portland Group C compiler
10774 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'
10775 tmp_addflag=' $pic_flag'
10776 ;;
10777 pgf77* | pgf90* | pgf95* | pgfortran*)
10778 # Portland Group f77 and f90 compilers
10779 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'
10780 tmp_addflag=' $pic_flag -Mnomain' ;;
10781 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10782 tmp_addflag=' -i_dynamic' ;;
10783 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10784 tmp_addflag=' -i_dynamic -nofor_main' ;;
10785 ifc* | ifort*) # Intel Fortran compiler
10786 tmp_addflag=' -nofor_main' ;;
10787 lf95*) # Lahey Fortran 8.1
10788 whole_archive_flag_spec=
10789 tmp_sharedflag='--shared' ;;
10790 nagfor*) # NAGFOR 5.3
10791 tmp_sharedflag='-Wl,-shared' ;;
10792 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10793 tmp_sharedflag='-qmkshrobj'
10794 tmp_addflag= ;;
10795 nvcc*) # Cuda Compiler Driver 2.2
10796 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'
10797 compiler_needs_object=yes
10798 ;;
10799 esac
10800 case `$CC -V 2>&1 | $SED 5q` in
10801 *Sun\ C*) # Sun C 5.9
10802 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'
10803 compiler_needs_object=yes
10804 tmp_sharedflag='-G' ;;
10805 *Sun\ F*) # Sun Fortran 8.3
10806 tmp_sharedflag='-G' ;;
10807 esac
10808 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10809
10810 if test yes = "$supports_anon_versioning"; then
10811 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10812 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10813 echo "local: *; };" >> $output_objdir/$libname.ver~
10814 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10815 fi
10816
10817 case $cc_basename in
10818 tcc*)
10819 export_dynamic_flag_spec='-rdynamic'
10820 ;;
10821 xlf* | bgf* | bgxlf* | mpixlf*)
10822 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10823 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10824 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10825 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10826 if test yes = "$supports_anon_versioning"; then
10827 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10828 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10829 echo "local: *; };" >> $output_objdir/$libname.ver~
10830 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10831 fi
10832 ;;
10833 esac
10834 else
10835 ld_shlibs=no
10836 fi
10837 ;;
10838
10839 netbsd*)
10840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10841 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10842 wlarc=
10843 else
10844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10845 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10846 fi
10847 ;;
10848
10849 solaris*)
10850 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10851 ld_shlibs=no
10852 cat <<_LT_EOF 1>&2
10853
10854 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10855 *** create shared libraries on Solaris systems. Therefore, libtool
10856 *** is disabling shared libraries support. We urge you to upgrade GNU
10857 *** binutils to release 2.9.1 or newer. Another option is to modify
10858 *** your PATH or compiler configuration so that the native linker is
10859 *** used, and then restart.
10860
10861 _LT_EOF
10862 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10863 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10864 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10865 else
10866 ld_shlibs=no
10867 fi
10868 ;;
10869
10870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10871 case `$LD -v 2>&1` in
10872 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10873 ld_shlibs=no
10874 cat <<_LT_EOF 1>&2
10875
10876 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10877 *** reliably create shared libraries on SCO systems. Therefore, libtool
10878 *** is disabling shared libraries support. We urge you to upgrade GNU
10879 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10880 *** your PATH or compiler configuration so that the native linker is
10881 *** used, and then restart.
10882
10883 _LT_EOF
10884 ;;
10885 *)
10886 # For security reasons, it is highly recommended that you always
10887 # use absolute paths for naming shared libraries, and exclude the
10888 # DT_RUNPATH tag from executables and libraries. But doing so
10889 # requires that you compile everything twice, which is a pain.
10890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10891 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10894 else
10895 ld_shlibs=no
10896 fi
10897 ;;
10898 esac
10899 ;;
10900
10901 sunos4*)
10902 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10903 wlarc=
10904 hardcode_direct=yes
10905 hardcode_shlibpath_var=no
10906 ;;
10907
10908 *)
10909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10910 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10911 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10912 else
10913 ld_shlibs=no
10914 fi
10915 ;;
10916 esac
10917
10918 if test no = "$ld_shlibs"; then
10919 runpath_var=
10920 hardcode_libdir_flag_spec=
10921 export_dynamic_flag_spec=
10922 whole_archive_flag_spec=
10923 fi
10924 else
10925 # PORTME fill in a description of your system's linker (not GNU ld)
10926 case $host_os in
10927 aix3*)
10928 allow_undefined_flag=unsupported
10929 always_export_symbols=yes
10930 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'
10931 # Note: this linker hardcodes the directories in LIBPATH if there
10932 # are no directories specified by -L.
10933 hardcode_minus_L=yes
10934 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10935 # Neither direct hardcoding nor static linking is supported with a
10936 # broken collect2.
10937 hardcode_direct=unsupported
10938 fi
10939 ;;
10940
10941 aix[4-9]*)
10942 if test ia64 = "$host_cpu"; then
10943 # On IA64, the linker does run time linking by default, so we don't
10944 # have to do anything special.
10945 aix_use_runtimelinking=no
10946 exp_sym_flag='-Bexport'
10947 no_entry_flag=
10948 else
10949 # If we're using GNU nm, then we don't want the "-C" option.
10950 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10951 # Without the "-l" option, or with the "-B" option, AIX nm treats
10952 # weak defined symbols like other global defined symbols, whereas
10953 # GNU nm marks them as "W".
10954 # While the 'weak' keyword is ignored in the Export File, we need
10955 # it in the Import File for the 'aix-soname' feature, so we have
10956 # to replace the "-B" option with "-P" for AIX nm.
10957 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10958 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'
10959 else
10960 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'
10961 fi
10962 aix_use_runtimelinking=no
10963
10964 # Test if we are trying to use run time linking or normal
10965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10966 # have runtime linking enabled, and use it for executables.
10967 # For shared libraries, we enable/disable runtime linking
10968 # depending on the kind of the shared library created -
10969 # when "with_aix_soname,aix_use_runtimelinking" is:
10970 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10971 # "aix,yes" lib.so shared, rtl:yes, for executables
10972 # lib.a static archive
10973 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10974 # lib.a(lib.so.V) shared, rtl:no, for executables
10975 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10976 # lib.a(lib.so.V) shared, rtl:no
10977 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10978 # lib.a static archive
10979 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10980 for ld_flag in $LDFLAGS; do
10981 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10982 aix_use_runtimelinking=yes
10983 break
10984 fi
10985 done
10986 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10987 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10988 # so we don't have lib.a shared libs to link our executables.
10989 # We have to force runtime linking in this case.
10990 aix_use_runtimelinking=yes
10991 LDFLAGS="$LDFLAGS -Wl,-brtl"
10992 fi
10993 ;;
10994 esac
10995
10996 exp_sym_flag='-bexport'
10997 no_entry_flag='-bnoentry'
10998 fi
10999
11000 # When large executables or shared objects are built, AIX ld can
11001 # have problems creating the table of contents. If linking a library
11002 # or program results in "error TOC overflow" add -mminimal-toc to
11003 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11004 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11005
11006 archive_cmds=''
11007 hardcode_direct=yes
11008 hardcode_direct_absolute=yes
11009 hardcode_libdir_separator=':'
11010 link_all_deplibs=yes
11011 file_list_spec='$wl-f,'
11012 case $with_aix_soname,$aix_use_runtimelinking in
11013 aix,*) ;; # traditional, no import file
11014 svr4,* | *,yes) # use import file
11015 # The Import File defines what to hardcode.
11016 hardcode_direct=no
11017 hardcode_direct_absolute=no
11018 ;;
11019 esac
11020
11021 if test yes = "$GCC"; then
11022 case $host_os in aix4.[012]|aix4.[012].*)
11023 # We only want to do this on AIX 4.2 and lower, the check
11024 # below for broken collect2 doesn't work under 4.3+
11025 collect2name=`$CC -print-prog-name=collect2`
11026 if test -f "$collect2name" &&
11027 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11028 then
11029 # We have reworked collect2
11030 :
11031 else
11032 # We have old collect2
11033 hardcode_direct=unsupported
11034 # It fails to find uninstalled libraries when the uninstalled
11035 # path is not listed in the libpath. Setting hardcode_minus_L
11036 # to unsupported forces relinking
11037 hardcode_minus_L=yes
11038 hardcode_libdir_flag_spec='-L$libdir'
11039 hardcode_libdir_separator=
11040 fi
11041 ;;
11042 esac
11043 shared_flag='-shared'
11044 if test yes = "$aix_use_runtimelinking"; then
11045 shared_flag="$shared_flag "'$wl-G'
11046 fi
11047 # Need to ensure runtime linking is disabled for the traditional
11048 # shared library, or the linker may eventually find shared libraries
11049 # /with/ Import File - we do not want to mix them.
11050 shared_flag_aix='-shared'
11051 shared_flag_svr4='-shared $wl-G'
11052 else
11053 # not using gcc
11054 if test ia64 = "$host_cpu"; then
11055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11056 # chokes on -Wl,-G. The following line is correct:
11057 shared_flag='-G'
11058 else
11059 if test yes = "$aix_use_runtimelinking"; then
11060 shared_flag='$wl-G'
11061 else
11062 shared_flag='$wl-bM:SRE'
11063 fi
11064 shared_flag_aix='$wl-bM:SRE'
11065 shared_flag_svr4='$wl-G'
11066 fi
11067 fi
11068
11069 export_dynamic_flag_spec='$wl-bexpall'
11070 # It seems that -bexpall does not export symbols beginning with
11071 # underscore (_), so it is better to generate a list of symbols to export.
11072 always_export_symbols=yes
11073 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11074 # Warning - without using the other runtime loading flags (-brtl),
11075 # -berok will link without error, but may produce a broken library.
11076 allow_undefined_flag='-berok'
11077 # Determine the default libpath from the value encoded in an
11078 # empty executable.
11079 if test set = "${lt_cv_aix_libpath+set}"; then
11080 aix_libpath=$lt_cv_aix_libpath
11081 else
11082 if test ${lt_cv_aix_libpath_+y}
11083 then :
11084 printf %s "(cached) " >&6
11085 else case e in #(
11086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11088
11089 int
11090 main (void)
11091 {
11092
11093 ;
11094 return 0;
11095 }
11096 _ACEOF
11097 if ac_fn_c_try_link "$LINENO"
11098 then :
11099
11100 lt_aix_libpath_sed='
11101 /Import File Strings/,/^$/ {
11102 /^0/ {
11103 s/^0 *\([^ ]*\) *$/\1/
11104 p
11105 }
11106 }'
11107 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11108 # Check for a 64-bit object if we didn't find anything.
11109 if test -z "$lt_cv_aix_libpath_"; then
11110 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11111 fi
11112 fi
11113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11114 conftest$ac_exeext conftest.$ac_ext
11115 if test -z "$lt_cv_aix_libpath_"; then
11116 lt_cv_aix_libpath_=/usr/lib:/lib
11117 fi
11118 ;;
11119 esac
11120 fi
11121
11122 aix_libpath=$lt_cv_aix_libpath_
11123 fi
11124
11125 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11126 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
11127 else
11128 if test ia64 = "$host_cpu"; then
11129 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11130 allow_undefined_flag="-z nodefs"
11131 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"
11132 else
11133 # Determine the default libpath from the value encoded in an
11134 # empty executable.
11135 if test set = "${lt_cv_aix_libpath+set}"; then
11136 aix_libpath=$lt_cv_aix_libpath
11137 else
11138 if test ${lt_cv_aix_libpath_+y}
11139 then :
11140 printf %s "(cached) " >&6
11141 else case e in #(
11142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11144
11145 int
11146 main (void)
11147 {
11148
11149 ;
11150 return 0;
11151 }
11152 _ACEOF
11153 if ac_fn_c_try_link "$LINENO"
11154 then :
11155
11156 lt_aix_libpath_sed='
11157 /Import File Strings/,/^$/ {
11158 /^0/ {
11159 s/^0 *\([^ ]*\) *$/\1/
11160 p
11161 }
11162 }'
11163 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11164 # Check for a 64-bit object if we didn't find anything.
11165 if test -z "$lt_cv_aix_libpath_"; then
11166 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11167 fi
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11170 conftest$ac_exeext conftest.$ac_ext
11171 if test -z "$lt_cv_aix_libpath_"; then
11172 lt_cv_aix_libpath_=/usr/lib:/lib
11173 fi
11174 ;;
11175 esac
11176 fi
11177
11178 aix_libpath=$lt_cv_aix_libpath_
11179 fi
11180
11181 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11182 # Warning - without using the other run time loading flags,
11183 # -berok will link without error, but may produce a broken library.
11184 no_undefined_flag=' $wl-bernotok'
11185 allow_undefined_flag=' $wl-berok'
11186 if test yes = "$with_gnu_ld"; then
11187 # We only use this code for GNU lds that support --whole-archive.
11188 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11189 else
11190 # Exported symbols can be pulled into shared objects from archives
11191 whole_archive_flag_spec='$convenience'
11192 fi
11193 archive_cmds_need_lc=yes
11194 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11195 # -brtl affects multiple linker settings, -berok does not and is overridden later
11196 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11197 if test svr4 != "$with_aix_soname"; then
11198 # This is similar to how AIX traditionally builds its shared libraries.
11199 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'
11200 fi
11201 if test aix != "$with_aix_soname"; then
11202 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'
11203 else
11204 # used by -dlpreopen to get the symbols
11205 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11206 fi
11207 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11208 fi
11209 fi
11210 ;;
11211
11212 amigaos*)
11213 case $host_cpu in
11214 powerpc)
11215 # see comment about AmigaOS4 .so support
11216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11217 archive_expsym_cmds=''
11218 ;;
11219 m68k)
11220 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)'
11221 hardcode_libdir_flag_spec='-L$libdir'
11222 hardcode_minus_L=yes
11223 ;;
11224 esac
11225 ;;
11226
11227 bsdi[45]*)
11228 export_dynamic_flag_spec=-rdynamic
11229 ;;
11230
11231 cygwin* | mingw* | pw32* | cegcc*)
11232 # When not using gcc, we currently assume that we are using
11233 # Microsoft Visual C++ or Intel C++ Compiler.
11234 # hardcode_libdir_flag_spec is actually meaningless, as there is
11235 # no search path for DLLs.
11236 case $cc_basename in
11237 cl* | icl*)
11238 # Native MSVC or ICC
11239 hardcode_libdir_flag_spec=' '
11240 allow_undefined_flag=unsupported
11241 always_export_symbols=yes
11242 file_list_spec='@'
11243 # Tell ltmain to make .lib files, not .a files.
11244 libext=lib
11245 # Tell ltmain to make .dll files, not .so files.
11246 shrext_cmds=.dll
11247 # FIXME: Setting linknames here is a bad hack.
11248 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11249 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11250 cp "$export_symbols" "$output_objdir/$soname.def";
11251 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11252 else
11253 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11254 fi~
11255 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11256 linknames='
11257 # The linker will not automatically build a static lib if we build a DLL.
11258 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11259 enable_shared_with_static_runtimes=yes
11260 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11261 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11262 # Don't use ranlib
11263 old_postinstall_cmds='chmod 644 $oldlib'
11264 postlink_cmds='lt_outputfile="@OUTPUT@"~
11265 lt_tool_outputfile="@TOOL_OUTPUT@"~
11266 case $lt_outputfile in
11267 *.exe|*.EXE) ;;
11268 *)
11269 lt_outputfile=$lt_outputfile.exe
11270 lt_tool_outputfile=$lt_tool_outputfile.exe
11271 ;;
11272 esac~
11273 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11274 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11275 $RM "$lt_outputfile.manifest";
11276 fi'
11277 ;;
11278 *)
11279 # Assume MSVC and ICC wrapper
11280 hardcode_libdir_flag_spec=' '
11281 allow_undefined_flag=unsupported
11282 # Tell ltmain to make .lib files, not .a files.
11283 libext=lib
11284 # Tell ltmain to make .dll files, not .so files.
11285 shrext_cmds=.dll
11286 # FIXME: Setting linknames here is a bad hack.
11287 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11288 # The linker will automatically build a .lib file if we build a DLL.
11289 old_archive_from_new_cmds='true'
11290 # FIXME: Should let the user specify the lib program.
11291 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11292 enable_shared_with_static_runtimes=yes
11293 ;;
11294 esac
11295 ;;
11296
11297 darwin* | rhapsody*)
11298
11299
11300 archive_cmds_need_lc=no
11301 hardcode_direct=no
11302 hardcode_automatic=yes
11303 hardcode_shlibpath_var=unsupported
11304 if test yes = "$lt_cv_ld_force_load"; then
11305 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\"`'
11306
11307 else
11308 whole_archive_flag_spec=''
11309 fi
11310 link_all_deplibs=yes
11311 allow_undefined_flag=$_lt_dar_allow_undefined
11312 case $cc_basename in
11313 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11314 *) _lt_dar_can_shared=$GCC ;;
11315 esac
11316 if test yes = "$_lt_dar_can_shared"; then
11317 output_verbose_link_cmd=func_echo_all
11318 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11319 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11320 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"
11321 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"
11322
11323 else
11324 ld_shlibs=no
11325 fi
11326
11327 ;;
11328
11329 dgux*)
11330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11331 hardcode_libdir_flag_spec='-L$libdir'
11332 hardcode_shlibpath_var=no
11333 ;;
11334
11335 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11336 # support. Future versions do this automatically, but an explicit c++rt0.o
11337 # does not break anything, and helps significantly (at the cost of a little
11338 # extra space).
11339 freebsd2.2*)
11340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11341 hardcode_libdir_flag_spec='-R$libdir'
11342 hardcode_direct=yes
11343 hardcode_shlibpath_var=no
11344 ;;
11345
11346 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11347 freebsd2.*)
11348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11349 hardcode_direct=yes
11350 hardcode_minus_L=yes
11351 hardcode_shlibpath_var=no
11352 ;;
11353
11354 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11355 freebsd* | dragonfly* | midnightbsd*)
11356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11357 hardcode_libdir_flag_spec='-R$libdir'
11358 hardcode_direct=yes
11359 hardcode_shlibpath_var=no
11360 ;;
11361
11362 hpux9*)
11363 if test yes = "$GCC"; then
11364 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'
11365 else
11366 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'
11367 fi
11368 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11369 hardcode_libdir_separator=:
11370 hardcode_direct=yes
11371
11372 # hardcode_minus_L: Not really in the search PATH,
11373 # but as the default location of the library.
11374 hardcode_minus_L=yes
11375 export_dynamic_flag_spec='$wl-E'
11376 ;;
11377
11378 hpux10*)
11379 if test yes,no = "$GCC,$with_gnu_ld"; then
11380 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11381 else
11382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11383 fi
11384 if test no = "$with_gnu_ld"; then
11385 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11386 hardcode_libdir_separator=:
11387 hardcode_direct=yes
11388 hardcode_direct_absolute=yes
11389 export_dynamic_flag_spec='$wl-E'
11390 # hardcode_minus_L: Not really in the search PATH,
11391 # but as the default location of the library.
11392 hardcode_minus_L=yes
11393 fi
11394 ;;
11395
11396 hpux11*)
11397 if test yes,no = "$GCC,$with_gnu_ld"; then
11398 case $host_cpu in
11399 hppa*64*)
11400 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 ;;
11402 ia64*)
11403 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11404 ;;
11405 *)
11406 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11407 ;;
11408 esac
11409 else
11410 case $host_cpu in
11411 hppa*64*)
11412 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11413 ;;
11414 ia64*)
11415 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11416 ;;
11417 *)
11418
11419 # Older versions of the 11.00 compiler do not understand -b yet
11420 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11422 printf %s "checking if $CC understands -b... " >&6; }
11423 if test ${lt_cv_prog_compiler__b+y}
11424 then :
11425 printf %s "(cached) " >&6
11426 else case e in #(
11427 e) lt_cv_prog_compiler__b=no
11428 save_LDFLAGS=$LDFLAGS
11429 LDFLAGS="$LDFLAGS -b"
11430 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11431 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11432 # The linker can only warn and ignore the option if not recognized
11433 # So say no if there are warnings
11434 if test -s conftest.err; then
11435 # Append any errors to the config.log.
11436 cat conftest.err 1>&5
11437 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11439 if diff conftest.exp conftest.er2 >/dev/null; then
11440 lt_cv_prog_compiler__b=yes
11441 fi
11442 else
11443 lt_cv_prog_compiler__b=yes
11444 fi
11445 fi
11446 $RM -r conftest*
11447 LDFLAGS=$save_LDFLAGS
11448 ;;
11449 esac
11450 fi
11451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11452 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11453
11454 if test yes = "$lt_cv_prog_compiler__b"; then
11455 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11456 else
11457 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11458 fi
11459
11460 ;;
11461 esac
11462 fi
11463 if test no = "$with_gnu_ld"; then
11464 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11465 hardcode_libdir_separator=:
11466
11467 case $host_cpu in
11468 hppa*64*|ia64*)
11469 hardcode_direct=no
11470 hardcode_shlibpath_var=no
11471 ;;
11472 *)
11473 hardcode_direct=yes
11474 hardcode_direct_absolute=yes
11475 export_dynamic_flag_spec='$wl-E'
11476
11477 # hardcode_minus_L: Not really in the search PATH,
11478 # but as the default location of the library.
11479 hardcode_minus_L=yes
11480 ;;
11481 esac
11482 fi
11483 ;;
11484
11485 irix5* | irix6* | nonstopux*)
11486 if test yes = "$GCC"; then
11487 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'
11488 # Try to use the -exported_symbol ld option, if it does not
11489 # work, assume that -exports_file does not work either and
11490 # implicitly export all symbols.
11491 # This should be the same for all languages, so no per-tag cache variable.
11492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11493 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11494 if test ${lt_cv_irix_exported_symbol+y}
11495 then :
11496 printf %s "(cached) " >&6
11497 else case e in #(
11498 e) save_LDFLAGS=$LDFLAGS
11499 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502 int foo (void) { return 0; }
11503 _ACEOF
11504 if ac_fn_c_try_link "$LINENO"
11505 then :
11506 lt_cv_irix_exported_symbol=yes
11507 else case e in #(
11508 e) lt_cv_irix_exported_symbol=no ;;
11509 esac
11510 fi
11511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11512 conftest$ac_exeext conftest.$ac_ext
11513 LDFLAGS=$save_LDFLAGS ;;
11514 esac
11515 fi
11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11517 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11518 if test yes = "$lt_cv_irix_exported_symbol"; then
11519 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'
11520 fi
11521 else
11522 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'
11523 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'
11524 fi
11525 archive_cmds_need_lc='no'
11526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11527 hardcode_libdir_separator=:
11528 inherit_rpath=yes
11529 link_all_deplibs=yes
11530 ;;
11531
11532 linux*)
11533 case $cc_basename in
11534 tcc*)
11535 # Fabrice Bellard et al's Tiny C Compiler
11536 ld_shlibs=yes
11537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11538 ;;
11539 esac
11540 ;;
11541
11542 netbsd*)
11543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11545 else
11546 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11547 fi
11548 hardcode_libdir_flag_spec='-R$libdir'
11549 hardcode_direct=yes
11550 hardcode_shlibpath_var=no
11551 ;;
11552
11553 newsos6)
11554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11555 hardcode_direct=yes
11556 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11557 hardcode_libdir_separator=:
11558 hardcode_shlibpath_var=no
11559 ;;
11560
11561 *nto* | *qnx*)
11562 ;;
11563
11564 openbsd* | bitrig*)
11565 if test -f /usr/libexec/ld.so; then
11566 hardcode_direct=yes
11567 hardcode_shlibpath_var=no
11568 hardcode_direct_absolute=yes
11569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11571 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11572 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11573 export_dynamic_flag_spec='$wl-E'
11574 else
11575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11576 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11577 fi
11578 else
11579 ld_shlibs=no
11580 fi
11581 ;;
11582
11583 os2*)
11584 hardcode_libdir_flag_spec='-L$libdir'
11585 hardcode_minus_L=yes
11586 allow_undefined_flag=unsupported
11587 shrext_cmds=.dll
11588 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11589 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11590 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11591 $ECHO EXPORTS >> $output_objdir/$libname.def~
11592 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11593 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11594 emximp -o $lib $output_objdir/$libname.def'
11595 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11596 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11597 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11598 $ECHO EXPORTS >> $output_objdir/$libname.def~
11599 prefix_cmds="$SED"~
11600 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11601 prefix_cmds="$prefix_cmds -e 1d";
11602 fi~
11603 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11604 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11605 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11606 emximp -o $lib $output_objdir/$libname.def'
11607 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11608 enable_shared_with_static_runtimes=yes
11609 file_list_spec='@'
11610 ;;
11611
11612 osf3*)
11613 if test yes = "$GCC"; then
11614 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11615 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'
11616 else
11617 allow_undefined_flag=' -expect_unresolved \*'
11618 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'
11619 fi
11620 archive_cmds_need_lc='no'
11621 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11622 hardcode_libdir_separator=:
11623 ;;
11624
11625 osf4* | osf5*) # as osf3* with the addition of -msym flag
11626 if test yes = "$GCC"; then
11627 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11628 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'
11629 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11630 else
11631 allow_undefined_flag=' -expect_unresolved \*'
11632 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'
11633 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~
11634 $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'
11635
11636 # Both c and cxx compiler support -rpath directly
11637 hardcode_libdir_flag_spec='-rpath $libdir'
11638 fi
11639 archive_cmds_need_lc='no'
11640 hardcode_libdir_separator=:
11641 ;;
11642
11643 solaris*)
11644 no_undefined_flag=' -z defs'
11645 if test yes = "$GCC"; then
11646 wlarc='$wl'
11647 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11648 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11649 $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'
11650 else
11651 case `$CC -V 2>&1` in
11652 *"Compilers 5.0"*)
11653 wlarc=''
11654 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11655 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11656 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11657 ;;
11658 *)
11659 wlarc='$wl'
11660 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11662 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11663 ;;
11664 esac
11665 fi
11666 hardcode_libdir_flag_spec='-R$libdir'
11667 hardcode_shlibpath_var=no
11668 case $host_os in
11669 solaris2.[0-5] | solaris2.[0-5].*) ;;
11670 *)
11671 # The compiler driver will combine and reorder linker options,
11672 # but understands '-z linker_flag'. GCC discards it without '$wl',
11673 # but is careful enough not to reorder.
11674 # Supported since Solaris 2.6 (maybe 2.5.1?)
11675 if test yes = "$GCC"; then
11676 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11677 else
11678 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11679 fi
11680 ;;
11681 esac
11682 link_all_deplibs=yes
11683 ;;
11684
11685 sunos4*)
11686 if test sequent = "$host_vendor"; then
11687 # Use $CC to link under sequent, because it throws in some extra .o
11688 # files that make .init and .fini sections work.
11689 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11690 else
11691 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11692 fi
11693 hardcode_libdir_flag_spec='-L$libdir'
11694 hardcode_direct=yes
11695 hardcode_minus_L=yes
11696 hardcode_shlibpath_var=no
11697 ;;
11698
11699 sysv4)
11700 case $host_vendor in
11701 sni)
11702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11703 hardcode_direct=yes # is this really true???
11704 ;;
11705 siemens)
11706 ## LD is ld it makes a PLAMLIB
11707 ## CC just makes a GrossModule.
11708 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11709 reload_cmds='$CC -r -o $output$reload_objs'
11710 hardcode_direct=no
11711 ;;
11712 motorola)
11713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11714 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11715 ;;
11716 esac
11717 runpath_var='LD_RUN_PATH'
11718 hardcode_shlibpath_var=no
11719 ;;
11720
11721 sysv4.3*)
11722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11723 hardcode_shlibpath_var=no
11724 export_dynamic_flag_spec='-Bexport'
11725 ;;
11726
11727 sysv4*MP*)
11728 if test -d /usr/nec; then
11729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11730 hardcode_shlibpath_var=no
11731 runpath_var=LD_RUN_PATH
11732 hardcode_runpath_var=yes
11733 ld_shlibs=yes
11734 fi
11735 ;;
11736
11737 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11738 no_undefined_flag='$wl-z,text'
11739 archive_cmds_need_lc=no
11740 hardcode_shlibpath_var=no
11741 runpath_var='LD_RUN_PATH'
11742
11743 if test yes = "$GCC"; then
11744 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11745 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11746 else
11747 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11748 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11749 fi
11750 ;;
11751
11752 sysv5* | sco3.2v5* | sco5v6*)
11753 # Note: We CANNOT use -z defs as we might desire, because we do not
11754 # link with -lc, and that would cause any symbols used from libc to
11755 # always be unresolved, which means just about no library would
11756 # ever link correctly. If we're not using GNU ld we use -z text
11757 # though, which does catch some bad symbols but isn't as heavy-handed
11758 # as -z defs.
11759 no_undefined_flag='$wl-z,text'
11760 allow_undefined_flag='$wl-z,nodefs'
11761 archive_cmds_need_lc=no
11762 hardcode_shlibpath_var=no
11763 hardcode_libdir_flag_spec='$wl-R,$libdir'
11764 hardcode_libdir_separator=':'
11765 link_all_deplibs=yes
11766 export_dynamic_flag_spec='$wl-Bexport'
11767 runpath_var='LD_RUN_PATH'
11768
11769 if test yes = "$GCC"; then
11770 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11771 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11772 else
11773 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11774 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11775 fi
11776 ;;
11777
11778 uts4*)
11779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11780 hardcode_libdir_flag_spec='-L$libdir'
11781 hardcode_shlibpath_var=no
11782 ;;
11783
11784 *)
11785 ld_shlibs=no
11786 ;;
11787 esac
11788
11789 if test sni = "$host_vendor"; then
11790 case $host in
11791 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11792 export_dynamic_flag_spec='$wl-Blargedynsym'
11793 ;;
11794 esac
11795 fi
11796 fi
11797
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11799 printf "%s\n" "$ld_shlibs" >&6; }
11800 test no = "$ld_shlibs" && can_build_shared=no
11801
11802 with_gnu_ld=$with_gnu_ld
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818 #
11819 # Do we need to explicitly link libc?
11820 #
11821 case "x$archive_cmds_need_lc" in
11822 x|xyes)
11823 # Assume -lc should be added
11824 archive_cmds_need_lc=yes
11825
11826 if test yes,yes = "$GCC,$enable_shared"; then
11827 case $archive_cmds in
11828 *'~'*)
11829 # FIXME: we may have to deal with multi-command sequences.
11830 ;;
11831 '$CC '*)
11832 # Test whether the compiler implicitly links with -lc since on some
11833 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11834 # to ld, don't add -lc before -lgcc.
11835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11836 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11837 if test ${lt_cv_archive_cmds_need_lc+y}
11838 then :
11839 printf %s "(cached) " >&6
11840 else case e in #(
11841 e) $RM conftest*
11842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11843
11844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11845 (eval $ac_compile) 2>&5
11846 ac_status=$?
11847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11848 test $ac_status = 0; } 2>conftest.err; then
11849 soname=conftest
11850 lib=conftest
11851 libobjs=conftest.$ac_objext
11852 deplibs=
11853 wl=$lt_prog_compiler_wl
11854 pic_flag=$lt_prog_compiler_pic
11855 compiler_flags=-v
11856 linker_flags=-v
11857 verstring=
11858 output_objdir=.
11859 libname=conftest
11860 lt_save_allow_undefined_flag=$allow_undefined_flag
11861 allow_undefined_flag=
11862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11863 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11864 ac_status=$?
11865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11866 test $ac_status = 0; }
11867 then
11868 lt_cv_archive_cmds_need_lc=no
11869 else
11870 lt_cv_archive_cmds_need_lc=yes
11871 fi
11872 allow_undefined_flag=$lt_save_allow_undefined_flag
11873 else
11874 cat conftest.err 1>&5
11875 fi
11876 $RM conftest*
11877 ;;
11878 esac
11879 fi
11880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11881 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11882 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11883 ;;
11884 esac
11885 fi
11886 ;;
11887 esac
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12041 printf %s "checking dynamic linker characteristics... " >&6; }
12042
12043 if test yes = "$GCC"; then
12044 case $host_os in
12045 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12046 *) lt_awk_arg='/^libraries:/' ;;
12047 esac
12048 case $host_os in
12049 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12050 *) lt_sed_strip_eq='s|=/|/|g' ;;
12051 esac
12052 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12053 case $lt_search_path_spec in
12054 *\;*)
12055 # if the path contains ";" then we assume it to be the separator
12056 # otherwise default to the standard path separator (i.e. ":") - it is
12057 # assumed that no part of a normal pathname contains ";" but that should
12058 # okay in the real world where ";" in dirpaths is itself problematic.
12059 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12060 ;;
12061 *)
12062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12063 ;;
12064 esac
12065 # Ok, now we have the path, separated by spaces, we can step through it
12066 # and add multilib dir if necessary...
12067 lt_tmp_lt_search_path_spec=
12068 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12069 # ...but if some path component already ends with the multilib dir we assume
12070 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12071 case "$lt_multi_os_dir; $lt_search_path_spec " in
12072 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12073 lt_multi_os_dir=
12074 ;;
12075 esac
12076 for lt_sys_path in $lt_search_path_spec; do
12077 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12078 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12079 elif test -n "$lt_multi_os_dir"; then
12080 test -d "$lt_sys_path" && \
12081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12082 fi
12083 done
12084 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12085 BEGIN {RS = " "; FS = "/|\n";} {
12086 lt_foo = "";
12087 lt_count = 0;
12088 for (lt_i = NF; lt_i > 0; lt_i--) {
12089 if ($lt_i != "" && $lt_i != ".") {
12090 if ($lt_i == "..") {
12091 lt_count++;
12092 } else {
12093 if (lt_count == 0) {
12094 lt_foo = "/" $lt_i lt_foo;
12095 } else {
12096 lt_count--;
12097 }
12098 }
12099 }
12100 }
12101 if (lt_foo != "") { lt_freq[lt_foo]++; }
12102 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12103 }'`
12104 # AWK program above erroneously prepends '/' to C:/dos/paths
12105 # for these hosts.
12106 case $host_os in
12107 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12108 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12109 esac
12110 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12111 else
12112 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12113 fi
12114 library_names_spec=
12115 libname_spec='lib$name'
12116 soname_spec=
12117 shrext_cmds=.so
12118 postinstall_cmds=
12119 postuninstall_cmds=
12120 finish_cmds=
12121 finish_eval=
12122 shlibpath_var=
12123 shlibpath_overrides_runpath=unknown
12124 version_type=none
12125 dynamic_linker="$host_os ld.so"
12126 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12127 need_lib_prefix=unknown
12128 hardcode_into_libs=no
12129
12130 # when you set need_version to no, make sure it does not cause -set_version
12131 # flags to be left without arguments
12132 need_version=unknown
12133
12134
12135
12136 case $host_os in
12137 aix3*)
12138 version_type=linux # correct to gnu/linux during the next big refactor
12139 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12140 shlibpath_var=LIBPATH
12141
12142 # AIX 3 has no versioning support, so we append a major version to the name.
12143 soname_spec='$libname$release$shared_ext$major'
12144 ;;
12145
12146 aix[4-9]*)
12147 version_type=linux # correct to gnu/linux during the next big refactor
12148 need_lib_prefix=no
12149 need_version=no
12150 hardcode_into_libs=yes
12151 if test ia64 = "$host_cpu"; then
12152 # AIX 5 supports IA64
12153 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 else
12156 # With GCC up to 2.95.x, collect2 would create an import file
12157 # for dependence libraries. The import file would start with
12158 # the line '#! .'. This would cause the generated library to
12159 # depend on '.', always an invalid library. This was fixed in
12160 # development snapshots of GCC prior to 3.0.
12161 case $host_os in
12162 aix4 | aix4.[01] | aix4.[01].*)
12163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12164 echo ' yes '
12165 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12166 :
12167 else
12168 can_build_shared=no
12169 fi
12170 ;;
12171 esac
12172 # Using Import Files as archive members, it is possible to support
12173 # filename-based versioning of shared library archives on AIX. While
12174 # this would work for both with and without runtime linking, it will
12175 # prevent static linking of such archives. So we do filename-based
12176 # shared library versioning with .so extension only, which is used
12177 # when both runtime linking and shared linking is enabled.
12178 # Unfortunately, runtime linking may impact performance, so we do
12179 # not want this to be the default eventually. Also, we use the
12180 # versioned .so libs for executables only if there is the -brtl
12181 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12182 # To allow for filename-based versioning support, we need to create
12183 # libNAME.so.V as an archive file, containing:
12184 # *) an Import File, referring to the versioned filename of the
12185 # archive as well as the shared archive member, telling the
12186 # bitwidth (32 or 64) of that shared object, and providing the
12187 # list of exported symbols of that shared object, eventually
12188 # decorated with the 'weak' keyword
12189 # *) the shared object with the F_LOADONLY flag set, to really avoid
12190 # it being seen by the linker.
12191 # At run time we better use the real file rather than another symlink,
12192 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12193
12194 case $with_aix_soname,$aix_use_runtimelinking in
12195 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12196 # soname into executable. Probably we can add versioning support to
12197 # collect2, so additional links can be useful in future.
12198 aix,yes) # traditional libtool
12199 dynamic_linker='AIX unversionable lib.so'
12200 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12201 # instead of lib<name>.a to let people know that these are not
12202 # typical AIX shared libraries.
12203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12204 ;;
12205 aix,no) # traditional AIX only
12206 dynamic_linker='AIX lib.a(lib.so.V)'
12207 # We preserve .a as extension for shared libraries through AIX4.2
12208 # and later when we are not doing run time linking.
12209 library_names_spec='$libname$release.a $libname.a'
12210 soname_spec='$libname$release$shared_ext$major'
12211 ;;
12212 svr4,*) # full svr4 only
12213 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12214 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12215 # We do not specify a path in Import Files, so LIBPATH fires.
12216 shlibpath_overrides_runpath=yes
12217 ;;
12218 *,yes) # both, prefer svr4
12219 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12220 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12221 # unpreferred sharedlib libNAME.a needs extra handling
12222 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"'
12223 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"'
12224 # We do not specify a path in Import Files, so LIBPATH fires.
12225 shlibpath_overrides_runpath=yes
12226 ;;
12227 *,no) # both, prefer aix
12228 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12229 library_names_spec='$libname$release.a $libname.a'
12230 soname_spec='$libname$release$shared_ext$major'
12231 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12232 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)'
12233 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"'
12234 ;;
12235 esac
12236 shlibpath_var=LIBPATH
12237 fi
12238 ;;
12239
12240 amigaos*)
12241 case $host_cpu in
12242 powerpc)
12243 # Since July 2007 AmigaOS4 officially supports .so libraries.
12244 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246 ;;
12247 m68k)
12248 library_names_spec='$libname.ixlibrary $libname.a'
12249 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12250 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'
12251 ;;
12252 esac
12253 ;;
12254
12255 beos*)
12256 library_names_spec='$libname$shared_ext'
12257 dynamic_linker="$host_os ld.so"
12258 shlibpath_var=LIBRARY_PATH
12259 ;;
12260
12261 bsdi[45]*)
12262 version_type=linux # correct to gnu/linux during the next big refactor
12263 need_version=no
12264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12265 soname_spec='$libname$release$shared_ext$major'
12266 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12269 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12270 # the default ld.so.conf also contains /usr/contrib/lib and
12271 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12272 # libtool to hard-code these into programs
12273 ;;
12274
12275 cygwin* | mingw* | pw32* | cegcc*)
12276 version_type=windows
12277 shrext_cmds=.dll
12278 need_version=no
12279 need_lib_prefix=no
12280
12281 case $GCC,$cc_basename in
12282 yes,*)
12283 # gcc
12284 library_names_spec='$libname.dll.a'
12285 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12286 postinstall_cmds='base_file=`basename \$file`~
12287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12288 dldir=$destdir/`dirname \$dlpath`~
12289 test -d \$dldir || mkdir -p \$dldir~
12290 $install_prog $dir/$dlname \$dldir/$dlname~
12291 chmod a+x \$dldir/$dlname~
12292 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12293 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12294 fi'
12295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12296 dlpath=$dir/\$dldll~
12297 $RM \$dlpath'
12298 shlibpath_overrides_runpath=yes
12299
12300 case $host_os in
12301 cygwin*)
12302 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12303 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12304
12305 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12306 ;;
12307 mingw* | cegcc*)
12308 # MinGW DLLs use traditional 'lib' prefix
12309 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12310 ;;
12311 pw32*)
12312 # pw32 DLLs use 'pw' prefix rather than 'lib'
12313 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12314 ;;
12315 esac
12316 dynamic_linker='Win32 ld.exe'
12317 ;;
12318
12319 *,cl* | *,icl*)
12320 # Native MSVC or ICC
12321 libname_spec='$name'
12322 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12323 library_names_spec='$libname.dll.lib'
12324
12325 case $build_os in
12326 mingw*)
12327 sys_lib_search_path_spec=
12328 lt_save_ifs=$IFS
12329 IFS=';'
12330 for lt_path in $LIB
12331 do
12332 IFS=$lt_save_ifs
12333 # Let DOS variable expansion print the short 8.3 style file name.
12334 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12335 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12336 done
12337 IFS=$lt_save_ifs
12338 # Convert to MSYS style.
12339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12340 ;;
12341 cygwin*)
12342 # Convert to unix form, then to dos form, then back to unix form
12343 # but this time dos style (no spaces!) so that the unix form looks
12344 # like /cygdrive/c/PROGRA~1:/cygdr...
12345 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12346 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12347 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12348 ;;
12349 *)
12350 sys_lib_search_path_spec=$LIB
12351 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12352 # It is most probably a Windows format PATH.
12353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12354 else
12355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12356 fi
12357 # FIXME: find the short name or the path components, as spaces are
12358 # common. (e.g. "Program Files" -> "PROGRA~1")
12359 ;;
12360 esac
12361
12362 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12363 postinstall_cmds='base_file=`basename \$file`~
12364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12365 dldir=$destdir/`dirname \$dlpath`~
12366 test -d \$dldir || mkdir -p \$dldir~
12367 $install_prog $dir/$dlname \$dldir/$dlname'
12368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12369 dlpath=$dir/\$dldll~
12370 $RM \$dlpath'
12371 shlibpath_overrides_runpath=yes
12372 dynamic_linker='Win32 link.exe'
12373 ;;
12374
12375 *)
12376 # Assume MSVC and ICC wrapper
12377 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12378 dynamic_linker='Win32 ld.exe'
12379 ;;
12380 esac
12381 # FIXME: first we should search . and the directory the executable is in
12382 shlibpath_var=PATH
12383 ;;
12384
12385 darwin* | rhapsody*)
12386 dynamic_linker="$host_os dyld"
12387 version_type=darwin
12388 need_lib_prefix=no
12389 need_version=no
12390 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12391 soname_spec='$libname$release$major$shared_ext'
12392 shlibpath_overrides_runpath=yes
12393 shlibpath_var=DYLD_LIBRARY_PATH
12394 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12395
12396 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12397 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12398 ;;
12399
12400 dgux*)
12401 version_type=linux # correct to gnu/linux during the next big refactor
12402 need_lib_prefix=no
12403 need_version=no
12404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405 soname_spec='$libname$release$shared_ext$major'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 ;;
12408
12409 freebsd* | dragonfly* | midnightbsd*)
12410 # DragonFly does not have aout. When/if they implement a new
12411 # versioning mechanism, adjust this.
12412 if test -x /usr/bin/objformat; then
12413 objformat=`/usr/bin/objformat`
12414 else
12415 case $host_os in
12416 freebsd[23].*) objformat=aout ;;
12417 *) objformat=elf ;;
12418 esac
12419 fi
12420 version_type=freebsd-$objformat
12421 case $version_type in
12422 freebsd-elf*)
12423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12424 soname_spec='$libname$release$shared_ext$major'
12425 need_version=no
12426 need_lib_prefix=no
12427 ;;
12428 freebsd-*)
12429 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12430 need_version=yes
12431 ;;
12432 esac
12433 shlibpath_var=LD_LIBRARY_PATH
12434 case $host_os in
12435 freebsd2.*)
12436 shlibpath_overrides_runpath=yes
12437 ;;
12438 freebsd3.[01]* | freebsdelf3.[01]*)
12439 shlibpath_overrides_runpath=yes
12440 hardcode_into_libs=yes
12441 ;;
12442 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12443 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12444 shlibpath_overrides_runpath=no
12445 hardcode_into_libs=yes
12446 ;;
12447 *) # from 4.6 on, and DragonFly
12448 shlibpath_overrides_runpath=yes
12449 hardcode_into_libs=yes
12450 ;;
12451 esac
12452 ;;
12453
12454 haiku*)
12455 version_type=linux # correct to gnu/linux during the next big refactor
12456 need_lib_prefix=no
12457 need_version=no
12458 dynamic_linker="$host_os runtime_loader"
12459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12460 soname_spec='$libname$release$shared_ext$major'
12461 shlibpath_var=LIBRARY_PATH
12462 shlibpath_overrides_runpath=no
12463 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12464 hardcode_into_libs=yes
12465 ;;
12466
12467 hpux9* | hpux10* | hpux11*)
12468 # Give a soname corresponding to the major version so that dld.sl refuses to
12469 # link against other versions.
12470 version_type=sunos
12471 need_lib_prefix=no
12472 need_version=no
12473 case $host_cpu in
12474 ia64*)
12475 shrext_cmds='.so'
12476 hardcode_into_libs=yes
12477 dynamic_linker="$host_os dld.so"
12478 shlibpath_var=LD_LIBRARY_PATH
12479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481 soname_spec='$libname$release$shared_ext$major'
12482 if test 32 = "$HPUX_IA64_MODE"; then
12483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12484 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12485 else
12486 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12487 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12488 fi
12489 ;;
12490 hppa*64*)
12491 shrext_cmds='.sl'
12492 hardcode_into_libs=yes
12493 dynamic_linker="$host_os dld.sl"
12494 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497 soname_spec='$libname$release$shared_ext$major'
12498 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12500 ;;
12501 *)
12502 shrext_cmds='.sl'
12503 dynamic_linker="$host_os dld.sl"
12504 shlibpath_var=SHLIB_PATH
12505 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12507 soname_spec='$libname$release$shared_ext$major'
12508 ;;
12509 esac
12510 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12511 postinstall_cmds='chmod 555 $lib'
12512 # or fails outright, so override atomically:
12513 install_override_mode=555
12514 ;;
12515
12516 interix[3-9]*)
12517 version_type=linux # correct to gnu/linux during the next big refactor
12518 need_lib_prefix=no
12519 need_version=no
12520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12521 soname_spec='$libname$release$shared_ext$major'
12522 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath=no
12525 hardcode_into_libs=yes
12526 ;;
12527
12528 irix5* | irix6* | nonstopux*)
12529 case $host_os in
12530 nonstopux*) version_type=nonstopux ;;
12531 *)
12532 if test yes = "$lt_cv_prog_gnu_ld"; then
12533 version_type=linux # correct to gnu/linux during the next big refactor
12534 else
12535 version_type=irix
12536 fi ;;
12537 esac
12538 need_lib_prefix=no
12539 need_version=no
12540 soname_spec='$libname$release$shared_ext$major'
12541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12542 case $host_os in
12543 irix5* | nonstopux*)
12544 libsuff= shlibsuff=
12545 ;;
12546 *)
12547 case $LD in # libtool.m4 will add one of these switches to LD
12548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12549 libsuff= shlibsuff= libmagic=32-bit;;
12550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12551 libsuff=32 shlibsuff=N32 libmagic=N32;;
12552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12553 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12554 *) libsuff= shlibsuff= libmagic=never-match;;
12555 esac
12556 ;;
12557 esac
12558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12559 shlibpath_overrides_runpath=no
12560 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12561 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12562 hardcode_into_libs=yes
12563 ;;
12564
12565 # No shared lib support for Linux oldld, aout, or coff.
12566 linux*oldld* | linux*aout* | linux*coff*)
12567 dynamic_linker=no
12568 ;;
12569
12570 linux*android*)
12571 version_type=none # Android doesn't support versioned libraries.
12572 need_lib_prefix=no
12573 need_version=no
12574 library_names_spec='$libname$release$shared_ext'
12575 soname_spec='$libname$release$shared_ext'
12576 finish_cmds=
12577 shlibpath_var=LD_LIBRARY_PATH
12578 shlibpath_overrides_runpath=yes
12579
12580 # This implies no fast_install, which is unacceptable.
12581 # Some rework will be needed to allow for fast_install
12582 # before this can be enabled.
12583 hardcode_into_libs=yes
12584
12585 dynamic_linker='Android linker'
12586 # Don't embed -rpath directories since the linker doesn't support them.
12587 hardcode_libdir_flag_spec='-L$libdir'
12588 ;;
12589
12590 # This must be glibc/ELF.
12591 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12592 version_type=linux # correct to gnu/linux during the next big refactor
12593 need_lib_prefix=no
12594 need_version=no
12595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12596 soname_spec='$libname$release$shared_ext$major'
12597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12598 shlibpath_var=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath=no
12600
12601 # Some binutils ld are patched to set DT_RUNPATH
12602 if test ${lt_cv_shlibpath_overrides_runpath+y}
12603 then :
12604 printf %s "(cached) " >&6
12605 else case e in #(
12606 e) lt_cv_shlibpath_overrides_runpath=no
12607 save_LDFLAGS=$LDFLAGS
12608 save_libdir=$libdir
12609 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12610 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613
12614 int
12615 main (void)
12616 {
12617
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_c_try_link "$LINENO"
12623 then :
12624 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12625 then :
12626 lt_cv_shlibpath_overrides_runpath=yes
12627 fi
12628 fi
12629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12630 conftest$ac_exeext conftest.$ac_ext
12631 LDFLAGS=$save_LDFLAGS
12632 libdir=$save_libdir
12633 ;;
12634 esac
12635 fi
12636
12637 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12638
12639 # This implies no fast_install, which is unacceptable.
12640 # Some rework will be needed to allow for fast_install
12641 # before this can be enabled.
12642 hardcode_into_libs=yes
12643
12644 # Ideally, we could use ldconfig to report *all* directores which are
12645 # searched for libraries, however this is still not possible. Aside from not
12646 # being certain /sbin/ldconfig is available, command
12647 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12648 # even though it is searched at run-time. Try to do the best guess by
12649 # appending ld.so.conf contents (and includes) to the search path.
12650 if test -f /etc/ld.so.conf; then
12651 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' ' '`
12652 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12653 fi
12654
12655 # We used to test for /lib/ld.so.1 and disable shared libraries on
12656 # powerpc, because MkLinux only supported shared libraries with the
12657 # GNU dynamic linker. Since this was broken with cross compilers,
12658 # most powerpc-linux boxes support dynamic linking these days and
12659 # people can always --disable-shared, the test was removed, and we
12660 # assume the GNU/Linux dynamic linker is in use.
12661 dynamic_linker='GNU/Linux ld.so'
12662 ;;
12663
12664 netbsd*)
12665 version_type=sunos
12666 need_lib_prefix=no
12667 need_version=no
12668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12669 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12671 dynamic_linker='NetBSD (a.out) ld.so'
12672 else
12673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12674 soname_spec='$libname$release$shared_ext$major'
12675 dynamic_linker='NetBSD ld.elf_so'
12676 fi
12677 shlibpath_var=LD_LIBRARY_PATH
12678 shlibpath_overrides_runpath=yes
12679 hardcode_into_libs=yes
12680 ;;
12681
12682 newsos6)
12683 version_type=linux # correct to gnu/linux during the next big refactor
12684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 shlibpath_overrides_runpath=yes
12687 ;;
12688
12689 *nto* | *qnx*)
12690 version_type=qnx
12691 need_lib_prefix=no
12692 need_version=no
12693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12694 soname_spec='$libname$release$shared_ext$major'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath=no
12697 hardcode_into_libs=yes
12698 dynamic_linker='ldqnx.so'
12699 ;;
12700
12701 openbsd* | bitrig*)
12702 version_type=sunos
12703 sys_lib_dlsearch_path_spec=/usr/lib
12704 need_lib_prefix=no
12705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12706 need_version=no
12707 else
12708 need_version=yes
12709 fi
12710 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12712 shlibpath_var=LD_LIBRARY_PATH
12713 shlibpath_overrides_runpath=yes
12714 ;;
12715
12716 os2*)
12717 libname_spec='$name'
12718 version_type=windows
12719 shrext_cmds=.dll
12720 need_version=no
12721 need_lib_prefix=no
12722 # OS/2 can only load a DLL with a base name of 8 characters or less.
12723 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12724 v=$($ECHO $release$versuffix | tr -d .-);
12725 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12726 $ECHO $n$v`$shared_ext'
12727 library_names_spec='${libname}_dll.$libext'
12728 dynamic_linker='OS/2 ld.exe'
12729 shlibpath_var=BEGINLIBPATH
12730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12732 postinstall_cmds='base_file=`basename \$file`~
12733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12734 dldir=$destdir/`dirname \$dlpath`~
12735 test -d \$dldir || mkdir -p \$dldir~
12736 $install_prog $dir/$dlname \$dldir/$dlname~
12737 chmod a+x \$dldir/$dlname~
12738 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12739 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12740 fi'
12741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12742 dlpath=$dir/\$dldll~
12743 $RM \$dlpath'
12744 ;;
12745
12746 osf3* | osf4* | osf5*)
12747 version_type=osf
12748 need_lib_prefix=no
12749 need_version=no
12750 soname_spec='$libname$release$shared_ext$major'
12751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12752 shlibpath_var=LD_LIBRARY_PATH
12753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12755 ;;
12756
12757 rdos*)
12758 dynamic_linker=no
12759 ;;
12760
12761 solaris*)
12762 version_type=linux # correct to gnu/linux during the next big refactor
12763 need_lib_prefix=no
12764 need_version=no
12765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12766 soname_spec='$libname$release$shared_ext$major'
12767 shlibpath_var=LD_LIBRARY_PATH
12768 shlibpath_overrides_runpath=yes
12769 hardcode_into_libs=yes
12770 # ldd complains unless libraries are executable
12771 postinstall_cmds='chmod +x $lib'
12772 ;;
12773
12774 sunos4*)
12775 version_type=sunos
12776 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12778 shlibpath_var=LD_LIBRARY_PATH
12779 shlibpath_overrides_runpath=yes
12780 if test yes = "$with_gnu_ld"; then
12781 need_lib_prefix=no
12782 fi
12783 need_version=yes
12784 ;;
12785
12786 sysv4 | sysv4.3*)
12787 version_type=linux # correct to gnu/linux during the next big refactor
12788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12789 soname_spec='$libname$release$shared_ext$major'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 case $host_vendor in
12792 sni)
12793 shlibpath_overrides_runpath=no
12794 need_lib_prefix=no
12795 runpath_var=LD_RUN_PATH
12796 ;;
12797 siemens)
12798 need_lib_prefix=no
12799 ;;
12800 motorola)
12801 need_lib_prefix=no
12802 need_version=no
12803 shlibpath_overrides_runpath=no
12804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12805 ;;
12806 esac
12807 ;;
12808
12809 sysv4*MP*)
12810 if test -d /usr/nec; then
12811 version_type=linux # correct to gnu/linux during the next big refactor
12812 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12813 soname_spec='$libname$shared_ext.$major'
12814 shlibpath_var=LD_LIBRARY_PATH
12815 fi
12816 ;;
12817
12818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12819 version_type=sco
12820 need_lib_prefix=no
12821 need_version=no
12822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12823 soname_spec='$libname$release$shared_ext$major'
12824 shlibpath_var=LD_LIBRARY_PATH
12825 shlibpath_overrides_runpath=yes
12826 hardcode_into_libs=yes
12827 if test yes = "$with_gnu_ld"; then
12828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12829 else
12830 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12831 case $host_os in
12832 sco3.2v5*)
12833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12834 ;;
12835 esac
12836 fi
12837 sys_lib_dlsearch_path_spec='/usr/lib'
12838 ;;
12839
12840 tpf*)
12841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12842 version_type=linux # correct to gnu/linux during the next big refactor
12843 need_lib_prefix=no
12844 need_version=no
12845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12846 shlibpath_var=LD_LIBRARY_PATH
12847 shlibpath_overrides_runpath=no
12848 hardcode_into_libs=yes
12849 ;;
12850
12851 uts4*)
12852 version_type=linux # correct to gnu/linux during the next big refactor
12853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12854 soname_spec='$libname$release$shared_ext$major'
12855 shlibpath_var=LD_LIBRARY_PATH
12856 ;;
12857
12858 *)
12859 dynamic_linker=no
12860 ;;
12861 esac
12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12863 printf "%s\n" "$dynamic_linker" >&6; }
12864 test no = "$dynamic_linker" && can_build_shared=no
12865
12866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12867 if test yes = "$GCC"; then
12868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12869 fi
12870
12871 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12872 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12873 fi
12874
12875 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12876 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12877 fi
12878
12879 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12880 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12881
12882 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12883 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12884
12885 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12886 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12985 printf %s "checking how to hardcode library paths into programs... " >&6; }
12986 hardcode_action=
12987 if test -n "$hardcode_libdir_flag_spec" ||
12988 test -n "$runpath_var" ||
12989 test yes = "$hardcode_automatic"; then
12990
12991 # We can hardcode non-existent directories.
12992 if test no != "$hardcode_direct" &&
12993 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12994 # have to relink, otherwise we might link with an installed library
12995 # when we should be linking with a yet-to-be-installed one
12996 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12997 test no != "$hardcode_minus_L"; then
12998 # Linking always hardcodes the temporary library directory.
12999 hardcode_action=relink
13000 else
13001 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13002 hardcode_action=immediate
13003 fi
13004 else
13005 # We cannot hardcode anything, or else we can only hardcode existing
13006 # directories.
13007 hardcode_action=unsupported
13008 fi
13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13010 printf "%s\n" "$hardcode_action" >&6; }
13011
13012 if test relink = "$hardcode_action" ||
13013 test yes = "$inherit_rpath"; then
13014 # Fast installation is not supported
13015 enable_fast_install=no
13016 elif test yes = "$shlibpath_overrides_runpath" ||
13017 test no = "$enable_shared"; then
13018 # Fast installation is not necessary
13019 enable_fast_install=needless
13020 fi
13021
13022
13023
13024
13025
13026
13027 if test yes != "$enable_dlopen"; then
13028 enable_dlopen=unknown
13029 enable_dlopen_self=unknown
13030 enable_dlopen_self_static=unknown
13031 else
13032 lt_cv_dlopen=no
13033 lt_cv_dlopen_libs=
13034
13035 case $host_os in
13036 beos*)
13037 lt_cv_dlopen=load_add_on
13038 lt_cv_dlopen_libs=
13039 lt_cv_dlopen_self=yes
13040 ;;
13041
13042 mingw* | pw32* | cegcc*)
13043 lt_cv_dlopen=LoadLibrary
13044 lt_cv_dlopen_libs=
13045 ;;
13046
13047 cygwin*)
13048 lt_cv_dlopen=dlopen
13049 lt_cv_dlopen_libs=
13050 ;;
13051
13052 darwin*)
13053 # if libdl is installed we need to link against it
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13055 printf %s "checking for dlopen in -ldl... " >&6; }
13056 if test ${ac_cv_lib_dl_dlopen+y}
13057 then :
13058 printf %s "(cached) " >&6
13059 else case e in #(
13060 e) ac_check_lib_save_LIBS=$LIBS
13061 LIBS="-ldl $LIBS"
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064
13065 /* Override any GCC internal prototype to avoid an error.
13066 Use char because int might match the return type of a GCC
13067 builtin and then its argument prototype would still apply.
13068 The 'extern "C"' is for builds by C++ compilers;
13069 although this is not generally supported in C code supporting it here
13070 has little cost and some practical benefit (sr 110532). */
13071 #ifdef __cplusplus
13072 extern "C"
13073 #endif
13074 char dlopen (void);
13075 int
13076 main (void)
13077 {
13078 return dlopen ();
13079 ;
13080 return 0;
13081 }
13082 _ACEOF
13083 if ac_fn_c_try_link "$LINENO"
13084 then :
13085 ac_cv_lib_dl_dlopen=yes
13086 else case e in #(
13087 e) ac_cv_lib_dl_dlopen=no ;;
13088 esac
13089 fi
13090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS ;;
13093 esac
13094 fi
13095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13096 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13097 if test "x$ac_cv_lib_dl_dlopen" = xyes
13098 then :
13099 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13100 else case e in #(
13101 e)
13102 lt_cv_dlopen=dyld
13103 lt_cv_dlopen_libs=
13104 lt_cv_dlopen_self=yes
13105 ;;
13106 esac
13107 fi
13108
13109 ;;
13110
13111 tpf*)
13112 # Don't try to run any link tests for TPF. We know it's impossible
13113 # because TPF is a cross-compiler, and we know how we open DSOs.
13114 lt_cv_dlopen=dlopen
13115 lt_cv_dlopen_libs=
13116 lt_cv_dlopen_self=no
13117 ;;
13118
13119 *)
13120 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13121 if test "x$ac_cv_func_shl_load" = xyes
13122 then :
13123 lt_cv_dlopen=shl_load
13124 else case e in #(
13125 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13126 printf %s "checking for shl_load in -ldld... " >&6; }
13127 if test ${ac_cv_lib_dld_shl_load+y}
13128 then :
13129 printf %s "(cached) " >&6
13130 else case e in #(
13131 e) ac_check_lib_save_LIBS=$LIBS
13132 LIBS="-ldld $LIBS"
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply.
13139 The 'extern "C"' is for builds by C++ compilers;
13140 although this is not generally supported in C code supporting it here
13141 has little cost and some practical benefit (sr 110532). */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 char shl_load (void);
13146 int
13147 main (void)
13148 {
13149 return shl_load ();
13150 ;
13151 return 0;
13152 }
13153 _ACEOF
13154 if ac_fn_c_try_link "$LINENO"
13155 then :
13156 ac_cv_lib_dld_shl_load=yes
13157 else case e in #(
13158 e) ac_cv_lib_dld_shl_load=no ;;
13159 esac
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13162 conftest$ac_exeext conftest.$ac_ext
13163 LIBS=$ac_check_lib_save_LIBS ;;
13164 esac
13165 fi
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13167 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13168 if test "x$ac_cv_lib_dld_shl_load" = xyes
13169 then :
13170 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13171 else case e in #(
13172 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13173 if test "x$ac_cv_func_dlopen" = xyes
13174 then :
13175 lt_cv_dlopen=dlopen
13176 else case e in #(
13177 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13178 printf %s "checking for dlopen in -ldl... " >&6; }
13179 if test ${ac_cv_lib_dl_dlopen+y}
13180 then :
13181 printf %s "(cached) " >&6
13182 else case e in #(
13183 e) ac_check_lib_save_LIBS=$LIBS
13184 LIBS="-ldl $LIBS"
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187
13188 /* Override any GCC internal prototype to avoid an error.
13189 Use char because int might match the return type of a GCC
13190 builtin and then its argument prototype would still apply.
13191 The 'extern "C"' is for builds by C++ compilers;
13192 although this is not generally supported in C code supporting it here
13193 has little cost and some practical benefit (sr 110532). */
13194 #ifdef __cplusplus
13195 extern "C"
13196 #endif
13197 char dlopen (void);
13198 int
13199 main (void)
13200 {
13201 return dlopen ();
13202 ;
13203 return 0;
13204 }
13205 _ACEOF
13206 if ac_fn_c_try_link "$LINENO"
13207 then :
13208 ac_cv_lib_dl_dlopen=yes
13209 else case e in #(
13210 e) ac_cv_lib_dl_dlopen=no ;;
13211 esac
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13214 conftest$ac_exeext conftest.$ac_ext
13215 LIBS=$ac_check_lib_save_LIBS ;;
13216 esac
13217 fi
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13219 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13220 if test "x$ac_cv_lib_dl_dlopen" = xyes
13221 then :
13222 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13223 else case e in #(
13224 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13225 printf %s "checking for dlopen in -lsvld... " >&6; }
13226 if test ${ac_cv_lib_svld_dlopen+y}
13227 then :
13228 printf %s "(cached) " >&6
13229 else case e in #(
13230 e) ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-lsvld $LIBS"
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply.
13238 The 'extern "C"' is for builds by C++ compilers;
13239 although this is not generally supported in C code supporting it here
13240 has little cost and some practical benefit (sr 110532). */
13241 #ifdef __cplusplus
13242 extern "C"
13243 #endif
13244 char dlopen (void);
13245 int
13246 main (void)
13247 {
13248 return dlopen ();
13249 ;
13250 return 0;
13251 }
13252 _ACEOF
13253 if ac_fn_c_try_link "$LINENO"
13254 then :
13255 ac_cv_lib_svld_dlopen=yes
13256 else case e in #(
13257 e) ac_cv_lib_svld_dlopen=no ;;
13258 esac
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS ;;
13263 esac
13264 fi
13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13266 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13267 if test "x$ac_cv_lib_svld_dlopen" = xyes
13268 then :
13269 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13270 else case e in #(
13271 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13272 printf %s "checking for dld_link in -ldld... " >&6; }
13273 if test ${ac_cv_lib_dld_dld_link+y}
13274 then :
13275 printf %s "(cached) " >&6
13276 else case e in #(
13277 e) ac_check_lib_save_LIBS=$LIBS
13278 LIBS="-ldld $LIBS"
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13281
13282 /* Override any GCC internal prototype to avoid an error.
13283 Use char because int might match the return type of a GCC
13284 builtin and then its argument prototype would still apply.
13285 The 'extern "C"' is for builds by C++ compilers;
13286 although this is not generally supported in C code supporting it here
13287 has little cost and some practical benefit (sr 110532). */
13288 #ifdef __cplusplus
13289 extern "C"
13290 #endif
13291 char dld_link (void);
13292 int
13293 main (void)
13294 {
13295 return dld_link ();
13296 ;
13297 return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_c_try_link "$LINENO"
13301 then :
13302 ac_cv_lib_dld_dld_link=yes
13303 else case e in #(
13304 e) ac_cv_lib_dld_dld_link=no ;;
13305 esac
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS ;;
13310 esac
13311 fi
13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13313 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13314 if test "x$ac_cv_lib_dld_dld_link" = xyes
13315 then :
13316 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13317 fi
13318
13319 ;;
13320 esac
13321 fi
13322
13323 ;;
13324 esac
13325 fi
13326
13327 ;;
13328 esac
13329 fi
13330
13331 ;;
13332 esac
13333 fi
13334
13335 ;;
13336 esac
13337 fi
13338
13339 ;;
13340 esac
13341
13342 if test no = "$lt_cv_dlopen"; then
13343 enable_dlopen=no
13344 else
13345 enable_dlopen=yes
13346 fi
13347
13348 case $lt_cv_dlopen in
13349 dlopen)
13350 save_CPPFLAGS=$CPPFLAGS
13351 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13352
13353 save_LDFLAGS=$LDFLAGS
13354 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13355
13356 save_LIBS=$LIBS
13357 LIBS="$lt_cv_dlopen_libs $LIBS"
13358
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13360 printf %s "checking whether a program can dlopen itself... " >&6; }
13361 if test ${lt_cv_dlopen_self+y}
13362 then :
13363 printf %s "(cached) " >&6
13364 else case e in #(
13365 e) if test yes = "$cross_compiling"; then :
13366 lt_cv_dlopen_self=cross
13367 else
13368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13369 lt_status=$lt_dlunknown
13370 cat > conftest.$ac_ext <<_LT_EOF
13371 #line $LINENO "configure"
13372 #include "confdefs.h"
13373
13374 #if HAVE_DLFCN_H
13375 #include <dlfcn.h>
13376 #endif
13377
13378 #include <stdio.h>
13379
13380 #ifdef RTLD_GLOBAL
13381 # define LT_DLGLOBAL RTLD_GLOBAL
13382 #else
13383 # ifdef DL_GLOBAL
13384 # define LT_DLGLOBAL DL_GLOBAL
13385 # else
13386 # define LT_DLGLOBAL 0
13387 # endif
13388 #endif
13389
13390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13391 find out it does not work in some platform. */
13392 #ifndef LT_DLLAZY_OR_NOW
13393 # ifdef RTLD_LAZY
13394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13395 # else
13396 # ifdef DL_LAZY
13397 # define LT_DLLAZY_OR_NOW DL_LAZY
13398 # else
13399 # ifdef RTLD_NOW
13400 # define LT_DLLAZY_OR_NOW RTLD_NOW
13401 # else
13402 # ifdef DL_NOW
13403 # define LT_DLLAZY_OR_NOW DL_NOW
13404 # else
13405 # define LT_DLLAZY_OR_NOW 0
13406 # endif
13407 # endif
13408 # endif
13409 # endif
13410 #endif
13411
13412 /* When -fvisibility=hidden is used, assume the code has been annotated
13413 correspondingly for the symbols needed. */
13414 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13415 int fnord () __attribute__((visibility("default")));
13416 #endif
13417
13418 int fnord () { return 42; }
13419 int main ()
13420 {
13421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13422 int status = $lt_dlunknown;
13423
13424 if (self)
13425 {
13426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13427 else
13428 {
13429 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13430 else puts (dlerror ());
13431 }
13432 /* dlclose (self); */
13433 }
13434 else
13435 puts (dlerror ());
13436
13437 return status;
13438 }
13439 _LT_EOF
13440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13441 (eval $ac_link) 2>&5
13442 ac_status=$?
13443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13444 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13445 (./conftest; exit; ) >&5 2>/dev/null
13446 lt_status=$?
13447 case x$lt_status in
13448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13450 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13451 esac
13452 else :
13453 # compilation failed
13454 lt_cv_dlopen_self=no
13455 fi
13456 fi
13457 rm -fr conftest*
13458
13459 ;;
13460 esac
13461 fi
13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13463 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13464
13465 if test yes = "$lt_cv_dlopen_self"; then
13466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13468 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13469 if test ${lt_cv_dlopen_self_static+y}
13470 then :
13471 printf %s "(cached) " >&6
13472 else case e in #(
13473 e) if test yes = "$cross_compiling"; then :
13474 lt_cv_dlopen_self_static=cross
13475 else
13476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13477 lt_status=$lt_dlunknown
13478 cat > conftest.$ac_ext <<_LT_EOF
13479 #line $LINENO "configure"
13480 #include "confdefs.h"
13481
13482 #if HAVE_DLFCN_H
13483 #include <dlfcn.h>
13484 #endif
13485
13486 #include <stdio.h>
13487
13488 #ifdef RTLD_GLOBAL
13489 # define LT_DLGLOBAL RTLD_GLOBAL
13490 #else
13491 # ifdef DL_GLOBAL
13492 # define LT_DLGLOBAL DL_GLOBAL
13493 # else
13494 # define LT_DLGLOBAL 0
13495 # endif
13496 #endif
13497
13498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13499 find out it does not work in some platform. */
13500 #ifndef LT_DLLAZY_OR_NOW
13501 # ifdef RTLD_LAZY
13502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13503 # else
13504 # ifdef DL_LAZY
13505 # define LT_DLLAZY_OR_NOW DL_LAZY
13506 # else
13507 # ifdef RTLD_NOW
13508 # define LT_DLLAZY_OR_NOW RTLD_NOW
13509 # else
13510 # ifdef DL_NOW
13511 # define LT_DLLAZY_OR_NOW DL_NOW
13512 # else
13513 # define LT_DLLAZY_OR_NOW 0
13514 # endif
13515 # endif
13516 # endif
13517 # endif
13518 #endif
13519
13520 /* When -fvisibility=hidden is used, assume the code has been annotated
13521 correspondingly for the symbols needed. */
13522 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13523 int fnord () __attribute__((visibility("default")));
13524 #endif
13525
13526 int fnord () { return 42; }
13527 int main ()
13528 {
13529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13530 int status = $lt_dlunknown;
13531
13532 if (self)
13533 {
13534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13535 else
13536 {
13537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13538 else puts (dlerror ());
13539 }
13540 /* dlclose (self); */
13541 }
13542 else
13543 puts (dlerror ());
13544
13545 return status;
13546 }
13547 _LT_EOF
13548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13549 (eval $ac_link) 2>&5
13550 ac_status=$?
13551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13552 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13553 (./conftest; exit; ) >&5 2>/dev/null
13554 lt_status=$?
13555 case x$lt_status in
13556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13558 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13559 esac
13560 else :
13561 # compilation failed
13562 lt_cv_dlopen_self_static=no
13563 fi
13564 fi
13565 rm -fr conftest*
13566
13567 ;;
13568 esac
13569 fi
13570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13571 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13572 fi
13573
13574 CPPFLAGS=$save_CPPFLAGS
13575 LDFLAGS=$save_LDFLAGS
13576 LIBS=$save_LIBS
13577 ;;
13578 esac
13579
13580 case $lt_cv_dlopen_self in
13581 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13582 *) enable_dlopen_self=unknown ;;
13583 esac
13584
13585 case $lt_cv_dlopen_self_static in
13586 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13587 *) enable_dlopen_self_static=unknown ;;
13588 esac
13589 fi
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 striplib=
13608 old_striplib=
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13610 printf %s "checking whether stripping libraries is possible... " >&6; }
13611 if test -z "$STRIP"; then
13612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 printf "%s\n" "no" >&6; }
13614 else
13615 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13616 old_striplib="$STRIP --strip-debug"
13617 striplib="$STRIP --strip-unneeded"
13618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13619 printf "%s\n" "yes" >&6; }
13620 else
13621 case $host_os in
13622 darwin*)
13623 # FIXME - insert some real tests, host_os isn't really good enough
13624 striplib="$STRIP -x"
13625 old_striplib="$STRIP -S"
13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13627 printf "%s\n" "yes" >&6; }
13628 ;;
13629 freebsd*)
13630 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13631 old_striplib="$STRIP --strip-debug"
13632 striplib="$STRIP --strip-unneeded"
13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13634 printf "%s\n" "yes" >&6; }
13635 else
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 printf "%s\n" "no" >&6; }
13638 fi
13639 ;;
13640 *)
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 printf "%s\n" "no" >&6; }
13643 ;;
13644 esac
13645 fi
13646 fi
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659 # Report what library types will actually be built
13660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13661 printf %s "checking if libtool supports shared libraries... " >&6; }
13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13663 printf "%s\n" "$can_build_shared" >&6; }
13664
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13666 printf %s "checking whether to build shared libraries... " >&6; }
13667 test no = "$can_build_shared" && enable_shared=no
13668
13669 # On AIX, shared libraries and static libraries use the same namespace, and
13670 # are all built from PIC.
13671 case $host_os in
13672 aix3*)
13673 test yes = "$enable_shared" && enable_static=no
13674 if test -n "$RANLIB"; then
13675 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13676 postinstall_cmds='$RANLIB $lib'
13677 fi
13678 ;;
13679
13680 aix[4-9]*)
13681 if test ia64 != "$host_cpu"; then
13682 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13683 yes,aix,yes) ;; # shared object as lib.so file only
13684 yes,svr4,*) ;; # shared object as lib.so archive member only
13685 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13686 esac
13687 fi
13688 ;;
13689 esac
13690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13691 printf "%s\n" "$enable_shared" >&6; }
13692
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13694 printf %s "checking whether to build static libraries... " >&6; }
13695 # Make sure either enable_shared or enable_static is yes.
13696 test yes = "$enable_shared" || enable_static=yes
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13698 printf "%s\n" "$enable_static" >&6; }
13699
13700
13701
13702
13703 fi
13704 ac_ext=c
13705 ac_cpp='$CPP $CPPFLAGS'
13706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13709
13710 CC=$lt_save_CC
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726 ac_config_commands="$ac_config_commands libtool"
13727
13728
13729
13730
13731 # Only expand once:
13732
13733
13734
13735
13736
13737 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13738 if test -n "$ac_tool_prefix"; then
13739 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13740 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13742 printf %s "checking for $ac_word... " >&6; }
13743 if test ${ac_cv_path_PKG_CONFIG+y}
13744 then :
13745 printf %s "(cached) " >&6
13746 else case e in #(
13747 e) case $PKG_CONFIG in
13748 [\\/]* | ?:[\\/]*)
13749 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13750 ;;
13751 *)
13752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753 for as_dir in $PATH
13754 do
13755 IFS=$as_save_IFS
13756 case $as_dir in #(((
13757 '') as_dir=./ ;;
13758 */) ;;
13759 *) as_dir=$as_dir/ ;;
13760 esac
13761 for ac_exec_ext in '' $ac_executable_extensions; do
13762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13763 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13765 break 2
13766 fi
13767 done
13768 done
13769 IFS=$as_save_IFS
13770
13771 ;;
13772 esac ;;
13773 esac
13774 fi
13775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13776 if test -n "$PKG_CONFIG"; then
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13778 printf "%s\n" "$PKG_CONFIG" >&6; }
13779 else
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 printf "%s\n" "no" >&6; }
13782 fi
13783
13784
13785 fi
13786 if test -z "$ac_cv_path_PKG_CONFIG"; then
13787 ac_pt_PKG_CONFIG=$PKG_CONFIG
13788 # Extract the first word of "pkg-config", so it can be a program name with args.
13789 set dummy pkg-config; ac_word=$2
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13791 printf %s "checking for $ac_word... " >&6; }
13792 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13793 then :
13794 printf %s "(cached) " >&6
13795 else case e in #(
13796 e) case $ac_pt_PKG_CONFIG in
13797 [\\/]* | ?:[\\/]*)
13798 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13799 ;;
13800 *)
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13803 do
13804 IFS=$as_save_IFS
13805 case $as_dir in #(((
13806 '') as_dir=./ ;;
13807 */) ;;
13808 *) as_dir=$as_dir/ ;;
13809 esac
13810 for ac_exec_ext in '' $ac_executable_extensions; do
13811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13812 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13814 break 2
13815 fi
13816 done
13817 done
13818 IFS=$as_save_IFS
13819
13820 ;;
13821 esac ;;
13822 esac
13823 fi
13824 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13825 if test -n "$ac_pt_PKG_CONFIG"; then
13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13827 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13828 else
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830 printf "%s\n" "no" >&6; }
13831 fi
13832
13833 if test "x$ac_pt_PKG_CONFIG" = x; then
13834 PKG_CONFIG=""
13835 else
13836 case $cross_compiling:$ac_tool_warned in
13837 yes:)
13838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13840 ac_tool_warned=yes ;;
13841 esac
13842 PKG_CONFIG=$ac_pt_PKG_CONFIG
13843 fi
13844 else
13845 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13846 fi
13847
13848 fi
13849 if test -n "$PKG_CONFIG"; then
13850 _pkg_min_version=0.9.0
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13852 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13853 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855 printf "%s\n" "yes" >&6; }
13856 else
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858 printf "%s\n" "no" >&6; }
13859 PKG_CONFIG=""
13860 fi
13861
13862 fi
13863
13864 pkg_failed=no
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13866 printf %s "checking for GNUTLS... " >&6; }
13867
13868 if test -n "$PKG_CONFIG"; then
13869 if test -n "$GNUTLS_CFLAGS"; then
13870 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13871 else
13872 if test -n "$PKG_CONFIG" && \
13873 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13874 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13875 ac_status=$?
13876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; then
13878 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
13879 else
13880 pkg_failed=yes
13881 fi
13882 fi
13883 else
13884 pkg_failed=untried
13885 fi
13886 if test -n "$PKG_CONFIG"; then
13887 if test -n "$GNUTLS_LIBS"; then
13888 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13889 else
13890 if test -n "$PKG_CONFIG" && \
13891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13892 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13893 ac_status=$?
13894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13895 test $ac_status = 0; }; then
13896 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13897 else
13898 pkg_failed=yes
13899 fi
13900 fi
13901 else
13902 pkg_failed=untried
13903 fi
13904
13905
13906
13907 if test $pkg_failed = yes; then
13908
13909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13910 _pkg_short_errors_supported=yes
13911 else
13912 _pkg_short_errors_supported=no
13913 fi
13914 if test $_pkg_short_errors_supported = yes; then
13915 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"`
13916 else
13917 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"`
13918 fi
13919 # Put the nasty error message in config.log where it belongs
13920 echo "$GNUTLS_PKG_ERRORS" >&5
13921
13922 as_fn_error $? "Package requirements (gnutls) were not met:
13923
13924 $GNUTLS_PKG_ERRORS
13925
13926 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13927 installed software in a non-standard prefix.
13928
13929 Alternatively, you may set the environment variables GNUTLS_CFLAGS
13930 and GNUTLS_LIBS to avoid the need to call pkg-config.
13931 See the pkg-config man page for more details.
13932 " "$LINENO" 5
13933 elif test $pkg_failed = untried; then
13934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13935 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13936 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13937 is in your PATH or set the PKG_CONFIG environment variable to the full
13938 path to pkg-config.
13939
13940 Alternatively, you may set the environment variables GNUTLS_CFLAGS
13941 and GNUTLS_LIBS to avoid the need to call pkg-config.
13942 See the pkg-config man page for more details.
13943
13944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13945 See 'config.log' for more details" "$LINENO" 5; }
13946 else
13947 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13948 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
13949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13950 printf "%s\n" "yes" >&6; }
13951 :
13952 fi
13953
13954 ac_enable_srp=no
13955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SRP authentication support" >&5
13956 printf %s "checking whether to enable SRP authentication support... " >&6; }
13957 # Check whether --enable-srp-authentication was given.
13958 if test ${enable_srp_authentication+y}
13959 then :
13960 enableval=$enable_srp_authentication; ac_enable_srp=$enableval
13961 fi
13962
13963 if test "$ac_enable_srp" = no; then
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13965 printf "%s\n" "no" >&6; }
13966 else
13967
13968 printf "%s\n" "#define ENABLE_SRP 1" >>confdefs.h
13969
13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13971 printf "%s\n" "yes" >&6; }
13972 fi
13973 if test "$ac_enable_srp" != no; then
13974 ENABLE_SRP_TRUE=
13975 ENABLE_SRP_FALSE='#'
13976 else
13977 ENABLE_SRP_TRUE='#'
13978 ENABLE_SRP_FALSE=
13979 fi
13980
13981
13982
13983 # Check whether --with-guile-site-dir was given.
13984 if test ${with_guile_site_dir+y}
13985 then :
13986 withval=$with_guile_site_dir; guilesitedir="${withval}"
13987 else case e in #(
13988 e) guilesitedir='$(GUILE_SITE)' ;;
13989 esac
13990 fi
13991
13992
13993 # Check whether --with-guile-site-ccache-dir was given.
13994 if test ${with_guile_site_ccache_dir+y}
13995 then :
13996 withval=$with_guile_site_ccache_dir; guilesiteccachedir="${withval}"
13997 else case e in #(
13998 e) guilesiteccachedir='$(GUILE_SITE_CCACHE)' ;;
13999 esac
14000 fi
14001
14002
14003 # Check whether --with-guile-extension-dir was given.
14004 if test ${with_guile_extension_dir+y}
14005 then :
14006 withval=$with_guile_extension_dir; guileextensiondir="${withval}"
14007 else case e in #(
14008 e) guileextensiondir='$(GUILE_EXTENSION)' ;;
14009 esac
14010 fi
14011
14012
14013
14014
14015 maybe_guileextensiondir="\"$guileextensiondir\""
14016
14017 # Extract the first word of "guile-snarf", so it can be a program name with args.
14018 set dummy guile-snarf; ac_word=$2
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14020 printf %s "checking for $ac_word... " >&6; }
14021 if test ${ac_cv_path_guile_snarf+y}
14022 then :
14023 printf %s "(cached) " >&6
14024 else case e in #(
14025 e) case $guile_snarf in
14026 [\\/]* | ?:[\\/]*)
14027 ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
14028 ;;
14029 *)
14030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031 for as_dir in $PATH
14032 do
14033 IFS=$as_save_IFS
14034 case $as_dir in #(((
14035 '') as_dir=./ ;;
14036 */) ;;
14037 *) as_dir=$as_dir/ ;;
14038 esac
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14041 ac_cv_path_guile_snarf="$as_dir$ac_word$ac_exec_ext"
14042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14043 break 2
14044 fi
14045 done
14046 done
14047 IFS=$as_save_IFS
14048
14049 ;;
14050 esac ;;
14051 esac
14052 fi
14053 guile_snarf=$ac_cv_path_guile_snarf
14054 if test -n "$guile_snarf"; then
14055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
14056 printf "%s\n" "$guile_snarf" >&6; }
14057 else
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14059 printf "%s\n" "no" >&6; }
14060 fi
14061
14062
14063 if test "x$guile_snarf" = "x"; then
14064 as_fn_error $? "\`guile-snarf' from Guile not found." "$LINENO" 5
14065 else
14066 guile_snarf="env 'CPP=$CPP' $guile_snarf"
14067 fi
14068
14069 # Extract the first word of "guild", so it can be a program name with args.
14070 set dummy guild; ac_word=$2
14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14072 printf %s "checking for $ac_word... " >&6; }
14073 if test ${ac_cv_path_GUILD+y}
14074 then :
14075 printf %s "(cached) " >&6
14076 else case e in #(
14077 e) case $GUILD in
14078 [\\/]* | ?:[\\/]*)
14079 ac_cv_path_GUILD="$GUILD" # Let the user override the test with a path.
14080 ;;
14081 *)
14082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14084 do
14085 IFS=$as_save_IFS
14086 case $as_dir in #(((
14087 '') as_dir=./ ;;
14088 */) ;;
14089 *) as_dir=$as_dir/ ;;
14090 esac
14091 for ac_exec_ext in '' $ac_executable_extensions; do
14092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14093 ac_cv_path_GUILD="$as_dir$ac_word$ac_exec_ext"
14094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14095 break 2
14096 fi
14097 done
14098 done
14099 IFS=$as_save_IFS
14100
14101 ;;
14102 esac ;;
14103 esac
14104 fi
14105 GUILD=$ac_cv_path_GUILD
14106 if test -n "$GUILD"; then
14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILD" >&5
14108 printf "%s\n" "$GUILD" >&6; }
14109 else
14110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14111 printf "%s\n" "no" >&6; }
14112 fi
14113
14114
14115
14116
14117
14118 if test "x$PKG_CONFIG" = x; then
14119 as_fn_error $? "pkg-config is missing, please install it" "$LINENO" 5
14120 fi
14121 _guile_versions_to_search="3.0 2.2 2.0"
14122 if test -n "$GUILE_EFFECTIVE_VERSION"; then
14123 _guile_tmp=""
14124 for v in $_guile_versions_to_search; do
14125 if test "$v" = "$GUILE_EFFECTIVE_VERSION"; then
14126 _guile_tmp=$v
14127 fi
14128 done
14129 if test -z "$_guile_tmp"; then
14130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14131 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14132 as_fn_error $? "searching for guile development files for versions $_guile_versions_to_search, but previously found $GUILE version $GUILE_EFFECTIVE_VERSION
14133 See 'config.log' for more details" "$LINENO" 5; }
14134 fi
14135 _guile_versions_to_search=$GUILE_EFFECTIVE_VERSION
14136 fi
14137 GUILE_EFFECTIVE_VERSION=""
14138 _guile_errors=""
14139 for v in $_guile_versions_to_search; do
14140 if test -z "$GUILE_EFFECTIVE_VERSION"; then
14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for guile $v" >&5
14142 printf "%s\n" "$as_me: checking for guile $v" >&6;}
14143 if test -n "$PKG_CONFIG" && \
14144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
14145 ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
14146 ac_status=$?
14147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14148 test $ac_status = 0; }; then
14149 GUILE_EFFECTIVE_VERSION=$v
14150 fi
14151 fi
14152 done
14153
14154 if test -z "$GUILE_EFFECTIVE_VERSION"; then
14155 as_fn_error $? "
14156 No Guile development packages were found.
14157
14158 Please verify that you have Guile installed. If you installed Guile
14159 from a binary distribution, please verify that you have also installed
14160 the development packages. If you installed it yourself, you might need
14161 to adjust your PKG_CONFIG_PATH; see the pkg-config man page for more.
14162 " "$LINENO" 5
14163 fi
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found guile $GUILE_EFFECTIVE_VERSION" >&5
14165 printf "%s\n" "$as_me: found guile $GUILE_EFFECTIVE_VERSION" >&6;}
14166
14167
14168 _guile_required_version="$GUILE_EFFECTIVE_VERSION"
14169 if test -z "$_guile_required_version"; then
14170 _guile_required_version=3.0
14171 fi
14172
14173 _guile_candidates=guile
14174 _tmp=
14175 for v in `echo "$_guile_required_version" | tr . ' '`; do
14176 if test -n "$_tmp"; then _tmp=$_tmp.; fi
14177 _tmp=$_tmp$v
14178 _guile_candidates="guile-$_tmp guile$_tmp $_guile_candidates"
14179 done
14180
14181 for ac_prog in $_guile_candidates
14182 do
14183 # Extract the first word of "$ac_prog", so it can be a program name with args.
14184 set dummy $ac_prog; ac_word=$2
14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186 printf %s "checking for $ac_word... " >&6; }
14187 if test ${ac_cv_path_GUILE+y}
14188 then :
14189 printf %s "(cached) " >&6
14190 else case e in #(
14191 e) case $GUILE in
14192 [\\/]* | ?:[\\/]*)
14193 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
14194 ;;
14195 *)
14196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197 for as_dir in $PATH
14198 do
14199 IFS=$as_save_IFS
14200 case $as_dir in #(((
14201 '') as_dir=./ ;;
14202 */) ;;
14203 *) as_dir=$as_dir/ ;;
14204 esac
14205 for ac_exec_ext in '' $ac_executable_extensions; do
14206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14207 ac_cv_path_GUILE="$as_dir$ac_word$ac_exec_ext"
14208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14209 break 2
14210 fi
14211 done
14212 done
14213 IFS=$as_save_IFS
14214
14215 ;;
14216 esac ;;
14217 esac
14218 fi
14219 GUILE=$ac_cv_path_GUILE
14220 if test -n "$GUILE"; then
14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
14222 printf "%s\n" "$GUILE" >&6; }
14223 else
14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 printf "%s\n" "no" >&6; }
14226 fi
14227
14228
14229 test -n "$GUILE" && break
14230 done
14231
14232 if test -z "$GUILE"; then
14233 as_fn_error $? "guile required but not found" "$LINENO" 5
14234 fi
14235
14236 _guile_suffix=`echo "$GUILE" | sed -e 's,^.*/guile\(.*\)$,\1,'`
14237 _guile_effective_version=`$GUILE -c "(display (effective-version))"`
14238 if test -z "$GUILE_EFFECTIVE_VERSION"; then
14239 GUILE_EFFECTIVE_VERSION=$_guile_effective_version
14240 elif test "$GUILE_EFFECTIVE_VERSION" != "$_guile_effective_version"; then
14241 as_fn_error $? "found development files for Guile $GUILE_EFFECTIVE_VERSION, but $GUILE has effective version $_guile_effective_version" "$LINENO" 5
14242 fi
14243
14244 _guile_major_version=`$GUILE -c "(display (major-version))"`
14245 _guile_minor_version=`$GUILE -c "(display (minor-version))"`
14246 _guile_micro_version=`$GUILE -c "(display (micro-version))"`
14247 _guile_prog_version="$_guile_major_version.$_guile_minor_version.$_guile_micro_version"
14248
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile version >= $_guile_required_version" >&5
14250 printf %s "checking for Guile version >= $_guile_required_version... " >&6; }
14251 _major_version=`echo $_guile_required_version | cut -d . -f 1`
14252 _minor_version=`echo $_guile_required_version | cut -d . -f 2`
14253 _micro_version=`echo $_guile_required_version | cut -d . -f 3`
14254 if test "$_guile_major_version" -gt "$_major_version"; then
14255 true
14256 elif test "$_guile_major_version" -eq "$_major_version"; then
14257 if test "$_guile_minor_version" -gt "$_minor_version"; then
14258 true
14259 elif test "$_guile_minor_version" -eq "$_minor_version"; then
14260 if test -n "$_micro_version"; then
14261 if test "$_guile_micro_version" -lt "$_micro_version"; then
14262 as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
14263 fi
14264 fi
14265 elif test "$GUILE_EFFECTIVE_VERSION" = "$_major_version.$_minor_version" -a -z "$_micro_version"; then
14266 # Allow prereleases that have the right effective version.
14267 true
14268 else
14269 as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
14270 fi
14271 elif test "$GUILE_EFFECTIVE_VERSION" = "$_major_version.$_minor_version" -a -z "$_micro_version"; then
14272 # Allow prereleases that have the right effective version.
14273 true
14274 else
14275 as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
14276 fi
14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_guile_prog_version" >&5
14278 printf "%s\n" "$_guile_prog_version" >&6; }
14279
14280 # Extract the first word of "guild$_guile_suffix", so it can be a program name with args.
14281 set dummy guild$_guile_suffix; ac_word=$2
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 printf %s "checking for $ac_word... " >&6; }
14284 if test ${ac_cv_path_GUILD+y}
14285 then :
14286 printf %s "(cached) " >&6
14287 else case e in #(
14288 e) case $GUILD in
14289 [\\/]* | ?:[\\/]*)
14290 ac_cv_path_GUILD="$GUILD" # Let the user override the test with a path.
14291 ;;
14292 *)
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296 IFS=$as_save_IFS
14297 case $as_dir in #(((
14298 '') as_dir=./ ;;
14299 */) ;;
14300 *) as_dir=$as_dir/ ;;
14301 esac
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14304 ac_cv_path_GUILD="$as_dir$ac_word$ac_exec_ext"
14305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14306 break 2
14307 fi
14308 done
14309 done
14310 IFS=$as_save_IFS
14311
14312 ;;
14313 esac ;;
14314 esac
14315 fi
14316 GUILD=$ac_cv_path_GUILD
14317 if test -n "$GUILD"; then
14318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILD" >&5
14319 printf "%s\n" "$GUILD" >&6; }
14320 else
14321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322 printf "%s\n" "no" >&6; }
14323 fi
14324
14325
14326
14327
14328 # Extract the first word of "guile-config$_guile_suffix", so it can be a program name with args.
14329 set dummy guile-config$_guile_suffix; ac_word=$2
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14331 printf %s "checking for $ac_word... " >&6; }
14332 if test ${ac_cv_path_GUILE_CONFIG+y}
14333 then :
14334 printf %s "(cached) " >&6
14335 else case e in #(
14336 e) case $GUILE_CONFIG in
14337 [\\/]* | ?:[\\/]*)
14338 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
14339 ;;
14340 *)
14341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342 for as_dir in $PATH
14343 do
14344 IFS=$as_save_IFS
14345 case $as_dir in #(((
14346 '') as_dir=./ ;;
14347 */) ;;
14348 *) as_dir=$as_dir/ ;;
14349 esac
14350 for ac_exec_ext in '' $ac_executable_extensions; do
14351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14352 ac_cv_path_GUILE_CONFIG="$as_dir$ac_word$ac_exec_ext"
14353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14354 break 2
14355 fi
14356 done
14357 done
14358 IFS=$as_save_IFS
14359
14360 ;;
14361 esac ;;
14362 esac
14363 fi
14364 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
14365 if test -n "$GUILE_CONFIG"; then
14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
14367 printf "%s\n" "$GUILE_CONFIG" >&6; }
14368 else
14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 printf "%s\n" "no" >&6; }
14371 fi
14372
14373
14374
14375 if test -n "$GUILD"; then
14376 GUILE_TOOLS=$GUILD
14377 else
14378 # Extract the first word of "guile-tools$_guile_suffix", so it can be a program name with args.
14379 set dummy guile-tools$_guile_suffix; ac_word=$2
14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 printf %s "checking for $ac_word... " >&6; }
14382 if test ${ac_cv_path_GUILE_TOOLS+y}
14383 then :
14384 printf %s "(cached) " >&6
14385 else case e in #(
14386 e) case $GUILE_TOOLS in
14387 [\\/]* | ?:[\\/]*)
14388 ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
14389 ;;
14390 *)
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14393 do
14394 IFS=$as_save_IFS
14395 case $as_dir in #(((
14396 '') as_dir=./ ;;
14397 */) ;;
14398 *) as_dir=$as_dir/ ;;
14399 esac
14400 for ac_exec_ext in '' $ac_executable_extensions; do
14401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14402 ac_cv_path_GUILE_TOOLS="$as_dir$ac_word$ac_exec_ext"
14403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14404 break 2
14405 fi
14406 done
14407 done
14408 IFS=$as_save_IFS
14409
14410 ;;
14411 esac ;;
14412 esac
14413 fi
14414 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
14415 if test -n "$GUILE_TOOLS"; then
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
14417 printf "%s\n" "$GUILE_TOOLS" >&6; }
14418 else
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14420 printf "%s\n" "no" >&6; }
14421 fi
14422
14423
14424 fi
14425
14426
14427
14428
14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
14430 printf %s "checking for Guile site directory... " >&6; }
14431 GUILE_SITE=`$PKG_CONFIG --print-errors --variable=sitedir guile-$GUILE_EFFECTIVE_VERSION`
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
14433 printf "%s\n" "$GUILE_SITE" >&6; }
14434 if test "$GUILE_SITE" = ""; then
14435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14436 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14437 as_fn_error $? "sitedir not found
14438 See 'config.log' for more details" "$LINENO" 5; }
14439 fi
14440
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile site-ccache directory using pkgconfig" >&5
14442 printf %s "checking for Guile site-ccache directory using pkgconfig... " >&6; }
14443 GUILE_SITE_CCACHE=`$PKG_CONFIG --variable=siteccachedir guile-$GUILE_EFFECTIVE_VERSION`
14444 if test "$GUILE_SITE_CCACHE" = ""; then
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 printf "%s\n" "no" >&6; }
14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile site-ccache directory using interpreter" >&5
14448 printf %s "checking for Guile site-ccache directory using interpreter... " >&6; }
14449 GUILE_SITE_CCACHE=`$GUILE -c "(display (if (defined? '%site-ccache-dir) (%site-ccache-dir) \"\"))"`
14450 if test $? != "0" -o "$GUILE_SITE_CCACHE" = ""; then
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452 printf "%s\n" "no" >&6; }
14453 GUILE_SITE_CCACHE=""
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: siteccachedir not found" >&5
14455 printf "%s\n" "$as_me: WARNING: siteccachedir not found" >&2;}
14456 fi
14457 fi
14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE_CCACHE" >&5
14459 printf "%s\n" "$GUILE_SITE_CCACHE" >&6; }
14460
14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile extensions directory" >&5
14462 printf %s "checking for Guile extensions directory... " >&6; }
14463 GUILE_EXTENSION=`$PKG_CONFIG --print-errors --variable=extensiondir guile-$GUILE_EFFECTIVE_VERSION`
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_EXTENSION" >&5
14465 printf "%s\n" "$GUILE_EXTENSION" >&6; }
14466 if test "$GUILE_EXTENSION" = ""; then
14467 GUILE_EXTENSION=""
14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: extensiondir not found" >&5
14469 printf "%s\n" "$as_me: WARNING: extensiondir not found" >&2;}
14470 fi
14471
14472
14473
14474
14475 # Check whether --with-gnu-ld was given.
14476 if test ${with_gnu_ld+y}
14477 then :
14478 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14479 else case e in #(
14480 e) with_gnu_ld=no ;;
14481 esac
14482 fi
14483
14484 # Prepare PATH_SEPARATOR.
14485 # The user is always right.
14486 if test "${PATH_SEPARATOR+set}" != set; then
14487 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14488 # contains only /bin. Note that ksh looks also at the FPATH variable,
14489 # so we have to set that as well for the test.
14490 PATH_SEPARATOR=:
14491 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14492 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14493 || PATH_SEPARATOR=';'
14494 }
14495 fi
14496
14497 if test -n "$LD"; then
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
14499 printf %s "checking for ld... " >&6; }
14500 elif test "$GCC" = yes; then
14501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14502 printf %s "checking for ld used by $CC... " >&6; }
14503 elif test "$with_gnu_ld" = yes; then
14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14505 printf %s "checking for GNU ld... " >&6; }
14506 else
14507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14508 printf %s "checking for non-GNU ld... " >&6; }
14509 fi
14510 if test -n "$LD"; then
14511 # Let the user override the test with a path.
14512 :
14513 else
14514 if test ${acl_cv_path_LD+y}
14515 then :
14516 printf %s "(cached) " >&6
14517 else case e in #(
14518 e)
14519 acl_cv_path_LD= # Final result of this test
14520 ac_prog=ld # Program to search in $PATH
14521 if test "$GCC" = yes; then
14522 # Check if gcc -print-prog-name=ld gives a path.
14523 case $host in
14524 *-*-mingw* | windows*)
14525 # gcc leaves a trailing carriage return which upsets mingw
14526 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14527 *)
14528 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
14529 esac
14530 case $acl_output in
14531 # Accept absolute paths.
14532 [\\/]* | ?:[\\/]*)
14533 re_direlt='/[^/][^/]*/\.\./'
14534 # Canonicalize the pathname of ld
14535 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
14536 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
14537 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
14538 done
14539 # Got the pathname. No search in PATH is needed.
14540 acl_cv_path_LD="$acl_output"
14541 ac_prog=
14542 ;;
14543 "")
14544 # If it fails, then pretend we aren't using GCC.
14545 ;;
14546 *)
14547 # If it is relative, then search for the first ld in PATH.
14548 with_gnu_ld=unknown
14549 ;;
14550 esac
14551 fi
14552 if test -n "$ac_prog"; then
14553 # Search for $ac_prog in $PATH.
14554 acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
14555 for ac_dir in $PATH; do
14556 IFS="$acl_saved_IFS"
14557 test -z "$ac_dir" && ac_dir=.
14558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14559 acl_cv_path_LD="$ac_dir/$ac_prog"
14560 # Check to see if the program is GNU ld. I'd rather use --version,
14561 # but apparently some variants of GNU ld only accept -v.
14562 # Break only if it was the GNU/non-GNU ld that we prefer.
14563 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14564 *GNU* | *'with BFD'*)
14565 test "$with_gnu_ld" != no && break
14566 ;;
14567 *)
14568 test "$with_gnu_ld" != yes && break
14569 ;;
14570 esac
14571 fi
14572 done
14573 IFS="$acl_saved_IFS"
14574 fi
14575 case $host in
14576 *-*-aix*)
14577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14578 /* end confdefs.h. */
14579 #if defined __powerpc64__ || defined __LP64__
14580 int ok;
14581 #else
14582 error fail
14583 #endif
14584
14585 _ACEOF
14586 if ac_fn_c_try_compile "$LINENO"
14587 then :
14588 # The compiler produces 64-bit code. Add option '-b64' so that the
14589 # linker groks 64-bit object files.
14590 case "$acl_cv_path_LD " in
14591 *" -b64 "*) ;;
14592 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
14593 esac
14594
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14597 ;;
14598 sparc64-*-netbsd*)
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601 #if defined __sparcv9 || defined __arch64__
14602 int ok;
14603 #else
14604 error fail
14605 #endif
14606
14607 _ACEOF
14608 if ac_fn_c_try_compile "$LINENO"
14609 then :
14610
14611 else case e in #(
14612 e) # The compiler produces 32-bit code. Add option '-m elf32_sparc'
14613 # so that the linker groks 32-bit object files.
14614 case "$acl_cv_path_LD " in
14615 *" -m elf32_sparc "*) ;;
14616 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
14617 esac
14618 ;;
14619 esac
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14622 ;;
14623 esac
14624 ;;
14625 esac
14626 fi
14627
14628 LD="$acl_cv_path_LD"
14629 fi
14630 if test -n "$LD"; then
14631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14632 printf "%s\n" "$LD" >&6; }
14633 else
14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 printf "%s\n" "no" >&6; }
14636 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14637 fi
14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14639 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14640 if test ${acl_cv_prog_gnu_ld+y}
14641 then :
14642 printf %s "(cached) " >&6
14643 else case e in #(
14644 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
14645 case `$LD -v 2>&1 </dev/null` in
14646 *GNU* | *'with BFD'*)
14647 acl_cv_prog_gnu_ld=yes
14648 ;;
14649 *)
14650 acl_cv_prog_gnu_ld=no
14651 ;;
14652 esac ;;
14653 esac
14654 fi
14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14656 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
14657 with_gnu_ld=$acl_cv_prog_gnu_ld
14658
14659
14660
14661
14662
14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14664 printf %s "checking for shared library run path origin... " >&6; }
14665 if test ${acl_cv_rpath+y}
14666 then :
14667 printf %s "(cached) " >&6
14668 else case e in #(
14669 e)
14670 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14671 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14672 . ./conftest.sh
14673 rm -f ./conftest.sh
14674 acl_cv_rpath=done
14675 ;;
14676 esac
14677 fi
14678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14679 printf "%s\n" "$acl_cv_rpath" >&6; }
14680 wl="$acl_cv_wl"
14681 acl_libext="$acl_cv_libext"
14682 acl_shlibext="$acl_cv_shlibext"
14683 acl_libname_spec="$acl_cv_libname_spec"
14684 acl_library_names_spec="$acl_cv_library_names_spec"
14685 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14686 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14687 acl_hardcode_direct="$acl_cv_hardcode_direct"
14688 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14689 # Check whether --enable-rpath was given.
14690 if test ${enable_rpath+y}
14691 then :
14692 enableval=$enable_rpath; :
14693 else case e in #(
14694 e) enable_rpath=yes ;;
14695 esac
14696 fi
14697
14698
14699
14700
14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
14702 printf %s "checking 32-bit host C ABI... " >&6; }
14703 if test ${gl_cv_host_cpu_c_abi_32bit+y}
14704 then :
14705 printf %s "(cached) " >&6
14706 else case e in #(
14707 e) case "$host_cpu" in
14708
14709 # CPUs that only support a 32-bit ABI.
14710 arc \
14711 | bfin \
14712 | cris* \
14713 | csky \
14714 | epiphany \
14715 | ft32 \
14716 | h8300 \
14717 | m68k \
14718 | microblaze | microblazeel \
14719 | nds32 | nds32le | nds32be \
14720 | nios2 | nios2eb | nios2el \
14721 | or1k* \
14722 | or32 \
14723 | sh | sh1234 | sh1234elb \
14724 | tic6x \
14725 | xtensa* )
14726 gl_cv_host_cpu_c_abi_32bit=yes
14727 ;;
14728
14729 # CPUs that only support a 64-bit ABI.
14730 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
14731 | mmix )
14732 gl_cv_host_cpu_c_abi_32bit=no
14733 ;;
14734
14735 *)
14736 if test -n "$gl_cv_host_cpu_c_abi"; then
14737 case "$gl_cv_host_cpu_c_abi" in
14738 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | loongarch32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
14739 gl_cv_host_cpu_c_abi_32bit=yes ;;
14740 x86_64 | alpha | arm64 | aarch64c | hppa64 | ia64 | loongarch64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
14741 gl_cv_host_cpu_c_abi_32bit=no ;;
14742 *)
14743 gl_cv_host_cpu_c_abi_32bit=unknown ;;
14744 esac
14745 else
14746 gl_cv_host_cpu_c_abi_32bit=unknown
14747 fi
14748 if test $gl_cv_host_cpu_c_abi_32bit = unknown; then
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14751 int test_pointer_size[sizeof (void *) - 5];
14752
14753 _ACEOF
14754 if ac_fn_c_try_compile "$LINENO"
14755 then :
14756 gl_cv_host_cpu_c_abi_32bit=no
14757 else case e in #(
14758 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
14759 esac
14760 fi
14761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14762 fi
14763 ;;
14764 esac
14765 ;;
14766 esac
14767 fi
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
14769 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
14770
14771 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
14772
14773
14774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
14775 printf %s "checking for egrep -e... " >&6; }
14776 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
14777 then :
14778 printf %s "(cached) " >&6
14779 else case e in #(
14780 e) if test -z "$EGREP_TRADITIONAL"; then
14781 ac_path_EGREP_TRADITIONAL_found=false
14782 # Loop through the user's path and test for each of PROGNAME-LIST
14783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14785 do
14786 IFS=$as_save_IFS
14787 case $as_dir in #(((
14788 '') as_dir=./ ;;
14789 */) ;;
14790 *) as_dir=$as_dir/ ;;
14791 esac
14792 for ac_prog in grep ggrep
14793 do
14794 for ac_exec_ext in '' $ac_executable_extensions; do
14795 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
14796 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
14797 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
14798 # Check for GNU $ac_path_EGREP_TRADITIONAL
14799 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
14800 *GNU*)
14801 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
14802 #(
14803 *)
14804 ac_count=0
14805 printf %s 0123456789 >"conftest.in"
14806 while :
14807 do
14808 cat "conftest.in" "conftest.in" >"conftest.tmp"
14809 mv "conftest.tmp" "conftest.in"
14810 cp "conftest.in" "conftest.nl"
14811 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
14812 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14814 as_fn_arith $ac_count + 1 && ac_count=$as_val
14815 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
14816 # Best one so far, save it but keep looking for a better one
14817 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
14818 ac_path_EGREP_TRADITIONAL_max=$ac_count
14819 fi
14820 # 10*(2^10) chars as input seems more than enough
14821 test $ac_count -gt 10 && break
14822 done
14823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14824 esac
14825
14826 $ac_path_EGREP_TRADITIONAL_found && break 3
14827 done
14828 done
14829 done
14830 IFS=$as_save_IFS
14831 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
14832 :
14833 fi
14834 else
14835 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
14836 fi
14837
14838 if test "$ac_cv_path_EGREP_TRADITIONAL"
14839 then :
14840 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
14841 else case e in #(
14842 e) if test -z "$EGREP_TRADITIONAL"; then
14843 ac_path_EGREP_TRADITIONAL_found=false
14844 # Loop through the user's path and test for each of PROGNAME-LIST
14845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14847 do
14848 IFS=$as_save_IFS
14849 case $as_dir in #(((
14850 '') as_dir=./ ;;
14851 */) ;;
14852 *) as_dir=$as_dir/ ;;
14853 esac
14854 for ac_prog in egrep
14855 do
14856 for ac_exec_ext in '' $ac_executable_extensions; do
14857 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
14858 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
14859 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
14860 # Check for GNU $ac_path_EGREP_TRADITIONAL
14861 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
14862 *GNU*)
14863 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
14864 #(
14865 *)
14866 ac_count=0
14867 printf %s 0123456789 >"conftest.in"
14868 while :
14869 do
14870 cat "conftest.in" "conftest.in" >"conftest.tmp"
14871 mv "conftest.tmp" "conftest.in"
14872 cp "conftest.in" "conftest.nl"
14873 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
14874 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14876 as_fn_arith $ac_count + 1 && ac_count=$as_val
14877 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
14878 # Best one so far, save it but keep looking for a better one
14879 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
14880 ac_path_EGREP_TRADITIONAL_max=$ac_count
14881 fi
14882 # 10*(2^10) chars as input seems more than enough
14883 test $ac_count -gt 10 && break
14884 done
14885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14886 esac
14887
14888 $ac_path_EGREP_TRADITIONAL_found && break 3
14889 done
14890 done
14891 done
14892 IFS=$as_save_IFS
14893 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
14894 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14895 fi
14896 else
14897 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
14898 fi
14899 ;;
14900 esac
14901 fi ;;
14902 esac
14903 fi
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
14905 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
14906 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
14907
14908
14909
14910
14911
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
14913 printf %s "checking for ELF binary format... " >&6; }
14914 if test ${gl_cv_elf+y}
14915 then :
14916 printf %s "(cached) " >&6
14917 else case e in #(
14918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920 #if defined __ELF__ || (defined __linux__ && (defined __EDG__ || defined __SUNPRO_C))
14921 Extensible Linking Format
14922 #endif
14923
14924 _ACEOF
14925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14926 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
14927 then :
14928 gl_cv_elf=yes
14929 else case e in #(
14930 e) gl_cv_elf=no ;;
14931 esac
14932 fi
14933 rm -rf conftest*
14934
14935 ;;
14936 esac
14937 fi
14938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
14939 printf "%s\n" "$gl_cv_elf" >&6; }
14940 if test $gl_cv_elf = yes; then
14941 # Extract the ELF class of a file (5th byte) in decimal.
14942 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
14943 if od -A x < /dev/null >/dev/null 2>/dev/null; then
14944 # Use POSIX od.
14945 func_elfclass ()
14946 {
14947 od -A n -t d1 -j 4 -N 1
14948 }
14949 else
14950 # Use BSD hexdump.
14951 func_elfclass ()
14952 {
14953 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
14954 echo
14955 }
14956 fi
14957 # Use 'expr', not 'test', to compare the values of func_elfclass, because on
14958 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
14959 # not 1 or 2.
14960 case $HOST_CPU_C_ABI_32BIT in
14961 yes)
14962 # 32-bit ABI.
14963 acl_is_expected_elfclass ()
14964 {
14965 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null
14966 }
14967 ;;
14968 no)
14969 # 64-bit ABI.
14970 acl_is_expected_elfclass ()
14971 {
14972 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null
14973 }
14974 ;;
14975 *)
14976 # Unknown.
14977 acl_is_expected_elfclass ()
14978 {
14979 :
14980 }
14981 ;;
14982 esac
14983 else
14984 acl_is_expected_elfclass ()
14985 {
14986 :
14987 }
14988 fi
14989
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
14991 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
14992 if test ${acl_cv_libdirstems+y}
14993 then :
14994 printf %s "(cached) " >&6
14995 else case e in #(
14996 e) acl_libdirstem=lib
14997 acl_libdirstem2=
14998 acl_libdirstem3=
14999 case "$host_os" in
15000 solaris*)
15001 if test $HOST_CPU_C_ABI_32BIT = no; then
15002 acl_libdirstem2=lib/64
15003 case "$host_cpu" in
15004 sparc*) acl_libdirstem3=lib/sparcv9 ;;
15005 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
15006 esac
15007 fi
15008 ;;
15009 netbsd*)
15010 if test $HOST_CPU_C_ABI_32BIT != no; then
15011 case "$host_cpu" in
15012 sparc*) acl_libdirstem2=lib/sparc ;;
15013 esac
15014 fi
15015 ;;
15016 *)
15017 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
15018 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15019 if test $HOST_CPU_C_ABI_32BIT != no; then
15020 # 32-bit or unknown ABI.
15021 if test -d /usr/lib32; then
15022 acl_libdirstem2=lib32
15023 fi
15024 fi
15025 if test $HOST_CPU_C_ABI_32BIT != yes; then
15026 # 64-bit or unknown ABI.
15027 if test -d /usr/lib64; then
15028 acl_libdirstem3=lib64
15029 fi
15030 fi
15031 if test -n "$searchpath"; then
15032 acl_saved_IFS="${IFS= }"; IFS=":"
15033 for searchdir in $searchpath; do
15034 if test -d "$searchdir"; then
15035 case "$searchdir" in
15036 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
15037 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
15038 */../ | */.. )
15039 # Better ignore directories of this form. They are misleading.
15040 ;;
15041 *) searchdir=`cd "$searchdir" && pwd`
15042 case "$searchdir" in
15043 */lib32 ) acl_libdirstem2=lib32 ;;
15044 */lib64 ) acl_libdirstem3=lib64 ;;
15045 esac ;;
15046 esac
15047 fi
15048 done
15049 IFS="$acl_saved_IFS"
15050 if test $HOST_CPU_C_ABI_32BIT = yes; then
15051 # 32-bit ABI.
15052 acl_libdirstem3=
15053 fi
15054 if test $HOST_CPU_C_ABI_32BIT = no; then
15055 # 64-bit ABI.
15056 acl_libdirstem2=
15057 fi
15058 fi
15059 ;;
15060 esac
15061 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15062 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
15063 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
15064 ;;
15065 esac
15066 fi
15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
15068 printf "%s\n" "$acl_cv_libdirstems" >&6; }
15069 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
15070 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
15071 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
15072
15073
15074
15075 pkg_failed=no
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
15077 printf %s "checking for GUILE... " >&6; }
15078
15079 if test -n "$PKG_CONFIG"; then
15080 if test -n "$GUILE_CFLAGS"; then
15081 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
15082 else
15083 if test -n "$PKG_CONFIG" && \
15084 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$GUILE_EFFECTIVE_VERSION\""; } >&5
15085 ($PKG_CONFIG --exists --print-errors "guile-$GUILE_EFFECTIVE_VERSION") 2>&5
15086 ac_status=$?
15087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15088 test $ac_status = 0; }; then
15089 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$GUILE_EFFECTIVE_VERSION" 2>/dev/null`
15090 else
15091 pkg_failed=yes
15092 fi
15093 fi
15094 else
15095 pkg_failed=untried
15096 fi
15097 if test -n "$PKG_CONFIG"; then
15098 if test -n "$GUILE_LIBS"; then
15099 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
15100 else
15101 if test -n "$PKG_CONFIG" && \
15102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$GUILE_EFFECTIVE_VERSION\""; } >&5
15103 ($PKG_CONFIG --exists --print-errors "guile-$GUILE_EFFECTIVE_VERSION") 2>&5
15104 ac_status=$?
15105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15106 test $ac_status = 0; }; then
15107 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>/dev/null`
15108 else
15109 pkg_failed=yes
15110 fi
15111 fi
15112 else
15113 pkg_failed=untried
15114 fi
15115
15116
15117
15118 if test $pkg_failed = yes; then
15119
15120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15121 _pkg_short_errors_supported=yes
15122 else
15123 _pkg_short_errors_supported=no
15124 fi
15125 if test $_pkg_short_errors_supported = yes; then
15126 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "guile-$GUILE_EFFECTIVE_VERSION"`
15127 else
15128 GUILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "guile-$GUILE_EFFECTIVE_VERSION"`
15129 fi
15130 # Put the nasty error message in config.log where it belongs
15131 echo "$GUILE_PKG_ERRORS" >&5
15132
15133 as_fn_error $? "Package requirements (guile-$GUILE_EFFECTIVE_VERSION) were not met:
15134
15135 $GUILE_PKG_ERRORS
15136
15137 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15138 installed software in a non-standard prefix.
15139
15140 Alternatively, you may set the environment variables GUILE_CFLAGS
15141 and GUILE_LIBS to avoid the need to call pkg-config.
15142 See the pkg-config man page for more details.
15143 " "$LINENO" 5
15144 elif test $pkg_failed = untried; then
15145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15146 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15147 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15148 is in your PATH or set the PKG_CONFIG environment variable to the full
15149 path to pkg-config.
15150
15151 Alternatively, you may set the environment variables GUILE_CFLAGS
15152 and GUILE_LIBS to avoid the need to call pkg-config.
15153 See the pkg-config man page for more details.
15154
15155 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15156 See 'config.log' for more details" "$LINENO" 5; }
15157 else
15158 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
15159 GUILE_LIBS=$pkg_cv_GUILE_LIBS
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15161 printf "%s\n" "yes" >&6; }
15162 :
15163 fi
15164
15165
15166 GUILE_LDFLAGS=$GUILE_LIBS
15167
15168
15169
15170
15171 GUILE_LIBS=
15172 if test "$enable_rpath" != no; then
15173 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15174 rpathdirs=
15175 next=
15176 for opt in $GUILE_LDFLAGS; do
15177 if test -n "$next"; then
15178 dir="$next"
15179 if test "X$dir" != "X/usr/$acl_libdirstem" \
15180 && test "X$dir" != "X/usr/$acl_libdirstem2" \
15181 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
15182 rpathdirs="$rpathdirs $dir"
15183 fi
15184 next=
15185 else
15186 case $opt in
15187 -L) next=yes ;;
15188 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
15189 if test "X$dir" != "X/usr/$acl_libdirstem" \
15190 && test "X$dir" != "X/usr/$acl_libdirstem2" \
15191 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
15192 rpathdirs="$rpathdirs $dir"
15193 fi
15194 next= ;;
15195 *) next= ;;
15196 esac
15197 fi
15198 done
15199 if test "X$rpathdirs" != "X"; then
15200 if test -n """"; then
15201 for dir in $rpathdirs; do
15202 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir"
15203 done
15204 else
15205 if test -n "$acl_hardcode_libdir_separator"; then
15206 alldirs=
15207 for dir in $rpathdirs; do
15208 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
15209 done
15210 acl_saved_libdir="$libdir"
15211 libdir="$alldirs"
15212 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15213 libdir="$acl_saved_libdir"
15214 GUILE_LIBS="$flag"
15215 else
15216 for dir in $rpathdirs; do
15217 acl_saved_libdir="$libdir"
15218 libdir="$dir"
15219 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15220 libdir="$acl_saved_libdir"
15221 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag"
15222 done
15223 fi
15224 fi
15225 fi
15226 fi
15227 fi
15228
15229
15230 GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
15231
15232
15233
15234 GUILE_LTLIBS=
15235 if test "$enable_rpath" != no; then
15236 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15237 rpathdirs=
15238 next=
15239 for opt in $GUILE_LDFLAGS; do
15240 if test -n "$next"; then
15241 dir="$next"
15242 if test "X$dir" != "X/usr/$acl_libdirstem" \
15243 && test "X$dir" != "X/usr/$acl_libdirstem2" \
15244 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
15245 rpathdirs="$rpathdirs $dir"
15246 fi
15247 next=
15248 else
15249 case $opt in
15250 -L) next=yes ;;
15251 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
15252 if test "X$dir" != "X/usr/$acl_libdirstem" \
15253 && test "X$dir" != "X/usr/$acl_libdirstem2" \
15254 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
15255 rpathdirs="$rpathdirs $dir"
15256 fi
15257 next= ;;
15258 *) next= ;;
15259 esac
15260 fi
15261 done
15262 if test "X$rpathdirs" != "X"; then
15263 if test -n ""yes""; then
15264 for dir in $rpathdirs; do
15265 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir"
15266 done
15267 else
15268 if test -n "$acl_hardcode_libdir_separator"; then
15269 alldirs=
15270 for dir in $rpathdirs; do
15271 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
15272 done
15273 acl_saved_libdir="$libdir"
15274 libdir="$alldirs"
15275 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15276 libdir="$acl_saved_libdir"
15277 GUILE_LTLIBS="$flag"
15278 else
15279 for dir in $rpathdirs; do
15280 acl_saved_libdir="$libdir"
15281 libdir="$dir"
15282 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15283 libdir="$acl_saved_libdir"
15284 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag"
15285 done
15286 fi
15287 fi
15288 fi
15289 fi
15290 fi
15291
15292
15293 GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
15294
15295
15296
15297
15298
15299
15300
15301
15302 # Backward compatibility with <guile-2.2 m4 macro that is used
15303 # due to autreconf of several CI machine.
15304 # We need to guess the locations of ccache and extension
15305 if test -z "${GUILE_SITE_CCACHE}"; then
15306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Found <guile-2.2 m4, macro emulating" >&5
15307 printf "%s\n" "$as_me: Found <guile-2.2 m4, macro emulating" >&6;}
15308
15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GUILE_SITE_CCACHE via pkg-config" >&5
15310 printf %s "checking for GUILE_SITE_CCACHE via pkg-config... " >&6; }
15311 GUILE_SITE_CCACHE=`$PKG_CONFIG --variable=siteccachedir guile-$GUILE_EFFECTIVE_VERSION`
15312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GUILE_SITE_CCACHE}" >&5
15313 printf "%s\n" "${GUILE_SITE_CCACHE}" >&6; }
15314 if test -z "${GUILE_SITE_CCACHE}"; then
15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GUILE_SITE_CCACHE via guile" >&5
15316 printf %s "checking for GUILE_SITE_CCACHE via guile... " >&6; }
15317 GUILE_SITE_CCACHE=`$GUILE -c "(display (if (defined? '%site-ccache-dir) (%site-ccache-dir) \"\"))"`
15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GUILE_SITE_CCACHE}" >&5
15319 printf "%s\n" "${GUILE_SITE_CCACHE}" >&6; }
15320 fi
15321
15322
15323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GUILE_EXTENSION" >&5
15324 printf %s "checking for GUILE_EXTENSION... " >&6; }
15325 GUILE_EXTENSION=`$PKG_CONFIG --print-errors --variable=extensiondir guile-$GUILE_EFFECTIVE_VERSION`
15326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GUILE_EXTENSION}" >&5
15327 printf "%s\n" "${GUILE_EXTENSION}" >&6; }
15328
15329 fi
15330
15331 save_CFLAGS="$CFLAGS"
15332 save_LIBS="$LIBS"
15333 CFLAGS="$CFLAGS $GUILE_CFLAGS"
15334 LIBS="$LIBS $GUILE_LDFLAGS"
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15337 #include <libguile.h>
15338 int
15339 main (void)
15340 {
15341 scm_from_locale_string ("")
15342 ;
15343 return 0;
15344 }
15345 _ACEOF
15346 if ac_fn_c_try_link "$LINENO"
15347 then :
15348
15349 else case e in #(
15350 e) as_fn_error $? "A sufficiently recent GNU Guile not found." "$LINENO" 5 ;;
15351 esac
15352 fi
15353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15354 conftest$ac_exeext conftest.$ac_ext
15355 CFLAGS="$save_CFLAGS"
15356 LIBS="$save_LIBS"
15357
15358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fgnu89-inline" >&5
15359 printf %s "checking whether gcc supports -fgnu89-inline... " >&6; }
15360 _gcc_cflags_save="$CFLAGS"
15361 CFLAGS="${CFLAGS} -fgnu89-inline"
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364
15365 int
15366 main (void)
15367 {
15368
15369 ;
15370 return 0;
15371 }
15372 _ACEOF
15373 if ac_fn_c_try_compile "$LINENO"
15374 then :
15375 gnu89_inline=yes
15376 else case e in #(
15377 e) gnu89_inline=no ;;
15378 esac
15379 fi
15380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnu89_inline" >&5
15382 printf "%s\n" "$gnu89_inline" >&6; }
15383 CFLAGS="$_gcc_cflags_save"
15384
15385 # The cast to long int works around a bug in the HP C Compiler
15386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15387 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
15388 # This bug is HP SR number 8606223364.
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15390 printf %s "checking size of time_t... " >&6; }
15391 if test ${ac_cv_sizeof_time_t+y}
15392 then :
15393 printf %s "(cached) " >&6
15394 else case e in #(
15395 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
15396 then :
15397
15398 else case e in #(
15399 e) if test "$ac_cv_type_time_t" = yes; then
15400 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15401 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15402 as_fn_error 77 "cannot compute sizeof (time_t)
15403 See 'config.log' for more details" "$LINENO" 5; }
15404 else
15405 ac_cv_sizeof_time_t=0
15406 fi ;;
15407 esac
15408 fi
15409 ;;
15410 esac
15411 fi
15412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15413 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
15414
15415
15416
15417 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
15418
15419
15420 sizeof_time_t=$ac_cv_sizeof_time_t
15421
15422
15423 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15424 if test "x$ac_cv_type_size_t" = xyes
15425 then :
15426
15427 else case e in #(
15428 e)
15429 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15430 ;;
15431 esac
15432 fi
15433
15434 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15435 # for constant arguments. Useless!
15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15437 printf %s "checking for working alloca.h... " >&6; }
15438 if test ${ac_cv_working_alloca_h+y}
15439 then :
15440 printf %s "(cached) " >&6
15441 else case e in #(
15442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444 #include <alloca.h>
15445 int
15446 main (void)
15447 {
15448 char *p = (char *) alloca (2 * sizeof (int));
15449 if (p) return 0;
15450 ;
15451 return 0;
15452 }
15453 _ACEOF
15454 if ac_fn_c_try_link "$LINENO"
15455 then :
15456 ac_cv_working_alloca_h=yes
15457 else case e in #(
15458 e) ac_cv_working_alloca_h=no ;;
15459 esac
15460 fi
15461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15462 conftest$ac_exeext conftest.$ac_ext ;;
15463 esac
15464 fi
15465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15466 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
15467 if test $ac_cv_working_alloca_h = yes; then
15468
15469 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
15470
15471 fi
15472
15473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15474 printf %s "checking for alloca... " >&6; }
15475 if test ${ac_cv_func_alloca_works+y}
15476 then :
15477 printf %s "(cached) " >&6
15478 else case e in #(
15479 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
15480 if test "$ac_cv_func_alloca_works" != yes
15481 then :
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 #include <stdlib.h>
15485 #include <stddef.h>
15486 #ifndef alloca
15487 # ifdef __GNUC__
15488 # define alloca __builtin_alloca
15489 # elif defined _MSC_VER
15490 # include <malloc.h>
15491 # define alloca _alloca
15492 # else
15493 # ifdef __cplusplus
15494 extern "C"
15495 # endif
15496 void *alloca (size_t);
15497 # endif
15498 #endif
15499
15500 int
15501 main (void)
15502 {
15503 char *p = (char *) alloca (1);
15504 if (p) return 0;
15505 ;
15506 return 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_link "$LINENO"
15510 then :
15511 ac_cv_func_alloca_works=yes
15512 fi
15513 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15514 conftest$ac_exeext conftest.$ac_ext
15515 fi ;;
15516 esac
15517 fi
15518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15519 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
15520
15521 if test $ac_cv_func_alloca_works = yes; then
15522
15523 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
15524
15525 else
15526 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15527 # that cause trouble. Some versions do not even contain alloca or
15528 # contain a buggy version. If you still want to use their alloca,
15529 # use ar to extract alloca.o from them instead of compiling alloca.c.
15530
15531 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15532
15533 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
15534
15535
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15537 printf %s "checking stack direction for C alloca... " >&6; }
15538 if test ${ac_cv_c_stack_direction+y}
15539 then :
15540 printf %s "(cached) " >&6
15541 else case e in #(
15542 e) if test "$cross_compiling" = yes
15543 then :
15544 ac_cv_c_stack_direction=0
15545 else case e in #(
15546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548 $ac_includes_default
15549 int
15550 find_stack_direction (int *addr, int depth)
15551 {
15552 int dir, dummy = 0;
15553 if (! addr)
15554 addr = &dummy;
15555 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15556 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15557 return dir + dummy;
15558 }
15559
15560 int
15561 main (int argc, char **argv)
15562 {
15563 return find_stack_direction (0, argc + !argv + 20) < 0;
15564 }
15565 _ACEOF
15566 if ac_fn_c_try_run "$LINENO"
15567 then :
15568 ac_cv_c_stack_direction=1
15569 else case e in #(
15570 e) ac_cv_c_stack_direction=-1 ;;
15571 esac
15572 fi
15573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15574 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15575 esac
15576 fi
15577 ;;
15578 esac
15579 fi
15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15581 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
15582 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
15583
15584
15585 fi
15586
15587
15588 # Optional Guile functions.
15589 save_CFLAGS="$CFLAGS"
15590 save_LIBS="$LIBS"
15591 CFLAGS="$CFLAGS $GUILE_CFLAGS"
15592 LIBS="$LIBS $GUILE_LDFLAGS"
15593 ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
15594 if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes
15595 then :
15596 printf "%s\n" "#define HAVE_SCM_GC_MALLOC_POINTERLESS 1" >>confdefs.h
15597
15598 fi
15599
15600 CFLAGS="$save_CFLAGS"
15601 LIBS="$save_LIBS"
15602
15603 # Check for run-time guile features to enable
15604 save_CFLAGS="$CFLAGS"
15605 save_LIBS="$LIBS"
15606 CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
15607 LIBS="$LIBS $GNUTLS_LIBS"
15608 feature_gnutls_hmac_key_size=no
15609 feature_gnutls_hmac_hash_copy=no
15610 feature_gnutls_mac_aes_gmac=no
15611 feature_gnutls_mac_shake=no
15612 feature_gnutls_mac_gost28147_tc26z_imit=no
15613 feature_gnutls_mac_magma_omac=no
15614 feature_gnutls_mac_kuznyechik_omac=no
15615 feature_gnutls_cipher_aes_xts=no
15616 feature_gnutls_cipher_aes_siv=no
15617 feature_gnutls_cipher_aes_192_gcm=no
15618 feature_gnutls_cipher_magma_ctr_acpkm=no
15619 feature_gnutls_cipher_kuznyechik_ctr_acpkm=no
15620 feature_gnutls_cipher_gost28147_tc26z_cnt=no
15621 feature_gnutls_cipher_chacha20=no
15622 feature_gnutls_pk_ecdh_x448=no
15623 feature_gnutls_pk_eddsa_ed448=no
15624 feature_gnutls_sign_eddsa_ed448=no
15625 feature_gnutls_sign_mldsa=no
15626 feature_gnutls_ecc_curve_gost512c=no
15627 feature_gnutls_ecc_curve_gost256x=no
15628 feature_gnutls_ecc_curve_x448=no
15629 feature_gnutls_ecc_curve_ed448=no
15630 feature_gnutls_pk_rsa_oaep=no
15631 feature_gnutls_pk_mlkem768=no
15632 feature_gnutls_pk_mlkem1024=no
15633 feature_gnutls_pk_mldsa=no
15634
15635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls comes with gnutls_hmac_get_key_size" >&5
15636 printf %s "checking whether gnutls comes with gnutls_hmac_get_key_size... " >&6; }
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639
15640 #include <gnutls/gnutls.h>
15641 #include <gnutls/crypto.h>
15642
15643 int
15644 main (void)
15645 {
15646 gnutls_hmac_get_key_size (0)
15647 ;
15648 return 0;
15649 }
15650 _ACEOF
15651 if ac_fn_c_try_link "$LINENO"
15652 then :
15653 feature_gnutls_hmac_key_size=yes
15654
15655 printf "%s\n" "#define HAVE_GNUTLS_HMAC_GET_KEY_SIZE 1" >>confdefs.h
15656
15657 fi
15658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15659 conftest$ac_exeext conftest.$ac_ext
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_hmac_key_size" >&5
15661 printf "%s\n" "$feature_gnutls_hmac_key_size" >&6; }
15662
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls comes with gnutls_hmac/hash_copy" >&5
15664 printf %s "checking whether gnutls comes with gnutls_hmac/hash_copy... " >&6; }
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15667
15668 #include <gnutls/gnutls.h>
15669 #include <gnutls/crypto.h>
15670
15671 int
15672 main (void)
15673 {
15674 gnutls_hmac_copy (NULL);
15675 gnutls_hash_copy (NULL);
15676
15677 ;
15678 return 0;
15679 }
15680 _ACEOF
15681 if ac_fn_c_try_link "$LINENO"
15682 then :
15683 feature_gnutls_hmac_hash_copy=yes
15684
15685 printf "%s\n" "#define HAVE_GNUTLS_HMAC_COPY 1" >>confdefs.h
15686
15687
15688 printf "%s\n" "#define HAVE_GNUTLS_HASH_COPY 1" >>confdefs.h
15689
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15692 conftest$ac_exeext conftest.$ac_ext
15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_hmac_hash_copy" >&5
15694 printf "%s\n" "$feature_gnutls_hmac_hash_copy" >&6; }
15695
15696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the AES_GMAC algorithms" >&5
15697 printf %s "checking whether gnutls supports the AES_GMAC algorithms... " >&6; }
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15700
15701 #include <gnutls/gnutls.h>
15702 #include <gnutls/crypto.h>
15703
15704 int
15705 main (void)
15706 {
15707 GNUTLS_MAC_AES_GMAC_128 + GNUTLS_MAC_AES_GMAC_192 + GNUTLS_MAC_AES_GMAC_256
15708 ;
15709 return 0;
15710 }
15711 _ACEOF
15712 if ac_fn_c_try_link "$LINENO"
15713 then :
15714 feature_gnutls_mac_aes_gmac=yes
15715
15716 printf "%s\n" "#define HAVE_GNUTLS_MAC_AES_GMAC 1" >>confdefs.h
15717
15718 else case e in #(
15719 e)
15720 printf "%s\n" "#define NO_GNUTLS_MAC_AES_GMAC_128 1" >>confdefs.h
15721
15722
15723 printf "%s\n" "#define NO_GNUTLS_MAC_AES_GMAC_192 1" >>confdefs.h
15724
15725
15726 printf "%s\n" "#define NO_GNUTLS_MAC_AES_GMAC_256 1" >>confdefs.h
15727 ;;
15728 esac
15729 fi
15730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15731 conftest$ac_exeext conftest.$ac_ext
15732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_mac_aes_gmac" >&5
15733 printf "%s\n" "$feature_gnutls_mac_aes_gmac" >&6; }
15734
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the SHAKE algorithms" >&5
15736 printf %s "checking whether gnutls supports the SHAKE algorithms... " >&6; }
15737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h. */
15739
15740 #include <gnutls/gnutls.h>
15741 #include <gnutls/crypto.h>
15742
15743 int
15744 main (void)
15745 {
15746 GNUTLS_MAC_SHAKE_128 + GNUTLS_MAC_SHAKE_256
15747 ;
15748 return 0;
15749 }
15750 _ACEOF
15751 if ac_fn_c_try_link "$LINENO"
15752 then :
15753 feature_gnutls_mac_shake=yes
15754
15755 printf "%s\n" "#define HAVE_GNUTLS_MAC_SHAKE 1" >>confdefs.h
15756
15757 else case e in #(
15758 e)
15759 printf "%s\n" "#define NO_GNUTLS_MAC_SHAKE_128 1" >>confdefs.h
15760
15761
15762 printf "%s\n" "#define NO_GNUTLS_MAC_SHAKE_256 1" >>confdefs.h
15763 ;;
15764 esac
15765 fi
15766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15767 conftest$ac_exeext conftest.$ac_ext
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_mac_shake" >&5
15769 printf "%s\n" "$feature_gnutls_mac_shake" >&6; }
15770
15771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the gost28147-tc26z-imit algorithm" >&5
15772 printf %s "checking whether gnutls supports the gost28147-tc26z-imit algorithm... " >&6; }
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15775
15776 #include <gnutls/gnutls.h>
15777 #include <gnutls/crypto.h>
15778
15779 int
15780 main (void)
15781 {
15782 GNUTLS_MAC_GOST28147_TC26Z_IMIT
15783 ;
15784 return 0;
15785 }
15786 _ACEOF
15787 if ac_fn_c_try_link "$LINENO"
15788 then :
15789 feature_gnutls_mac_gost28147_tc26z_imit=yes
15790
15791 printf "%s\n" "#define HAVE_GNUTLS_MAC_GOST28147_TC26Z_IMIT 1" >>confdefs.h
15792
15793 else case e in #(
15794 e)
15795 printf "%s\n" "#define NO_GNUTLS_MAC_GOST28147_TC26Z_IMIT 1" >>confdefs.h
15796 ;;
15797 esac
15798 fi
15799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15800 conftest$ac_exeext conftest.$ac_ext
15801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_mac_gost28147_tc26z_imit" >&5
15802 printf "%s\n" "$feature_gnutls_mac_gost28147_tc26z_imit" >&6; }
15803
15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the magma-omac algorithm" >&5
15805 printf %s "checking whether gnutls supports the magma-omac algorithm... " >&6; }
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15808
15809 #include <gnutls/gnutls.h>
15810 #include <gnutls/crypto.h>
15811
15812 int
15813 main (void)
15814 {
15815 GNUTLS_MAC_MAGMA_OMAC
15816 ;
15817 return 0;
15818 }
15819 _ACEOF
15820 if ac_fn_c_try_link "$LINENO"
15821 then :
15822 feature_gnutls_mac_magma_omac=yes
15823
15824 printf "%s\n" "#define HAVE_GNUTLS_MAC_MAGMA_OMAC 1" >>confdefs.h
15825
15826 else case e in #(
15827 e)
15828 printf "%s\n" "#define NO_GNUTLS_MAC_MAGMA_OMAC 1" >>confdefs.h
15829 ;;
15830 esac
15831 fi
15832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15833 conftest$ac_exeext conftest.$ac_ext
15834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_mac_magma_omac" >&5
15835 printf "%s\n" "$feature_gnutls_mac_magma_omac" >&6; }
15836
15837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the kuznyechik-omac algorithm" >&5
15838 printf %s "checking whether gnutls supports the kuznyechik-omac algorithm... " >&6; }
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841
15842 #include <gnutls/gnutls.h>
15843 #include <gnutls/crypto.h>
15844
15845 int
15846 main (void)
15847 {
15848 GNUTLS_MAC_KUZNYECHIK_OMAC
15849 ;
15850 return 0;
15851 }
15852 _ACEOF
15853 if ac_fn_c_try_link "$LINENO"
15854 then :
15855 feature_gnutls_mac_kuznyechik_omac=yes
15856
15857 printf "%s\n" "#define HAVE_GNUTLS_MAC_KUZNYECHIK_OMAC 1" >>confdefs.h
15858
15859 else case e in #(
15860 e)
15861 printf "%s\n" "#define NO_GNUTLS_MAC_KUZNYECHIK_OMAC 1" >>confdefs.h
15862 ;;
15863 esac
15864 fi
15865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15866 conftest$ac_exeext conftest.$ac_ext
15867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_mac_kuznyechik_omac" >&5
15868 printf "%s\n" "$feature_gnutls_mac_kuznyechik_omac" >&6; }
15869
15870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the ecdh-x448 public key algorithm" >&5
15871 printf %s "checking whether gnutls supports the ecdh-x448 public key algorithm... " >&6; }
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15874
15875 #include <gnutls/gnutls.h>
15876 #include <gnutls/crypto.h>
15877
15878 int
15879 main (void)
15880 {
15881 GNUTLS_PK_ECDH_X448
15882 ;
15883 return 0;
15884 }
15885 _ACEOF
15886 if ac_fn_c_try_link "$LINENO"
15887 then :
15888 feature_gnutls_pk_ecdh_x448=yes
15889
15890 printf "%s\n" "#define HAVE_GNUTLS_PK_ECDH_X448 1" >>confdefs.h
15891
15892 else case e in #(
15893 e)
15894 printf "%s\n" "#define NO_GNUTLS_PK_ECDH_X448 1" >>confdefs.h
15895 ;;
15896 esac
15897 fi
15898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15899 conftest$ac_exeext conftest.$ac_ext
15900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_pk_ecdh_x448" >&5
15901 printf "%s\n" "$feature_gnutls_pk_ecdh_x448" >&6; }
15902
15903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the eddsa-ed448 public key algorithm" >&5
15904 printf %s "checking whether gnutls supports the eddsa-ed448 public key algorithm... " >&6; }
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907
15908 #include <gnutls/gnutls.h>
15909 #include <gnutls/crypto.h>
15910
15911 int
15912 main (void)
15913 {
15914 GNUTLS_PK_EDDSA_ED448
15915 ;
15916 return 0;
15917 }
15918 _ACEOF
15919 if ac_fn_c_try_link "$LINENO"
15920 then :
15921 feature_gnutls_pk_eddsa_ed448=yes
15922
15923 printf "%s\n" "#define HAVE_GNUTLS_PK_EDDSA_ED448 1" >>confdefs.h
15924
15925 else case e in #(
15926 e)
15927 printf "%s\n" "#define NO_GNUTLS_PK_EDDSA_ED448 1" >>confdefs.h
15928 ;;
15929 esac
15930 fi
15931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15932 conftest$ac_exeext conftest.$ac_ext
15933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_pk_eddsa_ed448" >&5
15934 printf "%s\n" "$feature_gnutls_pk_eddsa_ed448" >&6; }
15935
15936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the eddsa-ed448 signature algorithm" >&5
15937 printf %s "checking whether gnutls supports the eddsa-ed448 signature algorithm... " >&6; }
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940
15941 #include <gnutls/gnutls.h>
15942 #include <gnutls/crypto.h>
15943
15944 int
15945 main (void)
15946 {
15947 GNUTLS_SIGN_EDDSA_ED448
15948 ;
15949 return 0;
15950 }
15951 _ACEOF
15952 if ac_fn_c_try_link "$LINENO"
15953 then :
15954 feature_gnutls_sign_eddsa_ed448=yes
15955
15956 printf "%s\n" "#define HAVE_GNUTLS_SIGN_EDDSA_ED448 1" >>confdefs.h
15957
15958 else case e in #(
15959 e)
15960 printf "%s\n" "#define NO_GNUTLS_SIGN_EDDSA_ED448 1" >>confdefs.h
15961 ;;
15962 esac
15963 fi
15964 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15965 conftest$ac_exeext conftest.$ac_ext
15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_sign_eddsa_ed448" >&5
15967 printf "%s\n" "$feature_gnutls_sign_eddsa_ed448" >&6; }
15968
15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the MLDSA signature algorithm" >&5
15970 printf %s "checking whether gnutls supports the MLDSA signature algorithm... " >&6; }
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15973
15974 #include <gnutls/gnutls.h>
15975 #include <gnutls/crypto.h>
15976
15977 int
15978 main (void)
15979 {
15980 GNUTLS_SIGN_MLDSA44
15981 ;
15982 return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_link "$LINENO"
15986 then :
15987 feature_gnutls_sign_mldsa=yes
15988
15989 printf "%s\n" "#define HAVE_GNUTLS_SIGN_MLDSA 1" >>confdefs.h
15990
15991 else case e in #(
15992 e)
15993 printf "%s\n" "#define NO_GNUTLS_SIGN_MLDSA44 1" >>confdefs.h
15994
15995
15996 printf "%s\n" "#define NO_GNUTLS_SIGN_MLDSA65 1" >>confdefs.h
15997
15998
15999 printf "%s\n" "#define NO_GNUTLS_SIGN_MLDSA87 1" >>confdefs.h
16000 ;;
16001 esac
16002 fi
16003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16004 conftest$ac_exeext conftest.$ac_ext
16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_sign_mldsa" >&5
16006 printf "%s\n" "$feature_gnutls_sign_mldsa" >&6; }
16007
16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the gost512c curve" >&5
16009 printf %s "checking whether gnutls supports the gost512c curve... " >&6; }
16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16012
16013 #include <gnutls/gnutls.h>
16014 #include <gnutls/crypto.h>
16015
16016 int
16017 main (void)
16018 {
16019 GNUTLS_ECC_CURVE_GOST512C
16020 ;
16021 return 0;
16022 }
16023 _ACEOF
16024 if ac_fn_c_try_link "$LINENO"
16025 then :
16026 feature_gnutls_ecc_curve_gost512c=yes
16027
16028 printf "%s\n" "#define HAVE_GNUTLS_ECC_CURVE_GOST512C 1" >>confdefs.h
16029
16030 else case e in #(
16031 e)
16032 printf "%s\n" "#define NO_GNUTLS_ECC_CURVE_GOST512C 1" >>confdefs.h
16033 ;;
16034 esac
16035 fi
16036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16037 conftest$ac_exeext conftest.$ac_ext
16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_ecc_curve_gost512c" >&5
16039 printf "%s\n" "$feature_gnutls_ecc_curve_gost512c" >&6; }
16040
16041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the gost256ABCD curve" >&5
16042 printf %s "checking whether gnutls supports the gost256ABCD curve... " >&6; }
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16045
16046 #include <gnutls/gnutls.h>
16047 #include <gnutls/crypto.h>
16048
16049 int
16050 main (void)
16051 {
16052 GNUTLS_ECC_CURVE_GOST256A;
16053 GNUTLS_ECC_CURVE_GOST256B;
16054 GNUTLS_ECC_CURVE_GOST256C;
16055 GNUTLS_ECC_CURVE_GOST256D;
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 if ac_fn_c_try_link "$LINENO"
16061 then :
16062 feature_gnutls_ecc_curve_gost256x=yes
16063
16064 printf "%s\n" "#define HAVE_GNUTLS_ECC_CURVE_GOST256A 1" >>confdefs.h
16065
16066
16067 printf "%s\n" "#define HAVE_GNUTLS_ECC_CURVE_GOST256B 1" >>confdefs.h
16068
16069
16070 printf "%s\n" "#define HAVE_GNUTLS_ECC_CURVE_GOST256C 1" >>confdefs.h
16071
16072
16073 printf "%s\n" "#define HAVE_GNUTLS_ECC_CURVE_GOST256D 1" >>confdefs.h
16074
16075 else case e in #(
16076 e)
16077 printf "%s\n" "#define NO_GNUTLS_ECC_CURVE_GOST256A 1" >>confdefs.h
16078
16079
16080 printf "%s\n" "#define NO_GNUTLS_ECC_CURVE_GOST256B 1" >>confdefs.h
16081
16082
16083 printf "%s\n" "#define NO_GNUTLS_ECC_CURVE_GOST256C 1" >>confdefs.h
16084
16085
16086 printf "%s\n" "#define NO_GNUTLS_ECC_CURVE_GOST256D 1" >>confdefs.h
16087 ;;
16088 esac
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16091 conftest$ac_exeext conftest.$ac_ext
16092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_ecc_curve_gost256x" >&5
16093 printf "%s\n" "$feature_gnutls_ecc_curve_gost256x" >&6; }
16094
16095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the x448 curve" >&5
16096 printf %s "checking whether gnutls supports the x448 curve... " >&6; }
16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098 /* end confdefs.h. */
16099
16100 #include <gnutls/gnutls.h>
16101 #include <gnutls/crypto.h>
16102
16103 int
16104 main (void)
16105 {
16106 GNUTLS_ECC_CURVE_X448
16107 ;
16108 return 0;
16109 }
16110 _ACEOF
16111 if ac_fn_c_try_link "$LINENO"
16112 then :
16113 feature_gnutls_ecc_curve_x448=yes
16114
16115 printf "%s\n" "#define HAVE_GNUTLS_ECC_CURVE_X448 1" >>confdefs.h
16116
16117 else case e in #(
16118 e)
16119 printf "%s\n" "#define NO_GNUTLS_ECC_CURVE_X448 1" >>confdefs.h
16120 ;;
16121 esac
16122 fi
16123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16124 conftest$ac_exeext conftest.$ac_ext
16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_ecc_curve_x448" >&5
16126 printf "%s\n" "$feature_gnutls_ecc_curve_x448" >&6; }
16127
16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the ed448 curve" >&5
16129 printf %s "checking whether gnutls supports the ed448 curve... " >&6; }
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16132
16133 #include <gnutls/gnutls.h>
16134 #include <gnutls/crypto.h>
16135
16136 int
16137 main (void)
16138 {
16139 GNUTLS_ECC_CURVE_ED448
16140 ;
16141 return 0;
16142 }
16143 _ACEOF
16144 if ac_fn_c_try_link "$LINENO"
16145 then :
16146 feature_gnutls_ecc_curve_ed448=yes
16147
16148 printf "%s\n" "#define HAVE_GNUTLS_ECC_CURVE_ED448 1" >>confdefs.h
16149
16150 else case e in #(
16151 e)
16152 printf "%s\n" "#define NO_GNUTLS_ECC_CURVE_ED448 1" >>confdefs.h
16153 ;;
16154 esac
16155 fi
16156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16157 conftest$ac_exeext conftest.$ac_ext
16158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_ecc_curve_ed448" >&5
16159 printf "%s\n" "$feature_gnutls_ecc_curve_ed448" >&6; }
16160
16161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the aes-xts ciphers" >&5
16162 printf %s "checking whether gnutls supports the aes-xts ciphers... " >&6; }
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165
16166 #include <gnutls/gnutls.h>
16167 #include <gnutls/crypto.h>
16168
16169 int
16170 main (void)
16171 {
16172 GNUTLS_CIPHER_AES_128_XTS
16173 ;
16174 return 0;
16175 }
16176 _ACEOF
16177 if ac_fn_c_try_link "$LINENO"
16178 then :
16179 feature_gnutls_cipher_aes_xts=yes
16180 else case e in #(
16181 e)
16182 printf "%s\n" "#define NO_GNUTLS_CIPHER_AES_128_XTS 1" >>confdefs.h
16183
16184
16185 printf "%s\n" "#define NO_GNUTLS_CIPHER_AES_256_XTS 1" >>confdefs.h
16186 ;;
16187 esac
16188 fi
16189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16190 conftest$ac_exeext conftest.$ac_ext
16191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_cipher_aes_xts" >&5
16192 printf "%s\n" "$feature_gnutls_cipher_aes_xts" >&6; }
16193
16194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the aes-siv ciphers" >&5
16195 printf %s "checking whether gnutls supports the aes-siv ciphers... " >&6; }
16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198
16199 #include <gnutls/gnutls.h>
16200 #include <gnutls/crypto.h>
16201
16202 int
16203 main (void)
16204 {
16205 GNUTLS_CIPHER_AES_128_SIV
16206 ;
16207 return 0;
16208 }
16209 _ACEOF
16210 if ac_fn_c_try_link "$LINENO"
16211 then :
16212 feature_gnutls_cipher_aes_siv=yes
16213 else case e in #(
16214 e)
16215 printf "%s\n" "#define NO_GNUTLS_CIPHER_AES_128_SIV 1" >>confdefs.h
16216
16217
16218 printf "%s\n" "#define NO_GNUTLS_CIPHER_AES_256_SIV 1" >>confdefs.h
16219 ;;
16220 esac
16221 fi
16222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16223 conftest$ac_exeext conftest.$ac_ext
16224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_cipher_aes_siv" >&5
16225 printf "%s\n" "$feature_gnutls_cipher_aes_siv" >&6; }
16226
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the aes-192-gcm cipher" >&5
16228 printf %s "checking whether gnutls supports the aes-192-gcm cipher... " >&6; }
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16231
16232 #include <gnutls/gnutls.h>
16233 #include <gnutls/crypto.h>
16234
16235 int
16236 main (void)
16237 {
16238 GNUTLS_CIPHER_AES_192_GCM
16239 ;
16240 return 0;
16241 }
16242 _ACEOF
16243 if ac_fn_c_try_link "$LINENO"
16244 then :
16245 feature_gnutls_cipher_aes_192_gcm=yes
16246 else case e in #(
16247 e)
16248 printf "%s\n" "#define NO_GNUTLS_CIPHER_AES_192_GCM 1" >>confdefs.h
16249 ;;
16250 esac
16251 fi
16252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16253 conftest$ac_exeext conftest.$ac_ext
16254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_cipher_aes_192_gcm" >&5
16255 printf "%s\n" "$feature_gnutls_cipher_aes_192_gcm" >&6; }
16256
16257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the magma-ctr-acpkm cipher" >&5
16258 printf %s "checking whether gnutls supports the magma-ctr-acpkm cipher... " >&6; }
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16261
16262 #include <gnutls/gnutls.h>
16263 #include <gnutls/crypto.h>
16264
16265 int
16266 main (void)
16267 {
16268 GNUTLS_CIPHER_MAGMA_CTR_ACPKM
16269 ;
16270 return 0;
16271 }
16272 _ACEOF
16273 if ac_fn_c_try_link "$LINENO"
16274 then :
16275 feature_gnutls_cipher_magma_ctr_acpkm=yes
16276 else case e in #(
16277 e)
16278 printf "%s\n" "#define NO_GNUTLS_CIPHER_MAGMA_CTR_ACPKM 1" >>confdefs.h
16279 ;;
16280 esac
16281 fi
16282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16283 conftest$ac_exeext conftest.$ac_ext
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_cipher_magma_ctr_acpkm" >&5
16285 printf "%s\n" "$feature_gnutls_cipher_magma_ctr_acpkm" >&6; }
16286
16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the kuznyechik-ctr-acpkm cipher" >&5
16288 printf %s "checking whether gnutls supports the kuznyechik-ctr-acpkm cipher... " >&6; }
16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16291
16292 #include <gnutls/gnutls.h>
16293 #include <gnutls/crypto.h>
16294
16295 int
16296 main (void)
16297 {
16298 GNUTLS_CIPHER_KUZNYECHIK_CTR_ACPKM
16299 ;
16300 return 0;
16301 }
16302 _ACEOF
16303 if ac_fn_c_try_link "$LINENO"
16304 then :
16305 feature_gnutls_cipher_kuznyechik_ctr_acpkm=yes
16306 else case e in #(
16307 e)
16308 printf "%s\n" "#define NO_GNUTLS_CIPHER_KUZNYECHIK_CTR_ACPKM 1" >>confdefs.h
16309 ;;
16310 esac
16311 fi
16312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16313 conftest$ac_exeext conftest.$ac_ext
16314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_cipher_kuznyechik_ctr_acpkm" >&5
16315 printf "%s\n" "$feature_gnutls_cipher_kuznyechik_ctr_acpkm" >&6; }
16316
16317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the gost28147-tc26z-cnt cipher" >&5
16318 printf %s "checking whether gnutls supports the gost28147-tc26z-cnt cipher... " >&6; }
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321
16322 #include <gnutls/gnutls.h>
16323 #include <gnutls/crypto.h>
16324
16325 int
16326 main (void)
16327 {
16328 GNUTLS_CIPHER_GOST28147_TC26Z_CNT
16329 ;
16330 return 0;
16331 }
16332 _ACEOF
16333 if ac_fn_c_try_link "$LINENO"
16334 then :
16335 feature_gnutls_cipher_gost28147_tc26z_cnt=yes
16336 else case e in #(
16337 e)
16338 printf "%s\n" "#define NO_GNUTLS_CIPHER_GOST28147_TC26Z_CNT 1" >>confdefs.h
16339 ;;
16340 esac
16341 fi
16342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16343 conftest$ac_exeext conftest.$ac_ext
16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_cipher_gost28147_tc26z_cnt" >&5
16345 printf "%s\n" "$feature_gnutls_cipher_gost28147_tc26z_cnt" >&6; }
16346
16347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the chacha20-* ciphers" >&5
16348 printf %s "checking whether gnutls supports the chacha20-* ciphers... " >&6; }
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351
16352 #include <gnutls/gnutls.h>
16353 #include <gnutls/crypto.h>
16354
16355 int
16356 main (void)
16357 {
16358 GNUTLS_CIPHER_CHACHA20_32
16359 ;
16360 return 0;
16361 }
16362 _ACEOF
16363 if ac_fn_c_try_link "$LINENO"
16364 then :
16365 feature_gnutls_cipher_chacha20=yes
16366 else case e in #(
16367 e)
16368 printf "%s\n" "#define NO_GNUTLS_CIPHER_CHACHA20_32 1" >>confdefs.h
16369
16370
16371 printf "%s\n" "#define NO_GNUTLS_CIPHER_CHACHA20_64 1" >>confdefs.h
16372 ;;
16373 esac
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16376 conftest$ac_exeext conftest.$ac_ext
16377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_cipher_chacha20" >&5
16378 printf "%s\n" "$feature_gnutls_cipher_chacha20" >&6; }
16379
16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the RSA OAEP public key algorithm" >&5
16381 printf %s "checking whether gnutls supports the RSA OAEP public key algorithm... " >&6; }
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16384
16385 #include <gnutls/gnutls.h>
16386 #include <gnutls/crypto.h>
16387
16388 int
16389 main (void)
16390 {
16391 GNUTLS_PK_RSA_OAEP
16392 ;
16393 return 0;
16394 }
16395 _ACEOF
16396 if ac_fn_c_try_link "$LINENO"
16397 then :
16398 feature_gnutls_pk_rsa_oaep=yes
16399
16400 printf "%s\n" "#define HAVE_GNUTLS_PK_RSA_OAEP 1" >>confdefs.h
16401
16402 else case e in #(
16403 e)
16404 printf "%s\n" "#define NO_GNUTLS_PK_RSA_OAEP 1" >>confdefs.h
16405 ;;
16406 esac
16407 fi
16408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16409 conftest$ac_exeext conftest.$ac_ext
16410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_pk_rsa_oaep" >&5
16411 printf "%s\n" "$feature_gnutls_pk_rsa_oaep" >&6; }
16412
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the MLKEM768 public key algorithm" >&5
16414 printf %s "checking whether gnutls supports the MLKEM768 public key algorithm... " >&6; }
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417
16418 #include <gnutls/gnutls.h>
16419 #include <gnutls/crypto.h>
16420
16421 int
16422 main (void)
16423 {
16424 GNUTLS_PK_MLKEM768
16425 ;
16426 return 0;
16427 }
16428 _ACEOF
16429 if ac_fn_c_try_link "$LINENO"
16430 then :
16431 feature_gnutls_pk_mlkem768=yes
16432
16433 printf "%s\n" "#define HAVE_GNUTLS_PK_MLKEM768 1" >>confdefs.h
16434
16435 else case e in #(
16436 e)
16437 printf "%s\n" "#define NO_GNUTLS_PK_MLKEM768 1" >>confdefs.h
16438 ;;
16439 esac
16440 fi
16441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16442 conftest$ac_exeext conftest.$ac_ext
16443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_pk_mlkem768" >&5
16444 printf "%s\n" "$feature_gnutls_pk_mlkem768" >&6; }
16445
16446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the MLKEM1024 public key algorithm" >&5
16447 printf %s "checking whether gnutls supports the MLKEM1024 public key algorithm... " >&6; }
16448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16449 /* end confdefs.h. */
16450
16451 #include <gnutls/gnutls.h>
16452 #include <gnutls/crypto.h>
16453
16454 int
16455 main (void)
16456 {
16457 GNUTLS_PK_MLKEM1024
16458 ;
16459 return 0;
16460 }
16461 _ACEOF
16462 if ac_fn_c_try_link "$LINENO"
16463 then :
16464 feature_gnutls_pk_mlkem1024=yes
16465
16466 printf "%s\n" "#define HAVE_GNUTLS_PK_MLKEM1024 1" >>confdefs.h
16467
16468 else case e in #(
16469 e)
16470 printf "%s\n" "#define NO_GNUTLS_PK_MLKEM1024 1" >>confdefs.h
16471 ;;
16472 esac
16473 fi
16474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16475 conftest$ac_exeext conftest.$ac_ext
16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_pk_mlkem1024" >&5
16477 printf "%s\n" "$feature_gnutls_pk_mlkem1024" >&6; }
16478
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gnutls supports the MLDSA public key algorithm" >&5
16480 printf %s "checking whether gnutls supports the MLDSA public key algorithm... " >&6; }
16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h. */
16483
16484 #include <gnutls/gnutls.h>
16485 #include <gnutls/crypto.h>
16486
16487 int
16488 main (void)
16489 {
16490 GNUTLS_PK_MLDSA44
16491 ;
16492 return 0;
16493 }
16494 _ACEOF
16495 if ac_fn_c_try_link "$LINENO"
16496 then :
16497 feature_gnutls_pk_mldsa=yes
16498
16499 printf "%s\n" "#define HAVE_GNUTLS_PK_MLDSA 1" >>confdefs.h
16500
16501 else case e in #(
16502 e)
16503 printf "%s\n" "#define NO_GNUTLS_PK_MLDSA44 1" >>confdefs.h
16504
16505
16506 printf "%s\n" "#define NO_GNUTLS_PK_MLDSA65 1" >>confdefs.h
16507
16508
16509 printf "%s\n" "#define NO_GNUTLS_PK_MLDSA87 1" >>confdefs.h
16510
16511 ;;
16512 esac
16513 fi
16514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16515 conftest$ac_exeext conftest.$ac_ext
16516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $feature_gnutls_pk_mldsa" >&5
16517 printf "%s\n" "$feature_gnutls_pk_mldsa" >&6; }
16518
16519 ## END OF GNUTLS FEATURE CHECKS
16520 CFLAGS="$save_CFLAGS"
16521 LIBS="$save_LIBS"
16522
16523 # Do we need to hard-code $guileextensiondir in gnutls.scm?
16524 # This is not necessary when $guileextensiondir is equal to
16525 # Guile's 'extensiondir' as specified in 'guile-MAJOR.MINOR.pc'.
16526 if test "$guileextensiondir" = "`$PKG_CONFIG guile-$GUILE_EFFECTIVE_VERSION --variable extensiondir`" \
16527 || test "$guileextensiondir" = '$(GUILE_EXTENSION)'; then
16528 maybe_guileextensiondir='#f'
16529 fi
16530
16531
16532 if test "x$GUILD" != "x"; then
16533 HAVE_GUILD_TRUE=
16534 HAVE_GUILD_FALSE='#'
16535 else
16536 HAVE_GUILD_TRUE='#'
16537 HAVE_GUILD_FALSE=
16538 fi
16539
16540 if test "x$cross_compiling" = "xyes"; then
16541 CROSS_COMPILING_TRUE=
16542 CROSS_COMPILING_FALSE='#'
16543 else
16544 CROSS_COMPILING_TRUE='#'
16545 CROSS_COMPILING_FALSE=
16546 fi
16547
16548 if test "$gnu89_inline" = "yes"]; then
16549 HAVE_GCC_GNU89_INLINE_OPTION_TRUE=
16550 HAVE_GCC_GNU89_INLINE_OPTION_FALSE='#'
16551 else
16552 HAVE_GCC_GNU89_INLINE_OPTION_TRUE='#'
16553 HAVE_GCC_GNU89_INLINE_OPTION_FALSE=
16554 fi
16555
16556 if test "$GCC" = "yes"; then
16557 HAVE_GCC_TRUE=
16558 HAVE_GCC_FALSE='#'
16559 else
16560 HAVE_GCC_TRUE='#'
16561 HAVE_GCC_FALSE=
16562 fi
16563
16564
16565 # Inclusion of example files in the manual requires the absolute
16566 # directory of source, because texi2dvi and pdflatex do not have the
16567 # same search path for included files. So a relative file name will
16568 # never be found by both tools at the same time.
16569
16570
16571 st_touch=197001010000.00
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timestamps of last git commit" >&5
16573 printf %s "checking for timestamps of last git commit... " >&6; }
16574 if test -e "$srcdir"/.git && command -v git > /dev/null; then
16575 if tmp=$(env TZ=UTC0 git log -1 --format=%cd --date=format-local:%Y%m%d%H%M.%S); then
16576 st_touch="$tmp"
16577 fi
16578 fi
16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: touch $st_touch" >&5
16580 printf "%s\n" "touch $st_touch" >&6; }
16581 env TZ=UTC0 \
16582 touch -m -t "$st_touch" \
16583 "$srcdir"/NEWS "$srcdir"/doc/gnutls-guile.texi
16584
16585 ac_config_files="$ac_config_files guile/pre-inst-guile"
16586
16587 ac_config_files="$ac_config_files Makefile doc/Makefile doc/abs-top-srcdir.texi guile/Makefile guile/src/Makefile"
16588
16589
16590
16591 ac_config_commands="$ac_config_commands version-timestamp"
16592
16593
16594 cat >confcache <<\_ACEOF
16595 # This file is a shell script that caches the results of configure
16596 # tests run on this system so they can be shared between configure
16597 # scripts and configure runs, see configure's option --config-cache.
16598 # It is not useful on other systems. If it contains results you don't
16599 # want to keep, you may remove or edit it.
16600 #
16601 # config.status only pays attention to the cache file if you give it
16602 # the --recheck option to rerun configure.
16603 #
16604 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16605 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16606 # following values.
16607
16608 _ACEOF
16609
16610 # The following way of writing the cache mishandles newlines in values,
16611 # but we know of no workaround that is simple, portable, and efficient.
16612 # So, we kill variables containing newlines.
16613 # Ultrix sh set writes to stderr and can't be redirected directly,
16614 # and sets the high bit in the cache file unless we assign to the vars.
16615 (
16616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16617 eval ac_val=\$$ac_var
16618 case $ac_val in #(
16619 *${as_nl}*)
16620 case $ac_var in #(
16621 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16622 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16623 esac
16624 case $ac_var in #(
16625 _ | IFS | as_nl) ;; #(
16626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16627 *) { eval $ac_var=; unset $ac_var;} ;;
16628 esac ;;
16629 esac
16630 done
16631
16632 (set) 2>&1 |
16633 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16634 *${as_nl}ac_space=\ *)
16635 # 'set' does not quote correctly, so add quotes: double-quote
16636 # substitution turns \\\\ into \\, and sed turns \\ into \.
16637 sed -n \
16638 "s/'/'\\\\''/g;
16639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16640 ;; #(
16641 *)
16642 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16644 ;;
16645 esac |
16646 sort
16647 ) |
16648 sed '
16649 /^ac_cv_env_/b end
16650 t clear
16651 :clear
16652 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16653 t end
16654 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16655 :end' >>confcache
16656 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16657 if test -w "$cache_file"; then
16658 if test "x$cache_file" != "x/dev/null"; then
16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16660 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16661 if test ! -f "$cache_file" || test -h "$cache_file"; then
16662 cat confcache >"$cache_file"
16663 else
16664 case $cache_file in #(
16665 */* | ?:*)
16666 mv -f confcache "$cache_file"$$ &&
16667 mv -f "$cache_file"$$ "$cache_file" ;; #(
16668 *)
16669 mv -f confcache "$cache_file" ;;
16670 esac
16671 fi
16672 fi
16673 else
16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16675 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16676 fi
16677 fi
16678 rm -f confcache
16679
16680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16681 # Let make expand exec_prefix.
16682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16683
16684 DEFS=-DHAVE_CONFIG_H
16685
16686 ac_libobjs=
16687 ac_ltlibobjs=
16688 U=
16689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16690 # 1. Remove the extension, and $U if already installed.
16691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16692 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16694 # will be set to the directory where LIBOBJS objects are built.
16695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16697 done
16698 LIBOBJS=$ac_libobjs
16699
16700 LTLIBOBJS=$ac_ltlibobjs
16701
16702
16703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16704 printf %s "checking that generated files are newer than configure... " >&6; }
16705 if test -n "$am_sleep_pid"; then
16706 # Hide warnings about reused PIDs.
16707 wait $am_sleep_pid 2>/dev/null
16708 fi
16709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16710 printf "%s\n" "done" >&6; }
16711 case $enable_silent_rules in # (((
16712 yes) AM_DEFAULT_VERBOSITY=0;;
16713 no) AM_DEFAULT_VERBOSITY=1;;
16714 esac
16715 if test $am_cv_make_support_nested_variables = yes; then
16716 AM_V='$(V)'
16717 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16718 else
16719 AM_V=$AM_DEFAULT_VERBOSITY
16720 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16721 fi
16722
16723 if test -n "$EXEEXT"; then
16724 am__EXEEXT_TRUE=
16725 am__EXEEXT_FALSE='#'
16726 else
16727 am__EXEEXT_TRUE='#'
16728 am__EXEEXT_FALSE=
16729 fi
16730
16731 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16732 as_fn_error $? "conditional \"AMDEP\" was never defined.
16733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16734 fi
16735 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16736 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16738 fi
16739 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
16740 as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
16741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16742 fi
16743 if test -z "${HAVE_GUILD_TRUE}" && test -z "${HAVE_GUILD_FALSE}"; then
16744 as_fn_error $? "conditional \"HAVE_GUILD\" was never defined.
16745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16746 fi
16747 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16748 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16750 fi
16751 if test -z "${HAVE_GCC_GNU89_INLINE_OPTION_TRUE}" && test -z "${HAVE_GCC_GNU89_INLINE_OPTION_FALSE}"; then
16752 as_fn_error $? "conditional \"HAVE_GCC_GNU89_INLINE_OPTION\" was never defined.
16753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16754 fi
16755 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
16756 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
16757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16758 fi
16759
16760 : "${CONFIG_STATUS=./config.status}"
16761 ac_write_fail=0
16762 ac_clean_files_save=$ac_clean_files
16763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16765 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16766 as_write_fail=0
16767 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16768 #! $SHELL
16769 # Generated by $as_me.
16770 # Run this file to recreate the current configuration.
16771 # Compiler output produced by configure, useful for debugging
16772 # configure, is in config.log if it exists.
16773
16774 debug=false
16775 ac_cs_recheck=false
16776 ac_cs_silent=false
16777
16778 SHELL=\${CONFIG_SHELL-$SHELL}
16779 export SHELL
16780 _ASEOF
16781 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16782 ## -------------------- ##
16783 ## M4sh Initialization. ##
16784 ## -------------------- ##
16785
16786 # Be more Bourne compatible
16787 DUALCASE=1; export DUALCASE # for MKS sh
16788 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16789 then :
16790 emulate sh
16791 NULLCMD=:
16792 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16793 # is contrary to our usage. Disable this feature.
16794 alias -g '${1+"$@"}'='"$@"'
16795 setopt NO_GLOB_SUBST
16796 else case e in #(
16797 e) case `(set -o) 2>/dev/null` in #(
16798 *posix*) :
16799 set -o posix ;; #(
16800 *) :
16801 ;;
16802 esac ;;
16803 esac
16804 fi
16805
16806
16807
16808 # Reset variables that may have inherited troublesome values from
16809 # the environment.
16810
16811 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16812 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16813 # side effect of setting IFS to empty, thus disabling word splitting.)
16814 # Quoting is to prevent editors from complaining about space-tab.
16815 as_nl='
16816 '
16817 export as_nl
16818 IFS=" "" $as_nl"
16819
16820 PS1='$ '
16821 PS2='> '
16822 PS4='+ '
16823
16824 # Ensure predictable behavior from utilities with locale-dependent output.
16825 LC_ALL=C
16826 export LC_ALL
16827 LANGUAGE=C
16828 export LANGUAGE
16829
16830 # We cannot yet rely on "unset" to work, but we need these variables
16831 # to be unset--not just set to an empty or harmless value--now, to
16832 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16833 # also avoids known problems related to "unset" and subshell syntax
16834 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16835 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16836 do eval test \${$as_var+y} \
16837 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16838 done
16839
16840 # Ensure that fds 0, 1, and 2 are open.
16841 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16842 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16843 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16844
16845 # The user is always right.
16846 if ${PATH_SEPARATOR+false} :; then
16847 PATH_SEPARATOR=:
16848 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16849 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16850 PATH_SEPARATOR=';'
16851 }
16852 fi
16853
16854
16855 # Find who we are. Look in the path if we contain no directory separator.
16856 as_myself=
16857 case $0 in #((
16858 *[\\/]* ) as_myself=$0 ;;
16859 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16860 for as_dir in $PATH
16861 do
16862 IFS=$as_save_IFS
16863 case $as_dir in #(((
16864 '') as_dir=./ ;;
16865 */) ;;
16866 *) as_dir=$as_dir/ ;;
16867 esac
16868 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16869 done
16870 IFS=$as_save_IFS
16871
16872 ;;
16873 esac
16874 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16875 # in which case we are not to be found in the path.
16876 if test "x$as_myself" = x; then
16877 as_myself=$0
16878 fi
16879 if test ! -f "$as_myself"; then
16880 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16881 exit 1
16882 fi
16883
16884
16885
16886 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16887 # ----------------------------------------
16888 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16889 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16890 # script with STATUS, using 1 if that was 0.
16891 as_fn_error ()
16892 {
16893 as_status=$1; test $as_status -eq 0 && as_status=1
16894 if test "$4"; then
16895 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16897 fi
16898 printf "%s\n" "$as_me: error: $2" >&2
16899 as_fn_exit $as_status
16900 } # as_fn_error
16901
16902
16903 # as_fn_set_status STATUS
16904 # -----------------------
16905 # Set $? to STATUS, without forking.
16906 as_fn_set_status ()
16907 {
16908 return $1
16909 } # as_fn_set_status
16910
16911 # as_fn_exit STATUS
16912 # -----------------
16913 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16914 as_fn_exit ()
16915 {
16916 set +e
16917 as_fn_set_status $1
16918 exit $1
16919 } # as_fn_exit
16920
16921 # as_fn_unset VAR
16922 # ---------------
16923 # Portably unset VAR.
16924 as_fn_unset ()
16925 {
16926 { eval $1=; unset $1;}
16927 }
16928 as_unset=as_fn_unset
16929
16930 # as_fn_append VAR VALUE
16931 # ----------------------
16932 # Append the text in VALUE to the end of the definition contained in VAR. Take
16933 # advantage of any shell optimizations that allow amortized linear growth over
16934 # repeated appends, instead of the typical quadratic growth present in naive
16935 # implementations.
16936 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16937 then :
16938 eval 'as_fn_append ()
16939 {
16940 eval $1+=\$2
16941 }'
16942 else case e in #(
16943 e) as_fn_append ()
16944 {
16945 eval $1=\$$1\$2
16946 } ;;
16947 esac
16948 fi # as_fn_append
16949
16950 # as_fn_arith ARG...
16951 # ------------------
16952 # Perform arithmetic evaluation on the ARGs, and store the result in the
16953 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16954 # must be portable across $(()) and expr.
16955 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16956 then :
16957 eval 'as_fn_arith ()
16958 {
16959 as_val=$(( $* ))
16960 }'
16961 else case e in #(
16962 e) as_fn_arith ()
16963 {
16964 as_val=`expr "$@" || test $? -eq 1`
16965 } ;;
16966 esac
16967 fi # as_fn_arith
16968
16969
16970 if expr a : '\(a\)' >/dev/null 2>&1 &&
16971 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16972 as_expr=expr
16973 else
16974 as_expr=false
16975 fi
16976
16977 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16978 as_basename=basename
16979 else
16980 as_basename=false
16981 fi
16982
16983 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16984 as_dirname=dirname
16985 else
16986 as_dirname=false
16987 fi
16988
16989 as_me=`$as_basename -- "$0" ||
16990 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16991 X"$0" : 'X\(//\)$' \| \
16992 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16993 printf "%s\n" X/"$0" |
16994 sed '/^.*\/\([^/][^/]*\)\/*$/{
16995 s//\1/
16996 q
16997 }
16998 /^X\/\(\/\/\)$/{
16999 s//\1/
17000 q
17001 }
17002 /^X\/\(\/\).*/{
17003 s//\1/
17004 q
17005 }
17006 s/.*/./; q'`
17007
17008 # Avoid depending upon Character Ranges.
17009 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17010 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17011 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17012 as_cr_digits='0123456789'
17013 as_cr_alnum=$as_cr_Letters$as_cr_digits
17014
17015
17016 # Determine whether it's possible to make 'echo' print without a newline.
17017 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17018 # for compatibility with existing Makefiles.
17019 ECHO_C= ECHO_N= ECHO_T=
17020 case `echo -n x` in #(((((
17021 -n*)
17022 case `echo 'xy\c'` in
17023 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17024 xy) ECHO_C='\c';;
17025 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17026 ECHO_T=' ';;
17027 esac;;
17028 *)
17029 ECHO_N='-n';;
17030 esac
17031
17032 # For backward compatibility with old third-party macros, we provide
17033 # the shell variables $as_echo and $as_echo_n. New code should use
17034 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17035 as_echo='printf %s\n'
17036 as_echo_n='printf %s'
17037
17038 rm -f conf$$ conf$$.exe conf$$.file
17039 if test -d conf$$.dir; then
17040 rm -f conf$$.dir/conf$$.file
17041 else
17042 rm -f conf$$.dir
17043 mkdir conf$$.dir 2>/dev/null
17044 fi
17045 if (echo >conf$$.file) 2>/dev/null; then
17046 if ln -s conf$$.file conf$$ 2>/dev/null; then
17047 as_ln_s='ln -s'
17048 # ... but there are two gotchas:
17049 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17050 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17051 # In both cases, we have to default to 'cp -pR'.
17052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17053 as_ln_s='cp -pR'
17054 elif ln conf$$.file conf$$ 2>/dev/null; then
17055 as_ln_s=ln
17056 else
17057 as_ln_s='cp -pR'
17058 fi
17059 else
17060 as_ln_s='cp -pR'
17061 fi
17062 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17063 rmdir conf$$.dir 2>/dev/null
17064
17065
17066 # as_fn_mkdir_p
17067 # -------------
17068 # Create "$as_dir" as a directory, including parents if necessary.
17069 as_fn_mkdir_p ()
17070 {
17071
17072 case $as_dir in #(
17073 -*) as_dir=./$as_dir;;
17074 esac
17075 test -d "$as_dir" || eval $as_mkdir_p || {
17076 as_dirs=
17077 while :; do
17078 case $as_dir in #(
17079 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17080 *) as_qdir=$as_dir;;
17081 esac
17082 as_dirs="'$as_qdir' $as_dirs"
17083 as_dir=`$as_dirname -- "$as_dir" ||
17084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17085 X"$as_dir" : 'X\(//\)[^/]' \| \
17086 X"$as_dir" : 'X\(//\)$' \| \
17087 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17088 printf "%s\n" X"$as_dir" |
17089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17090 s//\1/
17091 q
17092 }
17093 /^X\(\/\/\)[^/].*/{
17094 s//\1/
17095 q
17096 }
17097 /^X\(\/\/\)$/{
17098 s//\1/
17099 q
17100 }
17101 /^X\(\/\).*/{
17102 s//\1/
17103 q
17104 }
17105 s/.*/./; q'`
17106 test -d "$as_dir" && break
17107 done
17108 test -z "$as_dirs" || eval "mkdir $as_dirs"
17109 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17110
17111
17112 } # as_fn_mkdir_p
17113 if mkdir -p . 2>/dev/null; then
17114 as_mkdir_p='mkdir -p "$as_dir"'
17115 else
17116 test -d ./-p && rmdir ./-p
17117 as_mkdir_p=false
17118 fi
17119
17120
17121 # as_fn_executable_p FILE
17122 # -----------------------
17123 # Test if FILE is an executable regular file.
17124 as_fn_executable_p ()
17125 {
17126 test -f "$1" && test -x "$1"
17127 } # as_fn_executable_p
17128 as_test_x='test -x'
17129 as_executable_p=as_fn_executable_p
17130
17131 # Sed expression to map a string onto a valid CPP name.
17132 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17133 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
17134
17135 # Sed expression to map a string onto a valid variable name.
17136 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17137 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
17138
17139
17140 exec 6>&1
17141 ## ----------------------------------- ##
17142 ## Main body of $CONFIG_STATUS script. ##
17143 ## ----------------------------------- ##
17144 _ASEOF
17145 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17146
17147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17148 # Save the log message, to keep $0 and so on meaningful, and to
17149 # report actual input values of CONFIG_FILES etc. instead of their
17150 # values after options handling.
17151 ac_log="
17152 This file was extended by Guile-GnuTLS $as_me 5.0.2, which was
17153 generated by GNU Autoconf 2.72. Invocation command line was
17154
17155 CONFIG_FILES = $CONFIG_FILES
17156 CONFIG_HEADERS = $CONFIG_HEADERS
17157 CONFIG_LINKS = $CONFIG_LINKS
17158 CONFIG_COMMANDS = $CONFIG_COMMANDS
17159 $ $0 $@
17160
17161 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17162 "
17163
17164 _ACEOF
17165
17166 case $ac_config_files in *"
17167 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17168 esac
17169
17170 case $ac_config_headers in *"
17171 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17172 esac
17173
17174
17175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17176 # Files that config.status was made for.
17177 config_files="$ac_config_files"
17178 config_headers="$ac_config_headers"
17179 config_commands="$ac_config_commands"
17180
17181 _ACEOF
17182
17183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17184 ac_cs_usage="\
17185 '$as_me' instantiates files and other configuration actions
17186 from templates according to the current configuration. Unless the files
17187 and actions are specified as TAGs, all are instantiated by default.
17188
17189 Usage: $0 [OPTION]... [TAG]...
17190
17191 -h, --help print this help, then exit
17192 -V, --version print version number and configuration settings, then exit
17193 --config print configuration, then exit
17194 -q, --quiet, --silent
17195 do not print progress messages
17196 -d, --debug don't remove temporary files
17197 --recheck update $as_me by reconfiguring in the same conditions
17198 --file=FILE[:TEMPLATE]
17199 instantiate the configuration file FILE
17200 --header=FILE[:TEMPLATE]
17201 instantiate the configuration header FILE
17202
17203 Configuration files:
17204 $config_files
17205
17206 Configuration headers:
17207 $config_headers
17208
17209 Configuration commands:
17210 $config_commands
17211
17212 Report bugs to <[email protected]>.
17213 Guile-GnuTLS home page: <https://codeberg.org/guile-gnutls/guile-gnutls>."
17214
17215 _ACEOF
17216 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17217 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17219 ac_cs_config='$ac_cs_config_escaped'
17220 ac_cs_version="\\
17221 Guile-GnuTLS config.status 5.0.2
17222 configured by $0, generated by GNU Autoconf 2.72,
17223 with options \\"\$ac_cs_config\\"
17224
17225 Copyright (C) 2023 Free Software Foundation, Inc.
17226 This config.status script is free software; the Free Software Foundation
17227 gives unlimited permission to copy, distribute and modify it."
17228
17229 ac_pwd='$ac_pwd'
17230 srcdir='$srcdir'
17231 INSTALL='$INSTALL'
17232 MKDIR_P='$MKDIR_P'
17233 AWK='$AWK'
17234 test -n "\$AWK" || AWK=awk
17235 _ACEOF
17236
17237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17238 # The default lists apply if the user does not specify any file.
17239 ac_need_defaults=:
17240 while test $# != 0
17241 do
17242 case $1 in
17243 --*=?*)
17244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17246 ac_shift=:
17247 ;;
17248 --*=)
17249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17250 ac_optarg=
17251 ac_shift=:
17252 ;;
17253 *)
17254 ac_option=$1
17255 ac_optarg=$2
17256 ac_shift=shift
17257 ;;
17258 esac
17259
17260 case $ac_option in
17261 # Handling of the options.
17262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17263 ac_cs_recheck=: ;;
17264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17265 printf "%s\n" "$ac_cs_version"; exit ;;
17266 --config | --confi | --conf | --con | --co | --c )
17267 printf "%s\n" "$ac_cs_config"; exit ;;
17268 --debug | --debu | --deb | --de | --d | -d )
17269 debug=: ;;
17270 --file | --fil | --fi | --f )
17271 $ac_shift
17272 case $ac_optarg in
17273 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17274 '') as_fn_error $? "missing file argument" ;;
17275 esac
17276 as_fn_append CONFIG_FILES " '$ac_optarg'"
17277 ac_need_defaults=false;;
17278 --header | --heade | --head | --hea )
17279 $ac_shift
17280 case $ac_optarg in
17281 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17282 esac
17283 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17284 ac_need_defaults=false;;
17285 --he | --h)
17286 # Conflict between --help and --header
17287 as_fn_error $? "ambiguous option: '$1'
17288 Try '$0 --help' for more information.";;
17289 --help | --hel | -h )
17290 printf "%s\n" "$ac_cs_usage"; exit ;;
17291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17293 ac_cs_silent=: ;;
17294
17295 # This is an error.
17296 -*) as_fn_error $? "unrecognized option: '$1'
17297 Try '$0 --help' for more information." ;;
17298
17299 *) as_fn_append ac_config_targets " $1"
17300 ac_need_defaults=false ;;
17301
17302 esac
17303 shift
17304 done
17305
17306 ac_configure_extra_args=
17307
17308 if $ac_cs_silent; then
17309 exec 6>/dev/null
17310 ac_configure_extra_args="$ac_configure_extra_args --silent"
17311 fi
17312
17313 _ACEOF
17314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17315 if \$ac_cs_recheck; then
17316 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17317 shift
17318 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17319 CONFIG_SHELL='$SHELL'
17320 export CONFIG_SHELL
17321 exec "\$@"
17322 fi
17323
17324 _ACEOF
17325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17326 exec 5>>config.log
17327 {
17328 echo
17329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17330 ## Running $as_me. ##
17331 _ASBOX
17332 printf "%s\n" "$ac_log"
17333 } >&5
17334
17335 _ACEOF
17336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17337 #
17338 # INIT-COMMANDS
17339 #
17340 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17341
17342
17343 # The HP-UX ksh and POSIX shell print the target directory to stdout
17344 # if CDPATH is set.
17345 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17346
17347 sed_quote_subst='$sed_quote_subst'
17348 double_quote_subst='$double_quote_subst'
17349 delay_variable_subst='$delay_variable_subst'
17350 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17351 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17352 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17353 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17354 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17355 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17356 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17357 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17358 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17359 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17360 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17361 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17362 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17363 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17364 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17365 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17366 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17367 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17368 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17369 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17370 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17371 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17372 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17373 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17374 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17375 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17376 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17377 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17378 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17379 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17380 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17381 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17382 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17383 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17384 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17385 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17386 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17387 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17388 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17389 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17390 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17391 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17392 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17393 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17394 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17395 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17396 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17397 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17398 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17399 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17400 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17401 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17402 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17403 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17404 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17405 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17406 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17407 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17408 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17409 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17410 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"`'
17411 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17412 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17413 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17414 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17415 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17416 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17417 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17418 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17419 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17420 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17421 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17422 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17423 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17424 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17425 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17426 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17427 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17428 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17429 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17430 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17431 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17432 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17433 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17434 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17435 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17436 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17437 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17438 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17439 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17440 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17441 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17442 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17443 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17444 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17445 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17446 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17447 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17448 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17449 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17450 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17451 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17452 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17453 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17454 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17455 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17456 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17457 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17458 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17459 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17460 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17461 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17462 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17463 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17464 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17465 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17466 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17467 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17468 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17469 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17470 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17471 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17472 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17473 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17474 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17475 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17476 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17477 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17478 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17479 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17480 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17481 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17482 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17483 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17484 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17485 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17486 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17487
17488 LTCC='$LTCC'
17489 LTCFLAGS='$LTCFLAGS'
17490 compiler='$compiler_DEFAULT'
17491
17492 # A function that is used when there is no print builtin or printf.
17493 func_fallback_echo ()
17494 {
17495 eval 'cat <<_LTECHO_EOF
17496 \$1
17497 _LTECHO_EOF'
17498 }
17499
17500 # Quote evaled strings.
17501 for var in SHELL \
17502 ECHO \
17503 PATH_SEPARATOR \
17504 SED \
17505 GREP \
17506 EGREP \
17507 FGREP \
17508 LD \
17509 NM \
17510 LN_S \
17511 lt_SP2NL \
17512 lt_NL2SP \
17513 reload_flag \
17514 FILECMD \
17515 OBJDUMP \
17516 deplibs_check_method \
17517 file_magic_cmd \
17518 file_magic_glob \
17519 want_nocaseglob \
17520 DLLTOOL \
17521 sharedlib_from_linklib_cmd \
17522 AR \
17523 archiver_list_spec \
17524 STRIP \
17525 RANLIB \
17526 CC \
17527 CFLAGS \
17528 compiler \
17529 lt_cv_sys_global_symbol_pipe \
17530 lt_cv_sys_global_symbol_to_cdecl \
17531 lt_cv_sys_global_symbol_to_import \
17532 lt_cv_sys_global_symbol_to_c_name_address \
17533 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17534 lt_cv_nm_interface \
17535 nm_file_list_spec \
17536 lt_cv_truncate_bin \
17537 lt_prog_compiler_no_builtin_flag \
17538 lt_prog_compiler_pic \
17539 lt_prog_compiler_wl \
17540 lt_prog_compiler_static \
17541 lt_cv_prog_compiler_c_o \
17542 need_locks \
17543 MANIFEST_TOOL \
17544 DSYMUTIL \
17545 NMEDIT \
17546 LIPO \
17547 OTOOL \
17548 OTOOL64 \
17549 shrext_cmds \
17550 export_dynamic_flag_spec \
17551 whole_archive_flag_spec \
17552 compiler_needs_object \
17553 with_gnu_ld \
17554 allow_undefined_flag \
17555 no_undefined_flag \
17556 hardcode_libdir_flag_spec \
17557 hardcode_libdir_separator \
17558 exclude_expsyms \
17559 include_expsyms \
17560 file_list_spec \
17561 variables_saved_for_relink \
17562 libname_spec \
17563 library_names_spec \
17564 soname_spec \
17565 install_override_mode \
17566 finish_eval \
17567 old_striplib \
17568 striplib; do
17569 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17570 *[\\\\\\\`\\"\\\$]*)
17571 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17572 ;;
17573 *)
17574 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17575 ;;
17576 esac
17577 done
17578
17579 # Double-quote double-evaled strings.
17580 for var in reload_cmds \
17581 old_postinstall_cmds \
17582 old_postuninstall_cmds \
17583 old_archive_cmds \
17584 extract_expsyms_cmds \
17585 old_archive_from_new_cmds \
17586 old_archive_from_expsyms_cmds \
17587 archive_cmds \
17588 archive_expsym_cmds \
17589 module_cmds \
17590 module_expsym_cmds \
17591 export_symbols_cmds \
17592 prelink_cmds \
17593 postlink_cmds \
17594 postinstall_cmds \
17595 postuninstall_cmds \
17596 finish_cmds \
17597 sys_lib_search_path_spec \
17598 configure_time_dlsearch_path \
17599 configure_time_lt_sys_library_path; do
17600 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17601 *[\\\\\\\`\\"\\\$]*)
17602 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17603 ;;
17604 *)
17605 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17606 ;;
17607 esac
17608 done
17609
17610 ac_aux_dir='$ac_aux_dir'
17611
17612 # See if we are running on zsh, and set the options that allow our
17613 # commands through without removal of \ escapes INIT.
17614 if test -n "\${ZSH_VERSION+set}"; then
17615 setopt NO_GLOB_SUBST
17616 fi
17617
17618
17619 PACKAGE='$PACKAGE'
17620 VERSION='$VERSION'
17621 RM='$RM'
17622 ofile='$ofile'
17623
17624
17625
17626 gl_version="$VERSION"
17627
17628 _ACEOF
17629
17630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17631
17632 # Handling of arguments.
17633 for ac_config_target in $ac_config_targets
17634 do
17635 case $ac_config_target in
17636 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17637 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17638 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17639 "guile/pre-inst-guile") CONFIG_FILES="$CONFIG_FILES guile/pre-inst-guile" ;;
17640 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17641 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17642 "doc/abs-top-srcdir.texi") CONFIG_FILES="$CONFIG_FILES doc/abs-top-srcdir.texi" ;;
17643 "guile/Makefile") CONFIG_FILES="$CONFIG_FILES guile/Makefile" ;;
17644 "guile/src/Makefile") CONFIG_FILES="$CONFIG_FILES guile/src/Makefile" ;;
17645 "version-timestamp") CONFIG_COMMANDS="$CONFIG_COMMANDS version-timestamp" ;;
17646
17647 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17648 esac
17649 done
17650
17651
17652 # If the user did not use the arguments to specify the items to instantiate,
17653 # then the envvar interface is used. Set only those that are not.
17654 # We use the long form for the default assignment because of an extremely
17655 # bizarre bug on SunOS 4.1.3.
17656 if $ac_need_defaults; then
17657 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17658 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17659 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17660 fi
17661
17662 # Have a temporary directory for convenience. Make it in the build tree
17663 # simply because there is no reason against having it here, and in addition,
17664 # creating and moving files from /tmp can sometimes cause problems.
17665 # Hook for its removal unless debugging.
17666 # Note that there is a small window in which the directory will not be cleaned:
17667 # after its creation but before its name has been assigned to '$tmp'.
17668 $debug ||
17669 {
17670 tmp= ac_tmp=
17671 trap 'exit_status=$?
17672 : "${ac_tmp:=$tmp}"
17673 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17674 ' 0
17675 trap 'as_fn_exit 1' 1 2 13 15
17676 }
17677 # Create a (secure) tmp directory for tmp files.
17678
17679 {
17680 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17681 test -d "$tmp"
17682 } ||
17683 {
17684 tmp=./conf$$-$RANDOM
17685 (umask 077 && mkdir "$tmp")
17686 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17687 ac_tmp=$tmp
17688
17689 # Set up the scripts for CONFIG_FILES section.
17690 # No need to generate them if there are no CONFIG_FILES.
17691 # This happens for instance with './config.status config.h'.
17692 if test -n "$CONFIG_FILES"; then
17693
17694
17695 ac_cr=`echo X | tr X '\015'`
17696 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17697 # But we know of no other shell where ac_cr would be empty at this
17698 # point, so we can use a bashism as a fallback.
17699 if test "x$ac_cr" = x; then
17700 eval ac_cr=\$\'\\r\'
17701 fi
17702 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17703 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17704 ac_cs_awk_cr='\\r'
17705 else
17706 ac_cs_awk_cr=$ac_cr
17707 fi
17708
17709 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17710 _ACEOF
17711
17712
17713 {
17714 echo "cat >conf$$subs.awk <<_ACEOF" &&
17715 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17716 echo "_ACEOF"
17717 } >conf$$subs.sh ||
17718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17719 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17720 ac_delim='%!_!# '
17721 for ac_last_try in false false false false false :; do
17722 . ./conf$$subs.sh ||
17723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17724
17725 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17726 if test $ac_delim_n = $ac_delim_num; then
17727 break
17728 elif $ac_last_try; then
17729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17730 else
17731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17732 fi
17733 done
17734 rm -f conf$$subs.sh
17735
17736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17737 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17738 _ACEOF
17739 sed -n '
17740 h
17741 s/^/S["/; s/!.*/"]=/
17742 p
17743 g
17744 s/^[^!]*!//
17745 :repl
17746 t repl
17747 s/'"$ac_delim"'$//
17748 t delim
17749 :nl
17750 h
17751 s/\(.\{148\}\)..*/\1/
17752 t more1
17753 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17754 p
17755 n
17756 b repl
17757 :more1
17758 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17759 p
17760 g
17761 s/.\{148\}//
17762 t nl
17763 :delim
17764 h
17765 s/\(.\{148\}\)..*/\1/
17766 t more2
17767 s/["\\]/\\&/g; s/^/"/; s/$/"/
17768 p
17769 b
17770 :more2
17771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17772 p
17773 g
17774 s/.\{148\}//
17775 t delim
17776 ' <conf$$subs.awk | sed '
17777 /^[^""]/{
17778 N
17779 s/\n//
17780 }
17781 ' >>$CONFIG_STATUS || ac_write_fail=1
17782 rm -f conf$$subs.awk
17783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17784 _ACAWK
17785 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17786 for (key in S) S_is_set[key] = 1
17787 FS = ""
17788
17789 }
17790 {
17791 line = $ 0
17792 nfields = split(line, field, "@")
17793 substed = 0
17794 len = length(field[1])
17795 for (i = 2; i < nfields; i++) {
17796 key = field[i]
17797 keylen = length(key)
17798 if (S_is_set[key]) {
17799 value = S[key]
17800 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17801 len += length(value) + length(field[++i])
17802 substed = 1
17803 } else
17804 len += 1 + keylen
17805 }
17806
17807 print line
17808 }
17809
17810 _ACAWK
17811 _ACEOF
17812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17813 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17814 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17815 else
17816 cat
17817 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17818 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17819 _ACEOF
17820
17821 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17822 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17823 # trailing colons and then remove the whole line if VPATH becomes empty
17824 # (actually we leave an empty line to preserve line numbers).
17825 if test "x$srcdir" = x.; then
17826 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17827 h
17828 s///
17829 s/^/:/
17830 s/[ ]*$/:/
17831 s/:\$(srcdir):/:/g
17832 s/:\${srcdir}:/:/g
17833 s/:@srcdir@:/:/g
17834 s/^:*//
17835 s/:*$//
17836 x
17837 s/\(=[ ]*\).*/\1/
17838 G
17839 s/\n//
17840 s/^[^=]*=[ ]*$//
17841 }'
17842 fi
17843
17844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17845 fi # test -n "$CONFIG_FILES"
17846
17847 # Set up the scripts for CONFIG_HEADERS section.
17848 # No need to generate them if there are no CONFIG_HEADERS.
17849 # This happens for instance with './config.status Makefile'.
17850 if test -n "$CONFIG_HEADERS"; then
17851 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17852 BEGIN {
17853 _ACEOF
17854
17855 # Transform confdefs.h into an awk script 'defines.awk', embedded as
17856 # here-document in config.status, that substitutes the proper values into
17857 # config.h.in to produce config.h.
17858
17859 # Create a delimiter string that does not exist in confdefs.h, to ease
17860 # handling of long lines.
17861 ac_delim='%!_!# '
17862 for ac_last_try in false false :; do
17863 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17864 if test -z "$ac_tt"; then
17865 break
17866 elif $ac_last_try; then
17867 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17868 else
17869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17870 fi
17871 done
17872
17873 # For the awk script, D is an array of macro values keyed by name,
17874 # likewise P contains macro parameters if any. Preserve backslash
17875 # newline sequences.
17876
17877 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17878 sed -n '
17879 s/.\{148\}/&'"$ac_delim"'/g
17880 t rset
17881 :rset
17882 s/^[ ]*#[ ]*define[ ][ ]*/ /
17883 t def
17884 d
17885 :def
17886 s/\\$//
17887 t bsnl
17888 s/["\\]/\\&/g
17889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17890 D["\1"]=" \3"/p
17891 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17892 d
17893 :bsnl
17894 s/["\\]/\\&/g
17895 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17896 D["\1"]=" \3\\\\\\n"\\/p
17897 t cont
17898 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17899 t cont
17900 d
17901 :cont
17902 n
17903 s/.\{148\}/&'"$ac_delim"'/g
17904 t clear
17905 :clear
17906 s/\\$//
17907 t bsnlc
17908 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17909 d
17910 :bsnlc
17911 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17912 b cont
17913 ' <confdefs.h | sed '
17914 s/'"$ac_delim"'/"\\\
17915 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17916
17917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17918 for (key in D) D_is_set[key] = 1
17919 FS = ""
17920 }
17921 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17922 line = \$ 0
17923 split(line, arg, " ")
17924 if (arg[1] == "#") {
17925 defundef = arg[2]
17926 mac1 = arg[3]
17927 } else {
17928 defundef = substr(arg[1], 2)
17929 mac1 = arg[2]
17930 }
17931 split(mac1, mac2, "(") #)
17932 macro = mac2[1]
17933 prefix = substr(line, 1, index(line, defundef) - 1)
17934 if (D_is_set[macro]) {
17935 # Preserve the white space surrounding the "#".
17936 print prefix "define", macro P[macro] D[macro]
17937 next
17938 } else {
17939 # Replace #undef with comments. This is necessary, for example,
17940 # in the case of _POSIX_SOURCE, which is predefined and required
17941 # on some systems where configure will not decide to define it.
17942 if (defundef == "undef") {
17943 print "/*", prefix defundef, macro, "*/"
17944 next
17945 }
17946 }
17947 }
17948 { print }
17949 _ACAWK
17950 _ACEOF
17951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17953 fi # test -n "$CONFIG_HEADERS"
17954
17955
17956 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17957 shift
17958 for ac_tag
17959 do
17960 case $ac_tag in
17961 :[FHLC]) ac_mode=$ac_tag; continue;;
17962 esac
17963 case $ac_mode$ac_tag in
17964 :[FHL]*:*);;
17965 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17966 :[FH]-) ac_tag=-:-;;
17967 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17968 esac
17969 ac_save_IFS=$IFS
17970 IFS=:
17971 set x $ac_tag
17972 IFS=$ac_save_IFS
17973 shift
17974 ac_file=$1
17975 shift
17976
17977 case $ac_mode in
17978 :L) ac_source=$1;;
17979 :[FH])
17980 ac_file_inputs=
17981 for ac_f
17982 do
17983 case $ac_f in
17984 -) ac_f="$ac_tmp/stdin";;
17985 *) # Look for the file first in the build tree, then in the source tree
17986 # (if the path is not absolute). The absolute path cannot be DOS-style,
17987 # because $ac_f cannot contain ':'.
17988 test -f "$ac_f" ||
17989 case $ac_f in
17990 [\\/$]*) false;;
17991 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17992 esac ||
17993 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17994 esac
17995 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17996 as_fn_append ac_file_inputs " '$ac_f'"
17997 done
17998
17999 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18000 # use $as_me), people would be surprised to read:
18001 # /* config.h. Generated by config.status. */
18002 configure_input='Generated from '`
18003 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18004 `' by configure.'
18005 if test x"$ac_file" != x-; then
18006 configure_input="$ac_file. $configure_input"
18007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18008 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18009 fi
18010 # Neutralize special characters interpreted by sed in replacement strings.
18011 case $configure_input in #(
18012 *\&* | *\|* | *\\* )
18013 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18014 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18015 *) ac_sed_conf_input=$configure_input;;
18016 esac
18017
18018 case $ac_tag in
18019 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18021 esac
18022 ;;
18023 esac
18024
18025 ac_dir=`$as_dirname -- "$ac_file" ||
18026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18027 X"$ac_file" : 'X\(//\)[^/]' \| \
18028 X"$ac_file" : 'X\(//\)$' \| \
18029 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18030 printf "%s\n" X"$ac_file" |
18031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18032 s//\1/
18033 q
18034 }
18035 /^X\(\/\/\)[^/].*/{
18036 s//\1/
18037 q
18038 }
18039 /^X\(\/\/\)$/{
18040 s//\1/
18041 q
18042 }
18043 /^X\(\/\).*/{
18044 s//\1/
18045 q
18046 }
18047 s/.*/./; q'`
18048 as_dir="$ac_dir"; as_fn_mkdir_p
18049 ac_builddir=.
18050
18051 case "$ac_dir" in
18052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18053 *)
18054 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18055 # A ".." for each directory in $ac_dir_suffix.
18056 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18057 case $ac_top_builddir_sub in
18058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18060 esac ;;
18061 esac
18062 ac_abs_top_builddir=$ac_pwd
18063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18064 # for backward compatibility:
18065 ac_top_builddir=$ac_top_build_prefix
18066
18067 case $srcdir in
18068 .) # We are building in place.
18069 ac_srcdir=.
18070 ac_top_srcdir=$ac_top_builddir_sub
18071 ac_abs_top_srcdir=$ac_pwd ;;
18072 [\\/]* | ?:[\\/]* ) # Absolute name.
18073 ac_srcdir=$srcdir$ac_dir_suffix;
18074 ac_top_srcdir=$srcdir
18075 ac_abs_top_srcdir=$srcdir ;;
18076 *) # Relative name.
18077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18078 ac_top_srcdir=$ac_top_build_prefix$srcdir
18079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18080 esac
18081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18082
18083
18084 case $ac_mode in
18085 :F)
18086 #
18087 # CONFIG_FILE
18088 #
18089
18090 case $INSTALL in
18091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18092 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18093 esac
18094 ac_MKDIR_P=$MKDIR_P
18095 case $MKDIR_P in
18096 [\\/$]* | ?:[\\/]* ) ;;
18097 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18098 esac
18099 _ACEOF
18100
18101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18102 # If the template does not know about datarootdir, expand it.
18103 # FIXME: This hack should be removed a few years after 2.60.
18104 ac_datarootdir_hack=; ac_datarootdir_seen=
18105 ac_sed_dataroot='
18106 /datarootdir/ {
18107 p
18108 q
18109 }
18110 /@datadir@/p
18111 /@docdir@/p
18112 /@infodir@/p
18113 /@localedir@/p
18114 /@mandir@/p'
18115 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18116 *datarootdir*) ac_datarootdir_seen=yes;;
18117 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18119 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18120 _ACEOF
18121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18122 ac_datarootdir_hack='
18123 s&@datadir@&$datadir&g
18124 s&@docdir@&$docdir&g
18125 s&@infodir@&$infodir&g
18126 s&@localedir@&$localedir&g
18127 s&@mandir@&$mandir&g
18128 s&\\\${datarootdir}&$datarootdir&g' ;;
18129 esac
18130 _ACEOF
18131
18132 # Neutralize VPATH when '$srcdir' = '.'.
18133 # Shell code in configure.ac might set extrasub.
18134 # FIXME: do we really want to maintain this feature?
18135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18136 ac_sed_extra="$ac_vpsub
18137 $extrasub
18138 _ACEOF
18139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18140 :t
18141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18142 s|@configure_input@|$ac_sed_conf_input|;t t
18143 s&@top_builddir@&$ac_top_builddir_sub&;t t
18144 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18145 s&@srcdir@&$ac_srcdir&;t t
18146 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18147 s&@top_srcdir@&$ac_top_srcdir&;t t
18148 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18149 s&@builddir@&$ac_builddir&;t t
18150 s&@abs_builddir@&$ac_abs_builddir&;t t
18151 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18152 s&@INSTALL@&$ac_INSTALL&;t t
18153 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18154 $ac_datarootdir_hack
18155 "
18156 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18157 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18158
18159 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18160 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18161 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18162 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18164 which seems to be undefined. Please make sure it is defined" >&5
18165 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
18166 which seems to be undefined. Please make sure it is defined" >&2;}
18167
18168 rm -f "$ac_tmp/stdin"
18169 case $ac_file in
18170 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18171 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18172 esac \
18173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18174 ;;
18175 :H)
18176 #
18177 # CONFIG_HEADER
18178 #
18179 if test x"$ac_file" != x-; then
18180 {
18181 printf "%s\n" "/* $configure_input */" >&1 \
18182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18183 } >"$ac_tmp/config.h" \
18184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18185 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18187 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18188 else
18189 rm -f "$ac_file"
18190 mv "$ac_tmp/config.h" "$ac_file" \
18191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18192 fi
18193 else
18194 printf "%s\n" "/* $configure_input */" >&1 \
18195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18196 || as_fn_error $? "could not create -" "$LINENO" 5
18197 fi
18198 # Compute "$ac_file"'s index in $config_headers.
18199 _am_arg="$ac_file"
18200 _am_stamp_count=1
18201 for _am_header in $config_headers :; do
18202 case $_am_header in
18203 $_am_arg | $_am_arg:* )
18204 break ;;
18205 * )
18206 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18207 esac
18208 done
18209 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18210 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18211 X"$_am_arg" : 'X\(//\)[^/]' \| \
18212 X"$_am_arg" : 'X\(//\)$' \| \
18213 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18214 printf "%s\n" X"$_am_arg" |
18215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18216 s//\1/
18217 q
18218 }
18219 /^X\(\/\/\)[^/].*/{
18220 s//\1/
18221 q
18222 }
18223 /^X\(\/\/\)$/{
18224 s//\1/
18225 q
18226 }
18227 /^X\(\/\).*/{
18228 s//\1/
18229 q
18230 }
18231 s/.*/./; q'`/stamp-h$_am_stamp_count
18232 ;;
18233
18234 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18235 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18236 ;;
18237 esac
18238
18239
18240 case $ac_file$ac_mode in
18241 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18242 # Older Autoconf quotes --file arguments for eval, but not when files
18243 # are listed without --file. Let's play safe and only enable the eval
18244 # if we detect the quoting.
18245 # TODO: see whether this extra hack can be removed once we start
18246 # requiring Autoconf 2.70 or later.
18247 case $CONFIG_FILES in #(
18248 *\'*) :
18249 eval set x "$CONFIG_FILES" ;; #(
18250 *) :
18251 set x $CONFIG_FILES ;; #(
18252 *) :
18253 ;;
18254 esac
18255 shift
18256 # Used to flag and report bootstrapping failures.
18257 am_rc=0
18258 for am_mf
18259 do
18260 # Strip MF so we end up with the name of the file.
18261 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18262 # Check whether this is an Automake generated Makefile which includes
18263 # dependency-tracking related rules and includes.
18264 # Grep'ing the whole file directly is not great: AIX grep has a line
18265 # limit of 2048, but all sed's we know have understand at least 4000.
18266 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18267 || continue
18268 am_dirpart=`$as_dirname -- "$am_mf" ||
18269 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18270 X"$am_mf" : 'X\(//\)[^/]' \| \
18271 X"$am_mf" : 'X\(//\)$' \| \
18272 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18273 printf "%s\n" X"$am_mf" |
18274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18275 s//\1/
18276 q
18277 }
18278 /^X\(\/\/\)[^/].*/{
18279 s//\1/
18280 q
18281 }
18282 /^X\(\/\/\)$/{
18283 s//\1/
18284 q
18285 }
18286 /^X\(\/\).*/{
18287 s//\1/
18288 q
18289 }
18290 s/.*/./; q'`
18291 am_filepart=`$as_basename -- "$am_mf" ||
18292 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18293 X"$am_mf" : 'X\(//\)$' \| \
18294 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18295 printf "%s\n" X/"$am_mf" |
18296 sed '/^.*\/\([^/][^/]*\)\/*$/{
18297 s//\1/
18298 q
18299 }
18300 /^X\/\(\/\/\)$/{
18301 s//\1/
18302 q
18303 }
18304 /^X\/\(\/\).*/{
18305 s//\1/
18306 q
18307 }
18308 s/.*/./; q'`
18309 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18310 && sed -e '/# am--include-marker/d' "$am_filepart" \
18311 | $MAKE -f - am--depfiles" >&5
18312 (cd "$am_dirpart" \
18313 && sed -e '/# am--include-marker/d' "$am_filepart" \
18314 | $MAKE -f - am--depfiles) >&5 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } || am_rc=$?
18318 done
18319 if test $am_rc -ne 0; then
18320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18321 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18322 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18323 for automatic dependency tracking. If GNU make was not used, consider
18324 re-running the configure script with MAKE=\"gmake\" (or whatever is
18325 necessary). You can also try re-running configure with the
18326 '--disable-dependency-tracking' option to at least be able to build
18327 the package (albeit without support for automatic dependency tracking).
18328 See 'config.log' for more details" "$LINENO" 5; }
18329 fi
18330 { am_dirpart=; unset am_dirpart;}
18331 { am_filepart=; unset am_filepart;}
18332 { am_mf=; unset am_mf;}
18333 { am_rc=; unset am_rc;}
18334 rm -f conftest-deps.mk
18335 }
18336 ;;
18337 "libtool":C)
18338
18339 # See if we are running on zsh, and set the options that allow our
18340 # commands through without removal of \ escapes.
18341 if test -n "${ZSH_VERSION+set}"; then
18342 setopt NO_GLOB_SUBST
18343 fi
18344
18345 cfgfile=${ofile}T
18346 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18347 $RM "$cfgfile"
18348
18349 cat <<_LT_EOF >> "$cfgfile"
18350 #! $SHELL
18351 # Generated automatically by $as_me ($PACKAGE) $VERSION
18352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18354
18355 # Provide generalized library-building support services.
18356 # Written by Gordon Matzigkeit, 1996
18357
18358 # Copyright (C) 2014 Free Software Foundation, Inc.
18359 # This is free software; see the source for copying conditions. There is NO
18360 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18361
18362 # GNU Libtool is free software; you can redistribute it and/or modify
18363 # it under the terms of the GNU General Public License as published by
18364 # the Free Software Foundation; either version 2 of of the License, or
18365 # (at your option) any later version.
18366 #
18367 # As a special exception to the GNU General Public License, if you
18368 # distribute this file as part of a program or library that is built
18369 # using GNU Libtool, you may include this file under the same
18370 # distribution terms that you use for the rest of that program.
18371 #
18372 # GNU Libtool is distributed in the hope that it will be useful, but
18373 # WITHOUT ANY WARRANTY; without even the implied warranty of
18374 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18375 # GNU General Public License for more details.
18376 #
18377 # You should have received a copy of the GNU General Public License
18378 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18379
18380
18381 # The names of the tagged configurations supported by this script.
18382 available_tags=''
18383
18384 # Configured defaults for sys_lib_dlsearch_path munging.
18385 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18386
18387 # ### BEGIN LIBTOOL CONFIG
18388
18389 # Which release of libtool.m4 was used?
18390 macro_version=$macro_version
18391 macro_revision=$macro_revision
18392
18393 # Whether or not to build static libraries.
18394 build_old_libs=$enable_static
18395
18396 # Whether or not to build shared libraries.
18397 build_libtool_libs=$enable_shared
18398
18399 # What type of objects to build.
18400 pic_mode=$pic_mode
18401
18402 # Whether or not to optimize for fast installation.
18403 fast_install=$enable_fast_install
18404
18405 # Shared archive member basename,for filename based shared library versioning on AIX.
18406 shared_archive_member_spec=$shared_archive_member_spec
18407
18408 # Shell to use when invoking shell scripts.
18409 SHELL=$lt_SHELL
18410
18411 # An echo program that protects backslashes.
18412 ECHO=$lt_ECHO
18413
18414 # The PATH separator for the build system.
18415 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18416
18417 # The host system.
18418 host_alias=$host_alias
18419 host=$host
18420 host_os=$host_os
18421
18422 # The build system.
18423 build_alias=$build_alias
18424 build=$build
18425 build_os=$build_os
18426
18427 # A sed program that does not truncate output.
18428 SED=$lt_SED
18429
18430 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18431 Xsed="\$SED -e 1s/^X//"
18432
18433 # A grep program that handles long lines.
18434 GREP=$lt_GREP
18435
18436 # An ERE matcher.
18437 EGREP=$lt_EGREP
18438
18439 # A literal string matcher.
18440 FGREP=$lt_FGREP
18441
18442 # A BSD- or MS-compatible name lister.
18443 NM=$lt_NM
18444
18445 # Whether we need soft or hard links.
18446 LN_S=$lt_LN_S
18447
18448 # What is the maximum length of a command?
18449 max_cmd_len=$max_cmd_len
18450
18451 # Object file suffix (normally "o").
18452 objext=$ac_objext
18453
18454 # Executable file suffix (normally "").
18455 exeext=$exeext
18456
18457 # whether the shell understands "unset".
18458 lt_unset=$lt_unset
18459
18460 # turn spaces into newlines.
18461 SP2NL=$lt_lt_SP2NL
18462
18463 # turn newlines into spaces.
18464 NL2SP=$lt_lt_NL2SP
18465
18466 # convert \$build file names to \$host format.
18467 to_host_file_cmd=$lt_cv_to_host_file_cmd
18468
18469 # convert \$build files to toolchain format.
18470 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18471
18472 # A file(cmd) program that detects file types.
18473 FILECMD=$lt_FILECMD
18474
18475 # An object symbol dumper.
18476 OBJDUMP=$lt_OBJDUMP
18477
18478 # Method to check whether dependent libraries are shared objects.
18479 deplibs_check_method=$lt_deplibs_check_method
18480
18481 # Command to use when deplibs_check_method = "file_magic".
18482 file_magic_cmd=$lt_file_magic_cmd
18483
18484 # How to find potential files when deplibs_check_method = "file_magic".
18485 file_magic_glob=$lt_file_magic_glob
18486
18487 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18488 want_nocaseglob=$lt_want_nocaseglob
18489
18490 # DLL creation program.
18491 DLLTOOL=$lt_DLLTOOL
18492
18493 # Command to associate shared and link libraries.
18494 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18495
18496 # The archiver.
18497 AR=$lt_AR
18498
18499 # Flags to create an archive (by configure).
18500 lt_ar_flags=$lt_ar_flags
18501
18502 # Flags to create an archive.
18503 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18504
18505 # How to feed a file listing to the archiver.
18506 archiver_list_spec=$lt_archiver_list_spec
18507
18508 # A symbol stripping program.
18509 STRIP=$lt_STRIP
18510
18511 # Commands used to install an old-style archive.
18512 RANLIB=$lt_RANLIB
18513 old_postinstall_cmds=$lt_old_postinstall_cmds
18514 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18515
18516 # Whether to use a lock for old archive extraction.
18517 lock_old_archive_extraction=$lock_old_archive_extraction
18518
18519 # A C compiler.
18520 LTCC=$lt_CC
18521
18522 # LTCC compiler flags.
18523 LTCFLAGS=$lt_CFLAGS
18524
18525 # Take the output of nm and produce a listing of raw symbols and C names.
18526 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18527
18528 # Transform the output of nm in a proper C declaration.
18529 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18530
18531 # Transform the output of nm into a list of symbols to manually relocate.
18532 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18533
18534 # Transform the output of nm in a C name address pair.
18535 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18536
18537 # Transform the output of nm in a C name address pair when lib prefix is needed.
18538 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18539
18540 # The name lister interface.
18541 nm_interface=$lt_lt_cv_nm_interface
18542
18543 # Specify filename containing input files for \$NM.
18544 nm_file_list_spec=$lt_nm_file_list_spec
18545
18546 # The root where to search for dependent libraries,and where our libraries should be installed.
18547 lt_sysroot=$lt_sysroot
18548
18549 # Command to truncate a binary pipe.
18550 lt_truncate_bin=$lt_lt_cv_truncate_bin
18551
18552 # The name of the directory that contains temporary libtool files.
18553 objdir=$objdir
18554
18555 # Used to examine libraries when file_magic_cmd begins with "file".
18556 MAGIC_CMD=$MAGIC_CMD
18557
18558 # Must we lock files when doing compilation?
18559 need_locks=$lt_need_locks
18560
18561 # Manifest tool.
18562 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18563
18564 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18565 DSYMUTIL=$lt_DSYMUTIL
18566
18567 # Tool to change global to local symbols on Mac OS X.
18568 NMEDIT=$lt_NMEDIT
18569
18570 # Tool to manipulate fat objects and archives on Mac OS X.
18571 LIPO=$lt_LIPO
18572
18573 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18574 OTOOL=$lt_OTOOL
18575
18576 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18577 OTOOL64=$lt_OTOOL64
18578
18579 # Old archive suffix (normally "a").
18580 libext=$libext
18581
18582 # Shared library suffix (normally ".so").
18583 shrext_cmds=$lt_shrext_cmds
18584
18585 # The commands to extract the exported symbol list from a shared archive.
18586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18587
18588 # Variables whose values should be saved in libtool wrapper scripts and
18589 # restored at link time.
18590 variables_saved_for_relink=$lt_variables_saved_for_relink
18591
18592 # Do we need the "lib" prefix for modules?
18593 need_lib_prefix=$need_lib_prefix
18594
18595 # Do we need a version for libraries?
18596 need_version=$need_version
18597
18598 # Library versioning type.
18599 version_type=$version_type
18600
18601 # Shared library runtime path variable.
18602 runpath_var=$runpath_var
18603
18604 # Shared library path variable.
18605 shlibpath_var=$shlibpath_var
18606
18607 # Is shlibpath searched before the hard-coded library search path?
18608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18609
18610 # Format of library name prefix.
18611 libname_spec=$lt_libname_spec
18612
18613 # List of archive names. First name is the real one, the rest are links.
18614 # The last name is the one that the linker finds with -lNAME
18615 library_names_spec=$lt_library_names_spec
18616
18617 # The coded name of the library, if different from the real name.
18618 soname_spec=$lt_soname_spec
18619
18620 # Permission mode override for installation of shared libraries.
18621 install_override_mode=$lt_install_override_mode
18622
18623 # Command to use after installation of a shared archive.
18624 postinstall_cmds=$lt_postinstall_cmds
18625
18626 # Command to use after uninstallation of a shared archive.
18627 postuninstall_cmds=$lt_postuninstall_cmds
18628
18629 # Commands used to finish a libtool library installation in a directory.
18630 finish_cmds=$lt_finish_cmds
18631
18632 # As "finish_cmds", except a single script fragment to be evaled but
18633 # not shown.
18634 finish_eval=$lt_finish_eval
18635
18636 # Whether we should hardcode library paths into libraries.
18637 hardcode_into_libs=$hardcode_into_libs
18638
18639 # Compile-time system search path for libraries.
18640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18641
18642 # Detected run-time system search path for libraries.
18643 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18644
18645 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18646 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18647
18648 # Whether dlopen is supported.
18649 dlopen_support=$enable_dlopen
18650
18651 # Whether dlopen of programs is supported.
18652 dlopen_self=$enable_dlopen_self
18653
18654 # Whether dlopen of statically linked programs is supported.
18655 dlopen_self_static=$enable_dlopen_self_static
18656
18657 # Commands to strip libraries.
18658 old_striplib=$lt_old_striplib
18659 striplib=$lt_striplib
18660
18661
18662 # The linker used to build libraries.
18663 LD=$lt_LD
18664
18665 # How to create reloadable object files.
18666 reload_flag=$lt_reload_flag
18667 reload_cmds=$lt_reload_cmds
18668
18669 # Commands used to build an old-style archive.
18670 old_archive_cmds=$lt_old_archive_cmds
18671
18672 # A language specific compiler.
18673 CC=$lt_compiler
18674
18675 # Is the compiler the GNU compiler?
18676 with_gcc=$GCC
18677
18678 # Compiler flag to turn off builtin functions.
18679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18680
18681 # Additional compiler flags for building library objects.
18682 pic_flag=$lt_lt_prog_compiler_pic
18683
18684 # How to pass a linker flag through the compiler.
18685 wl=$lt_lt_prog_compiler_wl
18686
18687 # Compiler flag to prevent dynamic linking.
18688 link_static_flag=$lt_lt_prog_compiler_static
18689
18690 # Does compiler simultaneously support -c and -o options?
18691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18692
18693 # Whether or not to add -lc for building shared libraries.
18694 build_libtool_need_lc=$archive_cmds_need_lc
18695
18696 # Whether or not to disallow shared libs when runtime libs are static.
18697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18698
18699 # Compiler flag to allow reflexive dlopens.
18700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18701
18702 # Compiler flag to generate shared objects directly from archives.
18703 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18704
18705 # Whether the compiler copes with passing no objects directly.
18706 compiler_needs_object=$lt_compiler_needs_object
18707
18708 # Create an old-style archive from a shared archive.
18709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18710
18711 # Create a temporary old-style archive to link instead of a shared archive.
18712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18713
18714 # Commands used to build a shared archive.
18715 archive_cmds=$lt_archive_cmds
18716 archive_expsym_cmds=$lt_archive_expsym_cmds
18717
18718 # Commands used to build a loadable module if different from building
18719 # a shared archive.
18720 module_cmds=$lt_module_cmds
18721 module_expsym_cmds=$lt_module_expsym_cmds
18722
18723 # Whether we are building with GNU ld or not.
18724 with_gnu_ld=$lt_with_gnu_ld
18725
18726 # Flag that allows shared libraries with undefined symbols to be built.
18727 allow_undefined_flag=$lt_allow_undefined_flag
18728
18729 # Flag that enforces no undefined symbols.
18730 no_undefined_flag=$lt_no_undefined_flag
18731
18732 # Flag to hardcode \$libdir into a binary during linking.
18733 # This must work even if \$libdir does not exist
18734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18735
18736 # Whether we need a single "-rpath" flag with a separated argument.
18737 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18738
18739 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18740 # DIR into the resulting binary.
18741 hardcode_direct=$hardcode_direct
18742
18743 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18744 # DIR into the resulting binary and the resulting library dependency is
18745 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18746 # library is relocated.
18747 hardcode_direct_absolute=$hardcode_direct_absolute
18748
18749 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18750 # into the resulting binary.
18751 hardcode_minus_L=$hardcode_minus_L
18752
18753 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18754 # into the resulting binary.
18755 hardcode_shlibpath_var=$hardcode_shlibpath_var
18756
18757 # Set to "yes" if building a shared library automatically hardcodes DIR
18758 # into the library and all subsequent libraries and executables linked
18759 # against it.
18760 hardcode_automatic=$hardcode_automatic
18761
18762 # Set to yes if linker adds runtime paths of dependent libraries
18763 # to runtime path list.
18764 inherit_rpath=$inherit_rpath
18765
18766 # Whether libtool must link a program against all its dependency libraries.
18767 link_all_deplibs=$link_all_deplibs
18768
18769 # Set to "yes" if exported symbols are required.
18770 always_export_symbols=$always_export_symbols
18771
18772 # The commands to list exported symbols.
18773 export_symbols_cmds=$lt_export_symbols_cmds
18774
18775 # Symbols that should not be listed in the preloaded symbols.
18776 exclude_expsyms=$lt_exclude_expsyms
18777
18778 # Symbols that must always be exported.
18779 include_expsyms=$lt_include_expsyms
18780
18781 # Commands necessary for linking programs (against libraries) with templates.
18782 prelink_cmds=$lt_prelink_cmds
18783
18784 # Commands necessary for finishing linking programs.
18785 postlink_cmds=$lt_postlink_cmds
18786
18787 # Specify filename containing input files.
18788 file_list_spec=$lt_file_list_spec
18789
18790 # How to hardcode a shared library path into an executable.
18791 hardcode_action=$hardcode_action
18792
18793 # ### END LIBTOOL CONFIG
18794
18795 _LT_EOF
18796
18797 cat <<'_LT_EOF' >> "$cfgfile"
18798
18799 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18800
18801 # func_munge_path_list VARIABLE PATH
18802 # -----------------------------------
18803 # VARIABLE is name of variable containing _space_ separated list of
18804 # directories to be munged by the contents of PATH, which is string
18805 # having a format:
18806 # "DIR[:DIR]:"
18807 # string "DIR[ DIR]" will be prepended to VARIABLE
18808 # ":DIR[:DIR]"
18809 # string "DIR[ DIR]" will be appended to VARIABLE
18810 # "DIRP[:DIRP]::[DIRA:]DIRA"
18811 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18812 # "DIRA[ DIRA]" will be appended to VARIABLE
18813 # "DIR[:DIR]"
18814 # VARIABLE will be replaced by "DIR[ DIR]"
18815 func_munge_path_list ()
18816 {
18817 case x$2 in
18818 x)
18819 ;;
18820 *:)
18821 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18822 ;;
18823 x:*)
18824 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18825 ;;
18826 *::*)
18827 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18828 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18829 ;;
18830 *)
18831 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18832 ;;
18833 esac
18834 }
18835
18836
18837 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18838 func_cc_basename ()
18839 {
18840 for cc_temp in $*""; do
18841 case $cc_temp in
18842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18844 \-*) ;;
18845 *) break;;
18846 esac
18847 done
18848 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18849 }
18850
18851
18852 # ### END FUNCTIONS SHARED WITH CONFIGURE
18853
18854 _LT_EOF
18855
18856 case $host_os in
18857 aix3*)
18858 cat <<\_LT_EOF >> "$cfgfile"
18859 # AIX sometimes has problems with the GCC collect2 program. For some
18860 # reason, if we set the COLLECT_NAMES environment variable, the problems
18861 # vanish in a puff of smoke.
18862 if test set != "${COLLECT_NAMES+set}"; then
18863 COLLECT_NAMES=
18864 export COLLECT_NAMES
18865 fi
18866 _LT_EOF
18867 ;;
18868 esac
18869
18870
18871
18872 ltmain=$ac_aux_dir/ltmain.sh
18873
18874
18875 # We use sed instead of cat because bash on DJGPP gets confused if
18876 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18877 # text mode, it properly converts lines to CR/LF. This bash problem
18878 # is reportedly fixed, but why not run on old versions too?
18879 $SED '$q' "$ltmain" >> "$cfgfile" \
18880 || (rm -f "$cfgfile"; exit 1)
18881
18882 mv -f "$cfgfile" "$ofile" ||
18883 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18884 chmod +x "$ofile"
18885
18886 ;;
18887 "guile/pre-inst-guile":F) chmod +x guile/pre-inst-guile ;;
18888 "version-timestamp":C) if test -f "$ac_top_srcdir/.version" \
18889 && test `cat "$ac_top_srcdir/.version"` = "$gl_version"; then
18890 # The value of $(VERSION) is the same as last time.
18891 :
18892 else
18893 # The value of $(VERSION) has changed. Update the stamp.
18894 echo "$gl_version" > "$ac_top_srcdir/.version"
18895 fi
18896 ;;
18897
18898 esac
18899 done # for ac_tag
18900
18901
18902 as_fn_exit 0
18903 _ACEOF
18904 ac_clean_files=$ac_clean_files_save
18905
18906 test $ac_write_fail = 0 ||
18907 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18908
18909
18910 # configure is writing to config.log, and then calls config.status.
18911 # config.status does its own redirection, appending to config.log.
18912 # Unfortunately, on DOS this fails, as config.log is still kept open
18913 # by configure, so config.status won't be able to write to it; its
18914 # output is simply discarded. So we exec the FD to /dev/null,
18915 # effectively closing config.log, so it can be properly (re)opened and
18916 # appended to by config.status. When coming back to configure, we
18917 # need to make the FD available again.
18918 if test "$no_create" != yes; then
18919 ac_cs_success=:
18920 ac_config_status_args=
18921 test "$silent" = yes &&
18922 ac_config_status_args="$ac_config_status_args --quiet"
18923 exec 5>/dev/null
18924 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18925 exec 5>>config.log
18926 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18927 # would make configure fail if this is the last instruction.
18928 $ac_cs_success || as_fn_exit 1
18929 fi
18930 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18932 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18933 fi
18934
18935
18936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Summary of build options:
18937
18938 Version: ${VERSION}
18939 Build system: ${build}
18940 Host system: ${host}
18941 Install prefix: ${prefix}
18942 Compiler: ${CC}
18943 CFLAGS: ${CFLAGS}
18944 CPPFLAGS: ${CPPFLAGS}
18945 LDFLAGS: ${LDFLAGS}
18946 Library types: Shared=${enable_shared}, Static=${enable_static}
18947 GNUTLS:
18948 LIBS: ${GNUTLS_LIBS}
18949 CFLAGS: ${GNUTLS_CFLAGS}
18950 SRP: $ac_enable_srp
18951 Guile version: $GUILE_EFFECTIVE_VERSION
18952 GUILE: $GUILE
18953 CFLAGS: $GUILE_CFLAGS
18954 LDFLAGS: $GUILE_LDFLAGS
18955 sitedir: $guilesitedir - $GUILE_SITE
18956 siteccachedir: $guilesiteccachedir - $GUILE_SITE_CCACHE
18957 extensiondir: $guileextensiondir - $GUILE_EXTENSION
18958 guile-snarf: $guile_snarf
18959 GUILD: $GUILD
18960 " >&5
18961 printf "%s\n" "$as_me: Summary of build options:
18962
18963 Version: ${VERSION}
18964 Build system: ${build}
18965 Host system: ${host}
18966 Install prefix: ${prefix}
18967 Compiler: ${CC}
18968 CFLAGS: ${CFLAGS}
18969 CPPFLAGS: ${CPPFLAGS}
18970 LDFLAGS: ${LDFLAGS}
18971 Library types: Shared=${enable_shared}, Static=${enable_static}
18972 GNUTLS:
18973 LIBS: ${GNUTLS_LIBS}
18974 CFLAGS: ${GNUTLS_CFLAGS}
18975 SRP: $ac_enable_srp
18976 Guile version: $GUILE_EFFECTIVE_VERSION
18977 GUILE: $GUILE
18978 CFLAGS: $GUILE_CFLAGS
18979 LDFLAGS: $GUILE_LDFLAGS
18980 sitedir: $guilesitedir - $GUILE_SITE
18981 siteccachedir: $guilesiteccachedir - $GUILE_SITE_CCACHE
18982 extensiondir: $guileextensiondir - $GUILE_EXTENSION
18983 guile-snarf: $guile_snarf
18984 GUILD: $GUILD
18985 " >&6;}
18986
18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Summary of optional GnuTLS features:
18988
18989 hmac-key-size: $feature_gnutls_hmac_key_size
18990 {hmac,hash}-copy: $feature_gnutls_hmac_hash_copy
18991 " >&5
18992 printf "%s\n" "$as_me: Summary of optional GnuTLS features:
18993
18994 hmac-key-size: $feature_gnutls_hmac_key_size
18995 {hmac,hash}-copy: $feature_gnutls_hmac_hash_copy
18996 " >&6;}
18997
18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Availability of GnuTLS algorithms:
18999
19000 mac/aes-gmac-*: $feature_gnutls_mac_aes_gmac
19001 mac/shake-*: $feature_gnutls_mac_shake
19002 mac/gost28147-tc26z-imit: $feature_gnutls_mac_gost28147_tc26z_imit
19003 mac/magma-omac: $feature_gnutls_mac_magma_omac
19004 mac/kuznyechik-omac: $feature_gnutls_mac_kuznyechik_omac
19005 cipher/aes-*-xts: $feature_gnutls_cipher_aes_xts
19006 cipher/aes-*-siv: $feature_gnutls_cipher_aes_siv
19007 cipher/aes-192-gcm: $feature_gnutls_cipher_aes_192_gcm
19008 cipher/magma-ctr-acpkm: $feature_gnutls_cipher_magma_ctr_acpkm
19009 cipher/kuznyechik-ctr-acpkm: $feature_gnutls_cipher_kuznyechik_ctr_acpkm
19010 cipher/gost28147-tc26z-cnt: $feature_gnutls_cipher_gost28147_tc26z_cnt
19011 cipher/chacha20-*: $feature_gnutls_cipher_chacha20
19012 " >&5
19013 printf "%s\n" "$as_me: Availability of GnuTLS algorithms:
19014
19015 mac/aes-gmac-*: $feature_gnutls_mac_aes_gmac
19016 mac/shake-*: $feature_gnutls_mac_shake
19017 mac/gost28147-tc26z-imit: $feature_gnutls_mac_gost28147_tc26z_imit
19018 mac/magma-omac: $feature_gnutls_mac_magma_omac
19019 mac/kuznyechik-omac: $feature_gnutls_mac_kuznyechik_omac
19020 cipher/aes-*-xts: $feature_gnutls_cipher_aes_xts
19021 cipher/aes-*-siv: $feature_gnutls_cipher_aes_siv
19022 cipher/aes-192-gcm: $feature_gnutls_cipher_aes_192_gcm
19023 cipher/magma-ctr-acpkm: $feature_gnutls_cipher_magma_ctr_acpkm
19024 cipher/kuznyechik-ctr-acpkm: $feature_gnutls_cipher_kuznyechik_ctr_acpkm
19025 cipher/gost28147-tc26z-cnt: $feature_gnutls_cipher_gost28147_tc26z_cnt
19026 cipher/chacha20-*: $feature_gnutls_cipher_chacha20
19027 " >&6;}
19028
19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Availability of public key algorithms:
19030
19031 pk-algorithm/ecdh-x448: $feature_gnutls_pk_ecdh_x448
19032 pk-algorithm/eddsa-ed448: $feature_gnutls_pk_eddsa_ed448
19033 pk-algorithm/rsa-oaep: $feature_gnutls_pk_rsa_oaep
19034 pk-algorithm/mlkem768: $feature_gnutls_pk_mlkem768
19035 pk-algorithm/mlkem1024: $feature_gnutls_pk_mlkem1024
19036 pk-algorithm/mldsa: $feature_gnutls_pk_mldsa
19037 " >&5
19038 printf "%s\n" "$as_me: Availability of public key algorithms:
19039
19040 pk-algorithm/ecdh-x448: $feature_gnutls_pk_ecdh_x448
19041 pk-algorithm/eddsa-ed448: $feature_gnutls_pk_eddsa_ed448
19042 pk-algorithm/rsa-oaep: $feature_gnutls_pk_rsa_oaep
19043 pk-algorithm/mlkem768: $feature_gnutls_pk_mlkem768
19044 pk-algorithm/mlkem1024: $feature_gnutls_pk_mlkem1024
19045 pk-algorithm/mldsa: $feature_gnutls_pk_mldsa
19046 " >&6;}
19047
19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Availability of signature algorithms:
19049
19050 sign-algorithm/eddsa-ed448: $feature_gnutls_sign_eddsa_ed448
19051 sign-algorithm/mldsa: $feature_gnutls_sign_mldsa
19052 " >&5
19053 printf "%s\n" "$as_me: Availability of signature algorithms:
19054
19055 sign-algorithm/eddsa-ed448: $feature_gnutls_sign_eddsa_ed448
19056 sign-algorithm/mldsa: $feature_gnutls_sign_mldsa
19057 " >&6;}
19058
19059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Availability of ECC curves:
19060
19061 ecc-curve/gost512c: $feature_gnutls_ecc_curve_gost512c
19062 ecc-curve/gost256{abcd}: $feature_gnutls_ecc_curve_gost256x
19063 ecc-curve/x448: $feature_gnutls_ecc_curve_x448
19064 ecc-curve/ed448: $feature_gnutls_ecc_curve_ed448
19065 " >&5
19066 printf "%s\n" "$as_me: Availability of ECC curves:
19067
19068 ecc-curve/gost512c: $feature_gnutls_ecc_curve_gost512c
19069 ecc-curve/gost256{abcd}: $feature_gnutls_ecc_curve_gost256x
19070 ecc-curve/x448: $feature_gnutls_ecc_curve_x448
19071 ecc-curve/ed448: $feature_gnutls_ecc_curve_ed448
19072 " >&6;}
19073