Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libksba 1.8.0.
4 #
5 # Report bugs to <https://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://bugs.gnupg.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='libksba'
623 PACKAGE_TARNAME='libksba'
624 PACKAGE_VERSION='1.8.0'
625 PACKAGE_STRING='libksba 1.8.0'
626 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
627 PACKAGE_URL=''
628
629 ac_unique_file="src/ksba.h.in"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 BUILD_DOC_FALSE
667 BUILD_DOC_TRUE
668 BUILD_TIMESTAMP
669 BUILD_FILEVERSION
670 BUILD_REVISION
671 CROSS_COMPILING_FALSE
672 CROSS_COMPILING_TRUE
673 KSBA_CONFIG_HOST
674 KSBA_CONFIG_API_VERSION
675 KSBA_CONFIG_CFLAGS
676 KSBA_CONFIG_LIBS
677 VALGRIND
678 ALLOCA_H
679 ALLOCA
680 LTALLOCA
681 USE_GPGRT_CONFIG_FALSE
682 USE_GPGRT_CONFIG_TRUE
683 GPG_ERROR_MT_LIBS
684 GPG_ERROR_MT_CFLAGS
685 GPG_ERROR_LIBS
686 GPG_ERROR_CFLAGS
687 GPGRT_CONFIG
688 GPG_ERROR_CONFIG
689 HAVE_LD_VERSION_SCRIPT_FALSE
690 HAVE_LD_VERSION_SCRIPT_TRUE
691 HAVE_W32_SYSTEM_FALSE
692 HAVE_W32_SYSTEM_TRUE
693 YFLAGS
694 YACC
695 CPP
696 VERSION_NUMBER
697 LIBKSBA_LT_REVISION
698 LIBKSBA_LT_AGE
699 LIBKSBA_LT_CURRENT
700 EXEEXT_FOR_BUILD
701 CC_FOR_BUILD
702 MAINT
703 MAINTAINER_MODE_FALSE
704 MAINTAINER_MODE_TRUE
705 RC
706 LT_SYS_LIBRARY_PATH
707 OTOOL64
708 OTOOL
709 LIPO
710 NMEDIT
711 DSYMUTIL
712 MANIFEST_TOOL
713 RANLIB
714 ac_ct_AR
715 AR
716 FILECMD
717 LN_S
718 NM
719 ac_ct_DUMPBIN
720 DUMPBIN
721 LD
722 FGREP
723 EGREP
724 GREP
725 SED
726 LIBTOOL
727 OBJDUMP
728 DLLTOOL
729 AS
730 LDADD_FOR_TESTS_KLUDGE
731 SYSROOT
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 AM_BACKSLASH
757 AM_DEFAULT_VERBOSITY
758 AM_DEFAULT_V
759 AM_V
760 CSCOPE
761 ETAGS
762 CTAGS
763 am__untar
764 am__tar
765 AMTAR
766 am__leading_dot
767 SET_MAKE
768 AWK
769 mkdir_p
770 MKDIR_P
771 INSTALL_STRIP_PROGRAM
772 STRIP
773 install_sh
774 MAKEINFO
775 AUTOHEADER
776 AUTOMAKE
777 AUTOCONF
778 ACLOCAL
779 VERSION
780 PACKAGE
781 CYGPATH_W
782 am__isrc
783 INSTALL_DATA
784 INSTALL_SCRIPT
785 INSTALL_PROGRAM
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 runstatedir
806 localstatedir
807 sharedstatedir
808 sysconfdir
809 datadir
810 datarootdir
811 libexecdir
812 sbindir
813 bindir
814 program_transform_name
815 prefix
816 exec_prefix
817 PACKAGE_URL
818 PACKAGE_BUGREPORT
819 PACKAGE_STRING
820 PACKAGE_VERSION
821 PACKAGE_TARNAME
822 PACKAGE_NAME
823 PATH_SEPARATOR
824 SHELL
825 am__quote'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_silent_rules
830 enable_dependency_tracking
831 enable_static
832 enable_shared
833 with_pic
834 enable_fast_install
835 with_aix_soname
836 with_gnu_ld
837 with_sysroot
838 enable_libtool_lock
839 enable_maintainer_mode
840 enable_optimization
841 enable_ld_version_script
842 with_libtool_modification
843 with_libgpg_error_prefix
844 with_gpg_error_prefix
845 enable_valgrind_tests
846 enable_build_timestamp
847 enable_doc
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 SYSROOT
858 LT_SYS_LIBRARY_PATH
859 CPP
860 YACC
861 YFLAGS
862 CC_FOR_BUILD'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: \`$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: \`$ac_useropt'"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -runstatedir | --runstatedir | --runstatedi | --runstated \
1153 | --runstate | --runstat | --runsta | --runst | --runs \
1154 | --run | --ru | --r)
1155 ac_prev=runstatedir ;;
1156 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158 | --run=* | --ru=* | --r=*)
1159 runstatedir=$ac_optarg ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: \`$ac_useropt'"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1221
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: \`$ac_useropt'"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir runstatedir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1328 fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 printf "%s\n" X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures libksba 1.8.0 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking ...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/libksba]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1466
1467 cat <<\_ACEOF
1468
1469 Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of libksba 1.8.0:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-silent-rules less verbose build output (undo: "make V=1")
1491 --disable-silent-rules verbose build output (undo: "make V=0")
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
1496 --enable-static[=PKGS] build static libraries [default=no]
1497 --enable-shared[=PKGS] build shared libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --disable-optimization disable compiler optimization
1505 --enable-ld-version-script
1506 enable/disable use of linker version script.
1507 (default is system dependent)
1508 --enable-valgrind-tests run self tests under valgrind
1509 --enable-build-timestamp
1510 set an explicit build timestamp for reproducibility.
1511 (default is the current time in ISO-8601 format)
1512 --disable-doc do not build the documentation
1513
1514 Optional Packages:
1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1517 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1518 both]
1519 --with-aix-soname=aix|svr4|both
1520 shared library versioning (aka "SONAME") variant to
1521 provide on AIX, [default=aix].
1522 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1523 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1524 compiler's sysroot if not specified).
1525 --with-libtool-modification=apply|never|try
1526 how to handle libtool modification (default=never)
1527 --with-libgpg-error-prefix=PFX
1528 prefix where GPG Error is installed (optional)
1529
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 SYSROOT locate config scripts also below that directory
1540 LT_SYS_LIBRARY_PATH
1541 User-defined run-time library search path.
1542 CPP C preprocessor
1543 YACC The `Yet Another Compiler Compiler' implementation to use.
1544 Defaults to the first program found out of: `bison -y', `byacc',
1545 `yacc'.
1546 YFLAGS The list of arguments that will be passed by default to $YACC.
1547 This script will default YFLAGS to the empty string to avoid a
1548 default value of `-d' given by some make applications.
1549 CC_FOR_BUILD
1550 build system C compiler
1551
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1554
1555 Report bugs to <https://bugs.gnupg.org>.
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565 continue
1566 ac_builddir=.
1567
1568 case "$ac_dir" in
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *)
1571 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 esac ;;
1578 esac
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1583
1584 case $srcdir in
1585 .) # We are building in place.
1586 ac_srcdir=.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1593 *) # Relative name.
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 esac
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for configure.gnu first; this name is used for a wrapper for
1602 # Metaconfig's "Configure" on case-insensitive file systems.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1609 else
1610 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 fi || ac_status=$?
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1613 done
1614 fi
1615
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1618 cat <<\_ACEOF
1619 libksba configure 1.8.0
1620 generated by GNU Autoconf 2.71
1621
1622 Copyright (C) 2021 Free Software Foundation, Inc.
1623 This configure script is free software; the Free Software Foundation
1624 gives unlimited permission to copy, distribute and modify it.
1625 _ACEOF
1626 exit
1627 fi
1628
1629 ## ------------------------ ##
1630 ## Autoconf initialization. ##
1631 ## ------------------------ ##
1632
1633 # ac_fn_c_try_compile LINENO
1634 # --------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_compile ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest.beam
1640 if { { ac_try="$ac_compile"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 printf "%s\n" "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.$ac_objext
1659 then :
1660 ac_retval=0
1661 else $as_nop
1662 printf "%s\n" "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=1
1666 fi
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_compile
1671
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 printf %s "checking for $2... " >&6; }
1681 if eval test \${$3+y}
1682 then :
1683 printf %s "(cached) " >&6
1684 else $as_nop
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"
1691 then :
1692 eval "$3=yes"
1693 else $as_nop
1694 eval "$3=no"
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1697 fi
1698 eval ac_res=\$$3
1699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 printf "%s\n" "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702
1703 } # ac_fn_c_check_header_compile
1704
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_link ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1712 if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 printf "%s\n" "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest$ac_exeext && {
1731 test "$cross_compiling" = yes ||
1732 test -x conftest$ac_exeext
1733 }
1734 then :
1735 ac_retval=0
1736 else $as_nop
1737 printf "%s\n" "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_link
1751
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 printf %s "checking for $2... " >&6; }
1760 if eval test \${$3+y}
1761 then :
1762 printf %s "(cached) " >&6
1763 else $as_nop
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1768 #define $2 innocuous_$2
1769
1770 /* System header to define __stub macros and hopefully few prototypes,
1771 which can conflict with char $2 (); below. */
1772
1773 #include <limits.h>
1774 #undef $2
1775
1776 /* Override any GCC internal prototype to avoid an error.
1777 Use char because int might match the return type of a GCC
1778 builtin and then its argument prototype would still apply. */
1779 #ifdef __cplusplus
1780 extern "C"
1781 #endif
1782 char $2 ();
1783 /* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786 #if defined __stub_$2 || defined __stub___$2
1787 choke me
1788 #endif
1789
1790 int
1791 main (void)
1792 {
1793 return $2 ();
1794 ;
1795 return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_link "$LINENO"
1799 then :
1800 eval "$3=yes"
1801 else $as_nop
1802 eval "$3=no"
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1805 conftest$ac_exeext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 printf "%s\n" "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_func
1813
1814 # ac_fn_c_try_cpp LINENO
1815 # ----------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_cpp ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_cpp conftest.$ac_ext"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 printf "%s\n" "$ac_try_echo"; } >&5
1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } > conftest.i && {
1836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 }
1839 then :
1840 ac_retval=0
1841 else $as_nop
1842 printf "%s\n" "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846 fi
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_cpp
1851
1852 # ac_fn_c_try_run LINENO
1853 # ----------------------
1854 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1855 # executables *can* be run.
1856 ac_fn_c_try_run ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_link"
1860 case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 printf "%s\n" "$ac_try_echo"; } >&5
1866 (eval "$ac_link") 2>&5
1867 ac_status=$?
1868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1870 { { case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 printf "%s\n" "$ac_try_echo"; } >&5
1876 (eval "$ac_try") 2>&5
1877 ac_status=$?
1878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; }; }
1880 then :
1881 ac_retval=0
1882 else $as_nop
1883 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1884 printf "%s\n" "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=$ac_status
1888 fi
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1892
1893 } # ac_fn_c_try_run
1894
1895 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1896 # --------------------------------------------
1897 # Tries to find the compile-time value of EXPR in a program that includes
1898 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1899 # computed
1900 ac_fn_c_compute_int ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if test "$cross_compiling" = yes; then
1904 # Depending upon the size, compute the lo and hi bounds.
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main (void)
1910 {
1911 static int test_array [1 - 2 * !(($2) >= 0)];
1912 test_array [0] = 0;
1913 return test_array [0];
1914
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"
1920 then :
1921 ac_lo=0 ac_mid=0
1922 while :; do
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $4
1926 int
1927 main (void)
1928 {
1929 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1930 test_array [0] = 0;
1931 return test_array [0];
1932
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"
1938 then :
1939 ac_hi=$ac_mid; break
1940 else $as_nop
1941 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1942 if test $ac_lo -le $ac_mid; then
1943 ac_lo= ac_hi=
1944 break
1945 fi
1946 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1949 done
1950 else $as_nop
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $4
1954 int
1955 main (void)
1956 {
1957 static int test_array [1 - 2 * !(($2) < 0)];
1958 test_array [0] = 0;
1959 return test_array [0];
1960
1961 ;
1962 return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"
1966 then :
1967 ac_hi=-1 ac_mid=-1
1968 while :; do
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 $4
1972 int
1973 main (void)
1974 {
1975 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1976 test_array [0] = 0;
1977 return test_array [0];
1978
1979 ;
1980 return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"
1984 then :
1985 ac_lo=$ac_mid; break
1986 else $as_nop
1987 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1988 if test $ac_mid -le $ac_hi; then
1989 ac_lo= ac_hi=
1990 break
1991 fi
1992 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1995 done
1996 else $as_nop
1997 ac_lo= ac_hi=
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2002 # Binary search between lo and hi bounds.
2003 while test "x$ac_lo" != "x$ac_hi"; do
2004 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 $4
2008 int
2009 main (void)
2010 {
2011 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2012 test_array [0] = 0;
2013 return test_array [0];
2014
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"
2020 then :
2021 ac_hi=$ac_mid
2022 else $as_nop
2023 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2026 done
2027 case $ac_lo in #((
2028 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2029 '') ac_retval=1 ;;
2030 esac
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $4
2035 static long int longval (void) { return $2; }
2036 static unsigned long int ulongval (void) { return $2; }
2037 #include <stdio.h>
2038 #include <stdlib.h>
2039 int
2040 main (void)
2041 {
2042
2043 FILE *f = fopen ("conftest.val", "w");
2044 if (! f)
2045 return 1;
2046 if (($2) < 0)
2047 {
2048 long int i = longval ();
2049 if (i != ($2))
2050 return 1;
2051 fprintf (f, "%ld", i);
2052 }
2053 else
2054 {
2055 unsigned long int i = ulongval ();
2056 if (i != ($2))
2057 return 1;
2058 fprintf (f, "%lu", i);
2059 }
2060 /* Do not output a trailing newline, as this causes \r\n confusion
2061 on some platforms. */
2062 return ferror (f) || fclose (f) != 0;
2063
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_run "$LINENO"
2069 then :
2070 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2071 else $as_nop
2072 ac_retval=1
2073 fi
2074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2075 conftest.$ac_objext conftest.beam conftest.$ac_ext
2076 rm -f conftest.val
2077
2078 fi
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 as_fn_set_status $ac_retval
2081
2082 } # ac_fn_c_compute_int
2083
2084 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2085 # -------------------------------------------
2086 # Tests whether TYPE exists after having included INCLUDES, setting cache
2087 # variable VAR accordingly.
2088 ac_fn_c_check_type ()
2089 {
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 printf %s "checking for $2... " >&6; }
2093 if eval test \${$3+y}
2094 then :
2095 printf %s "(cached) " >&6
2096 else $as_nop
2097 eval "$3=no"
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main (void)
2103 {
2104 if (sizeof ($2))
2105 return 0;
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"
2111 then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 $4
2115 int
2116 main (void)
2117 {
2118 if (sizeof (($2)))
2119 return 0;
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"
2125 then :
2126
2127 else $as_nop
2128 eval "$3=yes"
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2133 fi
2134 eval ac_res=\$$3
2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 printf "%s\n" "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139 } # ac_fn_c_check_type
2140 ac_configure_args_raw=
2141 for ac_arg
2142 do
2143 case $ac_arg in
2144 *\'*)
2145 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2146 esac
2147 as_fn_append ac_configure_args_raw " '$ac_arg'"
2148 done
2149
2150 case $ac_configure_args_raw in
2151 *$as_nl*)
2152 ac_safe_unquote= ;;
2153 *)
2154 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2155 ac_unsafe_a="$ac_unsafe_z#~"
2156 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2157 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2158 esac
2159
2160 cat >config.log <<_ACEOF
2161 This file contains any messages produced by compilers while
2162 running configure, to aid debugging if configure makes a mistake.
2163
2164 It was created by libksba $as_me 1.8.0, which was
2165 generated by GNU Autoconf 2.71. Invocation command line was
2166
2167 $ $0$ac_configure_args_raw
2168
2169 _ACEOF
2170 exec 5>>config.log
2171 {
2172 cat <<_ASUNAME
2173 ## --------- ##
2174 ## Platform. ##
2175 ## --------- ##
2176
2177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182
2183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2185
2186 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193
2194 _ASUNAME
2195
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199 IFS=$as_save_IFS
2200 case $as_dir in #(((
2201 '') as_dir=./ ;;
2202 */) ;;
2203 *) as_dir=$as_dir/ ;;
2204 esac
2205 printf "%s\n" "PATH: $as_dir"
2206 done
2207 IFS=$as_save_IFS
2208
2209 } >&5
2210
2211 cat >&5 <<_ACEOF
2212
2213
2214 ## ----------- ##
2215 ## Core tests. ##
2216 ## ----------- ##
2217
2218 _ACEOF
2219
2220
2221 # Keep a trace of the command line.
2222 # Strip out --no-create and --no-recursion so they do not pile up.
2223 # Strip out --silent because we don't want to record it for future runs.
2224 # Also quote any args containing shell meta-characters.
2225 # Make two passes to allow for proper duplicate-argument suppression.
2226 ac_configure_args=
2227 ac_configure_args0=
2228 ac_configure_args1=
2229 ac_must_keep_next=false
2230 for ac_pass in 1 2
2231 do
2232 for ac_arg
2233 do
2234 case $ac_arg in
2235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2237 | -silent | --silent | --silen | --sile | --sil)
2238 continue ;;
2239 *\'*)
2240 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 esac
2242 case $ac_pass in
2243 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2244 2)
2245 as_fn_append ac_configure_args1 " '$ac_arg'"
2246 if test $ac_must_keep_next = true; then
2247 ac_must_keep_next=false # Got value, back to normal.
2248 else
2249 case $ac_arg in
2250 *=* | --config-cache | -C | -disable-* | --disable-* \
2251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2253 | -with-* | --with-* | -without-* | --without-* | --x)
2254 case "$ac_configure_args0 " in
2255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256 esac
2257 ;;
2258 -* ) ac_must_keep_next=true ;;
2259 esac
2260 fi
2261 as_fn_append ac_configure_args " '$ac_arg'"
2262 ;;
2263 esac
2264 done
2265 done
2266 { ac_configure_args0=; unset ac_configure_args0;}
2267 { ac_configure_args1=; unset ac_configure_args1;}
2268
2269 # When interrupted or exit'd, cleanup temporary files, and complete
2270 # config.log. We remove comments because anyway the quotes in there
2271 # would cause problems or look ugly.
2272 # WARNING: Use '\'' to represent an apostrophe within the trap.
2273 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2274 trap 'exit_status=$?
2275 # Sanitize IFS.
2276 IFS=" "" $as_nl"
2277 # Save into config.log some information that might help in debugging.
2278 {
2279 echo
2280
2281 printf "%s\n" "## ---------------- ##
2282 ## Cache variables. ##
2283 ## ---------------- ##"
2284 echo
2285 # The following way of writing the cache mishandles newlines in values,
2286 (
2287 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2288 eval ac_val=\$$ac_var
2289 case $ac_val in #(
2290 *${as_nl}*)
2291 case $ac_var in #(
2292 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2293 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2294 esac
2295 case $ac_var in #(
2296 _ | IFS | as_nl) ;; #(
2297 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2298 *) { eval $ac_var=; unset $ac_var;} ;;
2299 esac ;;
2300 esac
2301 done
2302 (set) 2>&1 |
2303 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2304 *${as_nl}ac_space=\ *)
2305 sed -n \
2306 "s/'\''/'\''\\\\'\'''\''/g;
2307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2308 ;; #(
2309 *)
2310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2311 ;;
2312 esac |
2313 sort
2314 )
2315 echo
2316
2317 printf "%s\n" "## ----------------- ##
2318 ## Output variables. ##
2319 ## ----------------- ##"
2320 echo
2321 for ac_var in $ac_subst_vars
2322 do
2323 eval ac_val=\$$ac_var
2324 case $ac_val in
2325 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326 esac
2327 printf "%s\n" "$ac_var='\''$ac_val'\''"
2328 done | sort
2329 echo
2330
2331 if test -n "$ac_subst_files"; then
2332 printf "%s\n" "## ------------------- ##
2333 ## File substitutions. ##
2334 ## ------------------- ##"
2335 echo
2336 for ac_var in $ac_subst_files
2337 do
2338 eval ac_val=\$$ac_var
2339 case $ac_val in
2340 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 esac
2342 printf "%s\n" "$ac_var='\''$ac_val'\''"
2343 done | sort
2344 echo
2345 fi
2346
2347 if test -s confdefs.h; then
2348 printf "%s\n" "## ----------- ##
2349 ## confdefs.h. ##
2350 ## ----------- ##"
2351 echo
2352 cat confdefs.h
2353 echo
2354 fi
2355 test "$ac_signal" != 0 &&
2356 printf "%s\n" "$as_me: caught signal $ac_signal"
2357 printf "%s\n" "$as_me: exit $exit_status"
2358 } >&5
2359 rm -f core *.core core.conftest.* &&
2360 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2361 exit $exit_status
2362 ' 0
2363 for ac_signal in 1 2 13 15; do
2364 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2365 done
2366 ac_signal=0
2367
2368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2369 rm -f -r conftest* confdefs.h
2370
2371 printf "%s\n" "/* confdefs.h */" > confdefs.h
2372
2373 # Predefined preprocessor variables.
2374
2375 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2376
2377 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2378
2379 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2380
2381 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2382
2383 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2384
2385 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2386
2387
2388 # Let the site file select an alternate cache file if it wants to.
2389 # Prefer an explicitly selected file to automatically selected ones.
2390 if test -n "$CONFIG_SITE"; then
2391 ac_site_files="$CONFIG_SITE"
2392 elif test "x$prefix" != xNONE; then
2393 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2394 else
2395 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2396 fi
2397
2398 for ac_site_file in $ac_site_files
2399 do
2400 case $ac_site_file in #(
2401 */*) :
2402 ;; #(
2403 *) :
2404 ac_site_file=./$ac_site_file ;;
2405 esac
2406 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2408 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2409 sed 's/^/| /' "$ac_site_file" >&5
2410 . "$ac_site_file" \
2411 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2412 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2413 as_fn_error $? "failed to load site script $ac_site_file
2414 See \`config.log' for more details" "$LINENO" 5; }
2415 fi
2416 done
2417
2418 if test -r "$cache_file"; then
2419 # Some versions of bash will fail to source /dev/null (special files
2420 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2421 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2423 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2424 case $cache_file in
2425 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2426 *) . "./$cache_file";;
2427 esac
2428 fi
2429 else
2430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2431 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2432 >$cache_file
2433 fi
2434
2435 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2436 # Test code for whether the C compiler supports C89 (global declarations)
2437 ac_c_conftest_c89_globals='
2438 /* Does the compiler advertise C89 conformance?
2439 Do not test the value of __STDC__, because some compilers set it to 0
2440 while being otherwise adequately conformant. */
2441 #if !defined __STDC__
2442 # error "Compiler does not advertise C89 conformance"
2443 #endif
2444
2445 #include <stddef.h>
2446 #include <stdarg.h>
2447 struct stat;
2448 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2449 struct buf { int x; };
2450 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2451 static char *e (p, i)
2452 char **p;
2453 int i;
2454 {
2455 return p[i];
2456 }
2457 static char *f (char * (*g) (char **, int), char **p, ...)
2458 {
2459 char *s;
2460 va_list v;
2461 va_start (v,p);
2462 s = g (p, va_arg (v,int));
2463 va_end (v);
2464 return s;
2465 }
2466
2467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2468 function prototypes and stuff, but not \xHH hex character constants.
2469 These do not provoke an error unfortunately, instead are silently treated
2470 as an "x". The following induces an error, until -std is added to get
2471 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2472 array size at least. It is necessary to write \x00 == 0 to get something
2473 that is true only with -std. */
2474 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2475
2476 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2477 inside strings and character constants. */
2478 #define FOO(x) '\''x'\''
2479 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2480
2481 int test (int i, double x);
2482 struct s1 {int (*f) (int a);};
2483 struct s2 {int (*f) (double a);};
2484 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2485 int, int);'
2486
2487 # Test code for whether the C compiler supports C89 (body of main).
2488 ac_c_conftest_c89_main='
2489 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2490 '
2491
2492 # Test code for whether the C compiler supports C99 (global declarations)
2493 ac_c_conftest_c99_globals='
2494 // Does the compiler advertise C99 conformance?
2495 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2496 # error "Compiler does not advertise C99 conformance"
2497 #endif
2498
2499 #include <stdbool.h>
2500 extern int puts (const char *);
2501 extern int printf (const char *, ...);
2502 extern int dprintf (int, const char *, ...);
2503 extern void *malloc (size_t);
2504
2505 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2506 // dprintf is used instead of fprintf to avoid needing to declare
2507 // FILE and stderr.
2508 #define debug(...) dprintf (2, __VA_ARGS__)
2509 #define showlist(...) puts (#__VA_ARGS__)
2510 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2511 static void
2512 test_varargs_macros (void)
2513 {
2514 int x = 1234;
2515 int y = 5678;
2516 debug ("Flag");
2517 debug ("X = %d\n", x);
2518 showlist (The first, second, and third items.);
2519 report (x>y, "x is %d but y is %d", x, y);
2520 }
2521
2522 // Check long long types.
2523 #define BIG64 18446744073709551615ull
2524 #define BIG32 4294967295ul
2525 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2526 #if !BIG_OK
2527 #error "your preprocessor is broken"
2528 #endif
2529 #if BIG_OK
2530 #else
2531 #error "your preprocessor is broken"
2532 #endif
2533 static long long int bignum = -9223372036854775807LL;
2534 static unsigned long long int ubignum = BIG64;
2535
2536 struct incomplete_array
2537 {
2538 int datasize;
2539 double data[];
2540 };
2541
2542 struct named_init {
2543 int number;
2544 const wchar_t *name;
2545 double average;
2546 };
2547
2548 typedef const char *ccp;
2549
2550 static inline int
2551 test_restrict (ccp restrict text)
2552 {
2553 // See if C++-style comments work.
2554 // Iterate through items via the restricted pointer.
2555 // Also check for declarations in for loops.
2556 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2557 continue;
2558 return 0;
2559 }
2560
2561 // Check varargs and va_copy.
2562 static bool
2563 test_varargs (const char *format, ...)
2564 {
2565 va_list args;
2566 va_start (args, format);
2567 va_list args_copy;
2568 va_copy (args_copy, args);
2569
2570 const char *str = "";
2571 int number = 0;
2572 float fnumber = 0;
2573
2574 while (*format)
2575 {
2576 switch (*format++)
2577 {
2578 case '\''s'\'': // string
2579 str = va_arg (args_copy, const char *);
2580 break;
2581 case '\''d'\'': // int
2582 number = va_arg (args_copy, int);
2583 break;
2584 case '\''f'\'': // float
2585 fnumber = va_arg (args_copy, double);
2586 break;
2587 default:
2588 break;
2589 }
2590 }
2591 va_end (args_copy);
2592 va_end (args);
2593
2594 return *str && number && fnumber;
2595 }
2596 '
2597
2598 # Test code for whether the C compiler supports C99 (body of main).
2599 ac_c_conftest_c99_main='
2600 // Check bool.
2601 _Bool success = false;
2602 success |= (argc != 0);
2603
2604 // Check restrict.
2605 if (test_restrict ("String literal") == 0)
2606 success = true;
2607 char *restrict newvar = "Another string";
2608
2609 // Check varargs.
2610 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2611 test_varargs_macros ();
2612
2613 // Check flexible array members.
2614 struct incomplete_array *ia =
2615 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2616 ia->datasize = 10;
2617 for (int i = 0; i < ia->datasize; ++i)
2618 ia->data[i] = i * 1.234;
2619
2620 // Check named initializers.
2621 struct named_init ni = {
2622 .number = 34,
2623 .name = L"Test wide string",
2624 .average = 543.34343,
2625 };
2626
2627 ni.number = 58;
2628
2629 int dynamic_array[ni.number];
2630 dynamic_array[0] = argv[0][0];
2631 dynamic_array[ni.number - 1] = 543;
2632
2633 // work around unused variable warnings
2634 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2635 || dynamic_array[ni.number - 1] != 543);
2636 '
2637
2638 # Test code for whether the C compiler supports C11 (global declarations)
2639 ac_c_conftest_c11_globals='
2640 // Does the compiler advertise C11 conformance?
2641 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2642 # error "Compiler does not advertise C11 conformance"
2643 #endif
2644
2645 // Check _Alignas.
2646 char _Alignas (double) aligned_as_double;
2647 char _Alignas (0) no_special_alignment;
2648 extern char aligned_as_int;
2649 char _Alignas (0) _Alignas (int) aligned_as_int;
2650
2651 // Check _Alignof.
2652 enum
2653 {
2654 int_alignment = _Alignof (int),
2655 int_array_alignment = _Alignof (int[100]),
2656 char_alignment = _Alignof (char)
2657 };
2658 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2659
2660 // Check _Noreturn.
2661 int _Noreturn does_not_return (void) { for (;;) continue; }
2662
2663 // Check _Static_assert.
2664 struct test_static_assert
2665 {
2666 int x;
2667 _Static_assert (sizeof (int) <= sizeof (long int),
2668 "_Static_assert does not work in struct");
2669 long int y;
2670 };
2671
2672 // Check UTF-8 literals.
2673 #define u8 syntax error!
2674 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2675
2676 // Check duplicate typedefs.
2677 typedef long *long_ptr;
2678 typedef long int *long_ptr;
2679 typedef long_ptr long_ptr;
2680
2681 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2682 struct anonymous
2683 {
2684 union {
2685 struct { int i; int j; };
2686 struct { int k; long int l; } w;
2687 };
2688 int m;
2689 } v1;
2690 '
2691
2692 # Test code for whether the C compiler supports C11 (body of main).
2693 ac_c_conftest_c11_main='
2694 _Static_assert ((offsetof (struct anonymous, i)
2695 == offsetof (struct anonymous, w.k)),
2696 "Anonymous union alignment botch");
2697 v1.i = 2;
2698 v1.w.k = 5;
2699 ok |= v1.i != 5;
2700 '
2701
2702 # Test code for whether the C compiler supports C11 (complete).
2703 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2704 ${ac_c_conftest_c99_globals}
2705 ${ac_c_conftest_c11_globals}
2706
2707 int
2708 main (int argc, char **argv)
2709 {
2710 int ok = 0;
2711 ${ac_c_conftest_c89_main}
2712 ${ac_c_conftest_c99_main}
2713 ${ac_c_conftest_c11_main}
2714 return ok;
2715 }
2716 "
2717
2718 # Test code for whether the C compiler supports C99 (complete).
2719 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2720 ${ac_c_conftest_c99_globals}
2721
2722 int
2723 main (int argc, char **argv)
2724 {
2725 int ok = 0;
2726 ${ac_c_conftest_c89_main}
2727 ${ac_c_conftest_c99_main}
2728 return ok;
2729 }
2730 "
2731
2732 # Test code for whether the C compiler supports C89 (complete).
2733 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2734
2735 int
2736 main (int argc, char **argv)
2737 {
2738 int ok = 0;
2739 ${ac_c_conftest_c89_main}
2740 return ok;
2741 }
2742 "
2743
2744 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2745 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2746 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2747 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2748 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2749 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2750 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2751 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2752 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2753 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2754
2755 # Auxiliary files required by this configure script.
2756 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2757
2758 # Locations in which to look for auxiliary files.
2759 ac_aux_dir_candidates="${srcdir}/build-aux"
2760
2761 # Search for a directory containing all of the required auxiliary files,
2762 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2763 # If we don't find one directory that contains all the files we need,
2764 # we report the set of missing files from the *first* directory in
2765 # $ac_aux_dir_candidates and give up.
2766 ac_missing_aux_files=""
2767 ac_first_candidate=:
2768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 as_found=false
2771 for as_dir in $ac_aux_dir_candidates
2772 do
2773 IFS=$as_save_IFS
2774 case $as_dir in #(((
2775 '') as_dir=./ ;;
2776 */) ;;
2777 *) as_dir=$as_dir/ ;;
2778 esac
2779 as_found=:
2780
2781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2782 ac_aux_dir_found=yes
2783 ac_install_sh=
2784 for ac_aux in $ac_aux_files
2785 do
2786 # As a special case, if "install-sh" is required, that requirement
2787 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2788 # and $ac_install_sh is set appropriately for whichever one is found.
2789 if test x"$ac_aux" = x"install-sh"
2790 then
2791 if test -f "${as_dir}install-sh"; then
2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2793 ac_install_sh="${as_dir}install-sh -c"
2794 elif test -f "${as_dir}install.sh"; then
2795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2796 ac_install_sh="${as_dir}install.sh -c"
2797 elif test -f "${as_dir}shtool"; then
2798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2799 ac_install_sh="${as_dir}shtool install -c"
2800 else
2801 ac_aux_dir_found=no
2802 if $ac_first_candidate; then
2803 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2804 else
2805 break
2806 fi
2807 fi
2808 else
2809 if test -f "${as_dir}${ac_aux}"; then
2810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2811 else
2812 ac_aux_dir_found=no
2813 if $ac_first_candidate; then
2814 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2815 else
2816 break
2817 fi
2818 fi
2819 fi
2820 done
2821 if test "$ac_aux_dir_found" = yes; then
2822 ac_aux_dir="$as_dir"
2823 break
2824 fi
2825 ac_first_candidate=false
2826
2827 as_found=false
2828 done
2829 IFS=$as_save_IFS
2830 if $as_found
2831 then :
2832
2833 else $as_nop
2834 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2835 fi
2836
2837
2838 # These three variables are undocumented and unsupported,
2839 # and are intended to be withdrawn in a future Autoconf release.
2840 # They can cause serious problems if a builder's source tree is in a directory
2841 # whose full name contains unusual characters.
2842 if test -f "${ac_aux_dir}config.guess"; then
2843 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2844 fi
2845 if test -f "${ac_aux_dir}config.sub"; then
2846 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2847 fi
2848 if test -f "$ac_aux_dir/configure"; then
2849 ac_configure="$SHELL ${ac_aux_dir}configure"
2850 fi
2851
2852 # Check that the precious variables saved in the cache have kept the same
2853 # value.
2854 ac_cache_corrupted=false
2855 for ac_var in $ac_precious_vars; do
2856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2857 eval ac_new_set=\$ac_env_${ac_var}_set
2858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2859 eval ac_new_val=\$ac_env_${ac_var}_value
2860 case $ac_old_set,$ac_new_set in
2861 set,)
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2863 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2864 ac_cache_corrupted=: ;;
2865 ,set)
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2867 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2868 ac_cache_corrupted=: ;;
2869 ,);;
2870 *)
2871 if test "x$ac_old_val" != "x$ac_new_val"; then
2872 # differences in whitespace do not lead to failure.
2873 ac_old_val_w=`echo x $ac_old_val`
2874 ac_new_val_w=`echo x $ac_new_val`
2875 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2877 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2878 ac_cache_corrupted=:
2879 else
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2881 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2882 eval $ac_var=\$ac_old_val
2883 fi
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2885 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2887 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2888 fi;;
2889 esac
2890 # Pass precious variables to config.status.
2891 if test "$ac_new_set" = set; then
2892 case $ac_new_val in
2893 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2894 *) ac_arg=$ac_var=$ac_new_val ;;
2895 esac
2896 case " $ac_configure_args " in
2897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2898 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2899 esac
2900 fi
2901 done
2902 if $ac_cache_corrupted; then
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2906 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2907 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2908 and start over" "$LINENO" 5
2909 fi
2910 ## -------------------- ##
2911 ## Main body of script. ##
2912 ## -------------------- ##
2913
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919
2920
2921
2922 # LT Version numbers: Remember to change them just *before* a release.
2923 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
2924 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
2925 # (No interfaces changed: REVISION++)
2926 # Please remember to document interface changes in the NEWS file.
2927 LIBKSBA_LT_CURRENT=24
2928 LIBKSBA_LT_AGE=16
2929 LIBKSBA_LT_REVISION=0
2930 #-------------------
2931 # If the API is changed in an incompatible way: increment the next counter.
2932 KSBA_CONFIG_API_VERSION=1
2933
2934
2935 NEED_GPG_ERROR_VERSION=1.28
2936
2937
2938
2939
2940 am__api_version='1.16'
2941
2942
2943
2944 # Find a good install program. We prefer a C program (faster),
2945 # so one script is as good as another. But avoid the broken or
2946 # incompatible versions:
2947 # SysV /etc/install, /usr/sbin/install
2948 # SunOS /usr/etc/install
2949 # IRIX /sbin/install
2950 # AIX /bin/install
2951 # AmigaOS /C/install, which installs bootblocks on floppy discs
2952 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2953 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2954 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2955 # OS/2's system install, which has a completely different semantic
2956 # ./install, which can be erroneously created by make from ./install.sh.
2957 # Reject install programs that cannot install multiple files.
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2959 printf %s "checking for a BSD-compatible install... " >&6; }
2960 if test -z "$INSTALL"; then
2961 if test ${ac_cv_path_install+y}
2962 then :
2963 printf %s "(cached) " >&6
2964 else $as_nop
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 case $as_dir in #(((
2970 '') as_dir=./ ;;
2971 */) ;;
2972 *) as_dir=$as_dir/ ;;
2973 esac
2974 # Account for fact that we put trailing slashes in our PATH walk.
2975 case $as_dir in #((
2976 ./ | /[cC]/* | \
2977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2978 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2979 /usr/ucb/* ) ;;
2980 *)
2981 # OSF1 and SCO ODT 3.0 have their own names for install.
2982 # Don't use installbsd from OSF since it installs stuff as root
2983 # by default.
2984 for ac_prog in ginstall scoinst install; do
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2987 if test $ac_prog = install &&
2988 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2989 # AIX install. It has an incompatible calling convention.
2990 :
2991 elif test $ac_prog = install &&
2992 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2993 # program-specific install script used by HP pwplus--don't use.
2994 :
2995 else
2996 rm -rf conftest.one conftest.two conftest.dir
2997 echo one > conftest.one
2998 echo two > conftest.two
2999 mkdir conftest.dir
3000 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3001 test -s conftest.one && test -s conftest.two &&
3002 test -s conftest.dir/conftest.one &&
3003 test -s conftest.dir/conftest.two
3004 then
3005 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3006 break 3
3007 fi
3008 fi
3009 fi
3010 done
3011 done
3012 ;;
3013 esac
3014
3015 done
3016 IFS=$as_save_IFS
3017
3018 rm -rf conftest.one conftest.two conftest.dir
3019
3020 fi
3021 if test ${ac_cv_path_install+y}; then
3022 INSTALL=$ac_cv_path_install
3023 else
3024 # As a last resort, use the slow shell script. Don't cache a
3025 # value for INSTALL within a source directory, because that will
3026 # break other packages using the cache if that directory is
3027 # removed, or if the value is a relative name.
3028 INSTALL=$ac_install_sh
3029 fi
3030 fi
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3032 printf "%s\n" "$INSTALL" >&6; }
3033
3034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3035 # It thinks the first close brace ends the variable substitution.
3036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3037
3038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3039
3040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3041
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3043 printf %s "checking whether build environment is sane... " >&6; }
3044 # Reject unsafe characters in $srcdir or the absolute working directory
3045 # name. Accept space and tab only in the latter.
3046 am_lf='
3047 '
3048 case `pwd` in
3049 *[\\\"\#\$\&\'\`$am_lf]*)
3050 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3051 esac
3052 case $srcdir in
3053 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3054 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3055 esac
3056
3057 # Do 'set' in a subshell so we don't clobber the current shell's
3058 # arguments. Must try -L first in case configure is actually a
3059 # symlink; some systems play weird games with the mod time of symlinks
3060 # (eg FreeBSD returns the mod time of the symlink's containing
3061 # directory).
3062 if (
3063 am_has_slept=no
3064 for am_try in 1 2; do
3065 echo "timestamp, slept: $am_has_slept" > conftest.file
3066 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3067 if test "$*" = "X"; then
3068 # -L didn't work.
3069 set X `ls -t "$srcdir/configure" conftest.file`
3070 fi
3071 if test "$*" != "X $srcdir/configure conftest.file" \
3072 && test "$*" != "X conftest.file $srcdir/configure"; then
3073
3074 # If neither matched, then we have a broken ls. This can happen
3075 # if, for instance, CONFIG_SHELL is bash and it inherits a
3076 # broken ls alias from the environment. This has actually
3077 # happened. Such a system could not be considered "sane".
3078 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3079 alias in your environment" "$LINENO" 5
3080 fi
3081 if test "$2" = conftest.file || test $am_try -eq 2; then
3082 break
3083 fi
3084 # Just in case.
3085 sleep 1
3086 am_has_slept=yes
3087 done
3088 test "$2" = conftest.file
3089 )
3090 then
3091 # Ok.
3092 :
3093 else
3094 as_fn_error $? "newly created file is older than distributed files!
3095 Check your system clock" "$LINENO" 5
3096 fi
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 printf "%s\n" "yes" >&6; }
3099 # If we didn't sleep, we still need to ensure time stamps of config.status and
3100 # generated files are strictly newer.
3101 am_sleep_pid=
3102 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3103 ( sleep 1 ) &
3104 am_sleep_pid=$!
3105 fi
3106
3107 rm -f conftest.file
3108
3109 test "$program_prefix" != NONE &&
3110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3111 # Use a double $ so make ignores it.
3112 test "$program_suffix" != NONE &&
3113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3114 # Double any \ or $.
3115 # By default was `s,x,x', remove it if useless.
3116 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3117 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3118
3119
3120 # Expand $ac_aux_dir to an absolute path.
3121 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3122
3123
3124 if test x"${MISSING+set}" != xset; then
3125 MISSING="\${SHELL} '$am_aux_dir/missing'"
3126 fi
3127 # Use eval to expand $SHELL
3128 if eval "$MISSING --is-lightweight"; then
3129 am_missing_run="$MISSING "
3130 else
3131 am_missing_run=
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3133 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3134 fi
3135
3136 if test x"${install_sh+set}" != xset; then
3137 case $am_aux_dir in
3138 *\ * | *\ *)
3139 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3140 *)
3141 install_sh="\${SHELL} $am_aux_dir/install-sh"
3142 esac
3143 fi
3144
3145 # Installed binaries are usually stripped using 'strip' when the user
3146 # run "make install-strip". However 'strip' might not be the right
3147 # tool to use in cross-compilation environments, therefore Automake
3148 # will honor the 'STRIP' environment variable to overrule this program.
3149 if test "$cross_compiling" != no; then
3150 if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}strip; ac_word=$2
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 printf %s "checking for $ac_word... " >&6; }
3155 if test ${ac_cv_prog_STRIP+y}
3156 then :
3157 printf %s "(cached) " >&6
3158 else $as_nop
3159 if test -n "$STRIP"; then
3160 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 case $as_dir in #(((
3167 '') as_dir=./ ;;
3168 */) ;;
3169 *) as_dir=$as_dir/ ;;
3170 esac
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 STRIP=$ac_cv_prog_STRIP
3184 if test -n "$STRIP"; then
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3186 printf "%s\n" "$STRIP" >&6; }
3187 else
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 printf "%s\n" "no" >&6; }
3190 fi
3191
3192
3193 fi
3194 if test -z "$ac_cv_prog_STRIP"; then
3195 ac_ct_STRIP=$STRIP
3196 # Extract the first word of "strip", so it can be a program name with args.
3197 set dummy strip; ac_word=$2
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 printf %s "checking for $ac_word... " >&6; }
3200 if test ${ac_cv_prog_ac_ct_STRIP+y}
3201 then :
3202 printf %s "(cached) " >&6
3203 else $as_nop
3204 if test -n "$ac_ct_STRIP"; then
3205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 case $as_dir in #(((
3212 '') as_dir=./ ;;
3213 */) ;;
3214 *) as_dir=$as_dir/ ;;
3215 esac
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_ac_ct_STRIP="strip"
3219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3229 if test -n "$ac_ct_STRIP"; then
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3231 printf "%s\n" "$ac_ct_STRIP" >&6; }
3232 else
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 printf "%s\n" "no" >&6; }
3235 fi
3236
3237 if test "x$ac_ct_STRIP" = x; then
3238 STRIP=":"
3239 else
3240 case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246 STRIP=$ac_ct_STRIP
3247 fi
3248 else
3249 STRIP="$ac_cv_prog_STRIP"
3250 fi
3251
3252 fi
3253 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3254
3255
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3257 printf %s "checking for a race-free mkdir -p... " >&6; }
3258 if test -z "$MKDIR_P"; then
3259 if test ${ac_cv_path_mkdir+y}
3260 then :
3261 printf %s "(cached) " >&6
3262 else $as_nop
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3265 do
3266 IFS=$as_save_IFS
3267 case $as_dir in #(((
3268 '') as_dir=./ ;;
3269 */) ;;
3270 *) as_dir=$as_dir/ ;;
3271 esac
3272 for ac_prog in mkdir gmkdir; do
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3275 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3276 'mkdir ('*'coreutils) '* | \
3277 'BusyBox '* | \
3278 'mkdir (fileutils) '4.1*)
3279 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3280 break 3;;
3281 esac
3282 done
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288
3289 test -d ./--version && rmdir ./--version
3290 if test ${ac_cv_path_mkdir+y}; then
3291 MKDIR_P="$ac_cv_path_mkdir -p"
3292 else
3293 # As a last resort, use the slow shell script. Don't cache a
3294 # value for MKDIR_P within a source directory, because that will
3295 # break other packages using the cache if that directory is
3296 # removed, or if the value is a relative name.
3297 MKDIR_P="$ac_install_sh -d"
3298 fi
3299 fi
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3301 printf "%s\n" "$MKDIR_P" >&6; }
3302
3303 for ac_prog in gawk mawk nawk awk
3304 do
3305 # Extract the first word of "$ac_prog", so it can be a program name with args.
3306 set dummy $ac_prog; ac_word=$2
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 printf %s "checking for $ac_word... " >&6; }
3309 if test ${ac_cv_prog_AWK+y}
3310 then :
3311 printf %s "(cached) " >&6
3312 else $as_nop
3313 if test -n "$AWK"; then
3314 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 case $as_dir in #(((
3321 '') as_dir=./ ;;
3322 */) ;;
3323 *) as_dir=$as_dir/ ;;
3324 esac
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_AWK="$ac_prog"
3328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 AWK=$ac_cv_prog_AWK
3338 if test -n "$AWK"; then
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3340 printf "%s\n" "$AWK" >&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 test -n "$AWK" && break
3348 done
3349
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3351 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3352 set x ${MAKE-make}
3353 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3354 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3355 then :
3356 printf %s "(cached) " >&6
3357 else $as_nop
3358 cat >conftest.make <<\_ACEOF
3359 SHELL = /bin/sh
3360 all:
3361 @echo '@@@%%%=$(MAKE)=@@@%%%'
3362 _ACEOF
3363 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3364 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3365 *@@@%%%=?*=@@@%%%*)
3366 eval ac_cv_prog_make_${ac_make}_set=yes;;
3367 *)
3368 eval ac_cv_prog_make_${ac_make}_set=no;;
3369 esac
3370 rm -f conftest.make
3371 fi
3372 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 printf "%s\n" "yes" >&6; }
3375 SET_MAKE=
3376 else
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 printf "%s\n" "no" >&6; }
3379 SET_MAKE="MAKE=${MAKE-make}"
3380 fi
3381
3382 rm -rf .tst 2>/dev/null
3383 mkdir .tst 2>/dev/null
3384 if test -d .tst; then
3385 am__leading_dot=.
3386 else
3387 am__leading_dot=_
3388 fi
3389 rmdir .tst 2>/dev/null
3390
3391 # Check whether --enable-silent-rules was given.
3392 if test ${enable_silent_rules+y}
3393 then :
3394 enableval=$enable_silent_rules;
3395 fi
3396
3397 case $enable_silent_rules in # (((
3398 yes) AM_DEFAULT_VERBOSITY=0;;
3399 no) AM_DEFAULT_VERBOSITY=1;;
3400 *) AM_DEFAULT_VERBOSITY=1;;
3401 esac
3402 am_make=${MAKE-make}
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3404 printf %s "checking whether $am_make supports nested variables... " >&6; }
3405 if test ${am_cv_make_support_nested_variables+y}
3406 then :
3407 printf %s "(cached) " >&6
3408 else $as_nop
3409 if printf "%s\n" 'TRUE=$(BAR$(V))
3410 BAR0=false
3411 BAR1=true
3412 V=1
3413 am__doit:
3414 @$(TRUE)
3415 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3416 am_cv_make_support_nested_variables=yes
3417 else
3418 am_cv_make_support_nested_variables=no
3419 fi
3420 fi
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3422 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3423 if test $am_cv_make_support_nested_variables = yes; then
3424 AM_V='$(V)'
3425 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3426 else
3427 AM_V=$AM_DEFAULT_VERBOSITY
3428 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3429 fi
3430 AM_BACKSLASH='\'
3431
3432 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3433 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3434 # is not polluted with repeated "-I."
3435 am__isrc=' -I$(srcdir)'
3436 # test to see if srcdir already configured
3437 if test -f $srcdir/config.status; then
3438 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3439 fi
3440 fi
3441
3442 # test whether we have cygpath
3443 if test -z "$CYGPATH_W"; then
3444 if (cygpath --version) >/dev/null 2>/dev/null; then
3445 CYGPATH_W='cygpath -w'
3446 else
3447 CYGPATH_W=echo
3448 fi
3449 fi
3450
3451
3452 # Define the identity of the package.
3453 PACKAGE='libksba'
3454 VERSION='1.8.0'
3455
3456
3457 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3458
3459
3460 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3461
3462 # Some tools Automake needs.
3463
3464 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3465
3466
3467 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3468
3469
3470 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3471
3472
3473 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3474
3475
3476 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3477
3478 # For better backward compatibility. To be removed once Automake 1.9.x
3479 # dies out for good. For more background, see:
3480 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3481 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3482 mkdir_p='$(MKDIR_P)'
3483
3484 # We need awk for the "check" target (and possibly the TAP driver). The
3485 # system "awk" is bad on some platforms.
3486 # Always define AMTAR for backward compatibility. Yes, it's still used
3487 # in the wild :-( We should find a proper way to deprecate it ...
3488 AMTAR='$${TAR-tar}'
3489
3490
3491 # We'll loop over all known methods to create a tar archive until one works.
3492 _am_tools='gnutar pax cpio none'
3493
3494 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3495
3496
3497
3498
3499
3500 # Variables for tags utilities; see am/tags.am
3501 if test -z "$CTAGS"; then
3502 CTAGS=ctags
3503 fi
3504
3505 if test -z "$ETAGS"; then
3506 ETAGS=etags
3507 fi
3508
3509 if test -z "$CSCOPE"; then
3510 CSCOPE=cscope
3511 fi
3512
3513
3514
3515 # POSIX will say in a future version that running "rm -f" with no argument
3516 # is OK; and we want to be able to make that assumption in our Makefile
3517 # recipes. So use an aggressive probe to check that the usage we want is
3518 # actually supported "in the wild" to an acceptable degree.
3519 # See automake bug#10828.
3520 # To make any issue more visible, cause the running configure to be aborted
3521 # by default if the 'rm' program in use doesn't match our expectations; the
3522 # user can still override this though.
3523 if rm -f && rm -fr && rm -rf; then : OK; else
3524 cat >&2 <<'END'
3525 Oops!
3526
3527 Your 'rm' program seems unable to run without file operands specified
3528 on the command line, even when the '-f' option is present. This is contrary
3529 to the behaviour of most rm programs out there, and not conforming with
3530 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3531
3532 Please tell [email protected] about your system, including the value
3533 of your $PATH and any error possibly output before this message. This
3534 can help us improve future automake versions.
3535
3536 END
3537 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3538 echo 'Configuration will proceed anyway, since you have set the' >&2
3539 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3540 echo >&2
3541 else
3542 cat >&2 <<'END'
3543 Aborting the configuration process, to ensure you take notice of the issue.
3544
3545 You can download and install GNU coreutils to get an 'rm' implementation
3546 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3547
3548 If you want to complete the configuration process using your problematic
3549 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3550 to "yes", and re-run configure.
3551
3552 END
3553 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3554 fi
3555 fi
3556
3557 ac_config_headers="$ac_config_headers config.h"
3558
3559
3560
3561
3562 # Make sure we can run config.sub.
3563 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3564 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3565
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3567 printf %s "checking build system type... " >&6; }
3568 if test ${ac_cv_build+y}
3569 then :
3570 printf %s "(cached) " >&6
3571 else $as_nop
3572 ac_build_alias=$build_alias
3573 test "x$ac_build_alias" = x &&
3574 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3575 test "x$ac_build_alias" = x &&
3576 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3577 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3578 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3579
3580 fi
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3582 printf "%s\n" "$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3584 *-*-*) ;;
3585 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3586 esac
3587 build=$ac_cv_build
3588 ac_save_IFS=$IFS; IFS='-'
3589 set x $ac_cv_build
3590 shift
3591 build_cpu=$1
3592 build_vendor=$2
3593 shift; shift
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3596 build_os=$*
3597 IFS=$ac_save_IFS
3598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599
3600
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3602 printf %s "checking host system type... " >&6; }
3603 if test ${ac_cv_host+y}
3604 then :
3605 printf %s "(cached) " >&6
3606 else $as_nop
3607 if test "x$host_alias" = x; then
3608 ac_cv_host=$ac_cv_build
3609 else
3610 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3611 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3612 fi
3613
3614 fi
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3616 printf "%s\n" "$ac_cv_host" >&6; }
3617 case $ac_cv_host in
3618 *-*-*) ;;
3619 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3620 esac
3621 host=$ac_cv_host
3622 ac_save_IFS=$IFS; IFS='-'
3623 set x $ac_cv_host
3624 shift
3625 host_cpu=$1
3626 host_vendor=$2
3627 shift; shift
3628 # Remember, the first character of IFS is used to create $*,
3629 # except with old shells:
3630 host_os=$*
3631 IFS=$ac_save_IFS
3632 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3633
3634
3635
3636
3637
3638
3639 if test -z "$AB_PACKAGE"; then
3640 AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
3641 fi
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
3643 printf "%s\n" "$as_me: autobuild project... $AB_PACKAGE" >&6;}
3644
3645 if test -z "$AB_VERSION"; then
3646 AB_VERSION=${PACKAGE_VERSION:-$VERSION}
3647 fi
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
3649 printf "%s\n" "$as_me: autobuild revision... $AB_VERSION" >&6;}
3650
3651 hostname=`hostname`
3652 if test "$hostname"; then
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3654 printf "%s\n" "$as_me: autobuild hostname... $hostname" >&6;}
3655 fi
3656
3657
3658
3659 date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
3660 if test "$?" != 0; then
3661 date=`date`
3662 fi
3663 if test "$date"; then
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3665 printf "%s\n" "$as_me: autobuild timestamp... $date" >&6;}
3666 fi
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678 DEPDIR="${am__leading_dot}deps"
3679
3680 ac_config_commands="$ac_config_commands depfiles"
3681
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3683 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3684 cat > confinc.mk << 'END'
3685 am__doit:
3686 @echo this is the am__doit target >confinc.out
3687 .PHONY: am__doit
3688 END
3689 am__include="#"
3690 am__quote=
3691 # BSD make does it like this.
3692 echo '.include "confinc.mk" # ignored' > confmf.BSD
3693 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3694 echo 'include confinc.mk # ignored' > confmf.GNU
3695 _am_result=no
3696 for s in GNU BSD; do
3697 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3698 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }
3702 case $?:`cat confinc.out 2>/dev/null` in #(
3703 '0:this is the am__doit target') :
3704 case $s in #(
3705 BSD) :
3706 am__include='.include' am__quote='"' ;; #(
3707 *) :
3708 am__include='include' am__quote='' ;;
3709 esac ;; #(
3710 *) :
3711 ;;
3712 esac
3713 if test "$am__include" != "#"; then
3714 _am_result="yes ($s style)"
3715 break
3716 fi
3717 done
3718 rm -f confinc.* confmf.*
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3720 printf "%s\n" "${_am_result}" >&6; }
3721
3722 # Check whether --enable-dependency-tracking was given.
3723 if test ${enable_dependency_tracking+y}
3724 then :
3725 enableval=$enable_dependency_tracking;
3726 fi
3727
3728 if test "x$enable_dependency_tracking" != xno; then
3729 am_depcomp="$ac_aux_dir/depcomp"
3730 AMDEPBACKSLASH='\'
3731 am__nodep='_no'
3732 fi
3733 if test "x$enable_dependency_tracking" != xno; then
3734 AMDEP_TRUE=
3735 AMDEP_FALSE='#'
3736 else
3737 AMDEP_TRUE='#'
3738 AMDEP_FALSE=
3739 fi
3740
3741
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 if test -n "$ac_tool_prefix"; then
3748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 printf %s "checking for $ac_word... " >&6; }
3752 if test ${ac_cv_prog_CC+y}
3753 then :
3754 printf %s "(cached) " >&6
3755 else $as_nop
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 case $as_dir in #(((
3764 '') as_dir=./ ;;
3765 */) ;;
3766 *) as_dir=$as_dir/ ;;
3767 esac
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 fi
3779 fi
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 printf "%s\n" "$CC" >&6; }
3784 else
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 printf "%s\n" "no" >&6; }
3787 fi
3788
3789
3790 fi
3791 if test -z "$ac_cv_prog_CC"; then
3792 ac_ct_CC=$CC
3793 # Extract the first word of "gcc", so it can be a program name with args.
3794 set dummy gcc; ac_word=$2
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 printf %s "checking for $ac_word... " >&6; }
3797 if test ${ac_cv_prog_ac_ct_CC+y}
3798 then :
3799 printf %s "(cached) " >&6
3800 else $as_nop
3801 if test -n "$ac_ct_CC"; then
3802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807 IFS=$as_save_IFS
3808 case $as_dir in #(((
3809 '') as_dir=./ ;;
3810 */) ;;
3811 *) as_dir=$as_dir/ ;;
3812 esac
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_ac_ct_CC="gcc"
3816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819 done
3820 done
3821 IFS=$as_save_IFS
3822
3823 fi
3824 fi
3825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3826 if test -n "$ac_ct_CC"; then
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3828 printf "%s\n" "$ac_ct_CC" >&6; }
3829 else
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 printf "%s\n" "no" >&6; }
3832 fi
3833
3834 if test "x$ac_ct_CC" = x; then
3835 CC=""
3836 else
3837 case $cross_compiling:$ac_tool_warned in
3838 yes:)
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3840 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3841 ac_tool_warned=yes ;;
3842 esac
3843 CC=$ac_ct_CC
3844 fi
3845 else
3846 CC="$ac_cv_prog_CC"
3847 fi
3848
3849 if test -z "$CC"; then
3850 if test -n "$ac_tool_prefix"; then
3851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3852 set dummy ${ac_tool_prefix}cc; ac_word=$2
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 printf %s "checking for $ac_word... " >&6; }
3855 if test ${ac_cv_prog_CC+y}
3856 then :
3857 printf %s "(cached) " >&6
3858 else $as_nop
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865 IFS=$as_save_IFS
3866 case $as_dir in #(((
3867 '') as_dir=./ ;;
3868 */) ;;
3869 *) as_dir=$as_dir/ ;;
3870 esac
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3873 ac_cv_prog_CC="${ac_tool_prefix}cc"
3874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3875 break 2
3876 fi
3877 done
3878 done
3879 IFS=$as_save_IFS
3880
3881 fi
3882 fi
3883 CC=$ac_cv_prog_CC
3884 if test -n "$CC"; then
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3886 printf "%s\n" "$CC" >&6; }
3887 else
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 printf "%s\n" "no" >&6; }
3890 fi
3891
3892
3893 fi
3894 fi
3895 if test -z "$CC"; then
3896 # Extract the first word of "cc", so it can be a program name with args.
3897 set dummy cc; ac_word=$2
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 printf %s "checking for $ac_word... " >&6; }
3900 if test ${ac_cv_prog_CC+y}
3901 then :
3902 printf %s "(cached) " >&6
3903 else $as_nop
3904 if test -n "$CC"; then
3905 ac_cv_prog_CC="$CC" # Let the user override the test.
3906 else
3907 ac_prog_rejected=no
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911 IFS=$as_save_IFS
3912 case $as_dir in #(((
3913 '') as_dir=./ ;;
3914 */) ;;
3915 *) as_dir=$as_dir/ ;;
3916 esac
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3919 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3920 ac_prog_rejected=yes
3921 continue
3922 fi
3923 ac_cv_prog_CC="cc"
3924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927 done
3928 done
3929 IFS=$as_save_IFS
3930
3931 if test $ac_prog_rejected = yes; then
3932 # We found a bogon in the path, so make sure we never use it.
3933 set dummy $ac_cv_prog_CC
3934 shift
3935 if test $# != 0; then
3936 # We chose a different compiler from the bogus one.
3937 # However, it has the same basename, so the bogon will be chosen
3938 # first if we set CC to just the basename; use the full file name.
3939 shift
3940 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3941 fi
3942 fi
3943 fi
3944 fi
3945 CC=$ac_cv_prog_CC
3946 if test -n "$CC"; then
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3948 printf "%s\n" "$CC" >&6; }
3949 else
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 printf "%s\n" "no" >&6; }
3952 fi
3953
3954
3955 fi
3956 if test -z "$CC"; then
3957 if test -n "$ac_tool_prefix"; then
3958 for ac_prog in cl.exe
3959 do
3960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 printf %s "checking for $ac_word... " >&6; }
3964 if test ${ac_cv_prog_CC+y}
3965 then :
3966 printf %s "(cached) " >&6
3967 else $as_nop
3968 if test -n "$CC"; then
3969 ac_cv_prog_CC="$CC" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974 IFS=$as_save_IFS
3975 case $as_dir in #(((
3976 '') as_dir=./ ;;
3977 */) ;;
3978 *) as_dir=$as_dir/ ;;
3979 esac
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 fi
3991 fi
3992 CC=$ac_cv_prog_CC
3993 if test -n "$CC"; then
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995 printf "%s\n" "$CC" >&6; }
3996 else
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 printf "%s\n" "no" >&6; }
3999 fi
4000
4001
4002 test -n "$CC" && break
4003 done
4004 fi
4005 if test -z "$CC"; then
4006 ac_ct_CC=$CC
4007 for ac_prog in cl.exe
4008 do
4009 # Extract the first word of "$ac_prog", so it can be a program name with args.
4010 set dummy $ac_prog; ac_word=$2
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012 printf %s "checking for $ac_word... " >&6; }
4013 if test ${ac_cv_prog_ac_ct_CC+y}
4014 then :
4015 printf %s "(cached) " >&6
4016 else $as_nop
4017 if test -n "$ac_ct_CC"; then
4018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4019 else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023 IFS=$as_save_IFS
4024 case $as_dir in #(((
4025 '') as_dir=./ ;;
4026 */) ;;
4027 *) as_dir=$as_dir/ ;;
4028 esac
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_CC="$ac_prog"
4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037 IFS=$as_save_IFS
4038
4039 fi
4040 fi
4041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4042 if test -n "$ac_ct_CC"; then
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4044 printf "%s\n" "$ac_ct_CC" >&6; }
4045 else
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 printf "%s\n" "no" >&6; }
4048 fi
4049
4050
4051 test -n "$ac_ct_CC" && break
4052 done
4053
4054 if test "x$ac_ct_CC" = x; then
4055 CC=""
4056 else
4057 case $cross_compiling:$ac_tool_warned in
4058 yes:)
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061 ac_tool_warned=yes ;;
4062 esac
4063 CC=$ac_ct_CC
4064 fi
4065 fi
4066
4067 fi
4068 if test -z "$CC"; then
4069 if test -n "$ac_tool_prefix"; then
4070 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4071 set dummy ${ac_tool_prefix}clang; ac_word=$2
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 printf %s "checking for $ac_word... " >&6; }
4074 if test ${ac_cv_prog_CC+y}
4075 then :
4076 printf %s "(cached) " >&6
4077 else $as_nop
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084 IFS=$as_save_IFS
4085 case $as_dir in #(((
4086 '') as_dir=./ ;;
4087 */) ;;
4088 *) as_dir=$as_dir/ ;;
4089 esac
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_CC="${ac_tool_prefix}clang"
4093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4094 break 2
4095 fi
4096 done
4097 done
4098 IFS=$as_save_IFS
4099
4100 fi
4101 fi
4102 CC=$ac_cv_prog_CC
4103 if test -n "$CC"; then
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4105 printf "%s\n" "$CC" >&6; }
4106 else
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 printf "%s\n" "no" >&6; }
4109 fi
4110
4111
4112 fi
4113 if test -z "$ac_cv_prog_CC"; then
4114 ac_ct_CC=$CC
4115 # Extract the first word of "clang", so it can be a program name with args.
4116 set dummy clang; ac_word=$2
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 printf %s "checking for $ac_word... " >&6; }
4119 if test ${ac_cv_prog_ac_ct_CC+y}
4120 then :
4121 printf %s "(cached) " >&6
4122 else $as_nop
4123 if test -n "$ac_ct_CC"; then
4124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129 IFS=$as_save_IFS
4130 case $as_dir in #(((
4131 '') as_dir=./ ;;
4132 */) ;;
4133 *) as_dir=$as_dir/ ;;
4134 esac
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_CC="clang"
4138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4139 break 2
4140 fi
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 fi
4146 fi
4147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4148 if test -n "$ac_ct_CC"; then
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4150 printf "%s\n" "$ac_ct_CC" >&6; }
4151 else
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 printf "%s\n" "no" >&6; }
4154 fi
4155
4156 if test "x$ac_ct_CC" = x; then
4157 CC=""
4158 else
4159 case $cross_compiling:$ac_tool_warned in
4160 yes:)
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163 ac_tool_warned=yes ;;
4164 esac
4165 CC=$ac_ct_CC
4166 fi
4167 else
4168 CC="$ac_cv_prog_CC"
4169 fi
4170
4171 fi
4172
4173
4174 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4176 as_fn_error $? "no acceptable C compiler found in \$PATH
4177 See \`config.log' for more details" "$LINENO" 5; }
4178
4179 # Provide some information about the compiler.
4180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4181 set X $ac_compile
4182 ac_compiler=$2
4183 for ac_option in --version -v -V -qversion -version; do
4184 { { ac_try="$ac_compiler $ac_option >&5"
4185 case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188 esac
4189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190 printf "%s\n" "$ac_try_echo"; } >&5
4191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4192 ac_status=$?
4193 if test -s conftest.err; then
4194 sed '10a\
4195 ... rest of stderr output deleted ...
4196 10q' conftest.err >conftest.er1
4197 cat conftest.er1 >&5
4198 fi
4199 rm -f conftest.er1 conftest.err
4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }
4202 done
4203
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206
4207 int
4208 main (void)
4209 {
4210
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 ac_clean_files_save=$ac_clean_files
4216 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4217 # Try to create an executable without -o first, disregard a.out.
4218 # It will help us diagnose broken compilers, and finding out an intuition
4219 # of exeext.
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4221 printf %s "checking whether the C compiler works... " >&6; }
4222 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4223
4224 # The possible output files:
4225 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4226
4227 ac_rmfiles=
4228 for ac_file in $ac_files
4229 do
4230 case $ac_file in
4231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4232 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4233 esac
4234 done
4235 rm -f $ac_rmfiles
4236
4237 if { { ac_try="$ac_link_default"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 printf "%s\n" "$ac_try_echo"; } >&5
4244 (eval "$ac_link_default") 2>&5
4245 ac_status=$?
4246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }
4248 then :
4249 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4250 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4251 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4252 # so that the user can short-circuit this test for compilers unknown to
4253 # Autoconf.
4254 for ac_file in $ac_files ''
4255 do
4256 test -f "$ac_file" || continue
4257 case $ac_file in
4258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4259 ;;
4260 [ab].out )
4261 # We found the default executable, but exeext='' is most
4262 # certainly right.
4263 break;;
4264 *.* )
4265 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4266 then :; else
4267 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4268 fi
4269 # We set ac_cv_exeext here because the later test for it is not
4270 # safe: cross compilers may not add the suffix if given an `-o'
4271 # argument, so we may need to know it at that point already.
4272 # Even if this section looks crufty: it has the advantage of
4273 # actually working.
4274 break;;
4275 * )
4276 break;;
4277 esac
4278 done
4279 test "$ac_cv_exeext" = no && ac_cv_exeext=
4280
4281 else $as_nop
4282 ac_file=''
4283 fi
4284 if test -z "$ac_file"
4285 then :
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 printf "%s\n" "no" >&6; }
4288 printf "%s\n" "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error 77 "C compiler cannot create executables
4294 See \`config.log' for more details" "$LINENO" 5; }
4295 else $as_nop
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4297 printf "%s\n" "yes" >&6; }
4298 fi
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4300 printf %s "checking for C compiler default output file name... " >&6; }
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4302 printf "%s\n" "$ac_file" >&6; }
4303 ac_exeext=$ac_cv_exeext
4304
4305 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4306 ac_clean_files=$ac_clean_files_save
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4308 printf %s "checking for suffix of executables... " >&6; }
4309 if { { ac_try="$ac_link"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 printf "%s\n" "$ac_try_echo"; } >&5
4316 (eval "$ac_link") 2>&5
4317 ac_status=$?
4318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }
4320 then :
4321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4323 # work properly (i.e., refer to `conftest.exe'), while it won't with
4324 # `rm'.
4325 for ac_file in conftest.exe conftest conftest.*; do
4326 test -f "$ac_file" || continue
4327 case $ac_file in
4328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4330 break;;
4331 * ) break;;
4332 esac
4333 done
4334 else $as_nop
4335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4338 See \`config.log' for more details" "$LINENO" 5; }
4339 fi
4340 rm -f conftest conftest$ac_cv_exeext
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4342 printf "%s\n" "$ac_cv_exeext" >&6; }
4343
4344 rm -f conftest.$ac_ext
4345 EXEEXT=$ac_cv_exeext
4346 ac_exeext=$EXEEXT
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <stdio.h>
4350 int
4351 main (void)
4352 {
4353 FILE *f = fopen ("conftest.out", "w");
4354 return ferror (f) || fclose (f) != 0;
4355
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 ac_clean_files="$ac_clean_files conftest.out"
4361 # Check that the compiler produces executables we can run. If not, either
4362 # the compiler is broken, or we cross compile.
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4364 printf %s "checking whether we are cross compiling... " >&6; }
4365 if test "$cross_compiling" != yes; then
4366 { { ac_try="$ac_link"
4367 case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 printf "%s\n" "$ac_try_echo"; } >&5
4373 (eval "$ac_link") 2>&5
4374 ac_status=$?
4375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }
4377 if { ac_try='./conftest$ac_cv_exeext'
4378 { { case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 printf "%s\n" "$ac_try_echo"; } >&5
4384 (eval "$ac_try") 2>&5
4385 ac_status=$?
4386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }; }; then
4388 cross_compiling=no
4389 else
4390 if test "$cross_compiling" = maybe; then
4391 cross_compiling=yes
4392 else
4393 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4395 as_fn_error 77 "cannot run C compiled programs.
4396 If you meant to cross compile, use \`--host'.
4397 See \`config.log' for more details" "$LINENO" 5; }
4398 fi
4399 fi
4400 fi
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4402 printf "%s\n" "$cross_compiling" >&6; }
4403
4404 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4405 ac_clean_files=$ac_clean_files_save
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4407 printf %s "checking for suffix of object files... " >&6; }
4408 if test ${ac_cv_objext+y}
4409 then :
4410 printf %s "(cached) " >&6
4411 else $as_nop
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414
4415 int
4416 main (void)
4417 {
4418
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.o conftest.obj
4424 if { { ac_try="$ac_compile"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 printf "%s\n" "$ac_try_echo"; } >&5
4431 (eval "$ac_compile") 2>&5
4432 ac_status=$?
4433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }
4435 then :
4436 for ac_file in conftest.o conftest.obj conftest.*; do
4437 test -f "$ac_file" || continue;
4438 case $ac_file in
4439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4440 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4441 break;;
4442 esac
4443 done
4444 else $as_nop
4445 printf "%s\n" "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error $? "cannot compute suffix of object files: cannot compile
4451 See \`config.log' for more details" "$LINENO" 5; }
4452 fi
4453 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4454 fi
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4456 printf "%s\n" "$ac_cv_objext" >&6; }
4457 OBJEXT=$ac_cv_objext
4458 ac_objext=$OBJEXT
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4460 printf %s "checking whether the compiler supports GNU C... " >&6; }
4461 if test ${ac_cv_c_compiler_gnu+y}
4462 then :
4463 printf %s "(cached) " >&6
4464 else $as_nop
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467
4468 int
4469 main (void)
4470 {
4471 #ifndef __GNUC__
4472 choke me
4473 #endif
4474
4475 ;
4476 return 0;
4477 }
4478 _ACEOF
4479 if ac_fn_c_try_compile "$LINENO"
4480 then :
4481 ac_compiler_gnu=yes
4482 else $as_nop
4483 ac_compiler_gnu=no
4484 fi
4485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4486 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4487
4488 fi
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4490 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492
4493 if test $ac_compiler_gnu = yes; then
4494 GCC=yes
4495 else
4496 GCC=
4497 fi
4498 ac_test_CFLAGS=${CFLAGS+y}
4499 ac_save_CFLAGS=$CFLAGS
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4501 printf %s "checking whether $CC accepts -g... " >&6; }
4502 if test ${ac_cv_prog_cc_g+y}
4503 then :
4504 printf %s "(cached) " >&6
4505 else $as_nop
4506 ac_save_c_werror_flag=$ac_c_werror_flag
4507 ac_c_werror_flag=yes
4508 ac_cv_prog_cc_g=no
4509 CFLAGS="-g"
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512
4513 int
4514 main (void)
4515 {
4516
4517 ;
4518 return 0;
4519 }
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"
4522 then :
4523 ac_cv_prog_cc_g=yes
4524 else $as_nop
4525 CFLAGS=""
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528
4529 int
4530 main (void)
4531 {
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"
4538 then :
4539
4540 else $as_nop
4541 ac_c_werror_flag=$ac_save_c_werror_flag
4542 CFLAGS="-g"
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545
4546 int
4547 main (void)
4548 {
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_compile "$LINENO"
4555 then :
4556 ac_cv_prog_cc_g=yes
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4563 ac_c_werror_flag=$ac_save_c_werror_flag
4564 fi
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4566 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4567 if test $ac_test_CFLAGS; then
4568 CFLAGS=$ac_save_CFLAGS
4569 elif test $ac_cv_prog_cc_g = yes; then
4570 if test "$GCC" = yes; then
4571 CFLAGS="-g -O2"
4572 else
4573 CFLAGS="-g"
4574 fi
4575 else
4576 if test "$GCC" = yes; then
4577 CFLAGS="-O2"
4578 else
4579 CFLAGS=
4580 fi
4581 fi
4582 ac_prog_cc_stdc=no
4583 if test x$ac_prog_cc_stdc = xno
4584 then :
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4586 printf %s "checking for $CC option to enable C11 features... " >&6; }
4587 if test ${ac_cv_prog_cc_c11+y}
4588 then :
4589 printf %s "(cached) " >&6
4590 else $as_nop
4591 ac_cv_prog_cc_c11=no
4592 ac_save_CC=$CC
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595 $ac_c_conftest_c11_program
4596 _ACEOF
4597 for ac_arg in '' -std=gnu11
4598 do
4599 CC="$ac_save_CC $ac_arg"
4600 if ac_fn_c_try_compile "$LINENO"
4601 then :
4602 ac_cv_prog_cc_c11=$ac_arg
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.beam
4605 test "x$ac_cv_prog_cc_c11" != "xno" && break
4606 done
4607 rm -f conftest.$ac_ext
4608 CC=$ac_save_CC
4609 fi
4610
4611 if test "x$ac_cv_prog_cc_c11" = xno
4612 then :
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4614 printf "%s\n" "unsupported" >&6; }
4615 else $as_nop
4616 if test "x$ac_cv_prog_cc_c11" = x
4617 then :
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4619 printf "%s\n" "none needed" >&6; }
4620 else $as_nop
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4622 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4623 CC="$CC $ac_cv_prog_cc_c11"
4624 fi
4625 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4626 ac_prog_cc_stdc=c11
4627 fi
4628 fi
4629 if test x$ac_prog_cc_stdc = xno
4630 then :
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4632 printf %s "checking for $CC option to enable C99 features... " >&6; }
4633 if test ${ac_cv_prog_cc_c99+y}
4634 then :
4635 printf %s "(cached) " >&6
4636 else $as_nop
4637 ac_cv_prog_cc_c99=no
4638 ac_save_CC=$CC
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641 $ac_c_conftest_c99_program
4642 _ACEOF
4643 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4644 do
4645 CC="$ac_save_CC $ac_arg"
4646 if ac_fn_c_try_compile "$LINENO"
4647 then :
4648 ac_cv_prog_cc_c99=$ac_arg
4649 fi
4650 rm -f core conftest.err conftest.$ac_objext conftest.beam
4651 test "x$ac_cv_prog_cc_c99" != "xno" && break
4652 done
4653 rm -f conftest.$ac_ext
4654 CC=$ac_save_CC
4655 fi
4656
4657 if test "x$ac_cv_prog_cc_c99" = xno
4658 then :
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4660 printf "%s\n" "unsupported" >&6; }
4661 else $as_nop
4662 if test "x$ac_cv_prog_cc_c99" = x
4663 then :
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4665 printf "%s\n" "none needed" >&6; }
4666 else $as_nop
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4668 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4669 CC="$CC $ac_cv_prog_cc_c99"
4670 fi
4671 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4672 ac_prog_cc_stdc=c99
4673 fi
4674 fi
4675 if test x$ac_prog_cc_stdc = xno
4676 then :
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4678 printf %s "checking for $CC option to enable C89 features... " >&6; }
4679 if test ${ac_cv_prog_cc_c89+y}
4680 then :
4681 printf %s "(cached) " >&6
4682 else $as_nop
4683 ac_cv_prog_cc_c89=no
4684 ac_save_CC=$CC
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 $ac_c_conftest_c89_program
4688 _ACEOF
4689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4690 do
4691 CC="$ac_save_CC $ac_arg"
4692 if ac_fn_c_try_compile "$LINENO"
4693 then :
4694 ac_cv_prog_cc_c89=$ac_arg
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext conftest.beam
4697 test "x$ac_cv_prog_cc_c89" != "xno" && break
4698 done
4699 rm -f conftest.$ac_ext
4700 CC=$ac_save_CC
4701 fi
4702
4703 if test "x$ac_cv_prog_cc_c89" = xno
4704 then :
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4706 printf "%s\n" "unsupported" >&6; }
4707 else $as_nop
4708 if test "x$ac_cv_prog_cc_c89" = x
4709 then :
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4711 printf "%s\n" "none needed" >&6; }
4712 else $as_nop
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4714 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4715 CC="$CC $ac_cv_prog_cc_c89"
4716 fi
4717 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4718 ac_prog_cc_stdc=c89
4719 fi
4720 fi
4721
4722 ac_ext=c
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727
4728
4729 ac_ext=c
4730 ac_cpp='$CPP $CPPFLAGS'
4731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4735 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4736 if test ${am_cv_prog_cc_c_o+y}
4737 then :
4738 printf %s "(cached) " >&6
4739 else $as_nop
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742
4743 int
4744 main (void)
4745 {
4746
4747 ;
4748 return 0;
4749 }
4750 _ACEOF
4751 # Make sure it works both with $CC and with simple cc.
4752 # Following AC_PROG_CC_C_O, we do the test twice because some
4753 # compilers refuse to overwrite an existing .o file with -o,
4754 # though they will create one.
4755 am_cv_prog_cc_c_o=yes
4756 for am_i in 1 2; do
4757 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4758 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } \
4762 && test -f conftest2.$ac_objext; then
4763 : OK
4764 else
4765 am_cv_prog_cc_c_o=no
4766 break
4767 fi
4768 done
4769 rm -f core conftest*
4770 unset am_i
4771 fi
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4773 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4774 if test "$am_cv_prog_cc_c_o" != yes; then
4775 # Losing compiler, so override with the script.
4776 # FIXME: It is wrong to rewrite CC.
4777 # But if we don't then we get into trouble of one sort or another.
4778 # A longer-term fix would be to have automake use am__CC in this case,
4779 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4780 CC="$am_aux_dir/compile $CC"
4781 fi
4782 ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787
4788
4789 depcc="$CC" am_compiler_list=
4790
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4792 printf %s "checking dependency style of $depcc... " >&6; }
4793 if test ${am_cv_CC_dependencies_compiler_type+y}
4794 then :
4795 printf %s "(cached) " >&6
4796 else $as_nop
4797 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4798 # We make a subdir and do the tests there. Otherwise we can end up
4799 # making bogus files that we don't know about and never remove. For
4800 # instance it was reported that on HP-UX the gcc test will end up
4801 # making a dummy file named 'D' -- because '-MD' means "put the output
4802 # in D".
4803 rm -rf conftest.dir
4804 mkdir conftest.dir
4805 # Copy depcomp to subdir because otherwise we won't find it if we're
4806 # using a relative directory.
4807 cp "$am_depcomp" conftest.dir
4808 cd conftest.dir
4809 # We will build objects and dependencies in a subdirectory because
4810 # it helps to detect inapplicable dependency modes. For instance
4811 # both Tru64's cc and ICC support -MD to output dependencies as a
4812 # side effect of compilation, but ICC will put the dependencies in
4813 # the current directory while Tru64 will put them in the object
4814 # directory.
4815 mkdir sub
4816
4817 am_cv_CC_dependencies_compiler_type=none
4818 if test "$am_compiler_list" = ""; then
4819 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4820 fi
4821 am__universal=false
4822 case " $depcc " in #(
4823 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4824 esac
4825
4826 for depmode in $am_compiler_list; do
4827 # Setup a source with many dependencies, because some compilers
4828 # like to wrap large dependency lists on column 80 (with \), and
4829 # we should not choose a depcomp mode which is confused by this.
4830 #
4831 # We need to recreate these files for each test, as the compiler may
4832 # overwrite some of them when testing with obscure command lines.
4833 # This happens at least with the AIX C compiler.
4834 : > sub/conftest.c
4835 for i in 1 2 3 4 5 6; do
4836 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4837 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4838 # Solaris 10 /bin/sh.
4839 echo '/* dummy */' > sub/conftst$i.h
4840 done
4841 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4842
4843 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4844 # mode. It turns out that the SunPro C++ compiler does not properly
4845 # handle '-M -o', and we need to detect this. Also, some Intel
4846 # versions had trouble with output in subdirs.
4847 am__obj=sub/conftest.${OBJEXT-o}
4848 am__minus_obj="-o $am__obj"
4849 case $depmode in
4850 gcc)
4851 # This depmode causes a compiler race in universal mode.
4852 test "$am__universal" = false || continue
4853 ;;
4854 nosideeffect)
4855 # After this tag, mechanisms are not by side-effect, so they'll
4856 # only be used when explicitly requested.
4857 if test "x$enable_dependency_tracking" = xyes; then
4858 continue
4859 else
4860 break
4861 fi
4862 ;;
4863 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4864 # This compiler won't grok '-c -o', but also, the minuso test has
4865 # not run yet. These depmodes are late enough in the game, and
4866 # so weak that their functioning should not be impacted.
4867 am__obj=conftest.${OBJEXT-o}
4868 am__minus_obj=
4869 ;;
4870 none) break ;;
4871 esac
4872 if depmode=$depmode \
4873 source=sub/conftest.c object=$am__obj \
4874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4875 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4876 >/dev/null 2>conftest.err &&
4877 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4879 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4881 # icc doesn't choke on unknown options, it will just issue warnings
4882 # or remarks (even with -Werror). So we grep stderr for any message
4883 # that says an option was ignored or not supported.
4884 # When given -MP, icc 7.0 and 7.1 complain thusly:
4885 # icc: Command line warning: ignoring option '-M'; no argument required
4886 # The diagnosis changed in icc 8.0:
4887 # icc: Command line remark: option '-MP' not supported
4888 if (grep 'ignoring option' conftest.err ||
4889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4890 am_cv_CC_dependencies_compiler_type=$depmode
4891 break
4892 fi
4893 fi
4894 done
4895
4896 cd ..
4897 rm -rf conftest.dir
4898 else
4899 am_cv_CC_dependencies_compiler_type=none
4900 fi
4901
4902 fi
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4904 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4905 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4906
4907 if
4908 test "x$enable_dependency_tracking" != xno \
4909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4910 am__fastdepCC_TRUE=
4911 am__fastdepCC_FALSE='#'
4912 else
4913 am__fastdepCC_TRUE='#'
4914 am__fastdepCC_FALSE=
4915 fi
4916
4917
4918
4919 ac_header= ac_cache=
4920 for ac_item in $ac_header_c_list
4921 do
4922 if test $ac_cache; then
4923 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4924 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4925 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4926 fi
4927 ac_header= ac_cache=
4928 elif test $ac_header; then
4929 ac_cache=$ac_item
4930 else
4931 ac_header=$ac_item
4932 fi
4933 done
4934
4935
4936
4937
4938
4939
4940
4941
4942 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4943 then :
4944
4945 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4946
4947 fi
4948
4949
4950
4951
4952
4953
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4955 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4956 if test ${ac_cv_safe_to_define___extensions__+y}
4957 then :
4958 printf %s "(cached) " >&6
4959 else $as_nop
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962
4963 # define __EXTENSIONS__ 1
4964 $ac_includes_default
4965 int
4966 main (void)
4967 {
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"
4974 then :
4975 ac_cv_safe_to_define___extensions__=yes
4976 else $as_nop
4977 ac_cv_safe_to_define___extensions__=no
4978 fi
4979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4980 fi
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4982 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4983
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4985 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4986 if test ${ac_cv_should_define__xopen_source+y}
4987 then :
4988 printf %s "(cached) " >&6
4989 else $as_nop
4990 ac_cv_should_define__xopen_source=no
4991 if test $ac_cv_header_wchar_h = yes
4992 then :
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995
4996 #include <wchar.h>
4997 mbstate_t x;
4998 int
4999 main (void)
5000 {
5001
5002 ;
5003 return 0;
5004 }
5005 _ACEOF
5006 if ac_fn_c_try_compile "$LINENO"
5007 then :
5008
5009 else $as_nop
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012
5013 #define _XOPEN_SOURCE 500
5014 #include <wchar.h>
5015 mbstate_t x;
5016 int
5017 main (void)
5018 {
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_compile "$LINENO"
5025 then :
5026 ac_cv_should_define__xopen_source=yes
5027 fi
5028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5031 fi
5032 fi
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5034 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5035
5036 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5037
5038 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5039
5040 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5041
5042 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5043
5044 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5045
5046 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5047
5048 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5049
5050 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5051
5052 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5053
5054 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5055
5056 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5057
5058 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5059
5060 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5061
5062 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5063
5064 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5065
5066 if test $ac_cv_header_minix_config_h = yes
5067 then :
5068 MINIX=yes
5069 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5070
5071 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5072
5073 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5074
5075 else $as_nop
5076 MINIX=
5077 fi
5078 if test $ac_cv_safe_to_define___extensions__ = yes
5079 then :
5080 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5081
5082 fi
5083 if test $ac_cv_should_define__xopen_source = yes
5084 then :
5085 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5086
5087 fi
5088
5089
5090
5091 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5092 case $host in
5093 *-*-linux*)
5094 if test -n "$LD_LIBRARY_PATH"; then
5095 saved_LDFLAGS="$LDFLAGS"
5096 LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5097 LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5099 printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102
5103 int main (void) { return 0; }
5104
5105 _ACEOF
5106 if ac_fn_c_try_link "$LINENO"
5107 then :
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5109 printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5110 else $as_nop
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 printf "%s\n" "no" >&6; }
5113 LDADD_FOR_TESTS_KLUDGE=""
5114
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5117 conftest$ac_exeext conftest.$ac_ext
5118 LDFLAGS="$saved_LDFLAGS"
5119 fi
5120 ;;
5121 esac
5122
5123
5124
5125 case `pwd` in
5126 *\ * | *\ *)
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5128 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5129 esac
5130
5131
5132
5133 macro_version='2.4.7'
5134 macro_revision='2.4.7'
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 ltmain=$ac_aux_dir/ltmain.sh
5150
5151 # Backslashify metacharacters that are still active within
5152 # double-quoted strings.
5153 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5154
5155 # Same as above, but do not quote variable references.
5156 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5157
5158 # Sed substitution to delay expansion of an escaped shell variable in a
5159 # double_quote_subst'ed string.
5160 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5161
5162 # Sed substitution to delay expansion of an escaped single quote.
5163 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5164
5165 # Sed substitution to avoid accidental globbing in evaled expressions
5166 no_glob_subst='s/\*/\\\*/g'
5167
5168 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5169 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5170 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5171
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5173 printf %s "checking how to print strings... " >&6; }
5174 # Test print first, because it will be a builtin if present.
5175 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5176 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5177 ECHO='print -r --'
5178 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5179 ECHO='printf %s\n'
5180 else
5181 # Use this function as a fallback that always works.
5182 func_fallback_echo ()
5183 {
5184 eval 'cat <<_LTECHO_EOF
5185 $1
5186 _LTECHO_EOF'
5187 }
5188 ECHO='func_fallback_echo'
5189 fi
5190
5191 # func_echo_all arg...
5192 # Invoke $ECHO with all args, space-separated.
5193 func_echo_all ()
5194 {
5195 $ECHO ""
5196 }
5197
5198 case $ECHO in
5199 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5200 printf "%s\n" "printf" >&6; } ;;
5201 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5202 printf "%s\n" "print -r" >&6; } ;;
5203 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5204 printf "%s\n" "cat" >&6; } ;;
5205 esac
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5221 printf %s "checking for a sed that does not truncate output... " >&6; }
5222 if test ${ac_cv_path_SED+y}
5223 then :
5224 printf %s "(cached) " >&6
5225 else $as_nop
5226 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5227 for ac_i in 1 2 3 4 5 6 7; do
5228 ac_script="$ac_script$as_nl$ac_script"
5229 done
5230 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5231 { ac_script=; unset ac_script;}
5232 if test -z "$SED"; then
5233 ac_path_SED_found=false
5234 # Loop through the user's path and test for each of PROGNAME-LIST
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238 IFS=$as_save_IFS
5239 case $as_dir in #(((
5240 '') as_dir=./ ;;
5241 */) ;;
5242 *) as_dir=$as_dir/ ;;
5243 esac
5244 for ac_prog in sed gsed
5245 do
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5248 as_fn_executable_p "$ac_path_SED" || continue
5249 # Check for GNU ac_path_SED and select it if it is found.
5250 # Check for GNU $ac_path_SED
5251 case `"$ac_path_SED" --version 2>&1` in
5252 *GNU*)
5253 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5254 *)
5255 ac_count=0
5256 printf %s 0123456789 >"conftest.in"
5257 while :
5258 do
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 printf "%s\n" '' >> "conftest.nl"
5263 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 as_fn_arith $ac_count + 1 && ac_count=$as_val
5266 if test $ac_count -gt ${ac_path_SED_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_SED="$ac_path_SED"
5269 ac_path_SED_max=$ac_count
5270 fi
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5273 done
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275 esac
5276
5277 $ac_path_SED_found && break 3
5278 done
5279 done
5280 done
5281 IFS=$as_save_IFS
5282 if test -z "$ac_cv_path_SED"; then
5283 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5284 fi
5285 else
5286 ac_cv_path_SED=$SED
5287 fi
5288
5289 fi
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5291 printf "%s\n" "$ac_cv_path_SED" >&6; }
5292 SED="$ac_cv_path_SED"
5293 rm -f conftest.sed
5294
5295 test -z "$SED" && SED=sed
5296 Xsed="$SED -e 1s/^X//"
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5309 printf %s "checking for grep that handles long lines and -e... " >&6; }
5310 if test ${ac_cv_path_GREP+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else $as_nop
5314 if test -z "$GREP"; then
5315 ac_path_GREP_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
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_prog in grep ggrep
5327 do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5330 as_fn_executable_p "$ac_path_GREP" || continue
5331 # Check for GNU ac_path_GREP and select it if it is found.
5332 # Check for GNU $ac_path_GREP
5333 case `"$ac_path_GREP" --version 2>&1` in
5334 *GNU*)
5335 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5336 *)
5337 ac_count=0
5338 printf %s 0123456789 >"conftest.in"
5339 while :
5340 do
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 printf "%s\n" 'GREP' >> "conftest.nl"
5345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 as_fn_arith $ac_count + 1 && ac_count=$as_val
5348 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_GREP="$ac_path_GREP"
5351 ac_path_GREP_max=$ac_count
5352 fi
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5355 done
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357 esac
5358
5359 $ac_path_GREP_found && break 3
5360 done
5361 done
5362 done
5363 IFS=$as_save_IFS
5364 if test -z "$ac_cv_path_GREP"; then
5365 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5366 fi
5367 else
5368 ac_cv_path_GREP=$GREP
5369 fi
5370
5371 fi
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5373 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5374 GREP="$ac_cv_path_GREP"
5375
5376
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5378 printf %s "checking for egrep... " >&6; }
5379 if test ${ac_cv_path_EGREP+y}
5380 then :
5381 printf %s "(cached) " >&6
5382 else $as_nop
5383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5384 then ac_cv_path_EGREP="$GREP -E"
5385 else
5386 if test -z "$EGREP"; then
5387 ac_path_EGREP_found=false
5388 # Loop through the user's path and test for each of PROGNAME-LIST
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5391 do
5392 IFS=$as_save_IFS
5393 case $as_dir in #(((
5394 '') as_dir=./ ;;
5395 */) ;;
5396 *) as_dir=$as_dir/ ;;
5397 esac
5398 for ac_prog in egrep
5399 do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5402 as_fn_executable_p "$ac_path_EGREP" || continue
5403 # Check for GNU ac_path_EGREP and select it if it is found.
5404 # Check for GNU $ac_path_EGREP
5405 case `"$ac_path_EGREP" --version 2>&1` in
5406 *GNU*)
5407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5408 *)
5409 ac_count=0
5410 printf %s 0123456789 >"conftest.in"
5411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 printf "%s\n" 'EGREP' >> "conftest.nl"
5417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_EGREP="$ac_path_EGREP"
5423 ac_path_EGREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 esac
5430
5431 $ac_path_EGREP_found && break 3
5432 done
5433 done
5434 done
5435 IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_EGREP"; then
5437 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 fi
5439 else
5440 ac_cv_path_EGREP=$EGREP
5441 fi
5442
5443 fi
5444 fi
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5446 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5447 EGREP="$ac_cv_path_EGREP"
5448
5449
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5451 printf %s "checking for fgrep... " >&6; }
5452 if test ${ac_cv_path_FGREP+y}
5453 then :
5454 printf %s "(cached) " >&6
5455 else $as_nop
5456 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5457 then ac_cv_path_FGREP="$GREP -F"
5458 else
5459 if test -z "$FGREP"; then
5460 ac_path_FGREP_found=false
5461 # Loop through the user's path and test for each of PROGNAME-LIST
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5464 do
5465 IFS=$as_save_IFS
5466 case $as_dir in #(((
5467 '') as_dir=./ ;;
5468 */) ;;
5469 *) as_dir=$as_dir/ ;;
5470 esac
5471 for ac_prog in fgrep
5472 do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5475 as_fn_executable_p "$ac_path_FGREP" || continue
5476 # Check for GNU ac_path_FGREP and select it if it is found.
5477 # Check for GNU $ac_path_FGREP
5478 case `"$ac_path_FGREP" --version 2>&1` in
5479 *GNU*)
5480 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5481 *)
5482 ac_count=0
5483 printf %s 0123456789 >"conftest.in"
5484 while :
5485 do
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 printf "%s\n" 'FGREP' >> "conftest.nl"
5490 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 as_fn_arith $ac_count + 1 && ac_count=$as_val
5493 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_FGREP="$ac_path_FGREP"
5496 ac_path_FGREP_max=$ac_count
5497 fi
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5500 done
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 esac
5503
5504 $ac_path_FGREP_found && break 3
5505 done
5506 done
5507 done
5508 IFS=$as_save_IFS
5509 if test -z "$ac_cv_path_FGREP"; then
5510 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5511 fi
5512 else
5513 ac_cv_path_FGREP=$FGREP
5514 fi
5515
5516 fi
5517 fi
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5519 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5520 FGREP="$ac_cv_path_FGREP"
5521
5522
5523 test -z "$GREP" && GREP=grep
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 # Check whether --with-gnu-ld was given.
5544 if test ${with_gnu_ld+y}
5545 then :
5546 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5547 else $as_nop
5548 with_gnu_ld=no
5549 fi
5550
5551 ac_prog=ld
5552 if test yes = "$GCC"; then
5553 # Check if gcc -print-prog-name=ld gives a path.
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5555 printf %s "checking for ld used by $CC... " >&6; }
5556 case $host in
5557 *-*-mingw*)
5558 # gcc leaves a trailing carriage return, which upsets mingw
5559 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5560 *)
5561 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5562 esac
5563 case $ac_prog in
5564 # Accept absolute paths.
5565 [\\/]* | ?:[\\/]*)
5566 re_direlt='/[^/][^/]*/\.\./'
5567 # Canonicalize the pathname of ld
5568 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5569 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5570 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5571 done
5572 test -z "$LD" && LD=$ac_prog
5573 ;;
5574 "")
5575 # If it fails, then pretend we aren't using GCC.
5576 ac_prog=ld
5577 ;;
5578 *)
5579 # If it is relative, then search for the first ld in PATH.
5580 with_gnu_ld=unknown
5581 ;;
5582 esac
5583 elif test yes = "$with_gnu_ld"; then
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5585 printf %s "checking for GNU ld... " >&6; }
5586 else
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5588 printf %s "checking for non-GNU ld... " >&6; }
5589 fi
5590 if test ${lt_cv_path_LD+y}
5591 then :
5592 printf %s "(cached) " >&6
5593 else $as_nop
5594 if test -z "$LD"; then
5595 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5596 for ac_dir in $PATH; do
5597 IFS=$lt_save_ifs
5598 test -z "$ac_dir" && ac_dir=.
5599 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5600 lt_cv_path_LD=$ac_dir/$ac_prog
5601 # Check to see if the program is GNU ld. I'd rather use --version,
5602 # but apparently some variants of GNU ld only accept -v.
5603 # Break only if it was the GNU/non-GNU ld that we prefer.
5604 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5605 *GNU* | *'with BFD'*)
5606 test no != "$with_gnu_ld" && break
5607 ;;
5608 *)
5609 test yes != "$with_gnu_ld" && break
5610 ;;
5611 esac
5612 fi
5613 done
5614 IFS=$lt_save_ifs
5615 else
5616 lt_cv_path_LD=$LD # Let the user override the test with a path.
5617 fi
5618 fi
5619
5620 LD=$lt_cv_path_LD
5621 if test -n "$LD"; then
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5623 printf "%s\n" "$LD" >&6; }
5624 else
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 printf "%s\n" "no" >&6; }
5627 fi
5628 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5630 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5631 if test ${lt_cv_prog_gnu_ld+y}
5632 then :
5633 printf %s "(cached) " >&6
5634 else $as_nop
5635 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5636 case `$LD -v 2>&1 </dev/null` in
5637 *GNU* | *'with BFD'*)
5638 lt_cv_prog_gnu_ld=yes
5639 ;;
5640 *)
5641 lt_cv_prog_gnu_ld=no
5642 ;;
5643 esac
5644 fi
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5646 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5647 with_gnu_ld=$lt_cv_prog_gnu_ld
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5658 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5659 if test ${lt_cv_path_NM+y}
5660 then :
5661 printf %s "(cached) " >&6
5662 else $as_nop
5663 if test -n "$NM"; then
5664 # Let the user override the test.
5665 lt_cv_path_NM=$NM
5666 else
5667 lt_nm_to_check=${ac_tool_prefix}nm
5668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5669 lt_nm_to_check="$lt_nm_to_check nm"
5670 fi
5671 for lt_tmp_nm in $lt_nm_to_check; do
5672 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5673 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5674 IFS=$lt_save_ifs
5675 test -z "$ac_dir" && ac_dir=.
5676 tmp_nm=$ac_dir/$lt_tmp_nm
5677 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5678 # Check to see if the nm accepts a BSD-compat flag.
5679 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5680 # nm: unknown option "B" ignored
5681 # Tru64's nm complains that /dev/null is an invalid object file
5682 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5683 case $build_os in
5684 mingw*) lt_bad_file=conftest.nm/nofile ;;
5685 *) lt_bad_file=/dev/null ;;
5686 esac
5687 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5688 *$lt_bad_file* | *'Invalid file or object type'*)
5689 lt_cv_path_NM="$tmp_nm -B"
5690 break 2
5691 ;;
5692 *)
5693 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5694 */dev/null*)
5695 lt_cv_path_NM="$tmp_nm -p"
5696 break 2
5697 ;;
5698 *)
5699 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5700 continue # so that we can try to find one that supports BSD flags
5701 ;;
5702 esac
5703 ;;
5704 esac
5705 fi
5706 done
5707 IFS=$lt_save_ifs
5708 done
5709 : ${lt_cv_path_NM=no}
5710 fi
5711 fi
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5713 printf "%s\n" "$lt_cv_path_NM" >&6; }
5714 if test no != "$lt_cv_path_NM"; then
5715 NM=$lt_cv_path_NM
5716 else
5717 # Didn't find any BSD compatible name lister, look for dumpbin.
5718 if test -n "$DUMPBIN"; then :
5719 # Let the user override the test.
5720 else
5721 if test -n "$ac_tool_prefix"; then
5722 for ac_prog in dumpbin "link -dump"
5723 do
5724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 printf %s "checking for $ac_word... " >&6; }
5728 if test ${ac_cv_prog_DUMPBIN+y}
5729 then :
5730 printf %s "(cached) " >&6
5731 else $as_nop
5732 if test -n "$DUMPBIN"; then
5733 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738 IFS=$as_save_IFS
5739 case $as_dir in #(((
5740 '') as_dir=./ ;;
5741 */) ;;
5742 *) as_dir=$as_dir/ ;;
5743 esac
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750 done
5751 done
5752 IFS=$as_save_IFS
5753
5754 fi
5755 fi
5756 DUMPBIN=$ac_cv_prog_DUMPBIN
5757 if test -n "$DUMPBIN"; then
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5759 printf "%s\n" "$DUMPBIN" >&6; }
5760 else
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 printf "%s\n" "no" >&6; }
5763 fi
5764
5765
5766 test -n "$DUMPBIN" && break
5767 done
5768 fi
5769 if test -z "$DUMPBIN"; then
5770 ac_ct_DUMPBIN=$DUMPBIN
5771 for ac_prog in dumpbin "link -dump"
5772 do
5773 # Extract the first word of "$ac_prog", so it can be a program name with args.
5774 set dummy $ac_prog; ac_word=$2
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 printf %s "checking for $ac_word... " >&6; }
5777 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5778 then :
5779 printf %s "(cached) " >&6
5780 else $as_nop
5781 if test -n "$ac_ct_DUMPBIN"; then
5782 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787 IFS=$as_save_IFS
5788 case $as_dir in #(((
5789 '') as_dir=./ ;;
5790 */) ;;
5791 *) as_dir=$as_dir/ ;;
5792 esac
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799 done
5800 done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5806 if test -n "$ac_ct_DUMPBIN"; then
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5808 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5809 else
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 printf "%s\n" "no" >&6; }
5812 fi
5813
5814
5815 test -n "$ac_ct_DUMPBIN" && break
5816 done
5817
5818 if test "x$ac_ct_DUMPBIN" = x; then
5819 DUMPBIN=":"
5820 else
5821 case $cross_compiling:$ac_tool_warned in
5822 yes:)
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5824 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5825 ac_tool_warned=yes ;;
5826 esac
5827 DUMPBIN=$ac_ct_DUMPBIN
5828 fi
5829 fi
5830
5831 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5832 *COFF*)
5833 DUMPBIN="$DUMPBIN -symbols -headers"
5834 ;;
5835 *)
5836 DUMPBIN=:
5837 ;;
5838 esac
5839 fi
5840
5841 if test : != "$DUMPBIN"; then
5842 NM=$DUMPBIN
5843 fi
5844 fi
5845 test -z "$NM" && NM=nm
5846
5847
5848
5849
5850
5851
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5853 printf %s "checking the name lister ($NM) interface... " >&6; }
5854 if test ${lt_cv_nm_interface+y}
5855 then :
5856 printf %s "(cached) " >&6
5857 else $as_nop
5858 lt_cv_nm_interface="BSD nm"
5859 echo "int some_variable = 0;" > conftest.$ac_ext
5860 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5861 (eval "$ac_compile" 2>conftest.err)
5862 cat conftest.err >&5
5863 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5864 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5865 cat conftest.err >&5
5866 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5867 cat conftest.out >&5
5868 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5869 lt_cv_nm_interface="MS dumpbin"
5870 fi
5871 rm -f conftest*
5872 fi
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5874 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5875
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5877 printf %s "checking whether ln -s works... " >&6; }
5878 LN_S=$as_ln_s
5879 if test "$LN_S" = "ln -s"; then
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5881 printf "%s\n" "yes" >&6; }
5882 else
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5884 printf "%s\n" "no, using $LN_S" >&6; }
5885 fi
5886
5887 # find the maximum length of command line arguments
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5889 printf %s "checking the maximum length of command line arguments... " >&6; }
5890 if test ${lt_cv_sys_max_cmd_len+y}
5891 then :
5892 printf %s "(cached) " >&6
5893 else $as_nop
5894 i=0
5895 teststring=ABCD
5896
5897 case $build_os in
5898 msdosdjgpp*)
5899 # On DJGPP, this test can blow up pretty badly due to problems in libc
5900 # (any single argument exceeding 2000 bytes causes a buffer overrun
5901 # during glob expansion). Even if it were fixed, the result of this
5902 # check would be larger than it should be.
5903 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5904 ;;
5905
5906 gnu*)
5907 # Under GNU Hurd, this test is not required because there is
5908 # no limit to the length of command line arguments.
5909 # Libtool will interpret -1 as no limit whatsoever
5910 lt_cv_sys_max_cmd_len=-1;
5911 ;;
5912
5913 cygwin* | mingw* | cegcc*)
5914 # On Win9x/ME, this test blows up -- it succeeds, but takes
5915 # about 5 minutes as the teststring grows exponentially.
5916 # Worse, since 9x/ME are not pre-emptively multitasking,
5917 # you end up with a "frozen" computer, even though with patience
5918 # the test eventually succeeds (with a max line length of 256k).
5919 # Instead, let's just punt: use the minimum linelength reported by
5920 # all of the supported platforms: 8192 (on NT/2K/XP).
5921 lt_cv_sys_max_cmd_len=8192;
5922 ;;
5923
5924 mint*)
5925 # On MiNT this can take a long time and run out of memory.
5926 lt_cv_sys_max_cmd_len=8192;
5927 ;;
5928
5929 amigaos*)
5930 # On AmigaOS with pdksh, this test takes hours, literally.
5931 # So we just punt and use a minimum line length of 8192.
5932 lt_cv_sys_max_cmd_len=8192;
5933 ;;
5934
5935 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5936 # This has been around since 386BSD, at least. Likely further.
5937 if test -x /sbin/sysctl; then
5938 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5939 elif test -x /usr/sbin/sysctl; then
5940 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5941 else
5942 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5943 fi
5944 # And add a safety zone
5945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5947 ;;
5948
5949 interix*)
5950 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5951 lt_cv_sys_max_cmd_len=196608
5952 ;;
5953
5954 os2*)
5955 # The test takes a long time on OS/2.
5956 lt_cv_sys_max_cmd_len=8192
5957 ;;
5958
5959 osf*)
5960 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5961 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5962 # nice to cause kernel panics so lets avoid the loop below.
5963 # First set a reasonable default.
5964 lt_cv_sys_max_cmd_len=16384
5965 #
5966 if test -x /sbin/sysconfig; then
5967 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5968 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5969 esac
5970 fi
5971 ;;
5972 sco3.2v5*)
5973 lt_cv_sys_max_cmd_len=102400
5974 ;;
5975 sysv5* | sco5v6* | sysv4.2uw2*)
5976 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5977 if test -n "$kargmax"; then
5978 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5979 else
5980 lt_cv_sys_max_cmd_len=32768
5981 fi
5982 ;;
5983 *)
5984 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5985 if test -n "$lt_cv_sys_max_cmd_len" && \
5986 test undefined != "$lt_cv_sys_max_cmd_len"; then
5987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5989 else
5990 # Make teststring a little bigger before we do anything with it.
5991 # a 1K string should be a reasonable start.
5992 for i in 1 2 3 4 5 6 7 8; do
5993 teststring=$teststring$teststring
5994 done
5995 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5996 # If test is not a shell built-in, we'll probably end up computing a
5997 # maximum length that is only half of the actual maximum length, but
5998 # we can't tell.
5999 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6000 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6001 test 17 != "$i" # 1/2 MB should be enough
6002 do
6003 i=`expr $i + 1`
6004 teststring=$teststring$teststring
6005 done
6006 # Only check the string length outside the loop.
6007 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6008 teststring=
6009 # Add a significant safety factor because C++ compilers can tack on
6010 # massive amounts of additional arguments before passing them to the
6011 # linker. It appears as though 1/2 is a usable value.
6012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6013 fi
6014 ;;
6015 esac
6016
6017 fi
6018
6019 if test -n "$lt_cv_sys_max_cmd_len"; then
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6021 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6022 else
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6024 printf "%s\n" "none" >&6; }
6025 fi
6026 max_cmd_len=$lt_cv_sys_max_cmd_len
6027
6028
6029
6030
6031
6032
6033 : ${CP="cp -f"}
6034 : ${MV="mv -f"}
6035 : ${RM="rm -f"}
6036
6037 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6038 lt_unset=unset
6039 else
6040 lt_unset=false
6041 fi
6042
6043
6044
6045
6046
6047 # test EBCDIC or ASCII
6048 case `echo X|tr X '\101'` in
6049 A) # ASCII based system
6050 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6051 lt_SP2NL='tr \040 \012'
6052 lt_NL2SP='tr \015\012 \040\040'
6053 ;;
6054 *) # EBCDIC based system
6055 lt_SP2NL='tr \100 \n'
6056 lt_NL2SP='tr \r\n \100\100'
6057 ;;
6058 esac
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6069 printf %s "checking how to convert $build file names to $host format... " >&6; }
6070 if test ${lt_cv_to_host_file_cmd+y}
6071 then :
6072 printf %s "(cached) " >&6
6073 else $as_nop
6074 case $host in
6075 *-*-mingw* )
6076 case $build in
6077 *-*-mingw* ) # actually msys
6078 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6079 ;;
6080 *-*-cygwin* )
6081 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6082 ;;
6083 * ) # otherwise, assume *nix
6084 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6085 ;;
6086 esac
6087 ;;
6088 *-*-cygwin* )
6089 case $build in
6090 *-*-mingw* ) # actually msys
6091 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6092 ;;
6093 *-*-cygwin* )
6094 lt_cv_to_host_file_cmd=func_convert_file_noop
6095 ;;
6096 * ) # otherwise, assume *nix
6097 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6098 ;;
6099 esac
6100 ;;
6101 * ) # unhandled hosts (and "normal" native builds)
6102 lt_cv_to_host_file_cmd=func_convert_file_noop
6103 ;;
6104 esac
6105
6106 fi
6107
6108 to_host_file_cmd=$lt_cv_to_host_file_cmd
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6110 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6111
6112
6113
6114
6115
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6117 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6118 if test ${lt_cv_to_tool_file_cmd+y}
6119 then :
6120 printf %s "(cached) " >&6
6121 else $as_nop
6122 #assume ordinary cross tools, or native build.
6123 lt_cv_to_tool_file_cmd=func_convert_file_noop
6124 case $host in
6125 *-*-mingw* )
6126 case $build in
6127 *-*-mingw* ) # actually msys
6128 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6129 ;;
6130 esac
6131 ;;
6132 esac
6133
6134 fi
6135
6136 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6138 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6139
6140
6141
6142
6143
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6145 printf %s "checking for $LD option to reload object files... " >&6; }
6146 if test ${lt_cv_ld_reload_flag+y}
6147 then :
6148 printf %s "(cached) " >&6
6149 else $as_nop
6150 lt_cv_ld_reload_flag='-r'
6151 fi
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6153 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6154 reload_flag=$lt_cv_ld_reload_flag
6155 case $reload_flag in
6156 "" | " "*) ;;
6157 *) reload_flag=" $reload_flag" ;;
6158 esac
6159 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6160 case $host_os in
6161 cygwin* | mingw* | pw32* | cegcc*)
6162 if test yes != "$GCC"; then
6163 reload_cmds=false
6164 fi
6165 ;;
6166 darwin*)
6167 if test yes = "$GCC"; then
6168 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6169 else
6170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6171 fi
6172 ;;
6173 esac
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}file; ac_word=$2
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 printf %s "checking for $ac_word... " >&6; }
6188 if test ${ac_cv_prog_FILECMD+y}
6189 then :
6190 printf %s "(cached) " >&6
6191 else $as_nop
6192 if test -n "$FILECMD"; then
6193 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198 IFS=$as_save_IFS
6199 case $as_dir in #(((
6200 '') as_dir=./ ;;
6201 */) ;;
6202 *) as_dir=$as_dir/ ;;
6203 esac
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6206 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 FILECMD=$ac_cv_prog_FILECMD
6217 if test -n "$FILECMD"; then
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6219 printf "%s\n" "$FILECMD" >&6; }
6220 else
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 printf "%s\n" "no" >&6; }
6223 fi
6224
6225
6226 fi
6227 if test -z "$ac_cv_prog_FILECMD"; then
6228 ac_ct_FILECMD=$FILECMD
6229 # Extract the first word of "file", so it can be a program name with args.
6230 set dummy file; ac_word=$2
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 printf %s "checking for $ac_word... " >&6; }
6233 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6234 then :
6235 printf %s "(cached) " >&6
6236 else $as_nop
6237 if test -n "$ac_ct_FILECMD"; then
6238 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243 IFS=$as_save_IFS
6244 case $as_dir in #(((
6245 '') as_dir=./ ;;
6246 */) ;;
6247 *) as_dir=$as_dir/ ;;
6248 esac
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_ac_ct_FILECMD="file"
6252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255 done
6256 done
6257 IFS=$as_save_IFS
6258
6259 fi
6260 fi
6261 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6262 if test -n "$ac_ct_FILECMD"; then
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6264 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6265 else
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 printf "%s\n" "no" >&6; }
6268 fi
6269
6270 if test "x$ac_ct_FILECMD" = x; then
6271 FILECMD=":"
6272 else
6273 case $cross_compiling:$ac_tool_warned in
6274 yes:)
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277 ac_tool_warned=yes ;;
6278 esac
6279 FILECMD=$ac_ct_FILECMD
6280 fi
6281 else
6282 FILECMD="$ac_cv_prog_FILECMD"
6283 fi
6284
6285
6286
6287
6288
6289
6290
6291 if test -n "$ac_tool_prefix"; then
6292 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6293 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 printf %s "checking for $ac_word... " >&6; }
6296 if test ${ac_cv_prog_OBJDUMP+y}
6297 then :
6298 printf %s "(cached) " >&6
6299 else $as_nop
6300 if test -n "$OBJDUMP"; then
6301 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306 IFS=$as_save_IFS
6307 case $as_dir in #(((
6308 '') as_dir=./ ;;
6309 */) ;;
6310 *) as_dir=$as_dir/ ;;
6311 esac
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6314 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 OBJDUMP=$ac_cv_prog_OBJDUMP
6325 if test -n "$OBJDUMP"; then
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6327 printf "%s\n" "$OBJDUMP" >&6; }
6328 else
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 printf "%s\n" "no" >&6; }
6331 fi
6332
6333
6334 fi
6335 if test -z "$ac_cv_prog_OBJDUMP"; then
6336 ac_ct_OBJDUMP=$OBJDUMP
6337 # Extract the first word of "objdump", so it can be a program name with args.
6338 set dummy objdump; ac_word=$2
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 printf %s "checking for $ac_word... " >&6; }
6341 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6342 then :
6343 printf %s "(cached) " >&6
6344 else $as_nop
6345 if test -n "$ac_ct_OBJDUMP"; then
6346 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351 IFS=$as_save_IFS
6352 case $as_dir in #(((
6353 '') as_dir=./ ;;
6354 */) ;;
6355 *) as_dir=$as_dir/ ;;
6356 esac
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6359 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6361 break 2
6362 fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6370 if test -n "$ac_ct_OBJDUMP"; then
6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6372 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6373 else
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 printf "%s\n" "no" >&6; }
6376 fi
6377
6378 if test "x$ac_ct_OBJDUMP" = x; then
6379 OBJDUMP="false"
6380 else
6381 case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6386 esac
6387 OBJDUMP=$ac_ct_OBJDUMP
6388 fi
6389 else
6390 OBJDUMP="$ac_cv_prog_OBJDUMP"
6391 fi
6392
6393 test -z "$OBJDUMP" && OBJDUMP=objdump
6394
6395
6396
6397
6398
6399
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6401 printf %s "checking how to recognize dependent libraries... " >&6; }
6402 if test ${lt_cv_deplibs_check_method+y}
6403 then :
6404 printf %s "(cached) " >&6
6405 else $as_nop
6406 lt_cv_file_magic_cmd='$MAGIC_CMD'
6407 lt_cv_file_magic_test_file=
6408 lt_cv_deplibs_check_method='unknown'
6409 # Need to set the preceding variable on all platforms that support
6410 # interlibrary dependencies.
6411 # 'none' -- dependencies not supported.
6412 # 'unknown' -- same as none, but documents that we really don't know.
6413 # 'pass_all' -- all dependencies passed with no checks.
6414 # 'test_compile' -- check by making test program.
6415 # 'file_magic [[regex]]' -- check by looking for files in library path
6416 # that responds to the $file_magic_cmd with a given extended regex.
6417 # If you have 'file' or equivalent on your system and you're not sure
6418 # whether 'pass_all' will *always* work, you probably want this one.
6419
6420 case $host_os in
6421 aix[4-9]*)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424
6425 beos*)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
6428
6429 bsdi[45]*)
6430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6431 lt_cv_file_magic_cmd='$FILECMD -L'
6432 lt_cv_file_magic_test_file=/shlib/libc.so
6433 ;;
6434
6435 cygwin*)
6436 # func_win32_libid is a shell function defined in ltmain.sh
6437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6438 lt_cv_file_magic_cmd='func_win32_libid'
6439 ;;
6440
6441 mingw* | pw32*)
6442 # Base MSYS/MinGW do not provide the 'file' command needed by
6443 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6444 # unless we find 'file', for example because we are cross-compiling.
6445 if ( file / ) >/dev/null 2>&1; then
6446 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6447 lt_cv_file_magic_cmd='func_win32_libid'
6448 else
6449 # Keep this pattern in sync with the one in func_win32_libid.
6450 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6451 lt_cv_file_magic_cmd='$OBJDUMP -f'
6452 fi
6453 ;;
6454
6455 cegcc*)
6456 # use the weaker test based on 'objdump'. See mingw*.
6457 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6458 lt_cv_file_magic_cmd='$OBJDUMP -f'
6459 ;;
6460
6461 darwin* | rhapsody*)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465 freebsd* | dragonfly* | midnightbsd*)
6466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6467 case $host_cpu in
6468 i*86 )
6469 # Not sure whether the presence of OpenBSD here was a mistake.
6470 # Let's accept both of them until this is cleared up.
6471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6472 lt_cv_file_magic_cmd=$FILECMD
6473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6474 ;;
6475 esac
6476 else
6477 lt_cv_deplibs_check_method=pass_all
6478 fi
6479 ;;
6480
6481 haiku*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 hpux10.20* | hpux11*)
6486 lt_cv_file_magic_cmd=$FILECMD
6487 case $host_cpu in
6488 ia64*)
6489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6490 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6491 ;;
6492 hppa*64*)
6493 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]'
6494 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6495 ;;
6496 *)
6497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6498 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6499 ;;
6500 esac
6501 ;;
6502
6503 interix[3-9]*)
6504 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6506 ;;
6507
6508 irix5* | irix6* | nonstopux*)
6509 case $LD in
6510 *-32|*"-32 ") libmagic=32-bit;;
6511 *-n32|*"-n32 ") libmagic=N32;;
6512 *-64|*"-64 ") libmagic=64-bit;;
6513 *) libmagic=never-match;;
6514 esac
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518 # This must be glibc/ELF.
6519 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523 netbsd* | netbsdelf*-gnu)
6524 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6526 else
6527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6528 fi
6529 ;;
6530
6531 newos6*)
6532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6533 lt_cv_file_magic_cmd=$FILECMD
6534 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6535 ;;
6536
6537 *nto* | *qnx*)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540
6541 openbsd* | bitrig*)
6542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6544 else
6545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6546 fi
6547 ;;
6548
6549 openedition*)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552
6553 osf3* | osf4* | osf5*)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556
6557 rdos*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561 solaris*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568
6569 sysv4 | sysv4.3*)
6570 case $host_vendor in
6571 motorola)
6572 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]'
6573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6574 ;;
6575 ncr)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578 sequent)
6579 lt_cv_file_magic_cmd='/bin/file'
6580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6581 ;;
6582 sni)
6583 lt_cv_file_magic_cmd='/bin/file'
6584 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6585 lt_cv_file_magic_test_file=/lib/libc.so
6586 ;;
6587 siemens)
6588 lt_cv_deplibs_check_method=pass_all
6589 ;;
6590 pc)
6591 lt_cv_deplibs_check_method=pass_all
6592 ;;
6593 esac
6594 ;;
6595
6596 tpf*)
6597 lt_cv_deplibs_check_method=pass_all
6598 ;;
6599 os2*)
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
6602 esac
6603
6604 fi
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6606 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6607
6608 file_magic_glob=
6609 want_nocaseglob=no
6610 if test "$build" = "$host"; then
6611 case $host_os in
6612 mingw* | pw32*)
6613 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6614 want_nocaseglob=yes
6615 else
6616 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6617 fi
6618 ;;
6619 esac
6620 fi
6621
6622 file_magic_cmd=$lt_cv_file_magic_cmd
6623 deplibs_check_method=$lt_cv_deplibs_check_method
6624 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647 if test -n "$ac_tool_prefix"; then
6648 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6649 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 printf %s "checking for $ac_word... " >&6; }
6652 if test ${ac_cv_prog_DLLTOOL+y}
6653 then :
6654 printf %s "(cached) " >&6
6655 else $as_nop
6656 if test -n "$DLLTOOL"; then
6657 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662 IFS=$as_save_IFS
6663 case $as_dir in #(((
6664 '') as_dir=./ ;;
6665 */) ;;
6666 *) as_dir=$as_dir/ ;;
6667 esac
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 DLLTOOL=$ac_cv_prog_DLLTOOL
6681 if test -n "$DLLTOOL"; then
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6683 printf "%s\n" "$DLLTOOL" >&6; }
6684 else
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 printf "%s\n" "no" >&6; }
6687 fi
6688
6689
6690 fi
6691 if test -z "$ac_cv_prog_DLLTOOL"; then
6692 ac_ct_DLLTOOL=$DLLTOOL
6693 # Extract the first word of "dlltool", so it can be a program name with args.
6694 set dummy dlltool; ac_word=$2
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 printf %s "checking for $ac_word... " >&6; }
6697 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6698 then :
6699 printf %s "(cached) " >&6
6700 else $as_nop
6701 if test -n "$ac_ct_DLLTOOL"; then
6702 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707 IFS=$as_save_IFS
6708 case $as_dir in #(((
6709 '') as_dir=./ ;;
6710 */) ;;
6711 *) as_dir=$as_dir/ ;;
6712 esac
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6715 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6726 if test -n "$ac_ct_DLLTOOL"; then
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6728 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6729 else
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 printf "%s\n" "no" >&6; }
6732 fi
6733
6734 if test "x$ac_ct_DLLTOOL" = x; then
6735 DLLTOOL="false"
6736 else
6737 case $cross_compiling:$ac_tool_warned in
6738 yes:)
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6740 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6741 ac_tool_warned=yes ;;
6742 esac
6743 DLLTOOL=$ac_ct_DLLTOOL
6744 fi
6745 else
6746 DLLTOOL="$ac_cv_prog_DLLTOOL"
6747 fi
6748
6749 test -z "$DLLTOOL" && DLLTOOL=dlltool
6750
6751
6752
6753
6754
6755
6756
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6758 printf %s "checking how to associate runtime and link libraries... " >&6; }
6759 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6760 then :
6761 printf %s "(cached) " >&6
6762 else $as_nop
6763 lt_cv_sharedlib_from_linklib_cmd='unknown'
6764
6765 case $host_os in
6766 cygwin* | mingw* | pw32* | cegcc*)
6767 # two different shell functions defined in ltmain.sh;
6768 # decide which one to use based on capabilities of $DLLTOOL
6769 case `$DLLTOOL --help 2>&1` in
6770 *--identify-strict*)
6771 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6772 ;;
6773 *)
6774 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6775 ;;
6776 esac
6777 ;;
6778 *)
6779 # fallback: assume linklib IS sharedlib
6780 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6781 ;;
6782 esac
6783
6784 fi
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6786 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6787 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6788 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6789
6790
6791
6792
6793
6794
6795
6796 if test -n "$ac_tool_prefix"; then
6797 for ac_prog in ar
6798 do
6799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 printf %s "checking for $ac_word... " >&6; }
6803 if test ${ac_cv_prog_AR+y}
6804 then :
6805 printf %s "(cached) " >&6
6806 else $as_nop
6807 if test -n "$AR"; then
6808 ac_cv_prog_AR="$AR" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 case $as_dir in #(((
6815 '') as_dir=./ ;;
6816 */) ;;
6817 *) as_dir=$as_dir/ ;;
6818 esac
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6821 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 AR=$ac_cv_prog_AR
6832 if test -n "$AR"; then
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6834 printf "%s\n" "$AR" >&6; }
6835 else
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 printf "%s\n" "no" >&6; }
6838 fi
6839
6840
6841 test -n "$AR" && break
6842 done
6843 fi
6844 if test -z "$AR"; then
6845 ac_ct_AR=$AR
6846 for ac_prog in ar
6847 do
6848 # Extract the first word of "$ac_prog", so it can be a program name with args.
6849 set dummy $ac_prog; ac_word=$2
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 printf %s "checking for $ac_word... " >&6; }
6852 if test ${ac_cv_prog_ac_ct_AR+y}
6853 then :
6854 printf %s "(cached) " >&6
6855 else $as_nop
6856 if test -n "$ac_ct_AR"; then
6857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 case $as_dir in #(((
6864 '') as_dir=./ ;;
6865 */) ;;
6866 *) as_dir=$as_dir/ ;;
6867 esac
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_ac_ct_AR="$ac_prog"
6871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi
6879 fi
6880 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6881 if test -n "$ac_ct_AR"; then
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6883 printf "%s\n" "$ac_ct_AR" >&6; }
6884 else
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 printf "%s\n" "no" >&6; }
6887 fi
6888
6889
6890 test -n "$ac_ct_AR" && break
6891 done
6892
6893 if test "x$ac_ct_AR" = x; then
6894 AR="false"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902 AR=$ac_ct_AR
6903 fi
6904 fi
6905
6906 : ${AR=ar}
6907
6908
6909
6910
6911
6912
6913 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6914 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6915 # higher priority because thats what people were doing historically (setting
6916 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6917 # variable obsoleted/removed.
6918
6919 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6920 lt_ar_flags=$AR_FLAGS
6921
6922
6923
6924
6925
6926
6927 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6928 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6929
6930
6931
6932
6933
6934
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6936 printf %s "checking for archiver @FILE support... " >&6; }
6937 if test ${lt_cv_ar_at_file+y}
6938 then :
6939 printf %s "(cached) " >&6
6940 else $as_nop
6941 lt_cv_ar_at_file=no
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944
6945 int
6946 main (void)
6947 {
6948
6949 ;
6950 return 0;
6951 }
6952 _ACEOF
6953 if ac_fn_c_try_compile "$LINENO"
6954 then :
6955 echo conftest.$ac_objext > conftest.lst
6956 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6958 (eval $lt_ar_try) 2>&5
6959 ac_status=$?
6960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961 test $ac_status = 0; }
6962 if test 0 -eq "$ac_status"; then
6963 # Ensure the archiver fails upon bogus file names.
6964 rm -f conftest.$ac_objext libconftest.a
6965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6966 (eval $lt_ar_try) 2>&5
6967 ac_status=$?
6968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; }
6970 if test 0 -ne "$ac_status"; then
6971 lt_cv_ar_at_file=@
6972 fi
6973 fi
6974 rm -f conftest.* libconftest.a
6975
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6978
6979 fi
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6981 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6982
6983 if test no = "$lt_cv_ar_at_file"; then
6984 archiver_list_spec=
6985 else
6986 archiver_list_spec=$lt_cv_ar_at_file
6987 fi
6988
6989
6990
6991
6992
6993
6994
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}strip; ac_word=$2
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 printf %s "checking for $ac_word... " >&6; }
7000 if test ${ac_cv_prog_STRIP+y}
7001 then :
7002 printf %s "(cached) " >&6
7003 else $as_nop
7004 if test -n "$STRIP"; then
7005 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010 IFS=$as_save_IFS
7011 case $as_dir in #(((
7012 '') as_dir=./ ;;
7013 */) ;;
7014 *) as_dir=$as_dir/ ;;
7015 esac
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 STRIP=$ac_cv_prog_STRIP
7029 if test -n "$STRIP"; then
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7031 printf "%s\n" "$STRIP" >&6; }
7032 else
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 printf "%s\n" "no" >&6; }
7035 fi
7036
7037
7038 fi
7039 if test -z "$ac_cv_prog_STRIP"; then
7040 ac_ct_STRIP=$STRIP
7041 # Extract the first word of "strip", so it can be a program name with args.
7042 set dummy strip; ac_word=$2
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 printf %s "checking for $ac_word... " >&6; }
7045 if test ${ac_cv_prog_ac_ct_STRIP+y}
7046 then :
7047 printf %s "(cached) " >&6
7048 else $as_nop
7049 if test -n "$ac_ct_STRIP"; then
7050 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055 IFS=$as_save_IFS
7056 case $as_dir in #(((
7057 '') as_dir=./ ;;
7058 */) ;;
7059 *) as_dir=$as_dir/ ;;
7060 esac
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_ac_ct_STRIP="strip"
7064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7074 if test -n "$ac_ct_STRIP"; then
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7076 printf "%s\n" "$ac_ct_STRIP" >&6; }
7077 else
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 printf "%s\n" "no" >&6; }
7080 fi
7081
7082 if test "x$ac_ct_STRIP" = x; then
7083 STRIP=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 STRIP=$ac_ct_STRIP
7092 fi
7093 else
7094 STRIP="$ac_cv_prog_STRIP"
7095 fi
7096
7097 test -z "$STRIP" && STRIP=:
7098
7099
7100
7101
7102
7103
7104 if test -n "$ac_tool_prefix"; then
7105 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 printf %s "checking for $ac_word... " >&6; }
7109 if test ${ac_cv_prog_RANLIB+y}
7110 then :
7111 printf %s "(cached) " >&6
7112 else $as_nop
7113 if test -n "$RANLIB"; then
7114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119 IFS=$as_save_IFS
7120 case $as_dir in #(((
7121 '') as_dir=./ ;;
7122 */) ;;
7123 *) as_dir=$as_dir/ ;;
7124 esac
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 RANLIB=$ac_cv_prog_RANLIB
7138 if test -n "$RANLIB"; then
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7140 printf "%s\n" "$RANLIB" >&6; }
7141 else
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 printf "%s\n" "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_RANLIB"; then
7149 ac_ct_RANLIB=$RANLIB
7150 # Extract the first word of "ranlib", so it can be a program name with args.
7151 set dummy ranlib; ac_word=$2
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 printf %s "checking for $ac_word... " >&6; }
7154 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7155 then :
7156 printf %s "(cached) " >&6
7157 else $as_nop
7158 if test -n "$ac_ct_RANLIB"; then
7159 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164 IFS=$as_save_IFS
7165 case $as_dir in #(((
7166 '') as_dir=./ ;;
7167 */) ;;
7168 *) as_dir=$as_dir/ ;;
7169 esac
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7172 ac_cv_prog_ac_ct_RANLIB="ranlib"
7173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7174 break 2
7175 fi
7176 done
7177 done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7183 if test -n "$ac_ct_RANLIB"; then
7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7185 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7186 else
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 printf "%s\n" "no" >&6; }
7189 fi
7190
7191 if test "x$ac_ct_RANLIB" = x; then
7192 RANLIB=":"
7193 else
7194 case $cross_compiling:$ac_tool_warned in
7195 yes:)
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7197 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7198 ac_tool_warned=yes ;;
7199 esac
7200 RANLIB=$ac_ct_RANLIB
7201 fi
7202 else
7203 RANLIB="$ac_cv_prog_RANLIB"
7204 fi
7205
7206 test -z "$RANLIB" && RANLIB=:
7207
7208
7209
7210
7211
7212
7213 # Determine commands to create old-style static archives.
7214 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7215 old_postinstall_cmds='chmod 644 $oldlib'
7216 old_postuninstall_cmds=
7217
7218 if test -n "$RANLIB"; then
7219 case $host_os in
7220 bitrig* | openbsd*)
7221 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7222 ;;
7223 *)
7224 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7225 ;;
7226 esac
7227 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7228 fi
7229
7230 case $host_os in
7231 darwin*)
7232 lock_old_archive_extraction=yes ;;
7233 *)
7234 lock_old_archive_extraction=no ;;
7235 esac
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275 # If no C compiler was specified, use CC.
7276 LTCC=${LTCC-"$CC"}
7277
7278 # If no C compiler flags were specified, use CFLAGS.
7279 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7280
7281 # Allow CC to be a program name with arguments.
7282 compiler=$CC
7283
7284
7285 # Check for command to grab the raw symbol name followed by C symbol from nm.
7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7287 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7288 if test ${lt_cv_sys_global_symbol_pipe+y}
7289 then :
7290 printf %s "(cached) " >&6
7291 else $as_nop
7292
7293 # These are sane defaults that work on at least a few old systems.
7294 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7295
7296 # Character class describing NM global symbol codes.
7297 symcode='[BCDEGRST]'
7298
7299 # Regexp to match symbols that can be accessed directly from C.
7300 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7301
7302 # Define system-specific variables.
7303 case $host_os in
7304 aix*)
7305 symcode='[BCDT]'
7306 ;;
7307 cygwin* | mingw* | pw32* | cegcc*)
7308 symcode='[ABCDGISTW]'
7309 ;;
7310 hpux*)
7311 if test ia64 = "$host_cpu"; then
7312 symcode='[ABCDEGRST]'
7313 fi
7314 ;;
7315 irix* | nonstopux*)
7316 symcode='[BCDEGRST]'
7317 ;;
7318 osf*)
7319 symcode='[BCDEGQRST]'
7320 ;;
7321 solaris*)
7322 symcode='[BDRT]'
7323 ;;
7324 sco3.2v5*)
7325 symcode='[DT]'
7326 ;;
7327 sysv4.2uw2*)
7328 symcode='[DT]'
7329 ;;
7330 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7331 symcode='[ABDT]'
7332 ;;
7333 sysv4)
7334 symcode='[DFNSTU]'
7335 ;;
7336 esac
7337
7338 # If we're using GNU nm, then use its standard symbol codes.
7339 case `$NM -V 2>&1` in
7340 *GNU* | *'with BFD'*)
7341 symcode='[ABCDGIRSTW]' ;;
7342 esac
7343
7344 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7345 # Gets list of data symbols to import.
7346 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7347 # Adjust the below global symbol transforms to fixup imported variables.
7348 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7349 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7350 lt_c_name_lib_hook="\
7351 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7352 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7353 else
7354 # Disable hooks by default.
7355 lt_cv_sys_global_symbol_to_import=
7356 lt_cdecl_hook=
7357 lt_c_name_hook=
7358 lt_c_name_lib_hook=
7359 fi
7360
7361 # Transform an extracted symbol line into a proper C declaration.
7362 # Some systems (esp. on ia64) link data and code symbols differently,
7363 # so use this general approach.
7364 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7365 $lt_cdecl_hook\
7366 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7367 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7368
7369 # Transform an extracted symbol line into symbol name and symbol address
7370 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7371 $lt_c_name_hook\
7372 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7373 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7374
7375 # Transform an extracted symbol line into symbol name with lib prefix and
7376 # symbol address.
7377 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7378 $lt_c_name_lib_hook\
7379 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7380 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7381 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7382
7383 # Handle CRLF in mingw tool chain
7384 opt_cr=
7385 case $build_os in
7386 mingw*)
7387 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7388 ;;
7389 esac
7390
7391 # Try without a prefix underscore, then with it.
7392 for ac_symprfx in "" "_"; do
7393
7394 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7395 symxfrm="\\1 $ac_symprfx\\2 \\2"
7396
7397 # Write the raw and C identifiers.
7398 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7399 # Fake it for dumpbin and say T for any non-static function,
7400 # D for any global variable and I for any imported variable.
7401 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7402 # which start with @ or ?.
7403 lt_cv_sys_global_symbol_pipe="$AWK '"\
7404 " {last_section=section; section=\$ 3};"\
7405 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7406 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7407 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7408 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7409 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7410 " \$ 0!~/External *\|/{next};"\
7411 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7412 " {if(hide[section]) next};"\
7413 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7414 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7415 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7416 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7417 " ' prfx=^$ac_symprfx"
7418 else
7419 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7420 fi
7421 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7422
7423 # Check to see that the pipe works correctly.
7424 pipe_works=no
7425
7426 rm -f conftest*
7427 cat > conftest.$ac_ext <<_LT_EOF
7428 #ifdef __cplusplus
7429 extern "C" {
7430 #endif
7431 char nm_test_var;
7432 void nm_test_func(void);
7433 void nm_test_func(void){}
7434 #ifdef __cplusplus
7435 }
7436 #endif
7437 int main(){nm_test_var='a';nm_test_func();return(0);}
7438 _LT_EOF
7439
7440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7441 (eval $ac_compile) 2>&5
7442 ac_status=$?
7443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444 test $ac_status = 0; }; then
7445 # Now try to grab the symbols.
7446 nlist=conftest.nm
7447 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7448 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7449 # Try sorting and uniquifying the output.
7450 if sort "$nlist" | uniq > "$nlist"T; then
7451 mv -f "$nlist"T "$nlist"
7452 else
7453 rm -f "$nlist"T
7454 fi
7455
7456 # Make sure that we snagged all the symbols we need.
7457 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7458 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7459 cat <<_LT_EOF > conftest.$ac_ext
7460 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7461 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7462 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7463 relocations are performed -- see ld's documentation on pseudo-relocs. */
7464 # define LT_DLSYM_CONST
7465 #elif defined __osf__
7466 /* This system does not cope well with relocations in const data. */
7467 # define LT_DLSYM_CONST
7468 #else
7469 # define LT_DLSYM_CONST const
7470 #endif
7471
7472 #ifdef __cplusplus
7473 extern "C" {
7474 #endif
7475
7476 _LT_EOF
7477 # Now generate the symbol file.
7478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7479
7480 cat <<_LT_EOF >> conftest.$ac_ext
7481
7482 /* The mapping between symbol names and symbols. */
7483 LT_DLSYM_CONST struct {
7484 const char *name;
7485 void *address;
7486 }
7487 lt__PROGRAM__LTX_preloaded_symbols[] =
7488 {
7489 { "@PROGRAM@", (void *) 0 },
7490 _LT_EOF
7491 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7492 cat <<\_LT_EOF >> conftest.$ac_ext
7493 {0, (void *) 0}
7494 };
7495
7496 /* This works around a problem in FreeBSD linker */
7497 #ifdef FREEBSD_WORKAROUND
7498 static const void *lt_preloaded_setup() {
7499 return lt__PROGRAM__LTX_preloaded_symbols;
7500 }
7501 #endif
7502
7503 #ifdef __cplusplus
7504 }
7505 #endif
7506 _LT_EOF
7507 # Now try linking the two files.
7508 mv conftest.$ac_objext conftstm.$ac_objext
7509 lt_globsym_save_LIBS=$LIBS
7510 lt_globsym_save_CFLAGS=$CFLAGS
7511 LIBS=conftstm.$ac_objext
7512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7514 (eval $ac_link) 2>&5
7515 ac_status=$?
7516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7518 pipe_works=yes
7519 fi
7520 LIBS=$lt_globsym_save_LIBS
7521 CFLAGS=$lt_globsym_save_CFLAGS
7522 else
7523 echo "cannot find nm_test_func in $nlist" >&5
7524 fi
7525 else
7526 echo "cannot find nm_test_var in $nlist" >&5
7527 fi
7528 else
7529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7530 fi
7531 else
7532 echo "$progname: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7534 fi
7535 rm -rf conftest* conftst*
7536
7537 # Do not use the global_symbol_pipe unless it works.
7538 if test yes = "$pipe_works"; then
7539 break
7540 else
7541 lt_cv_sys_global_symbol_pipe=
7542 fi
7543 done
7544
7545 fi
7546
7547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7548 lt_cv_sys_global_symbol_to_cdecl=
7549 fi
7550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7552 printf "%s\n" "failed" >&6; }
7553 else
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7555 printf "%s\n" "ok" >&6; }
7556 fi
7557
7558 # Response file support.
7559 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7560 nm_file_list_spec='@'
7561 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7562 nm_file_list_spec='@'
7563 fi
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7602 printf %s "checking for sysroot... " >&6; }
7603
7604 # Check whether --with-sysroot was given.
7605 if test ${with_sysroot+y}
7606 then :
7607 withval=$with_sysroot;
7608 else $as_nop
7609 with_sysroot=no
7610 fi
7611
7612
7613 lt_sysroot=
7614 case $with_sysroot in #(
7615 yes)
7616 if test yes = "$GCC"; then
7617 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7618 fi
7619 ;; #(
7620 /*)
7621 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7622 ;; #(
7623 no|'')
7624 ;; #(
7625 *)
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7627 printf "%s\n" "$with_sysroot" >&6; }
7628 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7629 ;;
7630 esac
7631
7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7633 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7634
7635
7636
7637
7638
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7640 printf %s "checking for a working dd... " >&6; }
7641 if test ${ac_cv_path_lt_DD+y}
7642 then :
7643 printf %s "(cached) " >&6
7644 else $as_nop
7645 printf 0123456789abcdef0123456789abcdef >conftest.i
7646 cat conftest.i conftest.i >conftest2.i
7647 : ${lt_DD:=$DD}
7648 if test -z "$lt_DD"; then
7649 ac_path_lt_DD_found=false
7650 # Loop through the user's path and test for each of PROGNAME-LIST
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654 IFS=$as_save_IFS
7655 case $as_dir in #(((
7656 '') as_dir=./ ;;
7657 */) ;;
7658 *) as_dir=$as_dir/ ;;
7659 esac
7660 for ac_prog in dd
7661 do
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7664 as_fn_executable_p "$ac_path_lt_DD" || continue
7665 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7666 cmp -s conftest.i conftest.out \
7667 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7668 fi
7669 $ac_path_lt_DD_found && break 3
7670 done
7671 done
7672 done
7673 IFS=$as_save_IFS
7674 if test -z "$ac_cv_path_lt_DD"; then
7675 :
7676 fi
7677 else
7678 ac_cv_path_lt_DD=$lt_DD
7679 fi
7680
7681 rm -f conftest.i conftest2.i conftest.out
7682 fi
7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7684 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7685
7686
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7688 printf %s "checking how to truncate binary pipes... " >&6; }
7689 if test ${lt_cv_truncate_bin+y}
7690 then :
7691 printf %s "(cached) " >&6
7692 else $as_nop
7693 printf 0123456789abcdef0123456789abcdef >conftest.i
7694 cat conftest.i conftest.i >conftest2.i
7695 lt_cv_truncate_bin=
7696 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7697 cmp -s conftest.i conftest.out \
7698 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7699 fi
7700 rm -f conftest.i conftest2.i conftest.out
7701 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7702 fi
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7704 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7705
7706
7707
7708
7709
7710
7711
7712 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7713 func_cc_basename ()
7714 {
7715 for cc_temp in $*""; do
7716 case $cc_temp in
7717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7719 \-*) ;;
7720 *) break;;
7721 esac
7722 done
7723 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7724 }
7725
7726 # Check whether --enable-libtool-lock was given.
7727 if test ${enable_libtool_lock+y}
7728 then :
7729 enableval=$enable_libtool_lock;
7730 fi
7731
7732 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7733
7734 # Some flags need to be propagated to the compiler or linker for good
7735 # libtool support.
7736 case $host in
7737 ia64-*-hpux*)
7738 # Find out what ABI is being produced by ac_compile, and set mode
7739 # options accordingly.
7740 echo 'int i;' > conftest.$ac_ext
7741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7742 (eval $ac_compile) 2>&5
7743 ac_status=$?
7744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; }; then
7746 case `$FILECMD conftest.$ac_objext` in
7747 *ELF-32*)
7748 HPUX_IA64_MODE=32
7749 ;;
7750 *ELF-64*)
7751 HPUX_IA64_MODE=64
7752 ;;
7753 esac
7754 fi
7755 rm -rf conftest*
7756 ;;
7757 *-*-irix6*)
7758 # Find out what ABI is being produced by ac_compile, and set linker
7759 # options accordingly.
7760 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762 (eval $ac_compile) 2>&5
7763 ac_status=$?
7764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765 test $ac_status = 0; }; then
7766 if test yes = "$lt_cv_prog_gnu_ld"; then
7767 case `$FILECMD conftest.$ac_objext` in
7768 *32-bit*)
7769 LD="${LD-ld} -melf32bsmip"
7770 ;;
7771 *N32*)
7772 LD="${LD-ld} -melf32bmipn32"
7773 ;;
7774 *64-bit*)
7775 LD="${LD-ld} -melf64bmip"
7776 ;;
7777 esac
7778 else
7779 case `$FILECMD conftest.$ac_objext` in
7780 *32-bit*)
7781 LD="${LD-ld} -32"
7782 ;;
7783 *N32*)
7784 LD="${LD-ld} -n32"
7785 ;;
7786 *64-bit*)
7787 LD="${LD-ld} -64"
7788 ;;
7789 esac
7790 fi
7791 fi
7792 rm -rf conftest*
7793 ;;
7794
7795 mips64*-*linux*)
7796 # Find out what ABI is being produced by ac_compile, and set linker
7797 # options accordingly.
7798 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800 (eval $ac_compile) 2>&5
7801 ac_status=$?
7802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; }; then
7804 emul=elf
7805 case `$FILECMD conftest.$ac_objext` in
7806 *32-bit*)
7807 emul="${emul}32"
7808 ;;
7809 *64-bit*)
7810 emul="${emul}64"
7811 ;;
7812 esac
7813 case `$FILECMD conftest.$ac_objext` in
7814 *MSB*)
7815 emul="${emul}btsmip"
7816 ;;
7817 *LSB*)
7818 emul="${emul}ltsmip"
7819 ;;
7820 esac
7821 case `$FILECMD conftest.$ac_objext` in
7822 *N32*)
7823 emul="${emul}n32"
7824 ;;
7825 esac
7826 LD="${LD-ld} -m $emul"
7827 fi
7828 rm -rf conftest*
7829 ;;
7830
7831 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7832 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7833 # Find out what ABI is being produced by ac_compile, and set linker
7834 # options accordingly. Note that the listed cases only cover the
7835 # situations where additional linker options are needed (such as when
7836 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7837 # vice versa); the common cases where no linker options are needed do
7838 # not appear in the list.
7839 echo 'int i;' > conftest.$ac_ext
7840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7841 (eval $ac_compile) 2>&5
7842 ac_status=$?
7843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }; then
7845 case `$FILECMD conftest.o` in
7846 *32-bit*)
7847 case $host in
7848 x86_64-*kfreebsd*-gnu)
7849 LD="${LD-ld} -m elf_i386_fbsd"
7850 ;;
7851 x86_64-*linux*)
7852 case `$FILECMD conftest.o` in
7853 *x86-64*)
7854 LD="${LD-ld} -m elf32_x86_64"
7855 ;;
7856 *)
7857 LD="${LD-ld} -m elf_i386"
7858 ;;
7859 esac
7860 ;;
7861 powerpc64le-*linux*)
7862 LD="${LD-ld} -m elf32lppclinux"
7863 ;;
7864 powerpc64-*linux*)
7865 LD="${LD-ld} -m elf32ppclinux"
7866 ;;
7867 s390x-*linux*)
7868 LD="${LD-ld} -m elf_s390"
7869 ;;
7870 sparc64-*linux*)
7871 LD="${LD-ld} -m elf32_sparc"
7872 ;;
7873 esac
7874 ;;
7875 *64-bit*)
7876 case $host in
7877 x86_64-*kfreebsd*-gnu)
7878 LD="${LD-ld} -m elf_x86_64_fbsd"
7879 ;;
7880 x86_64-*linux*)
7881 LD="${LD-ld} -m elf_x86_64"
7882 ;;
7883 powerpcle-*linux*)
7884 LD="${LD-ld} -m elf64lppc"
7885 ;;
7886 powerpc-*linux*)
7887 LD="${LD-ld} -m elf64ppc"
7888 ;;
7889 s390*-*linux*|s390*-*tpf*)
7890 LD="${LD-ld} -m elf64_s390"
7891 ;;
7892 sparc*-*linux*)
7893 LD="${LD-ld} -m elf64_sparc"
7894 ;;
7895 esac
7896 ;;
7897 esac
7898 fi
7899 rm -rf conftest*
7900 ;;
7901
7902 *-*-sco3.2v5*)
7903 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7904 SAVE_CFLAGS=$CFLAGS
7905 CFLAGS="$CFLAGS -belf"
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7907 printf %s "checking whether the C compiler needs -belf... " >&6; }
7908 if test ${lt_cv_cc_needs_belf+y}
7909 then :
7910 printf %s "(cached) " >&6
7911 else $as_nop
7912 ac_ext=c
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920
7921 int
7922 main (void)
7923 {
7924
7925 ;
7926 return 0;
7927 }
7928 _ACEOF
7929 if ac_fn_c_try_link "$LINENO"
7930 then :
7931 lt_cv_cc_needs_belf=yes
7932 else $as_nop
7933 lt_cv_cc_needs_belf=no
7934 fi
7935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7936 conftest$ac_exeext conftest.$ac_ext
7937 ac_ext=c
7938 ac_cpp='$CPP $CPPFLAGS'
7939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7942
7943 fi
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7945 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7946 if test yes != "$lt_cv_cc_needs_belf"; then
7947 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7948 CFLAGS=$SAVE_CFLAGS
7949 fi
7950 ;;
7951 *-*solaris*)
7952 # Find out what ABI is being produced by ac_compile, and set linker
7953 # options accordingly.
7954 echo 'int i;' > conftest.$ac_ext
7955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7956 (eval $ac_compile) 2>&5
7957 ac_status=$?
7958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; }; then
7960 case `$FILECMD conftest.o` in
7961 *64-bit*)
7962 case $lt_cv_prog_gnu_ld in
7963 yes*)
7964 case $host in
7965 i?86-*-solaris*|x86_64-*-solaris*)
7966 LD="${LD-ld} -m elf_x86_64"
7967 ;;
7968 sparc*-*-solaris*)
7969 LD="${LD-ld} -m elf64_sparc"
7970 ;;
7971 esac
7972 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7973 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7974 LD=${LD-ld}_sol2
7975 fi
7976 ;;
7977 *)
7978 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7979 LD="${LD-ld} -64"
7980 fi
7981 ;;
7982 esac
7983 ;;
7984 esac
7985 fi
7986 rm -rf conftest*
7987 ;;
7988 esac
7989
7990 need_locks=$enable_libtool_lock
7991
7992 if test -n "$ac_tool_prefix"; then
7993 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}mt; ac_word=$2
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 printf %s "checking for $ac_word... " >&6; }
7997 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7998 then :
7999 printf %s "(cached) " >&6
8000 else $as_nop
8001 if test -n "$MANIFEST_TOOL"; then
8002 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007 IFS=$as_save_IFS
8008 case $as_dir in #(((
8009 '') as_dir=./ ;;
8010 */) ;;
8011 *) as_dir=$as_dir/ ;;
8012 esac
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019 done
8020 done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8026 if test -n "$MANIFEST_TOOL"; then
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8028 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8029 else
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 printf "%s\n" "no" >&6; }
8032 fi
8033
8034
8035 fi
8036 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8037 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8038 # Extract the first word of "mt", so it can be a program name with args.
8039 set dummy mt; ac_word=$2
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 printf %s "checking for $ac_word... " >&6; }
8042 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8043 then :
8044 printf %s "(cached) " >&6
8045 else $as_nop
8046 if test -n "$ac_ct_MANIFEST_TOOL"; then
8047 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8048 else
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052 IFS=$as_save_IFS
8053 case $as_dir in #(((
8054 '') as_dir=./ ;;
8055 */) ;;
8056 *) as_dir=$as_dir/ ;;
8057 esac
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8060 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8062 break 2
8063 fi
8064 done
8065 done
8066 IFS=$as_save_IFS
8067
8068 fi
8069 fi
8070 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8071 if test -n "$ac_ct_MANIFEST_TOOL"; then
8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8073 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8074 else
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 printf "%s\n" "no" >&6; }
8077 fi
8078
8079 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8080 MANIFEST_TOOL=":"
8081 else
8082 case $cross_compiling:$ac_tool_warned in
8083 yes:)
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8085 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8086 ac_tool_warned=yes ;;
8087 esac
8088 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8089 fi
8090 else
8091 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8092 fi
8093
8094 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8096 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8097 if test ${lt_cv_path_mainfest_tool+y}
8098 then :
8099 printf %s "(cached) " >&6
8100 else $as_nop
8101 lt_cv_path_mainfest_tool=no
8102 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8103 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8104 cat conftest.err >&5
8105 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8106 lt_cv_path_mainfest_tool=yes
8107 fi
8108 rm -f conftest*
8109 fi
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8111 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8112 if test yes != "$lt_cv_path_mainfest_tool"; then
8113 MANIFEST_TOOL=:
8114 fi
8115
8116
8117
8118
8119
8120
8121 case $host_os in
8122 rhapsody* | darwin*)
8123 if test -n "$ac_tool_prefix"; then
8124 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8125 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 printf %s "checking for $ac_word... " >&6; }
8128 if test ${ac_cv_prog_DSYMUTIL+y}
8129 then :
8130 printf %s "(cached) " >&6
8131 else $as_nop
8132 if test -n "$DSYMUTIL"; then
8133 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138 IFS=$as_save_IFS
8139 case $as_dir in #(((
8140 '') as_dir=./ ;;
8141 */) ;;
8142 *) as_dir=$as_dir/ ;;
8143 esac
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8146 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8148 break 2
8149 fi
8150 done
8151 done
8152 IFS=$as_save_IFS
8153
8154 fi
8155 fi
8156 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8157 if test -n "$DSYMUTIL"; then
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8159 printf "%s\n" "$DSYMUTIL" >&6; }
8160 else
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 printf "%s\n" "no" >&6; }
8163 fi
8164
8165
8166 fi
8167 if test -z "$ac_cv_prog_DSYMUTIL"; then
8168 ac_ct_DSYMUTIL=$DSYMUTIL
8169 # Extract the first word of "dsymutil", so it can be a program name with args.
8170 set dummy dsymutil; ac_word=$2
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 printf %s "checking for $ac_word... " >&6; }
8173 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8174 then :
8175 printf %s "(cached) " >&6
8176 else $as_nop
8177 if test -n "$ac_ct_DSYMUTIL"; then
8178 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8182 do
8183 IFS=$as_save_IFS
8184 case $as_dir in #(((
8185 '') as_dir=./ ;;
8186 */) ;;
8187 *) as_dir=$as_dir/ ;;
8188 esac
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8191 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8193 break 2
8194 fi
8195 done
8196 done
8197 IFS=$as_save_IFS
8198
8199 fi
8200 fi
8201 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8202 if test -n "$ac_ct_DSYMUTIL"; then
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8204 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8205 else
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 printf "%s\n" "no" >&6; }
8208 fi
8209
8210 if test "x$ac_ct_DSYMUTIL" = x; then
8211 DSYMUTIL=":"
8212 else
8213 case $cross_compiling:$ac_tool_warned in
8214 yes:)
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8216 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8217 ac_tool_warned=yes ;;
8218 esac
8219 DSYMUTIL=$ac_ct_DSYMUTIL
8220 fi
8221 else
8222 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8223 fi
8224
8225 if test -n "$ac_tool_prefix"; then
8226 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8227 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 printf %s "checking for $ac_word... " >&6; }
8230 if test ${ac_cv_prog_NMEDIT+y}
8231 then :
8232 printf %s "(cached) " >&6
8233 else $as_nop
8234 if test -n "$NMEDIT"; then
8235 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240 IFS=$as_save_IFS
8241 case $as_dir in #(((
8242 '') as_dir=./ ;;
8243 */) ;;
8244 *) as_dir=$as_dir/ ;;
8245 esac
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8248 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252 done
8253 done
8254 IFS=$as_save_IFS
8255
8256 fi
8257 fi
8258 NMEDIT=$ac_cv_prog_NMEDIT
8259 if test -n "$NMEDIT"; then
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8261 printf "%s\n" "$NMEDIT" >&6; }
8262 else
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 printf "%s\n" "no" >&6; }
8265 fi
8266
8267
8268 fi
8269 if test -z "$ac_cv_prog_NMEDIT"; then
8270 ac_ct_NMEDIT=$NMEDIT
8271 # Extract the first word of "nmedit", so it can be a program name with args.
8272 set dummy nmedit; ac_word=$2
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 printf %s "checking for $ac_word... " >&6; }
8275 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8276 then :
8277 printf %s "(cached) " >&6
8278 else $as_nop
8279 if test -n "$ac_ct_NMEDIT"; then
8280 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8284 do
8285 IFS=$as_save_IFS
8286 case $as_dir in #(((
8287 '') as_dir=./ ;;
8288 */) ;;
8289 *) as_dir=$as_dir/ ;;
8290 esac
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8295 break 2
8296 fi
8297 done
8298 done
8299 IFS=$as_save_IFS
8300
8301 fi
8302 fi
8303 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8304 if test -n "$ac_ct_NMEDIT"; then
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8306 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8307 else
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 printf "%s\n" "no" >&6; }
8310 fi
8311
8312 if test "x$ac_ct_NMEDIT" = x; then
8313 NMEDIT=":"
8314 else
8315 case $cross_compiling:$ac_tool_warned in
8316 yes:)
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8318 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8319 ac_tool_warned=yes ;;
8320 esac
8321 NMEDIT=$ac_ct_NMEDIT
8322 fi
8323 else
8324 NMEDIT="$ac_cv_prog_NMEDIT"
8325 fi
8326
8327 if test -n "$ac_tool_prefix"; then
8328 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8329 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 printf %s "checking for $ac_word... " >&6; }
8332 if test ${ac_cv_prog_LIPO+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else $as_nop
8336 if test -n "$LIPO"; then
8337 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8341 do
8342 IFS=$as_save_IFS
8343 case $as_dir in #(((
8344 '') as_dir=./ ;;
8345 */) ;;
8346 *) as_dir=$as_dir/ ;;
8347 esac
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8352 break 2
8353 fi
8354 done
8355 done
8356 IFS=$as_save_IFS
8357
8358 fi
8359 fi
8360 LIPO=$ac_cv_prog_LIPO
8361 if test -n "$LIPO"; then
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8363 printf "%s\n" "$LIPO" >&6; }
8364 else
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 printf "%s\n" "no" >&6; }
8367 fi
8368
8369
8370 fi
8371 if test -z "$ac_cv_prog_LIPO"; then
8372 ac_ct_LIPO=$LIPO
8373 # Extract the first word of "lipo", so it can be a program name with args.
8374 set dummy lipo; ac_word=$2
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 printf %s "checking for $ac_word... " >&6; }
8377 if test ${ac_cv_prog_ac_ct_LIPO+y}
8378 then :
8379 printf %s "(cached) " >&6
8380 else $as_nop
8381 if test -n "$ac_ct_LIPO"; then
8382 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8383 else
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8386 do
8387 IFS=$as_save_IFS
8388 case $as_dir in #(((
8389 '') as_dir=./ ;;
8390 */) ;;
8391 *) as_dir=$as_dir/ ;;
8392 esac
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8395 ac_cv_prog_ac_ct_LIPO="lipo"
8396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8397 break 2
8398 fi
8399 done
8400 done
8401 IFS=$as_save_IFS
8402
8403 fi
8404 fi
8405 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8406 if test -n "$ac_ct_LIPO"; then
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8408 printf "%s\n" "$ac_ct_LIPO" >&6; }
8409 else
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 printf "%s\n" "no" >&6; }
8412 fi
8413
8414 if test "x$ac_ct_LIPO" = x; then
8415 LIPO=":"
8416 else
8417 case $cross_compiling:$ac_tool_warned in
8418 yes:)
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8420 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8421 ac_tool_warned=yes ;;
8422 esac
8423 LIPO=$ac_ct_LIPO
8424 fi
8425 else
8426 LIPO="$ac_cv_prog_LIPO"
8427 fi
8428
8429 if test -n "$ac_tool_prefix"; then
8430 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8431 set dummy ${ac_tool_prefix}otool; ac_word=$2
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 printf %s "checking for $ac_word... " >&6; }
8434 if test ${ac_cv_prog_OTOOL+y}
8435 then :
8436 printf %s "(cached) " >&6
8437 else $as_nop
8438 if test -n "$OTOOL"; then
8439 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444 IFS=$as_save_IFS
8445 case $as_dir in #(((
8446 '') as_dir=./ ;;
8447 */) ;;
8448 *) as_dir=$as_dir/ ;;
8449 esac
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456 done
8457 done
8458 IFS=$as_save_IFS
8459
8460 fi
8461 fi
8462 OTOOL=$ac_cv_prog_OTOOL
8463 if test -n "$OTOOL"; then
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8465 printf "%s\n" "$OTOOL" >&6; }
8466 else
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 printf "%s\n" "no" >&6; }
8469 fi
8470
8471
8472 fi
8473 if test -z "$ac_cv_prog_OTOOL"; then
8474 ac_ct_OTOOL=$OTOOL
8475 # Extract the first word of "otool", so it can be a program name with args.
8476 set dummy otool; ac_word=$2
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 printf %s "checking for $ac_word... " >&6; }
8479 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8480 then :
8481 printf %s "(cached) " >&6
8482 else $as_nop
8483 if test -n "$ac_ct_OTOOL"; then
8484 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8485 else
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8488 do
8489 IFS=$as_save_IFS
8490 case $as_dir in #(((
8491 '') as_dir=./ ;;
8492 */) ;;
8493 *) as_dir=$as_dir/ ;;
8494 esac
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8497 ac_cv_prog_ac_ct_OTOOL="otool"
8498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8499 break 2
8500 fi
8501 done
8502 done
8503 IFS=$as_save_IFS
8504
8505 fi
8506 fi
8507 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8508 if test -n "$ac_ct_OTOOL"; then
8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8510 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8511 else
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 printf "%s\n" "no" >&6; }
8514 fi
8515
8516 if test "x$ac_ct_OTOOL" = x; then
8517 OTOOL=":"
8518 else
8519 case $cross_compiling:$ac_tool_warned in
8520 yes:)
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8523 ac_tool_warned=yes ;;
8524 esac
8525 OTOOL=$ac_ct_OTOOL
8526 fi
8527 else
8528 OTOOL="$ac_cv_prog_OTOOL"
8529 fi
8530
8531 if test -n "$ac_tool_prefix"; then
8532 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8533 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 printf %s "checking for $ac_word... " >&6; }
8536 if test ${ac_cv_prog_OTOOL64+y}
8537 then :
8538 printf %s "(cached) " >&6
8539 else $as_nop
8540 if test -n "$OTOOL64"; then
8541 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8542 else
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8545 do
8546 IFS=$as_save_IFS
8547 case $as_dir in #(((
8548 '') as_dir=./ ;;
8549 */) ;;
8550 *) as_dir=$as_dir/ ;;
8551 esac
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8556 break 2
8557 fi
8558 done
8559 done
8560 IFS=$as_save_IFS
8561
8562 fi
8563 fi
8564 OTOOL64=$ac_cv_prog_OTOOL64
8565 if test -n "$OTOOL64"; then
8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8567 printf "%s\n" "$OTOOL64" >&6; }
8568 else
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 printf "%s\n" "no" >&6; }
8571 fi
8572
8573
8574 fi
8575 if test -z "$ac_cv_prog_OTOOL64"; then
8576 ac_ct_OTOOL64=$OTOOL64
8577 # Extract the first word of "otool64", so it can be a program name with args.
8578 set dummy otool64; ac_word=$2
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 printf %s "checking for $ac_word... " >&6; }
8581 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8582 then :
8583 printf %s "(cached) " >&6
8584 else $as_nop
8585 if test -n "$ac_ct_OTOOL64"; then
8586 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8587 else
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8590 do
8591 IFS=$as_save_IFS
8592 case $as_dir in #(((
8593 '') as_dir=./ ;;
8594 */) ;;
8595 *) as_dir=$as_dir/ ;;
8596 esac
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8599 ac_cv_prog_ac_ct_OTOOL64="otool64"
8600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8601 break 2
8602 fi
8603 done
8604 done
8605 IFS=$as_save_IFS
8606
8607 fi
8608 fi
8609 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8610 if test -n "$ac_ct_OTOOL64"; then
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8612 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8613 else
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 printf "%s\n" "no" >&6; }
8616 fi
8617
8618 if test "x$ac_ct_OTOOL64" = x; then
8619 OTOOL64=":"
8620 else
8621 case $cross_compiling:$ac_tool_warned in
8622 yes:)
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8625 ac_tool_warned=yes ;;
8626 esac
8627 OTOOL64=$ac_ct_OTOOL64
8628 fi
8629 else
8630 OTOOL64="$ac_cv_prog_OTOOL64"
8631 fi
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8660 printf %s "checking for -single_module linker flag... " >&6; }
8661 if test ${lt_cv_apple_cc_single_mod+y}
8662 then :
8663 printf %s "(cached) " >&6
8664 else $as_nop
8665 lt_cv_apple_cc_single_mod=no
8666 if test -z "$LT_MULTI_MODULE"; then
8667 # By default we will add the -single_module flag. You can override
8668 # by either setting the environment variable LT_MULTI_MODULE
8669 # non-empty at configure time, or by adding -multi_module to the
8670 # link flags.
8671 rm -rf libconftest.dylib*
8672 echo "int foo(void){return 1;}" > conftest.c
8673 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8674 -dynamiclib -Wl,-single_module conftest.c" >&5
8675 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8676 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8677 _lt_result=$?
8678 # If there is a non-empty error log, and "single_module"
8679 # appears in it, assume the flag caused a linker warning
8680 if test -s conftest.err && $GREP single_module conftest.err; then
8681 cat conftest.err >&5
8682 # Otherwise, if the output was created with a 0 exit code from
8683 # the compiler, it worked.
8684 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8685 lt_cv_apple_cc_single_mod=yes
8686 else
8687 cat conftest.err >&5
8688 fi
8689 rm -rf libconftest.dylib*
8690 rm -f conftest.*
8691 fi
8692 fi
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8694 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8695
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8697 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8698 if test ${lt_cv_ld_exported_symbols_list+y}
8699 then :
8700 printf %s "(cached) " >&6
8701 else $as_nop
8702 lt_cv_ld_exported_symbols_list=no
8703 save_LDFLAGS=$LDFLAGS
8704 echo "_main" > conftest.sym
8705 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708
8709 int
8710 main (void)
8711 {
8712
8713 ;
8714 return 0;
8715 }
8716 _ACEOF
8717 if ac_fn_c_try_link "$LINENO"
8718 then :
8719 lt_cv_ld_exported_symbols_list=yes
8720 else $as_nop
8721 lt_cv_ld_exported_symbols_list=no
8722 fi
8723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8724 conftest$ac_exeext conftest.$ac_ext
8725 LDFLAGS=$save_LDFLAGS
8726
8727 fi
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8729 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8730
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8732 printf %s "checking for -force_load linker flag... " >&6; }
8733 if test ${lt_cv_ld_force_load+y}
8734 then :
8735 printf %s "(cached) " >&6
8736 else $as_nop
8737 lt_cv_ld_force_load=no
8738 cat > conftest.c << _LT_EOF
8739 int forced_loaded() { return 2;}
8740 _LT_EOF
8741 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8742 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8743 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8744 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8745 echo "$RANLIB libconftest.a" >&5
8746 $RANLIB libconftest.a 2>&5
8747 cat > conftest.c << _LT_EOF
8748 int main() { return 0;}
8749 _LT_EOF
8750 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8751 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8752 _lt_result=$?
8753 if test -s conftest.err && $GREP force_load conftest.err; then
8754 cat conftest.err >&5
8755 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8756 lt_cv_ld_force_load=yes
8757 else
8758 cat conftest.err >&5
8759 fi
8760 rm -f conftest.err libconftest.a conftest conftest.c
8761 rm -rf conftest.dSYM
8762
8763 fi
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8765 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8766 case $host_os in
8767 rhapsody* | darwin1.[012])
8768 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8769 darwin1.*)
8770 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8771 darwin*)
8772 case $MACOSX_DEPLOYMENT_TARGET,$host in
8773 10.[012],*|,*powerpc*-darwin[5-8]*)
8774 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8775 *)
8776 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8777 esac
8778 ;;
8779 esac
8780 if test yes = "$lt_cv_apple_cc_single_mod"; then
8781 _lt_dar_single_mod='$single_module'
8782 fi
8783 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8784 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8785 else
8786 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8787 fi
8788 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8789 _lt_dsymutil='~$DSYMUTIL $lib || :'
8790 else
8791 _lt_dsymutil=
8792 fi
8793 ;;
8794 esac
8795
8796 # func_munge_path_list VARIABLE PATH
8797 # -----------------------------------
8798 # VARIABLE is name of variable containing _space_ separated list of
8799 # directories to be munged by the contents of PATH, which is string
8800 # having a format:
8801 # "DIR[:DIR]:"
8802 # string "DIR[ DIR]" will be prepended to VARIABLE
8803 # ":DIR[:DIR]"
8804 # string "DIR[ DIR]" will be appended to VARIABLE
8805 # "DIRP[:DIRP]::[DIRA:]DIRA"
8806 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8807 # "DIRA[ DIRA]" will be appended to VARIABLE
8808 # "DIR[:DIR]"
8809 # VARIABLE will be replaced by "DIR[ DIR]"
8810 func_munge_path_list ()
8811 {
8812 case x$2 in
8813 x)
8814 ;;
8815 *:)
8816 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8817 ;;
8818 x:*)
8819 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8820 ;;
8821 *::*)
8822 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8823 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8824 ;;
8825 *)
8826 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8827 ;;
8828 esac
8829 }
8830
8831 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8832 "
8833 if test "x$ac_cv_header_dlfcn_h" = xyes
8834 then :
8835 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8836
8837 fi
8838
8839
8840
8841
8842
8843 # Set options
8844 enable_win32_dll=yes
8845
8846 case $host in
8847 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8848 if test -n "$ac_tool_prefix"; then
8849 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8850 set dummy ${ac_tool_prefix}as; ac_word=$2
8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852 printf %s "checking for $ac_word... " >&6; }
8853 if test ${ac_cv_prog_AS+y}
8854 then :
8855 printf %s "(cached) " >&6
8856 else $as_nop
8857 if test -n "$AS"; then
8858 ac_cv_prog_AS="$AS" # Let the user override the test.
8859 else
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8862 do
8863 IFS=$as_save_IFS
8864 case $as_dir in #(((
8865 '') as_dir=./ ;;
8866 */) ;;
8867 *) as_dir=$as_dir/ ;;
8868 esac
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8871 ac_cv_prog_AS="${ac_tool_prefix}as"
8872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8873 break 2
8874 fi
8875 done
8876 done
8877 IFS=$as_save_IFS
8878
8879 fi
8880 fi
8881 AS=$ac_cv_prog_AS
8882 if test -n "$AS"; then
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8884 printf "%s\n" "$AS" >&6; }
8885 else
8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 printf "%s\n" "no" >&6; }
8888 fi
8889
8890
8891 fi
8892 if test -z "$ac_cv_prog_AS"; then
8893 ac_ct_AS=$AS
8894 # Extract the first word of "as", so it can be a program name with args.
8895 set dummy as; ac_word=$2
8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 printf %s "checking for $ac_word... " >&6; }
8898 if test ${ac_cv_prog_ac_ct_AS+y}
8899 then :
8900 printf %s "(cached) " >&6
8901 else $as_nop
8902 if test -n "$ac_ct_AS"; then
8903 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8904 else
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908 IFS=$as_save_IFS
8909 case $as_dir in #(((
8910 '') as_dir=./ ;;
8911 */) ;;
8912 *) as_dir=$as_dir/ ;;
8913 esac
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8916 ac_cv_prog_ac_ct_AS="as"
8917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8918 break 2
8919 fi
8920 done
8921 done
8922 IFS=$as_save_IFS
8923
8924 fi
8925 fi
8926 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8927 if test -n "$ac_ct_AS"; then
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8929 printf "%s\n" "$ac_ct_AS" >&6; }
8930 else
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 printf "%s\n" "no" >&6; }
8933 fi
8934
8935 if test "x$ac_ct_AS" = x; then
8936 AS="false"
8937 else
8938 case $cross_compiling:$ac_tool_warned in
8939 yes:)
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8942 ac_tool_warned=yes ;;
8943 esac
8944 AS=$ac_ct_AS
8945 fi
8946 else
8947 AS="$ac_cv_prog_AS"
8948 fi
8949
8950 if test -n "$ac_tool_prefix"; then
8951 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8952 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954 printf %s "checking for $ac_word... " >&6; }
8955 if test ${ac_cv_prog_DLLTOOL+y}
8956 then :
8957 printf %s "(cached) " >&6
8958 else $as_nop
8959 if test -n "$DLLTOOL"; then
8960 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8961 else
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $PATH
8964 do
8965 IFS=$as_save_IFS
8966 case $as_dir in #(((
8967 '') as_dir=./ ;;
8968 */) ;;
8969 *) as_dir=$as_dir/ ;;
8970 esac
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8973 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8975 break 2
8976 fi
8977 done
8978 done
8979 IFS=$as_save_IFS
8980
8981 fi
8982 fi
8983 DLLTOOL=$ac_cv_prog_DLLTOOL
8984 if test -n "$DLLTOOL"; then
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8986 printf "%s\n" "$DLLTOOL" >&6; }
8987 else
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 printf "%s\n" "no" >&6; }
8990 fi
8991
8992
8993 fi
8994 if test -z "$ac_cv_prog_DLLTOOL"; then
8995 ac_ct_DLLTOOL=$DLLTOOL
8996 # Extract the first word of "dlltool", so it can be a program name with args.
8997 set dummy dlltool; ac_word=$2
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 printf %s "checking for $ac_word... " >&6; }
9000 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9001 then :
9002 printf %s "(cached) " >&6
9003 else $as_nop
9004 if test -n "$ac_ct_DLLTOOL"; then
9005 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010 IFS=$as_save_IFS
9011 case $as_dir in #(((
9012 '') as_dir=./ ;;
9013 */) ;;
9014 *) as_dir=$as_dir/ ;;
9015 esac
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9018 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9020 break 2
9021 fi
9022 done
9023 done
9024 IFS=$as_save_IFS
9025
9026 fi
9027 fi
9028 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9029 if test -n "$ac_ct_DLLTOOL"; then
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9031 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9032 else
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 printf "%s\n" "no" >&6; }
9035 fi
9036
9037 if test "x$ac_ct_DLLTOOL" = x; then
9038 DLLTOOL="false"
9039 else
9040 case $cross_compiling:$ac_tool_warned in
9041 yes:)
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9044 ac_tool_warned=yes ;;
9045 esac
9046 DLLTOOL=$ac_ct_DLLTOOL
9047 fi
9048 else
9049 DLLTOOL="$ac_cv_prog_DLLTOOL"
9050 fi
9051
9052 if test -n "$ac_tool_prefix"; then
9053 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9054 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 printf %s "checking for $ac_word... " >&6; }
9057 if test ${ac_cv_prog_OBJDUMP+y}
9058 then :
9059 printf %s "(cached) " >&6
9060 else $as_nop
9061 if test -n "$OBJDUMP"; then
9062 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9063 else
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9066 do
9067 IFS=$as_save_IFS
9068 case $as_dir in #(((
9069 '') as_dir=./ ;;
9070 */) ;;
9071 *) as_dir=$as_dir/ ;;
9072 esac
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9075 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9077 break 2
9078 fi
9079 done
9080 done
9081 IFS=$as_save_IFS
9082
9083 fi
9084 fi
9085 OBJDUMP=$ac_cv_prog_OBJDUMP
9086 if test -n "$OBJDUMP"; then
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9088 printf "%s\n" "$OBJDUMP" >&6; }
9089 else
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 printf "%s\n" "no" >&6; }
9092 fi
9093
9094
9095 fi
9096 if test -z "$ac_cv_prog_OBJDUMP"; then
9097 ac_ct_OBJDUMP=$OBJDUMP
9098 # Extract the first word of "objdump", so it can be a program name with args.
9099 set dummy objdump; ac_word=$2
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101 printf %s "checking for $ac_word... " >&6; }
9102 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9103 then :
9104 printf %s "(cached) " >&6
9105 else $as_nop
9106 if test -n "$ac_ct_OBJDUMP"; then
9107 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9108 else
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 for as_dir in $PATH
9111 do
9112 IFS=$as_save_IFS
9113 case $as_dir in #(((
9114 '') as_dir=./ ;;
9115 */) ;;
9116 *) as_dir=$as_dir/ ;;
9117 esac
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9120 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9122 break 2
9123 fi
9124 done
9125 done
9126 IFS=$as_save_IFS
9127
9128 fi
9129 fi
9130 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9131 if test -n "$ac_ct_OBJDUMP"; then
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9133 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9134 else
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 printf "%s\n" "no" >&6; }
9137 fi
9138
9139 if test "x$ac_ct_OBJDUMP" = x; then
9140 OBJDUMP="false"
9141 else
9142 case $cross_compiling:$ac_tool_warned in
9143 yes:)
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9145 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9146 ac_tool_warned=yes ;;
9147 esac
9148 OBJDUMP=$ac_ct_OBJDUMP
9149 fi
9150 else
9151 OBJDUMP="$ac_cv_prog_OBJDUMP"
9152 fi
9153
9154 ;;
9155 esac
9156
9157 test -z "$AS" && AS=as
9158
9159
9160
9161
9162
9163 test -z "$DLLTOOL" && DLLTOOL=dlltool
9164
9165
9166
9167
9168
9169 test -z "$OBJDUMP" && OBJDUMP=objdump
9170
9171
9172
9173
9174 # Check whether --enable-static was given.
9175 if test ${enable_static+y}
9176 then :
9177 enableval=$enable_static; p=${PACKAGE-default}
9178 case $enableval in
9179 yes) enable_static=yes ;;
9180 no) enable_static=no ;;
9181 *)
9182 enable_static=no
9183 # Look at the argument we got. We use all the common list separators.
9184 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9185 for pkg in $enableval; do
9186 IFS=$lt_save_ifs
9187 if test "X$pkg" = "X$p"; then
9188 enable_static=yes
9189 fi
9190 done
9191 IFS=$lt_save_ifs
9192 ;;
9193 esac
9194 else $as_nop
9195 enable_static=no
9196 fi
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207 enable_dlopen=no
9208
9209
9210
9211 # Check whether --enable-shared was given.
9212 if test ${enable_shared+y}
9213 then :
9214 enableval=$enable_shared; p=${PACKAGE-default}
9215 case $enableval in
9216 yes) enable_shared=yes ;;
9217 no) enable_shared=no ;;
9218 *)
9219 enable_shared=no
9220 # Look at the argument we got. We use all the common list separators.
9221 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9222 for pkg in $enableval; do
9223 IFS=$lt_save_ifs
9224 if test "X$pkg" = "X$p"; then
9225 enable_shared=yes
9226 fi
9227 done
9228 IFS=$lt_save_ifs
9229 ;;
9230 esac
9231 else $as_nop
9232 enable_shared=yes
9233 fi
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245 # Check whether --with-pic was given.
9246 if test ${with_pic+y}
9247 then :
9248 withval=$with_pic; lt_p=${PACKAGE-default}
9249 case $withval in
9250 yes|no) pic_mode=$withval ;;
9251 *)
9252 pic_mode=default
9253 # Look at the argument we got. We use all the common list separators.
9254 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9255 for lt_pkg in $withval; do
9256 IFS=$lt_save_ifs
9257 if test "X$lt_pkg" = "X$lt_p"; then
9258 pic_mode=yes
9259 fi
9260 done
9261 IFS=$lt_save_ifs
9262 ;;
9263 esac
9264 else $as_nop
9265 pic_mode=default
9266 fi
9267
9268
9269
9270
9271
9272
9273
9274
9275 # Check whether --enable-fast-install was given.
9276 if test ${enable_fast_install+y}
9277 then :
9278 enableval=$enable_fast_install; p=${PACKAGE-default}
9279 case $enableval in
9280 yes) enable_fast_install=yes ;;
9281 no) enable_fast_install=no ;;
9282 *)
9283 enable_fast_install=no
9284 # Look at the argument we got. We use all the common list separators.
9285 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9286 for pkg in $enableval; do
9287 IFS=$lt_save_ifs
9288 if test "X$pkg" = "X$p"; then
9289 enable_fast_install=yes
9290 fi
9291 done
9292 IFS=$lt_save_ifs
9293 ;;
9294 esac
9295 else $as_nop
9296 enable_fast_install=yes
9297 fi
9298
9299
9300
9301
9302
9303
9304
9305
9306 shared_archive_member_spec=
9307 case $host,$enable_shared in
9308 power*-*-aix[5-9]*,yes)
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9310 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9311
9312 # Check whether --with-aix-soname was given.
9313 if test ${with_aix_soname+y}
9314 then :
9315 withval=$with_aix_soname; case $withval in
9316 aix|svr4|both)
9317 ;;
9318 *)
9319 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9320 ;;
9321 esac
9322 lt_cv_with_aix_soname=$with_aix_soname
9323 else $as_nop
9324 if test ${lt_cv_with_aix_soname+y}
9325 then :
9326 printf %s "(cached) " >&6
9327 else $as_nop
9328 lt_cv_with_aix_soname=aix
9329 fi
9330
9331 with_aix_soname=$lt_cv_with_aix_soname
9332 fi
9333
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9335 printf "%s\n" "$with_aix_soname" >&6; }
9336 if test aix != "$with_aix_soname"; then
9337 # For the AIX way of multilib, we name the shared archive member
9338 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9339 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9340 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9341 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9342 if test 64 = "${OBJECT_MODE-32}"; then
9343 shared_archive_member_spec=shr_64
9344 else
9345 shared_archive_member_spec=shr
9346 fi
9347 fi
9348 ;;
9349 *)
9350 with_aix_soname=aix
9351 ;;
9352 esac
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363 # This can be used to rebuild libtool when needed
9364 LIBTOOL_DEPS=$ltmain
9365
9366 # Always use our own libtool.
9367 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398 test -z "$LN_S" && LN_S="ln -s"
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413 if test -n "${ZSH_VERSION+set}"; then
9414 setopt NO_GLOB_SUBST
9415 fi
9416
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9418 printf %s "checking for objdir... " >&6; }
9419 if test ${lt_cv_objdir+y}
9420 then :
9421 printf %s "(cached) " >&6
9422 else $as_nop
9423 rm -f .libs 2>/dev/null
9424 mkdir .libs 2>/dev/null
9425 if test -d .libs; then
9426 lt_cv_objdir=.libs
9427 else
9428 # MS-DOS does not allow filenames that begin with a dot.
9429 lt_cv_objdir=_libs
9430 fi
9431 rmdir .libs 2>/dev/null
9432 fi
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9434 printf "%s\n" "$lt_cv_objdir" >&6; }
9435 objdir=$lt_cv_objdir
9436
9437
9438
9439
9440
9441 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9442
9443
9444
9445
9446 case $host_os in
9447 aix3*)
9448 # AIX sometimes has problems with the GCC collect2 program. For some
9449 # reason, if we set the COLLECT_NAMES environment variable, the problems
9450 # vanish in a puff of smoke.
9451 if test set != "${COLLECT_NAMES+set}"; then
9452 COLLECT_NAMES=
9453 export COLLECT_NAMES
9454 fi
9455 ;;
9456 esac
9457
9458 # Global variables:
9459 ofile=libtool
9460 can_build_shared=yes
9461
9462 # All known linkers require a '.a' archive for static linking (except MSVC and
9463 # ICC, which need '.lib').
9464 libext=a
9465
9466 with_gnu_ld=$lt_cv_prog_gnu_ld
9467
9468 old_CC=$CC
9469 old_CFLAGS=$CFLAGS
9470
9471 # Set sane defaults for various variables
9472 test -z "$CC" && CC=cc
9473 test -z "$LTCC" && LTCC=$CC
9474 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9475 test -z "$LD" && LD=ld
9476 test -z "$ac_objext" && ac_objext=o
9477
9478 func_cc_basename $compiler
9479 cc_basename=$func_cc_basename_result
9480
9481
9482 # Only perform the check for file, if the check method requires it
9483 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9484 case $deplibs_check_method in
9485 file_magic*)
9486 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9488 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9489 if test ${lt_cv_path_MAGIC_CMD+y}
9490 then :
9491 printf %s "(cached) " >&6
9492 else $as_nop
9493 case $MAGIC_CMD in
9494 [\\/*] | ?:[\\/]*)
9495 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9496 ;;
9497 *)
9498 lt_save_MAGIC_CMD=$MAGIC_CMD
9499 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9501 for ac_dir in $ac_dummy; do
9502 IFS=$lt_save_ifs
9503 test -z "$ac_dir" && ac_dir=.
9504 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9505 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9506 if test -n "$file_magic_test_file"; then
9507 case $deplibs_check_method in
9508 "file_magic "*)
9509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9510 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9512 $EGREP "$file_magic_regex" > /dev/null; then
9513 :
9514 else
9515 cat <<_LT_EOF 1>&2
9516
9517 *** Warning: the command libtool uses to detect shared libraries,
9518 *** $file_magic_cmd, produces output that libtool cannot recognize.
9519 *** The result is that libtool may fail to recognize shared libraries
9520 *** as such. This will affect the creation of libtool libraries that
9521 *** depend on shared libraries, but programs linked with such libtool
9522 *** libraries will work regardless of this problem. Nevertheless, you
9523 *** may want to report the problem to your system manager and/or to
9524 *** [email protected]
9525
9526 _LT_EOF
9527 fi ;;
9528 esac
9529 fi
9530 break
9531 fi
9532 done
9533 IFS=$lt_save_ifs
9534 MAGIC_CMD=$lt_save_MAGIC_CMD
9535 ;;
9536 esac
9537 fi
9538
9539 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9540 if test -n "$MAGIC_CMD"; then
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9542 printf "%s\n" "$MAGIC_CMD" >&6; }
9543 else
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 printf "%s\n" "no" >&6; }
9546 fi
9547
9548
9549
9550
9551
9552 if test -z "$lt_cv_path_MAGIC_CMD"; then
9553 if test -n "$ac_tool_prefix"; then
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9555 printf %s "checking for file... " >&6; }
9556 if test ${lt_cv_path_MAGIC_CMD+y}
9557 then :
9558 printf %s "(cached) " >&6
9559 else $as_nop
9560 case $MAGIC_CMD in
9561 [\\/*] | ?:[\\/]*)
9562 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9563 ;;
9564 *)
9565 lt_save_MAGIC_CMD=$MAGIC_CMD
9566 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9567 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9568 for ac_dir in $ac_dummy; do
9569 IFS=$lt_save_ifs
9570 test -z "$ac_dir" && ac_dir=.
9571 if test -f "$ac_dir/file"; then
9572 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9573 if test -n "$file_magic_test_file"; then
9574 case $deplibs_check_method in
9575 "file_magic "*)
9576 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9577 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9578 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9579 $EGREP "$file_magic_regex" > /dev/null; then
9580 :
9581 else
9582 cat <<_LT_EOF 1>&2
9583
9584 *** Warning: the command libtool uses to detect shared libraries,
9585 *** $file_magic_cmd, produces output that libtool cannot recognize.
9586 *** The result is that libtool may fail to recognize shared libraries
9587 *** as such. This will affect the creation of libtool libraries that
9588 *** depend on shared libraries, but programs linked with such libtool
9589 *** libraries will work regardless of this problem. Nevertheless, you
9590 *** may want to report the problem to your system manager and/or to
9591 *** [email protected]
9592
9593 _LT_EOF
9594 fi ;;
9595 esac
9596 fi
9597 break
9598 fi
9599 done
9600 IFS=$lt_save_ifs
9601 MAGIC_CMD=$lt_save_MAGIC_CMD
9602 ;;
9603 esac
9604 fi
9605
9606 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9607 if test -n "$MAGIC_CMD"; then
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9609 printf "%s\n" "$MAGIC_CMD" >&6; }
9610 else
9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 printf "%s\n" "no" >&6; }
9613 fi
9614
9615
9616 else
9617 MAGIC_CMD=:
9618 fi
9619 fi
9620
9621 fi
9622 ;;
9623 esac
9624
9625 # Use C for the default configuration in the libtool script
9626
9627 lt_save_CC=$CC
9628 ac_ext=c
9629 ac_cpp='$CPP $CPPFLAGS'
9630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9633
9634
9635 # Source file extension for C test sources.
9636 ac_ext=c
9637
9638 # Object file extension for compiled C test sources.
9639 objext=o
9640 objext=$objext
9641
9642 # Code to be used in simple compile tests
9643 lt_simple_compile_test_code="int some_variable = 0;"
9644
9645 # Code to be used in simple link tests
9646 lt_simple_link_test_code='int main(){return(0);}'
9647
9648
9649
9650
9651
9652
9653
9654 # If no C compiler was specified, use CC.
9655 LTCC=${LTCC-"$CC"}
9656
9657 # If no C compiler flags were specified, use CFLAGS.
9658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9659
9660 # Allow CC to be a program name with arguments.
9661 compiler=$CC
9662
9663 # Save the default compiler, since it gets overwritten when the other
9664 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9665 compiler_DEFAULT=$CC
9666
9667 # save warnings/boilerplate of simple test code
9668 ac_outfile=conftest.$ac_objext
9669 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9670 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9671 _lt_compiler_boilerplate=`cat conftest.err`
9672 $RM conftest*
9673
9674 ac_outfile=conftest.$ac_objext
9675 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9676 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9677 _lt_linker_boilerplate=`cat conftest.err`
9678 $RM -r conftest*
9679
9680
9681 ## CAVEAT EMPTOR:
9682 ## There is no encapsulation within the following macros, do not change
9683 ## the running order or otherwise move them around unless you know exactly
9684 ## what you are doing...
9685 if test -n "$compiler"; then
9686
9687 lt_prog_compiler_no_builtin_flag=
9688
9689 if test yes = "$GCC"; then
9690 case $cc_basename in
9691 nvcc*)
9692 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9693 *)
9694 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9695 esac
9696
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9698 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9699 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9700 then :
9701 printf %s "(cached) " >&6
9702 else $as_nop
9703 lt_cv_prog_compiler_rtti_exceptions=no
9704 ac_outfile=conftest.$ac_objext
9705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9706 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9707 # Insert the option either (1) after the last *FLAGS variable, or
9708 # (2) before a word containing "conftest.", or (3) at the end.
9709 # Note that $ac_compile itself does not contain backslashes and begins
9710 # with a dollar sign (not a hyphen), so the echo should work correctly.
9711 # The option is referenced via a variable to avoid confusing sed.
9712 lt_compile=`echo "$ac_compile" | $SED \
9713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9715 -e 's:$: $lt_compiler_flag:'`
9716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9717 (eval "$lt_compile" 2>conftest.err)
9718 ac_status=$?
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 if (exit $ac_status) && test -s "$ac_outfile"; then
9722 # The compiler can only warn and ignore the option if not recognized
9723 # So say no if there are warnings other than the usual output.
9724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9727 lt_cv_prog_compiler_rtti_exceptions=yes
9728 fi
9729 fi
9730 $RM conftest*
9731
9732 fi
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9734 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9735
9736 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9737 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9738 else
9739 :
9740 fi
9741
9742 fi
9743
9744
9745
9746
9747
9748
9749 lt_prog_compiler_wl=
9750 lt_prog_compiler_pic=
9751 lt_prog_compiler_static=
9752
9753
9754 if test yes = "$GCC"; then
9755 lt_prog_compiler_wl='-Wl,'
9756 lt_prog_compiler_static='-static'
9757
9758 case $host_os in
9759 aix*)
9760 # All AIX code is PIC.
9761 if test ia64 = "$host_cpu"; then
9762 # AIX 5 now supports IA64 processor
9763 lt_prog_compiler_static='-Bstatic'
9764 fi
9765 lt_prog_compiler_pic='-fPIC'
9766 ;;
9767
9768 amigaos*)
9769 case $host_cpu in
9770 powerpc)
9771 # see comment about AmigaOS4 .so support
9772 lt_prog_compiler_pic='-fPIC'
9773 ;;
9774 m68k)
9775 # FIXME: we need at least 68020 code to build shared libraries, but
9776 # adding the '-m68020' flag to GCC prevents building anything better,
9777 # like '-m68040'.
9778 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9779 ;;
9780 esac
9781 ;;
9782
9783 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9784 # PIC is the default for these OSes.
9785 ;;
9786
9787 mingw* | cygwin* | pw32* | os2* | cegcc*)
9788 # This hack is so that the source file can tell whether it is being
9789 # built for inclusion in a dll (and should export symbols for example).
9790 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9791 # (--disable-auto-import) libraries
9792 lt_prog_compiler_pic='-DDLL_EXPORT'
9793 case $host_os in
9794 os2*)
9795 lt_prog_compiler_static='$wl-static'
9796 ;;
9797 esac
9798 ;;
9799
9800 darwin* | rhapsody*)
9801 # PIC is the default on this platform
9802 # Common symbols not allowed in MH_DYLIB files
9803 lt_prog_compiler_pic='-fno-common'
9804 ;;
9805
9806 haiku*)
9807 # PIC is the default for Haiku.
9808 # The "-static" flag exists, but is broken.
9809 lt_prog_compiler_static=
9810 ;;
9811
9812 hpux*)
9813 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9814 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9815 # sets the default TLS model and affects inlining.
9816 case $host_cpu in
9817 hppa*64*)
9818 # +Z the default
9819 ;;
9820 *)
9821 lt_prog_compiler_pic='-fPIC'
9822 ;;
9823 esac
9824 ;;
9825
9826 interix[3-9]*)
9827 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9828 # Instead, we relocate shared libraries at runtime.
9829 ;;
9830
9831 msdosdjgpp*)
9832 # Just because we use GCC doesn't mean we suddenly get shared libraries
9833 # on systems that don't support them.
9834 lt_prog_compiler_can_build_shared=no
9835 enable_shared=no
9836 ;;
9837
9838 *nto* | *qnx*)
9839 # QNX uses GNU C++, but need to define -shared option too, otherwise
9840 # it will coredump.
9841 lt_prog_compiler_pic='-fPIC -shared'
9842 ;;
9843
9844 sysv4*MP*)
9845 if test -d /usr/nec; then
9846 lt_prog_compiler_pic=-Kconform_pic
9847 fi
9848 ;;
9849
9850 *)
9851 lt_prog_compiler_pic='-fPIC'
9852 ;;
9853 esac
9854
9855 case $cc_basename in
9856 nvcc*) # Cuda Compiler Driver 2.2
9857 lt_prog_compiler_wl='-Xlinker '
9858 if test -n "$lt_prog_compiler_pic"; then
9859 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9860 fi
9861 ;;
9862 esac
9863 else
9864 # PORTME Check for flag to pass linker flags through the system compiler.
9865 case $host_os in
9866 aix*)
9867 lt_prog_compiler_wl='-Wl,'
9868 if test ia64 = "$host_cpu"; then
9869 # AIX 5 now supports IA64 processor
9870 lt_prog_compiler_static='-Bstatic'
9871 else
9872 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9873 fi
9874 ;;
9875
9876 darwin* | rhapsody*)
9877 # PIC is the default on this platform
9878 # Common symbols not allowed in MH_DYLIB files
9879 lt_prog_compiler_pic='-fno-common'
9880 case $cc_basename in
9881 nagfor*)
9882 # NAG Fortran compiler
9883 lt_prog_compiler_wl='-Wl,-Wl,,'
9884 lt_prog_compiler_pic='-PIC'
9885 lt_prog_compiler_static='-Bstatic'
9886 ;;
9887 esac
9888 ;;
9889
9890 mingw* | cygwin* | pw32* | os2* | cegcc*)
9891 # This hack is so that the source file can tell whether it is being
9892 # built for inclusion in a dll (and should export symbols for example).
9893 lt_prog_compiler_pic='-DDLL_EXPORT'
9894 case $host_os in
9895 os2*)
9896 lt_prog_compiler_static='$wl-static'
9897 ;;
9898 esac
9899 ;;
9900
9901 hpux9* | hpux10* | hpux11*)
9902 lt_prog_compiler_wl='-Wl,'
9903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9904 # not for PA HP-UX.
9905 case $host_cpu in
9906 hppa*64*|ia64*)
9907 # +Z the default
9908 ;;
9909 *)
9910 lt_prog_compiler_pic='+Z'
9911 ;;
9912 esac
9913 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9914 lt_prog_compiler_static='$wl-a ${wl}archive'
9915 ;;
9916
9917 irix5* | irix6* | nonstopux*)
9918 lt_prog_compiler_wl='-Wl,'
9919 # PIC (with -KPIC) is the default.
9920 lt_prog_compiler_static='-non_shared'
9921 ;;
9922
9923 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9924 case $cc_basename in
9925 # old Intel for x86_64, which still supported -KPIC.
9926 ecc*)
9927 lt_prog_compiler_wl='-Wl,'
9928 lt_prog_compiler_pic='-KPIC'
9929 lt_prog_compiler_static='-static'
9930 ;;
9931 # flang / f18. f95 an alias for gfortran or flang on Debian
9932 flang* | f18* | f95*)
9933 lt_prog_compiler_wl='-Wl,'
9934 lt_prog_compiler_pic='-fPIC'
9935 lt_prog_compiler_static='-static'
9936 ;;
9937 # icc used to be incompatible with GCC.
9938 # ICC 10 doesn't accept -KPIC any more.
9939 icc* | ifort*)
9940 lt_prog_compiler_wl='-Wl,'
9941 lt_prog_compiler_pic='-fPIC'
9942 lt_prog_compiler_static='-static'
9943 ;;
9944 # Lahey Fortran 8.1.
9945 lf95*)
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_pic='--shared'
9948 lt_prog_compiler_static='--static'
9949 ;;
9950 nagfor*)
9951 # NAG Fortran compiler
9952 lt_prog_compiler_wl='-Wl,-Wl,,'
9953 lt_prog_compiler_pic='-PIC'
9954 lt_prog_compiler_static='-Bstatic'
9955 ;;
9956 tcc*)
9957 # Fabrice Bellard et al's Tiny C Compiler
9958 lt_prog_compiler_wl='-Wl,'
9959 lt_prog_compiler_pic='-fPIC'
9960 lt_prog_compiler_static='-static'
9961 ;;
9962 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9963 # Portland Group compilers (*not* the Pentium gcc compiler,
9964 # which looks to be a dead project)
9965 lt_prog_compiler_wl='-Wl,'
9966 lt_prog_compiler_pic='-fpic'
9967 lt_prog_compiler_static='-Bstatic'
9968 ;;
9969 ccc*)
9970 lt_prog_compiler_wl='-Wl,'
9971 # All Alpha code is PIC.
9972 lt_prog_compiler_static='-non_shared'
9973 ;;
9974 xl* | bgxl* | bgf* | mpixl*)
9975 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9976 lt_prog_compiler_wl='-Wl,'
9977 lt_prog_compiler_pic='-qpic'
9978 lt_prog_compiler_static='-qstaticlink'
9979 ;;
9980 *)
9981 case `$CC -V 2>&1 | $SED 5q` in
9982 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9983 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9984 lt_prog_compiler_pic='-KPIC'
9985 lt_prog_compiler_static='-Bstatic'
9986 lt_prog_compiler_wl=''
9987 ;;
9988 *Sun\ F* | *Sun*Fortran*)
9989 lt_prog_compiler_pic='-KPIC'
9990 lt_prog_compiler_static='-Bstatic'
9991 lt_prog_compiler_wl='-Qoption ld '
9992 ;;
9993 *Sun\ C*)
9994 # Sun C 5.9
9995 lt_prog_compiler_pic='-KPIC'
9996 lt_prog_compiler_static='-Bstatic'
9997 lt_prog_compiler_wl='-Wl,'
9998 ;;
9999 *Intel*\ [CF]*Compiler*)
10000 lt_prog_compiler_wl='-Wl,'
10001 lt_prog_compiler_pic='-fPIC'
10002 lt_prog_compiler_static='-static'
10003 ;;
10004 *Portland\ Group*)
10005 lt_prog_compiler_wl='-Wl,'
10006 lt_prog_compiler_pic='-fpic'
10007 lt_prog_compiler_static='-Bstatic'
10008 ;;
10009 esac
10010 ;;
10011 esac
10012 ;;
10013
10014 newsos6)
10015 lt_prog_compiler_pic='-KPIC'
10016 lt_prog_compiler_static='-Bstatic'
10017 ;;
10018
10019 *nto* | *qnx*)
10020 # QNX uses GNU C++, but need to define -shared option too, otherwise
10021 # it will coredump.
10022 lt_prog_compiler_pic='-fPIC -shared'
10023 ;;
10024
10025 osf3* | osf4* | osf5*)
10026 lt_prog_compiler_wl='-Wl,'
10027 # All OSF/1 code is PIC.
10028 lt_prog_compiler_static='-non_shared'
10029 ;;
10030
10031 rdos*)
10032 lt_prog_compiler_static='-non_shared'
10033 ;;
10034
10035 solaris*)
10036 lt_prog_compiler_pic='-KPIC'
10037 lt_prog_compiler_static='-Bstatic'
10038 case $cc_basename in
10039 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10040 lt_prog_compiler_wl='-Qoption ld ';;
10041 *)
10042 lt_prog_compiler_wl='-Wl,';;
10043 esac
10044 ;;
10045
10046 sunos4*)
10047 lt_prog_compiler_wl='-Qoption ld '
10048 lt_prog_compiler_pic='-PIC'
10049 lt_prog_compiler_static='-Bstatic'
10050 ;;
10051
10052 sysv4 | sysv4.2uw2* | sysv4.3*)
10053 lt_prog_compiler_wl='-Wl,'
10054 lt_prog_compiler_pic='-KPIC'
10055 lt_prog_compiler_static='-Bstatic'
10056 ;;
10057
10058 sysv4*MP*)
10059 if test -d /usr/nec; then
10060 lt_prog_compiler_pic='-Kconform_pic'
10061 lt_prog_compiler_static='-Bstatic'
10062 fi
10063 ;;
10064
10065 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10066 lt_prog_compiler_wl='-Wl,'
10067 lt_prog_compiler_pic='-KPIC'
10068 lt_prog_compiler_static='-Bstatic'
10069 ;;
10070
10071 unicos*)
10072 lt_prog_compiler_wl='-Wl,'
10073 lt_prog_compiler_can_build_shared=no
10074 ;;
10075
10076 uts4*)
10077 lt_prog_compiler_pic='-pic'
10078 lt_prog_compiler_static='-Bstatic'
10079 ;;
10080
10081 *)
10082 lt_prog_compiler_can_build_shared=no
10083 ;;
10084 esac
10085 fi
10086
10087 case $host_os in
10088 # For platforms that do not support PIC, -DPIC is meaningless:
10089 *djgpp*)
10090 lt_prog_compiler_pic=
10091 ;;
10092 *)
10093 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10094 ;;
10095 esac
10096
10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10098 printf %s "checking for $compiler option to produce PIC... " >&6; }
10099 if test ${lt_cv_prog_compiler_pic+y}
10100 then :
10101 printf %s "(cached) " >&6
10102 else $as_nop
10103 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10104 fi
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10106 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10107 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10108
10109 #
10110 # Check to make sure the PIC flag actually works.
10111 #
10112 if test -n "$lt_prog_compiler_pic"; then
10113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10114 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10115 if test ${lt_cv_prog_compiler_pic_works+y}
10116 then :
10117 printf %s "(cached) " >&6
10118 else $as_nop
10119 lt_cv_prog_compiler_pic_works=no
10120 ac_outfile=conftest.$ac_objext
10121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10122 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10123 # Insert the option either (1) after the last *FLAGS variable, or
10124 # (2) before a word containing "conftest.", or (3) at the end.
10125 # Note that $ac_compile itself does not contain backslashes and begins
10126 # with a dollar sign (not a hyphen), so the echo should work correctly.
10127 # The option is referenced via a variable to avoid confusing sed.
10128 lt_compile=`echo "$ac_compile" | $SED \
10129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10131 -e 's:$: $lt_compiler_flag:'`
10132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10133 (eval "$lt_compile" 2>conftest.err)
10134 ac_status=$?
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 if (exit $ac_status) && test -s "$ac_outfile"; then
10138 # The compiler can only warn and ignore the option if not recognized
10139 # So say no if there are warnings other than the usual output.
10140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10142 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10143 lt_cv_prog_compiler_pic_works=yes
10144 fi
10145 fi
10146 $RM conftest*
10147
10148 fi
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10150 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10151
10152 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10153 case $lt_prog_compiler_pic in
10154 "" | " "*) ;;
10155 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10156 esac
10157 else
10158 lt_prog_compiler_pic=
10159 lt_prog_compiler_can_build_shared=no
10160 fi
10161
10162 fi
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174 #
10175 # Check to make sure the static flag actually works.
10176 #
10177 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10179 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10180 if test ${lt_cv_prog_compiler_static_works+y}
10181 then :
10182 printf %s "(cached) " >&6
10183 else $as_nop
10184 lt_cv_prog_compiler_static_works=no
10185 save_LDFLAGS=$LDFLAGS
10186 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10187 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10188 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10189 # The linker can only warn and ignore the option if not recognized
10190 # So say no if there are warnings
10191 if test -s conftest.err; then
10192 # Append any errors to the config.log.
10193 cat conftest.err 1>&5
10194 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10196 if diff conftest.exp conftest.er2 >/dev/null; then
10197 lt_cv_prog_compiler_static_works=yes
10198 fi
10199 else
10200 lt_cv_prog_compiler_static_works=yes
10201 fi
10202 fi
10203 $RM -r conftest*
10204 LDFLAGS=$save_LDFLAGS
10205
10206 fi
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10208 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10209
10210 if test yes = "$lt_cv_prog_compiler_static_works"; then
10211 :
10212 else
10213 lt_prog_compiler_static=
10214 fi
10215
10216
10217
10218
10219
10220
10221
10222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10223 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10224 if test ${lt_cv_prog_compiler_c_o+y}
10225 then :
10226 printf %s "(cached) " >&6
10227 else $as_nop
10228 lt_cv_prog_compiler_c_o=no
10229 $RM -r conftest 2>/dev/null
10230 mkdir conftest
10231 cd conftest
10232 mkdir out
10233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10234
10235 lt_compiler_flag="-o out/conftest2.$ac_objext"
10236 # Insert the option either (1) after the last *FLAGS variable, or
10237 # (2) before a word containing "conftest.", or (3) at the end.
10238 # Note that $ac_compile itself does not contain backslashes and begins
10239 # with a dollar sign (not a hyphen), so the echo should work correctly.
10240 lt_compile=`echo "$ac_compile" | $SED \
10241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10243 -e 's:$: $lt_compiler_flag:'`
10244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10245 (eval "$lt_compile" 2>out/conftest.err)
10246 ac_status=$?
10247 cat out/conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10250 then
10251 # The compiler can only warn and ignore the option if not recognized
10252 # So say no if there are warnings
10253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10256 lt_cv_prog_compiler_c_o=yes
10257 fi
10258 fi
10259 chmod u+w . 2>&5
10260 $RM conftest*
10261 # SGI C++ compiler will create directory out/ii_files/ for
10262 # template instantiation
10263 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10264 $RM out/* && rmdir out
10265 cd ..
10266 $RM -r conftest
10267 $RM conftest*
10268
10269 fi
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10271 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10272
10273
10274
10275
10276
10277
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10279 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10280 if test ${lt_cv_prog_compiler_c_o+y}
10281 then :
10282 printf %s "(cached) " >&6
10283 else $as_nop
10284 lt_cv_prog_compiler_c_o=no
10285 $RM -r conftest 2>/dev/null
10286 mkdir conftest
10287 cd conftest
10288 mkdir out
10289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10290
10291 lt_compiler_flag="-o out/conftest2.$ac_objext"
10292 # Insert the option either (1) after the last *FLAGS variable, or
10293 # (2) before a word containing "conftest.", or (3) at the end.
10294 # Note that $ac_compile itself does not contain backslashes and begins
10295 # with a dollar sign (not a hyphen), so the echo should work correctly.
10296 lt_compile=`echo "$ac_compile" | $SED \
10297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10299 -e 's:$: $lt_compiler_flag:'`
10300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10301 (eval "$lt_compile" 2>out/conftest.err)
10302 ac_status=$?
10303 cat out/conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10306 then
10307 # The compiler can only warn and ignore the option if not recognized
10308 # So say no if there are warnings
10309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10312 lt_cv_prog_compiler_c_o=yes
10313 fi
10314 fi
10315 chmod u+w . 2>&5
10316 $RM conftest*
10317 # SGI C++ compiler will create directory out/ii_files/ for
10318 # template instantiation
10319 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10320 $RM out/* && rmdir out
10321 cd ..
10322 $RM -r conftest
10323 $RM conftest*
10324
10325 fi
10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10327 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10328
10329
10330
10331
10332 hard_links=nottested
10333 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10334 # do not overwrite the value of need_locks provided by the user
10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10336 printf %s "checking if we can lock with hard links... " >&6; }
10337 hard_links=yes
10338 $RM conftest*
10339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10340 touch conftest.a
10341 ln conftest.a conftest.b 2>&5 || hard_links=no
10342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10344 printf "%s\n" "$hard_links" >&6; }
10345 if test no = "$hard_links"; then
10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10347 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10348 need_locks=warn
10349 fi
10350 else
10351 need_locks=no
10352 fi
10353
10354
10355
10356
10357
10358
10359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10360 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10361
10362 runpath_var=
10363 allow_undefined_flag=
10364 always_export_symbols=no
10365 archive_cmds=
10366 archive_expsym_cmds=
10367 compiler_needs_object=no
10368 enable_shared_with_static_runtimes=no
10369 export_dynamic_flag_spec=
10370 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10371 hardcode_automatic=no
10372 hardcode_direct=no
10373 hardcode_direct_absolute=no
10374 hardcode_libdir_flag_spec=
10375 hardcode_libdir_separator=
10376 hardcode_minus_L=no
10377 hardcode_shlibpath_var=unsupported
10378 inherit_rpath=no
10379 link_all_deplibs=unknown
10380 module_cmds=
10381 module_expsym_cmds=
10382 old_archive_from_new_cmds=
10383 old_archive_from_expsyms_cmds=
10384 thread_safe_flag_spec=
10385 whole_archive_flag_spec=
10386 # include_expsyms should be a list of space-separated symbols to be *always*
10387 # included in the symbol list
10388 include_expsyms=
10389 # exclude_expsyms can be an extended regexp of symbols to exclude
10390 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10391 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10392 # as well as any symbol that contains 'd'.
10393 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10394 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10395 # platforms (ab)use it in PIC code, but their linkers get confused if
10396 # the symbol is explicitly referenced. Since portable code cannot
10397 # rely on this symbol name, it's probably fine to never include it in
10398 # preloaded symbol tables.
10399 # Exclude shared library initialization/finalization symbols.
10400 extract_expsyms_cmds=
10401
10402 case $host_os in
10403 cygwin* | mingw* | pw32* | cegcc*)
10404 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10405 # When not using gcc, we currently assume that we are using
10406 # Microsoft Visual C++ or Intel C++ Compiler.
10407 if test yes != "$GCC"; then
10408 with_gnu_ld=no
10409 fi
10410 ;;
10411 interix*)
10412 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10413 with_gnu_ld=yes
10414 ;;
10415 openbsd* | bitrig*)
10416 with_gnu_ld=no
10417 ;;
10418 linux* | k*bsd*-gnu | gnu*)
10419 link_all_deplibs=no
10420 ;;
10421 esac
10422
10423 ld_shlibs=yes
10424
10425 # On some targets, GNU ld is compatible enough with the native linker
10426 # that we're better off using the native interface for both.
10427 lt_use_gnu_ld_interface=no
10428 if test yes = "$with_gnu_ld"; then
10429 case $host_os in
10430 aix*)
10431 # The AIX port of GNU ld has always aspired to compatibility
10432 # with the native linker. However, as the warning in the GNU ld
10433 # block says, versions before 2.19.5* couldn't really create working
10434 # shared libraries, regardless of the interface used.
10435 case `$LD -v 2>&1` in
10436 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10437 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10438 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10439 *)
10440 lt_use_gnu_ld_interface=yes
10441 ;;
10442 esac
10443 ;;
10444 *)
10445 lt_use_gnu_ld_interface=yes
10446 ;;
10447 esac
10448 fi
10449
10450 if test yes = "$lt_use_gnu_ld_interface"; then
10451 # If archive_cmds runs LD, not CC, wlarc should be empty
10452 wlarc='$wl'
10453
10454 # Set some defaults for GNU ld with shared library support. These
10455 # are reset later if shared libraries are not supported. Putting them
10456 # here allows them to be overridden if necessary.
10457 runpath_var=LD_RUN_PATH
10458 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10459 export_dynamic_flag_spec='$wl--export-dynamic'
10460 # ancient GNU ld didn't support --whole-archive et. al.
10461 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10462 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10463 else
10464 whole_archive_flag_spec=
10465 fi
10466 supports_anon_versioning=no
10467 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10468 *GNU\ gold*) supports_anon_versioning=yes ;;
10469 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10470 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10471 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10472 *\ 2.11.*) ;; # other 2.11 versions
10473 *) supports_anon_versioning=yes ;;
10474 esac
10475
10476 # See if GNU ld supports shared libraries.
10477 case $host_os in
10478 aix[3-9]*)
10479 # On AIX/PPC, the GNU linker is very broken
10480 if test ia64 != "$host_cpu"; then
10481 ld_shlibs=no
10482 cat <<_LT_EOF 1>&2
10483
10484 *** Warning: the GNU linker, at least up to release 2.19, is reported
10485 *** to be unable to reliably create shared libraries on AIX.
10486 *** Therefore, libtool is disabling shared libraries support. If you
10487 *** really care for shared libraries, you may want to install binutils
10488 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10489 *** You will then need to restart the configuration process.
10490
10491 _LT_EOF
10492 fi
10493 ;;
10494
10495 amigaos*)
10496 case $host_cpu in
10497 powerpc)
10498 # see comment about AmigaOS4 .so support
10499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10500 archive_expsym_cmds=''
10501 ;;
10502 m68k)
10503 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)'
10504 hardcode_libdir_flag_spec='-L$libdir'
10505 hardcode_minus_L=yes
10506 ;;
10507 esac
10508 ;;
10509
10510 beos*)
10511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10512 allow_undefined_flag=unsupported
10513 # Joseph Beckenbach <[email protected]> says some releases of gcc
10514 # support --undefined. This deserves some investigation. FIXME
10515 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10516 else
10517 ld_shlibs=no
10518 fi
10519 ;;
10520
10521 cygwin* | mingw* | pw32* | cegcc*)
10522 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10523 # as there is no search path for DLLs.
10524 hardcode_libdir_flag_spec='-L$libdir'
10525 export_dynamic_flag_spec='$wl--export-all-symbols'
10526 allow_undefined_flag=unsupported
10527 always_export_symbols=no
10528 enable_shared_with_static_runtimes=yes
10529 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'
10530 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10531
10532 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10534 # If the export-symbols file already is a .def file, use it as
10535 # is; otherwise, prepend EXPORTS...
10536 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10537 cp $export_symbols $output_objdir/$soname.def;
10538 else
10539 echo EXPORTS > $output_objdir/$soname.def;
10540 cat $export_symbols >> $output_objdir/$soname.def;
10541 fi~
10542 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10543 else
10544 ld_shlibs=no
10545 fi
10546 ;;
10547
10548 haiku*)
10549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10550 link_all_deplibs=yes
10551 ;;
10552
10553 os2*)
10554 hardcode_libdir_flag_spec='-L$libdir'
10555 hardcode_minus_L=yes
10556 allow_undefined_flag=unsupported
10557 shrext_cmds=.dll
10558 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10559 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10560 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10561 $ECHO EXPORTS >> $output_objdir/$libname.def~
10562 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10563 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10564 emximp -o $lib $output_objdir/$libname.def'
10565 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10566 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10567 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10568 $ECHO EXPORTS >> $output_objdir/$libname.def~
10569 prefix_cmds="$SED"~
10570 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10571 prefix_cmds="$prefix_cmds -e 1d";
10572 fi~
10573 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10574 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10575 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10576 emximp -o $lib $output_objdir/$libname.def'
10577 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10578 enable_shared_with_static_runtimes=yes
10579 file_list_spec='@'
10580 ;;
10581
10582 interix[3-9]*)
10583 hardcode_direct=no
10584 hardcode_shlibpath_var=no
10585 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10586 export_dynamic_flag_spec='$wl-E'
10587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10588 # Instead, shared libraries are loaded at an image base (0x10000000 by
10589 # default) and relocated if they conflict, which is a slow very memory
10590 # consuming and fragmenting process. To avoid this, we pick a random,
10591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10594 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'
10595 ;;
10596
10597 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10598 tmp_diet=no
10599 if test linux-dietlibc = "$host_os"; then
10600 case $cc_basename in
10601 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10602 esac
10603 fi
10604 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10605 && test no = "$tmp_diet"
10606 then
10607 tmp_addflag=' $pic_flag'
10608 tmp_sharedflag='-shared'
10609 case $cc_basename,$host_cpu in
10610 pgcc*) # Portland Group C compiler
10611 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'
10612 tmp_addflag=' $pic_flag'
10613 ;;
10614 pgf77* | pgf90* | pgf95* | pgfortran*)
10615 # Portland Group f77 and f90 compilers
10616 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'
10617 tmp_addflag=' $pic_flag -Mnomain' ;;
10618 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10619 tmp_addflag=' -i_dynamic' ;;
10620 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10621 tmp_addflag=' -i_dynamic -nofor_main' ;;
10622 ifc* | ifort*) # Intel Fortran compiler
10623 tmp_addflag=' -nofor_main' ;;
10624 lf95*) # Lahey Fortran 8.1
10625 whole_archive_flag_spec=
10626 tmp_sharedflag='--shared' ;;
10627 nagfor*) # NAGFOR 5.3
10628 tmp_sharedflag='-Wl,-shared' ;;
10629 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10630 tmp_sharedflag='-qmkshrobj'
10631 tmp_addflag= ;;
10632 nvcc*) # Cuda Compiler Driver 2.2
10633 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'
10634 compiler_needs_object=yes
10635 ;;
10636 esac
10637 case `$CC -V 2>&1 | $SED 5q` in
10638 *Sun\ C*) # Sun C 5.9
10639 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'
10640 compiler_needs_object=yes
10641 tmp_sharedflag='-G' ;;
10642 *Sun\ F*) # Sun Fortran 8.3
10643 tmp_sharedflag='-G' ;;
10644 esac
10645 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10646
10647 if test yes = "$supports_anon_versioning"; then
10648 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10649 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10650 echo "local: *; };" >> $output_objdir/$libname.ver~
10651 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10652 fi
10653
10654 case $cc_basename in
10655 tcc*)
10656 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10657 export_dynamic_flag_spec='-rdynamic'
10658 ;;
10659 xlf* | bgf* | bgxlf* | mpixlf*)
10660 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10661 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10662 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10663 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10664 if test yes = "$supports_anon_versioning"; then
10665 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10666 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10667 echo "local: *; };" >> $output_objdir/$libname.ver~
10668 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10669 fi
10670 ;;
10671 esac
10672 else
10673 ld_shlibs=no
10674 fi
10675 ;;
10676
10677 netbsd* | netbsdelf*-gnu)
10678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10679 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10680 wlarc=
10681 else
10682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10683 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10684 fi
10685 ;;
10686
10687 solaris*)
10688 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10689 ld_shlibs=no
10690 cat <<_LT_EOF 1>&2
10691
10692 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10693 *** create shared libraries on Solaris systems. Therefore, libtool
10694 *** is disabling shared libraries support. We urge you to upgrade GNU
10695 *** binutils to release 2.9.1 or newer. Another option is to modify
10696 *** your PATH or compiler configuration so that the native linker is
10697 *** used, and then restart.
10698
10699 _LT_EOF
10700 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10702 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10703 else
10704 ld_shlibs=no
10705 fi
10706 ;;
10707
10708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10709 case `$LD -v 2>&1` in
10710 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10711 ld_shlibs=no
10712 cat <<_LT_EOF 1>&2
10713
10714 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10715 *** reliably create shared libraries on SCO systems. Therefore, libtool
10716 *** is disabling shared libraries support. We urge you to upgrade GNU
10717 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10718 *** your PATH or compiler configuration so that the native linker is
10719 *** used, and then restart.
10720
10721 _LT_EOF
10722 ;;
10723 *)
10724 # For security reasons, it is highly recommended that you always
10725 # use absolute paths for naming shared libraries, and exclude the
10726 # DT_RUNPATH tag from executables and libraries. But doing so
10727 # requires that you compile everything twice, which is a pain.
10728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10729 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10732 else
10733 ld_shlibs=no
10734 fi
10735 ;;
10736 esac
10737 ;;
10738
10739 sunos4*)
10740 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10741 wlarc=
10742 hardcode_direct=yes
10743 hardcode_shlibpath_var=no
10744 ;;
10745
10746 *)
10747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10749 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10750 else
10751 ld_shlibs=no
10752 fi
10753 ;;
10754 esac
10755
10756 if test no = "$ld_shlibs"; then
10757 runpath_var=
10758 hardcode_libdir_flag_spec=
10759 export_dynamic_flag_spec=
10760 whole_archive_flag_spec=
10761 fi
10762 else
10763 # PORTME fill in a description of your system's linker (not GNU ld)
10764 case $host_os in
10765 aix3*)
10766 allow_undefined_flag=unsupported
10767 always_export_symbols=yes
10768 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'
10769 # Note: this linker hardcodes the directories in LIBPATH if there
10770 # are no directories specified by -L.
10771 hardcode_minus_L=yes
10772 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10773 # Neither direct hardcoding nor static linking is supported with a
10774 # broken collect2.
10775 hardcode_direct=unsupported
10776 fi
10777 ;;
10778
10779 aix[4-9]*)
10780 if test ia64 = "$host_cpu"; then
10781 # On IA64, the linker does run time linking by default, so we don't
10782 # have to do anything special.
10783 aix_use_runtimelinking=no
10784 exp_sym_flag='-Bexport'
10785 no_entry_flag=
10786 else
10787 # If we're using GNU nm, then we don't want the "-C" option.
10788 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10789 # Without the "-l" option, or with the "-B" option, AIX nm treats
10790 # weak defined symbols like other global defined symbols, whereas
10791 # GNU nm marks them as "W".
10792 # While the 'weak' keyword is ignored in the Export File, we need
10793 # it in the Import File for the 'aix-soname' feature, so we have
10794 # to replace the "-B" option with "-P" for AIX nm.
10795 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10796 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'
10797 else
10798 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'
10799 fi
10800 aix_use_runtimelinking=no
10801
10802 # Test if we are trying to use run time linking or normal
10803 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10804 # have runtime linking enabled, and use it for executables.
10805 # For shared libraries, we enable/disable runtime linking
10806 # depending on the kind of the shared library created -
10807 # when "with_aix_soname,aix_use_runtimelinking" is:
10808 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10809 # "aix,yes" lib.so shared, rtl:yes, for executables
10810 # lib.a static archive
10811 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10812 # lib.a(lib.so.V) shared, rtl:no, for executables
10813 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10814 # lib.a(lib.so.V) shared, rtl:no
10815 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10816 # lib.a static archive
10817 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10818 for ld_flag in $LDFLAGS; do
10819 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10820 aix_use_runtimelinking=yes
10821 break
10822 fi
10823 done
10824 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10825 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10826 # so we don't have lib.a shared libs to link our executables.
10827 # We have to force runtime linking in this case.
10828 aix_use_runtimelinking=yes
10829 LDFLAGS="$LDFLAGS -Wl,-brtl"
10830 fi
10831 ;;
10832 esac
10833
10834 exp_sym_flag='-bexport'
10835 no_entry_flag='-bnoentry'
10836 fi
10837
10838 # When large executables or shared objects are built, AIX ld can
10839 # have problems creating the table of contents. If linking a library
10840 # or program results in "error TOC overflow" add -mminimal-toc to
10841 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10842 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10843
10844 archive_cmds=''
10845 hardcode_direct=yes
10846 hardcode_direct_absolute=yes
10847 hardcode_libdir_separator=':'
10848 link_all_deplibs=yes
10849 file_list_spec='$wl-f,'
10850 case $with_aix_soname,$aix_use_runtimelinking in
10851 aix,*) ;; # traditional, no import file
10852 svr4,* | *,yes) # use import file
10853 # The Import File defines what to hardcode.
10854 hardcode_direct=no
10855 hardcode_direct_absolute=no
10856 ;;
10857 esac
10858
10859 if test yes = "$GCC"; then
10860 case $host_os in aix4.[012]|aix4.[012].*)
10861 # We only want to do this on AIX 4.2 and lower, the check
10862 # below for broken collect2 doesn't work under 4.3+
10863 collect2name=`$CC -print-prog-name=collect2`
10864 if test -f "$collect2name" &&
10865 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10866 then
10867 # We have reworked collect2
10868 :
10869 else
10870 # We have old collect2
10871 hardcode_direct=unsupported
10872 # It fails to find uninstalled libraries when the uninstalled
10873 # path is not listed in the libpath. Setting hardcode_minus_L
10874 # to unsupported forces relinking
10875 hardcode_minus_L=yes
10876 hardcode_libdir_flag_spec='-L$libdir'
10877 hardcode_libdir_separator=
10878 fi
10879 ;;
10880 esac
10881 shared_flag='-shared'
10882 if test yes = "$aix_use_runtimelinking"; then
10883 shared_flag="$shared_flag "'$wl-G'
10884 fi
10885 # Need to ensure runtime linking is disabled for the traditional
10886 # shared library, or the linker may eventually find shared libraries
10887 # /with/ Import File - we do not want to mix them.
10888 shared_flag_aix='-shared'
10889 shared_flag_svr4='-shared $wl-G'
10890 else
10891 # not using gcc
10892 if test ia64 = "$host_cpu"; then
10893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10894 # chokes on -Wl,-G. The following line is correct:
10895 shared_flag='-G'
10896 else
10897 if test yes = "$aix_use_runtimelinking"; then
10898 shared_flag='$wl-G'
10899 else
10900 shared_flag='$wl-bM:SRE'
10901 fi
10902 shared_flag_aix='$wl-bM:SRE'
10903 shared_flag_svr4='$wl-G'
10904 fi
10905 fi
10906
10907 export_dynamic_flag_spec='$wl-bexpall'
10908 # It seems that -bexpall does not export symbols beginning with
10909 # underscore (_), so it is better to generate a list of symbols to export.
10910 always_export_symbols=yes
10911 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10912 # Warning - without using the other runtime loading flags (-brtl),
10913 # -berok will link without error, but may produce a broken library.
10914 allow_undefined_flag='-berok'
10915 # Determine the default libpath from the value encoded in an
10916 # empty executable.
10917 if test set = "${lt_cv_aix_libpath+set}"; then
10918 aix_libpath=$lt_cv_aix_libpath
10919 else
10920 if test ${lt_cv_aix_libpath_+y}
10921 then :
10922 printf %s "(cached) " >&6
10923 else $as_nop
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926
10927 int
10928 main (void)
10929 {
10930
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"
10936 then :
10937
10938 lt_aix_libpath_sed='
10939 /Import File Strings/,/^$/ {
10940 /^0/ {
10941 s/^0 *\([^ ]*\) *$/\1/
10942 p
10943 }
10944 }'
10945 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10946 # Check for a 64-bit object if we didn't find anything.
10947 if test -z "$lt_cv_aix_libpath_"; then
10948 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10949 fi
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10952 conftest$ac_exeext conftest.$ac_ext
10953 if test -z "$lt_cv_aix_libpath_"; then
10954 lt_cv_aix_libpath_=/usr/lib:/lib
10955 fi
10956
10957 fi
10958
10959 aix_libpath=$lt_cv_aix_libpath_
10960 fi
10961
10962 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10963 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
10964 else
10965 if test ia64 = "$host_cpu"; then
10966 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10967 allow_undefined_flag="-z nodefs"
10968 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"
10969 else
10970 # Determine the default libpath from the value encoded in an
10971 # empty executable.
10972 if test set = "${lt_cv_aix_libpath+set}"; then
10973 aix_libpath=$lt_cv_aix_libpath
10974 else
10975 if test ${lt_cv_aix_libpath_+y}
10976 then :
10977 printf %s "(cached) " >&6
10978 else $as_nop
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10981
10982 int
10983 main (void)
10984 {
10985
10986 ;
10987 return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_link "$LINENO"
10991 then :
10992
10993 lt_aix_libpath_sed='
10994 /Import File Strings/,/^$/ {
10995 /^0/ {
10996 s/^0 *\([^ ]*\) *$/\1/
10997 p
10998 }
10999 }'
11000 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11001 # Check for a 64-bit object if we didn't find anything.
11002 if test -z "$lt_cv_aix_libpath_"; then
11003 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11004 fi
11005 fi
11006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11007 conftest$ac_exeext conftest.$ac_ext
11008 if test -z "$lt_cv_aix_libpath_"; then
11009 lt_cv_aix_libpath_=/usr/lib:/lib
11010 fi
11011
11012 fi
11013
11014 aix_libpath=$lt_cv_aix_libpath_
11015 fi
11016
11017 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11018 # Warning - without using the other run time loading flags,
11019 # -berok will link without error, but may produce a broken library.
11020 no_undefined_flag=' $wl-bernotok'
11021 allow_undefined_flag=' $wl-berok'
11022 if test yes = "$with_gnu_ld"; then
11023 # We only use this code for GNU lds that support --whole-archive.
11024 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11025 else
11026 # Exported symbols can be pulled into shared objects from archives
11027 whole_archive_flag_spec='$convenience'
11028 fi
11029 archive_cmds_need_lc=yes
11030 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11031 # -brtl affects multiple linker settings, -berok does not and is overridden later
11032 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11033 if test svr4 != "$with_aix_soname"; then
11034 # This is similar to how AIX traditionally builds its shared libraries.
11035 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'
11036 fi
11037 if test aix != "$with_aix_soname"; then
11038 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'
11039 else
11040 # used by -dlpreopen to get the symbols
11041 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11042 fi
11043 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11044 fi
11045 fi
11046 ;;
11047
11048 amigaos*)
11049 case $host_cpu in
11050 powerpc)
11051 # see comment about AmigaOS4 .so support
11052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11053 archive_expsym_cmds=''
11054 ;;
11055 m68k)
11056 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)'
11057 hardcode_libdir_flag_spec='-L$libdir'
11058 hardcode_minus_L=yes
11059 ;;
11060 esac
11061 ;;
11062
11063 bsdi[45]*)
11064 export_dynamic_flag_spec=-rdynamic
11065 ;;
11066
11067 cygwin* | mingw* | pw32* | cegcc*)
11068 # When not using gcc, we currently assume that we are using
11069 # Microsoft Visual C++ or Intel C++ Compiler.
11070 # hardcode_libdir_flag_spec is actually meaningless, as there is
11071 # no search path for DLLs.
11072 case $cc_basename in
11073 cl* | icl*)
11074 # Native MSVC or ICC
11075 hardcode_libdir_flag_spec=' '
11076 allow_undefined_flag=unsupported
11077 always_export_symbols=yes
11078 file_list_spec='@'
11079 # Tell ltmain to make .lib files, not .a files.
11080 libext=lib
11081 # Tell ltmain to make .dll files, not .so files.
11082 shrext_cmds=.dll
11083 # FIXME: Setting linknames here is a bad hack.
11084 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11085 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11086 cp "$export_symbols" "$output_objdir/$soname.def";
11087 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11088 else
11089 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11090 fi~
11091 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11092 linknames='
11093 # The linker will not automatically build a static lib if we build a DLL.
11094 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11095 enable_shared_with_static_runtimes=yes
11096 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11098 # Don't use ranlib
11099 old_postinstall_cmds='chmod 644 $oldlib'
11100 postlink_cmds='lt_outputfile="@OUTPUT@"~
11101 lt_tool_outputfile="@TOOL_OUTPUT@"~
11102 case $lt_outputfile in
11103 *.exe|*.EXE) ;;
11104 *)
11105 lt_outputfile=$lt_outputfile.exe
11106 lt_tool_outputfile=$lt_tool_outputfile.exe
11107 ;;
11108 esac~
11109 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11110 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11111 $RM "$lt_outputfile.manifest";
11112 fi'
11113 ;;
11114 *)
11115 # Assume MSVC and ICC wrapper
11116 hardcode_libdir_flag_spec=' '
11117 allow_undefined_flag=unsupported
11118 # Tell ltmain to make .lib files, not .a files.
11119 libext=lib
11120 # Tell ltmain to make .dll files, not .so files.
11121 shrext_cmds=.dll
11122 # FIXME: Setting linknames here is a bad hack.
11123 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11124 # The linker will automatically build a .lib file if we build a DLL.
11125 old_archive_from_new_cmds='true'
11126 # FIXME: Should let the user specify the lib program.
11127 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11128 enable_shared_with_static_runtimes=yes
11129 ;;
11130 esac
11131 ;;
11132
11133 darwin* | rhapsody*)
11134
11135
11136 archive_cmds_need_lc=no
11137 hardcode_direct=no
11138 hardcode_automatic=yes
11139 hardcode_shlibpath_var=unsupported
11140 if test yes = "$lt_cv_ld_force_load"; then
11141 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\"`'
11142
11143 else
11144 whole_archive_flag_spec=''
11145 fi
11146 link_all_deplibs=yes
11147 allow_undefined_flag=$_lt_dar_allow_undefined
11148 case $cc_basename in
11149 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11150 *) _lt_dar_can_shared=$GCC ;;
11151 esac
11152 if test yes = "$_lt_dar_can_shared"; then
11153 output_verbose_link_cmd=func_echo_all
11154 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11155 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11156 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"
11157 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"
11158
11159 else
11160 ld_shlibs=no
11161 fi
11162
11163 ;;
11164
11165 dgux*)
11166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11167 hardcode_libdir_flag_spec='-L$libdir'
11168 hardcode_shlibpath_var=no
11169 ;;
11170
11171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11172 # support. Future versions do this automatically, but an explicit c++rt0.o
11173 # does not break anything, and helps significantly (at the cost of a little
11174 # extra space).
11175 freebsd2.2*)
11176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11177 hardcode_libdir_flag_spec='-R$libdir'
11178 hardcode_direct=yes
11179 hardcode_shlibpath_var=no
11180 ;;
11181
11182 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11183 freebsd2.*)
11184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11185 hardcode_direct=yes
11186 hardcode_minus_L=yes
11187 hardcode_shlibpath_var=no
11188 ;;
11189
11190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11191 freebsd* | dragonfly* | midnightbsd*)
11192 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11193 hardcode_libdir_flag_spec='-R$libdir'
11194 hardcode_direct=yes
11195 hardcode_shlibpath_var=no
11196 ;;
11197
11198 hpux9*)
11199 if test yes = "$GCC"; then
11200 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'
11201 else
11202 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'
11203 fi
11204 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11205 hardcode_libdir_separator=:
11206 hardcode_direct=yes
11207
11208 # hardcode_minus_L: Not really in the search PATH,
11209 # but as the default location of the library.
11210 hardcode_minus_L=yes
11211 export_dynamic_flag_spec='$wl-E'
11212 ;;
11213
11214 hpux10*)
11215 if test yes,no = "$GCC,$with_gnu_ld"; then
11216 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11217 else
11218 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11219 fi
11220 if test no = "$with_gnu_ld"; then
11221 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11222 hardcode_libdir_separator=:
11223 hardcode_direct=yes
11224 hardcode_direct_absolute=yes
11225 export_dynamic_flag_spec='$wl-E'
11226 # hardcode_minus_L: Not really in the search PATH,
11227 # but as the default location of the library.
11228 hardcode_minus_L=yes
11229 fi
11230 ;;
11231
11232 hpux11*)
11233 if test yes,no = "$GCC,$with_gnu_ld"; then
11234 case $host_cpu in
11235 hppa*64*)
11236 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11237 ;;
11238 ia64*)
11239 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11240 ;;
11241 *)
11242 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11243 ;;
11244 esac
11245 else
11246 case $host_cpu in
11247 hppa*64*)
11248 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11249 ;;
11250 ia64*)
11251 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11252 ;;
11253 *)
11254
11255 # Older versions of the 11.00 compiler do not understand -b yet
11256 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11258 printf %s "checking if $CC understands -b... " >&6; }
11259 if test ${lt_cv_prog_compiler__b+y}
11260 then :
11261 printf %s "(cached) " >&6
11262 else $as_nop
11263 lt_cv_prog_compiler__b=no
11264 save_LDFLAGS=$LDFLAGS
11265 LDFLAGS="$LDFLAGS -b"
11266 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11267 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11268 # The linker can only warn and ignore the option if not recognized
11269 # So say no if there are warnings
11270 if test -s conftest.err; then
11271 # Append any errors to the config.log.
11272 cat conftest.err 1>&5
11273 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11275 if diff conftest.exp conftest.er2 >/dev/null; then
11276 lt_cv_prog_compiler__b=yes
11277 fi
11278 else
11279 lt_cv_prog_compiler__b=yes
11280 fi
11281 fi
11282 $RM -r conftest*
11283 LDFLAGS=$save_LDFLAGS
11284
11285 fi
11286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11287 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11288
11289 if test yes = "$lt_cv_prog_compiler__b"; then
11290 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11291 else
11292 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11293 fi
11294
11295 ;;
11296 esac
11297 fi
11298 if test no = "$with_gnu_ld"; then
11299 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11300 hardcode_libdir_separator=:
11301
11302 case $host_cpu in
11303 hppa*64*|ia64*)
11304 hardcode_direct=no
11305 hardcode_shlibpath_var=no
11306 ;;
11307 *)
11308 hardcode_direct=yes
11309 hardcode_direct_absolute=yes
11310 export_dynamic_flag_spec='$wl-E'
11311
11312 # hardcode_minus_L: Not really in the search PATH,
11313 # but as the default location of the library.
11314 hardcode_minus_L=yes
11315 ;;
11316 esac
11317 fi
11318 ;;
11319
11320 irix5* | irix6* | nonstopux*)
11321 if test yes = "$GCC"; then
11322 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'
11323 # Try to use the -exported_symbol ld option, if it does not
11324 # work, assume that -exports_file does not work either and
11325 # implicitly export all symbols.
11326 # This should be the same for all languages, so no per-tag cache variable.
11327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11328 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11329 if test ${lt_cv_irix_exported_symbol+y}
11330 then :
11331 printf %s "(cached) " >&6
11332 else $as_nop
11333 save_LDFLAGS=$LDFLAGS
11334 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11337 int foo (void) { return 0; }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"
11340 then :
11341 lt_cv_irix_exported_symbol=yes
11342 else $as_nop
11343 lt_cv_irix_exported_symbol=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11346 conftest$ac_exeext conftest.$ac_ext
11347 LDFLAGS=$save_LDFLAGS
11348 fi
11349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11350 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11351 if test yes = "$lt_cv_irix_exported_symbol"; then
11352 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'
11353 fi
11354 link_all_deplibs=no
11355 else
11356 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'
11357 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'
11358 fi
11359 archive_cmds_need_lc='no'
11360 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11361 hardcode_libdir_separator=:
11362 inherit_rpath=yes
11363 link_all_deplibs=yes
11364 ;;
11365
11366 linux*)
11367 case $cc_basename in
11368 tcc*)
11369 # Fabrice Bellard et al's Tiny C Compiler
11370 ld_shlibs=yes
11371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11372 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11373 ;;
11374 esac
11375 ;;
11376
11377 netbsd* | netbsdelf*-gnu)
11378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11380 else
11381 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11382 fi
11383 hardcode_libdir_flag_spec='-R$libdir'
11384 hardcode_direct=yes
11385 hardcode_shlibpath_var=no
11386 ;;
11387
11388 newsos6)
11389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11390 hardcode_direct=yes
11391 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11392 hardcode_libdir_separator=:
11393 hardcode_shlibpath_var=no
11394 ;;
11395
11396 *nto* | *qnx*)
11397 ;;
11398
11399 openbsd* | bitrig*)
11400 if test -f /usr/libexec/ld.so; then
11401 hardcode_direct=yes
11402 hardcode_shlibpath_var=no
11403 hardcode_direct_absolute=yes
11404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11406 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11407 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11408 export_dynamic_flag_spec='$wl-E'
11409 else
11410 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11411 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11412 fi
11413 else
11414 ld_shlibs=no
11415 fi
11416 ;;
11417
11418 os2*)
11419 hardcode_libdir_flag_spec='-L$libdir'
11420 hardcode_minus_L=yes
11421 allow_undefined_flag=unsupported
11422 shrext_cmds=.dll
11423 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11424 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11425 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11426 $ECHO EXPORTS >> $output_objdir/$libname.def~
11427 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11428 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11429 emximp -o $lib $output_objdir/$libname.def'
11430 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11431 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11432 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11433 $ECHO EXPORTS >> $output_objdir/$libname.def~
11434 prefix_cmds="$SED"~
11435 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11436 prefix_cmds="$prefix_cmds -e 1d";
11437 fi~
11438 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11439 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11440 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11441 emximp -o $lib $output_objdir/$libname.def'
11442 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11443 enable_shared_with_static_runtimes=yes
11444 file_list_spec='@'
11445 ;;
11446
11447 osf3*)
11448 if test yes = "$GCC"; then
11449 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11450 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'
11451 else
11452 allow_undefined_flag=' -expect_unresolved \*'
11453 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'
11454 fi
11455 archive_cmds_need_lc='no'
11456 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11457 hardcode_libdir_separator=:
11458 ;;
11459
11460 osf4* | osf5*) # as osf3* with the addition of -msym flag
11461 if test yes = "$GCC"; then
11462 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11463 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'
11464 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11465 else
11466 allow_undefined_flag=' -expect_unresolved \*'
11467 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'
11468 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~
11469 $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'
11470
11471 # Both c and cxx compiler support -rpath directly
11472 hardcode_libdir_flag_spec='-rpath $libdir'
11473 fi
11474 archive_cmds_need_lc='no'
11475 hardcode_libdir_separator=:
11476 ;;
11477
11478 solaris*)
11479 no_undefined_flag=' -z defs'
11480 if test yes = "$GCC"; then
11481 wlarc='$wl'
11482 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11484 $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'
11485 else
11486 case `$CC -V 2>&1` in
11487 *"Compilers 5.0"*)
11488 wlarc=''
11489 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11491 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11492 ;;
11493 *)
11494 wlarc='$wl'
11495 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11497 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11498 ;;
11499 esac
11500 fi
11501 hardcode_libdir_flag_spec='-R$libdir'
11502 hardcode_shlibpath_var=no
11503 case $host_os in
11504 solaris2.[0-5] | solaris2.[0-5].*) ;;
11505 *)
11506 # The compiler driver will combine and reorder linker options,
11507 # but understands '-z linker_flag'. GCC discards it without '$wl',
11508 # but is careful enough not to reorder.
11509 # Supported since Solaris 2.6 (maybe 2.5.1?)
11510 if test yes = "$GCC"; then
11511 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11512 else
11513 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11514 fi
11515 ;;
11516 esac
11517 link_all_deplibs=yes
11518 ;;
11519
11520 sunos4*)
11521 if test sequent = "$host_vendor"; then
11522 # Use $CC to link under sequent, because it throws in some extra .o
11523 # files that make .init and .fini sections work.
11524 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11525 else
11526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11527 fi
11528 hardcode_libdir_flag_spec='-L$libdir'
11529 hardcode_direct=yes
11530 hardcode_minus_L=yes
11531 hardcode_shlibpath_var=no
11532 ;;
11533
11534 sysv4)
11535 case $host_vendor in
11536 sni)
11537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11538 hardcode_direct=yes # is this really true???
11539 ;;
11540 siemens)
11541 ## LD is ld it makes a PLAMLIB
11542 ## CC just makes a GrossModule.
11543 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11544 reload_cmds='$CC -r -o $output$reload_objs'
11545 hardcode_direct=no
11546 ;;
11547 motorola)
11548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11549 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11550 ;;
11551 esac
11552 runpath_var='LD_RUN_PATH'
11553 hardcode_shlibpath_var=no
11554 ;;
11555
11556 sysv4.3*)
11557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11558 hardcode_shlibpath_var=no
11559 export_dynamic_flag_spec='-Bexport'
11560 ;;
11561
11562 sysv4*MP*)
11563 if test -d /usr/nec; then
11564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11565 hardcode_shlibpath_var=no
11566 runpath_var=LD_RUN_PATH
11567 hardcode_runpath_var=yes
11568 ld_shlibs=yes
11569 fi
11570 ;;
11571
11572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11573 no_undefined_flag='$wl-z,text'
11574 archive_cmds_need_lc=no
11575 hardcode_shlibpath_var=no
11576 runpath_var='LD_RUN_PATH'
11577
11578 if test yes = "$GCC"; then
11579 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11580 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11581 else
11582 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11583 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11584 fi
11585 ;;
11586
11587 sysv5* | sco3.2v5* | sco5v6*)
11588 # Note: We CANNOT use -z defs as we might desire, because we do not
11589 # link with -lc, and that would cause any symbols used from libc to
11590 # always be unresolved, which means just about no library would
11591 # ever link correctly. If we're not using GNU ld we use -z text
11592 # though, which does catch some bad symbols but isn't as heavy-handed
11593 # as -z defs.
11594 no_undefined_flag='$wl-z,text'
11595 allow_undefined_flag='$wl-z,nodefs'
11596 archive_cmds_need_lc=no
11597 hardcode_shlibpath_var=no
11598 hardcode_libdir_flag_spec='$wl-R,$libdir'
11599 hardcode_libdir_separator=':'
11600 link_all_deplibs=yes
11601 export_dynamic_flag_spec='$wl-Bexport'
11602 runpath_var='LD_RUN_PATH'
11603
11604 if test yes = "$GCC"; then
11605 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11606 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11607 else
11608 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11609 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11610 fi
11611 ;;
11612
11613 uts4*)
11614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11615 hardcode_libdir_flag_spec='-L$libdir'
11616 hardcode_shlibpath_var=no
11617 ;;
11618
11619 *)
11620 ld_shlibs=no
11621 ;;
11622 esac
11623
11624 if test sni = "$host_vendor"; then
11625 case $host in
11626 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11627 export_dynamic_flag_spec='$wl-Blargedynsym'
11628 ;;
11629 esac
11630 fi
11631 fi
11632
11633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11634 printf "%s\n" "$ld_shlibs" >&6; }
11635 test no = "$ld_shlibs" && can_build_shared=no
11636
11637 with_gnu_ld=$with_gnu_ld
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653 #
11654 # Do we need to explicitly link libc?
11655 #
11656 case "x$archive_cmds_need_lc" in
11657 x|xyes)
11658 # Assume -lc should be added
11659 archive_cmds_need_lc=yes
11660
11661 if test yes,yes = "$GCC,$enable_shared"; then
11662 case $archive_cmds in
11663 *'~'*)
11664 # FIXME: we may have to deal with multi-command sequences.
11665 ;;
11666 '$CC '*)
11667 # Test whether the compiler implicitly links with -lc since on some
11668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11669 # to ld, don't add -lc before -lgcc.
11670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11671 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11672 if test ${lt_cv_archive_cmds_need_lc+y}
11673 then :
11674 printf %s "(cached) " >&6
11675 else $as_nop
11676 $RM conftest*
11677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11678
11679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11680 (eval $ac_compile) 2>&5
11681 ac_status=$?
11682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11683 test $ac_status = 0; } 2>conftest.err; then
11684 soname=conftest
11685 lib=conftest
11686 libobjs=conftest.$ac_objext
11687 deplibs=
11688 wl=$lt_prog_compiler_wl
11689 pic_flag=$lt_prog_compiler_pic
11690 compiler_flags=-v
11691 linker_flags=-v
11692 verstring=
11693 output_objdir=.
11694 libname=conftest
11695 lt_save_allow_undefined_flag=$allow_undefined_flag
11696 allow_undefined_flag=
11697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11698 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11699 ac_status=$?
11700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11701 test $ac_status = 0; }
11702 then
11703 lt_cv_archive_cmds_need_lc=no
11704 else
11705 lt_cv_archive_cmds_need_lc=yes
11706 fi
11707 allow_undefined_flag=$lt_save_allow_undefined_flag
11708 else
11709 cat conftest.err 1>&5
11710 fi
11711 $RM conftest*
11712
11713 fi
11714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11715 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11716 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11717 ;;
11718 esac
11719 fi
11720 ;;
11721 esac
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11875 printf %s "checking dynamic linker characteristics... " >&6; }
11876
11877 if test yes = "$GCC"; then
11878 case $host_os in
11879 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11880 *) lt_awk_arg='/^libraries:/' ;;
11881 esac
11882 case $host_os in
11883 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11884 *) lt_sed_strip_eq='s|=/|/|g' ;;
11885 esac
11886 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11887 case $lt_search_path_spec in
11888 *\;*)
11889 # if the path contains ";" then we assume it to be the separator
11890 # otherwise default to the standard path separator (i.e. ":") - it is
11891 # assumed that no part of a normal pathname contains ";" but that should
11892 # okay in the real world where ";" in dirpaths is itself problematic.
11893 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11894 ;;
11895 *)
11896 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11897 ;;
11898 esac
11899 # Ok, now we have the path, separated by spaces, we can step through it
11900 # and add multilib dir if necessary...
11901 lt_tmp_lt_search_path_spec=
11902 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11903 # ...but if some path component already ends with the multilib dir we assume
11904 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11905 case "$lt_multi_os_dir; $lt_search_path_spec " in
11906 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11907 lt_multi_os_dir=
11908 ;;
11909 esac
11910 for lt_sys_path in $lt_search_path_spec; do
11911 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11912 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11913 elif test -n "$lt_multi_os_dir"; then
11914 test -d "$lt_sys_path" && \
11915 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11916 fi
11917 done
11918 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11919 BEGIN {RS = " "; FS = "/|\n";} {
11920 lt_foo = "";
11921 lt_count = 0;
11922 for (lt_i = NF; lt_i > 0; lt_i--) {
11923 if ($lt_i != "" && $lt_i != ".") {
11924 if ($lt_i == "..") {
11925 lt_count++;
11926 } else {
11927 if (lt_count == 0) {
11928 lt_foo = "/" $lt_i lt_foo;
11929 } else {
11930 lt_count--;
11931 }
11932 }
11933 }
11934 }
11935 if (lt_foo != "") { lt_freq[lt_foo]++; }
11936 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11937 }'`
11938 # AWK program above erroneously prepends '/' to C:/dos/paths
11939 # for these hosts.
11940 case $host_os in
11941 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11942 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11943 esac
11944 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11945 else
11946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11947 fi
11948 library_names_spec=
11949 libname_spec='lib$name'
11950 soname_spec=
11951 shrext_cmds=.so
11952 postinstall_cmds=
11953 postuninstall_cmds=
11954 finish_cmds=
11955 finish_eval=
11956 shlibpath_var=
11957 shlibpath_overrides_runpath=unknown
11958 version_type=none
11959 dynamic_linker="$host_os ld.so"
11960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11961 need_lib_prefix=unknown
11962 hardcode_into_libs=no
11963
11964 # when you set need_version to no, make sure it does not cause -set_version
11965 # flags to be left without arguments
11966 need_version=unknown
11967
11968
11969
11970 case $host_os in
11971 aix3*)
11972 version_type=linux # correct to gnu/linux during the next big refactor
11973 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11974 shlibpath_var=LIBPATH
11975
11976 # AIX 3 has no versioning support, so we append a major version to the name.
11977 soname_spec='$libname$release$shared_ext$major'
11978 ;;
11979
11980 aix[4-9]*)
11981 version_type=linux # correct to gnu/linux during the next big refactor
11982 need_lib_prefix=no
11983 need_version=no
11984 hardcode_into_libs=yes
11985 if test ia64 = "$host_cpu"; then
11986 # AIX 5 supports IA64
11987 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 else
11990 # With GCC up to 2.95.x, collect2 would create an import file
11991 # for dependence libraries. The import file would start with
11992 # the line '#! .'. This would cause the generated library to
11993 # depend on '.', always an invalid library. This was fixed in
11994 # development snapshots of GCC prior to 3.0.
11995 case $host_os in
11996 aix4 | aix4.[01] | aix4.[01].*)
11997 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11998 echo ' yes '
11999 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12000 :
12001 else
12002 can_build_shared=no
12003 fi
12004 ;;
12005 esac
12006 # Using Import Files as archive members, it is possible to support
12007 # filename-based versioning of shared library archives on AIX. While
12008 # this would work for both with and without runtime linking, it will
12009 # prevent static linking of such archives. So we do filename-based
12010 # shared library versioning with .so extension only, which is used
12011 # when both runtime linking and shared linking is enabled.
12012 # Unfortunately, runtime linking may impact performance, so we do
12013 # not want this to be the default eventually. Also, we use the
12014 # versioned .so libs for executables only if there is the -brtl
12015 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12016 # To allow for filename-based versioning support, we need to create
12017 # libNAME.so.V as an archive file, containing:
12018 # *) an Import File, referring to the versioned filename of the
12019 # archive as well as the shared archive member, telling the
12020 # bitwidth (32 or 64) of that shared object, and providing the
12021 # list of exported symbols of that shared object, eventually
12022 # decorated with the 'weak' keyword
12023 # *) the shared object with the F_LOADONLY flag set, to really avoid
12024 # it being seen by the linker.
12025 # At run time we better use the real file rather than another symlink,
12026 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12027
12028 case $with_aix_soname,$aix_use_runtimelinking in
12029 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12030 # soname into executable. Probably we can add versioning support to
12031 # collect2, so additional links can be useful in future.
12032 aix,yes) # traditional libtool
12033 dynamic_linker='AIX unversionable lib.so'
12034 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12035 # instead of lib<name>.a to let people know that these are not
12036 # typical AIX shared libraries.
12037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038 ;;
12039 aix,no) # traditional AIX only
12040 dynamic_linker='AIX lib.a(lib.so.V)'
12041 # We preserve .a as extension for shared libraries through AIX4.2
12042 # and later when we are not doing run time linking.
12043 library_names_spec='$libname$release.a $libname.a'
12044 soname_spec='$libname$release$shared_ext$major'
12045 ;;
12046 svr4,*) # full svr4 only
12047 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12048 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12049 # We do not specify a path in Import Files, so LIBPATH fires.
12050 shlibpath_overrides_runpath=yes
12051 ;;
12052 *,yes) # both, prefer svr4
12053 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12054 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12055 # unpreferred sharedlib libNAME.a needs extra handling
12056 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"'
12057 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"'
12058 # We do not specify a path in Import Files, so LIBPATH fires.
12059 shlibpath_overrides_runpath=yes
12060 ;;
12061 *,no) # both, prefer aix
12062 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12063 library_names_spec='$libname$release.a $libname.a'
12064 soname_spec='$libname$release$shared_ext$major'
12065 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12066 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)'
12067 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"'
12068 ;;
12069 esac
12070 shlibpath_var=LIBPATH
12071 fi
12072 ;;
12073
12074 amigaos*)
12075 case $host_cpu in
12076 powerpc)
12077 # Since July 2007 AmigaOS4 officially supports .so libraries.
12078 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12080 ;;
12081 m68k)
12082 library_names_spec='$libname.ixlibrary $libname.a'
12083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12084 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'
12085 ;;
12086 esac
12087 ;;
12088
12089 beos*)
12090 library_names_spec='$libname$shared_ext'
12091 dynamic_linker="$host_os ld.so"
12092 shlibpath_var=LIBRARY_PATH
12093 ;;
12094
12095 bsdi[45]*)
12096 version_type=linux # correct to gnu/linux during the next big refactor
12097 need_version=no
12098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12099 soname_spec='$libname$release$shared_ext$major'
12100 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12101 shlibpath_var=LD_LIBRARY_PATH
12102 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12103 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12104 # the default ld.so.conf also contains /usr/contrib/lib and
12105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12106 # libtool to hard-code these into programs
12107 ;;
12108
12109 cygwin* | mingw* | pw32* | cegcc*)
12110 version_type=windows
12111 shrext_cmds=.dll
12112 need_version=no
12113 need_lib_prefix=no
12114
12115 case $GCC,$cc_basename in
12116 yes,*)
12117 # gcc
12118 library_names_spec='$libname.dll.a'
12119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12120 postinstall_cmds='base_file=`basename \$file`~
12121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12122 dldir=$destdir/`dirname \$dlpath`~
12123 test -d \$dldir || mkdir -p \$dldir~
12124 $install_prog $dir/$dlname \$dldir/$dlname~
12125 chmod a+x \$dldir/$dlname~
12126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12128 fi'
12129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12130 dlpath=$dir/\$dldll~
12131 $RM \$dlpath'
12132 shlibpath_overrides_runpath=yes
12133
12134 case $host_os in
12135 cygwin*)
12136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12137 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12138
12139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12140 ;;
12141 mingw* | cegcc*)
12142 # MinGW DLLs use traditional 'lib' prefix
12143 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12144 ;;
12145 pw32*)
12146 # pw32 DLLs use 'pw' prefix rather than 'lib'
12147 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12148 ;;
12149 esac
12150 dynamic_linker='Win32 ld.exe'
12151 ;;
12152
12153 *,cl* | *,icl*)
12154 # Native MSVC or ICC
12155 libname_spec='$name'
12156 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12157 library_names_spec='$libname.dll.lib'
12158
12159 case $build_os in
12160 mingw*)
12161 sys_lib_search_path_spec=
12162 lt_save_ifs=$IFS
12163 IFS=';'
12164 for lt_path in $LIB
12165 do
12166 IFS=$lt_save_ifs
12167 # Let DOS variable expansion print the short 8.3 style file name.
12168 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12169 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12170 done
12171 IFS=$lt_save_ifs
12172 # Convert to MSYS style.
12173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12174 ;;
12175 cygwin*)
12176 # Convert to unix form, then to dos form, then back to unix form
12177 # but this time dos style (no spaces!) so that the unix form looks
12178 # like /cygdrive/c/PROGRA~1:/cygdr...
12179 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12180 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12181 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12182 ;;
12183 *)
12184 sys_lib_search_path_spec=$LIB
12185 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12186 # It is most probably a Windows format PATH.
12187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12188 else
12189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12190 fi
12191 # FIXME: find the short name or the path components, as spaces are
12192 # common. (e.g. "Program Files" -> "PROGRA~1")
12193 ;;
12194 esac
12195
12196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12197 postinstall_cmds='base_file=`basename \$file`~
12198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12199 dldir=$destdir/`dirname \$dlpath`~
12200 test -d \$dldir || mkdir -p \$dldir~
12201 $install_prog $dir/$dlname \$dldir/$dlname'
12202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12203 dlpath=$dir/\$dldll~
12204 $RM \$dlpath'
12205 shlibpath_overrides_runpath=yes
12206 dynamic_linker='Win32 link.exe'
12207 ;;
12208
12209 *)
12210 # Assume MSVC and ICC wrapper
12211 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12212 dynamic_linker='Win32 ld.exe'
12213 ;;
12214 esac
12215 # FIXME: first we should search . and the directory the executable is in
12216 shlibpath_var=PATH
12217 ;;
12218
12219 darwin* | rhapsody*)
12220 dynamic_linker="$host_os dyld"
12221 version_type=darwin
12222 need_lib_prefix=no
12223 need_version=no
12224 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12225 soname_spec='$libname$release$major$shared_ext'
12226 shlibpath_overrides_runpath=yes
12227 shlibpath_var=DYLD_LIBRARY_PATH
12228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12229
12230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12232 ;;
12233
12234 dgux*)
12235 version_type=linux # correct to gnu/linux during the next big refactor
12236 need_lib_prefix=no
12237 need_version=no
12238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12239 soname_spec='$libname$release$shared_ext$major'
12240 shlibpath_var=LD_LIBRARY_PATH
12241 ;;
12242
12243 freebsd* | dragonfly* | midnightbsd*)
12244 # DragonFly does not have aout. When/if they implement a new
12245 # versioning mechanism, adjust this.
12246 if test -x /usr/bin/objformat; then
12247 objformat=`/usr/bin/objformat`
12248 else
12249 case $host_os in
12250 freebsd[23].*) objformat=aout ;;
12251 *) objformat=elf ;;
12252 esac
12253 fi
12254 version_type=freebsd-$objformat
12255 case $version_type in
12256 freebsd-elf*)
12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12258 soname_spec='$libname$release$shared_ext$major'
12259 need_version=no
12260 need_lib_prefix=no
12261 ;;
12262 freebsd-*)
12263 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12264 need_version=yes
12265 ;;
12266 esac
12267 shlibpath_var=LD_LIBRARY_PATH
12268 case $host_os in
12269 freebsd2.*)
12270 shlibpath_overrides_runpath=yes
12271 ;;
12272 freebsd3.[01]* | freebsdelf3.[01]*)
12273 shlibpath_overrides_runpath=yes
12274 hardcode_into_libs=yes
12275 ;;
12276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12278 shlibpath_overrides_runpath=no
12279 hardcode_into_libs=yes
12280 ;;
12281 *) # from 4.6 on, and DragonFly
12282 shlibpath_overrides_runpath=yes
12283 hardcode_into_libs=yes
12284 ;;
12285 esac
12286 ;;
12287
12288 haiku*)
12289 version_type=linux # correct to gnu/linux during the next big refactor
12290 need_lib_prefix=no
12291 need_version=no
12292 dynamic_linker="$host_os runtime_loader"
12293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12294 soname_spec='$libname$release$shared_ext$major'
12295 shlibpath_var=LIBRARY_PATH
12296 shlibpath_overrides_runpath=no
12297 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12298 hardcode_into_libs=yes
12299 ;;
12300
12301 hpux9* | hpux10* | hpux11*)
12302 # Give a soname corresponding to the major version so that dld.sl refuses to
12303 # link against other versions.
12304 version_type=sunos
12305 need_lib_prefix=no
12306 need_version=no
12307 case $host_cpu in
12308 ia64*)
12309 shrext_cmds='.so'
12310 hardcode_into_libs=yes
12311 dynamic_linker="$host_os dld.so"
12312 shlibpath_var=LD_LIBRARY_PATH
12313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12315 soname_spec='$libname$release$shared_ext$major'
12316 if test 32 = "$HPUX_IA64_MODE"; then
12317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12318 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12319 else
12320 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12321 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12322 fi
12323 ;;
12324 hppa*64*)
12325 shrext_cmds='.sl'
12326 hardcode_into_libs=yes
12327 dynamic_linker="$host_os dld.sl"
12328 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331 soname_spec='$libname$release$shared_ext$major'
12332 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12334 ;;
12335 *)
12336 shrext_cmds='.sl'
12337 dynamic_linker="$host_os dld.sl"
12338 shlibpath_var=SHLIB_PATH
12339 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341 soname_spec='$libname$release$shared_ext$major'
12342 ;;
12343 esac
12344 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12345 postinstall_cmds='chmod 555 $lib'
12346 # or fails outright, so override atomically:
12347 install_override_mode=555
12348 ;;
12349
12350 interix[3-9]*)
12351 version_type=linux # correct to gnu/linux during the next big refactor
12352 need_lib_prefix=no
12353 need_version=no
12354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12355 soname_spec='$libname$release$shared_ext$major'
12356 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12357 shlibpath_var=LD_LIBRARY_PATH
12358 shlibpath_overrides_runpath=no
12359 hardcode_into_libs=yes
12360 ;;
12361
12362 irix5* | irix6* | nonstopux*)
12363 case $host_os in
12364 nonstopux*) version_type=nonstopux ;;
12365 *)
12366 if test yes = "$lt_cv_prog_gnu_ld"; then
12367 version_type=linux # correct to gnu/linux during the next big refactor
12368 else
12369 version_type=irix
12370 fi ;;
12371 esac
12372 need_lib_prefix=no
12373 need_version=no
12374 soname_spec='$libname$release$shared_ext$major'
12375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12376 case $host_os in
12377 irix5* | nonstopux*)
12378 libsuff= shlibsuff=
12379 ;;
12380 *)
12381 case $LD in # libtool.m4 will add one of these switches to LD
12382 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12383 libsuff= shlibsuff= libmagic=32-bit;;
12384 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12385 libsuff=32 shlibsuff=N32 libmagic=N32;;
12386 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12387 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12388 *) libsuff= shlibsuff= libmagic=never-match;;
12389 esac
12390 ;;
12391 esac
12392 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12393 shlibpath_overrides_runpath=no
12394 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12395 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12396 hardcode_into_libs=yes
12397 ;;
12398
12399 # No shared lib support for Linux oldld, aout, or coff.
12400 linux*oldld* | linux*aout* | linux*coff*)
12401 dynamic_linker=no
12402 ;;
12403
12404 linux*android*)
12405 version_type=none # Android doesn't support versioned libraries.
12406 need_lib_prefix=no
12407 need_version=no
12408 library_names_spec='$libname$release$shared_ext'
12409 soname_spec='$libname$release$shared_ext'
12410 finish_cmds=
12411 shlibpath_var=LD_LIBRARY_PATH
12412 shlibpath_overrides_runpath=yes
12413
12414 # This implies no fast_install, which is unacceptable.
12415 # Some rework will be needed to allow for fast_install
12416 # before this can be enabled.
12417 hardcode_into_libs=yes
12418
12419 dynamic_linker='Android linker'
12420 # Don't embed -rpath directories since the linker doesn't support them.
12421 hardcode_libdir_flag_spec='-L$libdir'
12422 ;;
12423
12424 # This must be glibc/ELF.
12425 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12426 version_type=linux # correct to gnu/linux during the next big refactor
12427 need_lib_prefix=no
12428 need_version=no
12429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12430 soname_spec='$libname$release$shared_ext$major'
12431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=no
12434
12435 # Some binutils ld are patched to set DT_RUNPATH
12436 if test ${lt_cv_shlibpath_overrides_runpath+y}
12437 then :
12438 printf %s "(cached) " >&6
12439 else $as_nop
12440 lt_cv_shlibpath_overrides_runpath=no
12441 save_LDFLAGS=$LDFLAGS
12442 save_libdir=$libdir
12443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12447
12448 int
12449 main (void)
12450 {
12451
12452 ;
12453 return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"
12457 then :
12458 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12459 then :
12460 lt_cv_shlibpath_overrides_runpath=yes
12461 fi
12462 fi
12463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LDFLAGS=$save_LDFLAGS
12466 libdir=$save_libdir
12467
12468 fi
12469
12470 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12471
12472 # This implies no fast_install, which is unacceptable.
12473 # Some rework will be needed to allow for fast_install
12474 # before this can be enabled.
12475 hardcode_into_libs=yes
12476
12477 # Ideally, we could use ldconfig to report *all* directores which are
12478 # searched for libraries, however this is still not possible. Aside from not
12479 # being certain /sbin/ldconfig is available, command
12480 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12481 # even though it is searched at run-time. Try to do the best guess by
12482 # appending ld.so.conf contents (and includes) to the search path.
12483 if test -f /etc/ld.so.conf; then
12484 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' ' '`
12485 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12486 fi
12487
12488 # We used to test for /lib/ld.so.1 and disable shared libraries on
12489 # powerpc, because MkLinux only supported shared libraries with the
12490 # GNU dynamic linker. Since this was broken with cross compilers,
12491 # most powerpc-linux boxes support dynamic linking these days and
12492 # people can always --disable-shared, the test was removed, and we
12493 # assume the GNU/Linux dynamic linker is in use.
12494 dynamic_linker='GNU/Linux ld.so'
12495 ;;
12496
12497 netbsdelf*-gnu)
12498 version_type=linux
12499 need_lib_prefix=no
12500 need_version=no
12501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12502 soname_spec='${libname}${release}${shared_ext}$major'
12503 shlibpath_var=LD_LIBRARY_PATH
12504 shlibpath_overrides_runpath=no
12505 hardcode_into_libs=yes
12506 dynamic_linker='NetBSD ld.elf_so'
12507 ;;
12508
12509 netbsd*)
12510 version_type=sunos
12511 need_lib_prefix=no
12512 need_version=no
12513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12514 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12516 dynamic_linker='NetBSD (a.out) ld.so'
12517 else
12518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12519 soname_spec='$libname$release$shared_ext$major'
12520 dynamic_linker='NetBSD ld.elf_so'
12521 fi
12522 shlibpath_var=LD_LIBRARY_PATH
12523 shlibpath_overrides_runpath=yes
12524 hardcode_into_libs=yes
12525 ;;
12526
12527 newsos6)
12528 version_type=linux # correct to gnu/linux during the next big refactor
12529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12530 shlibpath_var=LD_LIBRARY_PATH
12531 shlibpath_overrides_runpath=yes
12532 ;;
12533
12534 *nto* | *qnx*)
12535 version_type=qnx
12536 need_lib_prefix=no
12537 need_version=no
12538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12539 soname_spec='$libname$release$shared_ext$major'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 shlibpath_overrides_runpath=no
12542 hardcode_into_libs=yes
12543 dynamic_linker='ldqnx.so'
12544 ;;
12545
12546 openbsd* | bitrig*)
12547 version_type=sunos
12548 sys_lib_dlsearch_path_spec=/usr/lib
12549 need_lib_prefix=no
12550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12551 need_version=no
12552 else
12553 need_version=yes
12554 fi
12555 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12557 shlibpath_var=LD_LIBRARY_PATH
12558 shlibpath_overrides_runpath=yes
12559 ;;
12560
12561 os2*)
12562 libname_spec='$name'
12563 version_type=windows
12564 shrext_cmds=.dll
12565 need_version=no
12566 need_lib_prefix=no
12567 # OS/2 can only load a DLL with a base name of 8 characters or less.
12568 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12569 v=$($ECHO $release$versuffix | tr -d .-);
12570 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12571 $ECHO $n$v`$shared_ext'
12572 library_names_spec='${libname}_dll.$libext'
12573 dynamic_linker='OS/2 ld.exe'
12574 shlibpath_var=BEGINLIBPATH
12575 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12577 postinstall_cmds='base_file=`basename \$file`~
12578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12579 dldir=$destdir/`dirname \$dlpath`~
12580 test -d \$dldir || mkdir -p \$dldir~
12581 $install_prog $dir/$dlname \$dldir/$dlname~
12582 chmod a+x \$dldir/$dlname~
12583 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12584 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12585 fi'
12586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12587 dlpath=$dir/\$dldll~
12588 $RM \$dlpath'
12589 ;;
12590
12591 osf3* | osf4* | osf5*)
12592 version_type=osf
12593 need_lib_prefix=no
12594 need_version=no
12595 soname_spec='$libname$release$shared_ext$major'
12596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12600 ;;
12601
12602 rdos*)
12603 dynamic_linker=no
12604 ;;
12605
12606 solaris*)
12607 version_type=linux # correct to gnu/linux during the next big refactor
12608 need_lib_prefix=no
12609 need_version=no
12610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12611 soname_spec='$libname$release$shared_ext$major'
12612 shlibpath_var=LD_LIBRARY_PATH
12613 shlibpath_overrides_runpath=yes
12614 hardcode_into_libs=yes
12615 # ldd complains unless libraries are executable
12616 postinstall_cmds='chmod +x $lib'
12617 ;;
12618
12619 sunos4*)
12620 version_type=sunos
12621 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12622 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12623 shlibpath_var=LD_LIBRARY_PATH
12624 shlibpath_overrides_runpath=yes
12625 if test yes = "$with_gnu_ld"; then
12626 need_lib_prefix=no
12627 fi
12628 need_version=yes
12629 ;;
12630
12631 sysv4 | sysv4.3*)
12632 version_type=linux # correct to gnu/linux during the next big refactor
12633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12634 soname_spec='$libname$release$shared_ext$major'
12635 shlibpath_var=LD_LIBRARY_PATH
12636 case $host_vendor in
12637 sni)
12638 shlibpath_overrides_runpath=no
12639 need_lib_prefix=no
12640 runpath_var=LD_RUN_PATH
12641 ;;
12642 siemens)
12643 need_lib_prefix=no
12644 ;;
12645 motorola)
12646 need_lib_prefix=no
12647 need_version=no
12648 shlibpath_overrides_runpath=no
12649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12650 ;;
12651 esac
12652 ;;
12653
12654 sysv4*MP*)
12655 if test -d /usr/nec; then
12656 version_type=linux # correct to gnu/linux during the next big refactor
12657 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12658 soname_spec='$libname$shared_ext.$major'
12659 shlibpath_var=LD_LIBRARY_PATH
12660 fi
12661 ;;
12662
12663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12664 version_type=sco
12665 need_lib_prefix=no
12666 need_version=no
12667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12668 soname_spec='$libname$release$shared_ext$major'
12669 shlibpath_var=LD_LIBRARY_PATH
12670 shlibpath_overrides_runpath=yes
12671 hardcode_into_libs=yes
12672 if test yes = "$with_gnu_ld"; then
12673 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12674 else
12675 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12676 case $host_os in
12677 sco3.2v5*)
12678 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12679 ;;
12680 esac
12681 fi
12682 sys_lib_dlsearch_path_spec='/usr/lib'
12683 ;;
12684
12685 tpf*)
12686 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12687 version_type=linux # correct to gnu/linux during the next big refactor
12688 need_lib_prefix=no
12689 need_version=no
12690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12691 shlibpath_var=LD_LIBRARY_PATH
12692 shlibpath_overrides_runpath=no
12693 hardcode_into_libs=yes
12694 ;;
12695
12696 uts4*)
12697 version_type=linux # correct to gnu/linux during the next big refactor
12698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12699 soname_spec='$libname$release$shared_ext$major'
12700 shlibpath_var=LD_LIBRARY_PATH
12701 ;;
12702
12703 *)
12704 dynamic_linker=no
12705 ;;
12706 esac
12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12708 printf "%s\n" "$dynamic_linker" >&6; }
12709 test no = "$dynamic_linker" && can_build_shared=no
12710
12711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12712 if test yes = "$GCC"; then
12713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12714 fi
12715
12716 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12717 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12718 fi
12719
12720 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12721 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12722 fi
12723
12724 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12725 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12726
12727 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12728 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12729
12730 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12731 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12830 printf %s "checking how to hardcode library paths into programs... " >&6; }
12831 hardcode_action=
12832 if test -n "$hardcode_libdir_flag_spec" ||
12833 test -n "$runpath_var" ||
12834 test yes = "$hardcode_automatic"; then
12835
12836 # We can hardcode non-existent directories.
12837 if test no != "$hardcode_direct" &&
12838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12839 # have to relink, otherwise we might link with an installed library
12840 # when we should be linking with a yet-to-be-installed one
12841 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12842 test no != "$hardcode_minus_L"; then
12843 # Linking always hardcodes the temporary library directory.
12844 hardcode_action=relink
12845 else
12846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12847 hardcode_action=immediate
12848 fi
12849 else
12850 # We cannot hardcode anything, or else we can only hardcode existing
12851 # directories.
12852 hardcode_action=unsupported
12853 fi
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12855 printf "%s\n" "$hardcode_action" >&6; }
12856
12857 if test relink = "$hardcode_action" ||
12858 test yes = "$inherit_rpath"; then
12859 # Fast installation is not supported
12860 enable_fast_install=no
12861 elif test yes = "$shlibpath_overrides_runpath" ||
12862 test no = "$enable_shared"; then
12863 # Fast installation is not necessary
12864 enable_fast_install=needless
12865 fi
12866
12867
12868
12869
12870
12871
12872 if test yes != "$enable_dlopen"; then
12873 enable_dlopen=unknown
12874 enable_dlopen_self=unknown
12875 enable_dlopen_self_static=unknown
12876 else
12877 lt_cv_dlopen=no
12878 lt_cv_dlopen_libs=
12879
12880 case $host_os in
12881 beos*)
12882 lt_cv_dlopen=load_add_on
12883 lt_cv_dlopen_libs=
12884 lt_cv_dlopen_self=yes
12885 ;;
12886
12887 mingw* | pw32* | cegcc*)
12888 lt_cv_dlopen=LoadLibrary
12889 lt_cv_dlopen_libs=
12890 ;;
12891
12892 cygwin*)
12893 lt_cv_dlopen=dlopen
12894 lt_cv_dlopen_libs=
12895 ;;
12896
12897 darwin*)
12898 # if libdl is installed we need to link against it
12899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12900 printf %s "checking for dlopen in -ldl... " >&6; }
12901 if test ${ac_cv_lib_dl_dlopen+y}
12902 then :
12903 printf %s "(cached) " >&6
12904 else $as_nop
12905 ac_check_lib_save_LIBS=$LIBS
12906 LIBS="-ldl $LIBS"
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909
12910 /* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
12913 char dlopen ();
12914 int
12915 main (void)
12916 {
12917 return dlopen ();
12918 ;
12919 return 0;
12920 }
12921 _ACEOF
12922 if ac_fn_c_try_link "$LINENO"
12923 then :
12924 ac_cv_lib_dl_dlopen=yes
12925 else $as_nop
12926 ac_cv_lib_dl_dlopen=no
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12929 conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12931 fi
12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12933 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12934 if test "x$ac_cv_lib_dl_dlopen" = xyes
12935 then :
12936 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12937 else $as_nop
12938
12939 lt_cv_dlopen=dyld
12940 lt_cv_dlopen_libs=
12941 lt_cv_dlopen_self=yes
12942
12943 fi
12944
12945 ;;
12946
12947 tpf*)
12948 # Don't try to run any link tests for TPF. We know it's impossible
12949 # because TPF is a cross-compiler, and we know how we open DSOs.
12950 lt_cv_dlopen=dlopen
12951 lt_cv_dlopen_libs=
12952 lt_cv_dlopen_self=no
12953 ;;
12954
12955 *)
12956 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12957 if test "x$ac_cv_func_shl_load" = xyes
12958 then :
12959 lt_cv_dlopen=shl_load
12960 else $as_nop
12961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12962 printf %s "checking for shl_load in -ldld... " >&6; }
12963 if test ${ac_cv_lib_dld_shl_load+y}
12964 then :
12965 printf %s "(cached) " >&6
12966 else $as_nop
12967 ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-ldld $LIBS"
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12971
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12975 char shl_load ();
12976 int
12977 main (void)
12978 {
12979 return shl_load ();
12980 ;
12981 return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_link "$LINENO"
12985 then :
12986 ac_cv_lib_dld_shl_load=yes
12987 else $as_nop
12988 ac_cv_lib_dld_shl_load=no
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12991 conftest$ac_exeext conftest.$ac_ext
12992 LIBS=$ac_check_lib_save_LIBS
12993 fi
12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12995 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12996 if test "x$ac_cv_lib_dld_shl_load" = xyes
12997 then :
12998 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12999 else $as_nop
13000 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13001 if test "x$ac_cv_func_dlopen" = xyes
13002 then :
13003 lt_cv_dlopen=dlopen
13004 else $as_nop
13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13006 printf %s "checking for dlopen in -ldl... " >&6; }
13007 if test ${ac_cv_lib_dl_dlopen+y}
13008 then :
13009 printf %s "(cached) " >&6
13010 else $as_nop
13011 ac_check_lib_save_LIBS=$LIBS
13012 LIBS="-ldl $LIBS"
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015
13016 /* Override any GCC internal prototype to avoid an error.
13017 Use char because int might match the return type of a GCC
13018 builtin and then its argument prototype would still apply. */
13019 char dlopen ();
13020 int
13021 main (void)
13022 {
13023 return dlopen ();
13024 ;
13025 return 0;
13026 }
13027 _ACEOF
13028 if ac_fn_c_try_link "$LINENO"
13029 then :
13030 ac_cv_lib_dl_dlopen=yes
13031 else $as_nop
13032 ac_cv_lib_dl_dlopen=no
13033 fi
13034 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13035 conftest$ac_exeext conftest.$ac_ext
13036 LIBS=$ac_check_lib_save_LIBS
13037 fi
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13039 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13040 if test "x$ac_cv_lib_dl_dlopen" = xyes
13041 then :
13042 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13043 else $as_nop
13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13045 printf %s "checking for dlopen in -lsvld... " >&6; }
13046 if test ${ac_cv_lib_svld_dlopen+y}
13047 then :
13048 printf %s "(cached) " >&6
13049 else $as_nop
13050 ac_check_lib_save_LIBS=$LIBS
13051 LIBS="-lsvld $LIBS"
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13054
13055 /* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13058 char dlopen ();
13059 int
13060 main (void)
13061 {
13062 return dlopen ();
13063 ;
13064 return 0;
13065 }
13066 _ACEOF
13067 if ac_fn_c_try_link "$LINENO"
13068 then :
13069 ac_cv_lib_svld_dlopen=yes
13070 else $as_nop
13071 ac_cv_lib_svld_dlopen=no
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13074 conftest$ac_exeext conftest.$ac_ext
13075 LIBS=$ac_check_lib_save_LIBS
13076 fi
13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13078 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13079 if test "x$ac_cv_lib_svld_dlopen" = xyes
13080 then :
13081 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13082 else $as_nop
13083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13084 printf %s "checking for dld_link in -ldld... " >&6; }
13085 if test ${ac_cv_lib_dld_dld_link+y}
13086 then :
13087 printf %s "(cached) " >&6
13088 else $as_nop
13089 ac_check_lib_save_LIBS=$LIBS
13090 LIBS="-ldld $LIBS"
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093
13094 /* Override any GCC internal prototype to avoid an error.
13095 Use char because int might match the return type of a GCC
13096 builtin and then its argument prototype would still apply. */
13097 char dld_link ();
13098 int
13099 main (void)
13100 {
13101 return dld_link ();
13102 ;
13103 return 0;
13104 }
13105 _ACEOF
13106 if ac_fn_c_try_link "$LINENO"
13107 then :
13108 ac_cv_lib_dld_dld_link=yes
13109 else $as_nop
13110 ac_cv_lib_dld_dld_link=no
13111 fi
13112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13113 conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13115 fi
13116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13117 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13118 if test "x$ac_cv_lib_dld_dld_link" = xyes
13119 then :
13120 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13121 fi
13122
13123
13124 fi
13125
13126
13127 fi
13128
13129
13130 fi
13131
13132
13133 fi
13134
13135
13136 fi
13137
13138 ;;
13139 esac
13140
13141 if test no = "$lt_cv_dlopen"; then
13142 enable_dlopen=no
13143 else
13144 enable_dlopen=yes
13145 fi
13146
13147 case $lt_cv_dlopen in
13148 dlopen)
13149 save_CPPFLAGS=$CPPFLAGS
13150 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13151
13152 save_LDFLAGS=$LDFLAGS
13153 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13154
13155 save_LIBS=$LIBS
13156 LIBS="$lt_cv_dlopen_libs $LIBS"
13157
13158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13159 printf %s "checking whether a program can dlopen itself... " >&6; }
13160 if test ${lt_cv_dlopen_self+y}
13161 then :
13162 printf %s "(cached) " >&6
13163 else $as_nop
13164 if test yes = "$cross_compiling"; then :
13165 lt_cv_dlopen_self=cross
13166 else
13167 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13168 lt_status=$lt_dlunknown
13169 cat > conftest.$ac_ext <<_LT_EOF
13170 #line $LINENO "configure"
13171 #include "confdefs.h"
13172
13173 #if HAVE_DLFCN_H
13174 #include <dlfcn.h>
13175 #endif
13176
13177 #include <stdio.h>
13178
13179 #ifdef RTLD_GLOBAL
13180 # define LT_DLGLOBAL RTLD_GLOBAL
13181 #else
13182 # ifdef DL_GLOBAL
13183 # define LT_DLGLOBAL DL_GLOBAL
13184 # else
13185 # define LT_DLGLOBAL 0
13186 # endif
13187 #endif
13188
13189 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13190 find out it does not work in some platform. */
13191 #ifndef LT_DLLAZY_OR_NOW
13192 # ifdef RTLD_LAZY
13193 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13194 # else
13195 # ifdef DL_LAZY
13196 # define LT_DLLAZY_OR_NOW DL_LAZY
13197 # else
13198 # ifdef RTLD_NOW
13199 # define LT_DLLAZY_OR_NOW RTLD_NOW
13200 # else
13201 # ifdef DL_NOW
13202 # define LT_DLLAZY_OR_NOW DL_NOW
13203 # else
13204 # define LT_DLLAZY_OR_NOW 0
13205 # endif
13206 # endif
13207 # endif
13208 # endif
13209 #endif
13210
13211 /* When -fvisibility=hidden is used, assume the code has been annotated
13212 correspondingly for the symbols needed. */
13213 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13214 int fnord () __attribute__((visibility("default")));
13215 #endif
13216
13217 int fnord () { return 42; }
13218 int main ()
13219 {
13220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13221 int status = $lt_dlunknown;
13222
13223 if (self)
13224 {
13225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13226 else
13227 {
13228 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13229 else puts (dlerror ());
13230 }
13231 /* dlclose (self); */
13232 }
13233 else
13234 puts (dlerror ());
13235
13236 return status;
13237 }
13238 _LT_EOF
13239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13240 (eval $ac_link) 2>&5
13241 ac_status=$?
13242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13243 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13244 (./conftest; exit; ) >&5 2>/dev/null
13245 lt_status=$?
13246 case x$lt_status in
13247 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13248 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13249 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13250 esac
13251 else :
13252 # compilation failed
13253 lt_cv_dlopen_self=no
13254 fi
13255 fi
13256 rm -fr conftest*
13257
13258
13259 fi
13260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13261 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13262
13263 if test yes = "$lt_cv_dlopen_self"; then
13264 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13266 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13267 if test ${lt_cv_dlopen_self_static+y}
13268 then :
13269 printf %s "(cached) " >&6
13270 else $as_nop
13271 if test yes = "$cross_compiling"; then :
13272 lt_cv_dlopen_self_static=cross
13273 else
13274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13275 lt_status=$lt_dlunknown
13276 cat > conftest.$ac_ext <<_LT_EOF
13277 #line $LINENO "configure"
13278 #include "confdefs.h"
13279
13280 #if HAVE_DLFCN_H
13281 #include <dlfcn.h>
13282 #endif
13283
13284 #include <stdio.h>
13285
13286 #ifdef RTLD_GLOBAL
13287 # define LT_DLGLOBAL RTLD_GLOBAL
13288 #else
13289 # ifdef DL_GLOBAL
13290 # define LT_DLGLOBAL DL_GLOBAL
13291 # else
13292 # define LT_DLGLOBAL 0
13293 # endif
13294 #endif
13295
13296 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13297 find out it does not work in some platform. */
13298 #ifndef LT_DLLAZY_OR_NOW
13299 # ifdef RTLD_LAZY
13300 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13301 # else
13302 # ifdef DL_LAZY
13303 # define LT_DLLAZY_OR_NOW DL_LAZY
13304 # else
13305 # ifdef RTLD_NOW
13306 # define LT_DLLAZY_OR_NOW RTLD_NOW
13307 # else
13308 # ifdef DL_NOW
13309 # define LT_DLLAZY_OR_NOW DL_NOW
13310 # else
13311 # define LT_DLLAZY_OR_NOW 0
13312 # endif
13313 # endif
13314 # endif
13315 # endif
13316 #endif
13317
13318 /* When -fvisibility=hidden is used, assume the code has been annotated
13319 correspondingly for the symbols needed. */
13320 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13321 int fnord () __attribute__((visibility("default")));
13322 #endif
13323
13324 int fnord () { return 42; }
13325 int main ()
13326 {
13327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13328 int status = $lt_dlunknown;
13329
13330 if (self)
13331 {
13332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13333 else
13334 {
13335 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13336 else puts (dlerror ());
13337 }
13338 /* dlclose (self); */
13339 }
13340 else
13341 puts (dlerror ());
13342
13343 return status;
13344 }
13345 _LT_EOF
13346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13347 (eval $ac_link) 2>&5
13348 ac_status=$?
13349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13350 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13351 (./conftest; exit; ) >&5 2>/dev/null
13352 lt_status=$?
13353 case x$lt_status in
13354 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13355 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13356 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13357 esac
13358 else :
13359 # compilation failed
13360 lt_cv_dlopen_self_static=no
13361 fi
13362 fi
13363 rm -fr conftest*
13364
13365
13366 fi
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13368 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13369 fi
13370
13371 CPPFLAGS=$save_CPPFLAGS
13372 LDFLAGS=$save_LDFLAGS
13373 LIBS=$save_LIBS
13374 ;;
13375 esac
13376
13377 case $lt_cv_dlopen_self in
13378 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13379 *) enable_dlopen_self=unknown ;;
13380 esac
13381
13382 case $lt_cv_dlopen_self_static in
13383 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13384 *) enable_dlopen_self_static=unknown ;;
13385 esac
13386 fi
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404 striplib=
13405 old_striplib=
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13407 printf %s "checking whether stripping libraries is possible... " >&6; }
13408 if test -z "$STRIP"; then
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 printf "%s\n" "no" >&6; }
13411 else
13412 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13413 old_striplib="$STRIP --strip-debug"
13414 striplib="$STRIP --strip-unneeded"
13415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416 printf "%s\n" "yes" >&6; }
13417 else
13418 case $host_os in
13419 darwin*)
13420 # FIXME - insert some real tests, host_os isn't really good enough
13421 striplib="$STRIP -x"
13422 old_striplib="$STRIP -S"
13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13424 printf "%s\n" "yes" >&6; }
13425 ;;
13426 freebsd*)
13427 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13428 old_striplib="$STRIP --strip-debug"
13429 striplib="$STRIP --strip-unneeded"
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13431 printf "%s\n" "yes" >&6; }
13432 else
13433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434 printf "%s\n" "no" >&6; }
13435 fi
13436 ;;
13437 *)
13438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 printf "%s\n" "no" >&6; }
13440 ;;
13441 esac
13442 fi
13443 fi
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456 # Report what library types will actually be built
13457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13458 printf %s "checking if libtool supports shared libraries... " >&6; }
13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13460 printf "%s\n" "$can_build_shared" >&6; }
13461
13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13463 printf %s "checking whether to build shared libraries... " >&6; }
13464 test no = "$can_build_shared" && enable_shared=no
13465
13466 # On AIX, shared libraries and static libraries use the same namespace, and
13467 # are all built from PIC.
13468 case $host_os in
13469 aix3*)
13470 test yes = "$enable_shared" && enable_static=no
13471 if test -n "$RANLIB"; then
13472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13473 postinstall_cmds='$RANLIB $lib'
13474 fi
13475 ;;
13476
13477 aix[4-9]*)
13478 if test ia64 != "$host_cpu"; then
13479 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13480 yes,aix,yes) ;; # shared object as lib.so file only
13481 yes,svr4,*) ;; # shared object as lib.so archive member only
13482 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13483 esac
13484 fi
13485 ;;
13486 esac
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13488 printf "%s\n" "$enable_shared" >&6; }
13489
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13491 printf %s "checking whether to build static libraries... " >&6; }
13492 # Make sure either enable_shared or enable_static is yes.
13493 test yes = "$enable_shared" || enable_static=yes
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13495 printf "%s\n" "$enable_static" >&6; }
13496
13497
13498
13499
13500 fi
13501 ac_ext=c
13502 ac_cpp='$CPP $CPPFLAGS'
13503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13506
13507 CC=$lt_save_CC
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523 ac_config_commands="$ac_config_commands libtool"
13524
13525
13526
13527
13528 # Only expand once:
13529
13530
13531 if test -n "$ac_tool_prefix"; then
13532 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13533 set dummy ${ac_tool_prefix}windres; ac_word=$2
13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 printf %s "checking for $ac_word... " >&6; }
13536 if test ${ac_cv_prog_RC+y}
13537 then :
13538 printf %s "(cached) " >&6
13539 else $as_nop
13540 if test -n "$RC"; then
13541 ac_cv_prog_RC="$RC" # Let the user override the test.
13542 else
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13545 do
13546 IFS=$as_save_IFS
13547 case $as_dir in #(((
13548 '') as_dir=./ ;;
13549 */) ;;
13550 *) as_dir=$as_dir/ ;;
13551 esac
13552 for ac_exec_ext in '' $ac_executable_extensions; do
13553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13554 ac_cv_prog_RC="${ac_tool_prefix}windres"
13555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13556 break 2
13557 fi
13558 done
13559 done
13560 IFS=$as_save_IFS
13561
13562 fi
13563 fi
13564 RC=$ac_cv_prog_RC
13565 if test -n "$RC"; then
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
13567 printf "%s\n" "$RC" >&6; }
13568 else
13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 printf "%s\n" "no" >&6; }
13571 fi
13572
13573
13574 fi
13575 if test -z "$ac_cv_prog_RC"; then
13576 ac_ct_RC=$RC
13577 # Extract the first word of "windres", so it can be a program name with args.
13578 set dummy windres; ac_word=$2
13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580 printf %s "checking for $ac_word... " >&6; }
13581 if test ${ac_cv_prog_ac_ct_RC+y}
13582 then :
13583 printf %s "(cached) " >&6
13584 else $as_nop
13585 if test -n "$ac_ct_RC"; then
13586 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13590 do
13591 IFS=$as_save_IFS
13592 case $as_dir in #(((
13593 '') as_dir=./ ;;
13594 */) ;;
13595 *) as_dir=$as_dir/ ;;
13596 esac
13597 for ac_exec_ext in '' $ac_executable_extensions; do
13598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13599 ac_cv_prog_ac_ct_RC="windres"
13600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13601 break 2
13602 fi
13603 done
13604 done
13605 IFS=$as_save_IFS
13606
13607 fi
13608 fi
13609 ac_ct_RC=$ac_cv_prog_ac_ct_RC
13610 if test -n "$ac_ct_RC"; then
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13612 printf "%s\n" "$ac_ct_RC" >&6; }
13613 else
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 printf "%s\n" "no" >&6; }
13616 fi
13617
13618 if test "x$ac_ct_RC" = x; then
13619 RC=""
13620 else
13621 case $cross_compiling:$ac_tool_warned in
13622 yes:)
13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13625 ac_tool_warned=yes ;;
13626 esac
13627 RC=$ac_ct_RC
13628 fi
13629 else
13630 RC="$ac_cv_prog_RC"
13631 fi
13632
13633
13634
13635
13636 # Source file extension for RC test sources.
13637 ac_ext=rc
13638
13639 # Object file extension for compiled RC test sources.
13640 objext=o
13641 objext_RC=$objext
13642
13643 # Code to be used in simple compile tests
13644 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13645
13646 # Code to be used in simple link tests
13647 lt_simple_link_test_code=$lt_simple_compile_test_code
13648
13649 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13650
13651
13652
13653
13654
13655
13656 # If no C compiler was specified, use CC.
13657 LTCC=${LTCC-"$CC"}
13658
13659 # If no C compiler flags were specified, use CFLAGS.
13660 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13661
13662 # Allow CC to be a program name with arguments.
13663 compiler=$CC
13664
13665
13666 # save warnings/boilerplate of simple test code
13667 ac_outfile=conftest.$ac_objext
13668 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13669 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13670 _lt_compiler_boilerplate=`cat conftest.err`
13671 $RM conftest*
13672
13673 ac_outfile=conftest.$ac_objext
13674 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13675 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13676 _lt_linker_boilerplate=`cat conftest.err`
13677 $RM -r conftest*
13678
13679
13680 # Allow CC to be a program name with arguments.
13681 lt_save_CC=$CC
13682 lt_save_CFLAGS=$CFLAGS
13683 lt_save_GCC=$GCC
13684 GCC=
13685 CC=${RC-"windres"}
13686 CFLAGS=
13687 compiler=$CC
13688 compiler_RC=$CC
13689 func_cc_basename $compiler
13690 cc_basename=$func_cc_basename_result
13691
13692 lt_cv_prog_compiler_c_o_RC=yes
13693
13694 if test -n "$compiler"; then
13695 :
13696
13697
13698
13699 fi
13700
13701 GCC=$lt_save_GCC
13702 ac_ext=c
13703 ac_cpp='$CPP $CPPFLAGS'
13704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13707
13708 CC=$lt_save_CC
13709 CFLAGS=$lt_save_CFLAGS
13710
13711
13712
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13714 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13715 # Check whether --enable-maintainer-mode was given.
13716 if test ${enable_maintainer_mode+y}
13717 then :
13718 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13719 else $as_nop
13720 USE_MAINTAINER_MODE=no
13721 fi
13722
13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13724 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
13725 if test $USE_MAINTAINER_MODE = yes; then
13726 MAINTAINER_MODE_TRUE=
13727 MAINTAINER_MODE_FALSE='#'
13728 else
13729 MAINTAINER_MODE_TRUE='#'
13730 MAINTAINER_MODE_FALSE=
13731 fi
13732
13733 MAINT=$MAINTAINER_MODE_TRUE
13734
13735
13736
13737 # We need to compile and run a program on the build machine.
13738 # Put a plausible default for CC_FOR_BUILD in Makefile.
13739 if test -z "$CC_FOR_BUILD"; then
13740 if test "x$cross_compiling" = "xno"; then
13741 CC_FOR_BUILD='$(CC)'
13742 else
13743 CC_FOR_BUILD=gcc
13744 fi
13745 fi
13746
13747 # Also set EXEEXT_FOR_BUILD.
13748 if test "x$cross_compiling" = "xno"; then
13749 EXEEXT_FOR_BUILD='$(EXEEXT)'
13750 else
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13752 printf %s "checking for build system executable suffix... " >&6; }
13753 if test ${bfd_cv_build_exeext+y}
13754 then :
13755 printf %s "(cached) " >&6
13756 else $as_nop
13757 rm -f conftest*
13758 echo 'int main (void) { return 0; }' > conftest.c
13759 bfd_cv_build_exeext=
13760 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13761 for file in conftest.*; do
13762 case $file in
13763 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13764 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13765 esac
13766 done
13767 rm -f conftest*
13768 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13769 fi
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13771 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
13772 EXEEXT_FOR_BUILD=""
13773 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13774 fi
13775
13776
13777
13778
13779
13780
13781 VERSION_NUMBER=0x010800
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791 # Checks for programs.
13792 missing_dir=`cd $ac_aux_dir && pwd`
13793
13794 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
13795
13796
13797 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13798
13799
13800 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
13801
13802
13803 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13804
13805
13806 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13807
13808 # Check whether --enable-silent-rules was given.
13809 if test ${enable_silent_rules+y}
13810 then :
13811 enableval=$enable_silent_rules;
13812 fi
13813
13814 case $enable_silent_rules in # (((
13815 yes) AM_DEFAULT_VERBOSITY=0;;
13816 no) AM_DEFAULT_VERBOSITY=1;;
13817 *) AM_DEFAULT_VERBOSITY=1;;
13818 esac
13819 am_make=${MAKE-make}
13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13821 printf %s "checking whether $am_make supports nested variables... " >&6; }
13822 if test ${am_cv_make_support_nested_variables+y}
13823 then :
13824 printf %s "(cached) " >&6
13825 else $as_nop
13826 if printf "%s\n" 'TRUE=$(BAR$(V))
13827 BAR0=false
13828 BAR1=true
13829 V=1
13830 am__doit:
13831 @$(TRUE)
13832 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13833 am_cv_make_support_nested_variables=yes
13834 else
13835 am_cv_make_support_nested_variables=no
13836 fi
13837 fi
13838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13839 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13840 if test $am_cv_make_support_nested_variables = yes; then
13841 AM_V='$(V)'
13842 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13843 else
13844 AM_V=$AM_DEFAULT_VERBOSITY
13845 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13846 fi
13847 AM_BACKSLASH='\'
13848
13849 for ac_prog in gawk mawk nawk awk
13850 do
13851 # Extract the first word of "$ac_prog", so it can be a program name with args.
13852 set dummy $ac_prog; ac_word=$2
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13854 printf %s "checking for $ac_word... " >&6; }
13855 if test ${ac_cv_prog_AWK+y}
13856 then :
13857 printf %s "(cached) " >&6
13858 else $as_nop
13859 if test -n "$AWK"; then
13860 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13861 else
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13864 do
13865 IFS=$as_save_IFS
13866 case $as_dir in #(((
13867 '') as_dir=./ ;;
13868 */) ;;
13869 *) as_dir=$as_dir/ ;;
13870 esac
13871 for ac_exec_ext in '' $ac_executable_extensions; do
13872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13873 ac_cv_prog_AWK="$ac_prog"
13874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13875 break 2
13876 fi
13877 done
13878 done
13879 IFS=$as_save_IFS
13880
13881 fi
13882 fi
13883 AWK=$ac_cv_prog_AWK
13884 if test -n "$AWK"; then
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13886 printf "%s\n" "$AWK" >&6; }
13887 else
13888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889 printf "%s\n" "no" >&6; }
13890 fi
13891
13892
13893 test -n "$AWK" && break
13894 done
13895
13896 ac_ext=c
13897 ac_cpp='$CPP $CPPFLAGS'
13898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13901 if test -n "$ac_tool_prefix"; then
13902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13905 printf %s "checking for $ac_word... " >&6; }
13906 if test ${ac_cv_prog_CC+y}
13907 then :
13908 printf %s "(cached) " >&6
13909 else $as_nop
13910 if test -n "$CC"; then
13911 ac_cv_prog_CC="$CC" # Let the user override the test.
13912 else
13913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13914 for as_dir in $PATH
13915 do
13916 IFS=$as_save_IFS
13917 case $as_dir in #(((
13918 '') as_dir=./ ;;
13919 */) ;;
13920 *) as_dir=$as_dir/ ;;
13921 esac
13922 for ac_exec_ext in '' $ac_executable_extensions; do
13923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13924 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13926 break 2
13927 fi
13928 done
13929 done
13930 IFS=$as_save_IFS
13931
13932 fi
13933 fi
13934 CC=$ac_cv_prog_CC
13935 if test -n "$CC"; then
13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13937 printf "%s\n" "$CC" >&6; }
13938 else
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 printf "%s\n" "no" >&6; }
13941 fi
13942
13943
13944 fi
13945 if test -z "$ac_cv_prog_CC"; then
13946 ac_ct_CC=$CC
13947 # Extract the first word of "gcc", so it can be a program name with args.
13948 set dummy gcc; ac_word=$2
13949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13950 printf %s "checking for $ac_word... " >&6; }
13951 if test ${ac_cv_prog_ac_ct_CC+y}
13952 then :
13953 printf %s "(cached) " >&6
13954 else $as_nop
13955 if test -n "$ac_ct_CC"; then
13956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13957 else
13958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959 for as_dir in $PATH
13960 do
13961 IFS=$as_save_IFS
13962 case $as_dir in #(((
13963 '') as_dir=./ ;;
13964 */) ;;
13965 *) as_dir=$as_dir/ ;;
13966 esac
13967 for ac_exec_ext in '' $ac_executable_extensions; do
13968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13969 ac_cv_prog_ac_ct_CC="gcc"
13970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13971 break 2
13972 fi
13973 done
13974 done
13975 IFS=$as_save_IFS
13976
13977 fi
13978 fi
13979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13980 if test -n "$ac_ct_CC"; then
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13982 printf "%s\n" "$ac_ct_CC" >&6; }
13983 else
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 printf "%s\n" "no" >&6; }
13986 fi
13987
13988 if test "x$ac_ct_CC" = x; then
13989 CC=""
13990 else
13991 case $cross_compiling:$ac_tool_warned in
13992 yes:)
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13994 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13995 ac_tool_warned=yes ;;
13996 esac
13997 CC=$ac_ct_CC
13998 fi
13999 else
14000 CC="$ac_cv_prog_CC"
14001 fi
14002
14003 if test -z "$CC"; then
14004 if test -n "$ac_tool_prefix"; then
14005 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14006 set dummy ${ac_tool_prefix}cc; ac_word=$2
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008 printf %s "checking for $ac_word... " >&6; }
14009 if test ${ac_cv_prog_CC+y}
14010 then :
14011 printf %s "(cached) " >&6
14012 else $as_nop
14013 if test -n "$CC"; then
14014 ac_cv_prog_CC="$CC" # Let the user override the test.
14015 else
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14018 do
14019 IFS=$as_save_IFS
14020 case $as_dir in #(((
14021 '') as_dir=./ ;;
14022 */) ;;
14023 *) as_dir=$as_dir/ ;;
14024 esac
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14027 ac_cv_prog_CC="${ac_tool_prefix}cc"
14028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14029 break 2
14030 fi
14031 done
14032 done
14033 IFS=$as_save_IFS
14034
14035 fi
14036 fi
14037 CC=$ac_cv_prog_CC
14038 if test -n "$CC"; then
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14040 printf "%s\n" "$CC" >&6; }
14041 else
14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 printf "%s\n" "no" >&6; }
14044 fi
14045
14046
14047 fi
14048 fi
14049 if test -z "$CC"; then
14050 # Extract the first word of "cc", so it can be a program name with args.
14051 set dummy cc; ac_word=$2
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053 printf %s "checking for $ac_word... " >&6; }
14054 if test ${ac_cv_prog_CC+y}
14055 then :
14056 printf %s "(cached) " >&6
14057 else $as_nop
14058 if test -n "$CC"; then
14059 ac_cv_prog_CC="$CC" # Let the user override the test.
14060 else
14061 ac_prog_rejected=no
14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14064 do
14065 IFS=$as_save_IFS
14066 case $as_dir in #(((
14067 '') as_dir=./ ;;
14068 */) ;;
14069 *) as_dir=$as_dir/ ;;
14070 esac
14071 for ac_exec_ext in '' $ac_executable_extensions; do
14072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14073 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14074 ac_prog_rejected=yes
14075 continue
14076 fi
14077 ac_cv_prog_CC="cc"
14078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14079 break 2
14080 fi
14081 done
14082 done
14083 IFS=$as_save_IFS
14084
14085 if test $ac_prog_rejected = yes; then
14086 # We found a bogon in the path, so make sure we never use it.
14087 set dummy $ac_cv_prog_CC
14088 shift
14089 if test $# != 0; then
14090 # We chose a different compiler from the bogus one.
14091 # However, it has the same basename, so the bogon will be chosen
14092 # first if we set CC to just the basename; use the full file name.
14093 shift
14094 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14095 fi
14096 fi
14097 fi
14098 fi
14099 CC=$ac_cv_prog_CC
14100 if test -n "$CC"; then
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14102 printf "%s\n" "$CC" >&6; }
14103 else
14104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105 printf "%s\n" "no" >&6; }
14106 fi
14107
14108
14109 fi
14110 if test -z "$CC"; then
14111 if test -n "$ac_tool_prefix"; then
14112 for ac_prog in cl.exe
14113 do
14114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14117 printf %s "checking for $ac_word... " >&6; }
14118 if test ${ac_cv_prog_CC+y}
14119 then :
14120 printf %s "(cached) " >&6
14121 else $as_nop
14122 if test -n "$CC"; then
14123 ac_cv_prog_CC="$CC" # Let the user override the test.
14124 else
14125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $PATH
14127 do
14128 IFS=$as_save_IFS
14129 case $as_dir in #(((
14130 '') as_dir=./ ;;
14131 */) ;;
14132 *) as_dir=$as_dir/ ;;
14133 esac
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14138 break 2
14139 fi
14140 done
14141 done
14142 IFS=$as_save_IFS
14143
14144 fi
14145 fi
14146 CC=$ac_cv_prog_CC
14147 if test -n "$CC"; then
14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14149 printf "%s\n" "$CC" >&6; }
14150 else
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14152 printf "%s\n" "no" >&6; }
14153 fi
14154
14155
14156 test -n "$CC" && break
14157 done
14158 fi
14159 if test -z "$CC"; then
14160 ac_ct_CC=$CC
14161 for ac_prog in cl.exe
14162 do
14163 # Extract the first word of "$ac_prog", so it can be a program name with args.
14164 set dummy $ac_prog; ac_word=$2
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14166 printf %s "checking for $ac_word... " >&6; }
14167 if test ${ac_cv_prog_ac_ct_CC+y}
14168 then :
14169 printf %s "(cached) " >&6
14170 else $as_nop
14171 if test -n "$ac_ct_CC"; then
14172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14173 else
14174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14175 for as_dir in $PATH
14176 do
14177 IFS=$as_save_IFS
14178 case $as_dir in #(((
14179 '') as_dir=./ ;;
14180 */) ;;
14181 *) as_dir=$as_dir/ ;;
14182 esac
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14185 ac_cv_prog_ac_ct_CC="$ac_prog"
14186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14187 break 2
14188 fi
14189 done
14190 done
14191 IFS=$as_save_IFS
14192
14193 fi
14194 fi
14195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14196 if test -n "$ac_ct_CC"; then
14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14198 printf "%s\n" "$ac_ct_CC" >&6; }
14199 else
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 printf "%s\n" "no" >&6; }
14202 fi
14203
14204
14205 test -n "$ac_ct_CC" && break
14206 done
14207
14208 if test "x$ac_ct_CC" = x; then
14209 CC=""
14210 else
14211 case $cross_compiling:$ac_tool_warned in
14212 yes:)
14213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14214 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14215 ac_tool_warned=yes ;;
14216 esac
14217 CC=$ac_ct_CC
14218 fi
14219 fi
14220
14221 fi
14222 if test -z "$CC"; then
14223 if test -n "$ac_tool_prefix"; then
14224 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14225 set dummy ${ac_tool_prefix}clang; ac_word=$2
14226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 printf %s "checking for $ac_word... " >&6; }
14228 if test ${ac_cv_prog_CC+y}
14229 then :
14230 printf %s "(cached) " >&6
14231 else $as_nop
14232 if test -n "$CC"; then
14233 ac_cv_prog_CC="$CC" # Let the user override the test.
14234 else
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14237 do
14238 IFS=$as_save_IFS
14239 case $as_dir in #(((
14240 '') as_dir=./ ;;
14241 */) ;;
14242 *) as_dir=$as_dir/ ;;
14243 esac
14244 for ac_exec_ext in '' $ac_executable_extensions; do
14245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14246 ac_cv_prog_CC="${ac_tool_prefix}clang"
14247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14248 break 2
14249 fi
14250 done
14251 done
14252 IFS=$as_save_IFS
14253
14254 fi
14255 fi
14256 CC=$ac_cv_prog_CC
14257 if test -n "$CC"; then
14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14259 printf "%s\n" "$CC" >&6; }
14260 else
14261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262 printf "%s\n" "no" >&6; }
14263 fi
14264
14265
14266 fi
14267 if test -z "$ac_cv_prog_CC"; then
14268 ac_ct_CC=$CC
14269 # Extract the first word of "clang", so it can be a program name with args.
14270 set dummy clang; ac_word=$2
14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14272 printf %s "checking for $ac_word... " >&6; }
14273 if test ${ac_cv_prog_ac_ct_CC+y}
14274 then :
14275 printf %s "(cached) " >&6
14276 else $as_nop
14277 if test -n "$ac_ct_CC"; then
14278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14279 else
14280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281 for as_dir in $PATH
14282 do
14283 IFS=$as_save_IFS
14284 case $as_dir in #(((
14285 '') as_dir=./ ;;
14286 */) ;;
14287 *) as_dir=$as_dir/ ;;
14288 esac
14289 for ac_exec_ext in '' $ac_executable_extensions; do
14290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14291 ac_cv_prog_ac_ct_CC="clang"
14292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14293 break 2
14294 fi
14295 done
14296 done
14297 IFS=$as_save_IFS
14298
14299 fi
14300 fi
14301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14302 if test -n "$ac_ct_CC"; then
14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14304 printf "%s\n" "$ac_ct_CC" >&6; }
14305 else
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307 printf "%s\n" "no" >&6; }
14308 fi
14309
14310 if test "x$ac_ct_CC" = x; then
14311 CC=""
14312 else
14313 case $cross_compiling:$ac_tool_warned in
14314 yes:)
14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14316 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14317 ac_tool_warned=yes ;;
14318 esac
14319 CC=$ac_ct_CC
14320 fi
14321 else
14322 CC="$ac_cv_prog_CC"
14323 fi
14324
14325 fi
14326
14327
14328 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14329 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14330 as_fn_error $? "no acceptable C compiler found in \$PATH
14331 See \`config.log' for more details" "$LINENO" 5; }
14332
14333 # Provide some information about the compiler.
14334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14335 set X $ac_compile
14336 ac_compiler=$2
14337 for ac_option in --version -v -V -qversion -version; do
14338 { { ac_try="$ac_compiler $ac_option >&5"
14339 case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14342 esac
14343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14344 printf "%s\n" "$ac_try_echo"; } >&5
14345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14346 ac_status=$?
14347 if test -s conftest.err; then
14348 sed '10a\
14349 ... rest of stderr output deleted ...
14350 10q' conftest.err >conftest.er1
14351 cat conftest.er1 >&5
14352 fi
14353 rm -f conftest.er1 conftest.err
14354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14355 test $ac_status = 0; }
14356 done
14357
14358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14359 printf %s "checking whether the compiler supports GNU C... " >&6; }
14360 if test ${ac_cv_c_compiler_gnu+y}
14361 then :
14362 printf %s "(cached) " >&6
14363 else $as_nop
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366
14367 int
14368 main (void)
14369 {
14370 #ifndef __GNUC__
14371 choke me
14372 #endif
14373
14374 ;
14375 return 0;
14376 }
14377 _ACEOF
14378 if ac_fn_c_try_compile "$LINENO"
14379 then :
14380 ac_compiler_gnu=yes
14381 else $as_nop
14382 ac_compiler_gnu=no
14383 fi
14384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14386
14387 fi
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14389 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14391
14392 if test $ac_compiler_gnu = yes; then
14393 GCC=yes
14394 else
14395 GCC=
14396 fi
14397 ac_test_CFLAGS=${CFLAGS+y}
14398 ac_save_CFLAGS=$CFLAGS
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14400 printf %s "checking whether $CC accepts -g... " >&6; }
14401 if test ${ac_cv_prog_cc_g+y}
14402 then :
14403 printf %s "(cached) " >&6
14404 else $as_nop
14405 ac_save_c_werror_flag=$ac_c_werror_flag
14406 ac_c_werror_flag=yes
14407 ac_cv_prog_cc_g=no
14408 CFLAGS="-g"
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411
14412 int
14413 main (void)
14414 {
14415
14416 ;
14417 return 0;
14418 }
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"
14421 then :
14422 ac_cv_prog_cc_g=yes
14423 else $as_nop
14424 CFLAGS=""
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14427
14428 int
14429 main (void)
14430 {
14431
14432 ;
14433 return 0;
14434 }
14435 _ACEOF
14436 if ac_fn_c_try_compile "$LINENO"
14437 then :
14438
14439 else $as_nop
14440 ac_c_werror_flag=$ac_save_c_werror_flag
14441 CFLAGS="-g"
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444
14445 int
14446 main (void)
14447 {
14448
14449 ;
14450 return 0;
14451 }
14452 _ACEOF
14453 if ac_fn_c_try_compile "$LINENO"
14454 then :
14455 ac_cv_prog_cc_g=yes
14456 fi
14457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14462 ac_c_werror_flag=$ac_save_c_werror_flag
14463 fi
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14465 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14466 if test $ac_test_CFLAGS; then
14467 CFLAGS=$ac_save_CFLAGS
14468 elif test $ac_cv_prog_cc_g = yes; then
14469 if test "$GCC" = yes; then
14470 CFLAGS="-g -O2"
14471 else
14472 CFLAGS="-g"
14473 fi
14474 else
14475 if test "$GCC" = yes; then
14476 CFLAGS="-O2"
14477 else
14478 CFLAGS=
14479 fi
14480 fi
14481 ac_prog_cc_stdc=no
14482 if test x$ac_prog_cc_stdc = xno
14483 then :
14484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14485 printf %s "checking for $CC option to enable C11 features... " >&6; }
14486 if test ${ac_cv_prog_cc_c11+y}
14487 then :
14488 printf %s "(cached) " >&6
14489 else $as_nop
14490 ac_cv_prog_cc_c11=no
14491 ac_save_CC=$CC
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14494 $ac_c_conftest_c11_program
14495 _ACEOF
14496 for ac_arg in '' -std=gnu11
14497 do
14498 CC="$ac_save_CC $ac_arg"
14499 if ac_fn_c_try_compile "$LINENO"
14500 then :
14501 ac_cv_prog_cc_c11=$ac_arg
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext conftest.beam
14504 test "x$ac_cv_prog_cc_c11" != "xno" && break
14505 done
14506 rm -f conftest.$ac_ext
14507 CC=$ac_save_CC
14508 fi
14509
14510 if test "x$ac_cv_prog_cc_c11" = xno
14511 then :
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14513 printf "%s\n" "unsupported" >&6; }
14514 else $as_nop
14515 if test "x$ac_cv_prog_cc_c11" = x
14516 then :
14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14518 printf "%s\n" "none needed" >&6; }
14519 else $as_nop
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14521 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14522 CC="$CC $ac_cv_prog_cc_c11"
14523 fi
14524 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14525 ac_prog_cc_stdc=c11
14526 fi
14527 fi
14528 if test x$ac_prog_cc_stdc = xno
14529 then :
14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14531 printf %s "checking for $CC option to enable C99 features... " >&6; }
14532 if test ${ac_cv_prog_cc_c99+y}
14533 then :
14534 printf %s "(cached) " >&6
14535 else $as_nop
14536 ac_cv_prog_cc_c99=no
14537 ac_save_CC=$CC
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540 $ac_c_conftest_c99_program
14541 _ACEOF
14542 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14543 do
14544 CC="$ac_save_CC $ac_arg"
14545 if ac_fn_c_try_compile "$LINENO"
14546 then :
14547 ac_cv_prog_cc_c99=$ac_arg
14548 fi
14549 rm -f core conftest.err conftest.$ac_objext conftest.beam
14550 test "x$ac_cv_prog_cc_c99" != "xno" && break
14551 done
14552 rm -f conftest.$ac_ext
14553 CC=$ac_save_CC
14554 fi
14555
14556 if test "x$ac_cv_prog_cc_c99" = xno
14557 then :
14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14559 printf "%s\n" "unsupported" >&6; }
14560 else $as_nop
14561 if test "x$ac_cv_prog_cc_c99" = x
14562 then :
14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14564 printf "%s\n" "none needed" >&6; }
14565 else $as_nop
14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14567 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14568 CC="$CC $ac_cv_prog_cc_c99"
14569 fi
14570 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14571 ac_prog_cc_stdc=c99
14572 fi
14573 fi
14574 if test x$ac_prog_cc_stdc = xno
14575 then :
14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14577 printf %s "checking for $CC option to enable C89 features... " >&6; }
14578 if test ${ac_cv_prog_cc_c89+y}
14579 then :
14580 printf %s "(cached) " >&6
14581 else $as_nop
14582 ac_cv_prog_cc_c89=no
14583 ac_save_CC=$CC
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14586 $ac_c_conftest_c89_program
14587 _ACEOF
14588 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14589 do
14590 CC="$ac_save_CC $ac_arg"
14591 if ac_fn_c_try_compile "$LINENO"
14592 then :
14593 ac_cv_prog_cc_c89=$ac_arg
14594 fi
14595 rm -f core conftest.err conftest.$ac_objext conftest.beam
14596 test "x$ac_cv_prog_cc_c89" != "xno" && break
14597 done
14598 rm -f conftest.$ac_ext
14599 CC=$ac_save_CC
14600 fi
14601
14602 if test "x$ac_cv_prog_cc_c89" = xno
14603 then :
14604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14605 printf "%s\n" "unsupported" >&6; }
14606 else $as_nop
14607 if test "x$ac_cv_prog_cc_c89" = x
14608 then :
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14610 printf "%s\n" "none needed" >&6; }
14611 else $as_nop
14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14613 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14614 CC="$CC $ac_cv_prog_cc_c89"
14615 fi
14616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14617 ac_prog_cc_stdc=c89
14618 fi
14619 fi
14620
14621 ac_ext=c
14622 ac_cpp='$CPP $CPPFLAGS'
14623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14626
14627
14628 ac_ext=c
14629 ac_cpp='$CPP $CPPFLAGS'
14630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14634 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14635 if test ${am_cv_prog_cc_c_o+y}
14636 then :
14637 printf %s "(cached) " >&6
14638 else $as_nop
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14641
14642 int
14643 main (void)
14644 {
14645
14646 ;
14647 return 0;
14648 }
14649 _ACEOF
14650 # Make sure it works both with $CC and with simple cc.
14651 # Following AC_PROG_CC_C_O, we do the test twice because some
14652 # compilers refuse to overwrite an existing .o file with -o,
14653 # though they will create one.
14654 am_cv_prog_cc_c_o=yes
14655 for am_i in 1 2; do
14656 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14657 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } \
14661 && test -f conftest2.$ac_objext; then
14662 : OK
14663 else
14664 am_cv_prog_cc_c_o=no
14665 break
14666 fi
14667 done
14668 rm -f core conftest*
14669 unset am_i
14670 fi
14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14672 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14673 if test "$am_cv_prog_cc_c_o" != yes; then
14674 # Losing compiler, so override with the script.
14675 # FIXME: It is wrong to rewrite CC.
14676 # But if we don't then we get into trouble of one sort or another.
14677 # A longer-term fix would be to have automake use am__CC in this case,
14678 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14679 CC="$am_aux_dir/compile $CC"
14680 fi
14681 ac_ext=c
14682 ac_cpp='$CPP $CPPFLAGS'
14683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14686
14687
14688 depcc="$CC" am_compiler_list=
14689
14690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14691 printf %s "checking dependency style of $depcc... " >&6; }
14692 if test ${am_cv_CC_dependencies_compiler_type+y}
14693 then :
14694 printf %s "(cached) " >&6
14695 else $as_nop
14696 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14697 # We make a subdir and do the tests there. Otherwise we can end up
14698 # making bogus files that we don't know about and never remove. For
14699 # instance it was reported that on HP-UX the gcc test will end up
14700 # making a dummy file named 'D' -- because '-MD' means "put the output
14701 # in D".
14702 rm -rf conftest.dir
14703 mkdir conftest.dir
14704 # Copy depcomp to subdir because otherwise we won't find it if we're
14705 # using a relative directory.
14706 cp "$am_depcomp" conftest.dir
14707 cd conftest.dir
14708 # We will build objects and dependencies in a subdirectory because
14709 # it helps to detect inapplicable dependency modes. For instance
14710 # both Tru64's cc and ICC support -MD to output dependencies as a
14711 # side effect of compilation, but ICC will put the dependencies in
14712 # the current directory while Tru64 will put them in the object
14713 # directory.
14714 mkdir sub
14715
14716 am_cv_CC_dependencies_compiler_type=none
14717 if test "$am_compiler_list" = ""; then
14718 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14719 fi
14720 am__universal=false
14721 case " $depcc " in #(
14722 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14723 esac
14724
14725 for depmode in $am_compiler_list; do
14726 # Setup a source with many dependencies, because some compilers
14727 # like to wrap large dependency lists on column 80 (with \), and
14728 # we should not choose a depcomp mode which is confused by this.
14729 #
14730 # We need to recreate these files for each test, as the compiler may
14731 # overwrite some of them when testing with obscure command lines.
14732 # This happens at least with the AIX C compiler.
14733 : > sub/conftest.c
14734 for i in 1 2 3 4 5 6; do
14735 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14736 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14737 # Solaris 10 /bin/sh.
14738 echo '/* dummy */' > sub/conftst$i.h
14739 done
14740 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14741
14742 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14743 # mode. It turns out that the SunPro C++ compiler does not properly
14744 # handle '-M -o', and we need to detect this. Also, some Intel
14745 # versions had trouble with output in subdirs.
14746 am__obj=sub/conftest.${OBJEXT-o}
14747 am__minus_obj="-o $am__obj"
14748 case $depmode in
14749 gcc)
14750 # This depmode causes a compiler race in universal mode.
14751 test "$am__universal" = false || continue
14752 ;;
14753 nosideeffect)
14754 # After this tag, mechanisms are not by side-effect, so they'll
14755 # only be used when explicitly requested.
14756 if test "x$enable_dependency_tracking" = xyes; then
14757 continue
14758 else
14759 break
14760 fi
14761 ;;
14762 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14763 # This compiler won't grok '-c -o', but also, the minuso test has
14764 # not run yet. These depmodes are late enough in the game, and
14765 # so weak that their functioning should not be impacted.
14766 am__obj=conftest.${OBJEXT-o}
14767 am__minus_obj=
14768 ;;
14769 none) break ;;
14770 esac
14771 if depmode=$depmode \
14772 source=sub/conftest.c object=$am__obj \
14773 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14774 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14775 >/dev/null 2>conftest.err &&
14776 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14777 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14778 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14779 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14780 # icc doesn't choke on unknown options, it will just issue warnings
14781 # or remarks (even with -Werror). So we grep stderr for any message
14782 # that says an option was ignored or not supported.
14783 # When given -MP, icc 7.0 and 7.1 complain thusly:
14784 # icc: Command line warning: ignoring option '-M'; no argument required
14785 # The diagnosis changed in icc 8.0:
14786 # icc: Command line remark: option '-MP' not supported
14787 if (grep 'ignoring option' conftest.err ||
14788 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14789 am_cv_CC_dependencies_compiler_type=$depmode
14790 break
14791 fi
14792 fi
14793 done
14794
14795 cd ..
14796 rm -rf conftest.dir
14797 else
14798 am_cv_CC_dependencies_compiler_type=none
14799 fi
14800
14801 fi
14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14803 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14805
14806 if
14807 test "x$enable_dependency_tracking" != xno \
14808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14809 am__fastdepCC_TRUE=
14810 am__fastdepCC_FALSE='#'
14811 else
14812 am__fastdepCC_TRUE='#'
14813 am__fastdepCC_FALSE=
14814 fi
14815
14816
14817 ac_ext=c
14818 ac_cpp='$CPP $CPPFLAGS'
14819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14823 printf %s "checking how to run the C preprocessor... " >&6; }
14824 # On Suns, sometimes $CPP names a directory.
14825 if test -n "$CPP" && test -d "$CPP"; then
14826 CPP=
14827 fi
14828 if test -z "$CPP"; then
14829 if test ${ac_cv_prog_CPP+y}
14830 then :
14831 printf %s "(cached) " >&6
14832 else $as_nop
14833 # Double quotes because $CC needs to be expanded
14834 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14835 do
14836 ac_preproc_ok=false
14837 for ac_c_preproc_warn_flag in '' yes
14838 do
14839 # Use a header file that comes with gcc, so configuring glibc
14840 # with a fresh cross-compiler works.
14841 # On the NeXT, cc -E runs the code through the compiler's parser,
14842 # not just through cpp. "Syntax error" is here to catch this case.
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 #include <limits.h>
14846 Syntax error
14847 _ACEOF
14848 if ac_fn_c_try_cpp "$LINENO"
14849 then :
14850
14851 else $as_nop
14852 # Broken: fails on valid input.
14853 continue
14854 fi
14855 rm -f conftest.err conftest.i conftest.$ac_ext
14856
14857 # OK, works on sane cases. Now check whether nonexistent headers
14858 # can be detected and how.
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 #include <ac_nonexistent.h>
14862 _ACEOF
14863 if ac_fn_c_try_cpp "$LINENO"
14864 then :
14865 # Broken: success on invalid input.
14866 continue
14867 else $as_nop
14868 # Passes both tests.
14869 ac_preproc_ok=:
14870 break
14871 fi
14872 rm -f conftest.err conftest.i conftest.$ac_ext
14873
14874 done
14875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14876 rm -f conftest.i conftest.err conftest.$ac_ext
14877 if $ac_preproc_ok
14878 then :
14879 break
14880 fi
14881
14882 done
14883 ac_cv_prog_CPP=$CPP
14884
14885 fi
14886 CPP=$ac_cv_prog_CPP
14887 else
14888 ac_cv_prog_CPP=$CPP
14889 fi
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14891 printf "%s\n" "$CPP" >&6; }
14892 ac_preproc_ok=false
14893 for ac_c_preproc_warn_flag in '' yes
14894 do
14895 # Use a header file that comes with gcc, so configuring glibc
14896 # with a fresh cross-compiler works.
14897 # On the NeXT, cc -E runs the code through the compiler's parser,
14898 # not just through cpp. "Syntax error" is here to catch this case.
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14901 #include <limits.h>
14902 Syntax error
14903 _ACEOF
14904 if ac_fn_c_try_cpp "$LINENO"
14905 then :
14906
14907 else $as_nop
14908 # Broken: fails on valid input.
14909 continue
14910 fi
14911 rm -f conftest.err conftest.i conftest.$ac_ext
14912
14913 # OK, works on sane cases. Now check whether nonexistent headers
14914 # can be detected and how.
14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14917 #include <ac_nonexistent.h>
14918 _ACEOF
14919 if ac_fn_c_try_cpp "$LINENO"
14920 then :
14921 # Broken: success on invalid input.
14922 continue
14923 else $as_nop
14924 # Passes both tests.
14925 ac_preproc_ok=:
14926 break
14927 fi
14928 rm -f conftest.err conftest.i conftest.$ac_ext
14929
14930 done
14931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14932 rm -f conftest.i conftest.err conftest.$ac_ext
14933 if $ac_preproc_ok
14934 then :
14935
14936 else $as_nop
14937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14938 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14939 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14940 See \`config.log' for more details" "$LINENO" 5; }
14941 fi
14942
14943 ac_ext=c
14944 ac_cpp='$CPP $CPPFLAGS'
14945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14948
14949
14950 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
14951 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
14952 fi
14953
14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14955 printf %s "checking whether ln -s works... " >&6; }
14956 LN_S=$as_ln_s
14957 if test "$LN_S" = "ln -s"; then
14958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14959 printf "%s\n" "yes" >&6; }
14960 else
14961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14962 printf "%s\n" "no, using $LN_S" >&6; }
14963 fi
14964
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14966 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14967 set x ${MAKE-make}
14968 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14969 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
14970 then :
14971 printf %s "(cached) " >&6
14972 else $as_nop
14973 cat >conftest.make <<\_ACEOF
14974 SHELL = /bin/sh
14975 all:
14976 @echo '@@@%%%=$(MAKE)=@@@%%%'
14977 _ACEOF
14978 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14979 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14980 *@@@%%%=?*=@@@%%%*)
14981 eval ac_cv_prog_make_${ac_make}_set=yes;;
14982 *)
14983 eval ac_cv_prog_make_${ac_make}_set=no;;
14984 esac
14985 rm -f conftest.make
14986 fi
14987 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14989 printf "%s\n" "yes" >&6; }
14990 SET_MAKE=
14991 else
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 printf "%s\n" "no" >&6; }
14994 SET_MAKE="MAKE=${MAKE-make}"
14995 fi
14996
14997
14998
14999 #AC_ARG_PROGRAM
15000 for ac_prog in 'bison -y' byacc
15001 do
15002 # Extract the first word of "$ac_prog", so it can be a program name with args.
15003 set dummy $ac_prog; ac_word=$2
15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15005 printf %s "checking for $ac_word... " >&6; }
15006 if test ${ac_cv_prog_YACC+y}
15007 then :
15008 printf %s "(cached) " >&6
15009 else $as_nop
15010 if test -n "$YACC"; then
15011 ac_cv_prog_YACC="$YACC" # Let the user override the test.
15012 else
15013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15014 for as_dir in $PATH
15015 do
15016 IFS=$as_save_IFS
15017 case $as_dir in #(((
15018 '') as_dir=./ ;;
15019 */) ;;
15020 *) as_dir=$as_dir/ ;;
15021 esac
15022 for ac_exec_ext in '' $ac_executable_extensions; do
15023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15024 ac_cv_prog_YACC="$ac_prog"
15025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15026 break 2
15027 fi
15028 done
15029 done
15030 IFS=$as_save_IFS
15031
15032 fi
15033 fi
15034 YACC=$ac_cv_prog_YACC
15035 if test -n "$YACC"; then
15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15037 printf "%s\n" "$YACC" >&6; }
15038 else
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 printf "%s\n" "no" >&6; }
15041 fi
15042
15043
15044 test -n "$YACC" && break
15045 done
15046 test -n "$YACC" || YACC="yacc"
15047
15048
15049
15050
15051
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
15053 printf %s "checking if bison is the parser generator... " >&6; }
15054 if test ${ax_cv_prog_bison+y}
15055 then :
15056 printf %s "(cached) " >&6
15057 else $as_nop
15058
15059 if $YACC --version 2>/dev/null | $EGREP -q '^bison '
15060 then :
15061 ax_cv_prog_bison=yes
15062 else $as_nop
15063 ax_cv_prog_bison=no
15064 fi
15065
15066 fi
15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
15068 printf "%s\n" "$ax_cv_prog_bison" >&6; }
15069 if test "$ax_cv_prog_bison" = "yes"
15070 then :
15071
15072 YACC="${YACC% -y} -o y.tab.c"
15073 have_bison=yes
15074 else $as_nop
15075 have_bison=no
15076
15077 fi
15078
15079
15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15081 printf %s "checking for inline... " >&6; }
15082 if test ${ac_cv_c_inline+y}
15083 then :
15084 printf %s "(cached) " >&6
15085 else $as_nop
15086 ac_cv_c_inline=no
15087 for ac_kw in inline __inline__ __inline; do
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 #ifndef __cplusplus
15091 typedef int foo_t;
15092 static $ac_kw foo_t static_foo (void) {return 0; }
15093 $ac_kw foo_t foo (void) {return 0; }
15094 #endif
15095
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"
15098 then :
15099 ac_cv_c_inline=$ac_kw
15100 fi
15101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15102 test "$ac_cv_c_inline" != no && break
15103 done
15104
15105 fi
15106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15107 printf "%s\n" "$ac_cv_c_inline" >&6; }
15108
15109 case $ac_cv_c_inline in
15110 inline | yes) ;;
15111 *)
15112 case $ac_cv_c_inline in
15113 no) ac_val=;;
15114 *) ac_val=$ac_cv_c_inline;;
15115 esac
15116 cat >>confdefs.h <<_ACEOF
15117 #ifndef __cplusplus
15118 #define inline $ac_val
15119 #endif
15120 _ACEOF
15121 ;;
15122 esac
15123
15124
15125 # We need to compile and run a program on the build machine.
15126 # The AC_PROG_CC_FOR_BUILD macro in the AC archive is broken for
15127 # autoconf 2.57.
15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
15129 printf %s "checking for cc for build... " >&6; }
15130 if test "$cross_compiling" = "yes"; then
15131 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
15132 else
15133 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
15134 fi
15135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
15136 printf "%s\n" "$CC_FOR_BUILD" >&6; }
15137
15138
15139
15140 # This is handy for debugging so the compiler doesn't rearrange
15141 # things and eliminate variables.
15142 # Check whether --enable-optimization was given.
15143 if test ${enable_optimization+y}
15144 then :
15145 enableval=$enable_optimization; if test $enableval = no ; then
15146 CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
15147 fi
15148 fi
15149
15150
15151 if test "$GCC" = yes; then
15152 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15153
15154 if test "$USE_MAINTAINER_MODE" = "yes"; then
15155 CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
15156
15157 # We use -W only if -Wno-missing-field-initializers is supported.
15158 # -W is important because it detects errors like "if (foo);"
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15160 printf %s "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15161 _gcc_cflags_save=$CFLAGS
15162 CFLAGS="-Wno-missing-field-initializers"
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165
15166 int
15167 main (void)
15168 {
15169
15170 ;
15171 return 0;
15172 }
15173 _ACEOF
15174 if ac_fn_c_try_compile "$LINENO"
15175 then :
15176 _gcc_wopt=yes
15177 else $as_nop
15178 _gcc_wopt=no
15179 fi
15180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15182 printf "%s\n" "$_gcc_wopt" >&6; }
15183 CFLAGS=$_gcc_cflags_save;
15184 if test x"$_gcc_wopt" = xyes ; then
15185 CFLAGS="$CFLAGS -W -Wno-sign-compare -Wno-missing-field-initializers"
15186 fi
15187
15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15189 printf %s "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15190 _gcc_cflags_save=$CFLAGS
15191 CFLAGS="-Wdeclaration-after-statement"
15192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193 /* end confdefs.h. */
15194
15195 int
15196 main (void)
15197 {
15198
15199 ;
15200 return 0;
15201 }
15202 _ACEOF
15203 if ac_fn_c_try_compile "$LINENO"
15204 then :
15205 _gcc_wopt=yes
15206 else $as_nop
15207 _gcc_wopt=no
15208 fi
15209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15211 printf "%s\n" "$_gcc_wopt" >&6; }
15212 CFLAGS=$_gcc_cflags_save;
15213 if test x"$_gcc_wopt" = xyes ; then
15214 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15215 fi
15216 fi
15217
15218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15219 printf %s "checking if gcc supports -Wpointer-arith... " >&6; }
15220 _gcc_cflags_save=$CFLAGS
15221 CFLAGS="-Wpointer-arith"
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224
15225 int
15226 main (void)
15227 {
15228
15229 ;
15230 return 0;
15231 }
15232 _ACEOF
15233 if ac_fn_c_try_compile "$LINENO"
15234 then :
15235 _gcc_wopt=yes
15236 else $as_nop
15237 _gcc_wopt=no
15238 fi
15239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15241 printf "%s\n" "$_gcc_wopt" >&6; }
15242 CFLAGS=$_gcc_cflags_save;
15243 if test x"$_gcc_wopt" = xyes ; then
15244 CFLAGS="$CFLAGS -Wpointer-arith"
15245 fi
15246
15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15248 printf %s "checking if gcc supports -Wno-pointer-sign... " >&6; }
15249 _gcc_cflags_save=$CFLAGS
15250 CFLAGS="-Wno-pointer-sign"
15251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h. */
15253
15254 int
15255 main (void)
15256 {
15257
15258 ;
15259 return 0;
15260 }
15261 _ACEOF
15262 if ac_fn_c_try_compile "$LINENO"
15263 then :
15264 _gcc_psign=yes
15265 else $as_nop
15266 _gcc_psign=no
15267 fi
15268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15270 printf "%s\n" "$_gcc_psign" >&6; }
15271 CFLAGS=$_gcc_cflags_save;
15272 if test x"$_gcc_psign" = xyes ; then
15273 CFLAGS="$CFLAGS -Wno-pointer-sign"
15274 fi
15275
15276 fi
15277
15278 # Setup some stuff depending on host.
15279 have_w32_system=no
15280 have_w32ce_system=no
15281 case "${host}" in
15282 *-*-mingw32ce*)
15283 have_w32_system=yes
15284 have_w32ce_system=yes
15285 ;;
15286 *-*-mingw32*)
15287 have_w32_system=yes
15288 ;;
15289 *-apple-darwin*)
15290
15291 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
15292
15293 ;;
15294 *)
15295 ;;
15296 esac
15297 if test "$have_w32_system" = yes; then
15298
15299 printf "%s\n" "#define HAVE_W32_SYSTEM 1" >>confdefs.h
15300
15301 fi
15302 if test "$have_w32_system" = yes; then
15303 HAVE_W32_SYSTEM_TRUE=
15304 HAVE_W32_SYSTEM_FALSE='#'
15305 else
15306 HAVE_W32_SYSTEM_TRUE='#'
15307 HAVE_W32_SYSTEM_FALSE=
15308 fi
15309
15310
15311
15312 # For some systems we know that we have ld_version scripts.
15313 # Use it then as default.
15314 have_ld_version_script=no
15315 case "${host}" in
15316 *-*-linux*)
15317 have_ld_version_script=yes
15318 ;;
15319 *-*-gnu*)
15320 have_ld_version_script=yes
15321 ;;
15322 esac
15323 # Check whether --enable-ld-version-script was given.
15324 if test ${enable_ld_version_script+y}
15325 then :
15326 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
15327 else $as_nop
15328 :
15329 fi
15330
15331 if test "$have_ld_version_script" = "yes"; then
15332 HAVE_LD_VERSION_SCRIPT_TRUE=
15333 HAVE_LD_VERSION_SCRIPT_FALSE='#'
15334 else
15335 HAVE_LD_VERSION_SCRIPT_TRUE='#'
15336 HAVE_LD_VERSION_SCRIPT_FALSE=
15337 fi
15338
15339
15340 #
15341 # Specify how we support our local modification of libtool for Windows
15342 # 64-bit. Options are:
15343 #
15344 # (1) apply: when appying patch fails, it results failure of entire build
15345 # (2) never: never apply the patch (no try)
15346 # (3) try: use patched if it goes well, use original if fails
15347 #
15348
15349 # Check whether --with-libtool-modification was given.
15350 if test ${with_libtool_modification+y}
15351 then :
15352 withval=$with_libtool_modification; build_libtool_modification=$withval
15353 else $as_nop
15354 build_libtool_modification=never
15355 fi
15356
15357
15358 #
15359 # Apply a patch (locally maintained one of ours) to libtool
15360 #
15361 case $host in
15362 x86_64-*mingw32*)
15363 ac_config_commands="$ac_config_commands libtool-patch"
15364
15365 ;;
15366 *)
15367 ;;
15368 esac
15369
15370 #
15371 # Check for ELF visibility support.
15372 #
15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
15374 printf %s "checking whether the visibility attribute is supported... " >&6; }
15375 if test ${ksba_cv_visibility_attribute+y}
15376 then :
15377 printf %s "(cached) " >&6
15378 else $as_nop
15379 ksba_cv_visibility_attribute=no
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 int foo __attribute__ ((visibility ("hidden"))) = 1;
15383 int bar __attribute__ ((visibility ("protected"))) = 1;
15384
15385 _ACEOF
15386
15387 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15388 1>&5 2>&5 ; then
15389 if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
15390 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
15391 ksba_cv_visibility_attribute=yes
15392 fi
15393 fi
15394 fi
15395
15396 fi
15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_visibility_attribute" >&5
15398 printf "%s\n" "$ksba_cv_visibility_attribute" >&6; }
15399 if test "$ksba_cv_visibility_attribute" = "yes"; then
15400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
15401 printf %s "checking for broken visibility attribute... " >&6; }
15402 if test ${ksba_cv_broken_visibility_attribute+y}
15403 then :
15404 printf %s "(cached) " >&6
15405 else $as_nop
15406 ksba_cv_broken_visibility_attribute=yes
15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15409 int foo (int x);
15410 int bar (int x) __asm__ ("foo")
15411 __attribute__ ((visibility ("hidden")));
15412 int bar (int x) { return x; }
15413
15414 _ACEOF
15415
15416 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15417 1>&5 2>&5 ; then
15418 if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1;
15419 then
15420 ksba_cv_broken_visibility_attribute=no
15421 fi
15422 fi
15423
15424 fi
15425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_visibility_attribute" >&5
15426 printf "%s\n" "$ksba_cv_broken_visibility_attribute" >&6; }
15427 fi
15428 if test "$ksba_cv_visibility_attribute" = "yes"; then
15429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
15430 printf %s "checking for broken alias attribute... " >&6; }
15431 if test ${ksba_cv_broken_alias_attribute+y}
15432 then :
15433 printf %s "(cached) " >&6
15434 else $as_nop
15435 ksba_cv_broken_alias_attribute=yes
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15438 extern int foo (int x) __asm ("xyzzy");
15439 int bar (int x) { return x; }
15440 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
15441 extern int dfoo;
15442 extern __typeof (dfoo) dfoo __asm ("abccb");
15443 int dfoo = 1;
15444
15445 _ACEOF
15446
15447 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15448 1>&5 2>&5 ; then
15449 if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
15450 grep 'abccb' conftest.s >/dev/null 2>&1; then
15451 ksba_cv_broken_alias_attribute=no
15452 fi
15453 fi
15454
15455 fi
15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_alias_attribute" >&5
15457 printf "%s\n" "$ksba_cv_broken_alias_attribute" >&6; }
15458 fi
15459 if test "$ksba_cv_visibility_attribute" = "yes"; then
15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
15461 printf %s "checking if gcc supports -fvisibility=hidden... " >&6; }
15462 if test ${ksba_cv_gcc_has_f_visibility+y}
15463 then :
15464 printf %s "(cached) " >&6
15465 else $as_nop
15466 ksba_cv_gcc_has_f_visibility=no
15467 _gcc_cflags_save=$CFLAGS
15468 CFLAGS="-fvisibility=hidden"
15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15471
15472 int
15473 main (void)
15474 {
15475
15476 ;
15477 return 0;
15478 }
15479 _ACEOF
15480 if ac_fn_c_try_compile "$LINENO"
15481 then :
15482 ksba_cv_gcc_has_f_visibility=yes
15483 fi
15484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15485 CFLAGS=$_gcc_cflags_save;
15486
15487 fi
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_gcc_has_f_visibility" >&5
15489 printf "%s\n" "$ksba_cv_gcc_has_f_visibility" >&6; }
15490 fi
15491 if test "$ksba_cv_visibility_attribute" = "yes" \
15492 && test "$ksba_cv_broken_visibility_attribute" != "yes" \
15493 && test "$ksba_cv_broken_alias_attribute" != "yes" \
15494 && test "$ksba_cv_gcc_has_f_visibility" = "yes"
15495 then
15496
15497 printf "%s\n" "#define KSBA_USE_VISIBILITY 1" >>confdefs.h
15498
15499 CFLAGS="$CFLAGS -fvisibility=hidden"
15500 fi
15501
15502
15503 #
15504 # Checks for libraries.
15505 #
15506 gpg_error_config_prefix=""
15507
15508 # Check whether --with-libgpg-error-prefix was given.
15509 if test ${with_libgpg_error_prefix+y}
15510 then :
15511 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
15512 fi
15513
15514
15515
15516 # Check whether --with-gpg-error-prefix was given.
15517 if test ${with_gpg_error_prefix+y}
15518 then :
15519 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
15520 fi
15521
15522
15523 if test x"${GPG_ERROR_CONFIG}" = x ; then
15524 if test x"${gpg_error_config_prefix}" != x ; then
15525 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
15526 else
15527 case "${SYSROOT}" in
15528 /*)
15529 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
15530 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
15531 fi
15532 ;;
15533 '')
15534 ;;
15535 *)
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
15537 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
15538 ;;
15539 esac
15540 fi
15541 fi
15542
15543 # Extract the first word of "gpg-error-config", so it can be a program name with args.
15544 set dummy gpg-error-config; ac_word=$2
15545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15546 printf %s "checking for $ac_word... " >&6; }
15547 if test ${ac_cv_path_GPG_ERROR_CONFIG+y}
15548 then :
15549 printf %s "(cached) " >&6
15550 else $as_nop
15551 case $GPG_ERROR_CONFIG in
15552 [\\/]* | ?:[\\/]*)
15553 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
15554 ;;
15555 *)
15556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557 for as_dir in $PATH
15558 do
15559 IFS=$as_save_IFS
15560 case $as_dir in #(((
15561 '') as_dir=./ ;;
15562 */) ;;
15563 *) as_dir=$as_dir/ ;;
15564 esac
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15567 ac_cv_path_GPG_ERROR_CONFIG="$as_dir$ac_word$ac_exec_ext"
15568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15569 break 2
15570 fi
15571 done
15572 done
15573 IFS=$as_save_IFS
15574
15575 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
15576 ;;
15577 esac
15578 fi
15579 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
15580 if test -n "$GPG_ERROR_CONFIG"; then
15581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
15582 printf "%s\n" "$GPG_ERROR_CONFIG" >&6; }
15583 else
15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15585 printf "%s\n" "no" >&6; }
15586 fi
15587
15588
15589
15590 # Extract the first word of "gpgrt-config", so it can be a program name with args.
15591 set dummy gpgrt-config; ac_word=$2
15592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15593 printf %s "checking for $ac_word... " >&6; }
15594 if test ${ac_cv_path_GPGRT_CONFIG+y}
15595 then :
15596 printf %s "(cached) " >&6
15597 else $as_nop
15598 case $GPGRT_CONFIG in
15599 [\\/]* | ?:[\\/]*)
15600 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
15601 ;;
15602 *)
15603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604 as_dummy="$prefix/bin:$PATH"
15605 for as_dir in $as_dummy
15606 do
15607 IFS=$as_save_IFS
15608 case $as_dir in #(((
15609 '') as_dir=./ ;;
15610 */) ;;
15611 *) as_dir=$as_dir/ ;;
15612 esac
15613 for ac_exec_ext in '' $ac_executable_extensions; do
15614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15615 ac_cv_path_GPGRT_CONFIG="$as_dir$ac_word$ac_exec_ext"
15616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15617 break 2
15618 fi
15619 done
15620 done
15621 IFS=$as_save_IFS
15622
15623 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
15624 ;;
15625 esac
15626 fi
15627 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
15628 if test -n "$GPGRT_CONFIG"; then
15629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
15630 printf "%s\n" "$GPGRT_CONFIG" >&6; }
15631 else
15632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 printf "%s\n" "no" >&6; }
15634 fi
15635
15636
15637 if test "$GPGRT_CONFIG" != "no"; then
15638 # Determine gpgrt_libdir
15639 #
15640 # Get the prefix of gpgrt-config assuming it's something like:
15641 # <PREFIX>/bin/gpgrt-config
15642 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
15643 possible_libdir1=${gpgrt_prefix}/lib
15644 # Determine by using system libdir-format with CC, it's like:
15645 # Normal style: /usr/lib
15646 # GNU cross style: /usr/<triplet>/lib
15647 # Debian style: /usr/lib/<multiarch-name>
15648 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
15649 # It is assumed that CC is specified to the one of host on cross build.
15650 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
15651 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
15652 /g;p;}"); then
15653 # From the output of -print-search-dirs, select valid pkgconfig dirs.
15654 libdir_candidates=$(for dir in $libdir_candidates; do
15655 if p=$(cd $dir 2>/dev/null && pwd); then
15656 test -d "$p/pkgconfig" && echo $p;
15657 fi
15658 done)
15659
15660 for possible_libdir0 in $libdir_candidates; do
15661 # possible_libdir0:
15662 # Fallback candidate, the one of system-installed (by $CC)
15663 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
15664 # possible_libdir1:
15665 # Another candidate, user-locally-installed
15666 # (<gpgrt_prefix>/lib)
15667 # possible_libdir2
15668 # Most preferred
15669 # (<gpgrt_prefix>/<triplet>/lib,
15670 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
15671 if test "${possible_libdir0##*/}" = "lib"; then
15672 possible_prefix0=${possible_libdir0%/lib}
15673 possible_prefix0_triplet=${possible_prefix0##*/}
15674 if test -z "$possible_prefix0_triplet"; then
15675 continue
15676 fi
15677 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
15678 else
15679 possible_prefix0=${possible_libdir0%%/lib*}
15680 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
15681 fi
15682 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
15683 gpgrt_libdir=${possible_libdir2}
15684 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
15685 gpgrt_libdir=${possible_libdir1}
15686 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
15687 gpgrt_libdir=${possible_libdir0}
15688 fi
15689 if test -n "$gpgrt_libdir"; then break; fi
15690 done
15691 fi
15692 if test -z "$gpgrt_libdir"; then
15693 # No valid pkgconfig dir in any of the system directories, fallback
15694 gpgrt_libdir=${possible_libdir1}
15695 fi
15696 else
15697 unset GPGRT_CONFIG
15698 fi
15699
15700 if test -n "$gpgrt_libdir"; then
15701 # Add the --libdir option to GPGRT_CONFIG
15702 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
15703 # Make sure if gpgrt-config really works, by testing config gpg-error
15704 if ! $GPGRT_CONFIG gpg-error --exists; then
15705 # If it doesn't work, clear the GPGRT_CONFIG variable.
15706 unset GPGRT_CONFIG
15707 fi
15708 else
15709 # GPGRT_CONFIG found but no suitable dir for --libdir found.
15710 # This is a failure. Clear the GPGRT_CONFIG variable.
15711 unset GPGRT_CONFIG
15712 fi
15713
15714 if test x"$GPGRT_CONFIG" != x && test "$GPGRT_CONFIG" != "no"; then
15715 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
15716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
15717 printf "%s\n" "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
15718 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
15719 elif test x"$GPG_ERROR_CONFIG" != x && test "$GPG_ERROR_CONFIG" != "no"; then
15720 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
15721 else
15722 gpg_error_config_version="0.0"
15723 fi
15724
15725 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
15726 ok=no
15727 if test "$GPG_ERROR_CONFIG" != "no"; then
15728 req_major=`echo $min_gpg_error_version | \
15729 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
15730 req_minor=`echo $min_gpg_error_version | \
15731 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
15732 major=`echo $gpg_error_config_version | \
15733 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
15734 minor=`echo $gpg_error_config_version | \
15735 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
15736 if test "$major" -gt "$req_major"; then
15737 ok=yes
15738 else
15739 if test "$major" -eq "$req_major"; then
15740 if test "$minor" -ge "$req_minor"; then
15741 ok=yes
15742 fi
15743 fi
15744 fi
15745 fi
15746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
15747 printf %s "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
15748 if test $ok = yes; then
15749 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
15750 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
15751 if test -z "$GPGRT_CONFIG"; then
15752 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
15753 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
15754 else
15755 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
15756 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
15757 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
15758 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
15759 fi
15760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
15761 printf "%s\n" "yes ($gpg_error_config_version)" >&6; }
15762 :
15763 if test -z "$GPGRT_CONFIG"; then
15764 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
15765 else
15766 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
15767 fi
15768 if test x"$gpg_error_config_host" != xnone ; then
15769 if test x"$gpg_error_config_host" != x"$host" ; then
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15771 ***
15772 *** The config script \"$GPG_ERROR_CONFIG\" was
15773 *** built for $gpg_error_config_host and thus may not match the
15774 *** used host $host.
15775 *** You may want to use the configure option --with-libgpg-error-prefix
15776 *** to specify a matching config script or use \$SYSROOT.
15777 ***" >&5
15778 printf "%s\n" "$as_me: WARNING:
15779 ***
15780 *** The config script \"$GPG_ERROR_CONFIG\" was
15781 *** built for $gpg_error_config_host and thus may not match the
15782 *** used host $host.
15783 *** You may want to use the configure option --with-libgpg-error-prefix
15784 *** to specify a matching config script or use \$SYSROOT.
15785 ***" >&2;}
15786 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
15787 fi
15788 fi
15789 else
15790 GPG_ERROR_CFLAGS=""
15791 GPG_ERROR_LIBS=""
15792 GPG_ERROR_MT_CFLAGS=""
15793 GPG_ERROR_MT_LIBS=""
15794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795 printf "%s\n" "no" >&6; }
15796 :
15797 fi
15798
15799
15800
15801
15802
15803 if test "x$GPG_ERROR_LIBS" = "x"; then
15804 as_fn_error $? "libgpg-error is needed.
15805 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
15806 fi
15807
15808
15809 printf "%s\n" "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_KSBA" >>confdefs.h
15810
15811
15812 if test -n "$GPGRT_CONFIG" \
15813 && test "$ac_cv_path_GPG_ERROR_CONFIG" = no; then
15814 USE_GPGRT_CONFIG_TRUE=
15815 USE_GPGRT_CONFIG_FALSE='#'
15816 else
15817 USE_GPGRT_CONFIG_TRUE='#'
15818 USE_GPGRT_CONFIG_FALSE=
15819 fi
15820
15821
15822 # Checks for header files.
15823
15824 # Checks for typedefs, structures, and compiler characteristics.
15825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15826 printf %s "checking for an ANSI C-conforming const... " >&6; }
15827 if test ${ac_cv_c_const+y}
15828 then :
15829 printf %s "(cached) " >&6
15830 else $as_nop
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833
15834 int
15835 main (void)
15836 {
15837
15838 #ifndef __cplusplus
15839 /* Ultrix mips cc rejects this sort of thing. */
15840 typedef int charset[2];
15841 const charset cs = { 0, 0 };
15842 /* SunOS 4.1.1 cc rejects this. */
15843 char const *const *pcpcc;
15844 char **ppc;
15845 /* NEC SVR4.0.2 mips cc rejects this. */
15846 struct point {int x, y;};
15847 static struct point const zero = {0,0};
15848 /* IBM XL C 1.02.0.0 rejects this.
15849 It does not let you subtract one const X* pointer from another in
15850 an arm of an if-expression whose if-part is not a constant
15851 expression */
15852 const char *g = "string";
15853 pcpcc = &g + (g ? g-g : 0);
15854 /* HPUX 7.0 cc rejects these. */
15855 ++pcpcc;
15856 ppc = (char**) pcpcc;
15857 pcpcc = (char const *const *) ppc;
15858 { /* SCO 3.2v4 cc rejects this sort of thing. */
15859 char tx;
15860 char *t = &tx;
15861 char const *s = 0 ? (char *) 0 : (char const *) 0;
15862
15863 *t++ = 0;
15864 if (s) return 0;
15865 }
15866 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15867 int x[] = {25, 17};
15868 const int *foo = &x[0];
15869 ++foo;
15870 }
15871 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15872 typedef const int *iptr;
15873 iptr p = 0;
15874 ++p;
15875 }
15876 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15877 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15878 struct s { int j; const int *ap[3]; } bx;
15879 struct s *b = &bx; b->j = 5;
15880 }
15881 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15882 const int foo = 10;
15883 if (!foo) return 0;
15884 }
15885 return !cs[0] && !zero.x;
15886 #endif
15887
15888 ;
15889 return 0;
15890 }
15891 _ACEOF
15892 if ac_fn_c_try_compile "$LINENO"
15893 then :
15894 ac_cv_c_const=yes
15895 else $as_nop
15896 ac_cv_c_const=no
15897 fi
15898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15899 fi
15900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15901 printf "%s\n" "$ac_cv_c_const" >&6; }
15902 if test $ac_cv_c_const = no; then
15903
15904 printf "%s\n" "#define const /**/" >>confdefs.h
15905
15906 fi
15907
15908
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15910 printf %s "checking whether byte ordering is bigendian... " >&6; }
15911 if test ${ac_cv_c_bigendian+y}
15912 then :
15913 printf %s "(cached) " >&6
15914 else $as_nop
15915 ac_cv_c_bigendian=unknown
15916 # See if we're dealing with a universal compiler.
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 #ifndef __APPLE_CC__
15920 not a universal capable compiler
15921 #endif
15922 typedef int dummy;
15923
15924 _ACEOF
15925 if ac_fn_c_try_compile "$LINENO"
15926 then :
15927
15928 # Check for potential -arch flags. It is not universal unless
15929 # there are at least two -arch flags with different values.
15930 ac_arch=
15931 ac_prev=
15932 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15933 if test -n "$ac_prev"; then
15934 case $ac_word in
15935 i?86 | x86_64 | ppc | ppc64)
15936 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15937 ac_arch=$ac_word
15938 else
15939 ac_cv_c_bigendian=universal
15940 break
15941 fi
15942 ;;
15943 esac
15944 ac_prev=
15945 elif test "x$ac_word" = "x-arch"; then
15946 ac_prev=arch
15947 fi
15948 done
15949 fi
15950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15951 if test $ac_cv_c_bigendian = unknown; then
15952 # See if sys/param.h defines the BYTE_ORDER macro.
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955 #include <sys/types.h>
15956 #include <sys/param.h>
15957
15958 int
15959 main (void)
15960 {
15961 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15962 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15963 && LITTLE_ENDIAN)
15964 bogus endian macros
15965 #endif
15966
15967 ;
15968 return 0;
15969 }
15970 _ACEOF
15971 if ac_fn_c_try_compile "$LINENO"
15972 then :
15973 # It does; now see whether it defined to BIG_ENDIAN or not.
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 #include <sys/types.h>
15977 #include <sys/param.h>
15978
15979 int
15980 main (void)
15981 {
15982 #if BYTE_ORDER != BIG_ENDIAN
15983 not big endian
15984 #endif
15985
15986 ;
15987 return 0;
15988 }
15989 _ACEOF
15990 if ac_fn_c_try_compile "$LINENO"
15991 then :
15992 ac_cv_c_bigendian=yes
15993 else $as_nop
15994 ac_cv_c_bigendian=no
15995 fi
15996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15997 fi
15998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15999 fi
16000 if test $ac_cv_c_bigendian = unknown; then
16001 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003 /* end confdefs.h. */
16004 #include <limits.h>
16005
16006 int
16007 main (void)
16008 {
16009 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16010 bogus endian macros
16011 #endif
16012
16013 ;
16014 return 0;
16015 }
16016 _ACEOF
16017 if ac_fn_c_try_compile "$LINENO"
16018 then :
16019 # It does; now see whether it defined to _BIG_ENDIAN or not.
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022 #include <limits.h>
16023
16024 int
16025 main (void)
16026 {
16027 #ifndef _BIG_ENDIAN
16028 not big endian
16029 #endif
16030
16031 ;
16032 return 0;
16033 }
16034 _ACEOF
16035 if ac_fn_c_try_compile "$LINENO"
16036 then :
16037 ac_cv_c_bigendian=yes
16038 else $as_nop
16039 ac_cv_c_bigendian=no
16040 fi
16041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16042 fi
16043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16044 fi
16045 if test $ac_cv_c_bigendian = unknown; then
16046 # Compile a test program.
16047 if test "$cross_compiling" = yes
16048 then :
16049 # Try to guess by grepping values from an object file.
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16052 unsigned short int ascii_mm[] =
16053 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16054 unsigned short int ascii_ii[] =
16055 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16056 int use_ascii (int i) {
16057 return ascii_mm[i] + ascii_ii[i];
16058 }
16059 unsigned short int ebcdic_ii[] =
16060 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16061 unsigned short int ebcdic_mm[] =
16062 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16063 int use_ebcdic (int i) {
16064 return ebcdic_mm[i] + ebcdic_ii[i];
16065 }
16066 extern int foo;
16067
16068 int
16069 main (void)
16070 {
16071 return use_ascii (foo) == use_ebcdic (foo);
16072 ;
16073 return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_compile "$LINENO"
16077 then :
16078 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16079 ac_cv_c_bigendian=yes
16080 fi
16081 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16082 if test "$ac_cv_c_bigendian" = unknown; then
16083 ac_cv_c_bigendian=no
16084 else
16085 # finding both strings is unlikely to happen, but who knows?
16086 ac_cv_c_bigendian=unknown
16087 fi
16088 fi
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16091 else $as_nop
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16094 $ac_includes_default
16095 int
16096 main (void)
16097 {
16098
16099 /* Are we little or big endian? From Harbison&Steele. */
16100 union
16101 {
16102 long int l;
16103 char c[sizeof (long int)];
16104 } u;
16105 u.l = 1;
16106 return u.c[sizeof (long int) - 1] == 1;
16107
16108 ;
16109 return 0;
16110 }
16111 _ACEOF
16112 if ac_fn_c_try_run "$LINENO"
16113 then :
16114 ac_cv_c_bigendian=no
16115 else $as_nop
16116 ac_cv_c_bigendian=yes
16117 fi
16118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16119 conftest.$ac_objext conftest.beam conftest.$ac_ext
16120 fi
16121
16122 fi
16123 fi
16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16125 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
16126 case $ac_cv_c_bigendian in #(
16127 yes)
16128 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
16129 ;; #(
16130 no)
16131 ;; #(
16132 universal)
16133
16134 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16135
16136 ;; #(
16137 *)
16138 as_fn_error $? "unknown endianness
16139 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16140 esac
16141
16142
16143 # The cast to long int works around a bug in the HP C Compiler
16144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16146 # This bug is HP SR number 8606223364.
16147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16148 printf %s "checking size of unsigned int... " >&6; }
16149 if test ${ac_cv_sizeof_unsigned_int+y}
16150 then :
16151 printf %s "(cached) " >&6
16152 else $as_nop
16153 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
16154 then :
16155
16156 else $as_nop
16157 if test "$ac_cv_type_unsigned_int" = yes; then
16158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16159 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16160 as_fn_error 77 "cannot compute sizeof (unsigned int)
16161 See \`config.log' for more details" "$LINENO" 5; }
16162 else
16163 ac_cv_sizeof_unsigned_int=0
16164 fi
16165 fi
16166
16167 fi
16168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16169 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
16170
16171
16172
16173 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
16174
16175
16176 # The cast to long int works around a bug in the HP C Compiler
16177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16179 # This bug is HP SR number 8606223364.
16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16181 printf %s "checking size of unsigned long... " >&6; }
16182 if test ${ac_cv_sizeof_unsigned_long+y}
16183 then :
16184 printf %s "(cached) " >&6
16185 else $as_nop
16186 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
16187 then :
16188
16189 else $as_nop
16190 if test "$ac_cv_type_unsigned_long" = yes; then
16191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16192 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16193 as_fn_error 77 "cannot compute sizeof (unsigned long)
16194 See \`config.log' for more details" "$LINENO" 5; }
16195 else
16196 ac_cv_sizeof_unsigned_long=0
16197 fi
16198 fi
16199
16200 fi
16201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16202 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
16203
16204
16205
16206 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
16207
16208
16209 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
16210 if test "x$ac_cv_type_u32" = xyes
16211 then :
16212
16213 printf "%s\n" "#define HAVE_U32 1" >>confdefs.h
16214
16215
16216 fi
16217
16218
16219
16220 # Checks for library functions.
16221 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
16222 if test "x$ac_cv_func_stpcpy" = xyes
16223 then :
16224 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
16225
16226 fi
16227 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
16228 if test "x$ac_cv_func_gmtime_r" = xyes
16229 then :
16230 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
16231
16232 fi
16233 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
16234 if test "x$ac_cv_func_getenv" = xyes
16235 then :
16236 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
16237
16238 fi
16239
16240
16241
16242 # GNUlib checks
16243
16244
16245
16246 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16247 if test "x$ac_cv_type_size_t" = xyes
16248 then :
16249
16250 else $as_nop
16251
16252 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
16253
16254 fi
16255
16256 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16257 # for constant arguments. Useless!
16258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16259 printf %s "checking for working alloca.h... " >&6; }
16260 if test ${ac_cv_working_alloca_h+y}
16261 then :
16262 printf %s "(cached) " >&6
16263 else $as_nop
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 #include <alloca.h>
16267 int
16268 main (void)
16269 {
16270 char *p = (char *) alloca (2 * sizeof (int));
16271 if (p) return 0;
16272 ;
16273 return 0;
16274 }
16275 _ACEOF
16276 if ac_fn_c_try_link "$LINENO"
16277 then :
16278 ac_cv_working_alloca_h=yes
16279 else $as_nop
16280 ac_cv_working_alloca_h=no
16281 fi
16282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16283 conftest$ac_exeext conftest.$ac_ext
16284 fi
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16286 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
16287 if test $ac_cv_working_alloca_h = yes; then
16288
16289 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
16290
16291 fi
16292
16293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16294 printf %s "checking for alloca... " >&6; }
16295 if test ${ac_cv_func_alloca_works+y}
16296 then :
16297 printf %s "(cached) " >&6
16298 else $as_nop
16299 if test $ac_cv_working_alloca_h = yes; then
16300 ac_cv_func_alloca_works=yes
16301 else
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 #include <stdlib.h>
16305 #include <stddef.h>
16306 #ifndef alloca
16307 # ifdef __GNUC__
16308 # define alloca __builtin_alloca
16309 # elif defined _MSC_VER
16310 # include <malloc.h>
16311 # define alloca _alloca
16312 # else
16313 # ifdef __cplusplus
16314 extern "C"
16315 # endif
16316 void *alloca (size_t);
16317 # endif
16318 #endif
16319
16320 int
16321 main (void)
16322 {
16323 char *p = (char *) alloca (1);
16324 if (p) return 0;
16325 ;
16326 return 0;
16327 }
16328 _ACEOF
16329 if ac_fn_c_try_link "$LINENO"
16330 then :
16331 ac_cv_func_alloca_works=yes
16332 else $as_nop
16333 ac_cv_func_alloca_works=no
16334 fi
16335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16336 conftest$ac_exeext conftest.$ac_ext
16337 fi
16338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16339 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
16340 fi
16341
16342 if test $ac_cv_func_alloca_works = yes; then
16343
16344 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16345
16346 else
16347 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16348 # that cause trouble. Some versions do not even contain alloca or
16349 # contain a buggy version. If you still want to use their alloca,
16350 # use ar to extract alloca.o from them instead of compiling alloca.c.
16351
16352 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16353
16354 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
16355
16356
16357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16358 printf %s "checking stack direction for C alloca... " >&6; }
16359 if test ${ac_cv_c_stack_direction+y}
16360 then :
16361 printf %s "(cached) " >&6
16362 else $as_nop
16363 if test "$cross_compiling" = yes
16364 then :
16365 ac_cv_c_stack_direction=0
16366 else $as_nop
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16369 $ac_includes_default
16370 int
16371 find_stack_direction (int *addr, int depth)
16372 {
16373 int dir, dummy = 0;
16374 if (! addr)
16375 addr = &dummy;
16376 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16377 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16378 return dir + dummy;
16379 }
16380
16381 int
16382 main (int argc, char **argv)
16383 {
16384 return find_stack_direction (0, argc + !argv + 20) < 0;
16385 }
16386 _ACEOF
16387 if ac_fn_c_try_run "$LINENO"
16388 then :
16389 ac_cv_c_stack_direction=1
16390 else $as_nop
16391 ac_cv_c_stack_direction=-1
16392 fi
16393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16394 conftest.$ac_objext conftest.beam conftest.$ac_ext
16395 fi
16396
16397 fi
16398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16399 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
16400 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
16401
16402
16403 fi
16404
16405
16406
16407 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
16408
16409
16410
16411
16412
16413
16414 if test $ac_cv_func_alloca_works = no; then
16415 :
16416 fi
16417
16418 # Define an additional variable used in the Makefile substitution.
16419 if test $ac_cv_working_alloca_h = yes; then
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422
16423 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16424 Need own alloca
16425 #endif
16426
16427 _ACEOF
16428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16429 $EGREP "Need own alloca" >/dev/null 2>&1
16430 then :
16431
16432 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16433
16434 ALLOCA_H=alloca.h
16435 else $as_nop
16436 ALLOCA_H=
16437 fi
16438 rm -rf conftest*
16439
16440 else
16441 ALLOCA_H=alloca.h
16442 fi
16443
16444
16445
16446 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
16447
16448
16449
16450 # Check whether --enable-valgrind-tests was given.
16451 if test ${enable_valgrind_tests+y}
16452 then :
16453 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
16454 else $as_nop
16455 opt_valgrind_tests=yes
16456 fi
16457
16458
16459 # Run self-tests under valgrind?
16460 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
16461 for ac_prog in valgrind
16462 do
16463 # Extract the first word of "$ac_prog", so it can be a program name with args.
16464 set dummy $ac_prog; ac_word=$2
16465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16466 printf %s "checking for $ac_word... " >&6; }
16467 if test ${ac_cv_prog_VALGRIND+y}
16468 then :
16469 printf %s "(cached) " >&6
16470 else $as_nop
16471 if test -n "$VALGRIND"; then
16472 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
16473 else
16474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16475 for as_dir in $PATH
16476 do
16477 IFS=$as_save_IFS
16478 case $as_dir in #(((
16479 '') as_dir=./ ;;
16480 */) ;;
16481 *) as_dir=$as_dir/ ;;
16482 esac
16483 for ac_exec_ext in '' $ac_executable_extensions; do
16484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16485 ac_cv_prog_VALGRIND="$ac_prog"
16486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16487 break 2
16488 fi
16489 done
16490 done
16491 IFS=$as_save_IFS
16492
16493 fi
16494 fi
16495 VALGRIND=$ac_cv_prog_VALGRIND
16496 if test -n "$VALGRIND"; then
16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
16498 printf "%s\n" "$VALGRIND" >&6; }
16499 else
16500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16501 printf "%s\n" "no" >&6; }
16502 fi
16503
16504
16505 test -n "$VALGRIND" && break
16506 done
16507
16508 fi
16509
16510 OPTS="-q --error-exitcode=1 --leak-check=full"
16511
16512 if test -n "$VALGRIND" \
16513 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
16514 opt_valgrind_tests=yes
16515 VALGRIND="$VALGRIND $OPTS"
16516 else
16517 opt_valgrind_tests=no
16518 VALGRIND=
16519 fi
16520
16521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
16522 printf %s "checking whether self tests are run under valgrind... " >&6; }
16523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
16524 printf "%s\n" "$opt_valgrind_tests" >&6; }
16525
16526
16527
16528 # To be used in ksba-config
16529 KSBA_CONFIG_LIBS="-lksba"
16530 KSBA_CONFIG_CFLAGS=""
16531 KSBA_CONFIG_HOST="$host"
16532
16533
16534
16535
16536
16537 # The Makefiles need to know about cross compiling
16538 if test x$cross_compiling != xno; then
16539 CROSS_COMPILING_TRUE=
16540 CROSS_COMPILING_FALSE='#'
16541 else
16542 CROSS_COMPILING_TRUE='#'
16543 CROSS_COMPILING_FALSE=
16544 fi
16545
16546
16547
16548 # Generate extended version information for W32.
16549 if test "$have_w32_system" = yes; then
16550 BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
16551 BUILD_FILEVERSION="${BUILD_FILEVERSION}18284"
16552 fi
16553
16554
16555 BUILD_REVISION="476c602"
16556
16557
16558 printf "%s\n" "#define BUILD_REVISION \"$BUILD_REVISION\"" >>confdefs.h
16559
16560
16561 # Check whether --enable-build-timestamp was given.
16562 if test ${enable_build_timestamp+y}
16563 then :
16564 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16565 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16566 else
16567 BUILD_TIMESTAMP="$enableval"
16568 fi
16569 else $as_nop
16570 BUILD_TIMESTAMP="<none>"
16571 fi
16572
16573
16574
16575 printf "%s\n" "#define BUILD_TIMESTAMP \"$BUILD_TIMESTAMP\"" >>confdefs.h
16576
16577
16578 build_doc=yes
16579 # Check whether --enable-doc was given.
16580 if test ${enable_doc+y}
16581 then :
16582 enableval=$enable_doc; build_doc=$enableval
16583 else $as_nop
16584 build_doc=yes
16585 fi
16586
16587 if test "x$build_doc" != xno; then
16588 BUILD_DOC_TRUE=
16589 BUILD_DOC_FALSE='#'
16590 else
16591 BUILD_DOC_TRUE='#'
16592 BUILD_DOC_FALSE=
16593 fi
16594
16595
16596
16597 ac_config_files="$ac_config_files Makefile m4/Makefile gl/Makefile src/Makefile src/ksba.h src/ksba-config src/ksba.pc src/versioninfo.rc tests/Makefile doc/Makefile"
16598
16599 cat >confcache <<\_ACEOF
16600 # This file is a shell script that caches the results of configure
16601 # tests run on this system so they can be shared between configure
16602 # scripts and configure runs, see configure's option --config-cache.
16603 # It is not useful on other systems. If it contains results you don't
16604 # want to keep, you may remove or edit it.
16605 #
16606 # config.status only pays attention to the cache file if you give it
16607 # the --recheck option to rerun configure.
16608 #
16609 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16610 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16611 # following values.
16612
16613 _ACEOF
16614
16615 # The following way of writing the cache mishandles newlines in values,
16616 # but we know of no workaround that is simple, portable, and efficient.
16617 # So, we kill variables containing newlines.
16618 # Ultrix sh set writes to stderr and can't be redirected directly,
16619 # and sets the high bit in the cache file unless we assign to the vars.
16620 (
16621 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16622 eval ac_val=\$$ac_var
16623 case $ac_val in #(
16624 *${as_nl}*)
16625 case $ac_var in #(
16626 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16627 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16628 esac
16629 case $ac_var in #(
16630 _ | IFS | as_nl) ;; #(
16631 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16632 *) { eval $ac_var=; unset $ac_var;} ;;
16633 esac ;;
16634 esac
16635 done
16636
16637 (set) 2>&1 |
16638 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16639 *${as_nl}ac_space=\ *)
16640 # `set' does not quote correctly, so add quotes: double-quote
16641 # substitution turns \\\\ into \\, and sed turns \\ into \.
16642 sed -n \
16643 "s/'/'\\\\''/g;
16644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16645 ;; #(
16646 *)
16647 # `set' quotes correctly as required by POSIX, so do not add quotes.
16648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16649 ;;
16650 esac |
16651 sort
16652 ) |
16653 sed '
16654 /^ac_cv_env_/b end
16655 t clear
16656 :clear
16657 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16658 t end
16659 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16660 :end' >>confcache
16661 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16662 if test -w "$cache_file"; then
16663 if test "x$cache_file" != "x/dev/null"; then
16664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16665 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16666 if test ! -f "$cache_file" || test -h "$cache_file"; then
16667 cat confcache >"$cache_file"
16668 else
16669 case $cache_file in #(
16670 */* | ?:*)
16671 mv -f confcache "$cache_file"$$ &&
16672 mv -f "$cache_file"$$ "$cache_file" ;; #(
16673 *)
16674 mv -f confcache "$cache_file" ;;
16675 esac
16676 fi
16677 fi
16678 else
16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16680 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16681 fi
16682 fi
16683 rm -f confcache
16684
16685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16686 # Let make expand exec_prefix.
16687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16688
16689 DEFS=-DHAVE_CONFIG_H
16690
16691 ac_libobjs=
16692 ac_ltlibobjs=
16693 U=
16694 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16695 # 1. Remove the extension, and $U if already installed.
16696 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16697 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16698 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16699 # will be set to the directory where LIBOBJS objects are built.
16700 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16701 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16702 done
16703 LIBOBJS=$ac_libobjs
16704
16705 LTLIBOBJS=$ac_ltlibobjs
16706
16707
16708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16709 printf %s "checking that generated files are newer than configure... " >&6; }
16710 if test -n "$am_sleep_pid"; then
16711 # Hide warnings about reused PIDs.
16712 wait $am_sleep_pid 2>/dev/null
16713 fi
16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16715 printf "%s\n" "done" >&6; }
16716 if test -n "$EXEEXT"; then
16717 am__EXEEXT_TRUE=
16718 am__EXEEXT_FALSE='#'
16719 else
16720 am__EXEEXT_TRUE='#'
16721 am__EXEEXT_FALSE=
16722 fi
16723
16724 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16725 as_fn_error $? "conditional \"AMDEP\" was never defined.
16726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16727 fi
16728 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16729 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16731 fi
16732 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16733 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16735 fi
16736 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16737 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16739 fi
16740 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16741 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16743 fi
16744 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16745 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16747 fi
16748 if test -z "${USE_GPGRT_CONFIG_TRUE}" && test -z "${USE_GPGRT_CONFIG_FALSE}"; then
16749 as_fn_error $? "conditional \"USE_GPGRT_CONFIG\" was never defined.
16750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16751 fi
16752
16753 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16754 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16756 fi
16757 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16758 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16760 fi
16761
16762 : "${CONFIG_STATUS=./config.status}"
16763 ac_write_fail=0
16764 ac_clean_files_save=$ac_clean_files
16765 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16767 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16768 as_write_fail=0
16769 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16770 #! $SHELL
16771 # Generated by $as_me.
16772 # Run this file to recreate the current configuration.
16773 # Compiler output produced by configure, useful for debugging
16774 # configure, is in config.log if it exists.
16775
16776 debug=false
16777 ac_cs_recheck=false
16778 ac_cs_silent=false
16779
16780 SHELL=\${CONFIG_SHELL-$SHELL}
16781 export SHELL
16782 _ASEOF
16783 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16784 ## -------------------- ##
16785 ## M4sh Initialization. ##
16786 ## -------------------- ##
16787
16788 # Be more Bourne compatible
16789 DUALCASE=1; export DUALCASE # for MKS sh
16790 as_nop=:
16791 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16792 then :
16793 emulate sh
16794 NULLCMD=:
16795 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16796 # is contrary to our usage. Disable this feature.
16797 alias -g '${1+"$@"}'='"$@"'
16798 setopt NO_GLOB_SUBST
16799 else $as_nop
16800 case `(set -o) 2>/dev/null` in #(
16801 *posix*) :
16802 set -o posix ;; #(
16803 *) :
16804 ;;
16805 esac
16806 fi
16807
16808
16809
16810 # Reset variables that may have inherited troublesome values from
16811 # the environment.
16812
16813 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16814 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16815 # side effect of setting IFS to empty, thus disabling word splitting.)
16816 # Quoting is to prevent editors from complaining about space-tab.
16817 as_nl='
16818 '
16819 export as_nl
16820 IFS=" "" $as_nl"
16821
16822 PS1='$ '
16823 PS2='> '
16824 PS4='+ '
16825
16826 # Ensure predictable behavior from utilities with locale-dependent output.
16827 LC_ALL=C
16828 export LC_ALL
16829 LANGUAGE=C
16830 export LANGUAGE
16831
16832 # We cannot yet rely on "unset" to work, but we need these variables
16833 # to be unset--not just set to an empty or harmless value--now, to
16834 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16835 # also avoids known problems related to "unset" and subshell syntax
16836 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16837 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16838 do eval test \${$as_var+y} \
16839 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16840 done
16841
16842 # Ensure that fds 0, 1, and 2 are open.
16843 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16844 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16845 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16846
16847 # The user is always right.
16848 if ${PATH_SEPARATOR+false} :; then
16849 PATH_SEPARATOR=:
16850 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16851 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16852 PATH_SEPARATOR=';'
16853 }
16854 fi
16855
16856
16857 # Find who we are. Look in the path if we contain no directory separator.
16858 as_myself=
16859 case $0 in #((
16860 *[\\/]* ) as_myself=$0 ;;
16861 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16862 for as_dir in $PATH
16863 do
16864 IFS=$as_save_IFS
16865 case $as_dir in #(((
16866 '') as_dir=./ ;;
16867 */) ;;
16868 *) as_dir=$as_dir/ ;;
16869 esac
16870 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16871 done
16872 IFS=$as_save_IFS
16873
16874 ;;
16875 esac
16876 # We did not find ourselves, most probably we were run as `sh COMMAND'
16877 # in which case we are not to be found in the path.
16878 if test "x$as_myself" = x; then
16879 as_myself=$0
16880 fi
16881 if test ! -f "$as_myself"; then
16882 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16883 exit 1
16884 fi
16885
16886
16887
16888 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16889 # ----------------------------------------
16890 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16891 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16892 # script with STATUS, using 1 if that was 0.
16893 as_fn_error ()
16894 {
16895 as_status=$1; test $as_status -eq 0 && as_status=1
16896 if test "$4"; then
16897 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16899 fi
16900 printf "%s\n" "$as_me: error: $2" >&2
16901 as_fn_exit $as_status
16902 } # as_fn_error
16903
16904
16905
16906 # as_fn_set_status STATUS
16907 # -----------------------
16908 # Set $? to STATUS, without forking.
16909 as_fn_set_status ()
16910 {
16911 return $1
16912 } # as_fn_set_status
16913
16914 # as_fn_exit STATUS
16915 # -----------------
16916 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16917 as_fn_exit ()
16918 {
16919 set +e
16920 as_fn_set_status $1
16921 exit $1
16922 } # as_fn_exit
16923
16924 # as_fn_unset VAR
16925 # ---------------
16926 # Portably unset VAR.
16927 as_fn_unset ()
16928 {
16929 { eval $1=; unset $1;}
16930 }
16931 as_unset=as_fn_unset
16932
16933 # as_fn_append VAR VALUE
16934 # ----------------------
16935 # Append the text in VALUE to the end of the definition contained in VAR. Take
16936 # advantage of any shell optimizations that allow amortized linear growth over
16937 # repeated appends, instead of the typical quadratic growth present in naive
16938 # implementations.
16939 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16940 then :
16941 eval 'as_fn_append ()
16942 {
16943 eval $1+=\$2
16944 }'
16945 else $as_nop
16946 as_fn_append ()
16947 {
16948 eval $1=\$$1\$2
16949 }
16950 fi # as_fn_append
16951
16952 # as_fn_arith ARG...
16953 # ------------------
16954 # Perform arithmetic evaluation on the ARGs, and store the result in the
16955 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16956 # must be portable across $(()) and expr.
16957 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16958 then :
16959 eval 'as_fn_arith ()
16960 {
16961 as_val=$(( $* ))
16962 }'
16963 else $as_nop
16964 as_fn_arith ()
16965 {
16966 as_val=`expr "$@" || test $? -eq 1`
16967 }
16968 fi # as_fn_arith
16969
16970
16971 if expr a : '\(a\)' >/dev/null 2>&1 &&
16972 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16973 as_expr=expr
16974 else
16975 as_expr=false
16976 fi
16977
16978 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16979 as_basename=basename
16980 else
16981 as_basename=false
16982 fi
16983
16984 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16985 as_dirname=dirname
16986 else
16987 as_dirname=false
16988 fi
16989
16990 as_me=`$as_basename -- "$0" ||
16991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16992 X"$0" : 'X\(//\)$' \| \
16993 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16994 printf "%s\n" X/"$0" |
16995 sed '/^.*\/\([^/][^/]*\)\/*$/{
16996 s//\1/
16997 q
16998 }
16999 /^X\/\(\/\/\)$/{
17000 s//\1/
17001 q
17002 }
17003 /^X\/\(\/\).*/{
17004 s//\1/
17005 q
17006 }
17007 s/.*/./; q'`
17008
17009 # Avoid depending upon Character Ranges.
17010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17013 as_cr_digits='0123456789'
17014 as_cr_alnum=$as_cr_Letters$as_cr_digits
17015
17016
17017 # Determine whether it's possible to make 'echo' print without a newline.
17018 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17019 # for compatibility with existing Makefiles.
17020 ECHO_C= ECHO_N= ECHO_T=
17021 case `echo -n x` in #(((((
17022 -n*)
17023 case `echo 'xy\c'` in
17024 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17025 xy) ECHO_C='\c';;
17026 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17027 ECHO_T=' ';;
17028 esac;;
17029 *)
17030 ECHO_N='-n';;
17031 esac
17032
17033 # For backward compatibility with old third-party macros, we provide
17034 # the shell variables $as_echo and $as_echo_n. New code should use
17035 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17036 as_echo='printf %s\n'
17037 as_echo_n='printf %s'
17038
17039 rm -f conf$$ conf$$.exe conf$$.file
17040 if test -d conf$$.dir; then
17041 rm -f conf$$.dir/conf$$.file
17042 else
17043 rm -f conf$$.dir
17044 mkdir conf$$.dir 2>/dev/null
17045 fi
17046 if (echo >conf$$.file) 2>/dev/null; then
17047 if ln -s conf$$.file conf$$ 2>/dev/null; then
17048 as_ln_s='ln -s'
17049 # ... but there are two gotchas:
17050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17052 # In both cases, we have to default to `cp -pR'.
17053 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17054 as_ln_s='cp -pR'
17055 elif ln conf$$.file conf$$ 2>/dev/null; then
17056 as_ln_s=ln
17057 else
17058 as_ln_s='cp -pR'
17059 fi
17060 else
17061 as_ln_s='cp -pR'
17062 fi
17063 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17064 rmdir conf$$.dir 2>/dev/null
17065
17066
17067 # as_fn_mkdir_p
17068 # -------------
17069 # Create "$as_dir" as a directory, including parents if necessary.
17070 as_fn_mkdir_p ()
17071 {
17072
17073 case $as_dir in #(
17074 -*) as_dir=./$as_dir;;
17075 esac
17076 test -d "$as_dir" || eval $as_mkdir_p || {
17077 as_dirs=
17078 while :; do
17079 case $as_dir in #(
17080 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17081 *) as_qdir=$as_dir;;
17082 esac
17083 as_dirs="'$as_qdir' $as_dirs"
17084 as_dir=`$as_dirname -- "$as_dir" ||
17085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17086 X"$as_dir" : 'X\(//\)[^/]' \| \
17087 X"$as_dir" : 'X\(//\)$' \| \
17088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17089 printf "%s\n" X"$as_dir" |
17090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17091 s//\1/
17092 q
17093 }
17094 /^X\(\/\/\)[^/].*/{
17095 s//\1/
17096 q
17097 }
17098 /^X\(\/\/\)$/{
17099 s//\1/
17100 q
17101 }
17102 /^X\(\/\).*/{
17103 s//\1/
17104 q
17105 }
17106 s/.*/./; q'`
17107 test -d "$as_dir" && break
17108 done
17109 test -z "$as_dirs" || eval "mkdir $as_dirs"
17110 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17111
17112
17113 } # as_fn_mkdir_p
17114 if mkdir -p . 2>/dev/null; then
17115 as_mkdir_p='mkdir -p "$as_dir"'
17116 else
17117 test -d ./-p && rmdir ./-p
17118 as_mkdir_p=false
17119 fi
17120
17121
17122 # as_fn_executable_p FILE
17123 # -----------------------
17124 # Test if FILE is an executable regular file.
17125 as_fn_executable_p ()
17126 {
17127 test -f "$1" && test -x "$1"
17128 } # as_fn_executable_p
17129 as_test_x='test -x'
17130 as_executable_p=as_fn_executable_p
17131
17132 # Sed expression to map a string onto a valid CPP name.
17133 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17134
17135 # Sed expression to map a string onto a valid variable name.
17136 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17137
17138
17139 exec 6>&1
17140 ## ----------------------------------- ##
17141 ## Main body of $CONFIG_STATUS script. ##
17142 ## ----------------------------------- ##
17143 _ASEOF
17144 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17145
17146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17147 # Save the log message, to keep $0 and so on meaningful, and to
17148 # report actual input values of CONFIG_FILES etc. instead of their
17149 # values after options handling.
17150 ac_log="
17151 This file was extended by libksba $as_me 1.8.0, which was
17152 generated by GNU Autoconf 2.71. Invocation command line was
17153
17154 CONFIG_FILES = $CONFIG_FILES
17155 CONFIG_HEADERS = $CONFIG_HEADERS
17156 CONFIG_LINKS = $CONFIG_LINKS
17157 CONFIG_COMMANDS = $CONFIG_COMMANDS
17158 $ $0 $@
17159
17160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17161 "
17162
17163 _ACEOF
17164
17165 case $ac_config_files in *"
17166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17167 esac
17168
17169 case $ac_config_headers in *"
17170 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17171 esac
17172
17173
17174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17175 # Files that config.status was made for.
17176 config_files="$ac_config_files"
17177 config_headers="$ac_config_headers"
17178 config_commands="$ac_config_commands"
17179
17180 _ACEOF
17181
17182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17183 ac_cs_usage="\
17184 \`$as_me' instantiates files and other configuration actions
17185 from templates according to the current configuration. Unless the files
17186 and actions are specified as TAGs, all are instantiated by default.
17187
17188 Usage: $0 [OPTION]... [TAG]...
17189
17190 -h, --help print this help, then exit
17191 -V, --version print version number and configuration settings, then exit
17192 --config print configuration, then exit
17193 -q, --quiet, --silent
17194 do not print progress messages
17195 -d, --debug don't remove temporary files
17196 --recheck update $as_me by reconfiguring in the same conditions
17197 --file=FILE[:TEMPLATE]
17198 instantiate the configuration file FILE
17199 --header=FILE[:TEMPLATE]
17200 instantiate the configuration header FILE
17201
17202 Configuration files:
17203 $config_files
17204
17205 Configuration headers:
17206 $config_headers
17207
17208 Configuration commands:
17209 $config_commands
17210
17211 Report bugs to <https://bugs.gnupg.org>."
17212
17213 _ACEOF
17214 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17215 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17217 ac_cs_config='$ac_cs_config_escaped'
17218 ac_cs_version="\\
17219 libksba config.status 1.8.0
17220 configured by $0, generated by GNU Autoconf 2.71,
17221 with options \\"\$ac_cs_config\\"
17222
17223 Copyright (C) 2021 Free Software Foundation, Inc.
17224 This config.status script is free software; the Free Software Foundation
17225 gives unlimited permission to copy, distribute and modify it."
17226
17227 ac_pwd='$ac_pwd'
17228 srcdir='$srcdir'
17229 INSTALL='$INSTALL'
17230 MKDIR_P='$MKDIR_P'
17231 AWK='$AWK'
17232 test -n "\$AWK" || AWK=awk
17233 _ACEOF
17234
17235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17236 # The default lists apply if the user does not specify any file.
17237 ac_need_defaults=:
17238 while test $# != 0
17239 do
17240 case $1 in
17241 --*=?*)
17242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17243 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17244 ac_shift=:
17245 ;;
17246 --*=)
17247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17248 ac_optarg=
17249 ac_shift=:
17250 ;;
17251 *)
17252 ac_option=$1
17253 ac_optarg=$2
17254 ac_shift=shift
17255 ;;
17256 esac
17257
17258 case $ac_option in
17259 # Handling of the options.
17260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17261 ac_cs_recheck=: ;;
17262 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17263 printf "%s\n" "$ac_cs_version"; exit ;;
17264 --config | --confi | --conf | --con | --co | --c )
17265 printf "%s\n" "$ac_cs_config"; exit ;;
17266 --debug | --debu | --deb | --de | --d | -d )
17267 debug=: ;;
17268 --file | --fil | --fi | --f )
17269 $ac_shift
17270 case $ac_optarg in
17271 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17272 '') as_fn_error $? "missing file argument" ;;
17273 esac
17274 as_fn_append CONFIG_FILES " '$ac_optarg'"
17275 ac_need_defaults=false;;
17276 --header | --heade | --head | --hea )
17277 $ac_shift
17278 case $ac_optarg in
17279 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17280 esac
17281 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17282 ac_need_defaults=false;;
17283 --he | --h)
17284 # Conflict between --help and --header
17285 as_fn_error $? "ambiguous option: \`$1'
17286 Try \`$0 --help' for more information.";;
17287 --help | --hel | -h )
17288 printf "%s\n" "$ac_cs_usage"; exit ;;
17289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17291 ac_cs_silent=: ;;
17292
17293 # This is an error.
17294 -*) as_fn_error $? "unrecognized option: \`$1'
17295 Try \`$0 --help' for more information." ;;
17296
17297 *) as_fn_append ac_config_targets " $1"
17298 ac_need_defaults=false ;;
17299
17300 esac
17301 shift
17302 done
17303
17304 ac_configure_extra_args=
17305
17306 if $ac_cs_silent; then
17307 exec 6>/dev/null
17308 ac_configure_extra_args="$ac_configure_extra_args --silent"
17309 fi
17310
17311 _ACEOF
17312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17313 if \$ac_cs_recheck; then
17314 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17315 shift
17316 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17317 CONFIG_SHELL='$SHELL'
17318 export CONFIG_SHELL
17319 exec "\$@"
17320 fi
17321
17322 _ACEOF
17323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17324 exec 5>>config.log
17325 {
17326 echo
17327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17328 ## Running $as_me. ##
17329 _ASBOX
17330 printf "%s\n" "$ac_log"
17331 } >&5
17332
17333 _ACEOF
17334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17335 #
17336 # INIT-COMMANDS
17337 #
17338 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17339
17340
17341 # The HP-UX ksh and POSIX shell print the target directory to stdout
17342 # if CDPATH is set.
17343 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17344
17345 sed_quote_subst='$sed_quote_subst'
17346 double_quote_subst='$double_quote_subst'
17347 delay_variable_subst='$delay_variable_subst'
17348 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17349 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17350 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17351 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17352 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17353 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17354 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17355 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17356 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17357 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17358 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17359 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17360 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17361 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17362 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17363 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17364 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17365 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17366 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17367 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17368 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17369 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17370 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17371 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17372 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17373 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17374 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17375 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17376 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17377 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17378 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17379 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17380 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17381 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17382 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17383 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17384 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17385 FILECMD='`$ECHO "$FILECMD" | $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 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17391 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17392 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17393 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17394 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17395 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17396 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17397 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17398 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17399 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17400 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17401 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17402 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17403 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17404 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17405 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17406 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17407 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17408 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17409 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"`'
17410 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17411 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17412 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17413 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17414 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17415 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17416 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17417 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17418 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17419 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17420 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17421 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17422 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17423 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17424 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17425 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17426 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17427 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17428 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17429 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17430 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17431 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17432 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17433 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17434 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17435 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17436 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17437 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17438 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17439 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17440 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17441 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17442 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17443 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17444 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17445 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17446 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17447 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17448 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17449 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17450 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17451 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17452 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17453 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17454 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17455 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17456 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17457 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17458 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17459 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17460 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17461 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17462 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17463 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17464 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17465 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17466 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17467 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17468 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17469 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17470 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17471 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17472 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17473 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17474 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17475 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17476 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17477 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17478 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17479 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17480 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17481 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17482 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17483 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17484 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17485 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17486 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17487 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17488 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17489 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17490 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17491 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17492 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17493 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17494 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17495 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17496 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17497 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17498 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17499 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17500 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17501 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17502 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17503 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17504 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17505 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17506 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17507 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17508 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17509 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17510 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17511 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17512 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17513 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17514 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17515 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17516 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17517 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17518 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17519 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17520 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17521 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17522 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17523 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17524 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17525 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17526 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17527 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17528
17529 LTCC='$LTCC'
17530 LTCFLAGS='$LTCFLAGS'
17531 compiler='$compiler_DEFAULT'
17532
17533 # A function that is used when there is no print builtin or printf.
17534 func_fallback_echo ()
17535 {
17536 eval 'cat <<_LTECHO_EOF
17537 \$1
17538 _LTECHO_EOF'
17539 }
17540
17541 # Quote evaled strings.
17542 for var in AS \
17543 DLLTOOL \
17544 OBJDUMP \
17545 SHELL \
17546 ECHO \
17547 PATH_SEPARATOR \
17548 SED \
17549 GREP \
17550 EGREP \
17551 FGREP \
17552 LD \
17553 NM \
17554 LN_S \
17555 lt_SP2NL \
17556 lt_NL2SP \
17557 reload_flag \
17558 FILECMD \
17559 deplibs_check_method \
17560 file_magic_cmd \
17561 file_magic_glob \
17562 want_nocaseglob \
17563 sharedlib_from_linklib_cmd \
17564 AR \
17565 archiver_list_spec \
17566 STRIP \
17567 RANLIB \
17568 CC \
17569 CFLAGS \
17570 compiler \
17571 lt_cv_sys_global_symbol_pipe \
17572 lt_cv_sys_global_symbol_to_cdecl \
17573 lt_cv_sys_global_symbol_to_import \
17574 lt_cv_sys_global_symbol_to_c_name_address \
17575 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17576 lt_cv_nm_interface \
17577 nm_file_list_spec \
17578 lt_cv_truncate_bin \
17579 lt_prog_compiler_no_builtin_flag \
17580 lt_prog_compiler_pic \
17581 lt_prog_compiler_wl \
17582 lt_prog_compiler_static \
17583 lt_cv_prog_compiler_c_o \
17584 need_locks \
17585 MANIFEST_TOOL \
17586 DSYMUTIL \
17587 NMEDIT \
17588 LIPO \
17589 OTOOL \
17590 OTOOL64 \
17591 shrext_cmds \
17592 export_dynamic_flag_spec \
17593 whole_archive_flag_spec \
17594 compiler_needs_object \
17595 with_gnu_ld \
17596 allow_undefined_flag \
17597 no_undefined_flag \
17598 hardcode_libdir_flag_spec \
17599 hardcode_libdir_separator \
17600 exclude_expsyms \
17601 include_expsyms \
17602 file_list_spec \
17603 variables_saved_for_relink \
17604 libname_spec \
17605 library_names_spec \
17606 soname_spec \
17607 install_override_mode \
17608 finish_eval \
17609 old_striplib \
17610 striplib \
17611 LD_RC \
17612 reload_flag_RC \
17613 compiler_RC \
17614 lt_prog_compiler_no_builtin_flag_RC \
17615 lt_prog_compiler_pic_RC \
17616 lt_prog_compiler_wl_RC \
17617 lt_prog_compiler_static_RC \
17618 lt_cv_prog_compiler_c_o_RC \
17619 export_dynamic_flag_spec_RC \
17620 whole_archive_flag_spec_RC \
17621 compiler_needs_object_RC \
17622 with_gnu_ld_RC \
17623 allow_undefined_flag_RC \
17624 no_undefined_flag_RC \
17625 hardcode_libdir_flag_spec_RC \
17626 hardcode_libdir_separator_RC \
17627 exclude_expsyms_RC \
17628 include_expsyms_RC \
17629 file_list_spec_RC; do
17630 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17631 *[\\\\\\\`\\"\\\$]*)
17632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17633 ;;
17634 *)
17635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17636 ;;
17637 esac
17638 done
17639
17640 # Double-quote double-evaled strings.
17641 for var in reload_cmds \
17642 old_postinstall_cmds \
17643 old_postuninstall_cmds \
17644 old_archive_cmds \
17645 extract_expsyms_cmds \
17646 old_archive_from_new_cmds \
17647 old_archive_from_expsyms_cmds \
17648 archive_cmds \
17649 archive_expsym_cmds \
17650 module_cmds \
17651 module_expsym_cmds \
17652 export_symbols_cmds \
17653 prelink_cmds \
17654 postlink_cmds \
17655 postinstall_cmds \
17656 postuninstall_cmds \
17657 finish_cmds \
17658 sys_lib_search_path_spec \
17659 configure_time_dlsearch_path \
17660 configure_time_lt_sys_library_path \
17661 reload_cmds_RC \
17662 old_archive_cmds_RC \
17663 old_archive_from_new_cmds_RC \
17664 old_archive_from_expsyms_cmds_RC \
17665 archive_cmds_RC \
17666 archive_expsym_cmds_RC \
17667 module_cmds_RC \
17668 module_expsym_cmds_RC \
17669 export_symbols_cmds_RC \
17670 prelink_cmds_RC \
17671 postlink_cmds_RC; do
17672 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17673 *[\\\\\\\`\\"\\\$]*)
17674 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17675 ;;
17676 *)
17677 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17678 ;;
17679 esac
17680 done
17681
17682 ac_aux_dir='$ac_aux_dir'
17683
17684 # See if we are running on zsh, and set the options that allow our
17685 # commands through without removal of \ escapes INIT.
17686 if test -n "\${ZSH_VERSION+set}"; then
17687 setopt NO_GLOB_SUBST
17688 fi
17689
17690
17691 PACKAGE='$PACKAGE'
17692 VERSION='$VERSION'
17693 RM='$RM'
17694 ofile='$ofile'
17695
17696
17697
17698
17699
17700 build_selection=$build_libtool_modification
17701
17702 _ACEOF
17703
17704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17705
17706 # Handling of arguments.
17707 for ac_config_target in $ac_config_targets
17708 do
17709 case $ac_config_target in
17710 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17711 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17712 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17713 "libtool-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-patch" ;;
17714 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17715 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17716 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
17717 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17718 "src/ksba.h") CONFIG_FILES="$CONFIG_FILES src/ksba.h" ;;
17719 "src/ksba-config") CONFIG_FILES="$CONFIG_FILES src/ksba-config" ;;
17720 "src/ksba.pc") CONFIG_FILES="$CONFIG_FILES src/ksba.pc" ;;
17721 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
17722 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17723 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17724
17725 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17726 esac
17727 done
17728
17729
17730 # If the user did not use the arguments to specify the items to instantiate,
17731 # then the envvar interface is used. Set only those that are not.
17732 # We use the long form for the default assignment because of an extremely
17733 # bizarre bug on SunOS 4.1.3.
17734 if $ac_need_defaults; then
17735 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17736 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17737 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17738 fi
17739
17740 # Have a temporary directory for convenience. Make it in the build tree
17741 # simply because there is no reason against having it here, and in addition,
17742 # creating and moving files from /tmp can sometimes cause problems.
17743 # Hook for its removal unless debugging.
17744 # Note that there is a small window in which the directory will not be cleaned:
17745 # after its creation but before its name has been assigned to `$tmp'.
17746 $debug ||
17747 {
17748 tmp= ac_tmp=
17749 trap 'exit_status=$?
17750 : "${ac_tmp:=$tmp}"
17751 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17752 ' 0
17753 trap 'as_fn_exit 1' 1 2 13 15
17754 }
17755 # Create a (secure) tmp directory for tmp files.
17756
17757 {
17758 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17759 test -d "$tmp"
17760 } ||
17761 {
17762 tmp=./conf$$-$RANDOM
17763 (umask 077 && mkdir "$tmp")
17764 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17765 ac_tmp=$tmp
17766
17767 # Set up the scripts for CONFIG_FILES section.
17768 # No need to generate them if there are no CONFIG_FILES.
17769 # This happens for instance with `./config.status config.h'.
17770 if test -n "$CONFIG_FILES"; then
17771
17772
17773 ac_cr=`echo X | tr X '\015'`
17774 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17775 # But we know of no other shell where ac_cr would be empty at this
17776 # point, so we can use a bashism as a fallback.
17777 if test "x$ac_cr" = x; then
17778 eval ac_cr=\$\'\\r\'
17779 fi
17780 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17781 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17782 ac_cs_awk_cr='\\r'
17783 else
17784 ac_cs_awk_cr=$ac_cr
17785 fi
17786
17787 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17788 _ACEOF
17789
17790
17791 {
17792 echo "cat >conf$$subs.awk <<_ACEOF" &&
17793 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17794 echo "_ACEOF"
17795 } >conf$$subs.sh ||
17796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17797 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17798 ac_delim='%!_!# '
17799 for ac_last_try in false false false false false :; do
17800 . ./conf$$subs.sh ||
17801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17802
17803 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17804 if test $ac_delim_n = $ac_delim_num; then
17805 break
17806 elif $ac_last_try; then
17807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17808 else
17809 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17810 fi
17811 done
17812 rm -f conf$$subs.sh
17813
17814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17815 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17816 _ACEOF
17817 sed -n '
17818 h
17819 s/^/S["/; s/!.*/"]=/
17820 p
17821 g
17822 s/^[^!]*!//
17823 :repl
17824 t repl
17825 s/'"$ac_delim"'$//
17826 t delim
17827 :nl
17828 h
17829 s/\(.\{148\}\)..*/\1/
17830 t more1
17831 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17832 p
17833 n
17834 b repl
17835 :more1
17836 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17837 p
17838 g
17839 s/.\{148\}//
17840 t nl
17841 :delim
17842 h
17843 s/\(.\{148\}\)..*/\1/
17844 t more2
17845 s/["\\]/\\&/g; s/^/"/; s/$/"/
17846 p
17847 b
17848 :more2
17849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17850 p
17851 g
17852 s/.\{148\}//
17853 t delim
17854 ' <conf$$subs.awk | sed '
17855 /^[^""]/{
17856 N
17857 s/\n//
17858 }
17859 ' >>$CONFIG_STATUS || ac_write_fail=1
17860 rm -f conf$$subs.awk
17861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17862 _ACAWK
17863 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17864 for (key in S) S_is_set[key] = 1
17865 FS = ""
17866
17867 }
17868 {
17869 line = $ 0
17870 nfields = split(line, field, "@")
17871 substed = 0
17872 len = length(field[1])
17873 for (i = 2; i < nfields; i++) {
17874 key = field[i]
17875 keylen = length(key)
17876 if (S_is_set[key]) {
17877 value = S[key]
17878 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17879 len += length(value) + length(field[++i])
17880 substed = 1
17881 } else
17882 len += 1 + keylen
17883 }
17884
17885 print line
17886 }
17887
17888 _ACAWK
17889 _ACEOF
17890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17891 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17892 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17893 else
17894 cat
17895 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17896 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17897 _ACEOF
17898
17899 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17900 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17901 # trailing colons and then remove the whole line if VPATH becomes empty
17902 # (actually we leave an empty line to preserve line numbers).
17903 if test "x$srcdir" = x.; then
17904 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17905 h
17906 s///
17907 s/^/:/
17908 s/[ ]*$/:/
17909 s/:\$(srcdir):/:/g
17910 s/:\${srcdir}:/:/g
17911 s/:@srcdir@:/:/g
17912 s/^:*//
17913 s/:*$//
17914 x
17915 s/\(=[ ]*\).*/\1/
17916 G
17917 s/\n//
17918 s/^[^=]*=[ ]*$//
17919 }'
17920 fi
17921
17922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17923 fi # test -n "$CONFIG_FILES"
17924
17925 # Set up the scripts for CONFIG_HEADERS section.
17926 # No need to generate them if there are no CONFIG_HEADERS.
17927 # This happens for instance with `./config.status Makefile'.
17928 if test -n "$CONFIG_HEADERS"; then
17929 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17930 BEGIN {
17931 _ACEOF
17932
17933 # Transform confdefs.h into an awk script `defines.awk', embedded as
17934 # here-document in config.status, that substitutes the proper values into
17935 # config.h.in to produce config.h.
17936
17937 # Create a delimiter string that does not exist in confdefs.h, to ease
17938 # handling of long lines.
17939 ac_delim='%!_!# '
17940 for ac_last_try in false false :; do
17941 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17942 if test -z "$ac_tt"; then
17943 break
17944 elif $ac_last_try; then
17945 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17946 else
17947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17948 fi
17949 done
17950
17951 # For the awk script, D is an array of macro values keyed by name,
17952 # likewise P contains macro parameters if any. Preserve backslash
17953 # newline sequences.
17954
17955 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17956 sed -n '
17957 s/.\{148\}/&'"$ac_delim"'/g
17958 t rset
17959 :rset
17960 s/^[ ]*#[ ]*define[ ][ ]*/ /
17961 t def
17962 d
17963 :def
17964 s/\\$//
17965 t bsnl
17966 s/["\\]/\\&/g
17967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17968 D["\1"]=" \3"/p
17969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17970 d
17971 :bsnl
17972 s/["\\]/\\&/g
17973 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17974 D["\1"]=" \3\\\\\\n"\\/p
17975 t cont
17976 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17977 t cont
17978 d
17979 :cont
17980 n
17981 s/.\{148\}/&'"$ac_delim"'/g
17982 t clear
17983 :clear
17984 s/\\$//
17985 t bsnlc
17986 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17987 d
17988 :bsnlc
17989 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17990 b cont
17991 ' <confdefs.h | sed '
17992 s/'"$ac_delim"'/"\\\
17993 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17994
17995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17996 for (key in D) D_is_set[key] = 1
17997 FS = ""
17998 }
17999 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18000 line = \$ 0
18001 split(line, arg, " ")
18002 if (arg[1] == "#") {
18003 defundef = arg[2]
18004 mac1 = arg[3]
18005 } else {
18006 defundef = substr(arg[1], 2)
18007 mac1 = arg[2]
18008 }
18009 split(mac1, mac2, "(") #)
18010 macro = mac2[1]
18011 prefix = substr(line, 1, index(line, defundef) - 1)
18012 if (D_is_set[macro]) {
18013 # Preserve the white space surrounding the "#".
18014 print prefix "define", macro P[macro] D[macro]
18015 next
18016 } else {
18017 # Replace #undef with comments. This is necessary, for example,
18018 # in the case of _POSIX_SOURCE, which is predefined and required
18019 # on some systems where configure will not decide to define it.
18020 if (defundef == "undef") {
18021 print "/*", prefix defundef, macro, "*/"
18022 next
18023 }
18024 }
18025 }
18026 { print }
18027 _ACAWK
18028 _ACEOF
18029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18030 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18031 fi # test -n "$CONFIG_HEADERS"
18032
18033
18034 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18035 shift
18036 for ac_tag
18037 do
18038 case $ac_tag in
18039 :[FHLC]) ac_mode=$ac_tag; continue;;
18040 esac
18041 case $ac_mode$ac_tag in
18042 :[FHL]*:*);;
18043 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18044 :[FH]-) ac_tag=-:-;;
18045 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18046 esac
18047 ac_save_IFS=$IFS
18048 IFS=:
18049 set x $ac_tag
18050 IFS=$ac_save_IFS
18051 shift
18052 ac_file=$1
18053 shift
18054
18055 case $ac_mode in
18056 :L) ac_source=$1;;
18057 :[FH])
18058 ac_file_inputs=
18059 for ac_f
18060 do
18061 case $ac_f in
18062 -) ac_f="$ac_tmp/stdin";;
18063 *) # Look for the file first in the build tree, then in the source tree
18064 # (if the path is not absolute). The absolute path cannot be DOS-style,
18065 # because $ac_f cannot contain `:'.
18066 test -f "$ac_f" ||
18067 case $ac_f in
18068 [\\/$]*) false;;
18069 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18070 esac ||
18071 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18072 esac
18073 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18074 as_fn_append ac_file_inputs " '$ac_f'"
18075 done
18076
18077 # Let's still pretend it is `configure' which instantiates (i.e., don't
18078 # use $as_me), people would be surprised to read:
18079 # /* config.h. Generated by config.status. */
18080 configure_input='Generated from '`
18081 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18082 `' by configure.'
18083 if test x"$ac_file" != x-; then
18084 configure_input="$ac_file. $configure_input"
18085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18086 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18087 fi
18088 # Neutralize special characters interpreted by sed in replacement strings.
18089 case $configure_input in #(
18090 *\&* | *\|* | *\\* )
18091 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18092 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18093 *) ac_sed_conf_input=$configure_input;;
18094 esac
18095
18096 case $ac_tag in
18097 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18099 esac
18100 ;;
18101 esac
18102
18103 ac_dir=`$as_dirname -- "$ac_file" ||
18104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18105 X"$ac_file" : 'X\(//\)[^/]' \| \
18106 X"$ac_file" : 'X\(//\)$' \| \
18107 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18108 printf "%s\n" X"$ac_file" |
18109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18110 s//\1/
18111 q
18112 }
18113 /^X\(\/\/\)[^/].*/{
18114 s//\1/
18115 q
18116 }
18117 /^X\(\/\/\)$/{
18118 s//\1/
18119 q
18120 }
18121 /^X\(\/\).*/{
18122 s//\1/
18123 q
18124 }
18125 s/.*/./; q'`
18126 as_dir="$ac_dir"; as_fn_mkdir_p
18127 ac_builddir=.
18128
18129 case "$ac_dir" in
18130 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18131 *)
18132 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18133 # A ".." for each directory in $ac_dir_suffix.
18134 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18135 case $ac_top_builddir_sub in
18136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18138 esac ;;
18139 esac
18140 ac_abs_top_builddir=$ac_pwd
18141 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18142 # for backward compatibility:
18143 ac_top_builddir=$ac_top_build_prefix
18144
18145 case $srcdir in
18146 .) # We are building in place.
18147 ac_srcdir=.
18148 ac_top_srcdir=$ac_top_builddir_sub
18149 ac_abs_top_srcdir=$ac_pwd ;;
18150 [\\/]* | ?:[\\/]* ) # Absolute name.
18151 ac_srcdir=$srcdir$ac_dir_suffix;
18152 ac_top_srcdir=$srcdir
18153 ac_abs_top_srcdir=$srcdir ;;
18154 *) # Relative name.
18155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18156 ac_top_srcdir=$ac_top_build_prefix$srcdir
18157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18158 esac
18159 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18160
18161
18162 case $ac_mode in
18163 :F)
18164 #
18165 # CONFIG_FILE
18166 #
18167
18168 case $INSTALL in
18169 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18170 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18171 esac
18172 ac_MKDIR_P=$MKDIR_P
18173 case $MKDIR_P in
18174 [\\/$]* | ?:[\\/]* ) ;;
18175 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18176 esac
18177 _ACEOF
18178
18179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18180 # If the template does not know about datarootdir, expand it.
18181 # FIXME: This hack should be removed a few years after 2.60.
18182 ac_datarootdir_hack=; ac_datarootdir_seen=
18183 ac_sed_dataroot='
18184 /datarootdir/ {
18185 p
18186 q
18187 }
18188 /@datadir@/p
18189 /@docdir@/p
18190 /@infodir@/p
18191 /@localedir@/p
18192 /@mandir@/p'
18193 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18194 *datarootdir*) ac_datarootdir_seen=yes;;
18195 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18197 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18198 _ACEOF
18199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18200 ac_datarootdir_hack='
18201 s&@datadir@&$datadir&g
18202 s&@docdir@&$docdir&g
18203 s&@infodir@&$infodir&g
18204 s&@localedir@&$localedir&g
18205 s&@mandir@&$mandir&g
18206 s&\\\${datarootdir}&$datarootdir&g' ;;
18207 esac
18208 _ACEOF
18209
18210 # Neutralize VPATH when `$srcdir' = `.'.
18211 # Shell code in configure.ac might set extrasub.
18212 # FIXME: do we really want to maintain this feature?
18213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18214 ac_sed_extra="$ac_vpsub
18215 $extrasub
18216 _ACEOF
18217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18218 :t
18219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18220 s|@configure_input@|$ac_sed_conf_input|;t t
18221 s&@top_builddir@&$ac_top_builddir_sub&;t t
18222 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18223 s&@srcdir@&$ac_srcdir&;t t
18224 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18225 s&@top_srcdir@&$ac_top_srcdir&;t t
18226 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18227 s&@builddir@&$ac_builddir&;t t
18228 s&@abs_builddir@&$ac_abs_builddir&;t t
18229 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18230 s&@INSTALL@&$ac_INSTALL&;t t
18231 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18232 $ac_datarootdir_hack
18233 "
18234 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18235 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18236
18237 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18238 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18240 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18242 which seems to be undefined. Please make sure it is defined" >&5
18243 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18244 which seems to be undefined. Please make sure it is defined" >&2;}
18245
18246 rm -f "$ac_tmp/stdin"
18247 case $ac_file in
18248 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18249 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18250 esac \
18251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18252 ;;
18253 :H)
18254 #
18255 # CONFIG_HEADER
18256 #
18257 if test x"$ac_file" != x-; then
18258 {
18259 printf "%s\n" "/* $configure_input */" >&1 \
18260 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18261 } >"$ac_tmp/config.h" \
18262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18263 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18265 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18266 else
18267 rm -f "$ac_file"
18268 mv "$ac_tmp/config.h" "$ac_file" \
18269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18270 fi
18271 else
18272 printf "%s\n" "/* $configure_input */" >&1 \
18273 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18274 || as_fn_error $? "could not create -" "$LINENO" 5
18275 fi
18276 # Compute "$ac_file"'s index in $config_headers.
18277 _am_arg="$ac_file"
18278 _am_stamp_count=1
18279 for _am_header in $config_headers :; do
18280 case $_am_header in
18281 $_am_arg | $_am_arg:* )
18282 break ;;
18283 * )
18284 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18285 esac
18286 done
18287 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18288 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18289 X"$_am_arg" : 'X\(//\)[^/]' \| \
18290 X"$_am_arg" : 'X\(//\)$' \| \
18291 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18292 printf "%s\n" X"$_am_arg" |
18293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18294 s//\1/
18295 q
18296 }
18297 /^X\(\/\/\)[^/].*/{
18298 s//\1/
18299 q
18300 }
18301 /^X\(\/\/\)$/{
18302 s//\1/
18303 q
18304 }
18305 /^X\(\/\).*/{
18306 s//\1/
18307 q
18308 }
18309 s/.*/./; q'`/stamp-h$_am_stamp_count
18310 ;;
18311
18312 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18313 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18314 ;;
18315 esac
18316
18317
18318 case $ac_file$ac_mode in
18319 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18320 # Older Autoconf quotes --file arguments for eval, but not when files
18321 # are listed without --file. Let's play safe and only enable the eval
18322 # if we detect the quoting.
18323 # TODO: see whether this extra hack can be removed once we start
18324 # requiring Autoconf 2.70 or later.
18325 case $CONFIG_FILES in #(
18326 *\'*) :
18327 eval set x "$CONFIG_FILES" ;; #(
18328 *) :
18329 set x $CONFIG_FILES ;; #(
18330 *) :
18331 ;;
18332 esac
18333 shift
18334 # Used to flag and report bootstrapping failures.
18335 am_rc=0
18336 for am_mf
18337 do
18338 # Strip MF so we end up with the name of the file.
18339 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18340 # Check whether this is an Automake generated Makefile which includes
18341 # dependency-tracking related rules and includes.
18342 # Grep'ing the whole file directly is not great: AIX grep has a line
18343 # limit of 2048, but all sed's we know have understand at least 4000.
18344 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18345 || continue
18346 am_dirpart=`$as_dirname -- "$am_mf" ||
18347 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18348 X"$am_mf" : 'X\(//\)[^/]' \| \
18349 X"$am_mf" : 'X\(//\)$' \| \
18350 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18351 printf "%s\n" X"$am_mf" |
18352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18353 s//\1/
18354 q
18355 }
18356 /^X\(\/\/\)[^/].*/{
18357 s//\1/
18358 q
18359 }
18360 /^X\(\/\/\)$/{
18361 s//\1/
18362 q
18363 }
18364 /^X\(\/\).*/{
18365 s//\1/
18366 q
18367 }
18368 s/.*/./; q'`
18369 am_filepart=`$as_basename -- "$am_mf" ||
18370 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18371 X"$am_mf" : 'X\(//\)$' \| \
18372 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18373 printf "%s\n" X/"$am_mf" |
18374 sed '/^.*\/\([^/][^/]*\)\/*$/{
18375 s//\1/
18376 q
18377 }
18378 /^X\/\(\/\/\)$/{
18379 s//\1/
18380 q
18381 }
18382 /^X\/\(\/\).*/{
18383 s//\1/
18384 q
18385 }
18386 s/.*/./; q'`
18387 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18388 && sed -e '/# am--include-marker/d' "$am_filepart" \
18389 | $MAKE -f - am--depfiles" >&5
18390 (cd "$am_dirpart" \
18391 && sed -e '/# am--include-marker/d' "$am_filepart" \
18392 | $MAKE -f - am--depfiles) >&5 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } || am_rc=$?
18396 done
18397 if test $am_rc -ne 0; then
18398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18399 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18400 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18401 for automatic dependency tracking. If GNU make was not used, consider
18402 re-running the configure script with MAKE=\"gmake\" (or whatever is
18403 necessary). You can also try re-running configure with the
18404 '--disable-dependency-tracking' option to at least be able to build
18405 the package (albeit without support for automatic dependency tracking).
18406 See \`config.log' for more details" "$LINENO" 5; }
18407 fi
18408 { am_dirpart=; unset am_dirpart;}
18409 { am_filepart=; unset am_filepart;}
18410 { am_mf=; unset am_mf;}
18411 { am_rc=; unset am_rc;}
18412 rm -f conftest-deps.mk
18413 }
18414 ;;
18415 "libtool":C)
18416
18417 # See if we are running on zsh, and set the options that allow our
18418 # commands through without removal of \ escapes.
18419 if test -n "${ZSH_VERSION+set}"; then
18420 setopt NO_GLOB_SUBST
18421 fi
18422
18423 cfgfile=${ofile}T
18424 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18425 $RM "$cfgfile"
18426
18427 cat <<_LT_EOF >> "$cfgfile"
18428 #! $SHELL
18429 # Generated automatically by $as_me ($PACKAGE) $VERSION
18430 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18431
18432 # Provide generalized library-building support services.
18433 # Written by Gordon Matzigkeit, 1996
18434
18435 # Copyright (C) 2014 Free Software Foundation, Inc.
18436 # This is free software; see the source for copying conditions. There is NO
18437 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18438
18439 # GNU Libtool is free software; you can redistribute it and/or modify
18440 # it under the terms of the GNU General Public License as published by
18441 # the Free Software Foundation; either version 2 of of the License, or
18442 # (at your option) any later version.
18443 #
18444 # As a special exception to the GNU General Public License, if you
18445 # distribute this file as part of a program or library that is built
18446 # using GNU Libtool, you may include this file under the same
18447 # distribution terms that you use for the rest of that program.
18448 #
18449 # GNU Libtool is distributed in the hope that it will be useful, but
18450 # WITHOUT ANY WARRANTY; without even the implied warranty of
18451 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18452 # GNU General Public License for more details.
18453 #
18454 # You should have received a copy of the GNU General Public License
18455 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18456
18457
18458 # The names of the tagged configurations supported by this script.
18459 available_tags='RC '
18460
18461 # Configured defaults for sys_lib_dlsearch_path munging.
18462 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18463
18464 # ### BEGIN LIBTOOL CONFIG
18465
18466 # Which release of libtool.m4 was used?
18467 macro_version=$macro_version
18468 macro_revision=$macro_revision
18469
18470 # Assembler program.
18471 AS=$lt_AS
18472
18473 # DLL creation program.
18474 DLLTOOL=$lt_DLLTOOL
18475
18476 # Object dumper program.
18477 OBJDUMP=$lt_OBJDUMP
18478
18479 # Whether or not to build static libraries.
18480 build_old_libs=$enable_static
18481
18482 # Whether or not to build shared libraries.
18483 build_libtool_libs=$enable_shared
18484
18485 # What type of objects to build.
18486 pic_mode=$pic_mode
18487
18488 # Whether or not to optimize for fast installation.
18489 fast_install=$enable_fast_install
18490
18491 # Shared archive member basename,for filename based shared library versioning on AIX.
18492 shared_archive_member_spec=$shared_archive_member_spec
18493
18494 # Shell to use when invoking shell scripts.
18495 SHELL=$lt_SHELL
18496
18497 # An echo program that protects backslashes.
18498 ECHO=$lt_ECHO
18499
18500 # The PATH separator for the build system.
18501 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18502
18503 # The host system.
18504 host_alias=$host_alias
18505 host=$host
18506 host_os=$host_os
18507
18508 # The build system.
18509 build_alias=$build_alias
18510 build=$build
18511 build_os=$build_os
18512
18513 # A sed program that does not truncate output.
18514 SED=$lt_SED
18515
18516 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18517 Xsed="\$SED -e 1s/^X//"
18518
18519 # A grep program that handles long lines.
18520 GREP=$lt_GREP
18521
18522 # An ERE matcher.
18523 EGREP=$lt_EGREP
18524
18525 # A literal string matcher.
18526 FGREP=$lt_FGREP
18527
18528 # A BSD- or MS-compatible name lister.
18529 NM=$lt_NM
18530
18531 # Whether we need soft or hard links.
18532 LN_S=$lt_LN_S
18533
18534 # What is the maximum length of a command?
18535 max_cmd_len=$max_cmd_len
18536
18537 # Object file suffix (normally "o").
18538 objext=$ac_objext
18539
18540 # Executable file suffix (normally "").
18541 exeext=$exeext
18542
18543 # whether the shell understands "unset".
18544 lt_unset=$lt_unset
18545
18546 # turn spaces into newlines.
18547 SP2NL=$lt_lt_SP2NL
18548
18549 # turn newlines into spaces.
18550 NL2SP=$lt_lt_NL2SP
18551
18552 # convert \$build file names to \$host format.
18553 to_host_file_cmd=$lt_cv_to_host_file_cmd
18554
18555 # convert \$build files to toolchain format.
18556 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18557
18558 # A file(cmd) program that detects file types.
18559 FILECMD=$lt_FILECMD
18560
18561 # Method to check whether dependent libraries are shared objects.
18562 deplibs_check_method=$lt_deplibs_check_method
18563
18564 # Command to use when deplibs_check_method = "file_magic".
18565 file_magic_cmd=$lt_file_magic_cmd
18566
18567 # How to find potential files when deplibs_check_method = "file_magic".
18568 file_magic_glob=$lt_file_magic_glob
18569
18570 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18571 want_nocaseglob=$lt_want_nocaseglob
18572
18573 # Command to associate shared and link libraries.
18574 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18575
18576 # The archiver.
18577 AR=$lt_AR
18578
18579 # Flags to create an archive (by configure).
18580 lt_ar_flags=$lt_ar_flags
18581
18582 # Flags to create an archive.
18583 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18584
18585 # How to feed a file listing to the archiver.
18586 archiver_list_spec=$lt_archiver_list_spec
18587
18588 # A symbol stripping program.
18589 STRIP=$lt_STRIP
18590
18591 # Commands used to install an old-style archive.
18592 RANLIB=$lt_RANLIB
18593 old_postinstall_cmds=$lt_old_postinstall_cmds
18594 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18595
18596 # Whether to use a lock for old archive extraction.
18597 lock_old_archive_extraction=$lock_old_archive_extraction
18598
18599 # A C compiler.
18600 LTCC=$lt_CC
18601
18602 # LTCC compiler flags.
18603 LTCFLAGS=$lt_CFLAGS
18604
18605 # Take the output of nm and produce a listing of raw symbols and C names.
18606 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18607
18608 # Transform the output of nm in a proper C declaration.
18609 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18610
18611 # Transform the output of nm into a list of symbols to manually relocate.
18612 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18613
18614 # Transform the output of nm in a C name address pair.
18615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18616
18617 # Transform the output of nm in a C name address pair when lib prefix is needed.
18618 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18619
18620 # The name lister interface.
18621 nm_interface=$lt_lt_cv_nm_interface
18622
18623 # Specify filename containing input files for \$NM.
18624 nm_file_list_spec=$lt_nm_file_list_spec
18625
18626 # The root where to search for dependent libraries,and where our libraries should be installed.
18627 lt_sysroot=$lt_sysroot
18628
18629 # Command to truncate a binary pipe.
18630 lt_truncate_bin=$lt_lt_cv_truncate_bin
18631
18632 # The name of the directory that contains temporary libtool files.
18633 objdir=$objdir
18634
18635 # Used to examine libraries when file_magic_cmd begins with "file".
18636 MAGIC_CMD=$MAGIC_CMD
18637
18638 # Must we lock files when doing compilation?
18639 need_locks=$lt_need_locks
18640
18641 # Manifest tool.
18642 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18643
18644 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18645 DSYMUTIL=$lt_DSYMUTIL
18646
18647 # Tool to change global to local symbols on Mac OS X.
18648 NMEDIT=$lt_NMEDIT
18649
18650 # Tool to manipulate fat objects and archives on Mac OS X.
18651 LIPO=$lt_LIPO
18652
18653 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18654 OTOOL=$lt_OTOOL
18655
18656 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18657 OTOOL64=$lt_OTOOL64
18658
18659 # Old archive suffix (normally "a").
18660 libext=$libext
18661
18662 # Shared library suffix (normally ".so").
18663 shrext_cmds=$lt_shrext_cmds
18664
18665 # The commands to extract the exported symbol list from a shared archive.
18666 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18667
18668 # Variables whose values should be saved in libtool wrapper scripts and
18669 # restored at link time.
18670 variables_saved_for_relink=$lt_variables_saved_for_relink
18671
18672 # Do we need the "lib" prefix for modules?
18673 need_lib_prefix=$need_lib_prefix
18674
18675 # Do we need a version for libraries?
18676 need_version=$need_version
18677
18678 # Library versioning type.
18679 version_type=$version_type
18680
18681 # Shared library runtime path variable.
18682 runpath_var=$runpath_var
18683
18684 # Shared library path variable.
18685 shlibpath_var=$shlibpath_var
18686
18687 # Is shlibpath searched before the hard-coded library search path?
18688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18689
18690 # Format of library name prefix.
18691 libname_spec=$lt_libname_spec
18692
18693 # List of archive names. First name is the real one, the rest are links.
18694 # The last name is the one that the linker finds with -lNAME
18695 library_names_spec=$lt_library_names_spec
18696
18697 # The coded name of the library, if different from the real name.
18698 soname_spec=$lt_soname_spec
18699
18700 # Permission mode override for installation of shared libraries.
18701 install_override_mode=$lt_install_override_mode
18702
18703 # Command to use after installation of a shared archive.
18704 postinstall_cmds=$lt_postinstall_cmds
18705
18706 # Command to use after uninstallation of a shared archive.
18707 postuninstall_cmds=$lt_postuninstall_cmds
18708
18709 # Commands used to finish a libtool library installation in a directory.
18710 finish_cmds=$lt_finish_cmds
18711
18712 # As "finish_cmds", except a single script fragment to be evaled but
18713 # not shown.
18714 finish_eval=$lt_finish_eval
18715
18716 # Whether we should hardcode library paths into libraries.
18717 hardcode_into_libs=$hardcode_into_libs
18718
18719 # Compile-time system search path for libraries.
18720 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18721
18722 # Detected run-time system search path for libraries.
18723 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18724
18725 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18726 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18727
18728 # Whether dlopen is supported.
18729 dlopen_support=$enable_dlopen
18730
18731 # Whether dlopen of programs is supported.
18732 dlopen_self=$enable_dlopen_self
18733
18734 # Whether dlopen of statically linked programs is supported.
18735 dlopen_self_static=$enable_dlopen_self_static
18736
18737 # Commands to strip libraries.
18738 old_striplib=$lt_old_striplib
18739 striplib=$lt_striplib
18740
18741
18742 # The linker used to build libraries.
18743 LD=$lt_LD
18744
18745 # How to create reloadable object files.
18746 reload_flag=$lt_reload_flag
18747 reload_cmds=$lt_reload_cmds
18748
18749 # Commands used to build an old-style archive.
18750 old_archive_cmds=$lt_old_archive_cmds
18751
18752 # A language specific compiler.
18753 CC=$lt_compiler
18754
18755 # Is the compiler the GNU compiler?
18756 with_gcc=$GCC
18757
18758 # Compiler flag to turn off builtin functions.
18759 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18760
18761 # Additional compiler flags for building library objects.
18762 pic_flag=$lt_lt_prog_compiler_pic
18763
18764 # How to pass a linker flag through the compiler.
18765 wl=$lt_lt_prog_compiler_wl
18766
18767 # Compiler flag to prevent dynamic linking.
18768 link_static_flag=$lt_lt_prog_compiler_static
18769
18770 # Does compiler simultaneously support -c and -o options?
18771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18772
18773 # Whether or not to add -lc for building shared libraries.
18774 build_libtool_need_lc=$archive_cmds_need_lc
18775
18776 # Whether or not to disallow shared libs when runtime libs are static.
18777 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18778
18779 # Compiler flag to allow reflexive dlopens.
18780 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18781
18782 # Compiler flag to generate shared objects directly from archives.
18783 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18784
18785 # Whether the compiler copes with passing no objects directly.
18786 compiler_needs_object=$lt_compiler_needs_object
18787
18788 # Create an old-style archive from a shared archive.
18789 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18790
18791 # Create a temporary old-style archive to link instead of a shared archive.
18792 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18793
18794 # Commands used to build a shared archive.
18795 archive_cmds=$lt_archive_cmds
18796 archive_expsym_cmds=$lt_archive_expsym_cmds
18797
18798 # Commands used to build a loadable module if different from building
18799 # a shared archive.
18800 module_cmds=$lt_module_cmds
18801 module_expsym_cmds=$lt_module_expsym_cmds
18802
18803 # Whether we are building with GNU ld or not.
18804 with_gnu_ld=$lt_with_gnu_ld
18805
18806 # Flag that allows shared libraries with undefined symbols to be built.
18807 allow_undefined_flag=$lt_allow_undefined_flag
18808
18809 # Flag that enforces no undefined symbols.
18810 no_undefined_flag=$lt_no_undefined_flag
18811
18812 # Flag to hardcode \$libdir into a binary during linking.
18813 # This must work even if \$libdir does not exist
18814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18815
18816 # Whether we need a single "-rpath" flag with a separated argument.
18817 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18818
18819 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18820 # DIR into the resulting binary.
18821 hardcode_direct=$hardcode_direct
18822
18823 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18824 # DIR into the resulting binary and the resulting library dependency is
18825 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18826 # library is relocated.
18827 hardcode_direct_absolute=$hardcode_direct_absolute
18828
18829 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18830 # into the resulting binary.
18831 hardcode_minus_L=$hardcode_minus_L
18832
18833 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18834 # into the resulting binary.
18835 hardcode_shlibpath_var=$hardcode_shlibpath_var
18836
18837 # Set to "yes" if building a shared library automatically hardcodes DIR
18838 # into the library and all subsequent libraries and executables linked
18839 # against it.
18840 hardcode_automatic=$hardcode_automatic
18841
18842 # Set to yes if linker adds runtime paths of dependent libraries
18843 # to runtime path list.
18844 inherit_rpath=$inherit_rpath
18845
18846 # Whether libtool must link a program against all its dependency libraries.
18847 link_all_deplibs=$link_all_deplibs
18848
18849 # Set to "yes" if exported symbols are required.
18850 always_export_symbols=$always_export_symbols
18851
18852 # The commands to list exported symbols.
18853 export_symbols_cmds=$lt_export_symbols_cmds
18854
18855 # Symbols that should not be listed in the preloaded symbols.
18856 exclude_expsyms=$lt_exclude_expsyms
18857
18858 # Symbols that must always be exported.
18859 include_expsyms=$lt_include_expsyms
18860
18861 # Commands necessary for linking programs (against libraries) with templates.
18862 prelink_cmds=$lt_prelink_cmds
18863
18864 # Commands necessary for finishing linking programs.
18865 postlink_cmds=$lt_postlink_cmds
18866
18867 # Specify filename containing input files.
18868 file_list_spec=$lt_file_list_spec
18869
18870 # How to hardcode a shared library path into an executable.
18871 hardcode_action=$hardcode_action
18872
18873 # ### END LIBTOOL CONFIG
18874
18875 _LT_EOF
18876
18877 cat <<'_LT_EOF' >> "$cfgfile"
18878
18879 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18880
18881 # func_munge_path_list VARIABLE PATH
18882 # -----------------------------------
18883 # VARIABLE is name of variable containing _space_ separated list of
18884 # directories to be munged by the contents of PATH, which is string
18885 # having a format:
18886 # "DIR[:DIR]:"
18887 # string "DIR[ DIR]" will be prepended to VARIABLE
18888 # ":DIR[:DIR]"
18889 # string "DIR[ DIR]" will be appended to VARIABLE
18890 # "DIRP[:DIRP]::[DIRA:]DIRA"
18891 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18892 # "DIRA[ DIRA]" will be appended to VARIABLE
18893 # "DIR[:DIR]"
18894 # VARIABLE will be replaced by "DIR[ DIR]"
18895 func_munge_path_list ()
18896 {
18897 case x$2 in
18898 x)
18899 ;;
18900 *:)
18901 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18902 ;;
18903 x:*)
18904 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18905 ;;
18906 *::*)
18907 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18908 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18909 ;;
18910 *)
18911 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18912 ;;
18913 esac
18914 }
18915
18916
18917 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18918 func_cc_basename ()
18919 {
18920 for cc_temp in $*""; do
18921 case $cc_temp in
18922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18924 \-*) ;;
18925 *) break;;
18926 esac
18927 done
18928 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18929 }
18930
18931
18932 # ### END FUNCTIONS SHARED WITH CONFIGURE
18933
18934 _LT_EOF
18935
18936 case $host_os in
18937 aix3*)
18938 cat <<\_LT_EOF >> "$cfgfile"
18939 # AIX sometimes has problems with the GCC collect2 program. For some
18940 # reason, if we set the COLLECT_NAMES environment variable, the problems
18941 # vanish in a puff of smoke.
18942 if test set != "${COLLECT_NAMES+set}"; then
18943 COLLECT_NAMES=
18944 export COLLECT_NAMES
18945 fi
18946 _LT_EOF
18947 ;;
18948 esac
18949
18950
18951
18952 ltmain=$ac_aux_dir/ltmain.sh
18953
18954
18955 # We use sed instead of cat because bash on DJGPP gets confused if
18956 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18957 # text mode, it properly converts lines to CR/LF. This bash problem
18958 # is reportedly fixed, but why not run on old versions too?
18959 $SED '$q' "$ltmain" >> "$cfgfile" \
18960 || (rm -f "$cfgfile"; exit 1)
18961
18962 mv -f "$cfgfile" "$ofile" ||
18963 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18964 chmod +x "$ofile"
18965
18966
18967 cat <<_LT_EOF >> "$ofile"
18968
18969 # ### BEGIN LIBTOOL TAG CONFIG: RC
18970
18971 # The linker used to build libraries.
18972 LD=$lt_LD_RC
18973
18974 # How to create reloadable object files.
18975 reload_flag=$lt_reload_flag_RC
18976 reload_cmds=$lt_reload_cmds_RC
18977
18978 # Commands used to build an old-style archive.
18979 old_archive_cmds=$lt_old_archive_cmds_RC
18980
18981 # A language specific compiler.
18982 CC=$lt_compiler_RC
18983
18984 # Is the compiler the GNU compiler?
18985 with_gcc=$GCC_RC
18986
18987 # Compiler flag to turn off builtin functions.
18988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18989
18990 # Additional compiler flags for building library objects.
18991 pic_flag=$lt_lt_prog_compiler_pic_RC
18992
18993 # How to pass a linker flag through the compiler.
18994 wl=$lt_lt_prog_compiler_wl_RC
18995
18996 # Compiler flag to prevent dynamic linking.
18997 link_static_flag=$lt_lt_prog_compiler_static_RC
18998
18999 # Does compiler simultaneously support -c and -o options?
19000 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19001
19002 # Whether or not to add -lc for building shared libraries.
19003 build_libtool_need_lc=$archive_cmds_need_lc_RC
19004
19005 # Whether or not to disallow shared libs when runtime libs are static.
19006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19007
19008 # Compiler flag to allow reflexive dlopens.
19009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19010
19011 # Compiler flag to generate shared objects directly from archives.
19012 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19013
19014 # Whether the compiler copes with passing no objects directly.
19015 compiler_needs_object=$lt_compiler_needs_object_RC
19016
19017 # Create an old-style archive from a shared archive.
19018 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19019
19020 # Create a temporary old-style archive to link instead of a shared archive.
19021 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19022
19023 # Commands used to build a shared archive.
19024 archive_cmds=$lt_archive_cmds_RC
19025 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19026
19027 # Commands used to build a loadable module if different from building
19028 # a shared archive.
19029 module_cmds=$lt_module_cmds_RC
19030 module_expsym_cmds=$lt_module_expsym_cmds_RC
19031
19032 # Whether we are building with GNU ld or not.
19033 with_gnu_ld=$lt_with_gnu_ld_RC
19034
19035 # Flag that allows shared libraries with undefined symbols to be built.
19036 allow_undefined_flag=$lt_allow_undefined_flag_RC
19037
19038 # Flag that enforces no undefined symbols.
19039 no_undefined_flag=$lt_no_undefined_flag_RC
19040
19041 # Flag to hardcode \$libdir into a binary during linking.
19042 # This must work even if \$libdir does not exist
19043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19044
19045 # Whether we need a single "-rpath" flag with a separated argument.
19046 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19047
19048 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19049 # DIR into the resulting binary.
19050 hardcode_direct=$hardcode_direct_RC
19051
19052 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19053 # DIR into the resulting binary and the resulting library dependency is
19054 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19055 # library is relocated.
19056 hardcode_direct_absolute=$hardcode_direct_absolute_RC
19057
19058 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19059 # into the resulting binary.
19060 hardcode_minus_L=$hardcode_minus_L_RC
19061
19062 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19063 # into the resulting binary.
19064 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19065
19066 # Set to "yes" if building a shared library automatically hardcodes DIR
19067 # into the library and all subsequent libraries and executables linked
19068 # against it.
19069 hardcode_automatic=$hardcode_automatic_RC
19070
19071 # Set to yes if linker adds runtime paths of dependent libraries
19072 # to runtime path list.
19073 inherit_rpath=$inherit_rpath_RC
19074
19075 # Whether libtool must link a program against all its dependency libraries.
19076 link_all_deplibs=$link_all_deplibs_RC
19077
19078 # Set to "yes" if exported symbols are required.
19079 always_export_symbols=$always_export_symbols_RC
19080
19081 # The commands to list exported symbols.
19082 export_symbols_cmds=$lt_export_symbols_cmds_RC
19083
19084 # Symbols that should not be listed in the preloaded symbols.
19085 exclude_expsyms=$lt_exclude_expsyms_RC
19086
19087 # Symbols that must always be exported.
19088 include_expsyms=$lt_include_expsyms_RC
19089
19090 # Commands necessary for linking programs (against libraries) with templates.
19091 prelink_cmds=$lt_prelink_cmds_RC
19092
19093 # Commands necessary for finishing linking programs.
19094 postlink_cmds=$lt_postlink_cmds_RC
19095
19096 # Specify filename containing input files.
19097 file_list_spec=$lt_file_list_spec_RC
19098
19099 # How to hardcode a shared library path into an executable.
19100 hardcode_action=$hardcode_action_RC
19101
19102 # ### END LIBTOOL TAG CONFIG: RC
19103 _LT_EOF
19104
19105 ;;
19106 "libtool-patch":C)
19107 if test "$build_selection" = never; then
19108 echo "patch not applied"
19109 elif (mv -f libtool libtool.orig; \
19110 sed -f $srcdir/build-aux/libtool-patch.sed libtool.orig >libtool); then
19111 echo "applied successfully"
19112 elif test "$build_selection" = try; then
19113 mv -f libtool.orig libtool
19114 echo "patch failed, thus, using original"
19115 else
19116 echo "patch failed"
19117 as_fn_exit 1
19118 fi
19119 ;;
19120
19121 esac
19122 done # for ac_tag
19123
19124
19125 as_fn_exit 0
19126 _ACEOF
19127 ac_clean_files=$ac_clean_files_save
19128
19129 test $ac_write_fail = 0 ||
19130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19131
19132
19133 # configure is writing to config.log, and then calls config.status.
19134 # config.status does its own redirection, appending to config.log.
19135 # Unfortunately, on DOS this fails, as config.log is still kept open
19136 # by configure, so config.status won't be able to write to it; its
19137 # output is simply discarded. So we exec the FD to /dev/null,
19138 # effectively closing config.log, so it can be properly (re)opened and
19139 # appended to by config.status. When coming back to configure, we
19140 # need to make the FD available again.
19141 if test "$no_create" != yes; then
19142 ac_cs_success=:
19143 ac_config_status_args=
19144 test "$silent" = yes &&
19145 ac_config_status_args="$ac_config_status_args --quiet"
19146 exec 5>/dev/null
19147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19148 exec 5>>config.log
19149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19150 # would make configure fail if this is the last instruction.
19151 $ac_cs_success || as_fn_exit 1
19152 fi
19153 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19155 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19156 fi
19157
19158
19159 if test x"$have_bison" = xno; then
19160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
19161 ***
19162 *** Note: The installed yacc version is not GNU Bison. You need
19163 *** to install Bison if you want to change any grammar (.y) file.
19164 ***" >&5
19165 printf "%s\n" "$as_me:
19166 ***
19167 *** Note: The installed yacc version is not GNU Bison. You need
19168 *** to install Bison if you want to change any grammar (.y) file.
19169 ***" >&6;}
19170 fi
19171
19172 echo "
19173 Libksba v${VERSION} has been configured as follows:
19174
19175 Revision: 476c602 (18284)
19176 Platform: $host
19177
19178 "
19179