Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libssh2 -.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system,
283 $0: including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='libssh2'
616 PACKAGE_TARNAME='libssh2'
617 PACKAGE_VERSION='-'
618 PACKAGE_STRING='libssh2 -'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="src"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 LIBSSH2_PC_LIBS
661 LIBSSH2_PC_REQUIRES
662 LIBSSH2_PC_LIBS_PRIVATE
663 HAVE_LIB_STATIC_FALSE
664 HAVE_LIB_STATIC_TRUE
665 HAVE_WINDRES_FALSE
666 HAVE_WINDRES_TRUE
667 ALLOCA
668 USE_OSSFUZZ_STATIC_FALSE
669 USE_OSSFUZZ_STATIC_TRUE
670 USE_OSSFUZZ_FLAG_FALSE
671 USE_OSSFUZZ_FLAG_TRUE
672 LIB_FUZZING_ENGINE
673 USE_OSSFUZZERS_FALSE
674 USE_OSSFUZZERS_TRUE
675 BUILD_EXAMPLES_FALSE
676 BUILD_EXAMPLES_TRUE
677 RUN_SSHD_TESTS_FALSE
678 RUN_SSHD_TESTS_TRUE
679 RUN_DOCKER_TESTS_FALSE
680 RUN_DOCKER_TESTS_TRUE
681 LIBSSH2_CFLAG_EXTRAS
682 CPP
683 LIBSSH2_PC_REQUIRES_PRIVATE
684 LIBZ_PREFIX
685 LTLIBZ
686 LIBZ
687 HAVE_LIBZ
688 LIBWOLFSSL_PREFIX
689 LTLIBWOLFSSL
690 LIBWOLFSSL
691 HAVE_LIBWOLFSSL
692 LIBBCRYPT_PREFIX
693 LTLIBBCRYPT
694 LIBBCRYPT
695 HAVE_LIBBCRYPT
696 LIBMBEDCRYPTO_PREFIX
697 LTLIBMBEDCRYPTO
698 LIBMBEDCRYPTO
699 HAVE_LIBMBEDCRYPTO
700 LIBGCRYPT_PREFIX
701 LTLIBGCRYPT
702 LIBGCRYPT
703 HAVE_LIBGCRYPT
704 LIBSSL_PREFIX
705 LTLIBSSL
706 LIBSSL
707 HAVE_LIBSSL
708 RC
709 CXXCPP
710 LT_SYS_LIBRARY_PATH
711 OTOOL64
712 OTOOL
713 LIPO
714 NMEDIT
715 DSYMUTIL
716 MANIFEST_TOOL
717 RANLIB
718 ac_ct_AR
719 AR
720 FILECMD
721 NM
722 ac_ct_DUMPBIN
723 DUMPBIN
724 LD
725 FGREP
726 EGREP
727 GREP
728 LIBTOOL
729 OBJDUMP
730 DLLTOOL
731 AS
732 SSHD_FALSE
733 SSHD_TRUE
734 SSHD
735 LN_S
736 am__fastdepCXX_FALSE
737 am__fastdepCXX_TRUE
738 CXXDEPMODE
739 ac_ct_CXX
740 CXXFLAGS
741 CXX
742 am__fastdepCC_FALSE
743 am__fastdepCC_TRUE
744 CCDEPMODE
745 am__nodep
746 AMDEPBACKSLASH
747 AMDEP_FALSE
748 AMDEP_TRUE
749 am__include
750 DEPDIR
751 OBJEXT
752 EXEEXT
753 ac_ct_CC
754 CPPFLAGS
755 LDFLAGS
756 CFLAGS
757 CC
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 LIBSSH2_VERSION
767 CSCOPE
768 ETAGS
769 CTAGS
770 am__untar
771 am__tar
772 AMTAR
773 am__leading_dot
774 SET_MAKE
775 AWK
776 mkdir_p
777 MKDIR_P
778 INSTALL_STRIP_PROGRAM
779 STRIP
780 install_sh
781 MAKEINFO
782 AUTOHEADER
783 AUTOMAKE
784 AUTOCONF
785 ACLOCAL
786 VERSION
787 PACKAGE
788 CYGPATH_W
789 am__isrc
790 INSTALL_DATA
791 INSTALL_SCRIPT
792 INSTALL_PROGRAM
793 SED
794 AM_BACKSLASH
795 AM_DEFAULT_VERBOSITY
796 AM_DEFAULT_V
797 AM_V
798 MAINT
799 MAINTAINER_MODE_FALSE
800 MAINTAINER_MODE_TRUE
801 target_alias
802 host_alias
803 build_alias
804 LIBS
805 ECHO_T
806 ECHO_N
807 ECHO_C
808 DEFS
809 mandir
810 localedir
811 libdir
812 psdir
813 pdfdir
814 dvidir
815 htmldir
816 infodir
817 docdir
818 oldincludedir
819 includedir
820 runstatedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL
840 am__quote'
841 ac_subst_files=''
842 ac_user_opts='
843 enable_option_checking
844 enable_maintainer_mode
845 enable_silent_rules
846 enable_dependency_tracking
847 enable_shared
848 enable_static
849 with_pic
850 enable_fast_install
851 with_aix_soname
852 with_gnu_ld
853 with_sysroot
854 enable_libtool_lock
855 enable_largefile
856 with_crypto
857 enable_rpath
858 with_libssl_prefix
859 with_libgcrypt_prefix
860 with_libmbedcrypto_prefix
861 with_libbcrypt_prefix
862 with_libwolfssl_prefix
863 enable_ecdsa_wincng
864 with_libz
865 with_libz_prefix
866 enable_clear_memory
867 enable_werror
868 enable_debug
869 enable_hidden_symbols
870 enable_deprecated
871 enable_docker_tests
872 enable_sshd_tests
873 enable_examples_build
874 enable_ossfuzzers
875 enable_year2038
876 '
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CXX
886 CXXFLAGS
887 CCC
888 LT_SYS_LIBRARY_PATH
889 CXXCPP
890 CPP'
891
892
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 ac_unrecognized_opts=
897 ac_unrecognized_sep=
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
900 cache_file=/dev/null
901 exec_prefix=NONE
902 no_create=
903 no_recursion=
904 prefix=NONE
905 program_prefix=NONE
906 program_suffix=NONE
907 program_transform_name=s,x,x,
908 silent=
909 site=
910 srcdir=
911 verbose=
912 x_includes=NONE
913 x_libraries=NONE
914
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 runstatedir='${localstatedir}/run'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *=) ac_optarg= ;;
956 *) ac_optarg=yes ;;
957 esac
958
959 case $ac_dashdash$ac_option in
960 --)
961 ac_dashdash=yes ;;
962
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
967
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
972
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
979
980 --config-cache | -C)
981 cache_file=config.cache ;;
982
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
987
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
994
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: '$ac_useropt'"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1020
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: '$ac_useropt'"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1045
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1049
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1056
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1061
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1067
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1074
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1079
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1084
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1091
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1096
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1103
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1108
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1112
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1116
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1120
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1129
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1134
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1141
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1148
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1165
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1170
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1175
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1179
1180 -runstatedir | --runstatedir | --runstatedi | --runstated \
1181 | --runstate | --runstat | --runsta | --runst | --runs \
1182 | --run | --ru | --r)
1183 ac_prev=runstatedir ;;
1184 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1185 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1186 | --run=* | --ru=* | --r=*)
1187 runstatedir=$ac_optarg ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: '$ac_useropt'"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1249
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: '$ac_useropt'"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1283
1284 -*) as_fn_error $? "unrecognized option: '$ac_option'
1285 Try '$0 --help' for more information"
1286 ;;
1287
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1297
1298 *)
1299 # FIXME: should be removed in autoconf 3.0.
1300 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304 ;;
1305
1306 esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1312 fi
1313
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320 fi
1321
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir runstatedir
1327 do
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1342
1343 # There might be people who depend on the old broken behavior: '$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 printf "%s\n" X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1403 fi
1404 else
1405 ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1431
1432 #
1433 # Report the --help message.
1434 #
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 'configure' configures libssh2 - to adapt to many kinds of systems.
1440
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446 Defaults for the options are specified in brackets.
1447
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print 'checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for '--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or '..']
1458
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1464
1465 By default, 'make install' will install all the files in
1466 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than '$ac_default_prefix' using '--prefix',
1468 for instance '--prefix=\$HOME'.
1469
1470 For better control, use the options below.
1471
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/libssh2]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1493 _ACEOF
1494
1495 cat <<\_ACEOF
1496
1497 Program names:
1498 --program-prefix=PREFIX prepend PREFIX to installed program names
1499 --program-suffix=SUFFIX append SUFFIX to installed program names
1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501
1502 System types:
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 _ACEOF
1506 fi
1507
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of libssh2 -:";;
1511 esac
1512 cat <<\_ACEOF
1513
1514 Optional Features:
1515 --disable-option-checking ignore unrecognized --enable/--with options
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518 --enable-maintainer-mode
1519 enable make rules and dependencies not useful (and
1520 sometimes confusing) to the casual installer
1521 --enable-silent-rules less verbose build output (undo: "make V=1")
1522 --disable-silent-rules verbose build output (undo: "make V=0")
1523 --enable-dependency-tracking
1524 do not reject slow dependency extractors
1525 --disable-dependency-tracking
1526 speeds up one-time build
1527 --enable-shared[=PKGS] build shared libraries [default=yes]
1528 --enable-static[=PKGS] build static libraries [default=yes]
1529 --enable-fast-install[=PKGS]
1530 optimize for fast installation [default=yes]
1531 --disable-libtool-lock avoid locking (might break parallel builds)
1532 --disable-largefile omit support for large files
1533 --disable-rpath do not hardcode runtime library paths
1534 --enable-ecdsa-wincng WinCNG ECDSA support (requires Windows 10 or later)
1535 --disable-clear-memory Disable clearing of memory before being freed
1536 --enable-werror Enable compiler warnings as errors
1537 --disable-werror Disable compiler warnings as errors
1538 --enable-debug Enable pedantic and debug options
1539 --disable-debug Disable debug options
1540 --enable-hidden-symbols Hide internal symbols in library
1541 --disable-hidden-symbols
1542 Leave all symbols with default visibility in library
1543 (default)
1544 --disable-deprecated Build without deprecated APIs [default=no]
1545 --disable-docker-tests Do not run tests requiring Docker
1546 --disable-sshd-tests Do not run tests requiring sshd
1547 --enable-examples-build Build example applications (this is the default)
1548 --disable-examples-build
1549 Do not build example applications
1550 --enable-ossfuzzers Whether to generate the fuzzers for OSS-Fuzz
1551 --enable-year2038 support timestamps after 2038
1552
1553 Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1557 both]
1558 --with-aix-soname=aix|svr4|both
1559 shared library versioning (aka "SONAME") variant to
1560 provide on AIX, [default=aix].
1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1562 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1563 compiler's sysroot if not specified).
1564 --with-crypto=auto|openssl|libgcrypt|mbedtls|wincng|wolfssl
1565 Select crypto backend (default: auto)
1566 --with-gnu-ld assume the C compiler uses GNU ld default=no
1567 --with-libssl-prefix[=DIR] search for libssl in DIR/include and DIR/lib
1568 --without-libssl-prefix don't search for libssl in includedir and libdir
1569 --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib
1570 --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir
1571 --with-libmbedcrypto-prefix[=DIR] search for libmbedcrypto in DIR/include and DIR/lib
1572 --without-libmbedcrypto-prefix don't search for libmbedcrypto in includedir and libdir
1573 --with-libbcrypt-prefix[=DIR] search for libbcrypt in DIR/include and DIR/lib
1574 --without-libbcrypt-prefix don't search for libbcrypt in includedir and libdir
1575 --with-libwolfssl-prefix[=DIR] search for libwolfssl in DIR/include and DIR/lib
1576 --without-libwolfssl-prefix don't search for libwolfssl in includedir and libdir
1577 --with-libz Use libz for compression
1578 --with-libz-prefix[=DIR] search for libz in DIR/include and DIR/lib
1579 --without-libz-prefix don't search for libz in includedir and libdir
1580
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 LT_SYS_LIBRARY_PATH
1592 User-defined run-time library search path.
1593 CXXCPP C++ preprocessor
1594 CPP C preprocessor
1595
1596 Use these variables to override the choices made by 'configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1598
1599 Report bugs to <[email protected]>.
1600 _ACEOF
1601 ac_status=$?
1602 fi
1603
1604 if test "$ac_init_help" = "recursive"; then
1605 # If there are subdirs, report their specific --help.
1606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607 test -d "$ac_dir" ||
1608 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609 continue
1610 ac_builddir=.
1611
1612 case "$ac_dir" in
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *)
1615 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622 esac
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1627
1628 case $srcdir in
1629 .) # We are building in place.
1630 ac_srcdir=.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 esac
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for configure.gnu first; this name is used for a wrapper for
1646 # Metaconfig's "Configure" on case-insensitive file systems.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 libssh2 configure -
1664 generated by GNU Autoconf 2.72
1665
1666 Copyright (C) 2023 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669 _ACEOF
1670 exit
1671 fi
1672
1673 ## ------------------------ ##
1674 ## Autoconf initialization. ##
1675 ## ------------------------ ##
1676
1677 # ac_fn_c_try_compile LINENO
1678 # --------------------------
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_compile ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest.beam
1684 if { { ac_try="$ac_compile"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 printf "%s\n" "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext
1703 then :
1704 ac_retval=0
1705 else case e in #(
1706 e) printf "%s\n" "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1 ;;
1710 esac
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_compile
1716
1717 # ac_fn_c_try_link LINENO
1718 # -----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_link ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 printf "%s\n" "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
1744 test -x conftest$ac_exeext
1745 }
1746 then :
1747 ac_retval=0
1748 else case e in #(
1749 e) printf "%s\n" "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=1 ;;
1753 esac
1754 fi
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_link
1764
1765 # ac_fn_cxx_try_compile LINENO
1766 # ----------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_cxx_try_compile ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext conftest.beam
1772 if { { ac_try="$ac_compile"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 printf "%s\n" "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_cxx_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext
1791 then :
1792 ac_retval=0
1793 else case e in #(
1794 e) printf "%s\n" "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1 ;;
1798 esac
1799 fi
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_cxx_try_compile
1804
1805 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1806 # -------------------------------------------------------
1807 # Tests whether HEADER exists and can be compiled using the include files in
1808 # INCLUDES, setting the cache variable VAR accordingly.
1809 ac_fn_c_check_header_compile ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 printf %s "checking for $2... " >&6; }
1814 if eval test \${$3+y}
1815 then :
1816 printf %s "(cached) " >&6
1817 else case e in #(
1818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 $4
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"
1824 then :
1825 eval "$3=yes"
1826 else case e in #(
1827 e) eval "$3=no" ;;
1828 esac
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1831 esac
1832 fi
1833 eval ac_res=\$$3
1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 printf "%s\n" "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_header_compile
1839
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 printf %s "checking for $2... " >&6; }
1848 if eval test \${$3+y}
1849 then :
1850 printf %s "(cached) " >&6
1851 else case e in #(
1852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1856 #define $2 innocuous_$2
1857
1858 /* System header to define __stub macros and hopefully few prototypes,
1859 which can conflict with char $2 (void); below. */
1860
1861 #include <limits.h>
1862 #undef $2
1863
1864 /* Override any GCC internal prototype to avoid an error.
1865 Use char because int might match the return type of a GCC
1866 builtin and then its argument prototype would still apply. */
1867 #ifdef __cplusplus
1868 extern "C"
1869 #endif
1870 char $2 (void);
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined __stub_$2 || defined __stub___$2
1875 choke me
1876 #endif
1877
1878 int
1879 main (void)
1880 {
1881 return $2 ();
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_link "$LINENO"
1887 then :
1888 eval "$3=yes"
1889 else case e in #(
1890 e) eval "$3=no" ;;
1891 esac
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1894 conftest$ac_exeext conftest.$ac_ext ;;
1895 esac
1896 fi
1897 eval ac_res=\$$3
1898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 printf "%s\n" "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_func
1903
1904 # ac_fn_cxx_try_cpp LINENO
1905 # ------------------------
1906 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1907 ac_fn_cxx_try_cpp ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if { { ac_try="$ac_cpp conftest.$ac_ext"
1911 case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 printf "%s\n" "$ac_try_echo"; } >&5
1917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1918 ac_status=$?
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1923 fi
1924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } > conftest.i && {
1926 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1927 test ! -s conftest.err
1928 }
1929 then :
1930 ac_retval=0
1931 else case e in #(
1932 e) printf "%s\n" "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=1 ;;
1936 esac
1937 fi
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941 } # ac_fn_cxx_try_cpp
1942
1943 # ac_fn_cxx_try_link LINENO
1944 # -------------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_cxx_try_link ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1950 if { { ac_try="$ac_link"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 printf "%s\n" "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_cxx_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest$ac_exeext && {
1969 test "$cross_compiling" = yes ||
1970 test -x conftest$ac_exeext
1971 }
1972 then :
1973 ac_retval=0
1974 else case e in #(
1975 e) printf "%s\n" "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_retval=1 ;;
1979 esac
1980 fi
1981 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983 # interfere with the next link command; also delete a directory that is
1984 # left behind by Apple's compiler. We do this before executing the actions.
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status $ac_retval
1988
1989 } # ac_fn_cxx_try_link
1990
1991 # ac_fn_c_try_run LINENO
1992 # ----------------------
1993 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1994 # executables *can* be run.
1995 ac_fn_c_try_run ()
1996 {
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if { { ac_try="$ac_link"
1999 case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 printf "%s\n" "$ac_try_echo"; } >&5
2005 (eval "$ac_link") 2>&5
2006 ac_status=$?
2007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2009 { { case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 printf "%s\n" "$ac_try_echo"; } >&5
2015 (eval "$ac_try") 2>&5
2016 ac_status=$?
2017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; }; }
2019 then :
2020 ac_retval=0
2021 else case e in #(
2022 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2023 printf "%s\n" "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=$ac_status ;;
2027 esac
2028 fi
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2032
2033 } # ac_fn_c_try_run
2034
2035 # ac_fn_c_try_cpp LINENO
2036 # ----------------------
2037 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2038 ac_fn_c_try_cpp ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_cpp conftest.$ac_ext"
2042 case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 printf "%s\n" "$ac_try_echo"; } >&5
2048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2049 ac_status=$?
2050 if test -s conftest.err; then
2051 grep -v '^ *+' conftest.err >conftest.er1
2052 cat conftest.er1 >&5
2053 mv -f conftest.er1 conftest.err
2054 fi
2055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } > conftest.i && {
2057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2058 test ! -s conftest.err
2059 }
2060 then :
2061 ac_retval=0
2062 else case e in #(
2063 e) printf "%s\n" "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2065
2066 ac_retval=1 ;;
2067 esac
2068 fi
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070 as_fn_set_status $ac_retval
2071
2072 } # ac_fn_c_try_cpp
2073
2074 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2075 # -------------------------------------------
2076 # Tests whether TYPE exists after having included INCLUDES, setting cache
2077 # variable VAR accordingly.
2078 ac_fn_c_check_type ()
2079 {
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 printf %s "checking for $2... " >&6; }
2083 if eval test \${$3+y}
2084 then :
2085 printf %s "(cached) " >&6
2086 else case e in #(
2087 e) eval "$3=no"
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 $4
2091 int
2092 main (void)
2093 {
2094 if (sizeof ($2))
2095 return 0;
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"
2101 then :
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 $4
2105 int
2106 main (void)
2107 {
2108 if (sizeof (($2)))
2109 return 0;
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"
2115 then :
2116
2117 else case e in #(
2118 e) eval "$3=yes" ;;
2119 esac
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2124 esac
2125 fi
2126 eval ac_res=\$$3
2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 printf "%s\n" "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131 } # ac_fn_c_check_type
2132 ac_configure_args_raw=
2133 for ac_arg
2134 do
2135 case $ac_arg in
2136 *\'*)
2137 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 esac
2139 as_fn_append ac_configure_args_raw " '$ac_arg'"
2140 done
2141
2142 case $ac_configure_args_raw in
2143 *$as_nl*)
2144 ac_safe_unquote= ;;
2145 *)
2146 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2147 ac_unsafe_a="$ac_unsafe_z#~"
2148 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2149 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2150 esac
2151
2152 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2155
2156 It was created by libssh2 $as_me -, which was
2157 generated by GNU Autoconf 2.72. Invocation command line was
2158
2159 $ $0$ac_configure_args_raw
2160
2161 _ACEOF
2162 exec 5>>config.log
2163 {
2164 cat <<_ASUNAME
2165 ## --------- ##
2166 ## Platform. ##
2167 ## --------- ##
2168
2169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2174
2175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2177
2178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2185
2186 _ASUNAME
2187
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191 IFS=$as_save_IFS
2192 case $as_dir in #(((
2193 '') as_dir=./ ;;
2194 */) ;;
2195 *) as_dir=$as_dir/ ;;
2196 esac
2197 printf "%s\n" "PATH: $as_dir"
2198 done
2199 IFS=$as_save_IFS
2200
2201 } >&5
2202
2203 cat >&5 <<_ACEOF
2204
2205
2206 ## ----------- ##
2207 ## Core tests. ##
2208 ## ----------- ##
2209
2210 _ACEOF
2211
2212
2213 # Keep a trace of the command line.
2214 # Strip out --no-create and --no-recursion so they do not pile up.
2215 # Strip out --silent because we don't want to record it for future runs.
2216 # Also quote any args containing shell meta-characters.
2217 # Make two passes to allow for proper duplicate-argument suppression.
2218 ac_configure_args=
2219 ac_configure_args0=
2220 ac_configure_args1=
2221 ac_must_keep_next=false
2222 for ac_pass in 1 2
2223 do
2224 for ac_arg
2225 do
2226 case $ac_arg in
2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2229 | -silent | --silent | --silen | --sile | --sil)
2230 continue ;;
2231 *\'*)
2232 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 esac
2234 case $ac_pass in
2235 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2236 2)
2237 as_fn_append ac_configure_args1 " '$ac_arg'"
2238 if test $ac_must_keep_next = true; then
2239 ac_must_keep_next=false # Got value, back to normal.
2240 else
2241 case $ac_arg in
2242 *=* | --config-cache | -C | -disable-* | --disable-* \
2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2245 | -with-* | --with-* | -without-* | --without-* | --x)
2246 case "$ac_configure_args0 " in
2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2248 esac
2249 ;;
2250 -* ) ac_must_keep_next=true ;;
2251 esac
2252 fi
2253 as_fn_append ac_configure_args " '$ac_arg'"
2254 ;;
2255 esac
2256 done
2257 done
2258 { ac_configure_args0=; unset ac_configure_args0;}
2259 { ac_configure_args1=; unset ac_configure_args1;}
2260
2261 # When interrupted or exit'd, cleanup temporary files, and complete
2262 # config.log. We remove comments because anyway the quotes in there
2263 # would cause problems or look ugly.
2264 # WARNING: Use '\'' to represent an apostrophe within the trap.
2265 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2266 trap 'exit_status=$?
2267 # Sanitize IFS.
2268 IFS=" "" $as_nl"
2269 # Save into config.log some information that might help in debugging.
2270 {
2271 echo
2272
2273 printf "%s\n" "## ---------------- ##
2274 ## Cache variables. ##
2275 ## ---------------- ##"
2276 echo
2277 # The following way of writing the cache mishandles newlines in values,
2278 (
2279 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2280 eval ac_val=\$$ac_var
2281 case $ac_val in #(
2282 *${as_nl}*)
2283 case $ac_var in #(
2284 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2285 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2286 esac
2287 case $ac_var in #(
2288 _ | IFS | as_nl) ;; #(
2289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2290 *) { eval $ac_var=; unset $ac_var;} ;;
2291 esac ;;
2292 esac
2293 done
2294 (set) 2>&1 |
2295 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2296 *${as_nl}ac_space=\ *)
2297 sed -n \
2298 "s/'\''/'\''\\\\'\'''\''/g;
2299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2300 ;; #(
2301 *)
2302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2303 ;;
2304 esac |
2305 sort
2306 )
2307 echo
2308
2309 printf "%s\n" "## ----------------- ##
2310 ## Output variables. ##
2311 ## ----------------- ##"
2312 echo
2313 for ac_var in $ac_subst_vars
2314 do
2315 eval ac_val=\$$ac_var
2316 case $ac_val in
2317 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 esac
2319 printf "%s\n" "$ac_var='\''$ac_val'\''"
2320 done | sort
2321 echo
2322
2323 if test -n "$ac_subst_files"; then
2324 printf "%s\n" "## ------------------- ##
2325 ## File substitutions. ##
2326 ## ------------------- ##"
2327 echo
2328 for ac_var in $ac_subst_files
2329 do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 printf "%s\n" "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2337 fi
2338
2339 if test -s confdefs.h; then
2340 printf "%s\n" "## ----------- ##
2341 ## confdefs.h. ##
2342 ## ----------- ##"
2343 echo
2344 cat confdefs.h
2345 echo
2346 fi
2347 test "$ac_signal" != 0 &&
2348 printf "%s\n" "$as_me: caught signal $ac_signal"
2349 printf "%s\n" "$as_me: exit $exit_status"
2350 } >&5
2351 rm -f core *.core core.conftest.* &&
2352 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2353 exit $exit_status
2354 ' 0
2355 for ac_signal in 1 2 13 15; do
2356 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2357 done
2358 ac_signal=0
2359
2360 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2361 rm -f -r conftest* confdefs.h
2362
2363 printf "%s\n" "/* confdefs.h */" > confdefs.h
2364
2365 # Predefined preprocessor variables.
2366
2367 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2368
2369 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2370
2371 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2372
2373 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2374
2375 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2376
2377 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2378
2379
2380 # Let the site file select an alternate cache file if it wants to.
2381 # Prefer an explicitly selected file to automatically selected ones.
2382 if test -n "$CONFIG_SITE"; then
2383 ac_site_files="$CONFIG_SITE"
2384 elif test "x$prefix" != xNONE; then
2385 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2386 else
2387 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2388 fi
2389
2390 for ac_site_file in $ac_site_files
2391 do
2392 case $ac_site_file in #(
2393 */*) :
2394 ;; #(
2395 *) :
2396 ac_site_file=./$ac_site_file ;;
2397 esac
2398 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2400 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2401 sed 's/^/| /' "$ac_site_file" >&5
2402 . "$ac_site_file" \
2403 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2404 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2405 as_fn_error $? "failed to load site script $ac_site_file
2406 See 'config.log' for more details" "$LINENO" 5; }
2407 fi
2408 done
2409
2410 if test -r "$cache_file"; then
2411 # Some versions of bash will fail to source /dev/null (special files
2412 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2413 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2415 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2416 case $cache_file in
2417 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2418 *) . "./$cache_file";;
2419 esac
2420 fi
2421 else
2422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2423 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2424 >$cache_file
2425 fi
2426
2427 # Test code for whether the C compiler supports C89 (global declarations)
2428 ac_c_conftest_c89_globals='
2429 /* Does the compiler advertise C89 conformance?
2430 Do not test the value of __STDC__, because some compilers set it to 0
2431 while being otherwise adequately conformant. */
2432 #if !defined __STDC__
2433 # error "Compiler does not advertise C89 conformance"
2434 #endif
2435
2436 #include <stddef.h>
2437 #include <stdarg.h>
2438 struct stat;
2439 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2440 struct buf { int x; };
2441 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2442 static char *e (char **p, int i)
2443 {
2444 return p[i];
2445 }
2446 static char *f (char * (*g) (char **, int), char **p, ...)
2447 {
2448 char *s;
2449 va_list v;
2450 va_start (v,p);
2451 s = g (p, va_arg (v,int));
2452 va_end (v);
2453 return s;
2454 }
2455
2456 /* C89 style stringification. */
2457 #define noexpand_stringify(a) #a
2458 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2459
2460 /* C89 style token pasting. Exercises some of the corner cases that
2461 e.g. old MSVC gets wrong, but not very hard. */
2462 #define noexpand_concat(a,b) a##b
2463 #define expand_concat(a,b) noexpand_concat(a,b)
2464 extern int vA;
2465 extern int vbee;
2466 #define aye A
2467 #define bee B
2468 int *pvA = &expand_concat(v,aye);
2469 int *pvbee = &noexpand_concat(v,bee);
2470
2471 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2472 function prototypes and stuff, but not \xHH hex character constants.
2473 These do not provoke an error unfortunately, instead are silently treated
2474 as an "x". The following induces an error, until -std is added to get
2475 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2476 array size at least. It is necessary to write \x00 == 0 to get something
2477 that is true only with -std. */
2478 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2479
2480 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2481 inside strings and character constants. */
2482 #define FOO(x) '\''x'\''
2483 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2484
2485 int test (int i, double x);
2486 struct s1 {int (*f) (int a);};
2487 struct s2 {int (*f) (double a);};
2488 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2489 int, int);'
2490
2491 # Test code for whether the C compiler supports C89 (body of main).
2492 ac_c_conftest_c89_main='
2493 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2494 '
2495
2496 # Test code for whether the C compiler supports C99 (global declarations)
2497 ac_c_conftest_c99_globals='
2498 /* Does the compiler advertise C99 conformance? */
2499 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2500 # error "Compiler does not advertise C99 conformance"
2501 #endif
2502
2503 // See if C++-style comments work.
2504
2505 #include <stdbool.h>
2506 extern int puts (const char *);
2507 extern int printf (const char *, ...);
2508 extern int dprintf (int, const char *, ...);
2509 extern void *malloc (size_t);
2510 extern void free (void *);
2511
2512 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2513 // dprintf is used instead of fprintf to avoid needing to declare
2514 // FILE and stderr.
2515 #define debug(...) dprintf (2, __VA_ARGS__)
2516 #define showlist(...) puts (#__VA_ARGS__)
2517 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2518 static void
2519 test_varargs_macros (void)
2520 {
2521 int x = 1234;
2522 int y = 5678;
2523 debug ("Flag");
2524 debug ("X = %d\n", x);
2525 showlist (The first, second, and third items.);
2526 report (x>y, "x is %d but y is %d", x, y);
2527 }
2528
2529 // Check long long types.
2530 #define BIG64 18446744073709551615ull
2531 #define BIG32 4294967295ul
2532 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2533 #if !BIG_OK
2534 #error "your preprocessor is broken"
2535 #endif
2536 #if BIG_OK
2537 #else
2538 #error "your preprocessor is broken"
2539 #endif
2540 static long long int bignum = -9223372036854775807LL;
2541 static unsigned long long int ubignum = BIG64;
2542
2543 struct incomplete_array
2544 {
2545 int datasize;
2546 double data[];
2547 };
2548
2549 struct named_init {
2550 int number;
2551 const wchar_t *name;
2552 double average;
2553 };
2554
2555 typedef const char *ccp;
2556
2557 static inline int
2558 test_restrict (ccp restrict text)
2559 {
2560 // Iterate through items via the restricted pointer.
2561 // Also check for declarations in for loops.
2562 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2563 continue;
2564 return 0;
2565 }
2566
2567 // Check varargs and va_copy.
2568 static bool
2569 test_varargs (const char *format, ...)
2570 {
2571 va_list args;
2572 va_start (args, format);
2573 va_list args_copy;
2574 va_copy (args_copy, args);
2575
2576 const char *str = "";
2577 int number = 0;
2578 float fnumber = 0;
2579
2580 while (*format)
2581 {
2582 switch (*format++)
2583 {
2584 case '\''s'\'': // string
2585 str = va_arg (args_copy, const char *);
2586 break;
2587 case '\''d'\'': // int
2588 number = va_arg (args_copy, int);
2589 break;
2590 case '\''f'\'': // float
2591 fnumber = va_arg (args_copy, double);
2592 break;
2593 default:
2594 break;
2595 }
2596 }
2597 va_end (args_copy);
2598 va_end (args);
2599
2600 return *str && number && fnumber;
2601 }
2602 '
2603
2604 # Test code for whether the C compiler supports C99 (body of main).
2605 ac_c_conftest_c99_main='
2606 // Check bool.
2607 _Bool success = false;
2608 success |= (argc != 0);
2609
2610 // Check restrict.
2611 if (test_restrict ("String literal") == 0)
2612 success = true;
2613 char *restrict newvar = "Another string";
2614
2615 // Check varargs.
2616 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2617 test_varargs_macros ();
2618
2619 // Check flexible array members.
2620 struct incomplete_array *ia =
2621 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2622 ia->datasize = 10;
2623 for (int i = 0; i < ia->datasize; ++i)
2624 ia->data[i] = i * 1.234;
2625 // Work around memory leak warnings.
2626 free (ia);
2627
2628 // Check named initializers.
2629 struct named_init ni = {
2630 .number = 34,
2631 .name = L"Test wide string",
2632 .average = 543.34343,
2633 };
2634
2635 ni.number = 58;
2636
2637 int dynamic_array[ni.number];
2638 dynamic_array[0] = argv[0][0];
2639 dynamic_array[ni.number - 1] = 543;
2640
2641 // work around unused variable warnings
2642 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2643 || dynamic_array[ni.number - 1] != 543);
2644 '
2645
2646 # Test code for whether the C compiler supports C11 (global declarations)
2647 ac_c_conftest_c11_globals='
2648 /* Does the compiler advertise C11 conformance? */
2649 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2650 # error "Compiler does not advertise C11 conformance"
2651 #endif
2652
2653 // Check _Alignas.
2654 char _Alignas (double) aligned_as_double;
2655 char _Alignas (0) no_special_alignment;
2656 extern char aligned_as_int;
2657 char _Alignas (0) _Alignas (int) aligned_as_int;
2658
2659 // Check _Alignof.
2660 enum
2661 {
2662 int_alignment = _Alignof (int),
2663 int_array_alignment = _Alignof (int[100]),
2664 char_alignment = _Alignof (char)
2665 };
2666 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2667
2668 // Check _Noreturn.
2669 int _Noreturn does_not_return (void) { for (;;) continue; }
2670
2671 // Check _Static_assert.
2672 struct test_static_assert
2673 {
2674 int x;
2675 _Static_assert (sizeof (int) <= sizeof (long int),
2676 "_Static_assert does not work in struct");
2677 long int y;
2678 };
2679
2680 // Check UTF-8 literals.
2681 #define u8 syntax error!
2682 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2683
2684 // Check duplicate typedefs.
2685 typedef long *long_ptr;
2686 typedef long int *long_ptr;
2687 typedef long_ptr long_ptr;
2688
2689 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2690 struct anonymous
2691 {
2692 union {
2693 struct { int i; int j; };
2694 struct { int k; long int l; } w;
2695 };
2696 int m;
2697 } v1;
2698 '
2699
2700 # Test code for whether the C compiler supports C11 (body of main).
2701 ac_c_conftest_c11_main='
2702 _Static_assert ((offsetof (struct anonymous, i)
2703 == offsetof (struct anonymous, w.k)),
2704 "Anonymous union alignment botch");
2705 v1.i = 2;
2706 v1.w.k = 5;
2707 ok |= v1.i != 5;
2708 '
2709
2710 # Test code for whether the C compiler supports C11 (complete).
2711 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2712 ${ac_c_conftest_c99_globals}
2713 ${ac_c_conftest_c11_globals}
2714
2715 int
2716 main (int argc, char **argv)
2717 {
2718 int ok = 0;
2719 ${ac_c_conftest_c89_main}
2720 ${ac_c_conftest_c99_main}
2721 ${ac_c_conftest_c11_main}
2722 return ok;
2723 }
2724 "
2725
2726 # Test code for whether the C compiler supports C99 (complete).
2727 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2728 ${ac_c_conftest_c99_globals}
2729
2730 int
2731 main (int argc, char **argv)
2732 {
2733 int ok = 0;
2734 ${ac_c_conftest_c89_main}
2735 ${ac_c_conftest_c99_main}
2736 return ok;
2737 }
2738 "
2739
2740 # Test code for whether the C compiler supports C89 (complete).
2741 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2742
2743 int
2744 main (int argc, char **argv)
2745 {
2746 int ok = 0;
2747 ${ac_c_conftest_c89_main}
2748 return ok;
2749 }
2750 "
2751
2752 # Test code for whether the C++ compiler supports C++98 (global declarations)
2753 ac_cxx_conftest_cxx98_globals='
2754 // Does the compiler advertise C++98 conformance?
2755 #if !defined __cplusplus || __cplusplus < 199711L
2756 # error "Compiler does not advertise C++98 conformance"
2757 #endif
2758
2759 // These inclusions are to reject old compilers that
2760 // lack the unsuffixed header files.
2761 #include <cstdlib>
2762 #include <exception>
2763
2764 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2765 extern void assert (int);
2766 namespace std {
2767 extern int strcmp (const char *, const char *);
2768 }
2769
2770 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2771 using std::exception;
2772 using std::strcmp;
2773
2774 namespace {
2775
2776 void test_exception_syntax()
2777 {
2778 try {
2779 throw "test";
2780 } catch (const char *s) {
2781 // Extra parentheses suppress a warning when building autoconf itself,
2782 // due to lint rules shared with more typical C programs.
2783 assert (!(strcmp) (s, "test"));
2784 }
2785 }
2786
2787 template <typename T> struct test_template
2788 {
2789 T const val;
2790 explicit test_template(T t) : val(t) {}
2791 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2792 };
2793
2794 } // anonymous namespace
2795 '
2796
2797 # Test code for whether the C++ compiler supports C++98 (body of main)
2798 ac_cxx_conftest_cxx98_main='
2799 assert (argc);
2800 assert (! argv[0]);
2801 {
2802 test_exception_syntax ();
2803 test_template<double> tt (2.0);
2804 assert (tt.add (4) == 6.0);
2805 assert (true && !false);
2806 }
2807 '
2808
2809 # Test code for whether the C++ compiler supports C++11 (global declarations)
2810 ac_cxx_conftest_cxx11_globals='
2811 // Does the compiler advertise C++ 2011 conformance?
2812 #if !defined __cplusplus || __cplusplus < 201103L
2813 # error "Compiler does not advertise C++11 conformance"
2814 #endif
2815
2816 namespace cxx11test
2817 {
2818 constexpr int get_val() { return 20; }
2819
2820 struct testinit
2821 {
2822 int i;
2823 double d;
2824 };
2825
2826 class delegate
2827 {
2828 public:
2829 delegate(int n) : n(n) {}
2830 delegate(): delegate(2354) {}
2831
2832 virtual int getval() { return this->n; };
2833 protected:
2834 int n;
2835 };
2836
2837 class overridden : public delegate
2838 {
2839 public:
2840 overridden(int n): delegate(n) {}
2841 virtual int getval() override final { return this->n * 2; }
2842 };
2843
2844 class nocopy
2845 {
2846 public:
2847 nocopy(int i): i(i) {}
2848 nocopy() = default;
2849 nocopy(const nocopy&) = delete;
2850 nocopy & operator=(const nocopy&) = delete;
2851 private:
2852 int i;
2853 };
2854
2855 // for testing lambda expressions
2856 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2857 {
2858 return f(v);
2859 }
2860
2861 // for testing variadic templates and trailing return types
2862 template <typename V> auto sum(V first) -> V
2863 {
2864 return first;
2865 }
2866 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2867 {
2868 return first + sum(rest...);
2869 }
2870 }
2871 '
2872
2873 # Test code for whether the C++ compiler supports C++11 (body of main)
2874 ac_cxx_conftest_cxx11_main='
2875 {
2876 // Test auto and decltype
2877 auto a1 = 6538;
2878 auto a2 = 48573953.4;
2879 auto a3 = "String literal";
2880
2881 int total = 0;
2882 for (auto i = a3; *i; ++i) { total += *i; }
2883
2884 decltype(a2) a4 = 34895.034;
2885 }
2886 {
2887 // Test constexpr
2888 short sa[cxx11test::get_val()] = { 0 };
2889 }
2890 {
2891 // Test initializer lists
2892 cxx11test::testinit il = { 4323, 435234.23544 };
2893 }
2894 {
2895 // Test range-based for
2896 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2897 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2898 for (auto &x : array) { x += 23; }
2899 }
2900 {
2901 // Test lambda expressions
2902 using cxx11test::eval;
2903 assert (eval ([](int x) { return x*2; }, 21) == 42);
2904 double d = 2.0;
2905 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2906 assert (d == 5.0);
2907 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2908 assert (d == 5.0);
2909 }
2910 {
2911 // Test use of variadic templates
2912 using cxx11test::sum;
2913 auto a = sum(1);
2914 auto b = sum(1, 2);
2915 auto c = sum(1.0, 2.0, 3.0);
2916 }
2917 {
2918 // Test constructor delegation
2919 cxx11test::delegate d1;
2920 cxx11test::delegate d2();
2921 cxx11test::delegate d3(45);
2922 }
2923 {
2924 // Test override and final
2925 cxx11test::overridden o1(55464);
2926 }
2927 {
2928 // Test nullptr
2929 char *c = nullptr;
2930 }
2931 {
2932 // Test template brackets
2933 test_template<::test_template<int>> v(test_template<int>(12));
2934 }
2935 {
2936 // Unicode literals
2937 char const *utf8 = u8"UTF-8 string \u2500";
2938 char16_t const *utf16 = u"UTF-8 string \u2500";
2939 char32_t const *utf32 = U"UTF-32 string \u2500";
2940 }
2941 '
2942
2943 # Test code for whether the C compiler supports C++11 (complete).
2944 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2945 ${ac_cxx_conftest_cxx11_globals}
2946
2947 int
2948 main (int argc, char **argv)
2949 {
2950 int ok = 0;
2951 ${ac_cxx_conftest_cxx98_main}
2952 ${ac_cxx_conftest_cxx11_main}
2953 return ok;
2954 }
2955 "
2956
2957 # Test code for whether the C compiler supports C++98 (complete).
2958 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2959 int
2960 main (int argc, char **argv)
2961 {
2962 int ok = 0;
2963 ${ac_cxx_conftest_cxx98_main}
2964 return ok;
2965 }
2966 "
2967
2968 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2969 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2970 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2971 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2972 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2973 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2974 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2975 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2976 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2977
2978 # Auxiliary files required by this configure script.
2979 ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh tap-driver.sh"
2980
2981 # Locations in which to look for auxiliary files.
2982 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2983
2984 # Search for a directory containing all of the required auxiliary files,
2985 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2986 # If we don't find one directory that contains all the files we need,
2987 # we report the set of missing files from the *first* directory in
2988 # $ac_aux_dir_candidates and give up.
2989 ac_missing_aux_files=""
2990 ac_first_candidate=:
2991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 as_found=false
2994 for as_dir in $ac_aux_dir_candidates
2995 do
2996 IFS=$as_save_IFS
2997 case $as_dir in #(((
2998 '') as_dir=./ ;;
2999 */) ;;
3000 *) as_dir=$as_dir/ ;;
3001 esac
3002 as_found=:
3003
3004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3005 ac_aux_dir_found=yes
3006 ac_install_sh=
3007 for ac_aux in $ac_aux_files
3008 do
3009 # As a special case, if "install-sh" is required, that requirement
3010 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3011 # and $ac_install_sh is set appropriately for whichever one is found.
3012 if test x"$ac_aux" = x"install-sh"
3013 then
3014 if test -f "${as_dir}install-sh"; then
3015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3016 ac_install_sh="${as_dir}install-sh -c"
3017 elif test -f "${as_dir}install.sh"; then
3018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3019 ac_install_sh="${as_dir}install.sh -c"
3020 elif test -f "${as_dir}shtool"; then
3021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3022 ac_install_sh="${as_dir}shtool install -c"
3023 else
3024 ac_aux_dir_found=no
3025 if $ac_first_candidate; then
3026 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3027 else
3028 break
3029 fi
3030 fi
3031 else
3032 if test -f "${as_dir}${ac_aux}"; then
3033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3034 else
3035 ac_aux_dir_found=no
3036 if $ac_first_candidate; then
3037 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3038 else
3039 break
3040 fi
3041 fi
3042 fi
3043 done
3044 if test "$ac_aux_dir_found" = yes; then
3045 ac_aux_dir="$as_dir"
3046 break
3047 fi
3048 ac_first_candidate=false
3049
3050 as_found=false
3051 done
3052 IFS=$as_save_IFS
3053 if $as_found
3054 then :
3055
3056 else case e in #(
3057 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3058 esac
3059 fi
3060
3061
3062 # These three variables are undocumented and unsupported,
3063 # and are intended to be withdrawn in a future Autoconf release.
3064 # They can cause serious problems if a builder's source tree is in a directory
3065 # whose full name contains unusual characters.
3066 if test -f "${ac_aux_dir}config.guess"; then
3067 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3068 fi
3069 if test -f "${ac_aux_dir}config.sub"; then
3070 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3071 fi
3072 if test -f "$ac_aux_dir/configure"; then
3073 ac_configure="$SHELL ${ac_aux_dir}configure"
3074 fi
3075
3076 # Check that the precious variables saved in the cache have kept the same
3077 # value.
3078 ac_cache_corrupted=false
3079 for ac_var in $ac_precious_vars; do
3080 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3081 eval ac_new_set=\$ac_env_${ac_var}_set
3082 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3083 eval ac_new_val=\$ac_env_${ac_var}_value
3084 case $ac_old_set,$ac_new_set in
3085 set,)
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3087 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3088 ac_cache_corrupted=: ;;
3089 ,set)
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3091 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3092 ac_cache_corrupted=: ;;
3093 ,);;
3094 *)
3095 if test "x$ac_old_val" != "x$ac_new_val"; then
3096 # differences in whitespace do not lead to failure.
3097 ac_old_val_w=`echo x $ac_old_val`
3098 ac_new_val_w=`echo x $ac_new_val`
3099 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3101 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3102 ac_cache_corrupted=:
3103 else
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3105 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3106 eval $ac_var=\$ac_old_val
3107 fi
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3109 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3111 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3112 fi;;
3113 esac
3114 # Pass precious variables to config.status.
3115 if test "$ac_new_set" = set; then
3116 case $ac_new_val in
3117 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3118 *) ac_arg=$ac_var=$ac_new_val ;;
3119 esac
3120 case " $ac_configure_args " in
3121 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3122 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3123 esac
3124 fi
3125 done
3126 if $ac_cache_corrupted; then
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3128 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3130 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3131 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3132 and start over" "$LINENO" 5
3133 fi
3134 ## -------------------- ##
3135 ## Main body of script. ##
3136 ## -------------------- ##
3137
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
3144
3145
3146
3147 ac_config_headers="$ac_config_headers src/libssh2_config.h"
3148
3149
3150
3151
3152
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3154 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3155 # Check whether --enable-maintainer-mode was given.
3156 if test ${enable_maintainer_mode+y}
3157 then :
3158 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3159 else case e in #(
3160 e) USE_MAINTAINER_MODE=no ;;
3161 esac
3162 fi
3163
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3165 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3166 if test $USE_MAINTAINER_MODE = yes; then
3167 MAINTAINER_MODE_TRUE=
3168 MAINTAINER_MODE_FALSE='#'
3169 else
3170 MAINTAINER_MODE_TRUE='#'
3171 MAINTAINER_MODE_FALSE=
3172 fi
3173
3174 MAINT=$MAINTAINER_MODE_TRUE
3175
3176
3177 # Check whether --enable-silent-rules was given.
3178 if test ${enable_silent_rules+y}
3179 then :
3180 enableval=$enable_silent_rules;
3181 fi
3182
3183 case $enable_silent_rules in # (((
3184 yes) AM_DEFAULT_VERBOSITY=0;;
3185 no) AM_DEFAULT_VERBOSITY=1;;
3186 *) AM_DEFAULT_VERBOSITY=0;;
3187 esac
3188 am_make=${MAKE-make}
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3190 printf %s "checking whether $am_make supports nested variables... " >&6; }
3191 if test ${am_cv_make_support_nested_variables+y}
3192 then :
3193 printf %s "(cached) " >&6
3194 else case e in #(
3195 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3196 BAR0=false
3197 BAR1=true
3198 V=1
3199 am__doit:
3200 @$(TRUE)
3201 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3202 am_cv_make_support_nested_variables=yes
3203 else
3204 am_cv_make_support_nested_variables=no
3205 fi ;;
3206 esac
3207 fi
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3209 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3210 if test $am_cv_make_support_nested_variables = yes; then
3211 AM_V='$(V)'
3212 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3213 else
3214 AM_V=$AM_DEFAULT_VERBOSITY
3215 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3216 fi
3217 AM_BACKSLASH='\'
3218
3219
3220 # Extract the first word of "sed", so it can be a program name with args.
3221 set dummy sed; ac_word=$2
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 printf %s "checking for $ac_word... " >&6; }
3224 if test ${ac_cv_path_SED+y}
3225 then :
3226 printf %s "(cached) " >&6
3227 else case e in #(
3228 e) case $SED in
3229 [\\/]* | ?:[\\/]*)
3230 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3231 ;;
3232 *)
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3235 for as_dir in $as_dummy
3236 do
3237 IFS=$as_save_IFS
3238 case $as_dir in #(((
3239 '') as_dir=./ ;;
3240 */) ;;
3241 *) as_dir=$as_dir/ ;;
3242 esac
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3245 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed-was-not-found-by-configure"
3254 ;;
3255 esac ;;
3256 esac
3257 fi
3258 SED=$ac_cv_path_SED
3259 if test -n "$SED"; then
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3261 printf "%s\n" "$SED" >&6; }
3262 else
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 printf "%s\n" "no" >&6; }
3265 fi
3266
3267
3268
3269
3270 if test "x$SED" = "xsed-was-not-found-by-configure"; then
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sed was not found, this may ruin your chances to build fine" >&5
3272 printf "%s\n" "$as_me: WARNING: sed was not found, this may ruin your chances to build fine" >&2;}
3273 fi
3274
3275 LIBSSH2_VERSION=`$SED -ne 's/^#define LIBSSH2_VERSION *"\(.*\)"/\1/p' ${srcdir}/include/libssh2.h`
3276 am__api_version='1.16'
3277
3278
3279 # Find a good install program. We prefer a C program (faster),
3280 # so one script is as good as another. But avoid the broken or
3281 # incompatible versions:
3282 # SysV /etc/install, /usr/sbin/install
3283 # SunOS /usr/etc/install
3284 # IRIX /sbin/install
3285 # AIX /bin/install
3286 # AmigaOS /C/install, which installs bootblocks on floppy discs
3287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3290 # OS/2's system install, which has a completely different semantic
3291 # ./install, which can be erroneously created by make from ./install.sh.
3292 # Reject install programs that cannot install multiple files.
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3294 printf %s "checking for a BSD-compatible install... " >&6; }
3295 if test -z "$INSTALL"; then
3296 if test ${ac_cv_path_install+y}
3297 then :
3298 printf %s "(cached) " >&6
3299 else case e in #(
3300 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 case $as_dir in #(((
3305 '') as_dir=./ ;;
3306 */) ;;
3307 *) as_dir=$as_dir/ ;;
3308 esac
3309 # Account for fact that we put trailing slashes in our PATH walk.
3310 case $as_dir in #((
3311 ./ | /[cC]/* | \
3312 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3313 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3314 /usr/ucb/* ) ;;
3315 *)
3316 # OSF1 and SCO ODT 3.0 have their own names for install.
3317 # Don't use installbsd from OSF since it installs stuff as root
3318 # by default.
3319 for ac_prog in ginstall scoinst install; do
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3322 if test $ac_prog = install &&
3323 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3324 # AIX install. It has an incompatible calling convention.
3325 :
3326 elif test $ac_prog = install &&
3327 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3328 # program-specific install script used by HP pwplus--don't use.
3329 :
3330 else
3331 rm -rf conftest.one conftest.two conftest.dir
3332 echo one > conftest.one
3333 echo two > conftest.two
3334 mkdir conftest.dir
3335 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3336 test -s conftest.one && test -s conftest.two &&
3337 test -s conftest.dir/conftest.one &&
3338 test -s conftest.dir/conftest.two
3339 then
3340 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3341 break 3
3342 fi
3343 fi
3344 fi
3345 done
3346 done
3347 ;;
3348 esac
3349
3350 done
3351 IFS=$as_save_IFS
3352
3353 rm -rf conftest.one conftest.two conftest.dir
3354 ;;
3355 esac
3356 fi
3357 if test ${ac_cv_path_install+y}; then
3358 INSTALL=$ac_cv_path_install
3359 else
3360 # As a last resort, use the slow shell script. Don't cache a
3361 # value for INSTALL within a source directory, because that will
3362 # break other packages using the cache if that directory is
3363 # removed, or if the value is a relative name.
3364 INSTALL=$ac_install_sh
3365 fi
3366 fi
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3368 printf "%s\n" "$INSTALL" >&6; }
3369
3370 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3371 # It thinks the first close brace ends the variable substitution.
3372 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3373
3374 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3375
3376 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3377
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3379 printf %s "checking whether build environment is sane... " >&6; }
3380 # Reject unsafe characters in $srcdir or the absolute working directory
3381 # name. Accept space and tab only in the latter.
3382 am_lf='
3383 '
3384 case `pwd` in
3385 *[\\\"\#\$\&\'\`$am_lf]*)
3386 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3387 esac
3388 case $srcdir in
3389 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3390 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3391 esac
3392
3393 # Do 'set' in a subshell so we don't clobber the current shell's
3394 # arguments. Must try -L first in case configure is actually a
3395 # symlink; some systems play weird games with the mod time of symlinks
3396 # (eg FreeBSD returns the mod time of the symlink's containing
3397 # directory).
3398 if (
3399 am_has_slept=no
3400 for am_try in 1 2; do
3401 echo "timestamp, slept: $am_has_slept" > conftest.file
3402 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3403 if test "$*" = "X"; then
3404 # -L didn't work.
3405 set X `ls -t "$srcdir/configure" conftest.file`
3406 fi
3407 if test "$*" != "X $srcdir/configure conftest.file" \
3408 && test "$*" != "X conftest.file $srcdir/configure"; then
3409
3410 # If neither matched, then we have a broken ls. This can happen
3411 # if, for instance, CONFIG_SHELL is bash and it inherits a
3412 # broken ls alias from the environment. This has actually
3413 # happened. Such a system could not be considered "sane".
3414 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3415 alias in your environment" "$LINENO" 5
3416 fi
3417 if test "$2" = conftest.file || test $am_try -eq 2; then
3418 break
3419 fi
3420 # Just in case.
3421 sleep 1
3422 am_has_slept=yes
3423 done
3424 test "$2" = conftest.file
3425 )
3426 then
3427 # Ok.
3428 :
3429 else
3430 as_fn_error $? "newly created file is older than distributed files!
3431 Check your system clock" "$LINENO" 5
3432 fi
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 printf "%s\n" "yes" >&6; }
3435 # If we didn't sleep, we still need to ensure time stamps of config.status and
3436 # generated files are strictly newer.
3437 am_sleep_pid=
3438 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3439 ( sleep 1 ) &
3440 am_sleep_pid=$!
3441 fi
3442
3443 rm -f conftest.file
3444
3445 test "$program_prefix" != NONE &&
3446 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3447 # Use a double $ so make ignores it.
3448 test "$program_suffix" != NONE &&
3449 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3450 # Double any \ or $.
3451 # By default was 's,x,x', remove it if useless.
3452 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3453 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3454
3455
3456 # Expand $ac_aux_dir to an absolute path.
3457 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3458
3459
3460 if test x"${MISSING+set}" != xset; then
3461 MISSING="\${SHELL} '$am_aux_dir/missing'"
3462 fi
3463 # Use eval to expand $SHELL
3464 if eval "$MISSING --is-lightweight"; then
3465 am_missing_run="$MISSING "
3466 else
3467 am_missing_run=
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3469 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3470 fi
3471
3472 if test x"${install_sh+set}" != xset; then
3473 case $am_aux_dir in
3474 *\ * | *\ *)
3475 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3476 *)
3477 install_sh="\${SHELL} $am_aux_dir/install-sh"
3478 esac
3479 fi
3480
3481 # Installed binaries are usually stripped using 'strip' when the user
3482 # run "make install-strip". However 'strip' might not be the right
3483 # tool to use in cross-compilation environments, therefore Automake
3484 # will honor the 'STRIP' environment variable to overrule this program.
3485 if test "$cross_compiling" != no; then
3486 if test -n "$ac_tool_prefix"; then
3487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3488 set dummy ${ac_tool_prefix}strip; ac_word=$2
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 printf %s "checking for $ac_word... " >&6; }
3491 if test ${ac_cv_prog_STRIP+y}
3492 then :
3493 printf %s "(cached) " >&6
3494 else case e in #(
3495 e) if test -n "$STRIP"; then
3496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 case $as_dir in #(((
3503 '') as_dir=./ ;;
3504 */) ;;
3505 *) as_dir=$as_dir/ ;;
3506 esac
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 fi ;;
3518 esac
3519 fi
3520 STRIP=$ac_cv_prog_STRIP
3521 if test -n "$STRIP"; then
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3523 printf "%s\n" "$STRIP" >&6; }
3524 else
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 printf "%s\n" "no" >&6; }
3527 fi
3528
3529
3530 fi
3531 if test -z "$ac_cv_prog_STRIP"; then
3532 ac_ct_STRIP=$STRIP
3533 # Extract the first word of "strip", so it can be a program name with args.
3534 set dummy strip; ac_word=$2
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 printf %s "checking for $ac_word... " >&6; }
3537 if test ${ac_cv_prog_ac_ct_STRIP+y}
3538 then :
3539 printf %s "(cached) " >&6
3540 else case e in #(
3541 e) if test -n "$ac_ct_STRIP"; then
3542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547 IFS=$as_save_IFS
3548 case $as_dir in #(((
3549 '') as_dir=./ ;;
3550 */) ;;
3551 *) as_dir=$as_dir/ ;;
3552 esac
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_ac_ct_STRIP="strip"
3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3557 break 2
3558 fi
3559 done
3560 done
3561 IFS=$as_save_IFS
3562
3563 fi ;;
3564 esac
3565 fi
3566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3567 if test -n "$ac_ct_STRIP"; then
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3569 printf "%s\n" "$ac_ct_STRIP" >&6; }
3570 else
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 printf "%s\n" "no" >&6; }
3573 fi
3574
3575 if test "x$ac_ct_STRIP" = x; then
3576 STRIP=":"
3577 else
3578 case $cross_compiling:$ac_tool_warned in
3579 yes:)
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584 STRIP=$ac_ct_STRIP
3585 fi
3586 else
3587 STRIP="$ac_cv_prog_STRIP"
3588 fi
3589
3590 fi
3591 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3592
3593
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3595 printf %s "checking for a race-free mkdir -p... " >&6; }
3596 if test -z "$MKDIR_P"; then
3597 if test ${ac_cv_path_mkdir+y}
3598 then :
3599 printf %s "(cached) " >&6
3600 else case e in #(
3601 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3603 do
3604 IFS=$as_save_IFS
3605 case $as_dir in #(((
3606 '') as_dir=./ ;;
3607 */) ;;
3608 *) as_dir=$as_dir/ ;;
3609 esac
3610 for ac_prog in mkdir gmkdir; do
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3613 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3614 'mkdir ('*'coreutils) '* | \
3615 *'BusyBox '* | \
3616 'mkdir (fileutils) '4.1*)
3617 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3618 break 3;;
3619 esac
3620 done
3621 done
3622 done
3623 IFS=$as_save_IFS
3624 ;;
3625 esac
3626 fi
3627
3628 test -d ./--version && rmdir ./--version
3629 if test ${ac_cv_path_mkdir+y}; then
3630 MKDIR_P="$ac_cv_path_mkdir -p"
3631 else
3632 # As a last resort, use plain mkdir -p,
3633 # in the hope it doesn't have the bugs of ancient mkdir.
3634 MKDIR_P='mkdir -p'
3635 fi
3636 fi
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3638 printf "%s\n" "$MKDIR_P" >&6; }
3639
3640 for ac_prog in gawk mawk nawk awk
3641 do
3642 # Extract the first word of "$ac_prog", so it can be a program name with args.
3643 set dummy $ac_prog; ac_word=$2
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 printf %s "checking for $ac_word... " >&6; }
3646 if test ${ac_cv_prog_AWK+y}
3647 then :
3648 printf %s "(cached) " >&6
3649 else case e in #(
3650 e) if test -n "$AWK"; then
3651 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656 IFS=$as_save_IFS
3657 case $as_dir in #(((
3658 '') as_dir=./ ;;
3659 */) ;;
3660 *) as_dir=$as_dir/ ;;
3661 esac
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_AWK="$ac_prog"
3665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668 done
3669 done
3670 IFS=$as_save_IFS
3671
3672 fi ;;
3673 esac
3674 fi
3675 AWK=$ac_cv_prog_AWK
3676 if test -n "$AWK"; then
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3678 printf "%s\n" "$AWK" >&6; }
3679 else
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 printf "%s\n" "no" >&6; }
3682 fi
3683
3684
3685 test -n "$AWK" && break
3686 done
3687
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3689 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3690 set x ${MAKE-make}
3691 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3692 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3693 then :
3694 printf %s "(cached) " >&6
3695 else case e in #(
3696 e) cat >conftest.make <<\_ACEOF
3697 SHELL = /bin/sh
3698 all:
3699 @echo '@@@%%%=$(MAKE)=@@@%%%'
3700 _ACEOF
3701 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3702 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3703 *@@@%%%=?*=@@@%%%*)
3704 eval ac_cv_prog_make_${ac_make}_set=yes;;
3705 *)
3706 eval ac_cv_prog_make_${ac_make}_set=no;;
3707 esac
3708 rm -f conftest.make ;;
3709 esac
3710 fi
3711 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 printf "%s\n" "yes" >&6; }
3714 SET_MAKE=
3715 else
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 printf "%s\n" "no" >&6; }
3718 SET_MAKE="MAKE=${MAKE-make}"
3719 fi
3720
3721 rm -rf .tst 2>/dev/null
3722 mkdir .tst 2>/dev/null
3723 if test -d .tst; then
3724 am__leading_dot=.
3725 else
3726 am__leading_dot=_
3727 fi
3728 rmdir .tst 2>/dev/null
3729
3730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3732 # is not polluted with repeated "-I."
3733 am__isrc=' -I$(srcdir)'
3734 # test to see if srcdir already configured
3735 if test -f $srcdir/config.status; then
3736 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3737 fi
3738 fi
3739
3740 # test whether we have cygpath
3741 if test -z "$CYGPATH_W"; then
3742 if (cygpath --version) >/dev/null 2>/dev/null; then
3743 CYGPATH_W='cygpath -w'
3744 else
3745 CYGPATH_W=echo
3746 fi
3747 fi
3748
3749
3750 # Define the identity of the package.
3751 PACKAGE='libssh2'
3752 VERSION='-'
3753
3754
3755 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3756
3757
3758 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3759
3760 # Some tools Automake needs.
3761
3762 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3763
3764
3765 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3766
3767
3768 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3769
3770
3771 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3772
3773
3774 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3775
3776 # For better backward compatibility. To be removed once Automake 1.9.x
3777 # dies out for good. For more background, see:
3778 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3779 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3780 mkdir_p='$(MKDIR_P)'
3781
3782 # We need awk for the "check" target (and possibly the TAP driver). The
3783 # system "awk" is bad on some platforms.
3784 # Always define AMTAR for backward compatibility. Yes, it's still used
3785 # in the wild :-( We should find a proper way to deprecate it ...
3786 AMTAR='$${TAR-tar}'
3787
3788
3789 # We'll loop over all known methods to create a tar archive until one works.
3790 _am_tools='gnutar pax cpio none'
3791
3792 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3793
3794
3795
3796
3797
3798 # Variables for tags utilities; see am/tags.am
3799 if test -z "$CTAGS"; then
3800 CTAGS=ctags
3801 fi
3802
3803 if test -z "$ETAGS"; then
3804 ETAGS=etags
3805 fi
3806
3807 if test -z "$CSCOPE"; then
3808 CSCOPE=cscope
3809 fi
3810
3811
3812
3813 # POSIX will say in a future version that running "rm -f" with no argument
3814 # is OK; and we want to be able to make that assumption in our Makefile
3815 # recipes. So use an aggressive probe to check that the usage we want is
3816 # actually supported "in the wild" to an acceptable degree.
3817 # See automake bug#10828.
3818 # To make any issue more visible, cause the running configure to be aborted
3819 # by default if the 'rm' program in use doesn't match our expectations; the
3820 # user can still override this though.
3821 if rm -f && rm -fr && rm -rf; then : OK; else
3822 cat >&2 <<'END'
3823 Oops!
3824
3825 Your 'rm' program seems unable to run without file operands specified
3826 on the command line, even when the '-f' option is present. This is contrary
3827 to the behaviour of most rm programs out there, and not conforming with
3828 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3829
3830 Please tell [email protected] about your system, including the value
3831 of your $PATH and any error possibly output before this message. This
3832 can help us improve future automake versions.
3833
3834 END
3835 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3836 echo 'Configuration will proceed anyway, since you have set the' >&2
3837 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3838 echo >&2
3839 else
3840 cat >&2 <<'END'
3841 Aborting the configuration process, to ensure you take notice of the issue.
3842
3843 You can download and install GNU coreutils to get an 'rm' implementation
3844 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3845
3846 If you want to complete the configuration process using your problematic
3847 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3848 to "yes", and re-run configure.
3849
3850 END
3851 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3852 fi
3853 fi
3854
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libssh2 version" >&5
3856 printf %s "checking libssh2 version... " >&6; }
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBSSH2_VERSION" >&5
3858 printf "%s\n" "$LIBSSH2_VERSION" >&6; }
3859
3860
3861
3862 # Check for the OS.
3863 # Daniel's note: this should not be necessary and we need to work to
3864 # get this removed.
3865
3866
3867 # Make sure we can run config.sub.
3868 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3869 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3870
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3872 printf %s "checking build system type... " >&6; }
3873 if test ${ac_cv_build+y}
3874 then :
3875 printf %s "(cached) " >&6
3876 else case e in #(
3877 e) ac_build_alias=$build_alias
3878 test "x$ac_build_alias" = x &&
3879 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3880 test "x$ac_build_alias" = x &&
3881 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3882 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3883 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3884 ;;
3885 esac
3886 fi
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3888 printf "%s\n" "$ac_cv_build" >&6; }
3889 case $ac_cv_build in
3890 *-*-*) ;;
3891 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3892 esac
3893 build=$ac_cv_build
3894 ac_save_IFS=$IFS; IFS='-'
3895 set x $ac_cv_build
3896 shift
3897 build_cpu=$1
3898 build_vendor=$2
3899 shift; shift
3900 # Remember, the first character of IFS is used to create $*,
3901 # except with old shells:
3902 build_os=$*
3903 IFS=$ac_save_IFS
3904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3905
3906
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3908 printf %s "checking host system type... " >&6; }
3909 if test ${ac_cv_host+y}
3910 then :
3911 printf %s "(cached) " >&6
3912 else case e in #(
3913 e) if test "x$host_alias" = x; then
3914 ac_cv_host=$ac_cv_build
3915 else
3916 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3917 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3918 fi
3919 ;;
3920 esac
3921 fi
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3923 printf "%s\n" "$ac_cv_host" >&6; }
3924 case $ac_cv_host in
3925 *-*-*) ;;
3926 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3927 esac
3928 host=$ac_cv_host
3929 ac_save_IFS=$IFS; IFS='-'
3930 set x $ac_cv_host
3931 shift
3932 host_cpu=$1
3933 host_vendor=$2
3934 shift; shift
3935 # Remember, the first character of IFS is used to create $*,
3936 # except with old shells:
3937 host_os=$*
3938 IFS=$ac_save_IFS
3939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3940
3941
3942 case "$host" in
3943 *-mingw*)
3944 LIBS="$LIBS -lws2_32"
3945 ;;
3946 *darwin*)
3947 ;;
3948 *hpux*)
3949 ;;
3950 *osf*)
3951 CFLAGS="$CFLAGS -D_POSIX_PII_SOCKET"
3952 ;;
3953 *)
3954 ;;
3955 esac
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966 DEPDIR="${am__leading_dot}deps"
3967
3968 ac_config_commands="$ac_config_commands depfiles"
3969
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3971 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3972 cat > confinc.mk << 'END'
3973 am__doit:
3974 @echo this is the am__doit target >confinc.out
3975 .PHONY: am__doit
3976 END
3977 am__include="#"
3978 am__quote=
3979 # BSD make does it like this.
3980 echo '.include "confinc.mk" # ignored' > confmf.BSD
3981 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3982 echo 'include confinc.mk # ignored' > confmf.GNU
3983 _am_result=no
3984 for s in GNU BSD; do
3985 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3986 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }
3990 case $?:`cat confinc.out 2>/dev/null` in #(
3991 '0:this is the am__doit target') :
3992 case $s in #(
3993 BSD) :
3994 am__include='.include' am__quote='"' ;; #(
3995 *) :
3996 am__include='include' am__quote='' ;;
3997 esac ;; #(
3998 *) :
3999 ;;
4000 esac
4001 if test "$am__include" != "#"; then
4002 _am_result="yes ($s style)"
4003 break
4004 fi
4005 done
4006 rm -f confinc.* confmf.*
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4008 printf "%s\n" "${_am_result}" >&6; }
4009
4010 # Check whether --enable-dependency-tracking was given.
4011 if test ${enable_dependency_tracking+y}
4012 then :
4013 enableval=$enable_dependency_tracking;
4014 fi
4015
4016 if test "x$enable_dependency_tracking" != xno; then
4017 am_depcomp="$ac_aux_dir/depcomp"
4018 AMDEPBACKSLASH='\'
4019 am__nodep='_no'
4020 fi
4021 if test "x$enable_dependency_tracking" != xno; then
4022 AMDEP_TRUE=
4023 AMDEP_FALSE='#'
4024 else
4025 AMDEP_TRUE='#'
4026 AMDEP_FALSE=
4027 fi
4028
4029
4030 ac_ext=c
4031 ac_cpp='$CPP $CPPFLAGS'
4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035 if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 printf %s "checking for $ac_word... " >&6; }
4040 if test ${ac_cv_prog_CC+y}
4041 then :
4042 printf %s "(cached) " >&6
4043 else case e in #(
4044 e) if test -n "$CC"; then
4045 ac_cv_prog_CC="$CC" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050 IFS=$as_save_IFS
4051 case $as_dir in #(((
4052 '') as_dir=./ ;;
4053 */) ;;
4054 *) as_dir=$as_dir/ ;;
4055 esac
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4060 break 2
4061 fi
4062 done
4063 done
4064 IFS=$as_save_IFS
4065
4066 fi ;;
4067 esac
4068 fi
4069 CC=$ac_cv_prog_CC
4070 if test -n "$CC"; then
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072 printf "%s\n" "$CC" >&6; }
4073 else
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 printf "%s\n" "no" >&6; }
4076 fi
4077
4078
4079 fi
4080 if test -z "$ac_cv_prog_CC"; then
4081 ac_ct_CC=$CC
4082 # Extract the first word of "gcc", so it can be a program name with args.
4083 set dummy gcc; ac_word=$2
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 printf %s "checking for $ac_word... " >&6; }
4086 if test ${ac_cv_prog_ac_ct_CC+y}
4087 then :
4088 printf %s "(cached) " >&6
4089 else case e in #(
4090 e) if test -n "$ac_ct_CC"; then
4091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096 IFS=$as_save_IFS
4097 case $as_dir in #(((
4098 '') as_dir=./ ;;
4099 */) ;;
4100 *) as_dir=$as_dir/ ;;
4101 esac
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_ac_ct_CC="gcc"
4105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108 done
4109 done
4110 IFS=$as_save_IFS
4111
4112 fi ;;
4113 esac
4114 fi
4115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4116 if test -n "$ac_ct_CC"; then
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4118 printf "%s\n" "$ac_ct_CC" >&6; }
4119 else
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 printf "%s\n" "no" >&6; }
4122 fi
4123
4124 if test "x$ac_ct_CC" = x; then
4125 CC=""
4126 else
4127 case $cross_compiling:$ac_tool_warned in
4128 yes:)
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4131 ac_tool_warned=yes ;;
4132 esac
4133 CC=$ac_ct_CC
4134 fi
4135 else
4136 CC="$ac_cv_prog_CC"
4137 fi
4138
4139 if test -z "$CC"; then
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}cc; ac_word=$2
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 printf %s "checking for $ac_word... " >&6; }
4145 if test ${ac_cv_prog_CC+y}
4146 then :
4147 printf %s "(cached) " >&6
4148 else case e in #(
4149 e) if test -n "$CC"; then
4150 ac_cv_prog_CC="$CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 case $as_dir in #(((
4157 '') as_dir=./ ;;
4158 */) ;;
4159 *) as_dir=$as_dir/ ;;
4160 esac
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_CC="${ac_tool_prefix}cc"
4164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167 done
4168 done
4169 IFS=$as_save_IFS
4170
4171 fi ;;
4172 esac
4173 fi
4174 CC=$ac_cv_prog_CC
4175 if test -n "$CC"; then
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177 printf "%s\n" "$CC" >&6; }
4178 else
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 printf "%s\n" "no" >&6; }
4181 fi
4182
4183
4184 fi
4185 fi
4186 if test -z "$CC"; then
4187 # Extract the first word of "cc", so it can be a program name with args.
4188 set dummy cc; ac_word=$2
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 printf %s "checking for $ac_word... " >&6; }
4191 if test ${ac_cv_prog_CC+y}
4192 then :
4193 printf %s "(cached) " >&6
4194 else case e in #(
4195 e) if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4197 else
4198 ac_prog_rejected=no
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 case $as_dir in #(((
4204 '') as_dir=./ ;;
4205 */) ;;
4206 *) as_dir=$as_dir/ ;;
4207 esac
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4210 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4211 ac_prog_rejected=yes
4212 continue
4213 fi
4214 ac_cv_prog_CC="cc"
4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218 done
4219 done
4220 IFS=$as_save_IFS
4221
4222 if test $ac_prog_rejected = yes; then
4223 # We found a bogon in the path, so make sure we never use it.
4224 set dummy $ac_cv_prog_CC
4225 shift
4226 if test $# != 0; then
4227 # We chose a different compiler from the bogus one.
4228 # However, it has the same basename, so the bogon will be chosen
4229 # first if we set CC to just the basename; use the full file name.
4230 shift
4231 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4232 fi
4233 fi
4234 fi ;;
4235 esac
4236 fi
4237 CC=$ac_cv_prog_CC
4238 if test -n "$CC"; then
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4240 printf "%s\n" "$CC" >&6; }
4241 else
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 printf "%s\n" "no" >&6; }
4244 fi
4245
4246
4247 fi
4248 if test -z "$CC"; then
4249 if test -n "$ac_tool_prefix"; then
4250 for ac_prog in cl.exe
4251 do
4252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 printf %s "checking for $ac_word... " >&6; }
4256 if test ${ac_cv_prog_CC+y}
4257 then :
4258 printf %s "(cached) " >&6
4259 else case e in #(
4260 e) if test -n "$CC"; then
4261 ac_cv_prog_CC="$CC" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266 IFS=$as_save_IFS
4267 case $as_dir in #(((
4268 '') as_dir=./ ;;
4269 */) ;;
4270 *) as_dir=$as_dir/ ;;
4271 esac
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278 done
4279 done
4280 IFS=$as_save_IFS
4281
4282 fi ;;
4283 esac
4284 fi
4285 CC=$ac_cv_prog_CC
4286 if test -n "$CC"; then
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288 printf "%s\n" "$CC" >&6; }
4289 else
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 printf "%s\n" "no" >&6; }
4292 fi
4293
4294
4295 test -n "$CC" && break
4296 done
4297 fi
4298 if test -z "$CC"; then
4299 ac_ct_CC=$CC
4300 for ac_prog in cl.exe
4301 do
4302 # Extract the first word of "$ac_prog", so it can be a program name with args.
4303 set dummy $ac_prog; ac_word=$2
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 printf %s "checking for $ac_word... " >&6; }
4306 if test ${ac_cv_prog_ac_ct_CC+y}
4307 then :
4308 printf %s "(cached) " >&6
4309 else case e in #(
4310 e) if test -n "$ac_ct_CC"; then
4311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 case $as_dir in #(((
4318 '') as_dir=./ ;;
4319 */) ;;
4320 *) as_dir=$as_dir/ ;;
4321 esac
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_ac_ct_CC="$ac_prog"
4325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332 fi ;;
4333 esac
4334 fi
4335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4336 if test -n "$ac_ct_CC"; then
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4338 printf "%s\n" "$ac_ct_CC" >&6; }
4339 else
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 printf "%s\n" "no" >&6; }
4342 fi
4343
4344
4345 test -n "$ac_ct_CC" && break
4346 done
4347
4348 if test "x$ac_ct_CC" = x; then
4349 CC=""
4350 else
4351 case $cross_compiling:$ac_tool_warned in
4352 yes:)
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4354 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355 ac_tool_warned=yes ;;
4356 esac
4357 CC=$ac_ct_CC
4358 fi
4359 fi
4360
4361 fi
4362 if test -z "$CC"; then
4363 if test -n "$ac_tool_prefix"; then
4364 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4365 set dummy ${ac_tool_prefix}clang; ac_word=$2
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 printf %s "checking for $ac_word... " >&6; }
4368 if test ${ac_cv_prog_CC+y}
4369 then :
4370 printf %s "(cached) " >&6
4371 else case e in #(
4372 e) if test -n "$CC"; then
4373 ac_cv_prog_CC="$CC" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378 IFS=$as_save_IFS
4379 case $as_dir in #(((
4380 '') as_dir=./ ;;
4381 */) ;;
4382 *) as_dir=$as_dir/ ;;
4383 esac
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4386 ac_cv_prog_CC="${ac_tool_prefix}clang"
4387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4388 break 2
4389 fi
4390 done
4391 done
4392 IFS=$as_save_IFS
4393
4394 fi ;;
4395 esac
4396 fi
4397 CC=$ac_cv_prog_CC
4398 if test -n "$CC"; then
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4400 printf "%s\n" "$CC" >&6; }
4401 else
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 printf "%s\n" "no" >&6; }
4404 fi
4405
4406
4407 fi
4408 if test -z "$ac_cv_prog_CC"; then
4409 ac_ct_CC=$CC
4410 # Extract the first word of "clang", so it can be a program name with args.
4411 set dummy clang; ac_word=$2
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 printf %s "checking for $ac_word... " >&6; }
4414 if test ${ac_cv_prog_ac_ct_CC+y}
4415 then :
4416 printf %s "(cached) " >&6
4417 else case e in #(
4418 e) if test -n "$ac_ct_CC"; then
4419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424 IFS=$as_save_IFS
4425 case $as_dir in #(((
4426 '') as_dir=./ ;;
4427 */) ;;
4428 *) as_dir=$as_dir/ ;;
4429 esac
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4432 ac_cv_prog_ac_ct_CC="clang"
4433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4434 break 2
4435 fi
4436 done
4437 done
4438 IFS=$as_save_IFS
4439
4440 fi ;;
4441 esac
4442 fi
4443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4444 if test -n "$ac_ct_CC"; then
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4446 printf "%s\n" "$ac_ct_CC" >&6; }
4447 else
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 printf "%s\n" "no" >&6; }
4450 fi
4451
4452 if test "x$ac_ct_CC" = x; then
4453 CC=""
4454 else
4455 case $cross_compiling:$ac_tool_warned in
4456 yes:)
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4458 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4459 ac_tool_warned=yes ;;
4460 esac
4461 CC=$ac_ct_CC
4462 fi
4463 else
4464 CC="$ac_cv_prog_CC"
4465 fi
4466
4467 fi
4468
4469
4470 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4471 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4472 as_fn_error $? "no acceptable C compiler found in \$PATH
4473 See 'config.log' for more details" "$LINENO" 5; }
4474
4475 # Provide some information about the compiler.
4476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4477 set X $ac_compile
4478 ac_compiler=$2
4479 for ac_option in --version -v -V -qversion -version; do
4480 { { ac_try="$ac_compiler $ac_option >&5"
4481 case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 printf "%s\n" "$ac_try_echo"; } >&5
4487 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4488 ac_status=$?
4489 if test -s conftest.err; then
4490 sed '10a\
4491 ... rest of stderr output deleted ...
4492 10q' conftest.err >conftest.er1
4493 cat conftest.er1 >&5
4494 fi
4495 rm -f conftest.er1 conftest.err
4496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }
4498 done
4499
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502
4503 int
4504 main (void)
4505 {
4506
4507 ;
4508 return 0;
4509 }
4510 _ACEOF
4511 ac_clean_files_save=$ac_clean_files
4512 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4513 # Try to create an executable without -o first, disregard a.out.
4514 # It will help us diagnose broken compilers, and finding out an intuition
4515 # of exeext.
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4517 printf %s "checking whether the C compiler works... " >&6; }
4518 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4519
4520 # The possible output files:
4521 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4522
4523 ac_rmfiles=
4524 for ac_file in $ac_files
4525 do
4526 case $ac_file in
4527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4528 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4529 esac
4530 done
4531 rm -f $ac_rmfiles
4532
4533 if { { ac_try="$ac_link_default"
4534 case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 printf "%s\n" "$ac_try_echo"; } >&5
4540 (eval "$ac_link_default") 2>&5
4541 ac_status=$?
4542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }
4544 then :
4545 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4546 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4547 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4548 # so that the user can short-circuit this test for compilers unknown to
4549 # Autoconf.
4550 for ac_file in $ac_files ''
4551 do
4552 test -f "$ac_file" || continue
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4555 ;;
4556 [ab].out )
4557 # We found the default executable, but exeext='' is most
4558 # certainly right.
4559 break;;
4560 *.* )
4561 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4562 then :; else
4563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4564 fi
4565 # We set ac_cv_exeext here because the later test for it is not
4566 # safe: cross compilers may not add the suffix if given an '-o'
4567 # argument, so we may need to know it at that point already.
4568 # Even if this section looks crufty: it has the advantage of
4569 # actually working.
4570 break;;
4571 * )
4572 break;;
4573 esac
4574 done
4575 test "$ac_cv_exeext" = no && ac_cv_exeext=
4576
4577 else case e in #(
4578 e) ac_file='' ;;
4579 esac
4580 fi
4581 if test -z "$ac_file"
4582 then :
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 printf "%s\n" "no" >&6; }
4585 printf "%s\n" "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4589 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4590 as_fn_error 77 "C compiler cannot create executables
4591 See 'config.log' for more details" "$LINENO" 5; }
4592 else case e in #(
4593 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4594 printf "%s\n" "yes" >&6; } ;;
4595 esac
4596 fi
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4598 printf %s "checking for C compiler default output file name... " >&6; }
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4600 printf "%s\n" "$ac_file" >&6; }
4601 ac_exeext=$ac_cv_exeext
4602
4603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4604 ac_clean_files=$ac_clean_files_save
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4606 printf %s "checking for suffix of executables... " >&6; }
4607 if { { ac_try="$ac_link"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 printf "%s\n" "$ac_try_echo"; } >&5
4614 (eval "$ac_link") 2>&5
4615 ac_status=$?
4616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }
4618 then :
4619 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4620 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4621 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4622 # 'rm'.
4623 for ac_file in conftest.exe conftest conftest.*; do
4624 test -f "$ac_file" || continue
4625 case $ac_file in
4626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4628 break;;
4629 * ) break;;
4630 esac
4631 done
4632 else case e in #(
4633 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4634 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4635 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4636 See 'config.log' for more details" "$LINENO" 5; } ;;
4637 esac
4638 fi
4639 rm -f conftest conftest$ac_cv_exeext
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4641 printf "%s\n" "$ac_cv_exeext" >&6; }
4642
4643 rm -f conftest.$ac_ext
4644 EXEEXT=$ac_cv_exeext
4645 ac_exeext=$EXEEXT
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <stdio.h>
4649 int
4650 main (void)
4651 {
4652 FILE *f = fopen ("conftest.out", "w");
4653 if (!f)
4654 return 1;
4655 return ferror (f) || fclose (f) != 0;
4656
4657 ;
4658 return 0;
4659 }
4660 _ACEOF
4661 ac_clean_files="$ac_clean_files conftest.out"
4662 # Check that the compiler produces executables we can run. If not, either
4663 # the compiler is broken, or we cross compile.
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4665 printf %s "checking whether we are cross compiling... " >&6; }
4666 if test "$cross_compiling" != yes; then
4667 { { ac_try="$ac_link"
4668 case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671 esac
4672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673 printf "%s\n" "$ac_try_echo"; } >&5
4674 (eval "$ac_link") 2>&5
4675 ac_status=$?
4676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677 test $ac_status = 0; }
4678 if { ac_try='./conftest$ac_cv_exeext'
4679 { { case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682 esac
4683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4684 printf "%s\n" "$ac_try_echo"; } >&5
4685 (eval "$ac_try") 2>&5
4686 ac_status=$?
4687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }; }; then
4689 cross_compiling=no
4690 else
4691 if test "$cross_compiling" = maybe; then
4692 cross_compiling=yes
4693 else
4694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4695 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4696 as_fn_error 77 "cannot run C compiled programs.
4697 If you meant to cross compile, use '--host'.
4698 See 'config.log' for more details" "$LINENO" 5; }
4699 fi
4700 fi
4701 fi
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4703 printf "%s\n" "$cross_compiling" >&6; }
4704
4705 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4706 conftest.o conftest.obj conftest.out
4707 ac_clean_files=$ac_clean_files_save
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4709 printf %s "checking for suffix of object files... " >&6; }
4710 if test ${ac_cv_objext+y}
4711 then :
4712 printf %s "(cached) " >&6
4713 else case e in #(
4714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716
4717 int
4718 main (void)
4719 {
4720
4721 ;
4722 return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.o conftest.obj
4726 if { { ac_try="$ac_compile"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 printf "%s\n" "$ac_try_echo"; } >&5
4733 (eval "$ac_compile") 2>&5
4734 ac_status=$?
4735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }
4737 then :
4738 for ac_file in conftest.o conftest.obj conftest.*; do
4739 test -f "$ac_file" || continue;
4740 case $ac_file in
4741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4742 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4743 break;;
4744 esac
4745 done
4746 else case e in #(
4747 e) printf "%s\n" "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4751 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4752 as_fn_error $? "cannot compute suffix of object files: cannot compile
4753 See 'config.log' for more details" "$LINENO" 5; } ;;
4754 esac
4755 fi
4756 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4757 esac
4758 fi
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4760 printf "%s\n" "$ac_cv_objext" >&6; }
4761 OBJEXT=$ac_cv_objext
4762 ac_objext=$OBJEXT
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4764 printf %s "checking whether the compiler supports GNU C... " >&6; }
4765 if test ${ac_cv_c_compiler_gnu+y}
4766 then :
4767 printf %s "(cached) " >&6
4768 else case e in #(
4769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771
4772 int
4773 main (void)
4774 {
4775 #ifndef __GNUC__
4776 choke me
4777 #endif
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"
4784 then :
4785 ac_compiler_gnu=yes
4786 else case e in #(
4787 e) ac_compiler_gnu=no ;;
4788 esac
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4792 ;;
4793 esac
4794 fi
4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4796 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
4799 if test $ac_compiler_gnu = yes; then
4800 GCC=yes
4801 else
4802 GCC=
4803 fi
4804 ac_test_CFLAGS=${CFLAGS+y}
4805 ac_save_CFLAGS=$CFLAGS
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4807 printf %s "checking whether $CC accepts -g... " >&6; }
4808 if test ${ac_cv_prog_cc_g+y}
4809 then :
4810 printf %s "(cached) " >&6
4811 else case e in #(
4812 e) ac_save_c_werror_flag=$ac_c_werror_flag
4813 ac_c_werror_flag=yes
4814 ac_cv_prog_cc_g=no
4815 CFLAGS="-g"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818
4819 int
4820 main (void)
4821 {
4822
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 if ac_fn_c_try_compile "$LINENO"
4828 then :
4829 ac_cv_prog_cc_g=yes
4830 else case e in #(
4831 e) CFLAGS=""
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834
4835 int
4836 main (void)
4837 {
4838
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 if ac_fn_c_try_compile "$LINENO"
4844 then :
4845
4846 else case e in #(
4847 e) ac_c_werror_flag=$ac_save_c_werror_flag
4848 CFLAGS="-g"
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851
4852 int
4853 main (void)
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 if ac_fn_c_try_compile "$LINENO"
4861 then :
4862 ac_cv_prog_cc_g=yes
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4865 esac
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4868 esac
4869 fi
4870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4871 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4872 esac
4873 fi
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4875 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4876 if test $ac_test_CFLAGS; then
4877 CFLAGS=$ac_save_CFLAGS
4878 elif test $ac_cv_prog_cc_g = yes; then
4879 if test "$GCC" = yes; then
4880 CFLAGS="-g -O2"
4881 else
4882 CFLAGS="-g"
4883 fi
4884 else
4885 if test "$GCC" = yes; then
4886 CFLAGS="-O2"
4887 else
4888 CFLAGS=
4889 fi
4890 fi
4891 ac_prog_cc_stdc=no
4892 if test x$ac_prog_cc_stdc = xno
4893 then :
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4895 printf %s "checking for $CC option to enable C11 features... " >&6; }
4896 if test ${ac_cv_prog_cc_c11+y}
4897 then :
4898 printf %s "(cached) " >&6
4899 else case e in #(
4900 e) ac_cv_prog_cc_c11=no
4901 ac_save_CC=$CC
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 $ac_c_conftest_c11_program
4905 _ACEOF
4906 for ac_arg in '' -std=gnu11
4907 do
4908 CC="$ac_save_CC $ac_arg"
4909 if ac_fn_c_try_compile "$LINENO"
4910 then :
4911 ac_cv_prog_cc_c11=$ac_arg
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext conftest.beam
4914 test "x$ac_cv_prog_cc_c11" != "xno" && break
4915 done
4916 rm -f conftest.$ac_ext
4917 CC=$ac_save_CC ;;
4918 esac
4919 fi
4920
4921 if test "x$ac_cv_prog_cc_c11" = xno
4922 then :
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4924 printf "%s\n" "unsupported" >&6; }
4925 else case e in #(
4926 e) if test "x$ac_cv_prog_cc_c11" = x
4927 then :
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4929 printf "%s\n" "none needed" >&6; }
4930 else case e in #(
4931 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4932 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4933 CC="$CC $ac_cv_prog_cc_c11" ;;
4934 esac
4935 fi
4936 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4937 ac_prog_cc_stdc=c11 ;;
4938 esac
4939 fi
4940 fi
4941 if test x$ac_prog_cc_stdc = xno
4942 then :
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4944 printf %s "checking for $CC option to enable C99 features... " >&6; }
4945 if test ${ac_cv_prog_cc_c99+y}
4946 then :
4947 printf %s "(cached) " >&6
4948 else case e in #(
4949 e) ac_cv_prog_cc_c99=no
4950 ac_save_CC=$CC
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953 $ac_c_conftest_c99_program
4954 _ACEOF
4955 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4956 do
4957 CC="$ac_save_CC $ac_arg"
4958 if ac_fn_c_try_compile "$LINENO"
4959 then :
4960 ac_cv_prog_cc_c99=$ac_arg
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.beam
4963 test "x$ac_cv_prog_cc_c99" != "xno" && break
4964 done
4965 rm -f conftest.$ac_ext
4966 CC=$ac_save_CC ;;
4967 esac
4968 fi
4969
4970 if test "x$ac_cv_prog_cc_c99" = xno
4971 then :
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4973 printf "%s\n" "unsupported" >&6; }
4974 else case e in #(
4975 e) if test "x$ac_cv_prog_cc_c99" = x
4976 then :
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4978 printf "%s\n" "none needed" >&6; }
4979 else case e in #(
4980 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4981 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4982 CC="$CC $ac_cv_prog_cc_c99" ;;
4983 esac
4984 fi
4985 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4986 ac_prog_cc_stdc=c99 ;;
4987 esac
4988 fi
4989 fi
4990 if test x$ac_prog_cc_stdc = xno
4991 then :
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4993 printf %s "checking for $CC option to enable C89 features... " >&6; }
4994 if test ${ac_cv_prog_cc_c89+y}
4995 then :
4996 printf %s "(cached) " >&6
4997 else case e in #(
4998 e) ac_cv_prog_cc_c89=no
4999 ac_save_CC=$CC
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 $ac_c_conftest_c89_program
5003 _ACEOF
5004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5005 do
5006 CC="$ac_save_CC $ac_arg"
5007 if ac_fn_c_try_compile "$LINENO"
5008 then :
5009 ac_cv_prog_cc_c89=$ac_arg
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.beam
5012 test "x$ac_cv_prog_cc_c89" != "xno" && break
5013 done
5014 rm -f conftest.$ac_ext
5015 CC=$ac_save_CC ;;
5016 esac
5017 fi
5018
5019 if test "x$ac_cv_prog_cc_c89" = xno
5020 then :
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5022 printf "%s\n" "unsupported" >&6; }
5023 else case e in #(
5024 e) if test "x$ac_cv_prog_cc_c89" = x
5025 then :
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5027 printf "%s\n" "none needed" >&6; }
5028 else case e in #(
5029 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5030 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5031 CC="$CC $ac_cv_prog_cc_c89" ;;
5032 esac
5033 fi
5034 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5035 ac_prog_cc_stdc=c89 ;;
5036 esac
5037 fi
5038 fi
5039
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046
5047 ac_ext=c
5048 ac_cpp='$CPP $CPPFLAGS'
5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5053 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5054 if test ${am_cv_prog_cc_c_o+y}
5055 then :
5056 printf %s "(cached) " >&6
5057 else case e in #(
5058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060
5061 int
5062 main (void)
5063 {
5064
5065 ;
5066 return 0;
5067 }
5068 _ACEOF
5069 # Make sure it works both with $CC and with simple cc.
5070 # Following AC_PROG_CC_C_O, we do the test twice because some
5071 # compilers refuse to overwrite an existing .o file with -o,
5072 # though they will create one.
5073 am_cv_prog_cc_c_o=yes
5074 for am_i in 1 2; do
5075 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5076 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } \
5080 && test -f conftest2.$ac_objext; then
5081 : OK
5082 else
5083 am_cv_prog_cc_c_o=no
5084 break
5085 fi
5086 done
5087 rm -f core conftest*
5088 unset am_i ;;
5089 esac
5090 fi
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5092 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5093 if test "$am_cv_prog_cc_c_o" != yes; then
5094 # Losing compiler, so override with the script.
5095 # FIXME: It is wrong to rewrite CC.
5096 # But if we don't then we get into trouble of one sort or another.
5097 # A longer-term fix would be to have automake use am__CC in this case,
5098 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5099 CC="$am_aux_dir/compile $CC"
5100 fi
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
5107
5108 depcc="$CC" am_compiler_list=
5109
5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5111 printf %s "checking dependency style of $depcc... " >&6; }
5112 if test ${am_cv_CC_dependencies_compiler_type+y}
5113 then :
5114 printf %s "(cached) " >&6
5115 else case e in #(
5116 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5117 # We make a subdir and do the tests there. Otherwise we can end up
5118 # making bogus files that we don't know about and never remove. For
5119 # instance it was reported that on HP-UX the gcc test will end up
5120 # making a dummy file named 'D' -- because '-MD' means "put the output
5121 # in D".
5122 rm -rf conftest.dir
5123 mkdir conftest.dir
5124 # Copy depcomp to subdir because otherwise we won't find it if we're
5125 # using a relative directory.
5126 cp "$am_depcomp" conftest.dir
5127 cd conftest.dir
5128 # We will build objects and dependencies in a subdirectory because
5129 # it helps to detect inapplicable dependency modes. For instance
5130 # both Tru64's cc and ICC support -MD to output dependencies as a
5131 # side effect of compilation, but ICC will put the dependencies in
5132 # the current directory while Tru64 will put them in the object
5133 # directory.
5134 mkdir sub
5135
5136 am_cv_CC_dependencies_compiler_type=none
5137 if test "$am_compiler_list" = ""; then
5138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5139 fi
5140 am__universal=false
5141 case " $depcc " in #(
5142 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5143 esac
5144
5145 for depmode in $am_compiler_list; do
5146 # Setup a source with many dependencies, because some compilers
5147 # like to wrap large dependency lists on column 80 (with \), and
5148 # we should not choose a depcomp mode which is confused by this.
5149 #
5150 # We need to recreate these files for each test, as the compiler may
5151 # overwrite some of them when testing with obscure command lines.
5152 # This happens at least with the AIX C compiler.
5153 : > sub/conftest.c
5154 for i in 1 2 3 4 5 6; do
5155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5156 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5157 # Solaris 10 /bin/sh.
5158 echo '/* dummy */' > sub/conftst$i.h
5159 done
5160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5161
5162 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5163 # mode. It turns out that the SunPro C++ compiler does not properly
5164 # handle '-M -o', and we need to detect this. Also, some Intel
5165 # versions had trouble with output in subdirs.
5166 am__obj=sub/conftest.${OBJEXT-o}
5167 am__minus_obj="-o $am__obj"
5168 case $depmode in
5169 gcc)
5170 # This depmode causes a compiler race in universal mode.
5171 test "$am__universal" = false || continue
5172 ;;
5173 nosideeffect)
5174 # After this tag, mechanisms are not by side-effect, so they'll
5175 # only be used when explicitly requested.
5176 if test "x$enable_dependency_tracking" = xyes; then
5177 continue
5178 else
5179 break
5180 fi
5181 ;;
5182 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5183 # This compiler won't grok '-c -o', but also, the minuso test has
5184 # not run yet. These depmodes are late enough in the game, and
5185 # so weak that their functioning should not be impacted.
5186 am__obj=conftest.${OBJEXT-o}
5187 am__minus_obj=
5188 ;;
5189 none) break ;;
5190 esac
5191 if depmode=$depmode \
5192 source=sub/conftest.c object=$am__obj \
5193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5194 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5195 >/dev/null 2>conftest.err &&
5196 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5198 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5200 # icc doesn't choke on unknown options, it will just issue warnings
5201 # or remarks (even with -Werror). So we grep stderr for any message
5202 # that says an option was ignored or not supported.
5203 # When given -MP, icc 7.0 and 7.1 complain thusly:
5204 # icc: Command line warning: ignoring option '-M'; no argument required
5205 # The diagnosis changed in icc 8.0:
5206 # icc: Command line remark: option '-MP' not supported
5207 if (grep 'ignoring option' conftest.err ||
5208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5209 am_cv_CC_dependencies_compiler_type=$depmode
5210 break
5211 fi
5212 fi
5213 done
5214
5215 cd ..
5216 rm -rf conftest.dir
5217 else
5218 am_cv_CC_dependencies_compiler_type=none
5219 fi
5220 ;;
5221 esac
5222 fi
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5224 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5225 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5226
5227 if
5228 test "x$enable_dependency_tracking" != xno \
5229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5230 am__fastdepCC_TRUE=
5231 am__fastdepCC_FALSE='#'
5232 else
5233 am__fastdepCC_TRUE='#'
5234 am__fastdepCC_FALSE=
5235 fi
5236
5237
5238
5239
5240 #
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
5242 printf %s "checking if _REENTRANT is already defined... " >&6; }
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245
5246
5247
5248 int
5249 main (void)
5250 {
5251
5252 #ifdef _REENTRANT
5253 int dummy=1;
5254 #else
5255 force compilation error
5256 #endif
5257
5258 ;
5259 return 0;
5260 }
5261
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"
5264 then :
5265
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267 printf "%s\n" "yes" >&6; }
5268 tmp_reentrant_initially_defined="yes"
5269
5270 else case e in #(
5271 e)
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 printf "%s\n" "no" >&6; }
5274 tmp_reentrant_initially_defined="no"
5275 ;;
5276 esac
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5279 #
5280 if test "$tmp_reentrant_initially_defined" = "no"; then
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
5282 printf %s "checking if _REENTRANT is actually needed... " >&6; }
5283
5284 case $host in
5285 *-*-solaris* | *-*-hpux*)
5286 tmp_need_reentrant="yes"
5287 ;;
5288 *)
5289 tmp_need_reentrant="no"
5290 ;;
5291 esac
5292
5293
5294 if test "$tmp_need_reentrant" = "yes"; then
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5296 printf "%s\n" "yes" >&6; }
5297 else
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 printf "%s\n" "no" >&6; }
5300 fi
5301 fi
5302 #
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
5304 printf %s "checking if _REENTRANT is onwards defined... " >&6; }
5305 if test "$tmp_reentrant_initially_defined" = "yes" ||
5306 test "$tmp_need_reentrant" = "yes"; then
5307
5308
5309 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
5310
5311 cat >>confdefs.h <<_EOF
5312 #ifndef _REENTRANT
5313 # define _REENTRANT
5314 #endif
5315 _EOF
5316
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5318 printf "%s\n" "yes" >&6; }
5319 else
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 printf "%s\n" "no" >&6; }
5322 fi
5323 #
5324
5325
5326 # Some systems (Solaris?) have socket() in -lsocket.
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5328 printf %s "checking for library containing socket... " >&6; }
5329 if test ${ac_cv_search_socket+y}
5330 then :
5331 printf %s "(cached) " >&6
5332 else case e in #(
5333 e) ac_func_search_save_LIBS=$LIBS
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336
5337 /* Override any GCC internal prototype to avoid an error.
5338 Use char because int might match the return type of a GCC
5339 builtin and then its argument prototype would still apply.
5340 The 'extern "C"' is for builds by C++ compilers;
5341 although this is not generally supported in C code supporting it here
5342 has little cost and some practical benefit (sr 110532). */
5343 #ifdef __cplusplus
5344 extern "C"
5345 #endif
5346 char socket (void);
5347 int
5348 main (void)
5349 {
5350 return socket ();
5351 ;
5352 return 0;
5353 }
5354 _ACEOF
5355 for ac_lib in '' socket
5356 do
5357 if test -z "$ac_lib"; then
5358 ac_res="none required"
5359 else
5360 ac_res=-l$ac_lib
5361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5362 fi
5363 if ac_fn_c_try_link "$LINENO"
5364 then :
5365 ac_cv_search_socket=$ac_res
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5368 conftest$ac_exeext
5369 if test ${ac_cv_search_socket+y}
5370 then :
5371 break
5372 fi
5373 done
5374 if test ${ac_cv_search_socket+y}
5375 then :
5376
5377 else case e in #(
5378 e) ac_cv_search_socket=no ;;
5379 esac
5380 fi
5381 rm conftest.$ac_ext
5382 LIBS=$ac_func_search_save_LIBS ;;
5383 esac
5384 fi
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5386 printf "%s\n" "$ac_cv_search_socket" >&6; }
5387 ac_res=$ac_cv_search_socket
5388 if test "$ac_res" != no
5389 then :
5390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5391
5392 fi
5393
5394
5395 # Solaris has inet_addr() in -lnsl.
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
5397 printf %s "checking for library containing inet_addr... " >&6; }
5398 if test ${ac_cv_search_inet_addr+y}
5399 then :
5400 printf %s "(cached) " >&6
5401 else case e in #(
5402 e) ac_func_search_save_LIBS=$LIBS
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405
5406 /* Override any GCC internal prototype to avoid an error.
5407 Use char because int might match the return type of a GCC
5408 builtin and then its argument prototype would still apply.
5409 The 'extern "C"' is for builds by C++ compilers;
5410 although this is not generally supported in C code supporting it here
5411 has little cost and some practical benefit (sr 110532). */
5412 #ifdef __cplusplus
5413 extern "C"
5414 #endif
5415 char inet_addr (void);
5416 int
5417 main (void)
5418 {
5419 return inet_addr ();
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 for ac_lib in '' nsl
5425 do
5426 if test -z "$ac_lib"; then
5427 ac_res="none required"
5428 else
5429 ac_res=-l$ac_lib
5430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5431 fi
5432 if ac_fn_c_try_link "$LINENO"
5433 then :
5434 ac_cv_search_inet_addr=$ac_res
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5437 conftest$ac_exeext
5438 if test ${ac_cv_search_inet_addr+y}
5439 then :
5440 break
5441 fi
5442 done
5443 if test ${ac_cv_search_inet_addr+y}
5444 then :
5445
5446 else case e in #(
5447 e) ac_cv_search_inet_addr=no ;;
5448 esac
5449 fi
5450 rm conftest.$ac_ext
5451 LIBS=$ac_func_search_save_LIBS ;;
5452 esac
5453 fi
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
5455 printf "%s\n" "$ac_cv_search_inet_addr" >&6; }
5456 ac_res=$ac_cv_search_inet_addr
5457 if test "$ac_res" != no
5458 then :
5459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5460
5461 fi
5462
5463
5464
5465
5466 ac_ext=c
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471 if test -n "$ac_tool_prefix"; then
5472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 printf %s "checking for $ac_word... " >&6; }
5476 if test ${ac_cv_prog_CC+y}
5477 then :
5478 printf %s "(cached) " >&6
5479 else case e in #(
5480 e) if test -n "$CC"; then
5481 ac_cv_prog_CC="$CC" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486 IFS=$as_save_IFS
5487 case $as_dir in #(((
5488 '') as_dir=./ ;;
5489 */) ;;
5490 *) as_dir=$as_dir/ ;;
5491 esac
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5496 break 2
5497 fi
5498 done
5499 done
5500 IFS=$as_save_IFS
5501
5502 fi ;;
5503 esac
5504 fi
5505 CC=$ac_cv_prog_CC
5506 if test -n "$CC"; then
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5508 printf "%s\n" "$CC" >&6; }
5509 else
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 printf "%s\n" "no" >&6; }
5512 fi
5513
5514
5515 fi
5516 if test -z "$ac_cv_prog_CC"; then
5517 ac_ct_CC=$CC
5518 # Extract the first word of "gcc", so it can be a program name with args.
5519 set dummy gcc; ac_word=$2
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 printf %s "checking for $ac_word... " >&6; }
5522 if test ${ac_cv_prog_ac_ct_CC+y}
5523 then :
5524 printf %s "(cached) " >&6
5525 else case e in #(
5526 e) if test -n "$ac_ct_CC"; then
5527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532 IFS=$as_save_IFS
5533 case $as_dir in #(((
5534 '') as_dir=./ ;;
5535 */) ;;
5536 *) as_dir=$as_dir/ ;;
5537 esac
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_ac_ct_CC="gcc"
5541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548 fi ;;
5549 esac
5550 fi
5551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5552 if test -n "$ac_ct_CC"; then
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5554 printf "%s\n" "$ac_ct_CC" >&6; }
5555 else
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 printf "%s\n" "no" >&6; }
5558 fi
5559
5560 if test "x$ac_ct_CC" = x; then
5561 CC=""
5562 else
5563 case $cross_compiling:$ac_tool_warned in
5564 yes:)
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5566 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5567 ac_tool_warned=yes ;;
5568 esac
5569 CC=$ac_ct_CC
5570 fi
5571 else
5572 CC="$ac_cv_prog_CC"
5573 fi
5574
5575 if test -z "$CC"; then
5576 if test -n "$ac_tool_prefix"; then
5577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5578 set dummy ${ac_tool_prefix}cc; ac_word=$2
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 printf %s "checking for $ac_word... " >&6; }
5581 if test ${ac_cv_prog_CC+y}
5582 then :
5583 printf %s "(cached) " >&6
5584 else case e in #(
5585 e) if test -n "$CC"; then
5586 ac_cv_prog_CC="$CC" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 case $as_dir in #(((
5593 '') as_dir=./ ;;
5594 */) ;;
5595 *) as_dir=$as_dir/ ;;
5596 esac
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_CC="${ac_tool_prefix}cc"
5600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603 done
5604 done
5605 IFS=$as_save_IFS
5606
5607 fi ;;
5608 esac
5609 fi
5610 CC=$ac_cv_prog_CC
5611 if test -n "$CC"; then
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5613 printf "%s\n" "$CC" >&6; }
5614 else
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 printf "%s\n" "no" >&6; }
5617 fi
5618
5619
5620 fi
5621 fi
5622 if test -z "$CC"; then
5623 # Extract the first word of "cc", so it can be a program name with args.
5624 set dummy cc; ac_word=$2
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 printf %s "checking for $ac_word... " >&6; }
5627 if test ${ac_cv_prog_CC+y}
5628 then :
5629 printf %s "(cached) " >&6
5630 else case e in #(
5631 e) if test -n "$CC"; then
5632 ac_cv_prog_CC="$CC" # Let the user override the test.
5633 else
5634 ac_prog_rejected=no
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638 IFS=$as_save_IFS
5639 case $as_dir in #(((
5640 '') as_dir=./ ;;
5641 */) ;;
5642 *) as_dir=$as_dir/ ;;
5643 esac
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5646 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5647 ac_prog_rejected=yes
5648 continue
5649 fi
5650 ac_cv_prog_CC="cc"
5651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 if test $ac_prog_rejected = yes; then
5659 # We found a bogon in the path, so make sure we never use it.
5660 set dummy $ac_cv_prog_CC
5661 shift
5662 if test $# != 0; then
5663 # We chose a different compiler from the bogus one.
5664 # However, it has the same basename, so the bogon will be chosen
5665 # first if we set CC to just the basename; use the full file name.
5666 shift
5667 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5668 fi
5669 fi
5670 fi ;;
5671 esac
5672 fi
5673 CC=$ac_cv_prog_CC
5674 if test -n "$CC"; then
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5676 printf "%s\n" "$CC" >&6; }
5677 else
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 printf "%s\n" "no" >&6; }
5680 fi
5681
5682
5683 fi
5684 if test -z "$CC"; then
5685 if test -n "$ac_tool_prefix"; then
5686 for ac_prog in cl.exe
5687 do
5688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 printf %s "checking for $ac_word... " >&6; }
5692 if test ${ac_cv_prog_CC+y}
5693 then :
5694 printf %s "(cached) " >&6
5695 else case e in #(
5696 e) if test -n "$CC"; then
5697 ac_cv_prog_CC="$CC" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702 IFS=$as_save_IFS
5703 case $as_dir in #(((
5704 '') as_dir=./ ;;
5705 */) ;;
5706 *) as_dir=$as_dir/ ;;
5707 esac
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714 done
5715 done
5716 IFS=$as_save_IFS
5717
5718 fi ;;
5719 esac
5720 fi
5721 CC=$ac_cv_prog_CC
5722 if test -n "$CC"; then
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5724 printf "%s\n" "$CC" >&6; }
5725 else
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 printf "%s\n" "no" >&6; }
5728 fi
5729
5730
5731 test -n "$CC" && break
5732 done
5733 fi
5734 if test -z "$CC"; then
5735 ac_ct_CC=$CC
5736 for ac_prog in cl.exe
5737 do
5738 # Extract the first word of "$ac_prog", so it can be a program name with args.
5739 set dummy $ac_prog; ac_word=$2
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 printf %s "checking for $ac_word... " >&6; }
5742 if test ${ac_cv_prog_ac_ct_CC+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else case e in #(
5746 e) if test -n "$ac_ct_CC"; then
5747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752 IFS=$as_save_IFS
5753 case $as_dir in #(((
5754 '') as_dir=./ ;;
5755 */) ;;
5756 *) as_dir=$as_dir/ ;;
5757 esac
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_ac_ct_CC="$ac_prog"
5761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768 fi ;;
5769 esac
5770 fi
5771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5772 if test -n "$ac_ct_CC"; then
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5774 printf "%s\n" "$ac_ct_CC" >&6; }
5775 else
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 printf "%s\n" "no" >&6; }
5778 fi
5779
5780
5781 test -n "$ac_ct_CC" && break
5782 done
5783
5784 if test "x$ac_ct_CC" = x; then
5785 CC=""
5786 else
5787 case $cross_compiling:$ac_tool_warned in
5788 yes:)
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned=yes ;;
5792 esac
5793 CC=$ac_ct_CC
5794 fi
5795 fi
5796
5797 fi
5798 if test -z "$CC"; then
5799 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5801 set dummy ${ac_tool_prefix}clang; ac_word=$2
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 printf %s "checking for $ac_word... " >&6; }
5804 if test ${ac_cv_prog_CC+y}
5805 then :
5806 printf %s "(cached) " >&6
5807 else case e in #(
5808 e) if test -n "$CC"; then
5809 ac_cv_prog_CC="$CC" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814 IFS=$as_save_IFS
5815 case $as_dir in #(((
5816 '') as_dir=./ ;;
5817 */) ;;
5818 *) as_dir=$as_dir/ ;;
5819 esac
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_CC="${ac_tool_prefix}clang"
5823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5824 break 2
5825 fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi ;;
5831 esac
5832 fi
5833 CC=$ac_cv_prog_CC
5834 if test -n "$CC"; then
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5836 printf "%s\n" "$CC" >&6; }
5837 else
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 printf "%s\n" "no" >&6; }
5840 fi
5841
5842
5843 fi
5844 if test -z "$ac_cv_prog_CC"; then
5845 ac_ct_CC=$CC
5846 # Extract the first word of "clang", so it can be a program name with args.
5847 set dummy clang; ac_word=$2
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 printf %s "checking for $ac_word... " >&6; }
5850 if test ${ac_cv_prog_ac_ct_CC+y}
5851 then :
5852 printf %s "(cached) " >&6
5853 else case e in #(
5854 e) if test -n "$ac_ct_CC"; then
5855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860 IFS=$as_save_IFS
5861 case $as_dir in #(((
5862 '') as_dir=./ ;;
5863 */) ;;
5864 *) as_dir=$as_dir/ ;;
5865 esac
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_ac_ct_CC="clang"
5869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872 done
5873 done
5874 IFS=$as_save_IFS
5875
5876 fi ;;
5877 esac
5878 fi
5879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5880 if test -n "$ac_ct_CC"; then
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5882 printf "%s\n" "$ac_ct_CC" >&6; }
5883 else
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 printf "%s\n" "no" >&6; }
5886 fi
5887
5888 if test "x$ac_ct_CC" = x; then
5889 CC=""
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897 CC=$ac_ct_CC
5898 fi
5899 else
5900 CC="$ac_cv_prog_CC"
5901 fi
5902
5903 fi
5904
5905
5906 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5907 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5908 as_fn_error $? "no acceptable C compiler found in \$PATH
5909 See 'config.log' for more details" "$LINENO" 5; }
5910
5911 # Provide some information about the compiler.
5912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5913 set X $ac_compile
5914 ac_compiler=$2
5915 for ac_option in --version -v -V -qversion -version; do
5916 { { ac_try="$ac_compiler $ac_option >&5"
5917 case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5922 printf "%s\n" "$ac_try_echo"; } >&5
5923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5924 ac_status=$?
5925 if test -s conftest.err; then
5926 sed '10a\
5927 ... rest of stderr output deleted ...
5928 10q' conftest.err >conftest.er1
5929 cat conftest.er1 >&5
5930 fi
5931 rm -f conftest.er1 conftest.err
5932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5933 test $ac_status = 0; }
5934 done
5935
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5937 printf %s "checking whether the compiler supports GNU C... " >&6; }
5938 if test ${ac_cv_c_compiler_gnu+y}
5939 then :
5940 printf %s "(cached) " >&6
5941 else case e in #(
5942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944
5945 int
5946 main (void)
5947 {
5948 #ifndef __GNUC__
5949 choke me
5950 #endif
5951
5952 ;
5953 return 0;
5954 }
5955 _ACEOF
5956 if ac_fn_c_try_compile "$LINENO"
5957 then :
5958 ac_compiler_gnu=yes
5959 else case e in #(
5960 e) ac_compiler_gnu=no ;;
5961 esac
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5965 ;;
5966 esac
5967 fi
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5969 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5971
5972 if test $ac_compiler_gnu = yes; then
5973 GCC=yes
5974 else
5975 GCC=
5976 fi
5977 ac_test_CFLAGS=${CFLAGS+y}
5978 ac_save_CFLAGS=$CFLAGS
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5980 printf %s "checking whether $CC accepts -g... " >&6; }
5981 if test ${ac_cv_prog_cc_g+y}
5982 then :
5983 printf %s "(cached) " >&6
5984 else case e in #(
5985 e) ac_save_c_werror_flag=$ac_c_werror_flag
5986 ac_c_werror_flag=yes
5987 ac_cv_prog_cc_g=no
5988 CFLAGS="-g"
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991
5992 int
5993 main (void)
5994 {
5995
5996 ;
5997 return 0;
5998 }
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"
6001 then :
6002 ac_cv_prog_cc_g=yes
6003 else case e in #(
6004 e) CFLAGS=""
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007
6008 int
6009 main (void)
6010 {
6011
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_compile "$LINENO"
6017 then :
6018
6019 else case e in #(
6020 e) ac_c_werror_flag=$ac_save_c_werror_flag
6021 CFLAGS="-g"
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024
6025 int
6026 main (void)
6027 {
6028
6029 ;
6030 return 0;
6031 }
6032 _ACEOF
6033 if ac_fn_c_try_compile "$LINENO"
6034 then :
6035 ac_cv_prog_cc_g=yes
6036 fi
6037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6038 esac
6039 fi
6040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6041 esac
6042 fi
6043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6044 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6045 esac
6046 fi
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6048 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6049 if test $ac_test_CFLAGS; then
6050 CFLAGS=$ac_save_CFLAGS
6051 elif test $ac_cv_prog_cc_g = yes; then
6052 if test "$GCC" = yes; then
6053 CFLAGS="-g -O2"
6054 else
6055 CFLAGS="-g"
6056 fi
6057 else
6058 if test "$GCC" = yes; then
6059 CFLAGS="-O2"
6060 else
6061 CFLAGS=
6062 fi
6063 fi
6064 ac_prog_cc_stdc=no
6065 if test x$ac_prog_cc_stdc = xno
6066 then :
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6068 printf %s "checking for $CC option to enable C11 features... " >&6; }
6069 if test ${ac_cv_prog_cc_c11+y}
6070 then :
6071 printf %s "(cached) " >&6
6072 else case e in #(
6073 e) ac_cv_prog_cc_c11=no
6074 ac_save_CC=$CC
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 $ac_c_conftest_c11_program
6078 _ACEOF
6079 for ac_arg in '' -std=gnu11
6080 do
6081 CC="$ac_save_CC $ac_arg"
6082 if ac_fn_c_try_compile "$LINENO"
6083 then :
6084 ac_cv_prog_cc_c11=$ac_arg
6085 fi
6086 rm -f core conftest.err conftest.$ac_objext conftest.beam
6087 test "x$ac_cv_prog_cc_c11" != "xno" && break
6088 done
6089 rm -f conftest.$ac_ext
6090 CC=$ac_save_CC ;;
6091 esac
6092 fi
6093
6094 if test "x$ac_cv_prog_cc_c11" = xno
6095 then :
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6097 printf "%s\n" "unsupported" >&6; }
6098 else case e in #(
6099 e) if test "x$ac_cv_prog_cc_c11" = x
6100 then :
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6102 printf "%s\n" "none needed" >&6; }
6103 else case e in #(
6104 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6105 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6106 CC="$CC $ac_cv_prog_cc_c11" ;;
6107 esac
6108 fi
6109 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6110 ac_prog_cc_stdc=c11 ;;
6111 esac
6112 fi
6113 fi
6114 if test x$ac_prog_cc_stdc = xno
6115 then :
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6117 printf %s "checking for $CC option to enable C99 features... " >&6; }
6118 if test ${ac_cv_prog_cc_c99+y}
6119 then :
6120 printf %s "(cached) " >&6
6121 else case e in #(
6122 e) ac_cv_prog_cc_c99=no
6123 ac_save_CC=$CC
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 $ac_c_conftest_c99_program
6127 _ACEOF
6128 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6129 do
6130 CC="$ac_save_CC $ac_arg"
6131 if ac_fn_c_try_compile "$LINENO"
6132 then :
6133 ac_cv_prog_cc_c99=$ac_arg
6134 fi
6135 rm -f core conftest.err conftest.$ac_objext conftest.beam
6136 test "x$ac_cv_prog_cc_c99" != "xno" && break
6137 done
6138 rm -f conftest.$ac_ext
6139 CC=$ac_save_CC ;;
6140 esac
6141 fi
6142
6143 if test "x$ac_cv_prog_cc_c99" = xno
6144 then :
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6146 printf "%s\n" "unsupported" >&6; }
6147 else case e in #(
6148 e) if test "x$ac_cv_prog_cc_c99" = x
6149 then :
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6151 printf "%s\n" "none needed" >&6; }
6152 else case e in #(
6153 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6154 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6155 CC="$CC $ac_cv_prog_cc_c99" ;;
6156 esac
6157 fi
6158 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6159 ac_prog_cc_stdc=c99 ;;
6160 esac
6161 fi
6162 fi
6163 if test x$ac_prog_cc_stdc = xno
6164 then :
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6166 printf %s "checking for $CC option to enable C89 features... " >&6; }
6167 if test ${ac_cv_prog_cc_c89+y}
6168 then :
6169 printf %s "(cached) " >&6
6170 else case e in #(
6171 e) ac_cv_prog_cc_c89=no
6172 ac_save_CC=$CC
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 $ac_c_conftest_c89_program
6176 _ACEOF
6177 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6178 do
6179 CC="$ac_save_CC $ac_arg"
6180 if ac_fn_c_try_compile "$LINENO"
6181 then :
6182 ac_cv_prog_cc_c89=$ac_arg
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.beam
6185 test "x$ac_cv_prog_cc_c89" != "xno" && break
6186 done
6187 rm -f conftest.$ac_ext
6188 CC=$ac_save_CC ;;
6189 esac
6190 fi
6191
6192 if test "x$ac_cv_prog_cc_c89" = xno
6193 then :
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6195 printf "%s\n" "unsupported" >&6; }
6196 else case e in #(
6197 e) if test "x$ac_cv_prog_cc_c89" = x
6198 then :
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6200 printf "%s\n" "none needed" >&6; }
6201 else case e in #(
6202 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6203 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6204 CC="$CC $ac_cv_prog_cc_c89" ;;
6205 esac
6206 fi
6207 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6208 ac_prog_cc_stdc=c89 ;;
6209 esac
6210 fi
6211 fi
6212
6213 ac_ext=c
6214 ac_cpp='$CPP $CPPFLAGS'
6215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219
6220 ac_ext=c
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6226 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6227 if test ${am_cv_prog_cc_c_o+y}
6228 then :
6229 printf %s "(cached) " >&6
6230 else case e in #(
6231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233
6234 int
6235 main (void)
6236 {
6237
6238 ;
6239 return 0;
6240 }
6241 _ACEOF
6242 # Make sure it works both with $CC and with simple cc.
6243 # Following AC_PROG_CC_C_O, we do the test twice because some
6244 # compilers refuse to overwrite an existing .o file with -o,
6245 # though they will create one.
6246 am_cv_prog_cc_c_o=yes
6247 for am_i in 1 2; do
6248 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6249 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } \
6253 && test -f conftest2.$ac_objext; then
6254 : OK
6255 else
6256 am_cv_prog_cc_c_o=no
6257 break
6258 fi
6259 done
6260 rm -f core conftest*
6261 unset am_i ;;
6262 esac
6263 fi
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6265 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6266 if test "$am_cv_prog_cc_c_o" != yes; then
6267 # Losing compiler, so override with the script.
6268 # FIXME: It is wrong to rewrite CC.
6269 # But if we don't then we get into trouble of one sort or another.
6270 # A longer-term fix would be to have automake use am__CC in this case,
6271 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6272 CC="$am_aux_dir/compile $CC"
6273 fi
6274 ac_ext=c
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279
6280
6281 depcc="$CC" am_compiler_list=
6282
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6284 printf %s "checking dependency style of $depcc... " >&6; }
6285 if test ${am_cv_CC_dependencies_compiler_type+y}
6286 then :
6287 printf %s "(cached) " >&6
6288 else case e in #(
6289 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6290 # We make a subdir and do the tests there. Otherwise we can end up
6291 # making bogus files that we don't know about and never remove. For
6292 # instance it was reported that on HP-UX the gcc test will end up
6293 # making a dummy file named 'D' -- because '-MD' means "put the output
6294 # in D".
6295 rm -rf conftest.dir
6296 mkdir conftest.dir
6297 # Copy depcomp to subdir because otherwise we won't find it if we're
6298 # using a relative directory.
6299 cp "$am_depcomp" conftest.dir
6300 cd conftest.dir
6301 # We will build objects and dependencies in a subdirectory because
6302 # it helps to detect inapplicable dependency modes. For instance
6303 # both Tru64's cc and ICC support -MD to output dependencies as a
6304 # side effect of compilation, but ICC will put the dependencies in
6305 # the current directory while Tru64 will put them in the object
6306 # directory.
6307 mkdir sub
6308
6309 am_cv_CC_dependencies_compiler_type=none
6310 if test "$am_compiler_list" = ""; then
6311 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6312 fi
6313 am__universal=false
6314 case " $depcc " in #(
6315 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6316 esac
6317
6318 for depmode in $am_compiler_list; do
6319 # Setup a source with many dependencies, because some compilers
6320 # like to wrap large dependency lists on column 80 (with \), and
6321 # we should not choose a depcomp mode which is confused by this.
6322 #
6323 # We need to recreate these files for each test, as the compiler may
6324 # overwrite some of them when testing with obscure command lines.
6325 # This happens at least with the AIX C compiler.
6326 : > sub/conftest.c
6327 for i in 1 2 3 4 5 6; do
6328 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6329 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6330 # Solaris 10 /bin/sh.
6331 echo '/* dummy */' > sub/conftst$i.h
6332 done
6333 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6334
6335 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6336 # mode. It turns out that the SunPro C++ compiler does not properly
6337 # handle '-M -o', and we need to detect this. Also, some Intel
6338 # versions had trouble with output in subdirs.
6339 am__obj=sub/conftest.${OBJEXT-o}
6340 am__minus_obj="-o $am__obj"
6341 case $depmode in
6342 gcc)
6343 # This depmode causes a compiler race in universal mode.
6344 test "$am__universal" = false || continue
6345 ;;
6346 nosideeffect)
6347 # After this tag, mechanisms are not by side-effect, so they'll
6348 # only be used when explicitly requested.
6349 if test "x$enable_dependency_tracking" = xyes; then
6350 continue
6351 else
6352 break
6353 fi
6354 ;;
6355 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6356 # This compiler won't grok '-c -o', but also, the minuso test has
6357 # not run yet. These depmodes are late enough in the game, and
6358 # so weak that their functioning should not be impacted.
6359 am__obj=conftest.${OBJEXT-o}
6360 am__minus_obj=
6361 ;;
6362 none) break ;;
6363 esac
6364 if depmode=$depmode \
6365 source=sub/conftest.c object=$am__obj \
6366 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6367 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6368 >/dev/null 2>conftest.err &&
6369 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6370 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6371 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6372 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6373 # icc doesn't choke on unknown options, it will just issue warnings
6374 # or remarks (even with -Werror). So we grep stderr for any message
6375 # that says an option was ignored or not supported.
6376 # When given -MP, icc 7.0 and 7.1 complain thusly:
6377 # icc: Command line warning: ignoring option '-M'; no argument required
6378 # The diagnosis changed in icc 8.0:
6379 # icc: Command line remark: option '-MP' not supported
6380 if (grep 'ignoring option' conftest.err ||
6381 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6382 am_cv_CC_dependencies_compiler_type=$depmode
6383 break
6384 fi
6385 fi
6386 done
6387
6388 cd ..
6389 rm -rf conftest.dir
6390 else
6391 am_cv_CC_dependencies_compiler_type=none
6392 fi
6393 ;;
6394 esac
6395 fi
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6397 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6398 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6399
6400 if
6401 test "x$enable_dependency_tracking" != xno \
6402 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6403 am__fastdepCC_TRUE=
6404 am__fastdepCC_FALSE='#'
6405 else
6406 am__fastdepCC_TRUE='#'
6407 am__fastdepCC_FALSE=
6408 fi
6409
6410
6411
6412
6413
6414
6415
6416
6417 ac_ext=cpp
6418 ac_cpp='$CXXCPP $CPPFLAGS'
6419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6422 if test -z "$CXX"; then
6423 if test -n "$CCC"; then
6424 CXX=$CCC
6425 else
6426 if test -n "$ac_tool_prefix"; then
6427 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6428 do
6429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 printf %s "checking for $ac_word... " >&6; }
6433 if test ${ac_cv_prog_CXX+y}
6434 then :
6435 printf %s "(cached) " >&6
6436 else case e in #(
6437 e) if test -n "$CXX"; then
6438 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443 IFS=$as_save_IFS
6444 case $as_dir in #(((
6445 '') as_dir=./ ;;
6446 */) ;;
6447 *) as_dir=$as_dir/ ;;
6448 esac
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6451 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi ;;
6460 esac
6461 fi
6462 CXX=$ac_cv_prog_CXX
6463 if test -n "$CXX"; then
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6465 printf "%s\n" "$CXX" >&6; }
6466 else
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 printf "%s\n" "no" >&6; }
6469 fi
6470
6471
6472 test -n "$CXX" && break
6473 done
6474 fi
6475 if test -z "$CXX"; then
6476 ac_ct_CXX=$CXX
6477 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6478 do
6479 # Extract the first word of "$ac_prog", so it can be a program name with args.
6480 set dummy $ac_prog; ac_word=$2
6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 printf %s "checking for $ac_word... " >&6; }
6483 if test ${ac_cv_prog_ac_ct_CXX+y}
6484 then :
6485 printf %s "(cached) " >&6
6486 else case e in #(
6487 e) if test -n "$ac_ct_CXX"; then
6488 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493 IFS=$as_save_IFS
6494 case $as_dir in #(((
6495 '') as_dir=./ ;;
6496 */) ;;
6497 *) as_dir=$as_dir/ ;;
6498 esac
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6501 ac_cv_prog_ac_ct_CXX="$ac_prog"
6502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509 fi ;;
6510 esac
6511 fi
6512 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6513 if test -n "$ac_ct_CXX"; then
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6515 printf "%s\n" "$ac_ct_CXX" >&6; }
6516 else
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 printf "%s\n" "no" >&6; }
6519 fi
6520
6521
6522 test -n "$ac_ct_CXX" && break
6523 done
6524
6525 if test "x$ac_ct_CXX" = x; then
6526 CXX="g++"
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534 CXX=$ac_ct_CXX
6535 fi
6536 fi
6537
6538 fi
6539 fi
6540 # Provide some information about the compiler.
6541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6542 set X $ac_compile
6543 ac_compiler=$2
6544 for ac_option in --version -v -V -qversion; do
6545 { { ac_try="$ac_compiler $ac_option >&5"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6551 printf "%s\n" "$ac_try_echo"; } >&5
6552 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6553 ac_status=$?
6554 if test -s conftest.err; then
6555 sed '10a\
6556 ... rest of stderr output deleted ...
6557 10q' conftest.err >conftest.er1
6558 cat conftest.er1 >&5
6559 fi
6560 rm -f conftest.er1 conftest.err
6561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6562 test $ac_status = 0; }
6563 done
6564
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6566 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6567 if test ${ac_cv_cxx_compiler_gnu+y}
6568 then :
6569 printf %s "(cached) " >&6
6570 else case e in #(
6571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573
6574 int
6575 main (void)
6576 {
6577 #ifndef __GNUC__
6578 choke me
6579 #endif
6580
6581 ;
6582 return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_cxx_try_compile "$LINENO"
6586 then :
6587 ac_compiler_gnu=yes
6588 else case e in #(
6589 e) ac_compiler_gnu=no ;;
6590 esac
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6593 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6594 ;;
6595 esac
6596 fi
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6598 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6600
6601 if test $ac_compiler_gnu = yes; then
6602 GXX=yes
6603 else
6604 GXX=
6605 fi
6606 ac_test_CXXFLAGS=${CXXFLAGS+y}
6607 ac_save_CXXFLAGS=$CXXFLAGS
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6609 printf %s "checking whether $CXX accepts -g... " >&6; }
6610 if test ${ac_cv_prog_cxx_g+y}
6611 then :
6612 printf %s "(cached) " >&6
6613 else case e in #(
6614 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6615 ac_cxx_werror_flag=yes
6616 ac_cv_prog_cxx_g=no
6617 CXXFLAGS="-g"
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620
6621 int
6622 main (void)
6623 {
6624
6625 ;
6626 return 0;
6627 }
6628 _ACEOF
6629 if ac_fn_cxx_try_compile "$LINENO"
6630 then :
6631 ac_cv_prog_cxx_g=yes
6632 else case e in #(
6633 e) CXXFLAGS=""
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6636
6637 int
6638 main (void)
6639 {
6640
6641 ;
6642 return 0;
6643 }
6644 _ACEOF
6645 if ac_fn_cxx_try_compile "$LINENO"
6646 then :
6647
6648 else case e in #(
6649 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6650 CXXFLAGS="-g"
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653
6654 int
6655 main (void)
6656 {
6657
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_cxx_try_compile "$LINENO"
6663 then :
6664 ac_cv_prog_cxx_g=yes
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6667 esac
6668 fi
6669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6670 esac
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6674 esac
6675 fi
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6677 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6678 if test $ac_test_CXXFLAGS; then
6679 CXXFLAGS=$ac_save_CXXFLAGS
6680 elif test $ac_cv_prog_cxx_g = yes; then
6681 if test "$GXX" = yes; then
6682 CXXFLAGS="-g -O2"
6683 else
6684 CXXFLAGS="-g"
6685 fi
6686 else
6687 if test "$GXX" = yes; then
6688 CXXFLAGS="-O2"
6689 else
6690 CXXFLAGS=
6691 fi
6692 fi
6693 ac_prog_cxx_stdcxx=no
6694 if test x$ac_prog_cxx_stdcxx = xno
6695 then :
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6697 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6698 if test ${ac_cv_prog_cxx_cxx11+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else case e in #(
6702 e) ac_cv_prog_cxx_cxx11=no
6703 ac_save_CXX=$CXX
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 $ac_cxx_conftest_cxx11_program
6707 _ACEOF
6708 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6709 do
6710 CXX="$ac_save_CXX $ac_arg"
6711 if ac_fn_cxx_try_compile "$LINENO"
6712 then :
6713 ac_cv_prog_cxx_cxx11=$ac_arg
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext conftest.beam
6716 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6717 done
6718 rm -f conftest.$ac_ext
6719 CXX=$ac_save_CXX ;;
6720 esac
6721 fi
6722
6723 if test "x$ac_cv_prog_cxx_cxx11" = xno
6724 then :
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6726 printf "%s\n" "unsupported" >&6; }
6727 else case e in #(
6728 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6729 then :
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6731 printf "%s\n" "none needed" >&6; }
6732 else case e in #(
6733 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6734 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6735 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6736 esac
6737 fi
6738 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6739 ac_prog_cxx_stdcxx=cxx11 ;;
6740 esac
6741 fi
6742 fi
6743 if test x$ac_prog_cxx_stdcxx = xno
6744 then :
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6746 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6747 if test ${ac_cv_prog_cxx_cxx98+y}
6748 then :
6749 printf %s "(cached) " >&6
6750 else case e in #(
6751 e) ac_cv_prog_cxx_cxx98=no
6752 ac_save_CXX=$CXX
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 $ac_cxx_conftest_cxx98_program
6756 _ACEOF
6757 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6758 do
6759 CXX="$ac_save_CXX $ac_arg"
6760 if ac_fn_cxx_try_compile "$LINENO"
6761 then :
6762 ac_cv_prog_cxx_cxx98=$ac_arg
6763 fi
6764 rm -f core conftest.err conftest.$ac_objext conftest.beam
6765 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6766 done
6767 rm -f conftest.$ac_ext
6768 CXX=$ac_save_CXX ;;
6769 esac
6770 fi
6771
6772 if test "x$ac_cv_prog_cxx_cxx98" = xno
6773 then :
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6775 printf "%s\n" "unsupported" >&6; }
6776 else case e in #(
6777 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6778 then :
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6780 printf "%s\n" "none needed" >&6; }
6781 else case e in #(
6782 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6783 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6784 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6785 esac
6786 fi
6787 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6788 ac_prog_cxx_stdcxx=cxx98 ;;
6789 esac
6790 fi
6791 fi
6792
6793 ac_ext=c
6794 ac_cpp='$CPP $CPPFLAGS'
6795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6798
6799 depcc="$CXX" am_compiler_list=
6800
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6802 printf %s "checking dependency style of $depcc... " >&6; }
6803 if test ${am_cv_CXX_dependencies_compiler_type+y}
6804 then :
6805 printf %s "(cached) " >&6
6806 else case e in #(
6807 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6808 # We make a subdir and do the tests there. Otherwise we can end up
6809 # making bogus files that we don't know about and never remove. For
6810 # instance it was reported that on HP-UX the gcc test will end up
6811 # making a dummy file named 'D' -- because '-MD' means "put the output
6812 # in D".
6813 rm -rf conftest.dir
6814 mkdir conftest.dir
6815 # Copy depcomp to subdir because otherwise we won't find it if we're
6816 # using a relative directory.
6817 cp "$am_depcomp" conftest.dir
6818 cd conftest.dir
6819 # We will build objects and dependencies in a subdirectory because
6820 # it helps to detect inapplicable dependency modes. For instance
6821 # both Tru64's cc and ICC support -MD to output dependencies as a
6822 # side effect of compilation, but ICC will put the dependencies in
6823 # the current directory while Tru64 will put them in the object
6824 # directory.
6825 mkdir sub
6826
6827 am_cv_CXX_dependencies_compiler_type=none
6828 if test "$am_compiler_list" = ""; then
6829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6830 fi
6831 am__universal=false
6832 case " $depcc " in #(
6833 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6834 esac
6835
6836 for depmode in $am_compiler_list; do
6837 # Setup a source with many dependencies, because some compilers
6838 # like to wrap large dependency lists on column 80 (with \), and
6839 # we should not choose a depcomp mode which is confused by this.
6840 #
6841 # We need to recreate these files for each test, as the compiler may
6842 # overwrite some of them when testing with obscure command lines.
6843 # This happens at least with the AIX C compiler.
6844 : > sub/conftest.c
6845 for i in 1 2 3 4 5 6; do
6846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6847 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6848 # Solaris 10 /bin/sh.
6849 echo '/* dummy */' > sub/conftst$i.h
6850 done
6851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6852
6853 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6854 # mode. It turns out that the SunPro C++ compiler does not properly
6855 # handle '-M -o', and we need to detect this. Also, some Intel
6856 # versions had trouble with output in subdirs.
6857 am__obj=sub/conftest.${OBJEXT-o}
6858 am__minus_obj="-o $am__obj"
6859 case $depmode in
6860 gcc)
6861 # This depmode causes a compiler race in universal mode.
6862 test "$am__universal" = false || continue
6863 ;;
6864 nosideeffect)
6865 # After this tag, mechanisms are not by side-effect, so they'll
6866 # only be used when explicitly requested.
6867 if test "x$enable_dependency_tracking" = xyes; then
6868 continue
6869 else
6870 break
6871 fi
6872 ;;
6873 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6874 # This compiler won't grok '-c -o', but also, the minuso test has
6875 # not run yet. These depmodes are late enough in the game, and
6876 # so weak that their functioning should not be impacted.
6877 am__obj=conftest.${OBJEXT-o}
6878 am__minus_obj=
6879 ;;
6880 none) break ;;
6881 esac
6882 if depmode=$depmode \
6883 source=sub/conftest.c object=$am__obj \
6884 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6885 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6886 >/dev/null 2>conftest.err &&
6887 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6889 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6891 # icc doesn't choke on unknown options, it will just issue warnings
6892 # or remarks (even with -Werror). So we grep stderr for any message
6893 # that says an option was ignored or not supported.
6894 # When given -MP, icc 7.0 and 7.1 complain thusly:
6895 # icc: Command line warning: ignoring option '-M'; no argument required
6896 # The diagnosis changed in icc 8.0:
6897 # icc: Command line remark: option '-MP' not supported
6898 if (grep 'ignoring option' conftest.err ||
6899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6900 am_cv_CXX_dependencies_compiler_type=$depmode
6901 break
6902 fi
6903 fi
6904 done
6905
6906 cd ..
6907 rm -rf conftest.dir
6908 else
6909 am_cv_CXX_dependencies_compiler_type=none
6910 fi
6911 ;;
6912 esac
6913 fi
6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6915 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6916 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6917
6918 if
6919 test "x$enable_dependency_tracking" != xno \
6920 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6921 am__fastdepCXX_TRUE=
6922 am__fastdepCXX_FALSE='#'
6923 else
6924 am__fastdepCXX_TRUE='#'
6925 am__fastdepCXX_FALSE=
6926 fi
6927
6928
6929
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6931 printf %s "checking whether ln -s works... " >&6; }
6932 LN_S=$as_ln_s
6933 if test "$LN_S" = "ln -s"; then
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6935 printf "%s\n" "yes" >&6; }
6936 else
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6938 printf "%s\n" "no, using $LN_S" >&6; }
6939 fi
6940
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6942 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6943 set x ${MAKE-make}
6944 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6945 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6946 then :
6947 printf %s "(cached) " >&6
6948 else case e in #(
6949 e) cat >conftest.make <<\_ACEOF
6950 SHELL = /bin/sh
6951 all:
6952 @echo '@@@%%%=$(MAKE)=@@@%%%'
6953 _ACEOF
6954 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6955 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6956 *@@@%%%=?*=@@@%%%*)
6957 eval ac_cv_prog_make_${ac_make}_set=yes;;
6958 *)
6959 eval ac_cv_prog_make_${ac_make}_set=no;;
6960 esac
6961 rm -f conftest.make ;;
6962 esac
6963 fi
6964 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6966 printf "%s\n" "yes" >&6; }
6967 SET_MAKE=
6968 else
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 printf "%s\n" "no" >&6; }
6971 SET_MAKE="MAKE=${MAKE-make}"
6972 fi
6973
6974 for ac_prog in sshd
6975 do
6976 # Extract the first word of "$ac_prog", so it can be a program name with args.
6977 set dummy $ac_prog; ac_word=$2
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 printf %s "checking for $ac_word... " >&6; }
6980 if test ${ac_cv_path_SSHD+y}
6981 then :
6982 printf %s "(cached) " >&6
6983 else case e in #(
6984 e) case $SSHD in
6985 [\\/]* | ?:[\\/]*)
6986 ac_cv_path_SSHD="$SSHD" # Let the user override the test with a path.
6987 ;;
6988 *)
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH$PATH_SEPARATOR/usr/libexec$PATH_SEPARATOR /usr/sbin$PATH_SEPARATOR/usr/etc$PATH_SEPARATOR/etc
6991 do
6992 IFS=$as_save_IFS
6993 case $as_dir in #(((
6994 '') as_dir=./ ;;
6995 */) ;;
6996 *) as_dir=$as_dir/ ;;
6997 esac
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7000 ac_cv_path_SSHD="$as_dir$ac_word$ac_exec_ext"
7001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 ;;
7009 esac ;;
7010 esac
7011 fi
7012 SSHD=$ac_cv_path_SSHD
7013 if test -n "$SSHD"; then
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SSHD" >&5
7015 printf "%s\n" "$SSHD" >&6; }
7016 else
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 printf "%s\n" "no" >&6; }
7019 fi
7020
7021
7022 test -n "$SSHD" && break
7023 done
7024
7025 if test -n "$SSHD"; then
7026 SSHD_TRUE=
7027 SSHD_FALSE='#'
7028 else
7029 SSHD_TRUE='#'
7030 SSHD_FALSE=
7031 fi
7032
7033 case `pwd` in
7034 *\ * | *\ *)
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7036 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7037 esac
7038
7039
7040
7041 macro_version='2.4.7'
7042 macro_revision='2.4.7'
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057 ltmain=$ac_aux_dir/ltmain.sh
7058
7059 # Backslashify metacharacters that are still active within
7060 # double-quoted strings.
7061 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7062
7063 # Same as above, but do not quote variable references.
7064 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7065
7066 # Sed substitution to delay expansion of an escaped shell variable in a
7067 # double_quote_subst'ed string.
7068 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7069
7070 # Sed substitution to delay expansion of an escaped single quote.
7071 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7072
7073 # Sed substitution to avoid accidental globbing in evaled expressions
7074 no_glob_subst='s/\*/\\\*/g'
7075
7076 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7078 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7079
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7081 printf %s "checking how to print strings... " >&6; }
7082 # Test print first, because it will be a builtin if present.
7083 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7084 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7085 ECHO='print -r --'
7086 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7087 ECHO='printf %s\n'
7088 else
7089 # Use this function as a fallback that always works.
7090 func_fallback_echo ()
7091 {
7092 eval 'cat <<_LTECHO_EOF
7093 $1
7094 _LTECHO_EOF'
7095 }
7096 ECHO='func_fallback_echo'
7097 fi
7098
7099 # func_echo_all arg...
7100 # Invoke $ECHO with all args, space-separated.
7101 func_echo_all ()
7102 {
7103 $ECHO ""
7104 }
7105
7106 case $ECHO in
7107 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7108 printf "%s\n" "printf" >&6; } ;;
7109 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7110 printf "%s\n" "print -r" >&6; } ;;
7111 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7112 printf "%s\n" "cat" >&6; } ;;
7113 esac
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7129 printf %s "checking for a sed that does not truncate output... " >&6; }
7130 if test ${ac_cv_path_SED+y}
7131 then :
7132 printf %s "(cached) " >&6
7133 else case e in #(
7134 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7135 for ac_i in 1 2 3 4 5 6 7; do
7136 ac_script="$ac_script$as_nl$ac_script"
7137 done
7138 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7139 { ac_script=; unset ac_script;}
7140 if test -z "$SED"; then
7141 ac_path_SED_found=false
7142 # Loop through the user's path and test for each of PROGNAME-LIST
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146 IFS=$as_save_IFS
7147 case $as_dir in #(((
7148 '') as_dir=./ ;;
7149 */) ;;
7150 *) as_dir=$as_dir/ ;;
7151 esac
7152 for ac_prog in sed gsed
7153 do
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7156 as_fn_executable_p "$ac_path_SED" || continue
7157 # Check for GNU ac_path_SED and select it if it is found.
7158 # Check for GNU $ac_path_SED
7159 case `"$ac_path_SED" --version 2>&1` in #(
7160 *GNU*)
7161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7162 #(
7163 *)
7164 ac_count=0
7165 printf %s 0123456789 >"conftest.in"
7166 while :
7167 do
7168 cat "conftest.in" "conftest.in" >"conftest.tmp"
7169 mv "conftest.tmp" "conftest.in"
7170 cp "conftest.in" "conftest.nl"
7171 printf "%s\n" '' >> "conftest.nl"
7172 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7174 as_fn_arith $ac_count + 1 && ac_count=$as_val
7175 if test $ac_count -gt ${ac_path_SED_max-0}; then
7176 # Best one so far, save it but keep looking for a better one
7177 ac_cv_path_SED="$ac_path_SED"
7178 ac_path_SED_max=$ac_count
7179 fi
7180 # 10*(2^10) chars as input seems more than enough
7181 test $ac_count -gt 10 && break
7182 done
7183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7184 esac
7185
7186 $ac_path_SED_found && break 3
7187 done
7188 done
7189 done
7190 IFS=$as_save_IFS
7191 if test -z "$ac_cv_path_SED"; then
7192 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7193 fi
7194 else
7195 ac_cv_path_SED=$SED
7196 fi
7197 ;;
7198 esac
7199 fi
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7201 printf "%s\n" "$ac_cv_path_SED" >&6; }
7202 SED="$ac_cv_path_SED"
7203 rm -f conftest.sed
7204
7205 test -z "$SED" && SED=sed
7206 Xsed="$SED -e 1s/^X//"
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7219 printf %s "checking for grep that handles long lines and -e... " >&6; }
7220 if test ${ac_cv_path_GREP+y}
7221 then :
7222 printf %s "(cached) " >&6
7223 else case e in #(
7224 e) if test -z "$GREP"; then
7225 ac_path_GREP_found=false
7226 # Loop through the user's path and test for each of PROGNAME-LIST
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7229 do
7230 IFS=$as_save_IFS
7231 case $as_dir in #(((
7232 '') as_dir=./ ;;
7233 */) ;;
7234 *) as_dir=$as_dir/ ;;
7235 esac
7236 for ac_prog in grep ggrep
7237 do
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7240 as_fn_executable_p "$ac_path_GREP" || continue
7241 # Check for GNU ac_path_GREP and select it if it is found.
7242 # Check for GNU $ac_path_GREP
7243 case `"$ac_path_GREP" --version 2>&1` in #(
7244 *GNU*)
7245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7246 #(
7247 *)
7248 ac_count=0
7249 printf %s 0123456789 >"conftest.in"
7250 while :
7251 do
7252 cat "conftest.in" "conftest.in" >"conftest.tmp"
7253 mv "conftest.tmp" "conftest.in"
7254 cp "conftest.in" "conftest.nl"
7255 printf "%s\n" 'GREP' >> "conftest.nl"
7256 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7258 as_fn_arith $ac_count + 1 && ac_count=$as_val
7259 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7260 # Best one so far, save it but keep looking for a better one
7261 ac_cv_path_GREP="$ac_path_GREP"
7262 ac_path_GREP_max=$ac_count
7263 fi
7264 # 10*(2^10) chars as input seems more than enough
7265 test $ac_count -gt 10 && break
7266 done
7267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7268 esac
7269
7270 $ac_path_GREP_found && break 3
7271 done
7272 done
7273 done
7274 IFS=$as_save_IFS
7275 if test -z "$ac_cv_path_GREP"; then
7276 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7277 fi
7278 else
7279 ac_cv_path_GREP=$GREP
7280 fi
7281 ;;
7282 esac
7283 fi
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7285 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7286 GREP="$ac_cv_path_GREP"
7287
7288
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7290 printf %s "checking for egrep... " >&6; }
7291 if test ${ac_cv_path_EGREP+y}
7292 then :
7293 printf %s "(cached) " >&6
7294 else case e in #(
7295 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7296 then ac_cv_path_EGREP="$GREP -E"
7297 else
7298 if test -z "$EGREP"; then
7299 ac_path_EGREP_found=false
7300 # Loop through the user's path and test for each of PROGNAME-LIST
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7303 do
7304 IFS=$as_save_IFS
7305 case $as_dir in #(((
7306 '') as_dir=./ ;;
7307 */) ;;
7308 *) as_dir=$as_dir/ ;;
7309 esac
7310 for ac_prog in egrep
7311 do
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7314 as_fn_executable_p "$ac_path_EGREP" || continue
7315 # Check for GNU ac_path_EGREP and select it if it is found.
7316 # Check for GNU $ac_path_EGREP
7317 case `"$ac_path_EGREP" --version 2>&1` in #(
7318 *GNU*)
7319 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7320 #(
7321 *)
7322 ac_count=0
7323 printf %s 0123456789 >"conftest.in"
7324 while :
7325 do
7326 cat "conftest.in" "conftest.in" >"conftest.tmp"
7327 mv "conftest.tmp" "conftest.in"
7328 cp "conftest.in" "conftest.nl"
7329 printf "%s\n" 'EGREP' >> "conftest.nl"
7330 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7332 as_fn_arith $ac_count + 1 && ac_count=$as_val
7333 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7334 # Best one so far, save it but keep looking for a better one
7335 ac_cv_path_EGREP="$ac_path_EGREP"
7336 ac_path_EGREP_max=$ac_count
7337 fi
7338 # 10*(2^10) chars as input seems more than enough
7339 test $ac_count -gt 10 && break
7340 done
7341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7342 esac
7343
7344 $ac_path_EGREP_found && break 3
7345 done
7346 done
7347 done
7348 IFS=$as_save_IFS
7349 if test -z "$ac_cv_path_EGREP"; then
7350 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7351 fi
7352 else
7353 ac_cv_path_EGREP=$EGREP
7354 fi
7355
7356 fi ;;
7357 esac
7358 fi
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7360 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7361 EGREP="$ac_cv_path_EGREP"
7362
7363 EGREP_TRADITIONAL=$EGREP
7364 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7365
7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7367 printf %s "checking for fgrep... " >&6; }
7368 if test ${ac_cv_path_FGREP+y}
7369 then :
7370 printf %s "(cached) " >&6
7371 else case e in #(
7372 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7373 then ac_cv_path_FGREP="$GREP -F"
7374 else
7375 if test -z "$FGREP"; then
7376 ac_path_FGREP_found=false
7377 # Loop through the user's path and test for each of PROGNAME-LIST
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7380 do
7381 IFS=$as_save_IFS
7382 case $as_dir in #(((
7383 '') as_dir=./ ;;
7384 */) ;;
7385 *) as_dir=$as_dir/ ;;
7386 esac
7387 for ac_prog in fgrep
7388 do
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7391 as_fn_executable_p "$ac_path_FGREP" || continue
7392 # Check for GNU ac_path_FGREP and select it if it is found.
7393 # Check for GNU $ac_path_FGREP
7394 case `"$ac_path_FGREP" --version 2>&1` in #(
7395 *GNU*)
7396 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7397 #(
7398 *)
7399 ac_count=0
7400 printf %s 0123456789 >"conftest.in"
7401 while :
7402 do
7403 cat "conftest.in" "conftest.in" >"conftest.tmp"
7404 mv "conftest.tmp" "conftest.in"
7405 cp "conftest.in" "conftest.nl"
7406 printf "%s\n" 'FGREP' >> "conftest.nl"
7407 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7409 as_fn_arith $ac_count + 1 && ac_count=$as_val
7410 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7411 # Best one so far, save it but keep looking for a better one
7412 ac_cv_path_FGREP="$ac_path_FGREP"
7413 ac_path_FGREP_max=$ac_count
7414 fi
7415 # 10*(2^10) chars as input seems more than enough
7416 test $ac_count -gt 10 && break
7417 done
7418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7419 esac
7420
7421 $ac_path_FGREP_found && break 3
7422 done
7423 done
7424 done
7425 IFS=$as_save_IFS
7426 if test -z "$ac_cv_path_FGREP"; then
7427 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7428 fi
7429 else
7430 ac_cv_path_FGREP=$FGREP
7431 fi
7432
7433 fi ;;
7434 esac
7435 fi
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7437 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7438 FGREP="$ac_cv_path_FGREP"
7439
7440
7441 test -z "$GREP" && GREP=grep
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461 # Check whether --with-gnu-ld was given.
7462 if test ${with_gnu_ld+y}
7463 then :
7464 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7465 else case e in #(
7466 e) with_gnu_ld=no ;;
7467 esac
7468 fi
7469
7470 ac_prog=ld
7471 if test yes = "$GCC"; then
7472 # Check if gcc -print-prog-name=ld gives a path.
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7474 printf %s "checking for ld used by $CC... " >&6; }
7475 case $host in
7476 *-*-mingw*)
7477 # gcc leaves a trailing carriage return, which upsets mingw
7478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7479 *)
7480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7481 esac
7482 case $ac_prog in
7483 # Accept absolute paths.
7484 [\\/]* | ?:[\\/]*)
7485 re_direlt='/[^/][^/]*/\.\./'
7486 # Canonicalize the pathname of ld
7487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7490 done
7491 test -z "$LD" && LD=$ac_prog
7492 ;;
7493 "")
7494 # If it fails, then pretend we aren't using GCC.
7495 ac_prog=ld
7496 ;;
7497 *)
7498 # If it is relative, then search for the first ld in PATH.
7499 with_gnu_ld=unknown
7500 ;;
7501 esac
7502 elif test yes = "$with_gnu_ld"; then
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7504 printf %s "checking for GNU ld... " >&6; }
7505 else
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7507 printf %s "checking for non-GNU ld... " >&6; }
7508 fi
7509 if test ${lt_cv_path_LD+y}
7510 then :
7511 printf %s "(cached) " >&6
7512 else case e in #(
7513 e) if test -z "$LD"; then
7514 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7515 for ac_dir in $PATH; do
7516 IFS=$lt_save_ifs
7517 test -z "$ac_dir" && ac_dir=.
7518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7519 lt_cv_path_LD=$ac_dir/$ac_prog
7520 # Check to see if the program is GNU ld. I'd rather use --version,
7521 # but apparently some variants of GNU ld only accept -v.
7522 # Break only if it was the GNU/non-GNU ld that we prefer.
7523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7524 *GNU* | *'with BFD'*)
7525 test no != "$with_gnu_ld" && break
7526 ;;
7527 *)
7528 test yes != "$with_gnu_ld" && break
7529 ;;
7530 esac
7531 fi
7532 done
7533 IFS=$lt_save_ifs
7534 else
7535 lt_cv_path_LD=$LD # Let the user override the test with a path.
7536 fi ;;
7537 esac
7538 fi
7539
7540 LD=$lt_cv_path_LD
7541 if test -n "$LD"; then
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7543 printf "%s\n" "$LD" >&6; }
7544 else
7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 printf "%s\n" "no" >&6; }
7547 fi
7548 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7550 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7551 if test ${lt_cv_prog_gnu_ld+y}
7552 then :
7553 printf %s "(cached) " >&6
7554 else case e in #(
7555 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7556 case `$LD -v 2>&1 </dev/null` in
7557 *GNU* | *'with BFD'*)
7558 lt_cv_prog_gnu_ld=yes
7559 ;;
7560 *)
7561 lt_cv_prog_gnu_ld=no
7562 ;;
7563 esac ;;
7564 esac
7565 fi
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7567 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7568 with_gnu_ld=$lt_cv_prog_gnu_ld
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7579 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7580 if test ${lt_cv_path_NM+y}
7581 then :
7582 printf %s "(cached) " >&6
7583 else case e in #(
7584 e) if test -n "$NM"; then
7585 # Let the user override the test.
7586 lt_cv_path_NM=$NM
7587 else
7588 lt_nm_to_check=${ac_tool_prefix}nm
7589 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7590 lt_nm_to_check="$lt_nm_to_check nm"
7591 fi
7592 for lt_tmp_nm in $lt_nm_to_check; do
7593 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7594 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7595 IFS=$lt_save_ifs
7596 test -z "$ac_dir" && ac_dir=.
7597 tmp_nm=$ac_dir/$lt_tmp_nm
7598 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7599 # Check to see if the nm accepts a BSD-compat flag.
7600 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7601 # nm: unknown option "B" ignored
7602 # Tru64's nm complains that /dev/null is an invalid object file
7603 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7604 case $build_os in
7605 mingw*) lt_bad_file=conftest.nm/nofile ;;
7606 *) lt_bad_file=/dev/null ;;
7607 esac
7608 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7609 *$lt_bad_file* | *'Invalid file or object type'*)
7610 lt_cv_path_NM="$tmp_nm -B"
7611 break 2
7612 ;;
7613 *)
7614 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7615 */dev/null*)
7616 lt_cv_path_NM="$tmp_nm -p"
7617 break 2
7618 ;;
7619 *)
7620 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7621 continue # so that we can try to find one that supports BSD flags
7622 ;;
7623 esac
7624 ;;
7625 esac
7626 fi
7627 done
7628 IFS=$lt_save_ifs
7629 done
7630 : ${lt_cv_path_NM=no}
7631 fi ;;
7632 esac
7633 fi
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7635 printf "%s\n" "$lt_cv_path_NM" >&6; }
7636 if test no != "$lt_cv_path_NM"; then
7637 NM=$lt_cv_path_NM
7638 else
7639 # Didn't find any BSD compatible name lister, look for dumpbin.
7640 if test -n "$DUMPBIN"; then :
7641 # Let the user override the test.
7642 else
7643 if test -n "$ac_tool_prefix"; then
7644 for ac_prog in dumpbin "link -dump"
7645 do
7646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 printf %s "checking for $ac_word... " >&6; }
7650 if test ${ac_cv_prog_DUMPBIN+y}
7651 then :
7652 printf %s "(cached) " >&6
7653 else case e in #(
7654 e) if test -n "$DUMPBIN"; then
7655 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7656 else
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660 IFS=$as_save_IFS
7661 case $as_dir in #(((
7662 '') as_dir=./ ;;
7663 */) ;;
7664 *) as_dir=$as_dir/ ;;
7665 esac
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672 done
7673 done
7674 IFS=$as_save_IFS
7675
7676 fi ;;
7677 esac
7678 fi
7679 DUMPBIN=$ac_cv_prog_DUMPBIN
7680 if test -n "$DUMPBIN"; then
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7682 printf "%s\n" "$DUMPBIN" >&6; }
7683 else
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 printf "%s\n" "no" >&6; }
7686 fi
7687
7688
7689 test -n "$DUMPBIN" && break
7690 done
7691 fi
7692 if test -z "$DUMPBIN"; then
7693 ac_ct_DUMPBIN=$DUMPBIN
7694 for ac_prog in dumpbin "link -dump"
7695 do
7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
7697 set dummy $ac_prog; ac_word=$2
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 printf %s "checking for $ac_word... " >&6; }
7700 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7701 then :
7702 printf %s "(cached) " >&6
7703 else case e in #(
7704 e) if test -n "$ac_ct_DUMPBIN"; then
7705 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710 IFS=$as_save_IFS
7711 case $as_dir in #(((
7712 '') as_dir=./ ;;
7713 */) ;;
7714 *) as_dir=$as_dir/ ;;
7715 esac
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7718 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7720 break 2
7721 fi
7722 done
7723 done
7724 IFS=$as_save_IFS
7725
7726 fi ;;
7727 esac
7728 fi
7729 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7730 if test -n "$ac_ct_DUMPBIN"; then
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7732 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7733 else
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 printf "%s\n" "no" >&6; }
7736 fi
7737
7738
7739 test -n "$ac_ct_DUMPBIN" && break
7740 done
7741
7742 if test "x$ac_ct_DUMPBIN" = x; then
7743 DUMPBIN=":"
7744 else
7745 case $cross_compiling:$ac_tool_warned in
7746 yes:)
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7748 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7749 ac_tool_warned=yes ;;
7750 esac
7751 DUMPBIN=$ac_ct_DUMPBIN
7752 fi
7753 fi
7754
7755 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7756 *COFF*)
7757 DUMPBIN="$DUMPBIN -symbols -headers"
7758 ;;
7759 *)
7760 DUMPBIN=:
7761 ;;
7762 esac
7763 fi
7764
7765 if test : != "$DUMPBIN"; then
7766 NM=$DUMPBIN
7767 fi
7768 fi
7769 test -z "$NM" && NM=nm
7770
7771
7772
7773
7774
7775
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7777 printf %s "checking the name lister ($NM) interface... " >&6; }
7778 if test ${lt_cv_nm_interface+y}
7779 then :
7780 printf %s "(cached) " >&6
7781 else case e in #(
7782 e) lt_cv_nm_interface="BSD nm"
7783 echo "int some_variable = 0;" > conftest.$ac_ext
7784 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7785 (eval "$ac_compile" 2>conftest.err)
7786 cat conftest.err >&5
7787 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7788 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7789 cat conftest.err >&5
7790 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7791 cat conftest.out >&5
7792 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7793 lt_cv_nm_interface="MS dumpbin"
7794 fi
7795 rm -f conftest* ;;
7796 esac
7797 fi
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7799 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7800
7801 # find the maximum length of command line arguments
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7803 printf %s "checking the maximum length of command line arguments... " >&6; }
7804 if test ${lt_cv_sys_max_cmd_len+y}
7805 then :
7806 printf %s "(cached) " >&6
7807 else case e in #(
7808 e) i=0
7809 teststring=ABCD
7810
7811 case $build_os in
7812 msdosdjgpp*)
7813 # On DJGPP, this test can blow up pretty badly due to problems in libc
7814 # (any single argument exceeding 2000 bytes causes a buffer overrun
7815 # during glob expansion). Even if it were fixed, the result of this
7816 # check would be larger than it should be.
7817 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7818 ;;
7819
7820 gnu*)
7821 # Under GNU Hurd, this test is not required because there is
7822 # no limit to the length of command line arguments.
7823 # Libtool will interpret -1 as no limit whatsoever
7824 lt_cv_sys_max_cmd_len=-1;
7825 ;;
7826
7827 cygwin* | mingw* | cegcc*)
7828 # On Win9x/ME, this test blows up -- it succeeds, but takes
7829 # about 5 minutes as the teststring grows exponentially.
7830 # Worse, since 9x/ME are not pre-emptively multitasking,
7831 # you end up with a "frozen" computer, even though with patience
7832 # the test eventually succeeds (with a max line length of 256k).
7833 # Instead, let's just punt: use the minimum linelength reported by
7834 # all of the supported platforms: 8192 (on NT/2K/XP).
7835 lt_cv_sys_max_cmd_len=8192;
7836 ;;
7837
7838 mint*)
7839 # On MiNT this can take a long time and run out of memory.
7840 lt_cv_sys_max_cmd_len=8192;
7841 ;;
7842
7843 amigaos*)
7844 # On AmigaOS with pdksh, this test takes hours, literally.
7845 # So we just punt and use a minimum line length of 8192.
7846 lt_cv_sys_max_cmd_len=8192;
7847 ;;
7848
7849 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7850 # This has been around since 386BSD, at least. Likely further.
7851 if test -x /sbin/sysctl; then
7852 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7853 elif test -x /usr/sbin/sysctl; then
7854 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7855 else
7856 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7857 fi
7858 # And add a safety zone
7859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7861 ;;
7862
7863 interix*)
7864 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7865 lt_cv_sys_max_cmd_len=196608
7866 ;;
7867
7868 os2*)
7869 # The test takes a long time on OS/2.
7870 lt_cv_sys_max_cmd_len=8192
7871 ;;
7872
7873 osf*)
7874 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7875 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7876 # nice to cause kernel panics so lets avoid the loop below.
7877 # First set a reasonable default.
7878 lt_cv_sys_max_cmd_len=16384
7879 #
7880 if test -x /sbin/sysconfig; then
7881 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7882 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7883 esac
7884 fi
7885 ;;
7886 sco3.2v5*)
7887 lt_cv_sys_max_cmd_len=102400
7888 ;;
7889 sysv5* | sco5v6* | sysv4.2uw2*)
7890 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7891 if test -n "$kargmax"; then
7892 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7893 else
7894 lt_cv_sys_max_cmd_len=32768
7895 fi
7896 ;;
7897 *)
7898 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7899 if test -n "$lt_cv_sys_max_cmd_len" && \
7900 test undefined != "$lt_cv_sys_max_cmd_len"; then
7901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7903 else
7904 # Make teststring a little bigger before we do anything with it.
7905 # a 1K string should be a reasonable start.
7906 for i in 1 2 3 4 5 6 7 8; do
7907 teststring=$teststring$teststring
7908 done
7909 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7910 # If test is not a shell built-in, we'll probably end up computing a
7911 # maximum length that is only half of the actual maximum length, but
7912 # we can't tell.
7913 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7914 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7915 test 17 != "$i" # 1/2 MB should be enough
7916 do
7917 i=`expr $i + 1`
7918 teststring=$teststring$teststring
7919 done
7920 # Only check the string length outside the loop.
7921 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7922 teststring=
7923 # Add a significant safety factor because C++ compilers can tack on
7924 # massive amounts of additional arguments before passing them to the
7925 # linker. It appears as though 1/2 is a usable value.
7926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7927 fi
7928 ;;
7929 esac
7930 ;;
7931 esac
7932 fi
7933
7934 if test -n "$lt_cv_sys_max_cmd_len"; then
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7936 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7937 else
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7939 printf "%s\n" "none" >&6; }
7940 fi
7941 max_cmd_len=$lt_cv_sys_max_cmd_len
7942
7943
7944
7945
7946
7947
7948 : ${CP="cp -f"}
7949 : ${MV="mv -f"}
7950 : ${RM="rm -f"}
7951
7952 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7953 lt_unset=unset
7954 else
7955 lt_unset=false
7956 fi
7957
7958
7959
7960
7961
7962 # test EBCDIC or ASCII
7963 case `echo X|tr X '\101'` in
7964 A) # ASCII based system
7965 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7966 lt_SP2NL='tr \040 \012'
7967 lt_NL2SP='tr \015\012 \040\040'
7968 ;;
7969 *) # EBCDIC based system
7970 lt_SP2NL='tr \100 \n'
7971 lt_NL2SP='tr \r\n \100\100'
7972 ;;
7973 esac
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7984 printf %s "checking how to convert $build file names to $host format... " >&6; }
7985 if test ${lt_cv_to_host_file_cmd+y}
7986 then :
7987 printf %s "(cached) " >&6
7988 else case e in #(
7989 e) case $host in
7990 *-*-mingw* )
7991 case $build in
7992 *-*-mingw* ) # actually msys
7993 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7994 ;;
7995 *-*-cygwin* )
7996 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7997 ;;
7998 * ) # otherwise, assume *nix
7999 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8000 ;;
8001 esac
8002 ;;
8003 *-*-cygwin* )
8004 case $build in
8005 *-*-mingw* ) # actually msys
8006 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8007 ;;
8008 *-*-cygwin* )
8009 lt_cv_to_host_file_cmd=func_convert_file_noop
8010 ;;
8011 * ) # otherwise, assume *nix
8012 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8013 ;;
8014 esac
8015 ;;
8016 * ) # unhandled hosts (and "normal" native builds)
8017 lt_cv_to_host_file_cmd=func_convert_file_noop
8018 ;;
8019 esac
8020 ;;
8021 esac
8022 fi
8023
8024 to_host_file_cmd=$lt_cv_to_host_file_cmd
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8026 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8027
8028
8029
8030
8031
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8033 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8034 if test ${lt_cv_to_tool_file_cmd+y}
8035 then :
8036 printf %s "(cached) " >&6
8037 else case e in #(
8038 e) #assume ordinary cross tools, or native build.
8039 lt_cv_to_tool_file_cmd=func_convert_file_noop
8040 case $host in
8041 *-*-mingw* )
8042 case $build in
8043 *-*-mingw* ) # actually msys
8044 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8045 ;;
8046 esac
8047 ;;
8048 esac
8049 ;;
8050 esac
8051 fi
8052
8053 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8055 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8056
8057
8058
8059
8060
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8062 printf %s "checking for $LD option to reload object files... " >&6; }
8063 if test ${lt_cv_ld_reload_flag+y}
8064 then :
8065 printf %s "(cached) " >&6
8066 else case e in #(
8067 e) lt_cv_ld_reload_flag='-r' ;;
8068 esac
8069 fi
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8071 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8072 reload_flag=$lt_cv_ld_reload_flag
8073 case $reload_flag in
8074 "" | " "*) ;;
8075 *) reload_flag=" $reload_flag" ;;
8076 esac
8077 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8078 case $host_os in
8079 cygwin* | mingw* | pw32* | cegcc*)
8080 if test yes != "$GCC"; then
8081 reload_cmds=false
8082 fi
8083 ;;
8084 darwin*)
8085 if test yes = "$GCC"; then
8086 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8087 else
8088 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8089 fi
8090 ;;
8091 esac
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101 if test -n "$ac_tool_prefix"; then
8102 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
8103 set dummy ${ac_tool_prefix}file; ac_word=$2
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105 printf %s "checking for $ac_word... " >&6; }
8106 if test ${ac_cv_prog_FILECMD+y}
8107 then :
8108 printf %s "(cached) " >&6
8109 else case e in #(
8110 e) if test -n "$FILECMD"; then
8111 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116 IFS=$as_save_IFS
8117 case $as_dir in #(((
8118 '') as_dir=./ ;;
8119 */) ;;
8120 *) as_dir=$as_dir/ ;;
8121 esac
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
8125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8126 break 2
8127 fi
8128 done
8129 done
8130 IFS=$as_save_IFS
8131
8132 fi ;;
8133 esac
8134 fi
8135 FILECMD=$ac_cv_prog_FILECMD
8136 if test -n "$FILECMD"; then
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8138 printf "%s\n" "$FILECMD" >&6; }
8139 else
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 printf "%s\n" "no" >&6; }
8142 fi
8143
8144
8145 fi
8146 if test -z "$ac_cv_prog_FILECMD"; then
8147 ac_ct_FILECMD=$FILECMD
8148 # Extract the first word of "file", so it can be a program name with args.
8149 set dummy file; ac_word=$2
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 printf %s "checking for $ac_word... " >&6; }
8152 if test ${ac_cv_prog_ac_ct_FILECMD+y}
8153 then :
8154 printf %s "(cached) " >&6
8155 else case e in #(
8156 e) if test -n "$ac_ct_FILECMD"; then
8157 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162 IFS=$as_save_IFS
8163 case $as_dir in #(((
8164 '') as_dir=./ ;;
8165 */) ;;
8166 *) as_dir=$as_dir/ ;;
8167 esac
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8170 ac_cv_prog_ac_ct_FILECMD="file"
8171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8172 break 2
8173 fi
8174 done
8175 done
8176 IFS=$as_save_IFS
8177
8178 fi ;;
8179 esac
8180 fi
8181 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
8182 if test -n "$ac_ct_FILECMD"; then
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
8184 printf "%s\n" "$ac_ct_FILECMD" >&6; }
8185 else
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 printf "%s\n" "no" >&6; }
8188 fi
8189
8190 if test "x$ac_ct_FILECMD" = x; then
8191 FILECMD=":"
8192 else
8193 case $cross_compiling:$ac_tool_warned in
8194 yes:)
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8197 ac_tool_warned=yes ;;
8198 esac
8199 FILECMD=$ac_ct_FILECMD
8200 fi
8201 else
8202 FILECMD="$ac_cv_prog_FILECMD"
8203 fi
8204
8205
8206
8207
8208
8209
8210
8211 if test -n "$ac_tool_prefix"; then
8212 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8213 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215 printf %s "checking for $ac_word... " >&6; }
8216 if test ${ac_cv_prog_OBJDUMP+y}
8217 then :
8218 printf %s "(cached) " >&6
8219 else case e in #(
8220 e) if test -n "$OBJDUMP"; then
8221 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226 IFS=$as_save_IFS
8227 case $as_dir in #(((
8228 '') as_dir=./ ;;
8229 */) ;;
8230 *) as_dir=$as_dir/ ;;
8231 esac
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8241
8242 fi ;;
8243 esac
8244 fi
8245 OBJDUMP=$ac_cv_prog_OBJDUMP
8246 if test -n "$OBJDUMP"; then
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8248 printf "%s\n" "$OBJDUMP" >&6; }
8249 else
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 printf "%s\n" "no" >&6; }
8252 fi
8253
8254
8255 fi
8256 if test -z "$ac_cv_prog_OBJDUMP"; then
8257 ac_ct_OBJDUMP=$OBJDUMP
8258 # Extract the first word of "objdump", so it can be a program name with args.
8259 set dummy objdump; ac_word=$2
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 printf %s "checking for $ac_word... " >&6; }
8262 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8263 then :
8264 printf %s "(cached) " >&6
8265 else case e in #(
8266 e) if test -n "$ac_ct_OBJDUMP"; then
8267 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272 IFS=$as_save_IFS
8273 case $as_dir in #(((
8274 '') as_dir=./ ;;
8275 */) ;;
8276 *) as_dir=$as_dir/ ;;
8277 esac
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi ;;
8289 esac
8290 fi
8291 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8292 if test -n "$ac_ct_OBJDUMP"; then
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8294 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8295 else
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 printf "%s\n" "no" >&6; }
8298 fi
8299
8300 if test "x$ac_ct_OBJDUMP" = x; then
8301 OBJDUMP="false"
8302 else
8303 case $cross_compiling:$ac_tool_warned in
8304 yes:)
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8306 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8307 ac_tool_warned=yes ;;
8308 esac
8309 OBJDUMP=$ac_ct_OBJDUMP
8310 fi
8311 else
8312 OBJDUMP="$ac_cv_prog_OBJDUMP"
8313 fi
8314
8315 test -z "$OBJDUMP" && OBJDUMP=objdump
8316
8317
8318
8319
8320
8321
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8323 printf %s "checking how to recognize dependent libraries... " >&6; }
8324 if test ${lt_cv_deplibs_check_method+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else case e in #(
8328 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8329 lt_cv_file_magic_test_file=
8330 lt_cv_deplibs_check_method='unknown'
8331 # Need to set the preceding variable on all platforms that support
8332 # interlibrary dependencies.
8333 # 'none' -- dependencies not supported.
8334 # 'unknown' -- same as none, but documents that we really don't know.
8335 # 'pass_all' -- all dependencies passed with no checks.
8336 # 'test_compile' -- check by making test program.
8337 # 'file_magic [[regex]]' -- check by looking for files in library path
8338 # that responds to the $file_magic_cmd with a given extended regex.
8339 # If you have 'file' or equivalent on your system and you're not sure
8340 # whether 'pass_all' will *always* work, you probably want this one.
8341
8342 case $host_os in
8343 aix[4-9]*)
8344 lt_cv_deplibs_check_method=pass_all
8345 ;;
8346
8347 beos*)
8348 lt_cv_deplibs_check_method=pass_all
8349 ;;
8350
8351 bsdi[45]*)
8352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8353 lt_cv_file_magic_cmd='$FILECMD -L'
8354 lt_cv_file_magic_test_file=/shlib/libc.so
8355 ;;
8356
8357 cygwin*)
8358 # func_win32_libid is a shell function defined in ltmain.sh
8359 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8360 lt_cv_file_magic_cmd='func_win32_libid'
8361 ;;
8362
8363 mingw* | pw32*)
8364 # Base MSYS/MinGW do not provide the 'file' command needed by
8365 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8366 # unless we find 'file', for example because we are cross-compiling.
8367 if ( file / ) >/dev/null 2>&1; then
8368 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8369 lt_cv_file_magic_cmd='func_win32_libid'
8370 else
8371 # Keep this pattern in sync with the one in func_win32_libid.
8372 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8373 lt_cv_file_magic_cmd='$OBJDUMP -f'
8374 fi
8375 ;;
8376
8377 cegcc*)
8378 # use the weaker test based on 'objdump'. See mingw*.
8379 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8380 lt_cv_file_magic_cmd='$OBJDUMP -f'
8381 ;;
8382
8383 darwin* | rhapsody*)
8384 lt_cv_deplibs_check_method=pass_all
8385 ;;
8386
8387 freebsd* | dragonfly* | midnightbsd*)
8388 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8389 case $host_cpu in
8390 i*86 )
8391 # Not sure whether the presence of OpenBSD here was a mistake.
8392 # Let's accept both of them until this is cleared up.
8393 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8394 lt_cv_file_magic_cmd=$FILECMD
8395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8396 ;;
8397 esac
8398 else
8399 lt_cv_deplibs_check_method=pass_all
8400 fi
8401 ;;
8402
8403 haiku*)
8404 lt_cv_deplibs_check_method=pass_all
8405 ;;
8406
8407 hpux10.20* | hpux11*)
8408 lt_cv_file_magic_cmd=$FILECMD
8409 case $host_cpu in
8410 ia64*)
8411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8412 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8413 ;;
8414 hppa*64*)
8415 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]'
8416 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8417 ;;
8418 *)
8419 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8420 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8421 ;;
8422 esac
8423 ;;
8424
8425 interix[3-9]*)
8426 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8428 ;;
8429
8430 irix5* | irix6* | nonstopux*)
8431 case $LD in
8432 *-32|*"-32 ") libmagic=32-bit;;
8433 *-n32|*"-n32 ") libmagic=N32;;
8434 *-64|*"-64 ") libmagic=64-bit;;
8435 *) libmagic=never-match;;
8436 esac
8437 lt_cv_deplibs_check_method=pass_all
8438 ;;
8439
8440 # This must be glibc/ELF.
8441 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8442 lt_cv_deplibs_check_method=pass_all
8443 ;;
8444
8445 netbsd* | netbsdelf*-gnu)
8446 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8448 else
8449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8450 fi
8451 ;;
8452
8453 newos6*)
8454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8455 lt_cv_file_magic_cmd=$FILECMD
8456 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8457 ;;
8458
8459 *nto* | *qnx*)
8460 lt_cv_deplibs_check_method=pass_all
8461 ;;
8462
8463 openbsd* | bitrig*)
8464 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8466 else
8467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8468 fi
8469 ;;
8470
8471 osf3* | osf4* | osf5*)
8472 lt_cv_deplibs_check_method=pass_all
8473 ;;
8474
8475 rdos*)
8476 lt_cv_deplibs_check_method=pass_all
8477 ;;
8478
8479 solaris*)
8480 lt_cv_deplibs_check_method=pass_all
8481 ;;
8482
8483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8484 lt_cv_deplibs_check_method=pass_all
8485 ;;
8486
8487 sysv4 | sysv4.3*)
8488 case $host_vendor in
8489 motorola)
8490 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]'
8491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8492 ;;
8493 ncr)
8494 lt_cv_deplibs_check_method=pass_all
8495 ;;
8496 sequent)
8497 lt_cv_file_magic_cmd='/bin/file'
8498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8499 ;;
8500 sni)
8501 lt_cv_file_magic_cmd='/bin/file'
8502 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8503 lt_cv_file_magic_test_file=/lib/libc.so
8504 ;;
8505 siemens)
8506 lt_cv_deplibs_check_method=pass_all
8507 ;;
8508 pc)
8509 lt_cv_deplibs_check_method=pass_all
8510 ;;
8511 esac
8512 ;;
8513
8514 tpf*)
8515 lt_cv_deplibs_check_method=pass_all
8516 ;;
8517 os2*)
8518 lt_cv_deplibs_check_method=pass_all
8519 ;;
8520 esac
8521 ;;
8522 esac
8523 fi
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8525 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8526
8527 file_magic_glob=
8528 want_nocaseglob=no
8529 if test "$build" = "$host"; then
8530 case $host_os in
8531 mingw* | pw32*)
8532 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8533 want_nocaseglob=yes
8534 else
8535 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8536 fi
8537 ;;
8538 esac
8539 fi
8540
8541 file_magic_cmd=$lt_cv_file_magic_cmd
8542 deplibs_check_method=$lt_cv_deplibs_check_method
8543 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566 if test -n "$ac_tool_prefix"; then
8567 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8568 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 printf %s "checking for $ac_word... " >&6; }
8571 if test ${ac_cv_prog_DLLTOOL+y}
8572 then :
8573 printf %s "(cached) " >&6
8574 else case e in #(
8575 e) if test -n "$DLLTOOL"; then
8576 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581 IFS=$as_save_IFS
8582 case $as_dir in #(((
8583 '') as_dir=./ ;;
8584 */) ;;
8585 *) as_dir=$as_dir/ ;;
8586 esac
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8589 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8591 break 2
8592 fi
8593 done
8594 done
8595 IFS=$as_save_IFS
8596
8597 fi ;;
8598 esac
8599 fi
8600 DLLTOOL=$ac_cv_prog_DLLTOOL
8601 if test -n "$DLLTOOL"; then
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8603 printf "%s\n" "$DLLTOOL" >&6; }
8604 else
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 printf "%s\n" "no" >&6; }
8607 fi
8608
8609
8610 fi
8611 if test -z "$ac_cv_prog_DLLTOOL"; then
8612 ac_ct_DLLTOOL=$DLLTOOL
8613 # Extract the first word of "dlltool", so it can be a program name with args.
8614 set dummy dlltool; ac_word=$2
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 printf %s "checking for $ac_word... " >&6; }
8617 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8618 then :
8619 printf %s "(cached) " >&6
8620 else case e in #(
8621 e) if test -n "$ac_ct_DLLTOOL"; then
8622 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627 IFS=$as_save_IFS
8628 case $as_dir in #(((
8629 '') as_dir=./ ;;
8630 */) ;;
8631 *) as_dir=$as_dir/ ;;
8632 esac
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8637 break 2
8638 fi
8639 done
8640 done
8641 IFS=$as_save_IFS
8642
8643 fi ;;
8644 esac
8645 fi
8646 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8647 if test -n "$ac_ct_DLLTOOL"; then
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8649 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8650 else
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 printf "%s\n" "no" >&6; }
8653 fi
8654
8655 if test "x$ac_ct_DLLTOOL" = x; then
8656 DLLTOOL="false"
8657 else
8658 case $cross_compiling:$ac_tool_warned in
8659 yes:)
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8661 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8662 ac_tool_warned=yes ;;
8663 esac
8664 DLLTOOL=$ac_ct_DLLTOOL
8665 fi
8666 else
8667 DLLTOOL="$ac_cv_prog_DLLTOOL"
8668 fi
8669
8670 test -z "$DLLTOOL" && DLLTOOL=dlltool
8671
8672
8673
8674
8675
8676
8677
8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8679 printf %s "checking how to associate runtime and link libraries... " >&6; }
8680 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8681 then :
8682 printf %s "(cached) " >&6
8683 else case e in #(
8684 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8685
8686 case $host_os in
8687 cygwin* | mingw* | pw32* | cegcc*)
8688 # two different shell functions defined in ltmain.sh;
8689 # decide which one to use based on capabilities of $DLLTOOL
8690 case `$DLLTOOL --help 2>&1` in
8691 *--identify-strict*)
8692 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8693 ;;
8694 *)
8695 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8696 ;;
8697 esac
8698 ;;
8699 *)
8700 # fallback: assume linklib IS sharedlib
8701 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8702 ;;
8703 esac
8704 ;;
8705 esac
8706 fi
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8708 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8709 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8710 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8711
8712
8713
8714
8715
8716
8717
8718 if test -n "$ac_tool_prefix"; then
8719 for ac_prog in ar
8720 do
8721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 printf %s "checking for $ac_word... " >&6; }
8725 if test ${ac_cv_prog_AR+y}
8726 then :
8727 printf %s "(cached) " >&6
8728 else case e in #(
8729 e) if test -n "$AR"; then
8730 ac_cv_prog_AR="$AR" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735 IFS=$as_save_IFS
8736 case $as_dir in #(((
8737 '') as_dir=./ ;;
8738 */) ;;
8739 *) as_dir=$as_dir/ ;;
8740 esac
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8745 break 2
8746 fi
8747 done
8748 done
8749 IFS=$as_save_IFS
8750
8751 fi ;;
8752 esac
8753 fi
8754 AR=$ac_cv_prog_AR
8755 if test -n "$AR"; then
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8757 printf "%s\n" "$AR" >&6; }
8758 else
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 printf "%s\n" "no" >&6; }
8761 fi
8762
8763
8764 test -n "$AR" && break
8765 done
8766 fi
8767 if test -z "$AR"; then
8768 ac_ct_AR=$AR
8769 for ac_prog in ar
8770 do
8771 # Extract the first word of "$ac_prog", so it can be a program name with args.
8772 set dummy $ac_prog; ac_word=$2
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774 printf %s "checking for $ac_word... " >&6; }
8775 if test ${ac_cv_prog_ac_ct_AR+y}
8776 then :
8777 printf %s "(cached) " >&6
8778 else case e in #(
8779 e) if test -n "$ac_ct_AR"; then
8780 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8784 do
8785 IFS=$as_save_IFS
8786 case $as_dir in #(((
8787 '') as_dir=./ ;;
8788 */) ;;
8789 *) as_dir=$as_dir/ ;;
8790 esac
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_ac_ct_AR="$ac_prog"
8794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797 done
8798 done
8799 IFS=$as_save_IFS
8800
8801 fi ;;
8802 esac
8803 fi
8804 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8805 if test -n "$ac_ct_AR"; then
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8807 printf "%s\n" "$ac_ct_AR" >&6; }
8808 else
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 printf "%s\n" "no" >&6; }
8811 fi
8812
8813
8814 test -n "$ac_ct_AR" && break
8815 done
8816
8817 if test "x$ac_ct_AR" = x; then
8818 AR="false"
8819 else
8820 case $cross_compiling:$ac_tool_warned in
8821 yes:)
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8823 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8824 ac_tool_warned=yes ;;
8825 esac
8826 AR=$ac_ct_AR
8827 fi
8828 fi
8829
8830 : ${AR=ar}
8831
8832
8833
8834
8835
8836
8837 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8838 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8839 # higher priority because thats what people were doing historically (setting
8840 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8841 # variable obsoleted/removed.
8842
8843 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8844 lt_ar_flags=$AR_FLAGS
8845
8846
8847
8848
8849
8850
8851 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8852 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8853
8854
8855
8856
8857
8858
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8860 printf %s "checking for archiver @FILE support... " >&6; }
8861 if test ${lt_cv_ar_at_file+y}
8862 then :
8863 printf %s "(cached) " >&6
8864 else case e in #(
8865 e) lt_cv_ar_at_file=no
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868
8869 int
8870 main (void)
8871 {
8872
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"
8878 then :
8879 echo conftest.$ac_objext > conftest.lst
8880 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8882 (eval $lt_ar_try) 2>&5
8883 ac_status=$?
8884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8885 test $ac_status = 0; }
8886 if test 0 -eq "$ac_status"; then
8887 # Ensure the archiver fails upon bogus file names.
8888 rm -f conftest.$ac_objext libconftest.a
8889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8890 (eval $lt_ar_try) 2>&5
8891 ac_status=$?
8892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8893 test $ac_status = 0; }
8894 if test 0 -ne "$ac_status"; then
8895 lt_cv_ar_at_file=@
8896 fi
8897 fi
8898 rm -f conftest.* libconftest.a
8899
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8902 ;;
8903 esac
8904 fi
8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8906 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8907
8908 if test no = "$lt_cv_ar_at_file"; then
8909 archiver_list_spec=
8910 else
8911 archiver_list_spec=$lt_cv_ar_at_file
8912 fi
8913
8914
8915
8916
8917
8918
8919
8920 if test -n "$ac_tool_prefix"; then
8921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8922 set dummy ${ac_tool_prefix}strip; ac_word=$2
8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924 printf %s "checking for $ac_word... " >&6; }
8925 if test ${ac_cv_prog_STRIP+y}
8926 then :
8927 printf %s "(cached) " >&6
8928 else case e in #(
8929 e) if test -n "$STRIP"; then
8930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8931 else
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 for as_dir in $PATH
8934 do
8935 IFS=$as_save_IFS
8936 case $as_dir in #(((
8937 '') as_dir=./ ;;
8938 */) ;;
8939 *) as_dir=$as_dir/ ;;
8940 esac
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947 done
8948 done
8949 IFS=$as_save_IFS
8950
8951 fi ;;
8952 esac
8953 fi
8954 STRIP=$ac_cv_prog_STRIP
8955 if test -n "$STRIP"; then
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8957 printf "%s\n" "$STRIP" >&6; }
8958 else
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 printf "%s\n" "no" >&6; }
8961 fi
8962
8963
8964 fi
8965 if test -z "$ac_cv_prog_STRIP"; then
8966 ac_ct_STRIP=$STRIP
8967 # Extract the first word of "strip", so it can be a program name with args.
8968 set dummy strip; ac_word=$2
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 printf %s "checking for $ac_word... " >&6; }
8971 if test ${ac_cv_prog_ac_ct_STRIP+y}
8972 then :
8973 printf %s "(cached) " >&6
8974 else case e in #(
8975 e) if test -n "$ac_ct_STRIP"; then
8976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8980 do
8981 IFS=$as_save_IFS
8982 case $as_dir in #(((
8983 '') as_dir=./ ;;
8984 */) ;;
8985 *) as_dir=$as_dir/ ;;
8986 esac
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8989 ac_cv_prog_ac_ct_STRIP="strip"
8990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8991 break 2
8992 fi
8993 done
8994 done
8995 IFS=$as_save_IFS
8996
8997 fi ;;
8998 esac
8999 fi
9000 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9001 if test -n "$ac_ct_STRIP"; then
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9003 printf "%s\n" "$ac_ct_STRIP" >&6; }
9004 else
9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 printf "%s\n" "no" >&6; }
9007 fi
9008
9009 if test "x$ac_ct_STRIP" = x; then
9010 STRIP=":"
9011 else
9012 case $cross_compiling:$ac_tool_warned in
9013 yes:)
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9015 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9016 ac_tool_warned=yes ;;
9017 esac
9018 STRIP=$ac_ct_STRIP
9019 fi
9020 else
9021 STRIP="$ac_cv_prog_STRIP"
9022 fi
9023
9024 test -z "$STRIP" && STRIP=:
9025
9026
9027
9028
9029
9030
9031 if test -n "$ac_tool_prefix"; then
9032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 printf %s "checking for $ac_word... " >&6; }
9036 if test ${ac_cv_prog_RANLIB+y}
9037 then :
9038 printf %s "(cached) " >&6
9039 else case e in #(
9040 e) if test -n "$RANLIB"; then
9041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9042 else
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 for as_dir in $PATH
9045 do
9046 IFS=$as_save_IFS
9047 case $as_dir in #(((
9048 '') as_dir=./ ;;
9049 */) ;;
9050 *) as_dir=$as_dir/ ;;
9051 esac
9052 for ac_exec_ext in '' $ac_executable_extensions; do
9053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9056 break 2
9057 fi
9058 done
9059 done
9060 IFS=$as_save_IFS
9061
9062 fi ;;
9063 esac
9064 fi
9065 RANLIB=$ac_cv_prog_RANLIB
9066 if test -n "$RANLIB"; then
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9068 printf "%s\n" "$RANLIB" >&6; }
9069 else
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 printf "%s\n" "no" >&6; }
9072 fi
9073
9074
9075 fi
9076 if test -z "$ac_cv_prog_RANLIB"; then
9077 ac_ct_RANLIB=$RANLIB
9078 # Extract the first word of "ranlib", so it can be a program name with args.
9079 set dummy ranlib; ac_word=$2
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 printf %s "checking for $ac_word... " >&6; }
9082 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9083 then :
9084 printf %s "(cached) " >&6
9085 else case e in #(
9086 e) if test -n "$ac_ct_RANLIB"; then
9087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9088 else
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 for as_dir in $PATH
9091 do
9092 IFS=$as_save_IFS
9093 case $as_dir in #(((
9094 '') as_dir=./ ;;
9095 */) ;;
9096 *) as_dir=$as_dir/ ;;
9097 esac
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9100 ac_cv_prog_ac_ct_RANLIB="ranlib"
9101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9102 break 2
9103 fi
9104 done
9105 done
9106 IFS=$as_save_IFS
9107
9108 fi ;;
9109 esac
9110 fi
9111 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9112 if test -n "$ac_ct_RANLIB"; then
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9114 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9115 else
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 printf "%s\n" "no" >&6; }
9118 fi
9119
9120 if test "x$ac_ct_RANLIB" = x; then
9121 RANLIB=":"
9122 else
9123 case $cross_compiling:$ac_tool_warned in
9124 yes:)
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9126 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9127 ac_tool_warned=yes ;;
9128 esac
9129 RANLIB=$ac_ct_RANLIB
9130 fi
9131 else
9132 RANLIB="$ac_cv_prog_RANLIB"
9133 fi
9134
9135 test -z "$RANLIB" && RANLIB=:
9136
9137
9138
9139
9140
9141
9142 # Determine commands to create old-style static archives.
9143 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9144 old_postinstall_cmds='chmod 644 $oldlib'
9145 old_postuninstall_cmds=
9146
9147 if test -n "$RANLIB"; then
9148 case $host_os in
9149 bitrig* | openbsd*)
9150 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9151 ;;
9152 *)
9153 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9154 ;;
9155 esac
9156 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9157 fi
9158
9159 case $host_os in
9160 darwin*)
9161 lock_old_archive_extraction=yes ;;
9162 *)
9163 lock_old_archive_extraction=no ;;
9164 esac
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204 # If no C compiler was specified, use CC.
9205 LTCC=${LTCC-"$CC"}
9206
9207 # If no C compiler flags were specified, use CFLAGS.
9208 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9209
9210 # Allow CC to be a program name with arguments.
9211 compiler=$CC
9212
9213
9214 # Check for command to grab the raw symbol name followed by C symbol from nm.
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9216 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9217 if test ${lt_cv_sys_global_symbol_pipe+y}
9218 then :
9219 printf %s "(cached) " >&6
9220 else case e in #(
9221 e)
9222 # These are sane defaults that work on at least a few old systems.
9223 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9224
9225 # Character class describing NM global symbol codes.
9226 symcode='[BCDEGRST]'
9227
9228 # Regexp to match symbols that can be accessed directly from C.
9229 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9230
9231 # Define system-specific variables.
9232 case $host_os in
9233 aix*)
9234 symcode='[BCDT]'
9235 ;;
9236 cygwin* | mingw* | pw32* | cegcc*)
9237 symcode='[ABCDGISTW]'
9238 ;;
9239 hpux*)
9240 if test ia64 = "$host_cpu"; then
9241 symcode='[ABCDEGRST]'
9242 fi
9243 ;;
9244 irix* | nonstopux*)
9245 symcode='[BCDEGRST]'
9246 ;;
9247 osf*)
9248 symcode='[BCDEGQRST]'
9249 ;;
9250 solaris*)
9251 symcode='[BDRT]'
9252 ;;
9253 sco3.2v5*)
9254 symcode='[DT]'
9255 ;;
9256 sysv4.2uw2*)
9257 symcode='[DT]'
9258 ;;
9259 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9260 symcode='[ABDT]'
9261 ;;
9262 sysv4)
9263 symcode='[DFNSTU]'
9264 ;;
9265 esac
9266
9267 # If we're using GNU nm, then use its standard symbol codes.
9268 case `$NM -V 2>&1` in
9269 *GNU* | *'with BFD'*)
9270 symcode='[ABCDGIRSTW]' ;;
9271 esac
9272
9273 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9274 # Gets list of data symbols to import.
9275 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9276 # Adjust the below global symbol transforms to fixup imported variables.
9277 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9278 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9279 lt_c_name_lib_hook="\
9280 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9281 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9282 else
9283 # Disable hooks by default.
9284 lt_cv_sys_global_symbol_to_import=
9285 lt_cdecl_hook=
9286 lt_c_name_hook=
9287 lt_c_name_lib_hook=
9288 fi
9289
9290 # Transform an extracted symbol line into a proper C declaration.
9291 # Some systems (esp. on ia64) link data and code symbols differently,
9292 # so use this general approach.
9293 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9294 $lt_cdecl_hook\
9295 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9296 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9297
9298 # Transform an extracted symbol line into symbol name and symbol address
9299 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9300 $lt_c_name_hook\
9301 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9302 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9303
9304 # Transform an extracted symbol line into symbol name with lib prefix and
9305 # symbol address.
9306 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9307 $lt_c_name_lib_hook\
9308 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9309 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9310 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9311
9312 # Handle CRLF in mingw tool chain
9313 opt_cr=
9314 case $build_os in
9315 mingw*)
9316 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9317 ;;
9318 esac
9319
9320 # Try without a prefix underscore, then with it.
9321 for ac_symprfx in "" "_"; do
9322
9323 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9324 symxfrm="\\1 $ac_symprfx\\2 \\2"
9325
9326 # Write the raw and C identifiers.
9327 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9328 # Fake it for dumpbin and say T for any non-static function,
9329 # D for any global variable and I for any imported variable.
9330 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9331 # which start with @ or ?.
9332 lt_cv_sys_global_symbol_pipe="$AWK '"\
9333 " {last_section=section; section=\$ 3};"\
9334 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9335 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9336 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9337 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9338 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9339 " \$ 0!~/External *\|/{next};"\
9340 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9341 " {if(hide[section]) next};"\
9342 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9343 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9344 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9345 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9346 " ' prfx=^$ac_symprfx"
9347 else
9348 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9349 fi
9350 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9351
9352 # Check to see that the pipe works correctly.
9353 pipe_works=no
9354
9355 rm -f conftest*
9356 cat > conftest.$ac_ext <<_LT_EOF
9357 #ifdef __cplusplus
9358 extern "C" {
9359 #endif
9360 char nm_test_var;
9361 void nm_test_func(void);
9362 void nm_test_func(void){}
9363 #ifdef __cplusplus
9364 }
9365 #endif
9366 int main(){nm_test_var='a';nm_test_func();return(0);}
9367 _LT_EOF
9368
9369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9370 (eval $ac_compile) 2>&5
9371 ac_status=$?
9372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9373 test $ac_status = 0; }; then
9374 # Now try to grab the symbols.
9375 nlist=conftest.nm
9376 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9377 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9378 # Try sorting and uniquifying the output.
9379 if sort "$nlist" | uniq > "$nlist"T; then
9380 mv -f "$nlist"T "$nlist"
9381 else
9382 rm -f "$nlist"T
9383 fi
9384
9385 # Make sure that we snagged all the symbols we need.
9386 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9387 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9388 cat <<_LT_EOF > conftest.$ac_ext
9389 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9390 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9391 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9392 relocations are performed -- see ld's documentation on pseudo-relocs. */
9393 # define LT_DLSYM_CONST
9394 #elif defined __osf__
9395 /* This system does not cope well with relocations in const data. */
9396 # define LT_DLSYM_CONST
9397 #else
9398 # define LT_DLSYM_CONST const
9399 #endif
9400
9401 #ifdef __cplusplus
9402 extern "C" {
9403 #endif
9404
9405 _LT_EOF
9406 # Now generate the symbol file.
9407 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9408
9409 cat <<_LT_EOF >> conftest.$ac_ext
9410
9411 /* The mapping between symbol names and symbols. */
9412 LT_DLSYM_CONST struct {
9413 const char *name;
9414 void *address;
9415 }
9416 lt__PROGRAM__LTX_preloaded_symbols[] =
9417 {
9418 { "@PROGRAM@", (void *) 0 },
9419 _LT_EOF
9420 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9421 cat <<\_LT_EOF >> conftest.$ac_ext
9422 {0, (void *) 0}
9423 };
9424
9425 /* This works around a problem in FreeBSD linker */
9426 #ifdef FREEBSD_WORKAROUND
9427 static const void *lt_preloaded_setup() {
9428 return lt__PROGRAM__LTX_preloaded_symbols;
9429 }
9430 #endif
9431
9432 #ifdef __cplusplus
9433 }
9434 #endif
9435 _LT_EOF
9436 # Now try linking the two files.
9437 mv conftest.$ac_objext conftstm.$ac_objext
9438 lt_globsym_save_LIBS=$LIBS
9439 lt_globsym_save_CFLAGS=$CFLAGS
9440 LIBS=conftstm.$ac_objext
9441 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9443 (eval $ac_link) 2>&5
9444 ac_status=$?
9445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9446 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9447 pipe_works=yes
9448 fi
9449 LIBS=$lt_globsym_save_LIBS
9450 CFLAGS=$lt_globsym_save_CFLAGS
9451 else
9452 echo "cannot find nm_test_func in $nlist" >&5
9453 fi
9454 else
9455 echo "cannot find nm_test_var in $nlist" >&5
9456 fi
9457 else
9458 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9459 fi
9460 else
9461 echo "$progname: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 fi
9464 rm -rf conftest* conftst*
9465
9466 # Do not use the global_symbol_pipe unless it works.
9467 if test yes = "$pipe_works"; then
9468 break
9469 else
9470 lt_cv_sys_global_symbol_pipe=
9471 fi
9472 done
9473 ;;
9474 esac
9475 fi
9476
9477 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9478 lt_cv_sys_global_symbol_to_cdecl=
9479 fi
9480 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9482 printf "%s\n" "failed" >&6; }
9483 else
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9485 printf "%s\n" "ok" >&6; }
9486 fi
9487
9488 # Response file support.
9489 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9490 nm_file_list_spec='@'
9491 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9492 nm_file_list_spec='@'
9493 fi
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9532 printf %s "checking for sysroot... " >&6; }
9533
9534 # Check whether --with-sysroot was given.
9535 if test ${with_sysroot+y}
9536 then :
9537 withval=$with_sysroot;
9538 else case e in #(
9539 e) with_sysroot=no ;;
9540 esac
9541 fi
9542
9543
9544 lt_sysroot=
9545 case $with_sysroot in #(
9546 yes)
9547 if test yes = "$GCC"; then
9548 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9549 fi
9550 ;; #(
9551 /*)
9552 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9553 ;; #(
9554 no|'')
9555 ;; #(
9556 *)
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9558 printf "%s\n" "$with_sysroot" >&6; }
9559 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9560 ;;
9561 esac
9562
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9564 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9565
9566
9567
9568
9569
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9571 printf %s "checking for a working dd... " >&6; }
9572 if test ${ac_cv_path_lt_DD+y}
9573 then :
9574 printf %s "(cached) " >&6
9575 else case e in #(
9576 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9577 cat conftest.i conftest.i >conftest2.i
9578 : ${lt_DD:=$DD}
9579 if test -z "$lt_DD"; then
9580 ac_path_lt_DD_found=false
9581 # Loop through the user's path and test for each of PROGNAME-LIST
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9584 do
9585 IFS=$as_save_IFS
9586 case $as_dir in #(((
9587 '') as_dir=./ ;;
9588 */) ;;
9589 *) as_dir=$as_dir/ ;;
9590 esac
9591 for ac_prog in dd
9592 do
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9595 as_fn_executable_p "$ac_path_lt_DD" || continue
9596 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9597 cmp -s conftest.i conftest.out \
9598 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9599 fi
9600 $ac_path_lt_DD_found && break 3
9601 done
9602 done
9603 done
9604 IFS=$as_save_IFS
9605 if test -z "$ac_cv_path_lt_DD"; then
9606 :
9607 fi
9608 else
9609 ac_cv_path_lt_DD=$lt_DD
9610 fi
9611
9612 rm -f conftest.i conftest2.i conftest.out ;;
9613 esac
9614 fi
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9616 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9617
9618
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9620 printf %s "checking how to truncate binary pipes... " >&6; }
9621 if test ${lt_cv_truncate_bin+y}
9622 then :
9623 printf %s "(cached) " >&6
9624 else case e in #(
9625 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9626 cat conftest.i conftest.i >conftest2.i
9627 lt_cv_truncate_bin=
9628 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9629 cmp -s conftest.i conftest.out \
9630 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9631 fi
9632 rm -f conftest.i conftest2.i conftest.out
9633 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9634 esac
9635 fi
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9637 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9638
9639
9640
9641
9642
9643
9644
9645 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9646 func_cc_basename ()
9647 {
9648 for cc_temp in $*""; do
9649 case $cc_temp in
9650 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9651 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9652 \-*) ;;
9653 *) break;;
9654 esac
9655 done
9656 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9657 }
9658
9659 # Check whether --enable-libtool-lock was given.
9660 if test ${enable_libtool_lock+y}
9661 then :
9662 enableval=$enable_libtool_lock;
9663 fi
9664
9665 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9666
9667 # Some flags need to be propagated to the compiler or linker for good
9668 # libtool support.
9669 case $host in
9670 ia64-*-hpux*)
9671 # Find out what ABI is being produced by ac_compile, and set mode
9672 # options accordingly.
9673 echo 'int i;' > conftest.$ac_ext
9674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9675 (eval $ac_compile) 2>&5
9676 ac_status=$?
9677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9678 test $ac_status = 0; }; then
9679 case `$FILECMD conftest.$ac_objext` in
9680 *ELF-32*)
9681 HPUX_IA64_MODE=32
9682 ;;
9683 *ELF-64*)
9684 HPUX_IA64_MODE=64
9685 ;;
9686 esac
9687 fi
9688 rm -rf conftest*
9689 ;;
9690 *-*-irix6*)
9691 # Find out what ABI is being produced by ac_compile, and set linker
9692 # options accordingly.
9693 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9695 (eval $ac_compile) 2>&5
9696 ac_status=$?
9697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9698 test $ac_status = 0; }; then
9699 if test yes = "$lt_cv_prog_gnu_ld"; then
9700 case `$FILECMD conftest.$ac_objext` in
9701 *32-bit*)
9702 LD="${LD-ld} -melf32bsmip"
9703 ;;
9704 *N32*)
9705 LD="${LD-ld} -melf32bmipn32"
9706 ;;
9707 *64-bit*)
9708 LD="${LD-ld} -melf64bmip"
9709 ;;
9710 esac
9711 else
9712 case `$FILECMD conftest.$ac_objext` in
9713 *32-bit*)
9714 LD="${LD-ld} -32"
9715 ;;
9716 *N32*)
9717 LD="${LD-ld} -n32"
9718 ;;
9719 *64-bit*)
9720 LD="${LD-ld} -64"
9721 ;;
9722 esac
9723 fi
9724 fi
9725 rm -rf conftest*
9726 ;;
9727
9728 mips64*-*linux*)
9729 # Find out what ABI is being produced by ac_compile, and set linker
9730 # options accordingly.
9731 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9733 (eval $ac_compile) 2>&5
9734 ac_status=$?
9735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9736 test $ac_status = 0; }; then
9737 emul=elf
9738 case `$FILECMD conftest.$ac_objext` in
9739 *32-bit*)
9740 emul="${emul}32"
9741 ;;
9742 *64-bit*)
9743 emul="${emul}64"
9744 ;;
9745 esac
9746 case `$FILECMD conftest.$ac_objext` in
9747 *MSB*)
9748 emul="${emul}btsmip"
9749 ;;
9750 *LSB*)
9751 emul="${emul}ltsmip"
9752 ;;
9753 esac
9754 case `$FILECMD conftest.$ac_objext` in
9755 *N32*)
9756 emul="${emul}n32"
9757 ;;
9758 esac
9759 LD="${LD-ld} -m $emul"
9760 fi
9761 rm -rf conftest*
9762 ;;
9763
9764 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9765 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9766 # Find out what ABI is being produced by ac_compile, and set linker
9767 # options accordingly. Note that the listed cases only cover the
9768 # situations where additional linker options are needed (such as when
9769 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9770 # vice versa); the common cases where no linker options are needed do
9771 # not appear in the list.
9772 echo 'int i;' > conftest.$ac_ext
9773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9774 (eval $ac_compile) 2>&5
9775 ac_status=$?
9776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9777 test $ac_status = 0; }; then
9778 case `$FILECMD conftest.o` in
9779 *32-bit*)
9780 case $host in
9781 x86_64-*kfreebsd*-gnu)
9782 LD="${LD-ld} -m elf_i386_fbsd"
9783 ;;
9784 x86_64-*linux*)
9785 case `$FILECMD conftest.o` in
9786 *x86-64*)
9787 LD="${LD-ld} -m elf32_x86_64"
9788 ;;
9789 *)
9790 LD="${LD-ld} -m elf_i386"
9791 ;;
9792 esac
9793 ;;
9794 powerpc64le-*linux*)
9795 LD="${LD-ld} -m elf32lppclinux"
9796 ;;
9797 powerpc64-*linux*)
9798 LD="${LD-ld} -m elf32ppclinux"
9799 ;;
9800 s390x-*linux*)
9801 LD="${LD-ld} -m elf_s390"
9802 ;;
9803 sparc64-*linux*)
9804 LD="${LD-ld} -m elf32_sparc"
9805 ;;
9806 esac
9807 ;;
9808 *64-bit*)
9809 case $host in
9810 x86_64-*kfreebsd*-gnu)
9811 LD="${LD-ld} -m elf_x86_64_fbsd"
9812 ;;
9813 x86_64-*linux*)
9814 LD="${LD-ld} -m elf_x86_64"
9815 ;;
9816 powerpcle-*linux*)
9817 LD="${LD-ld} -m elf64lppc"
9818 ;;
9819 powerpc-*linux*)
9820 LD="${LD-ld} -m elf64ppc"
9821 ;;
9822 s390*-*linux*|s390*-*tpf*)
9823 LD="${LD-ld} -m elf64_s390"
9824 ;;
9825 sparc*-*linux*)
9826 LD="${LD-ld} -m elf64_sparc"
9827 ;;
9828 esac
9829 ;;
9830 esac
9831 fi
9832 rm -rf conftest*
9833 ;;
9834
9835 *-*-sco3.2v5*)
9836 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9837 SAVE_CFLAGS=$CFLAGS
9838 CFLAGS="$CFLAGS -belf"
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9840 printf %s "checking whether the C compiler needs -belf... " >&6; }
9841 if test ${lt_cv_cc_needs_belf+y}
9842 then :
9843 printf %s "(cached) " >&6
9844 else case e in #(
9845 e) ac_ext=c
9846 ac_cpp='$CPP $CPPFLAGS'
9847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9850
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853
9854 int
9855 main (void)
9856 {
9857
9858 ;
9859 return 0;
9860 }
9861 _ACEOF
9862 if ac_fn_c_try_link "$LINENO"
9863 then :
9864 lt_cv_cc_needs_belf=yes
9865 else case e in #(
9866 e) lt_cv_cc_needs_belf=no ;;
9867 esac
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9870 conftest$ac_exeext conftest.$ac_ext
9871 ac_ext=c
9872 ac_cpp='$CPP $CPPFLAGS'
9873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9876 ;;
9877 esac
9878 fi
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9880 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9881 if test yes != "$lt_cv_cc_needs_belf"; then
9882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9883 CFLAGS=$SAVE_CFLAGS
9884 fi
9885 ;;
9886 *-*solaris*)
9887 # Find out what ABI is being produced by ac_compile, and set linker
9888 # options accordingly.
9889 echo 'int i;' > conftest.$ac_ext
9890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9891 (eval $ac_compile) 2>&5
9892 ac_status=$?
9893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9894 test $ac_status = 0; }; then
9895 case `$FILECMD conftest.o` in
9896 *64-bit*)
9897 case $lt_cv_prog_gnu_ld in
9898 yes*)
9899 case $host in
9900 i?86-*-solaris*|x86_64-*-solaris*)
9901 LD="${LD-ld} -m elf_x86_64"
9902 ;;
9903 sparc*-*-solaris*)
9904 LD="${LD-ld} -m elf64_sparc"
9905 ;;
9906 esac
9907 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9908 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9909 LD=${LD-ld}_sol2
9910 fi
9911 ;;
9912 *)
9913 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9914 LD="${LD-ld} -64"
9915 fi
9916 ;;
9917 esac
9918 ;;
9919 esac
9920 fi
9921 rm -rf conftest*
9922 ;;
9923 esac
9924
9925 need_locks=$enable_libtool_lock
9926
9927 if test -n "$ac_tool_prefix"; then
9928 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9929 set dummy ${ac_tool_prefix}mt; ac_word=$2
9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9931 printf %s "checking for $ac_word... " >&6; }
9932 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9933 then :
9934 printf %s "(cached) " >&6
9935 else case e in #(
9936 e) if test -n "$MANIFEST_TOOL"; then
9937 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9938 else
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9941 do
9942 IFS=$as_save_IFS
9943 case $as_dir in #(((
9944 '') as_dir=./ ;;
9945 */) ;;
9946 *) as_dir=$as_dir/ ;;
9947 esac
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9950 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9952 break 2
9953 fi
9954 done
9955 done
9956 IFS=$as_save_IFS
9957
9958 fi ;;
9959 esac
9960 fi
9961 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9962 if test -n "$MANIFEST_TOOL"; then
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9964 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9965 else
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 printf "%s\n" "no" >&6; }
9968 fi
9969
9970
9971 fi
9972 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9973 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9974 # Extract the first word of "mt", so it can be a program name with args.
9975 set dummy mt; ac_word=$2
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 printf %s "checking for $ac_word... " >&6; }
9978 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9979 then :
9980 printf %s "(cached) " >&6
9981 else case e in #(
9982 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9983 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9984 else
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9987 do
9988 IFS=$as_save_IFS
9989 case $as_dir in #(((
9990 '') as_dir=./ ;;
9991 */) ;;
9992 *) as_dir=$as_dir/ ;;
9993 esac
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9996 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9998 break 2
9999 fi
10000 done
10001 done
10002 IFS=$as_save_IFS
10003
10004 fi ;;
10005 esac
10006 fi
10007 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10008 if test -n "$ac_ct_MANIFEST_TOOL"; then
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10010 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10011 else
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 printf "%s\n" "no" >&6; }
10014 fi
10015
10016 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10017 MANIFEST_TOOL=":"
10018 else
10019 case $cross_compiling:$ac_tool_warned in
10020 yes:)
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10022 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10023 ac_tool_warned=yes ;;
10024 esac
10025 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10026 fi
10027 else
10028 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10029 fi
10030
10031 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10033 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10034 if test ${lt_cv_path_mainfest_tool+y}
10035 then :
10036 printf %s "(cached) " >&6
10037 else case e in #(
10038 e) lt_cv_path_mainfest_tool=no
10039 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10040 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10041 cat conftest.err >&5
10042 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10043 lt_cv_path_mainfest_tool=yes
10044 fi
10045 rm -f conftest* ;;
10046 esac
10047 fi
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10049 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10050 if test yes != "$lt_cv_path_mainfest_tool"; then
10051 MANIFEST_TOOL=:
10052 fi
10053
10054
10055
10056
10057
10058
10059 case $host_os in
10060 rhapsody* | darwin*)
10061 if test -n "$ac_tool_prefix"; then
10062 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10063 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065 printf %s "checking for $ac_word... " >&6; }
10066 if test ${ac_cv_prog_DSYMUTIL+y}
10067 then :
10068 printf %s "(cached) " >&6
10069 else case e in #(
10070 e) if test -n "$DSYMUTIL"; then
10071 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10072 else
10073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in $PATH
10075 do
10076 IFS=$as_save_IFS
10077 case $as_dir in #(((
10078 '') as_dir=./ ;;
10079 */) ;;
10080 *) as_dir=$as_dir/ ;;
10081 esac
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10084 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088 done
10089 done
10090 IFS=$as_save_IFS
10091
10092 fi ;;
10093 esac
10094 fi
10095 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10096 if test -n "$DSYMUTIL"; then
10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10098 printf "%s\n" "$DSYMUTIL" >&6; }
10099 else
10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 printf "%s\n" "no" >&6; }
10102 fi
10103
10104
10105 fi
10106 if test -z "$ac_cv_prog_DSYMUTIL"; then
10107 ac_ct_DSYMUTIL=$DSYMUTIL
10108 # Extract the first word of "dsymutil", so it can be a program name with args.
10109 set dummy dsymutil; ac_word=$2
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 printf %s "checking for $ac_word... " >&6; }
10112 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10113 then :
10114 printf %s "(cached) " >&6
10115 else case e in #(
10116 e) if test -n "$ac_ct_DSYMUTIL"; then
10117 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10118 else
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in $PATH
10121 do
10122 IFS=$as_save_IFS
10123 case $as_dir in #(((
10124 '') as_dir=./ ;;
10125 */) ;;
10126 *) as_dir=$as_dir/ ;;
10127 esac
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10130 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10132 break 2
10133 fi
10134 done
10135 done
10136 IFS=$as_save_IFS
10137
10138 fi ;;
10139 esac
10140 fi
10141 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10142 if test -n "$ac_ct_DSYMUTIL"; then
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10144 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10145 else
10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 printf "%s\n" "no" >&6; }
10148 fi
10149
10150 if test "x$ac_ct_DSYMUTIL" = x; then
10151 DSYMUTIL=":"
10152 else
10153 case $cross_compiling:$ac_tool_warned in
10154 yes:)
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10156 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10157 ac_tool_warned=yes ;;
10158 esac
10159 DSYMUTIL=$ac_ct_DSYMUTIL
10160 fi
10161 else
10162 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10163 fi
10164
10165 if test -n "$ac_tool_prefix"; then
10166 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10167 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169 printf %s "checking for $ac_word... " >&6; }
10170 if test ${ac_cv_prog_NMEDIT+y}
10171 then :
10172 printf %s "(cached) " >&6
10173 else case e in #(
10174 e) if test -n "$NMEDIT"; then
10175 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10176 else
10177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178 for as_dir in $PATH
10179 do
10180 IFS=$as_save_IFS
10181 case $as_dir in #(((
10182 '') as_dir=./ ;;
10183 */) ;;
10184 *) as_dir=$as_dir/ ;;
10185 esac
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10188 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10190 break 2
10191 fi
10192 done
10193 done
10194 IFS=$as_save_IFS
10195
10196 fi ;;
10197 esac
10198 fi
10199 NMEDIT=$ac_cv_prog_NMEDIT
10200 if test -n "$NMEDIT"; then
10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10202 printf "%s\n" "$NMEDIT" >&6; }
10203 else
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 printf "%s\n" "no" >&6; }
10206 fi
10207
10208
10209 fi
10210 if test -z "$ac_cv_prog_NMEDIT"; then
10211 ac_ct_NMEDIT=$NMEDIT
10212 # Extract the first word of "nmedit", so it can be a program name with args.
10213 set dummy nmedit; ac_word=$2
10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 printf %s "checking for $ac_word... " >&6; }
10216 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10217 then :
10218 printf %s "(cached) " >&6
10219 else case e in #(
10220 e) if test -n "$ac_ct_NMEDIT"; then
10221 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10222 else
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10225 do
10226 IFS=$as_save_IFS
10227 case $as_dir in #(((
10228 '') as_dir=./ ;;
10229 */) ;;
10230 *) as_dir=$as_dir/ ;;
10231 esac
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10234 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10236 break 2
10237 fi
10238 done
10239 done
10240 IFS=$as_save_IFS
10241
10242 fi ;;
10243 esac
10244 fi
10245 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10246 if test -n "$ac_ct_NMEDIT"; then
10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10248 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10249 else
10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251 printf "%s\n" "no" >&6; }
10252 fi
10253
10254 if test "x$ac_ct_NMEDIT" = x; then
10255 NMEDIT=":"
10256 else
10257 case $cross_compiling:$ac_tool_warned in
10258 yes:)
10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10260 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10261 ac_tool_warned=yes ;;
10262 esac
10263 NMEDIT=$ac_ct_NMEDIT
10264 fi
10265 else
10266 NMEDIT="$ac_cv_prog_NMEDIT"
10267 fi
10268
10269 if test -n "$ac_tool_prefix"; then
10270 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10271 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10273 printf %s "checking for $ac_word... " >&6; }
10274 if test ${ac_cv_prog_LIPO+y}
10275 then :
10276 printf %s "(cached) " >&6
10277 else case e in #(
10278 e) if test -n "$LIPO"; then
10279 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10280 else
10281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282 for as_dir in $PATH
10283 do
10284 IFS=$as_save_IFS
10285 case $as_dir in #(((
10286 '') as_dir=./ ;;
10287 */) ;;
10288 *) as_dir=$as_dir/ ;;
10289 esac
10290 for ac_exec_ext in '' $ac_executable_extensions; do
10291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10292 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10294 break 2
10295 fi
10296 done
10297 done
10298 IFS=$as_save_IFS
10299
10300 fi ;;
10301 esac
10302 fi
10303 LIPO=$ac_cv_prog_LIPO
10304 if test -n "$LIPO"; then
10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10306 printf "%s\n" "$LIPO" >&6; }
10307 else
10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 printf "%s\n" "no" >&6; }
10310 fi
10311
10312
10313 fi
10314 if test -z "$ac_cv_prog_LIPO"; then
10315 ac_ct_LIPO=$LIPO
10316 # Extract the first word of "lipo", so it can be a program name with args.
10317 set dummy lipo; ac_word=$2
10318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319 printf %s "checking for $ac_word... " >&6; }
10320 if test ${ac_cv_prog_ac_ct_LIPO+y}
10321 then :
10322 printf %s "(cached) " >&6
10323 else case e in #(
10324 e) if test -n "$ac_ct_LIPO"; then
10325 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10326 else
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10329 do
10330 IFS=$as_save_IFS
10331 case $as_dir in #(((
10332 '') as_dir=./ ;;
10333 */) ;;
10334 *) as_dir=$as_dir/ ;;
10335 esac
10336 for ac_exec_ext in '' $ac_executable_extensions; do
10337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10338 ac_cv_prog_ac_ct_LIPO="lipo"
10339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10340 break 2
10341 fi
10342 done
10343 done
10344 IFS=$as_save_IFS
10345
10346 fi ;;
10347 esac
10348 fi
10349 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10350 if test -n "$ac_ct_LIPO"; then
10351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10352 printf "%s\n" "$ac_ct_LIPO" >&6; }
10353 else
10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 printf "%s\n" "no" >&6; }
10356 fi
10357
10358 if test "x$ac_ct_LIPO" = x; then
10359 LIPO=":"
10360 else
10361 case $cross_compiling:$ac_tool_warned in
10362 yes:)
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10364 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10365 ac_tool_warned=yes ;;
10366 esac
10367 LIPO=$ac_ct_LIPO
10368 fi
10369 else
10370 LIPO="$ac_cv_prog_LIPO"
10371 fi
10372
10373 if test -n "$ac_tool_prefix"; then
10374 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10375 set dummy ${ac_tool_prefix}otool; ac_word=$2
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377 printf %s "checking for $ac_word... " >&6; }
10378 if test ${ac_cv_prog_OTOOL+y}
10379 then :
10380 printf %s "(cached) " >&6
10381 else case e in #(
10382 e) if test -n "$OTOOL"; then
10383 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10384 else
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10387 do
10388 IFS=$as_save_IFS
10389 case $as_dir in #(((
10390 '') as_dir=./ ;;
10391 */) ;;
10392 *) as_dir=$as_dir/ ;;
10393 esac
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10396 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10398 break 2
10399 fi
10400 done
10401 done
10402 IFS=$as_save_IFS
10403
10404 fi ;;
10405 esac
10406 fi
10407 OTOOL=$ac_cv_prog_OTOOL
10408 if test -n "$OTOOL"; then
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10410 printf "%s\n" "$OTOOL" >&6; }
10411 else
10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 printf "%s\n" "no" >&6; }
10414 fi
10415
10416
10417 fi
10418 if test -z "$ac_cv_prog_OTOOL"; then
10419 ac_ct_OTOOL=$OTOOL
10420 # Extract the first word of "otool", so it can be a program name with args.
10421 set dummy otool; ac_word=$2
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 printf %s "checking for $ac_word... " >&6; }
10424 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10425 then :
10426 printf %s "(cached) " >&6
10427 else case e in #(
10428 e) if test -n "$ac_ct_OTOOL"; then
10429 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10430 else
10431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432 for as_dir in $PATH
10433 do
10434 IFS=$as_save_IFS
10435 case $as_dir in #(((
10436 '') as_dir=./ ;;
10437 */) ;;
10438 *) as_dir=$as_dir/ ;;
10439 esac
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10442 ac_cv_prog_ac_ct_OTOOL="otool"
10443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10444 break 2
10445 fi
10446 done
10447 done
10448 IFS=$as_save_IFS
10449
10450 fi ;;
10451 esac
10452 fi
10453 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10454 if test -n "$ac_ct_OTOOL"; then
10455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10456 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10457 else
10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 printf "%s\n" "no" >&6; }
10460 fi
10461
10462 if test "x$ac_ct_OTOOL" = x; then
10463 OTOOL=":"
10464 else
10465 case $cross_compiling:$ac_tool_warned in
10466 yes:)
10467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10468 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10469 ac_tool_warned=yes ;;
10470 esac
10471 OTOOL=$ac_ct_OTOOL
10472 fi
10473 else
10474 OTOOL="$ac_cv_prog_OTOOL"
10475 fi
10476
10477 if test -n "$ac_tool_prefix"; then
10478 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10479 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 printf %s "checking for $ac_word... " >&6; }
10482 if test ${ac_cv_prog_OTOOL64+y}
10483 then :
10484 printf %s "(cached) " >&6
10485 else case e in #(
10486 e) if test -n "$OTOOL64"; then
10487 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10488 else
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10491 do
10492 IFS=$as_save_IFS
10493 case $as_dir in #(((
10494 '') as_dir=./ ;;
10495 */) ;;
10496 *) as_dir=$as_dir/ ;;
10497 esac
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10500 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10502 break 2
10503 fi
10504 done
10505 done
10506 IFS=$as_save_IFS
10507
10508 fi ;;
10509 esac
10510 fi
10511 OTOOL64=$ac_cv_prog_OTOOL64
10512 if test -n "$OTOOL64"; then
10513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10514 printf "%s\n" "$OTOOL64" >&6; }
10515 else
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 printf "%s\n" "no" >&6; }
10518 fi
10519
10520
10521 fi
10522 if test -z "$ac_cv_prog_OTOOL64"; then
10523 ac_ct_OTOOL64=$OTOOL64
10524 # Extract the first word of "otool64", so it can be a program name with args.
10525 set dummy otool64; ac_word=$2
10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527 printf %s "checking for $ac_word... " >&6; }
10528 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10529 then :
10530 printf %s "(cached) " >&6
10531 else case e in #(
10532 e) if test -n "$ac_ct_OTOOL64"; then
10533 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10534 else
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10537 do
10538 IFS=$as_save_IFS
10539 case $as_dir in #(((
10540 '') as_dir=./ ;;
10541 */) ;;
10542 *) as_dir=$as_dir/ ;;
10543 esac
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10546 ac_cv_prog_ac_ct_OTOOL64="otool64"
10547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10548 break 2
10549 fi
10550 done
10551 done
10552 IFS=$as_save_IFS
10553
10554 fi ;;
10555 esac
10556 fi
10557 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10558 if test -n "$ac_ct_OTOOL64"; then
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10560 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10561 else
10562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 printf "%s\n" "no" >&6; }
10564 fi
10565
10566 if test "x$ac_ct_OTOOL64" = x; then
10567 OTOOL64=":"
10568 else
10569 case $cross_compiling:$ac_tool_warned in
10570 yes:)
10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10573 ac_tool_warned=yes ;;
10574 esac
10575 OTOOL64=$ac_ct_OTOOL64
10576 fi
10577 else
10578 OTOOL64="$ac_cv_prog_OTOOL64"
10579 fi
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10608 printf %s "checking for -single_module linker flag... " >&6; }
10609 if test ${lt_cv_apple_cc_single_mod+y}
10610 then :
10611 printf %s "(cached) " >&6
10612 else case e in #(
10613 e) lt_cv_apple_cc_single_mod=no
10614 if test -z "$LT_MULTI_MODULE"; then
10615 # By default we will add the -single_module flag. You can override
10616 # by either setting the environment variable LT_MULTI_MODULE
10617 # non-empty at configure time, or by adding -multi_module to the
10618 # link flags.
10619 rm -rf libconftest.dylib*
10620 echo "int foo(void){return 1;}" > conftest.c
10621 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10622 -dynamiclib -Wl,-single_module conftest.c" >&5
10623 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10624 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10625 _lt_result=$?
10626 # If there is a non-empty error log, and "single_module"
10627 # appears in it, assume the flag caused a linker warning
10628 if test -s conftest.err && $GREP single_module conftest.err; then
10629 cat conftest.err >&5
10630 # Otherwise, if the output was created with a 0 exit code from
10631 # the compiler, it worked.
10632 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10633 lt_cv_apple_cc_single_mod=yes
10634 else
10635 cat conftest.err >&5
10636 fi
10637 rm -rf libconftest.dylib*
10638 rm -f conftest.*
10639 fi ;;
10640 esac
10641 fi
10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10643 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10644
10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10646 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10647 if test ${lt_cv_ld_exported_symbols_list+y}
10648 then :
10649 printf %s "(cached) " >&6
10650 else case e in #(
10651 e) lt_cv_ld_exported_symbols_list=no
10652 save_LDFLAGS=$LDFLAGS
10653 echo "_main" > conftest.sym
10654 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657
10658 int
10659 main (void)
10660 {
10661
10662 ;
10663 return 0;
10664 }
10665 _ACEOF
10666 if ac_fn_c_try_link "$LINENO"
10667 then :
10668 lt_cv_ld_exported_symbols_list=yes
10669 else case e in #(
10670 e) lt_cv_ld_exported_symbols_list=no ;;
10671 esac
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LDFLAGS=$save_LDFLAGS
10676 ;;
10677 esac
10678 fi
10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10680 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10681
10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10683 printf %s "checking for -force_load linker flag... " >&6; }
10684 if test ${lt_cv_ld_force_load+y}
10685 then :
10686 printf %s "(cached) " >&6
10687 else case e in #(
10688 e) lt_cv_ld_force_load=no
10689 cat > conftest.c << _LT_EOF
10690 int forced_loaded() { return 2;}
10691 _LT_EOF
10692 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10693 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10694 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10695 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10696 echo "$RANLIB libconftest.a" >&5
10697 $RANLIB libconftest.a 2>&5
10698 cat > conftest.c << _LT_EOF
10699 int main() { return 0;}
10700 _LT_EOF
10701 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10702 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10703 _lt_result=$?
10704 if test -s conftest.err && $GREP force_load conftest.err; then
10705 cat conftest.err >&5
10706 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10707 lt_cv_ld_force_load=yes
10708 else
10709 cat conftest.err >&5
10710 fi
10711 rm -f conftest.err libconftest.a conftest conftest.c
10712 rm -rf conftest.dSYM
10713 ;;
10714 esac
10715 fi
10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10717 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10718 case $host_os in
10719 rhapsody* | darwin1.[012])
10720 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10721 darwin1.*)
10722 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10723 darwin*)
10724 case $MACOSX_DEPLOYMENT_TARGET,$host in
10725 10.[012],*|,*powerpc*-darwin[5-8]*)
10726 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10727 *)
10728 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10729 esac
10730 ;;
10731 esac
10732 if test yes = "$lt_cv_apple_cc_single_mod"; then
10733 _lt_dar_single_mod='$single_module'
10734 fi
10735 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10736 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10737 else
10738 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10739 fi
10740 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10741 _lt_dsymutil='~$DSYMUTIL $lib || :'
10742 else
10743 _lt_dsymutil=
10744 fi
10745 ;;
10746 esac
10747
10748 # func_munge_path_list VARIABLE PATH
10749 # -----------------------------------
10750 # VARIABLE is name of variable containing _space_ separated list of
10751 # directories to be munged by the contents of PATH, which is string
10752 # having a format:
10753 # "DIR[:DIR]:"
10754 # string "DIR[ DIR]" will be prepended to VARIABLE
10755 # ":DIR[:DIR]"
10756 # string "DIR[ DIR]" will be appended to VARIABLE
10757 # "DIRP[:DIRP]::[DIRA:]DIRA"
10758 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10759 # "DIRA[ DIRA]" will be appended to VARIABLE
10760 # "DIR[:DIR]"
10761 # VARIABLE will be replaced by "DIR[ DIR]"
10762 func_munge_path_list ()
10763 {
10764 case x$2 in
10765 x)
10766 ;;
10767 *:)
10768 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10769 ;;
10770 x:*)
10771 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10772 ;;
10773 *::*)
10774 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10775 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10776 ;;
10777 *)
10778 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10779 ;;
10780 esac
10781 }
10782
10783 ac_header= ac_cache=
10784 for ac_item in $ac_header_c_list
10785 do
10786 if test $ac_cache; then
10787 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10788 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10789 printf "%s\n" "#define $ac_item 1" >> confdefs.h
10790 fi
10791 ac_header= ac_cache=
10792 elif test $ac_header; then
10793 ac_cache=$ac_item
10794 else
10795 ac_header=$ac_item
10796 fi
10797 done
10798
10799
10800
10801
10802
10803
10804
10805
10806 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10807 then :
10808
10809 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10810
10811 fi
10812 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10813 "
10814 if test "x$ac_cv_header_dlfcn_h" = xyes
10815 then :
10816 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10817
10818 fi
10819
10820
10821
10822
10823 func_stripname_cnf ()
10824 {
10825 case $2 in
10826 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10827 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10828 esac
10829 } # func_stripname_cnf
10830
10831
10832
10833
10834
10835 # Set options
10836 enable_win32_dll=yes
10837
10838 case $host in
10839 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10840 if test -n "$ac_tool_prefix"; then
10841 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10842 set dummy ${ac_tool_prefix}as; ac_word=$2
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 printf %s "checking for $ac_word... " >&6; }
10845 if test ${ac_cv_prog_AS+y}
10846 then :
10847 printf %s "(cached) " >&6
10848 else case e in #(
10849 e) if test -n "$AS"; then
10850 ac_cv_prog_AS="$AS" # Let the user override the test.
10851 else
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10854 do
10855 IFS=$as_save_IFS
10856 case $as_dir in #(((
10857 '') as_dir=./ ;;
10858 */) ;;
10859 *) as_dir=$as_dir/ ;;
10860 esac
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_AS="${ac_tool_prefix}as"
10864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867 done
10868 done
10869 IFS=$as_save_IFS
10870
10871 fi ;;
10872 esac
10873 fi
10874 AS=$ac_cv_prog_AS
10875 if test -n "$AS"; then
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10877 printf "%s\n" "$AS" >&6; }
10878 else
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880 printf "%s\n" "no" >&6; }
10881 fi
10882
10883
10884 fi
10885 if test -z "$ac_cv_prog_AS"; then
10886 ac_ct_AS=$AS
10887 # Extract the first word of "as", so it can be a program name with args.
10888 set dummy as; ac_word=$2
10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10890 printf %s "checking for $ac_word... " >&6; }
10891 if test ${ac_cv_prog_ac_ct_AS+y}
10892 then :
10893 printf %s "(cached) " >&6
10894 else case e in #(
10895 e) if test -n "$ac_ct_AS"; then
10896 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10897 else
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10900 do
10901 IFS=$as_save_IFS
10902 case $as_dir in #(((
10903 '') as_dir=./ ;;
10904 */) ;;
10905 *) as_dir=$as_dir/ ;;
10906 esac
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10909 ac_cv_prog_ac_ct_AS="as"
10910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10911 break 2
10912 fi
10913 done
10914 done
10915 IFS=$as_save_IFS
10916
10917 fi ;;
10918 esac
10919 fi
10920 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10921 if test -n "$ac_ct_AS"; then
10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10923 printf "%s\n" "$ac_ct_AS" >&6; }
10924 else
10925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 printf "%s\n" "no" >&6; }
10927 fi
10928
10929 if test "x$ac_ct_AS" = x; then
10930 AS="false"
10931 else
10932 case $cross_compiling:$ac_tool_warned in
10933 yes:)
10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10936 ac_tool_warned=yes ;;
10937 esac
10938 AS=$ac_ct_AS
10939 fi
10940 else
10941 AS="$ac_cv_prog_AS"
10942 fi
10943
10944 if test -n "$ac_tool_prefix"; then
10945 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10946 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10948 printf %s "checking for $ac_word... " >&6; }
10949 if test ${ac_cv_prog_DLLTOOL+y}
10950 then :
10951 printf %s "(cached) " >&6
10952 else case e in #(
10953 e) if test -n "$DLLTOOL"; then
10954 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10955 else
10956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957 for as_dir in $PATH
10958 do
10959 IFS=$as_save_IFS
10960 case $as_dir in #(((
10961 '') as_dir=./ ;;
10962 */) ;;
10963 *) as_dir=$as_dir/ ;;
10964 esac
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10967 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10969 break 2
10970 fi
10971 done
10972 done
10973 IFS=$as_save_IFS
10974
10975 fi ;;
10976 esac
10977 fi
10978 DLLTOOL=$ac_cv_prog_DLLTOOL
10979 if test -n "$DLLTOOL"; then
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10981 printf "%s\n" "$DLLTOOL" >&6; }
10982 else
10983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 printf "%s\n" "no" >&6; }
10985 fi
10986
10987
10988 fi
10989 if test -z "$ac_cv_prog_DLLTOOL"; then
10990 ac_ct_DLLTOOL=$DLLTOOL
10991 # Extract the first word of "dlltool", so it can be a program name with args.
10992 set dummy dlltool; ac_word=$2
10993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 printf %s "checking for $ac_word... " >&6; }
10995 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10996 then :
10997 printf %s "(cached) " >&6
10998 else case e in #(
10999 e) if test -n "$ac_ct_DLLTOOL"; then
11000 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11001 else
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11004 do
11005 IFS=$as_save_IFS
11006 case $as_dir in #(((
11007 '') as_dir=./ ;;
11008 */) ;;
11009 *) as_dir=$as_dir/ ;;
11010 esac
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11013 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11015 break 2
11016 fi
11017 done
11018 done
11019 IFS=$as_save_IFS
11020
11021 fi ;;
11022 esac
11023 fi
11024 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11025 if test -n "$ac_ct_DLLTOOL"; then
11026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11027 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11028 else
11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 printf "%s\n" "no" >&6; }
11031 fi
11032
11033 if test "x$ac_ct_DLLTOOL" = x; then
11034 DLLTOOL="false"
11035 else
11036 case $cross_compiling:$ac_tool_warned in
11037 yes:)
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11039 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11040 ac_tool_warned=yes ;;
11041 esac
11042 DLLTOOL=$ac_ct_DLLTOOL
11043 fi
11044 else
11045 DLLTOOL="$ac_cv_prog_DLLTOOL"
11046 fi
11047
11048 if test -n "$ac_tool_prefix"; then
11049 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11050 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 printf %s "checking for $ac_word... " >&6; }
11053 if test ${ac_cv_prog_OBJDUMP+y}
11054 then :
11055 printf %s "(cached) " >&6
11056 else case e in #(
11057 e) if test -n "$OBJDUMP"; then
11058 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11059 else
11060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11061 for as_dir in $PATH
11062 do
11063 IFS=$as_save_IFS
11064 case $as_dir in #(((
11065 '') as_dir=./ ;;
11066 */) ;;
11067 *) as_dir=$as_dir/ ;;
11068 esac
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11071 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11073 break 2
11074 fi
11075 done
11076 done
11077 IFS=$as_save_IFS
11078
11079 fi ;;
11080 esac
11081 fi
11082 OBJDUMP=$ac_cv_prog_OBJDUMP
11083 if test -n "$OBJDUMP"; then
11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11085 printf "%s\n" "$OBJDUMP" >&6; }
11086 else
11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 printf "%s\n" "no" >&6; }
11089 fi
11090
11091
11092 fi
11093 if test -z "$ac_cv_prog_OBJDUMP"; then
11094 ac_ct_OBJDUMP=$OBJDUMP
11095 # Extract the first word of "objdump", so it can be a program name with args.
11096 set dummy objdump; ac_word=$2
11097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 printf %s "checking for $ac_word... " >&6; }
11099 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11100 then :
11101 printf %s "(cached) " >&6
11102 else case e in #(
11103 e) if test -n "$ac_ct_OBJDUMP"; then
11104 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109 IFS=$as_save_IFS
11110 case $as_dir in #(((
11111 '') as_dir=./ ;;
11112 */) ;;
11113 *) as_dir=$as_dir/ ;;
11114 esac
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11117 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11119 break 2
11120 fi
11121 done
11122 done
11123 IFS=$as_save_IFS
11124
11125 fi ;;
11126 esac
11127 fi
11128 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11129 if test -n "$ac_ct_OBJDUMP"; then
11130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11131 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11132 else
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 printf "%s\n" "no" >&6; }
11135 fi
11136
11137 if test "x$ac_ct_OBJDUMP" = x; then
11138 OBJDUMP="false"
11139 else
11140 case $cross_compiling:$ac_tool_warned in
11141 yes:)
11142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11143 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11144 ac_tool_warned=yes ;;
11145 esac
11146 OBJDUMP=$ac_ct_OBJDUMP
11147 fi
11148 else
11149 OBJDUMP="$ac_cv_prog_OBJDUMP"
11150 fi
11151
11152 ;;
11153 esac
11154
11155 test -z "$AS" && AS=as
11156
11157
11158
11159
11160
11161 test -z "$DLLTOOL" && DLLTOOL=dlltool
11162
11163
11164
11165
11166
11167 test -z "$OBJDUMP" && OBJDUMP=objdump
11168
11169
11170
11171
11172
11173
11174
11175 enable_dlopen=no
11176
11177
11178
11179 # Check whether --enable-shared was given.
11180 if test ${enable_shared+y}
11181 then :
11182 enableval=$enable_shared; p=${PACKAGE-default}
11183 case $enableval in
11184 yes) enable_shared=yes ;;
11185 no) enable_shared=no ;;
11186 *)
11187 enable_shared=no
11188 # Look at the argument we got. We use all the common list separators.
11189 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11190 for pkg in $enableval; do
11191 IFS=$lt_save_ifs
11192 if test "X$pkg" = "X$p"; then
11193 enable_shared=yes
11194 fi
11195 done
11196 IFS=$lt_save_ifs
11197 ;;
11198 esac
11199 else case e in #(
11200 e) enable_shared=yes ;;
11201 esac
11202 fi
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212 # Check whether --enable-static was given.
11213 if test ${enable_static+y}
11214 then :
11215 enableval=$enable_static; p=${PACKAGE-default}
11216 case $enableval in
11217 yes) enable_static=yes ;;
11218 no) enable_static=no ;;
11219 *)
11220 enable_static=no
11221 # Look at the argument we got. We use all the common list separators.
11222 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11223 for pkg in $enableval; do
11224 IFS=$lt_save_ifs
11225 if test "X$pkg" = "X$p"; then
11226 enable_static=yes
11227 fi
11228 done
11229 IFS=$lt_save_ifs
11230 ;;
11231 esac
11232 else case e in #(
11233 e) enable_static=yes ;;
11234 esac
11235 fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246 # Check whether --with-pic was given.
11247 if test ${with_pic+y}
11248 then :
11249 withval=$with_pic; lt_p=${PACKAGE-default}
11250 case $withval in
11251 yes|no) pic_mode=$withval ;;
11252 *)
11253 pic_mode=default
11254 # Look at the argument we got. We use all the common list separators.
11255 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11256 for lt_pkg in $withval; do
11257 IFS=$lt_save_ifs
11258 if test "X$lt_pkg" = "X$lt_p"; then
11259 pic_mode=yes
11260 fi
11261 done
11262 IFS=$lt_save_ifs
11263 ;;
11264 esac
11265 else case e in #(
11266 e) pic_mode=default ;;
11267 esac
11268 fi
11269
11270
11271
11272
11273
11274
11275
11276
11277 # Check whether --enable-fast-install was given.
11278 if test ${enable_fast_install+y}
11279 then :
11280 enableval=$enable_fast_install; p=${PACKAGE-default}
11281 case $enableval in
11282 yes) enable_fast_install=yes ;;
11283 no) enable_fast_install=no ;;
11284 *)
11285 enable_fast_install=no
11286 # Look at the argument we got. We use all the common list separators.
11287 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11288 for pkg in $enableval; do
11289 IFS=$lt_save_ifs
11290 if test "X$pkg" = "X$p"; then
11291 enable_fast_install=yes
11292 fi
11293 done
11294 IFS=$lt_save_ifs
11295 ;;
11296 esac
11297 else case e in #(
11298 e) enable_fast_install=yes ;;
11299 esac
11300 fi
11301
11302
11303
11304
11305
11306
11307
11308
11309 shared_archive_member_spec=
11310 case $host,$enable_shared in
11311 power*-*-aix[5-9]*,yes)
11312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11313 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11314
11315 # Check whether --with-aix-soname was given.
11316 if test ${with_aix_soname+y}
11317 then :
11318 withval=$with_aix_soname; case $withval in
11319 aix|svr4|both)
11320 ;;
11321 *)
11322 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11323 ;;
11324 esac
11325 lt_cv_with_aix_soname=$with_aix_soname
11326 else case e in #(
11327 e) if test ${lt_cv_with_aix_soname+y}
11328 then :
11329 printf %s "(cached) " >&6
11330 else case e in #(
11331 e) lt_cv_with_aix_soname=aix ;;
11332 esac
11333 fi
11334
11335 with_aix_soname=$lt_cv_with_aix_soname ;;
11336 esac
11337 fi
11338
11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11340 printf "%s\n" "$with_aix_soname" >&6; }
11341 if test aix != "$with_aix_soname"; then
11342 # For the AIX way of multilib, we name the shared archive member
11343 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11344 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11345 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11346 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11347 if test 64 = "${OBJECT_MODE-32}"; then
11348 shared_archive_member_spec=shr_64
11349 else
11350 shared_archive_member_spec=shr
11351 fi
11352 fi
11353 ;;
11354 *)
11355 with_aix_soname=aix
11356 ;;
11357 esac
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368 # This can be used to rebuild libtool when needed
11369 LIBTOOL_DEPS=$ltmain
11370
11371 # Always use our own libtool.
11372 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403 test -z "$LN_S" && LN_S="ln -s"
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418 if test -n "${ZSH_VERSION+set}"; then
11419 setopt NO_GLOB_SUBST
11420 fi
11421
11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11423 printf %s "checking for objdir... " >&6; }
11424 if test ${lt_cv_objdir+y}
11425 then :
11426 printf %s "(cached) " >&6
11427 else case e in #(
11428 e) rm -f .libs 2>/dev/null
11429 mkdir .libs 2>/dev/null
11430 if test -d .libs; then
11431 lt_cv_objdir=.libs
11432 else
11433 # MS-DOS does not allow filenames that begin with a dot.
11434 lt_cv_objdir=_libs
11435 fi
11436 rmdir .libs 2>/dev/null ;;
11437 esac
11438 fi
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11440 printf "%s\n" "$lt_cv_objdir" >&6; }
11441 objdir=$lt_cv_objdir
11442
11443
11444
11445
11446
11447 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11448
11449
11450
11451
11452 case $host_os in
11453 aix3*)
11454 # AIX sometimes has problems with the GCC collect2 program. For some
11455 # reason, if we set the COLLECT_NAMES environment variable, the problems
11456 # vanish in a puff of smoke.
11457 if test set != "${COLLECT_NAMES+set}"; then
11458 COLLECT_NAMES=
11459 export COLLECT_NAMES
11460 fi
11461 ;;
11462 esac
11463
11464 # Global variables:
11465 ofile=libtool
11466 can_build_shared=yes
11467
11468 # All known linkers require a '.a' archive for static linking (except MSVC and
11469 # ICC, which need '.lib').
11470 libext=a
11471
11472 with_gnu_ld=$lt_cv_prog_gnu_ld
11473
11474 old_CC=$CC
11475 old_CFLAGS=$CFLAGS
11476
11477 # Set sane defaults for various variables
11478 test -z "$CC" && CC=cc
11479 test -z "$LTCC" && LTCC=$CC
11480 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11481 test -z "$LD" && LD=ld
11482 test -z "$ac_objext" && ac_objext=o
11483
11484 func_cc_basename $compiler
11485 cc_basename=$func_cc_basename_result
11486
11487
11488 # Only perform the check for file, if the check method requires it
11489 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11490 case $deplibs_check_method in
11491 file_magic*)
11492 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11494 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11495 if test ${lt_cv_path_MAGIC_CMD+y}
11496 then :
11497 printf %s "(cached) " >&6
11498 else case e in #(
11499 e) case $MAGIC_CMD in
11500 [\\/*] | ?:[\\/]*)
11501 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11502 ;;
11503 *)
11504 lt_save_MAGIC_CMD=$MAGIC_CMD
11505 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11507 for ac_dir in $ac_dummy; do
11508 IFS=$lt_save_ifs
11509 test -z "$ac_dir" && ac_dir=.
11510 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11511 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11512 if test -n "$file_magic_test_file"; then
11513 case $deplibs_check_method in
11514 "file_magic "*)
11515 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11516 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11518 $EGREP "$file_magic_regex" > /dev/null; then
11519 :
11520 else
11521 cat <<_LT_EOF 1>&2
11522
11523 *** Warning: the command libtool uses to detect shared libraries,
11524 *** $file_magic_cmd, produces output that libtool cannot recognize.
11525 *** The result is that libtool may fail to recognize shared libraries
11526 *** as such. This will affect the creation of libtool libraries that
11527 *** depend on shared libraries, but programs linked with such libtool
11528 *** libraries will work regardless of this problem. Nevertheless, you
11529 *** may want to report the problem to your system manager and/or to
11530 *** [email protected]
11531
11532 _LT_EOF
11533 fi ;;
11534 esac
11535 fi
11536 break
11537 fi
11538 done
11539 IFS=$lt_save_ifs
11540 MAGIC_CMD=$lt_save_MAGIC_CMD
11541 ;;
11542 esac ;;
11543 esac
11544 fi
11545
11546 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11547 if test -n "$MAGIC_CMD"; then
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11549 printf "%s\n" "$MAGIC_CMD" >&6; }
11550 else
11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 printf "%s\n" "no" >&6; }
11553 fi
11554
11555
11556
11557
11558
11559 if test -z "$lt_cv_path_MAGIC_CMD"; then
11560 if test -n "$ac_tool_prefix"; then
11561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11562 printf %s "checking for file... " >&6; }
11563 if test ${lt_cv_path_MAGIC_CMD+y}
11564 then :
11565 printf %s "(cached) " >&6
11566 else case e in #(
11567 e) case $MAGIC_CMD in
11568 [\\/*] | ?:[\\/]*)
11569 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11570 ;;
11571 *)
11572 lt_save_MAGIC_CMD=$MAGIC_CMD
11573 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11574 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11575 for ac_dir in $ac_dummy; do
11576 IFS=$lt_save_ifs
11577 test -z "$ac_dir" && ac_dir=.
11578 if test -f "$ac_dir/file"; then
11579 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11580 if test -n "$file_magic_test_file"; then
11581 case $deplibs_check_method in
11582 "file_magic "*)
11583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11584 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11586 $EGREP "$file_magic_regex" > /dev/null; then
11587 :
11588 else
11589 cat <<_LT_EOF 1>&2
11590
11591 *** Warning: the command libtool uses to detect shared libraries,
11592 *** $file_magic_cmd, produces output that libtool cannot recognize.
11593 *** The result is that libtool may fail to recognize shared libraries
11594 *** as such. This will affect the creation of libtool libraries that
11595 *** depend on shared libraries, but programs linked with such libtool
11596 *** libraries will work regardless of this problem. Nevertheless, you
11597 *** may want to report the problem to your system manager and/or to
11598 *** [email protected]
11599
11600 _LT_EOF
11601 fi ;;
11602 esac
11603 fi
11604 break
11605 fi
11606 done
11607 IFS=$lt_save_ifs
11608 MAGIC_CMD=$lt_save_MAGIC_CMD
11609 ;;
11610 esac ;;
11611 esac
11612 fi
11613
11614 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11615 if test -n "$MAGIC_CMD"; then
11616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11617 printf "%s\n" "$MAGIC_CMD" >&6; }
11618 else
11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 printf "%s\n" "no" >&6; }
11621 fi
11622
11623
11624 else
11625 MAGIC_CMD=:
11626 fi
11627 fi
11628
11629 fi
11630 ;;
11631 esac
11632
11633 # Use C for the default configuration in the libtool script
11634
11635 lt_save_CC=$CC
11636 ac_ext=c
11637 ac_cpp='$CPP $CPPFLAGS'
11638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11641
11642
11643 # Source file extension for C test sources.
11644 ac_ext=c
11645
11646 # Object file extension for compiled C test sources.
11647 objext=o
11648 objext=$objext
11649
11650 # Code to be used in simple compile tests
11651 lt_simple_compile_test_code="int some_variable = 0;"
11652
11653 # Code to be used in simple link tests
11654 lt_simple_link_test_code='int main(){return(0);}'
11655
11656
11657
11658
11659
11660
11661
11662 # If no C compiler was specified, use CC.
11663 LTCC=${LTCC-"$CC"}
11664
11665 # If no C compiler flags were specified, use CFLAGS.
11666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11667
11668 # Allow CC to be a program name with arguments.
11669 compiler=$CC
11670
11671 # Save the default compiler, since it gets overwritten when the other
11672 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11673 compiler_DEFAULT=$CC
11674
11675 # save warnings/boilerplate of simple test code
11676 ac_outfile=conftest.$ac_objext
11677 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11679 _lt_compiler_boilerplate=`cat conftest.err`
11680 $RM conftest*
11681
11682 ac_outfile=conftest.$ac_objext
11683 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11685 _lt_linker_boilerplate=`cat conftest.err`
11686 $RM -r conftest*
11687
11688
11689 ## CAVEAT EMPTOR:
11690 ## There is no encapsulation within the following macros, do not change
11691 ## the running order or otherwise move them around unless you know exactly
11692 ## what you are doing...
11693 if test -n "$compiler"; then
11694
11695 lt_prog_compiler_no_builtin_flag=
11696
11697 if test yes = "$GCC"; then
11698 case $cc_basename in
11699 nvcc*)
11700 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11701 *)
11702 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11703 esac
11704
11705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11706 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11707 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11708 then :
11709 printf %s "(cached) " >&6
11710 else case e in #(
11711 e) lt_cv_prog_compiler_rtti_exceptions=no
11712 ac_outfile=conftest.$ac_objext
11713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11714 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11715 # Insert the option either (1) after the last *FLAGS variable, or
11716 # (2) before a word containing "conftest.", or (3) at the end.
11717 # Note that $ac_compile itself does not contain backslashes and begins
11718 # with a dollar sign (not a hyphen), so the echo should work correctly.
11719 # The option is referenced via a variable to avoid confusing sed.
11720 lt_compile=`echo "$ac_compile" | $SED \
11721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11723 -e 's:$: $lt_compiler_flag:'`
11724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11725 (eval "$lt_compile" 2>conftest.err)
11726 ac_status=$?
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 if (exit $ac_status) && test -s "$ac_outfile"; then
11730 # The compiler can only warn and ignore the option if not recognized
11731 # So say no if there are warnings other than the usual output.
11732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11735 lt_cv_prog_compiler_rtti_exceptions=yes
11736 fi
11737 fi
11738 $RM conftest*
11739 ;;
11740 esac
11741 fi
11742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11743 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11744
11745 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11746 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11747 else
11748 :
11749 fi
11750
11751 fi
11752
11753
11754
11755
11756
11757
11758 lt_prog_compiler_wl=
11759 lt_prog_compiler_pic=
11760 lt_prog_compiler_static=
11761
11762
11763 if test yes = "$GCC"; then
11764 lt_prog_compiler_wl='-Wl,'
11765 lt_prog_compiler_static='-static'
11766
11767 case $host_os in
11768 aix*)
11769 # All AIX code is PIC.
11770 if test ia64 = "$host_cpu"; then
11771 # AIX 5 now supports IA64 processor
11772 lt_prog_compiler_static='-Bstatic'
11773 fi
11774 lt_prog_compiler_pic='-fPIC'
11775 ;;
11776
11777 amigaos*)
11778 case $host_cpu in
11779 powerpc)
11780 # see comment about AmigaOS4 .so support
11781 lt_prog_compiler_pic='-fPIC'
11782 ;;
11783 m68k)
11784 # FIXME: we need at least 68020 code to build shared libraries, but
11785 # adding the '-m68020' flag to GCC prevents building anything better,
11786 # like '-m68040'.
11787 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11788 ;;
11789 esac
11790 ;;
11791
11792 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11793 # PIC is the default for these OSes.
11794 ;;
11795
11796 mingw* | cygwin* | pw32* | os2* | cegcc*)
11797 # This hack is so that the source file can tell whether it is being
11798 # built for inclusion in a dll (and should export symbols for example).
11799 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11800 # (--disable-auto-import) libraries
11801 lt_prog_compiler_pic='-DDLL_EXPORT'
11802 case $host_os in
11803 os2*)
11804 lt_prog_compiler_static='$wl-static'
11805 ;;
11806 esac
11807 ;;
11808
11809 darwin* | rhapsody*)
11810 # PIC is the default on this platform
11811 # Common symbols not allowed in MH_DYLIB files
11812 lt_prog_compiler_pic='-fno-common'
11813 ;;
11814
11815 haiku*)
11816 # PIC is the default for Haiku.
11817 # The "-static" flag exists, but is broken.
11818 lt_prog_compiler_static=
11819 ;;
11820
11821 hpux*)
11822 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11823 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11824 # sets the default TLS model and affects inlining.
11825 case $host_cpu in
11826 hppa*64*)
11827 # +Z the default
11828 ;;
11829 *)
11830 lt_prog_compiler_pic='-fPIC'
11831 ;;
11832 esac
11833 ;;
11834
11835 interix[3-9]*)
11836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11837 # Instead, we relocate shared libraries at runtime.
11838 ;;
11839
11840 msdosdjgpp*)
11841 # Just because we use GCC doesn't mean we suddenly get shared libraries
11842 # on systems that don't support them.
11843 lt_prog_compiler_can_build_shared=no
11844 enable_shared=no
11845 ;;
11846
11847 *nto* | *qnx*)
11848 # QNX uses GNU C++, but need to define -shared option too, otherwise
11849 # it will coredump.
11850 lt_prog_compiler_pic='-fPIC -shared'
11851 ;;
11852
11853 sysv4*MP*)
11854 if test -d /usr/nec; then
11855 lt_prog_compiler_pic=-Kconform_pic
11856 fi
11857 ;;
11858
11859 *)
11860 lt_prog_compiler_pic='-fPIC'
11861 ;;
11862 esac
11863
11864 case $cc_basename in
11865 nvcc*) # Cuda Compiler Driver 2.2
11866 lt_prog_compiler_wl='-Xlinker '
11867 if test -n "$lt_prog_compiler_pic"; then
11868 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11869 fi
11870 ;;
11871 esac
11872 else
11873 # PORTME Check for flag to pass linker flags through the system compiler.
11874 case $host_os in
11875 aix*)
11876 lt_prog_compiler_wl='-Wl,'
11877 if test ia64 = "$host_cpu"; then
11878 # AIX 5 now supports IA64 processor
11879 lt_prog_compiler_static='-Bstatic'
11880 else
11881 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11882 fi
11883 ;;
11884
11885 darwin* | rhapsody*)
11886 # PIC is the default on this platform
11887 # Common symbols not allowed in MH_DYLIB files
11888 lt_prog_compiler_pic='-fno-common'
11889 case $cc_basename in
11890 nagfor*)
11891 # NAG Fortran compiler
11892 lt_prog_compiler_wl='-Wl,-Wl,,'
11893 lt_prog_compiler_pic='-PIC'
11894 lt_prog_compiler_static='-Bstatic'
11895 ;;
11896 esac
11897 ;;
11898
11899 mingw* | cygwin* | pw32* | os2* | cegcc*)
11900 # This hack is so that the source file can tell whether it is being
11901 # built for inclusion in a dll (and should export symbols for example).
11902 lt_prog_compiler_pic='-DDLL_EXPORT'
11903 case $host_os in
11904 os2*)
11905 lt_prog_compiler_static='$wl-static'
11906 ;;
11907 esac
11908 ;;
11909
11910 hpux9* | hpux10* | hpux11*)
11911 lt_prog_compiler_wl='-Wl,'
11912 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11913 # not for PA HP-UX.
11914 case $host_cpu in
11915 hppa*64*|ia64*)
11916 # +Z the default
11917 ;;
11918 *)
11919 lt_prog_compiler_pic='+Z'
11920 ;;
11921 esac
11922 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11923 lt_prog_compiler_static='$wl-a ${wl}archive'
11924 ;;
11925
11926 irix5* | irix6* | nonstopux*)
11927 lt_prog_compiler_wl='-Wl,'
11928 # PIC (with -KPIC) is the default.
11929 lt_prog_compiler_static='-non_shared'
11930 ;;
11931
11932 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11933 case $cc_basename in
11934 # old Intel for x86_64, which still supported -KPIC.
11935 ecc*)
11936 lt_prog_compiler_wl='-Wl,'
11937 lt_prog_compiler_pic='-KPIC'
11938 lt_prog_compiler_static='-static'
11939 ;;
11940 # flang / f18. f95 an alias for gfortran or flang on Debian
11941 flang* | f18* | f95*)
11942 lt_prog_compiler_wl='-Wl,'
11943 lt_prog_compiler_pic='-fPIC'
11944 lt_prog_compiler_static='-static'
11945 ;;
11946 # icc used to be incompatible with GCC.
11947 # ICC 10 doesn't accept -KPIC any more.
11948 icc* | ifort*)
11949 lt_prog_compiler_wl='-Wl,'
11950 lt_prog_compiler_pic='-fPIC'
11951 lt_prog_compiler_static='-static'
11952 ;;
11953 # Lahey Fortran 8.1.
11954 lf95*)
11955 lt_prog_compiler_wl='-Wl,'
11956 lt_prog_compiler_pic='--shared'
11957 lt_prog_compiler_static='--static'
11958 ;;
11959 nagfor*)
11960 # NAG Fortran compiler
11961 lt_prog_compiler_wl='-Wl,-Wl,,'
11962 lt_prog_compiler_pic='-PIC'
11963 lt_prog_compiler_static='-Bstatic'
11964 ;;
11965 tcc*)
11966 # Fabrice Bellard et al's Tiny C Compiler
11967 lt_prog_compiler_wl='-Wl,'
11968 lt_prog_compiler_pic='-fPIC'
11969 lt_prog_compiler_static='-static'
11970 ;;
11971 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11972 # Portland Group compilers (*not* the Pentium gcc compiler,
11973 # which looks to be a dead project)
11974 lt_prog_compiler_wl='-Wl,'
11975 lt_prog_compiler_pic='-fpic'
11976 lt_prog_compiler_static='-Bstatic'
11977 ;;
11978 ccc*)
11979 lt_prog_compiler_wl='-Wl,'
11980 # All Alpha code is PIC.
11981 lt_prog_compiler_static='-non_shared'
11982 ;;
11983 xl* | bgxl* | bgf* | mpixl*)
11984 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11985 lt_prog_compiler_wl='-Wl,'
11986 lt_prog_compiler_pic='-qpic'
11987 lt_prog_compiler_static='-qstaticlink'
11988 ;;
11989 *)
11990 case `$CC -V 2>&1 | $SED 5q` in
11991 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11992 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11993 lt_prog_compiler_pic='-KPIC'
11994 lt_prog_compiler_static='-Bstatic'
11995 lt_prog_compiler_wl=''
11996 ;;
11997 *Sun\ F* | *Sun*Fortran*)
11998 lt_prog_compiler_pic='-KPIC'
11999 lt_prog_compiler_static='-Bstatic'
12000 lt_prog_compiler_wl='-Qoption ld '
12001 ;;
12002 *Sun\ C*)
12003 # Sun C 5.9
12004 lt_prog_compiler_pic='-KPIC'
12005 lt_prog_compiler_static='-Bstatic'
12006 lt_prog_compiler_wl='-Wl,'
12007 ;;
12008 *Intel*\ [CF]*Compiler*)
12009 lt_prog_compiler_wl='-Wl,'
12010 lt_prog_compiler_pic='-fPIC'
12011 lt_prog_compiler_static='-static'
12012 ;;
12013 *Portland\ Group*)
12014 lt_prog_compiler_wl='-Wl,'
12015 lt_prog_compiler_pic='-fpic'
12016 lt_prog_compiler_static='-Bstatic'
12017 ;;
12018 esac
12019 ;;
12020 esac
12021 ;;
12022
12023 newsos6)
12024 lt_prog_compiler_pic='-KPIC'
12025 lt_prog_compiler_static='-Bstatic'
12026 ;;
12027
12028 *nto* | *qnx*)
12029 # QNX uses GNU C++, but need to define -shared option too, otherwise
12030 # it will coredump.
12031 lt_prog_compiler_pic='-fPIC -shared'
12032 ;;
12033
12034 osf3* | osf4* | osf5*)
12035 lt_prog_compiler_wl='-Wl,'
12036 # All OSF/1 code is PIC.
12037 lt_prog_compiler_static='-non_shared'
12038 ;;
12039
12040 rdos*)
12041 lt_prog_compiler_static='-non_shared'
12042 ;;
12043
12044 solaris*)
12045 lt_prog_compiler_pic='-KPIC'
12046 lt_prog_compiler_static='-Bstatic'
12047 case $cc_basename in
12048 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12049 lt_prog_compiler_wl='-Qoption ld ';;
12050 *)
12051 lt_prog_compiler_wl='-Wl,';;
12052 esac
12053 ;;
12054
12055 sunos4*)
12056 lt_prog_compiler_wl='-Qoption ld '
12057 lt_prog_compiler_pic='-PIC'
12058 lt_prog_compiler_static='-Bstatic'
12059 ;;
12060
12061 sysv4 | sysv4.2uw2* | sysv4.3*)
12062 lt_prog_compiler_wl='-Wl,'
12063 lt_prog_compiler_pic='-KPIC'
12064 lt_prog_compiler_static='-Bstatic'
12065 ;;
12066
12067 sysv4*MP*)
12068 if test -d /usr/nec; then
12069 lt_prog_compiler_pic='-Kconform_pic'
12070 lt_prog_compiler_static='-Bstatic'
12071 fi
12072 ;;
12073
12074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12075 lt_prog_compiler_wl='-Wl,'
12076 lt_prog_compiler_pic='-KPIC'
12077 lt_prog_compiler_static='-Bstatic'
12078 ;;
12079
12080 unicos*)
12081 lt_prog_compiler_wl='-Wl,'
12082 lt_prog_compiler_can_build_shared=no
12083 ;;
12084
12085 uts4*)
12086 lt_prog_compiler_pic='-pic'
12087 lt_prog_compiler_static='-Bstatic'
12088 ;;
12089
12090 *)
12091 lt_prog_compiler_can_build_shared=no
12092 ;;
12093 esac
12094 fi
12095
12096 case $host_os in
12097 # For platforms that do not support PIC, -DPIC is meaningless:
12098 *djgpp*)
12099 lt_prog_compiler_pic=
12100 ;;
12101 *)
12102 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12103 ;;
12104 esac
12105
12106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12107 printf %s "checking for $compiler option to produce PIC... " >&6; }
12108 if test ${lt_cv_prog_compiler_pic+y}
12109 then :
12110 printf %s "(cached) " >&6
12111 else case e in #(
12112 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12113 esac
12114 fi
12115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12116 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12117 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12118
12119 #
12120 # Check to make sure the PIC flag actually works.
12121 #
12122 if test -n "$lt_prog_compiler_pic"; then
12123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12124 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12125 if test ${lt_cv_prog_compiler_pic_works+y}
12126 then :
12127 printf %s "(cached) " >&6
12128 else case e in #(
12129 e) lt_cv_prog_compiler_pic_works=no
12130 ac_outfile=conftest.$ac_objext
12131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12132 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12133 # Insert the option either (1) after the last *FLAGS variable, or
12134 # (2) before a word containing "conftest.", or (3) at the end.
12135 # Note that $ac_compile itself does not contain backslashes and begins
12136 # with a dollar sign (not a hyphen), so the echo should work correctly.
12137 # The option is referenced via a variable to avoid confusing sed.
12138 lt_compile=`echo "$ac_compile" | $SED \
12139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12141 -e 's:$: $lt_compiler_flag:'`
12142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12143 (eval "$lt_compile" 2>conftest.err)
12144 ac_status=$?
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 if (exit $ac_status) && test -s "$ac_outfile"; then
12148 # The compiler can only warn and ignore the option if not recognized
12149 # So say no if there are warnings other than the usual output.
12150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12153 lt_cv_prog_compiler_pic_works=yes
12154 fi
12155 fi
12156 $RM conftest*
12157 ;;
12158 esac
12159 fi
12160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12161 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12162
12163 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12164 case $lt_prog_compiler_pic in
12165 "" | " "*) ;;
12166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12167 esac
12168 else
12169 lt_prog_compiler_pic=
12170 lt_prog_compiler_can_build_shared=no
12171 fi
12172
12173 fi
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185 #
12186 # Check to make sure the static flag actually works.
12187 #
12188 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12190 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12191 if test ${lt_cv_prog_compiler_static_works+y}
12192 then :
12193 printf %s "(cached) " >&6
12194 else case e in #(
12195 e) lt_cv_prog_compiler_static_works=no
12196 save_LDFLAGS=$LDFLAGS
12197 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12198 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12200 # The linker can only warn and ignore the option if not recognized
12201 # So say no if there are warnings
12202 if test -s conftest.err; then
12203 # Append any errors to the config.log.
12204 cat conftest.err 1>&5
12205 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12207 if diff conftest.exp conftest.er2 >/dev/null; then
12208 lt_cv_prog_compiler_static_works=yes
12209 fi
12210 else
12211 lt_cv_prog_compiler_static_works=yes
12212 fi
12213 fi
12214 $RM -r conftest*
12215 LDFLAGS=$save_LDFLAGS
12216 ;;
12217 esac
12218 fi
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12220 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12221
12222 if test yes = "$lt_cv_prog_compiler_static_works"; then
12223 :
12224 else
12225 lt_prog_compiler_static=
12226 fi
12227
12228
12229
12230
12231
12232
12233
12234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12235 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12236 if test ${lt_cv_prog_compiler_c_o+y}
12237 then :
12238 printf %s "(cached) " >&6
12239 else case e in #(
12240 e) lt_cv_prog_compiler_c_o=no
12241 $RM -r conftest 2>/dev/null
12242 mkdir conftest
12243 cd conftest
12244 mkdir out
12245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12246
12247 lt_compiler_flag="-o out/conftest2.$ac_objext"
12248 # Insert the option either (1) after the last *FLAGS variable, or
12249 # (2) before a word containing "conftest.", or (3) at the end.
12250 # Note that $ac_compile itself does not contain backslashes and begins
12251 # with a dollar sign (not a hyphen), so the echo should work correctly.
12252 lt_compile=`echo "$ac_compile" | $SED \
12253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12255 -e 's:$: $lt_compiler_flag:'`
12256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12257 (eval "$lt_compile" 2>out/conftest.err)
12258 ac_status=$?
12259 cat out/conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12262 then
12263 # The compiler can only warn and ignore the option if not recognized
12264 # So say no if there are warnings
12265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12268 lt_cv_prog_compiler_c_o=yes
12269 fi
12270 fi
12271 chmod u+w . 2>&5
12272 $RM conftest*
12273 # SGI C++ compiler will create directory out/ii_files/ for
12274 # template instantiation
12275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12276 $RM out/* && rmdir out
12277 cd ..
12278 $RM -r conftest
12279 $RM conftest*
12280 ;;
12281 esac
12282 fi
12283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12284 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12285
12286
12287
12288
12289
12290
12291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12292 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12293 if test ${lt_cv_prog_compiler_c_o+y}
12294 then :
12295 printf %s "(cached) " >&6
12296 else case e in #(
12297 e) lt_cv_prog_compiler_c_o=no
12298 $RM -r conftest 2>/dev/null
12299 mkdir conftest
12300 cd conftest
12301 mkdir out
12302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12303
12304 lt_compiler_flag="-o out/conftest2.$ac_objext"
12305 # Insert the option either (1) after the last *FLAGS variable, or
12306 # (2) before a word containing "conftest.", or (3) at the end.
12307 # Note that $ac_compile itself does not contain backslashes and begins
12308 # with a dollar sign (not a hyphen), so the echo should work correctly.
12309 lt_compile=`echo "$ac_compile" | $SED \
12310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12312 -e 's:$: $lt_compiler_flag:'`
12313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12314 (eval "$lt_compile" 2>out/conftest.err)
12315 ac_status=$?
12316 cat out/conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12319 then
12320 # The compiler can only warn and ignore the option if not recognized
12321 # So say no if there are warnings
12322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12325 lt_cv_prog_compiler_c_o=yes
12326 fi
12327 fi
12328 chmod u+w . 2>&5
12329 $RM conftest*
12330 # SGI C++ compiler will create directory out/ii_files/ for
12331 # template instantiation
12332 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12333 $RM out/* && rmdir out
12334 cd ..
12335 $RM -r conftest
12336 $RM conftest*
12337 ;;
12338 esac
12339 fi
12340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12341 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12342
12343
12344
12345
12346 hard_links=nottested
12347 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12348 # do not overwrite the value of need_locks provided by the user
12349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12350 printf %s "checking if we can lock with hard links... " >&6; }
12351 hard_links=yes
12352 $RM conftest*
12353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12354 touch conftest.a
12355 ln conftest.a conftest.b 2>&5 || hard_links=no
12356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12358 printf "%s\n" "$hard_links" >&6; }
12359 if test no = "$hard_links"; then
12360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12361 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12362 need_locks=warn
12363 fi
12364 else
12365 need_locks=no
12366 fi
12367
12368
12369
12370
12371
12372
12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12374 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12375
12376 runpath_var=
12377 allow_undefined_flag=
12378 always_export_symbols=no
12379 archive_cmds=
12380 archive_expsym_cmds=
12381 compiler_needs_object=no
12382 enable_shared_with_static_runtimes=no
12383 export_dynamic_flag_spec=
12384 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12385 hardcode_automatic=no
12386 hardcode_direct=no
12387 hardcode_direct_absolute=no
12388 hardcode_libdir_flag_spec=
12389 hardcode_libdir_separator=
12390 hardcode_minus_L=no
12391 hardcode_shlibpath_var=unsupported
12392 inherit_rpath=no
12393 link_all_deplibs=unknown
12394 module_cmds=
12395 module_expsym_cmds=
12396 old_archive_from_new_cmds=
12397 old_archive_from_expsyms_cmds=
12398 thread_safe_flag_spec=
12399 whole_archive_flag_spec=
12400 # include_expsyms should be a list of space-separated symbols to be *always*
12401 # included in the symbol list
12402 include_expsyms=
12403 # exclude_expsyms can be an extended regexp of symbols to exclude
12404 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12405 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12406 # as well as any symbol that contains 'd'.
12407 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12409 # platforms (ab)use it in PIC code, but their linkers get confused if
12410 # the symbol is explicitly referenced. Since portable code cannot
12411 # rely on this symbol name, it's probably fine to never include it in
12412 # preloaded symbol tables.
12413 # Exclude shared library initialization/finalization symbols.
12414 extract_expsyms_cmds=
12415
12416 case $host_os in
12417 cygwin* | mingw* | pw32* | cegcc*)
12418 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12419 # When not using gcc, we currently assume that we are using
12420 # Microsoft Visual C++ or Intel C++ Compiler.
12421 if test yes != "$GCC"; then
12422 with_gnu_ld=no
12423 fi
12424 ;;
12425 interix*)
12426 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12427 with_gnu_ld=yes
12428 ;;
12429 openbsd* | bitrig*)
12430 with_gnu_ld=no
12431 ;;
12432 linux* | k*bsd*-gnu | gnu*)
12433 link_all_deplibs=no
12434 ;;
12435 esac
12436
12437 ld_shlibs=yes
12438
12439 # On some targets, GNU ld is compatible enough with the native linker
12440 # that we're better off using the native interface for both.
12441 lt_use_gnu_ld_interface=no
12442 if test yes = "$with_gnu_ld"; then
12443 case $host_os in
12444 aix*)
12445 # The AIX port of GNU ld has always aspired to compatibility
12446 # with the native linker. However, as the warning in the GNU ld
12447 # block says, versions before 2.19.5* couldn't really create working
12448 # shared libraries, regardless of the interface used.
12449 case `$LD -v 2>&1` in
12450 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12451 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12452 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12453 *)
12454 lt_use_gnu_ld_interface=yes
12455 ;;
12456 esac
12457 ;;
12458 *)
12459 lt_use_gnu_ld_interface=yes
12460 ;;
12461 esac
12462 fi
12463
12464 if test yes = "$lt_use_gnu_ld_interface"; then
12465 # If archive_cmds runs LD, not CC, wlarc should be empty
12466 wlarc='$wl'
12467
12468 # Set some defaults for GNU ld with shared library support. These
12469 # are reset later if shared libraries are not supported. Putting them
12470 # here allows them to be overridden if necessary.
12471 runpath_var=LD_RUN_PATH
12472 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12473 export_dynamic_flag_spec='$wl--export-dynamic'
12474 # ancient GNU ld didn't support --whole-archive et. al.
12475 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12476 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12477 else
12478 whole_archive_flag_spec=
12479 fi
12480 supports_anon_versioning=no
12481 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12482 *GNU\ gold*) supports_anon_versioning=yes ;;
12483 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12486 *\ 2.11.*) ;; # other 2.11 versions
12487 *) supports_anon_versioning=yes ;;
12488 esac
12489
12490 # See if GNU ld supports shared libraries.
12491 case $host_os in
12492 aix[3-9]*)
12493 # On AIX/PPC, the GNU linker is very broken
12494 if test ia64 != "$host_cpu"; then
12495 ld_shlibs=no
12496 cat <<_LT_EOF 1>&2
12497
12498 *** Warning: the GNU linker, at least up to release 2.19, is reported
12499 *** to be unable to reliably create shared libraries on AIX.
12500 *** Therefore, libtool is disabling shared libraries support. If you
12501 *** really care for shared libraries, you may want to install binutils
12502 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12503 *** You will then need to restart the configuration process.
12504
12505 _LT_EOF
12506 fi
12507 ;;
12508
12509 amigaos*)
12510 case $host_cpu in
12511 powerpc)
12512 # see comment about AmigaOS4 .so support
12513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12514 archive_expsym_cmds=''
12515 ;;
12516 m68k)
12517 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)'
12518 hardcode_libdir_flag_spec='-L$libdir'
12519 hardcode_minus_L=yes
12520 ;;
12521 esac
12522 ;;
12523
12524 beos*)
12525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12526 allow_undefined_flag=unsupported
12527 # Joseph Beckenbach <[email protected]> says some releases of gcc
12528 # support --undefined. This deserves some investigation. FIXME
12529 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12530 else
12531 ld_shlibs=no
12532 fi
12533 ;;
12534
12535 cygwin* | mingw* | pw32* | cegcc*)
12536 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12537 # as there is no search path for DLLs.
12538 hardcode_libdir_flag_spec='-L$libdir'
12539 export_dynamic_flag_spec='$wl--export-all-symbols'
12540 allow_undefined_flag=unsupported
12541 always_export_symbols=no
12542 enable_shared_with_static_runtimes=yes
12543 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'
12544 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12545
12546 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12548 # If the export-symbols file already is a .def file, use it as
12549 # is; otherwise, prepend EXPORTS...
12550 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12551 cp $export_symbols $output_objdir/$soname.def;
12552 else
12553 echo EXPORTS > $output_objdir/$soname.def;
12554 cat $export_symbols >> $output_objdir/$soname.def;
12555 fi~
12556 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12557 else
12558 ld_shlibs=no
12559 fi
12560 ;;
12561
12562 haiku*)
12563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12564 link_all_deplibs=yes
12565 ;;
12566
12567 os2*)
12568 hardcode_libdir_flag_spec='-L$libdir'
12569 hardcode_minus_L=yes
12570 allow_undefined_flag=unsupported
12571 shrext_cmds=.dll
12572 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12575 $ECHO EXPORTS >> $output_objdir/$libname.def~
12576 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12577 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12578 emximp -o $lib $output_objdir/$libname.def'
12579 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12580 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12581 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12582 $ECHO EXPORTS >> $output_objdir/$libname.def~
12583 prefix_cmds="$SED"~
12584 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12585 prefix_cmds="$prefix_cmds -e 1d";
12586 fi~
12587 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12588 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12589 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12590 emximp -o $lib $output_objdir/$libname.def'
12591 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12592 enable_shared_with_static_runtimes=yes
12593 file_list_spec='@'
12594 ;;
12595
12596 interix[3-9]*)
12597 hardcode_direct=no
12598 hardcode_shlibpath_var=no
12599 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12600 export_dynamic_flag_spec='$wl-E'
12601 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12602 # Instead, shared libraries are loaded at an image base (0x10000000 by
12603 # default) and relocated if they conflict, which is a slow very memory
12604 # consuming and fragmenting process. To avoid this, we pick a random,
12605 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12606 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12607 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12608 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'
12609 ;;
12610
12611 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12612 tmp_diet=no
12613 if test linux-dietlibc = "$host_os"; then
12614 case $cc_basename in
12615 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12616 esac
12617 fi
12618 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12619 && test no = "$tmp_diet"
12620 then
12621 tmp_addflag=' $pic_flag'
12622 tmp_sharedflag='-shared'
12623 case $cc_basename,$host_cpu in
12624 pgcc*) # Portland Group C compiler
12625 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'
12626 tmp_addflag=' $pic_flag'
12627 ;;
12628 pgf77* | pgf90* | pgf95* | pgfortran*)
12629 # Portland Group f77 and f90 compilers
12630 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'
12631 tmp_addflag=' $pic_flag -Mnomain' ;;
12632 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12633 tmp_addflag=' -i_dynamic' ;;
12634 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12635 tmp_addflag=' -i_dynamic -nofor_main' ;;
12636 ifc* | ifort*) # Intel Fortran compiler
12637 tmp_addflag=' -nofor_main' ;;
12638 lf95*) # Lahey Fortran 8.1
12639 whole_archive_flag_spec=
12640 tmp_sharedflag='--shared' ;;
12641 nagfor*) # NAGFOR 5.3
12642 tmp_sharedflag='-Wl,-shared' ;;
12643 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12644 tmp_sharedflag='-qmkshrobj'
12645 tmp_addflag= ;;
12646 nvcc*) # Cuda Compiler Driver 2.2
12647 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'
12648 compiler_needs_object=yes
12649 ;;
12650 esac
12651 case `$CC -V 2>&1 | $SED 5q` in
12652 *Sun\ C*) # Sun C 5.9
12653 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'
12654 compiler_needs_object=yes
12655 tmp_sharedflag='-G' ;;
12656 *Sun\ F*) # Sun Fortran 8.3
12657 tmp_sharedflag='-G' ;;
12658 esac
12659 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12660
12661 if test yes = "$supports_anon_versioning"; then
12662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12663 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12664 echo "local: *; };" >> $output_objdir/$libname.ver~
12665 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12666 fi
12667
12668 case $cc_basename in
12669 tcc*)
12670 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12671 export_dynamic_flag_spec='-rdynamic'
12672 ;;
12673 xlf* | bgf* | bgxlf* | mpixlf*)
12674 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12675 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12677 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12678 if test yes = "$supports_anon_versioning"; then
12679 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12680 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12681 echo "local: *; };" >> $output_objdir/$libname.ver~
12682 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12683 fi
12684 ;;
12685 esac
12686 else
12687 ld_shlibs=no
12688 fi
12689 ;;
12690
12691 netbsd* | netbsdelf*-gnu)
12692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12693 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12694 wlarc=
12695 else
12696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12697 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12698 fi
12699 ;;
12700
12701 solaris*)
12702 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12703 ld_shlibs=no
12704 cat <<_LT_EOF 1>&2
12705
12706 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12707 *** create shared libraries on Solaris systems. Therefore, libtool
12708 *** is disabling shared libraries support. We urge you to upgrade GNU
12709 *** binutils to release 2.9.1 or newer. Another option is to modify
12710 *** your PATH or compiler configuration so that the native linker is
12711 *** used, and then restart.
12712
12713 _LT_EOF
12714 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12716 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12717 else
12718 ld_shlibs=no
12719 fi
12720 ;;
12721
12722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12723 case `$LD -v 2>&1` in
12724 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12725 ld_shlibs=no
12726 cat <<_LT_EOF 1>&2
12727
12728 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12729 *** reliably create shared libraries on SCO systems. Therefore, libtool
12730 *** is disabling shared libraries support. We urge you to upgrade GNU
12731 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12732 *** your PATH or compiler configuration so that the native linker is
12733 *** used, and then restart.
12734
12735 _LT_EOF
12736 ;;
12737 *)
12738 # For security reasons, it is highly recommended that you always
12739 # use absolute paths for naming shared libraries, and exclude the
12740 # DT_RUNPATH tag from executables and libraries. But doing so
12741 # requires that you compile everything twice, which is a pain.
12742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12743 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12745 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12746 else
12747 ld_shlibs=no
12748 fi
12749 ;;
12750 esac
12751 ;;
12752
12753 sunos4*)
12754 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12755 wlarc=
12756 hardcode_direct=yes
12757 hardcode_shlibpath_var=no
12758 ;;
12759
12760 *)
12761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12764 else
12765 ld_shlibs=no
12766 fi
12767 ;;
12768 esac
12769
12770 if test no = "$ld_shlibs"; then
12771 runpath_var=
12772 hardcode_libdir_flag_spec=
12773 export_dynamic_flag_spec=
12774 whole_archive_flag_spec=
12775 fi
12776 else
12777 # PORTME fill in a description of your system's linker (not GNU ld)
12778 case $host_os in
12779 aix3*)
12780 allow_undefined_flag=unsupported
12781 always_export_symbols=yes
12782 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'
12783 # Note: this linker hardcodes the directories in LIBPATH if there
12784 # are no directories specified by -L.
12785 hardcode_minus_L=yes
12786 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12787 # Neither direct hardcoding nor static linking is supported with a
12788 # broken collect2.
12789 hardcode_direct=unsupported
12790 fi
12791 ;;
12792
12793 aix[4-9]*)
12794 if test ia64 = "$host_cpu"; then
12795 # On IA64, the linker does run time linking by default, so we don't
12796 # have to do anything special.
12797 aix_use_runtimelinking=no
12798 exp_sym_flag='-Bexport'
12799 no_entry_flag=
12800 else
12801 # If we're using GNU nm, then we don't want the "-C" option.
12802 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12803 # Without the "-l" option, or with the "-B" option, AIX nm treats
12804 # weak defined symbols like other global defined symbols, whereas
12805 # GNU nm marks them as "W".
12806 # While the 'weak' keyword is ignored in the Export File, we need
12807 # it in the Import File for the 'aix-soname' feature, so we have
12808 # to replace the "-B" option with "-P" for AIX nm.
12809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12810 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'
12811 else
12812 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'
12813 fi
12814 aix_use_runtimelinking=no
12815
12816 # Test if we are trying to use run time linking or normal
12817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12818 # have runtime linking enabled, and use it for executables.
12819 # For shared libraries, we enable/disable runtime linking
12820 # depending on the kind of the shared library created -
12821 # when "with_aix_soname,aix_use_runtimelinking" is:
12822 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12823 # "aix,yes" lib.so shared, rtl:yes, for executables
12824 # lib.a static archive
12825 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12826 # lib.a(lib.so.V) shared, rtl:no, for executables
12827 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12828 # lib.a(lib.so.V) shared, rtl:no
12829 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12830 # lib.a static archive
12831 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12832 for ld_flag in $LDFLAGS; do
12833 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12834 aix_use_runtimelinking=yes
12835 break
12836 fi
12837 done
12838 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12839 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12840 # so we don't have lib.a shared libs to link our executables.
12841 # We have to force runtime linking in this case.
12842 aix_use_runtimelinking=yes
12843 LDFLAGS="$LDFLAGS -Wl,-brtl"
12844 fi
12845 ;;
12846 esac
12847
12848 exp_sym_flag='-bexport'
12849 no_entry_flag='-bnoentry'
12850 fi
12851
12852 # When large executables or shared objects are built, AIX ld can
12853 # have problems creating the table of contents. If linking a library
12854 # or program results in "error TOC overflow" add -mminimal-toc to
12855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12857
12858 archive_cmds=''
12859 hardcode_direct=yes
12860 hardcode_direct_absolute=yes
12861 hardcode_libdir_separator=':'
12862 link_all_deplibs=yes
12863 file_list_spec='$wl-f,'
12864 case $with_aix_soname,$aix_use_runtimelinking in
12865 aix,*) ;; # traditional, no import file
12866 svr4,* | *,yes) # use import file
12867 # The Import File defines what to hardcode.
12868 hardcode_direct=no
12869 hardcode_direct_absolute=no
12870 ;;
12871 esac
12872
12873 if test yes = "$GCC"; then
12874 case $host_os in aix4.[012]|aix4.[012].*)
12875 # We only want to do this on AIX 4.2 and lower, the check
12876 # below for broken collect2 doesn't work under 4.3+
12877 collect2name=`$CC -print-prog-name=collect2`
12878 if test -f "$collect2name" &&
12879 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12880 then
12881 # We have reworked collect2
12882 :
12883 else
12884 # We have old collect2
12885 hardcode_direct=unsupported
12886 # It fails to find uninstalled libraries when the uninstalled
12887 # path is not listed in the libpath. Setting hardcode_minus_L
12888 # to unsupported forces relinking
12889 hardcode_minus_L=yes
12890 hardcode_libdir_flag_spec='-L$libdir'
12891 hardcode_libdir_separator=
12892 fi
12893 ;;
12894 esac
12895 shared_flag='-shared'
12896 if test yes = "$aix_use_runtimelinking"; then
12897 shared_flag="$shared_flag "'$wl-G'
12898 fi
12899 # Need to ensure runtime linking is disabled for the traditional
12900 # shared library, or the linker may eventually find shared libraries
12901 # /with/ Import File - we do not want to mix them.
12902 shared_flag_aix='-shared'
12903 shared_flag_svr4='-shared $wl-G'
12904 else
12905 # not using gcc
12906 if test ia64 = "$host_cpu"; then
12907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12908 # chokes on -Wl,-G. The following line is correct:
12909 shared_flag='-G'
12910 else
12911 if test yes = "$aix_use_runtimelinking"; then
12912 shared_flag='$wl-G'
12913 else
12914 shared_flag='$wl-bM:SRE'
12915 fi
12916 shared_flag_aix='$wl-bM:SRE'
12917 shared_flag_svr4='$wl-G'
12918 fi
12919 fi
12920
12921 export_dynamic_flag_spec='$wl-bexpall'
12922 # It seems that -bexpall does not export symbols beginning with
12923 # underscore (_), so it is better to generate a list of symbols to export.
12924 always_export_symbols=yes
12925 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12926 # Warning - without using the other runtime loading flags (-brtl),
12927 # -berok will link without error, but may produce a broken library.
12928 allow_undefined_flag='-berok'
12929 # Determine the default libpath from the value encoded in an
12930 # empty executable.
12931 if test set = "${lt_cv_aix_libpath+set}"; then
12932 aix_libpath=$lt_cv_aix_libpath
12933 else
12934 if test ${lt_cv_aix_libpath_+y}
12935 then :
12936 printf %s "(cached) " >&6
12937 else case e in #(
12938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940
12941 int
12942 main (void)
12943 {
12944
12945 ;
12946 return 0;
12947 }
12948 _ACEOF
12949 if ac_fn_c_try_link "$LINENO"
12950 then :
12951
12952 lt_aix_libpath_sed='
12953 /Import File Strings/,/^$/ {
12954 /^0/ {
12955 s/^0 *\([^ ]*\) *$/\1/
12956 p
12957 }
12958 }'
12959 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12960 # Check for a 64-bit object if we didn't find anything.
12961 if test -z "$lt_cv_aix_libpath_"; then
12962 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12963 fi
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12966 conftest$ac_exeext conftest.$ac_ext
12967 if test -z "$lt_cv_aix_libpath_"; then
12968 lt_cv_aix_libpath_=/usr/lib:/lib
12969 fi
12970 ;;
12971 esac
12972 fi
12973
12974 aix_libpath=$lt_cv_aix_libpath_
12975 fi
12976
12977 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12978 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
12979 else
12980 if test ia64 = "$host_cpu"; then
12981 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12982 allow_undefined_flag="-z nodefs"
12983 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"
12984 else
12985 # Determine the default libpath from the value encoded in an
12986 # empty executable.
12987 if test set = "${lt_cv_aix_libpath+set}"; then
12988 aix_libpath=$lt_cv_aix_libpath
12989 else
12990 if test ${lt_cv_aix_libpath_+y}
12991 then :
12992 printf %s "(cached) " >&6
12993 else case e in #(
12994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996
12997 int
12998 main (void)
12999 {
13000
13001 ;
13002 return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_link "$LINENO"
13006 then :
13007
13008 lt_aix_libpath_sed='
13009 /Import File Strings/,/^$/ {
13010 /^0/ {
13011 s/^0 *\([^ ]*\) *$/\1/
13012 p
13013 }
13014 }'
13015 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13016 # Check for a 64-bit object if we didn't find anything.
13017 if test -z "$lt_cv_aix_libpath_"; then
13018 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13019 fi
13020 fi
13021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13022 conftest$ac_exeext conftest.$ac_ext
13023 if test -z "$lt_cv_aix_libpath_"; then
13024 lt_cv_aix_libpath_=/usr/lib:/lib
13025 fi
13026 ;;
13027 esac
13028 fi
13029
13030 aix_libpath=$lt_cv_aix_libpath_
13031 fi
13032
13033 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13034 # Warning - without using the other run time loading flags,
13035 # -berok will link without error, but may produce a broken library.
13036 no_undefined_flag=' $wl-bernotok'
13037 allow_undefined_flag=' $wl-berok'
13038 if test yes = "$with_gnu_ld"; then
13039 # We only use this code for GNU lds that support --whole-archive.
13040 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13041 else
13042 # Exported symbols can be pulled into shared objects from archives
13043 whole_archive_flag_spec='$convenience'
13044 fi
13045 archive_cmds_need_lc=yes
13046 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13047 # -brtl affects multiple linker settings, -berok does not and is overridden later
13048 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13049 if test svr4 != "$with_aix_soname"; then
13050 # This is similar to how AIX traditionally builds its shared libraries.
13051 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'
13052 fi
13053 if test aix != "$with_aix_soname"; then
13054 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'
13055 else
13056 # used by -dlpreopen to get the symbols
13057 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13058 fi
13059 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13060 fi
13061 fi
13062 ;;
13063
13064 amigaos*)
13065 case $host_cpu in
13066 powerpc)
13067 # see comment about AmigaOS4 .so support
13068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13069 archive_expsym_cmds=''
13070 ;;
13071 m68k)
13072 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)'
13073 hardcode_libdir_flag_spec='-L$libdir'
13074 hardcode_minus_L=yes
13075 ;;
13076 esac
13077 ;;
13078
13079 bsdi[45]*)
13080 export_dynamic_flag_spec=-rdynamic
13081 ;;
13082
13083 cygwin* | mingw* | pw32* | cegcc*)
13084 # When not using gcc, we currently assume that we are using
13085 # Microsoft Visual C++ or Intel C++ Compiler.
13086 # hardcode_libdir_flag_spec is actually meaningless, as there is
13087 # no search path for DLLs.
13088 case $cc_basename in
13089 cl* | icl*)
13090 # Native MSVC or ICC
13091 hardcode_libdir_flag_spec=' '
13092 allow_undefined_flag=unsupported
13093 always_export_symbols=yes
13094 file_list_spec='@'
13095 # Tell ltmain to make .lib files, not .a files.
13096 libext=lib
13097 # Tell ltmain to make .dll files, not .so files.
13098 shrext_cmds=.dll
13099 # FIXME: Setting linknames here is a bad hack.
13100 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13101 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13102 cp "$export_symbols" "$output_objdir/$soname.def";
13103 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13104 else
13105 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13106 fi~
13107 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13108 linknames='
13109 # The linker will not automatically build a static lib if we build a DLL.
13110 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13111 enable_shared_with_static_runtimes=yes
13112 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13113 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13114 # Don't use ranlib
13115 old_postinstall_cmds='chmod 644 $oldlib'
13116 postlink_cmds='lt_outputfile="@OUTPUT@"~
13117 lt_tool_outputfile="@TOOL_OUTPUT@"~
13118 case $lt_outputfile in
13119 *.exe|*.EXE) ;;
13120 *)
13121 lt_outputfile=$lt_outputfile.exe
13122 lt_tool_outputfile=$lt_tool_outputfile.exe
13123 ;;
13124 esac~
13125 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13126 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13127 $RM "$lt_outputfile.manifest";
13128 fi'
13129 ;;
13130 *)
13131 # Assume MSVC and ICC wrapper
13132 hardcode_libdir_flag_spec=' '
13133 allow_undefined_flag=unsupported
13134 # Tell ltmain to make .lib files, not .a files.
13135 libext=lib
13136 # Tell ltmain to make .dll files, not .so files.
13137 shrext_cmds=.dll
13138 # FIXME: Setting linknames here is a bad hack.
13139 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13140 # The linker will automatically build a .lib file if we build a DLL.
13141 old_archive_from_new_cmds='true'
13142 # FIXME: Should let the user specify the lib program.
13143 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13144 enable_shared_with_static_runtimes=yes
13145 ;;
13146 esac
13147 ;;
13148
13149 darwin* | rhapsody*)
13150
13151
13152 archive_cmds_need_lc=no
13153 hardcode_direct=no
13154 hardcode_automatic=yes
13155 hardcode_shlibpath_var=unsupported
13156 if test yes = "$lt_cv_ld_force_load"; then
13157 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\"`'
13158
13159 else
13160 whole_archive_flag_spec=''
13161 fi
13162 link_all_deplibs=yes
13163 allow_undefined_flag=$_lt_dar_allow_undefined
13164 case $cc_basename in
13165 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13166 *) _lt_dar_can_shared=$GCC ;;
13167 esac
13168 if test yes = "$_lt_dar_can_shared"; then
13169 output_verbose_link_cmd=func_echo_all
13170 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13171 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13172 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"
13173 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"
13174
13175 else
13176 ld_shlibs=no
13177 fi
13178
13179 ;;
13180
13181 dgux*)
13182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13183 hardcode_libdir_flag_spec='-L$libdir'
13184 hardcode_shlibpath_var=no
13185 ;;
13186
13187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13188 # support. Future versions do this automatically, but an explicit c++rt0.o
13189 # does not break anything, and helps significantly (at the cost of a little
13190 # extra space).
13191 freebsd2.2*)
13192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13193 hardcode_libdir_flag_spec='-R$libdir'
13194 hardcode_direct=yes
13195 hardcode_shlibpath_var=no
13196 ;;
13197
13198 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13199 freebsd2.*)
13200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13201 hardcode_direct=yes
13202 hardcode_minus_L=yes
13203 hardcode_shlibpath_var=no
13204 ;;
13205
13206 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13207 freebsd* | dragonfly* | midnightbsd*)
13208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13209 hardcode_libdir_flag_spec='-R$libdir'
13210 hardcode_direct=yes
13211 hardcode_shlibpath_var=no
13212 ;;
13213
13214 hpux9*)
13215 if test yes = "$GCC"; then
13216 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'
13217 else
13218 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'
13219 fi
13220 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13221 hardcode_libdir_separator=:
13222 hardcode_direct=yes
13223
13224 # hardcode_minus_L: Not really in the search PATH,
13225 # but as the default location of the library.
13226 hardcode_minus_L=yes
13227 export_dynamic_flag_spec='$wl-E'
13228 ;;
13229
13230 hpux10*)
13231 if test yes,no = "$GCC,$with_gnu_ld"; then
13232 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13233 else
13234 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13235 fi
13236 if test no = "$with_gnu_ld"; then
13237 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13238 hardcode_libdir_separator=:
13239 hardcode_direct=yes
13240 hardcode_direct_absolute=yes
13241 export_dynamic_flag_spec='$wl-E'
13242 # hardcode_minus_L: Not really in the search PATH,
13243 # but as the default location of the library.
13244 hardcode_minus_L=yes
13245 fi
13246 ;;
13247
13248 hpux11*)
13249 if test yes,no = "$GCC,$with_gnu_ld"; then
13250 case $host_cpu in
13251 hppa*64*)
13252 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13253 ;;
13254 ia64*)
13255 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13256 ;;
13257 *)
13258 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13259 ;;
13260 esac
13261 else
13262 case $host_cpu in
13263 hppa*64*)
13264 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13265 ;;
13266 ia64*)
13267 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13268 ;;
13269 *)
13270
13271 # Older versions of the 11.00 compiler do not understand -b yet
13272 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13274 printf %s "checking if $CC understands -b... " >&6; }
13275 if test ${lt_cv_prog_compiler__b+y}
13276 then :
13277 printf %s "(cached) " >&6
13278 else case e in #(
13279 e) lt_cv_prog_compiler__b=no
13280 save_LDFLAGS=$LDFLAGS
13281 LDFLAGS="$LDFLAGS -b"
13282 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13283 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13284 # The linker can only warn and ignore the option if not recognized
13285 # So say no if there are warnings
13286 if test -s conftest.err; then
13287 # Append any errors to the config.log.
13288 cat conftest.err 1>&5
13289 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13291 if diff conftest.exp conftest.er2 >/dev/null; then
13292 lt_cv_prog_compiler__b=yes
13293 fi
13294 else
13295 lt_cv_prog_compiler__b=yes
13296 fi
13297 fi
13298 $RM -r conftest*
13299 LDFLAGS=$save_LDFLAGS
13300 ;;
13301 esac
13302 fi
13303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13304 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13305
13306 if test yes = "$lt_cv_prog_compiler__b"; then
13307 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13308 else
13309 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13310 fi
13311
13312 ;;
13313 esac
13314 fi
13315 if test no = "$with_gnu_ld"; then
13316 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13317 hardcode_libdir_separator=:
13318
13319 case $host_cpu in
13320 hppa*64*|ia64*)
13321 hardcode_direct=no
13322 hardcode_shlibpath_var=no
13323 ;;
13324 *)
13325 hardcode_direct=yes
13326 hardcode_direct_absolute=yes
13327 export_dynamic_flag_spec='$wl-E'
13328
13329 # hardcode_minus_L: Not really in the search PATH,
13330 # but as the default location of the library.
13331 hardcode_minus_L=yes
13332 ;;
13333 esac
13334 fi
13335 ;;
13336
13337 irix5* | irix6* | nonstopux*)
13338 if test yes = "$GCC"; then
13339 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'
13340 # Try to use the -exported_symbol ld option, if it does not
13341 # work, assume that -exports_file does not work either and
13342 # implicitly export all symbols.
13343 # This should be the same for all languages, so no per-tag cache variable.
13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13345 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13346 if test ${lt_cv_irix_exported_symbol+y}
13347 then :
13348 printf %s "(cached) " >&6
13349 else case e in #(
13350 e) save_LDFLAGS=$LDFLAGS
13351 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 int foo (void) { return 0; }
13355 _ACEOF
13356 if ac_fn_c_try_link "$LINENO"
13357 then :
13358 lt_cv_irix_exported_symbol=yes
13359 else case e in #(
13360 e) lt_cv_irix_exported_symbol=no ;;
13361 esac
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13364 conftest$ac_exeext conftest.$ac_ext
13365 LDFLAGS=$save_LDFLAGS ;;
13366 esac
13367 fi
13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13369 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13370 if test yes = "$lt_cv_irix_exported_symbol"; then
13371 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'
13372 fi
13373 link_all_deplibs=no
13374 else
13375 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'
13376 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'
13377 fi
13378 archive_cmds_need_lc='no'
13379 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13380 hardcode_libdir_separator=:
13381 inherit_rpath=yes
13382 link_all_deplibs=yes
13383 ;;
13384
13385 linux*)
13386 case $cc_basename in
13387 tcc*)
13388 # Fabrice Bellard et al's Tiny C Compiler
13389 ld_shlibs=yes
13390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13391 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13392 ;;
13393 esac
13394 ;;
13395
13396 netbsd* | netbsdelf*-gnu)
13397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13399 else
13400 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13401 fi
13402 hardcode_libdir_flag_spec='-R$libdir'
13403 hardcode_direct=yes
13404 hardcode_shlibpath_var=no
13405 ;;
13406
13407 newsos6)
13408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13409 hardcode_direct=yes
13410 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13411 hardcode_libdir_separator=:
13412 hardcode_shlibpath_var=no
13413 ;;
13414
13415 *nto* | *qnx*)
13416 ;;
13417
13418 openbsd* | bitrig*)
13419 if test -f /usr/libexec/ld.so; then
13420 hardcode_direct=yes
13421 hardcode_shlibpath_var=no
13422 hardcode_direct_absolute=yes
13423 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13425 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13426 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13427 export_dynamic_flag_spec='$wl-E'
13428 else
13429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13430 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13431 fi
13432 else
13433 ld_shlibs=no
13434 fi
13435 ;;
13436
13437 os2*)
13438 hardcode_libdir_flag_spec='-L$libdir'
13439 hardcode_minus_L=yes
13440 allow_undefined_flag=unsupported
13441 shrext_cmds=.dll
13442 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13443 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13444 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13445 $ECHO EXPORTS >> $output_objdir/$libname.def~
13446 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13447 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13448 emximp -o $lib $output_objdir/$libname.def'
13449 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13450 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13451 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13452 $ECHO EXPORTS >> $output_objdir/$libname.def~
13453 prefix_cmds="$SED"~
13454 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13455 prefix_cmds="$prefix_cmds -e 1d";
13456 fi~
13457 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13458 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13459 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13460 emximp -o $lib $output_objdir/$libname.def'
13461 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13462 enable_shared_with_static_runtimes=yes
13463 file_list_spec='@'
13464 ;;
13465
13466 osf3*)
13467 if test yes = "$GCC"; then
13468 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13469 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'
13470 else
13471 allow_undefined_flag=' -expect_unresolved \*'
13472 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'
13473 fi
13474 archive_cmds_need_lc='no'
13475 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13476 hardcode_libdir_separator=:
13477 ;;
13478
13479 osf4* | osf5*) # as osf3* with the addition of -msym flag
13480 if test yes = "$GCC"; then
13481 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13482 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'
13483 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13484 else
13485 allow_undefined_flag=' -expect_unresolved \*'
13486 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'
13487 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~
13488 $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'
13489
13490 # Both c and cxx compiler support -rpath directly
13491 hardcode_libdir_flag_spec='-rpath $libdir'
13492 fi
13493 archive_cmds_need_lc='no'
13494 hardcode_libdir_separator=:
13495 ;;
13496
13497 solaris*)
13498 no_undefined_flag=' -z defs'
13499 if test yes = "$GCC"; then
13500 wlarc='$wl'
13501 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13503 $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'
13504 else
13505 case `$CC -V 2>&1` in
13506 *"Compilers 5.0"*)
13507 wlarc=''
13508 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13509 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13510 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13511 ;;
13512 *)
13513 wlarc='$wl'
13514 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13516 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13517 ;;
13518 esac
13519 fi
13520 hardcode_libdir_flag_spec='-R$libdir'
13521 hardcode_shlibpath_var=no
13522 case $host_os in
13523 solaris2.[0-5] | solaris2.[0-5].*) ;;
13524 *)
13525 # The compiler driver will combine and reorder linker options,
13526 # but understands '-z linker_flag'. GCC discards it without '$wl',
13527 # but is careful enough not to reorder.
13528 # Supported since Solaris 2.6 (maybe 2.5.1?)
13529 if test yes = "$GCC"; then
13530 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13531 else
13532 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13533 fi
13534 ;;
13535 esac
13536 link_all_deplibs=yes
13537 ;;
13538
13539 sunos4*)
13540 if test sequent = "$host_vendor"; then
13541 # Use $CC to link under sequent, because it throws in some extra .o
13542 # files that make .init and .fini sections work.
13543 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13544 else
13545 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13546 fi
13547 hardcode_libdir_flag_spec='-L$libdir'
13548 hardcode_direct=yes
13549 hardcode_minus_L=yes
13550 hardcode_shlibpath_var=no
13551 ;;
13552
13553 sysv4)
13554 case $host_vendor in
13555 sni)
13556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557 hardcode_direct=yes # is this really true???
13558 ;;
13559 siemens)
13560 ## LD is ld it makes a PLAMLIB
13561 ## CC just makes a GrossModule.
13562 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13563 reload_cmds='$CC -r -o $output$reload_objs'
13564 hardcode_direct=no
13565 ;;
13566 motorola)
13567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13568 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13569 ;;
13570 esac
13571 runpath_var='LD_RUN_PATH'
13572 hardcode_shlibpath_var=no
13573 ;;
13574
13575 sysv4.3*)
13576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13577 hardcode_shlibpath_var=no
13578 export_dynamic_flag_spec='-Bexport'
13579 ;;
13580
13581 sysv4*MP*)
13582 if test -d /usr/nec; then
13583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13584 hardcode_shlibpath_var=no
13585 runpath_var=LD_RUN_PATH
13586 hardcode_runpath_var=yes
13587 ld_shlibs=yes
13588 fi
13589 ;;
13590
13591 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13592 no_undefined_flag='$wl-z,text'
13593 archive_cmds_need_lc=no
13594 hardcode_shlibpath_var=no
13595 runpath_var='LD_RUN_PATH'
13596
13597 if test yes = "$GCC"; then
13598 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13599 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13600 else
13601 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13602 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13603 fi
13604 ;;
13605
13606 sysv5* | sco3.2v5* | sco5v6*)
13607 # Note: We CANNOT use -z defs as we might desire, because we do not
13608 # link with -lc, and that would cause any symbols used from libc to
13609 # always be unresolved, which means just about no library would
13610 # ever link correctly. If we're not using GNU ld we use -z text
13611 # though, which does catch some bad symbols but isn't as heavy-handed
13612 # as -z defs.
13613 no_undefined_flag='$wl-z,text'
13614 allow_undefined_flag='$wl-z,nodefs'
13615 archive_cmds_need_lc=no
13616 hardcode_shlibpath_var=no
13617 hardcode_libdir_flag_spec='$wl-R,$libdir'
13618 hardcode_libdir_separator=':'
13619 link_all_deplibs=yes
13620 export_dynamic_flag_spec='$wl-Bexport'
13621 runpath_var='LD_RUN_PATH'
13622
13623 if test yes = "$GCC"; then
13624 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13626 else
13627 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13628 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13629 fi
13630 ;;
13631
13632 uts4*)
13633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634 hardcode_libdir_flag_spec='-L$libdir'
13635 hardcode_shlibpath_var=no
13636 ;;
13637
13638 *)
13639 ld_shlibs=no
13640 ;;
13641 esac
13642
13643 if test sni = "$host_vendor"; then
13644 case $host in
13645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13646 export_dynamic_flag_spec='$wl-Blargedynsym'
13647 ;;
13648 esac
13649 fi
13650 fi
13651
13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13653 printf "%s\n" "$ld_shlibs" >&6; }
13654 test no = "$ld_shlibs" && can_build_shared=no
13655
13656 with_gnu_ld=$with_gnu_ld
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672 #
13673 # Do we need to explicitly link libc?
13674 #
13675 case "x$archive_cmds_need_lc" in
13676 x|xyes)
13677 # Assume -lc should be added
13678 archive_cmds_need_lc=yes
13679
13680 if test yes,yes = "$GCC,$enable_shared"; then
13681 case $archive_cmds in
13682 *'~'*)
13683 # FIXME: we may have to deal with multi-command sequences.
13684 ;;
13685 '$CC '*)
13686 # Test whether the compiler implicitly links with -lc since on some
13687 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13688 # to ld, don't add -lc before -lgcc.
13689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13690 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13691 if test ${lt_cv_archive_cmds_need_lc+y}
13692 then :
13693 printf %s "(cached) " >&6
13694 else case e in #(
13695 e) $RM conftest*
13696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13697
13698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13699 (eval $ac_compile) 2>&5
13700 ac_status=$?
13701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13702 test $ac_status = 0; } 2>conftest.err; then
13703 soname=conftest
13704 lib=conftest
13705 libobjs=conftest.$ac_objext
13706 deplibs=
13707 wl=$lt_prog_compiler_wl
13708 pic_flag=$lt_prog_compiler_pic
13709 compiler_flags=-v
13710 linker_flags=-v
13711 verstring=
13712 output_objdir=.
13713 libname=conftest
13714 lt_save_allow_undefined_flag=$allow_undefined_flag
13715 allow_undefined_flag=
13716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13717 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13718 ac_status=$?
13719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13720 test $ac_status = 0; }
13721 then
13722 lt_cv_archive_cmds_need_lc=no
13723 else
13724 lt_cv_archive_cmds_need_lc=yes
13725 fi
13726 allow_undefined_flag=$lt_save_allow_undefined_flag
13727 else
13728 cat conftest.err 1>&5
13729 fi
13730 $RM conftest*
13731 ;;
13732 esac
13733 fi
13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13735 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13736 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13737 ;;
13738 esac
13739 fi
13740 ;;
13741 esac
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13895 printf %s "checking dynamic linker characteristics... " >&6; }
13896
13897 if test yes = "$GCC"; then
13898 case $host_os in
13899 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13900 *) lt_awk_arg='/^libraries:/' ;;
13901 esac
13902 case $host_os in
13903 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13904 *) lt_sed_strip_eq='s|=/|/|g' ;;
13905 esac
13906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13907 case $lt_search_path_spec in
13908 *\;*)
13909 # if the path contains ";" then we assume it to be the separator
13910 # otherwise default to the standard path separator (i.e. ":") - it is
13911 # assumed that no part of a normal pathname contains ";" but that should
13912 # okay in the real world where ";" in dirpaths is itself problematic.
13913 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13914 ;;
13915 *)
13916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13917 ;;
13918 esac
13919 # Ok, now we have the path, separated by spaces, we can step through it
13920 # and add multilib dir if necessary...
13921 lt_tmp_lt_search_path_spec=
13922 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13923 # ...but if some path component already ends with the multilib dir we assume
13924 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13925 case "$lt_multi_os_dir; $lt_search_path_spec " in
13926 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13927 lt_multi_os_dir=
13928 ;;
13929 esac
13930 for lt_sys_path in $lt_search_path_spec; do
13931 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13932 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13933 elif test -n "$lt_multi_os_dir"; then
13934 test -d "$lt_sys_path" && \
13935 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13936 fi
13937 done
13938 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13939 BEGIN {RS = " "; FS = "/|\n";} {
13940 lt_foo = "";
13941 lt_count = 0;
13942 for (lt_i = NF; lt_i > 0; lt_i--) {
13943 if ($lt_i != "" && $lt_i != ".") {
13944 if ($lt_i == "..") {
13945 lt_count++;
13946 } else {
13947 if (lt_count == 0) {
13948 lt_foo = "/" $lt_i lt_foo;
13949 } else {
13950 lt_count--;
13951 }
13952 }
13953 }
13954 }
13955 if (lt_foo != "") { lt_freq[lt_foo]++; }
13956 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13957 }'`
13958 # AWK program above erroneously prepends '/' to C:/dos/paths
13959 # for these hosts.
13960 case $host_os in
13961 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13962 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13963 esac
13964 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13965 else
13966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13967 fi
13968 library_names_spec=
13969 libname_spec='lib$name'
13970 soname_spec=
13971 shrext_cmds=.so
13972 postinstall_cmds=
13973 postuninstall_cmds=
13974 finish_cmds=
13975 finish_eval=
13976 shlibpath_var=
13977 shlibpath_overrides_runpath=unknown
13978 version_type=none
13979 dynamic_linker="$host_os ld.so"
13980 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13981 need_lib_prefix=unknown
13982 hardcode_into_libs=no
13983
13984 # when you set need_version to no, make sure it does not cause -set_version
13985 # flags to be left without arguments
13986 need_version=unknown
13987
13988
13989
13990 case $host_os in
13991 aix3*)
13992 version_type=linux # correct to gnu/linux during the next big refactor
13993 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13994 shlibpath_var=LIBPATH
13995
13996 # AIX 3 has no versioning support, so we append a major version to the name.
13997 soname_spec='$libname$release$shared_ext$major'
13998 ;;
13999
14000 aix[4-9]*)
14001 version_type=linux # correct to gnu/linux during the next big refactor
14002 need_lib_prefix=no
14003 need_version=no
14004 hardcode_into_libs=yes
14005 if test ia64 = "$host_cpu"; then
14006 # AIX 5 supports IA64
14007 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14008 shlibpath_var=LD_LIBRARY_PATH
14009 else
14010 # With GCC up to 2.95.x, collect2 would create an import file
14011 # for dependence libraries. The import file would start with
14012 # the line '#! .'. This would cause the generated library to
14013 # depend on '.', always an invalid library. This was fixed in
14014 # development snapshots of GCC prior to 3.0.
14015 case $host_os in
14016 aix4 | aix4.[01] | aix4.[01].*)
14017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14018 echo ' yes '
14019 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14020 :
14021 else
14022 can_build_shared=no
14023 fi
14024 ;;
14025 esac
14026 # Using Import Files as archive members, it is possible to support
14027 # filename-based versioning of shared library archives on AIX. While
14028 # this would work for both with and without runtime linking, it will
14029 # prevent static linking of such archives. So we do filename-based
14030 # shared library versioning with .so extension only, which is used
14031 # when both runtime linking and shared linking is enabled.
14032 # Unfortunately, runtime linking may impact performance, so we do
14033 # not want this to be the default eventually. Also, we use the
14034 # versioned .so libs for executables only if there is the -brtl
14035 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14036 # To allow for filename-based versioning support, we need to create
14037 # libNAME.so.V as an archive file, containing:
14038 # *) an Import File, referring to the versioned filename of the
14039 # archive as well as the shared archive member, telling the
14040 # bitwidth (32 or 64) of that shared object, and providing the
14041 # list of exported symbols of that shared object, eventually
14042 # decorated with the 'weak' keyword
14043 # *) the shared object with the F_LOADONLY flag set, to really avoid
14044 # it being seen by the linker.
14045 # At run time we better use the real file rather than another symlink,
14046 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14047
14048 case $with_aix_soname,$aix_use_runtimelinking in
14049 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14050 # soname into executable. Probably we can add versioning support to
14051 # collect2, so additional links can be useful in future.
14052 aix,yes) # traditional libtool
14053 dynamic_linker='AIX unversionable lib.so'
14054 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14055 # instead of lib<name>.a to let people know that these are not
14056 # typical AIX shared libraries.
14057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14058 ;;
14059 aix,no) # traditional AIX only
14060 dynamic_linker='AIX lib.a(lib.so.V)'
14061 # We preserve .a as extension for shared libraries through AIX4.2
14062 # and later when we are not doing run time linking.
14063 library_names_spec='$libname$release.a $libname.a'
14064 soname_spec='$libname$release$shared_ext$major'
14065 ;;
14066 svr4,*) # full svr4 only
14067 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14068 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14069 # We do not specify a path in Import Files, so LIBPATH fires.
14070 shlibpath_overrides_runpath=yes
14071 ;;
14072 *,yes) # both, prefer svr4
14073 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14074 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14075 # unpreferred sharedlib libNAME.a needs extra handling
14076 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"'
14077 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"'
14078 # We do not specify a path in Import Files, so LIBPATH fires.
14079 shlibpath_overrides_runpath=yes
14080 ;;
14081 *,no) # both, prefer aix
14082 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14083 library_names_spec='$libname$release.a $libname.a'
14084 soname_spec='$libname$release$shared_ext$major'
14085 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14086 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)'
14087 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"'
14088 ;;
14089 esac
14090 shlibpath_var=LIBPATH
14091 fi
14092 ;;
14093
14094 amigaos*)
14095 case $host_cpu in
14096 powerpc)
14097 # Since July 2007 AmigaOS4 officially supports .so libraries.
14098 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14100 ;;
14101 m68k)
14102 library_names_spec='$libname.ixlibrary $libname.a'
14103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14104 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'
14105 ;;
14106 esac
14107 ;;
14108
14109 beos*)
14110 library_names_spec='$libname$shared_ext'
14111 dynamic_linker="$host_os ld.so"
14112 shlibpath_var=LIBRARY_PATH
14113 ;;
14114
14115 bsdi[45]*)
14116 version_type=linux # correct to gnu/linux during the next big refactor
14117 need_version=no
14118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14119 soname_spec='$libname$release$shared_ext$major'
14120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14124 # the default ld.so.conf also contains /usr/contrib/lib and
14125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14126 # libtool to hard-code these into programs
14127 ;;
14128
14129 cygwin* | mingw* | pw32* | cegcc*)
14130 version_type=windows
14131 shrext_cmds=.dll
14132 need_version=no
14133 need_lib_prefix=no
14134
14135 case $GCC,$cc_basename in
14136 yes,*)
14137 # gcc
14138 library_names_spec='$libname.dll.a'
14139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14140 postinstall_cmds='base_file=`basename \$file`~
14141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14142 dldir=$destdir/`dirname \$dlpath`~
14143 test -d \$dldir || mkdir -p \$dldir~
14144 $install_prog $dir/$dlname \$dldir/$dlname~
14145 chmod a+x \$dldir/$dlname~
14146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14148 fi'
14149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14150 dlpath=$dir/\$dldll~
14151 $RM \$dlpath'
14152 shlibpath_overrides_runpath=yes
14153
14154 case $host_os in
14155 cygwin*)
14156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14157 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14158
14159 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14160 ;;
14161 mingw* | cegcc*)
14162 # MinGW DLLs use traditional 'lib' prefix
14163 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14164 ;;
14165 pw32*)
14166 # pw32 DLLs use 'pw' prefix rather than 'lib'
14167 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14168 ;;
14169 esac
14170 dynamic_linker='Win32 ld.exe'
14171 ;;
14172
14173 *,cl* | *,icl*)
14174 # Native MSVC or ICC
14175 libname_spec='$name'
14176 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14177 library_names_spec='$libname.dll.lib'
14178
14179 case $build_os in
14180 mingw*)
14181 sys_lib_search_path_spec=
14182 lt_save_ifs=$IFS
14183 IFS=';'
14184 for lt_path in $LIB
14185 do
14186 IFS=$lt_save_ifs
14187 # Let DOS variable expansion print the short 8.3 style file name.
14188 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14189 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14190 done
14191 IFS=$lt_save_ifs
14192 # Convert to MSYS style.
14193 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14194 ;;
14195 cygwin*)
14196 # Convert to unix form, then to dos form, then back to unix form
14197 # but this time dos style (no spaces!) so that the unix form looks
14198 # like /cygdrive/c/PROGRA~1:/cygdr...
14199 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14200 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14201 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14202 ;;
14203 *)
14204 sys_lib_search_path_spec=$LIB
14205 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14206 # It is most probably a Windows format PATH.
14207 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14208 else
14209 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14210 fi
14211 # FIXME: find the short name or the path components, as spaces are
14212 # common. (e.g. "Program Files" -> "PROGRA~1")
14213 ;;
14214 esac
14215
14216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14217 postinstall_cmds='base_file=`basename \$file`~
14218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14219 dldir=$destdir/`dirname \$dlpath`~
14220 test -d \$dldir || mkdir -p \$dldir~
14221 $install_prog $dir/$dlname \$dldir/$dlname'
14222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14223 dlpath=$dir/\$dldll~
14224 $RM \$dlpath'
14225 shlibpath_overrides_runpath=yes
14226 dynamic_linker='Win32 link.exe'
14227 ;;
14228
14229 *)
14230 # Assume MSVC and ICC wrapper
14231 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14232 dynamic_linker='Win32 ld.exe'
14233 ;;
14234 esac
14235 # FIXME: first we should search . and the directory the executable is in
14236 shlibpath_var=PATH
14237 ;;
14238
14239 darwin* | rhapsody*)
14240 dynamic_linker="$host_os dyld"
14241 version_type=darwin
14242 need_lib_prefix=no
14243 need_version=no
14244 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14245 soname_spec='$libname$release$major$shared_ext'
14246 shlibpath_overrides_runpath=yes
14247 shlibpath_var=DYLD_LIBRARY_PATH
14248 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14249
14250 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14251 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14252 ;;
14253
14254 dgux*)
14255 version_type=linux # correct to gnu/linux during the next big refactor
14256 need_lib_prefix=no
14257 need_version=no
14258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14259 soname_spec='$libname$release$shared_ext$major'
14260 shlibpath_var=LD_LIBRARY_PATH
14261 ;;
14262
14263 freebsd* | dragonfly* | midnightbsd*)
14264 # DragonFly does not have aout. When/if they implement a new
14265 # versioning mechanism, adjust this.
14266 if test -x /usr/bin/objformat; then
14267 objformat=`/usr/bin/objformat`
14268 else
14269 case $host_os in
14270 freebsd[23].*) objformat=aout ;;
14271 *) objformat=elf ;;
14272 esac
14273 fi
14274 version_type=freebsd-$objformat
14275 case $version_type in
14276 freebsd-elf*)
14277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14278 soname_spec='$libname$release$shared_ext$major'
14279 need_version=no
14280 need_lib_prefix=no
14281 ;;
14282 freebsd-*)
14283 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14284 need_version=yes
14285 ;;
14286 esac
14287 shlibpath_var=LD_LIBRARY_PATH
14288 case $host_os in
14289 freebsd2.*)
14290 shlibpath_overrides_runpath=yes
14291 ;;
14292 freebsd3.[01]* | freebsdelf3.[01]*)
14293 shlibpath_overrides_runpath=yes
14294 hardcode_into_libs=yes
14295 ;;
14296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14298 shlibpath_overrides_runpath=no
14299 hardcode_into_libs=yes
14300 ;;
14301 *) # from 4.6 on, and DragonFly
14302 shlibpath_overrides_runpath=yes
14303 hardcode_into_libs=yes
14304 ;;
14305 esac
14306 ;;
14307
14308 haiku*)
14309 version_type=linux # correct to gnu/linux during the next big refactor
14310 need_lib_prefix=no
14311 need_version=no
14312 dynamic_linker="$host_os runtime_loader"
14313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14314 soname_spec='$libname$release$shared_ext$major'
14315 shlibpath_var=LIBRARY_PATH
14316 shlibpath_overrides_runpath=no
14317 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14318 hardcode_into_libs=yes
14319 ;;
14320
14321 hpux9* | hpux10* | hpux11*)
14322 # Give a soname corresponding to the major version so that dld.sl refuses to
14323 # link against other versions.
14324 version_type=sunos
14325 need_lib_prefix=no
14326 need_version=no
14327 case $host_cpu in
14328 ia64*)
14329 shrext_cmds='.so'
14330 hardcode_into_libs=yes
14331 dynamic_linker="$host_os dld.so"
14332 shlibpath_var=LD_LIBRARY_PATH
14333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14335 soname_spec='$libname$release$shared_ext$major'
14336 if test 32 = "$HPUX_IA64_MODE"; then
14337 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14338 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14339 else
14340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14341 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14342 fi
14343 ;;
14344 hppa*64*)
14345 shrext_cmds='.sl'
14346 hardcode_into_libs=yes
14347 dynamic_linker="$host_os dld.sl"
14348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14351 soname_spec='$libname$release$shared_ext$major'
14352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14354 ;;
14355 *)
14356 shrext_cmds='.sl'
14357 dynamic_linker="$host_os dld.sl"
14358 shlibpath_var=SHLIB_PATH
14359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14361 soname_spec='$libname$release$shared_ext$major'
14362 ;;
14363 esac
14364 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14365 postinstall_cmds='chmod 555 $lib'
14366 # or fails outright, so override atomically:
14367 install_override_mode=555
14368 ;;
14369
14370 interix[3-9]*)
14371 version_type=linux # correct to gnu/linux during the next big refactor
14372 need_lib_prefix=no
14373 need_version=no
14374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14375 soname_spec='$libname$release$shared_ext$major'
14376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 shlibpath_overrides_runpath=no
14379 hardcode_into_libs=yes
14380 ;;
14381
14382 irix5* | irix6* | nonstopux*)
14383 case $host_os in
14384 nonstopux*) version_type=nonstopux ;;
14385 *)
14386 if test yes = "$lt_cv_prog_gnu_ld"; then
14387 version_type=linux # correct to gnu/linux during the next big refactor
14388 else
14389 version_type=irix
14390 fi ;;
14391 esac
14392 need_lib_prefix=no
14393 need_version=no
14394 soname_spec='$libname$release$shared_ext$major'
14395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14396 case $host_os in
14397 irix5* | nonstopux*)
14398 libsuff= shlibsuff=
14399 ;;
14400 *)
14401 case $LD in # libtool.m4 will add one of these switches to LD
14402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14403 libsuff= shlibsuff= libmagic=32-bit;;
14404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14405 libsuff=32 shlibsuff=N32 libmagic=N32;;
14406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14407 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14408 *) libsuff= shlibsuff= libmagic=never-match;;
14409 esac
14410 ;;
14411 esac
14412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14413 shlibpath_overrides_runpath=no
14414 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14415 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14416 hardcode_into_libs=yes
14417 ;;
14418
14419 # No shared lib support for Linux oldld, aout, or coff.
14420 linux*oldld* | linux*aout* | linux*coff*)
14421 dynamic_linker=no
14422 ;;
14423
14424 linux*android*)
14425 version_type=none # Android doesn't support versioned libraries.
14426 need_lib_prefix=no
14427 need_version=no
14428 library_names_spec='$libname$release$shared_ext'
14429 soname_spec='$libname$release$shared_ext'
14430 finish_cmds=
14431 shlibpath_var=LD_LIBRARY_PATH
14432 shlibpath_overrides_runpath=yes
14433
14434 # This implies no fast_install, which is unacceptable.
14435 # Some rework will be needed to allow for fast_install
14436 # before this can be enabled.
14437 hardcode_into_libs=yes
14438
14439 dynamic_linker='Android linker'
14440 # Don't embed -rpath directories since the linker doesn't support them.
14441 hardcode_libdir_flag_spec='-L$libdir'
14442 ;;
14443
14444 # This must be glibc/ELF.
14445 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14446 version_type=linux # correct to gnu/linux during the next big refactor
14447 need_lib_prefix=no
14448 need_version=no
14449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14450 soname_spec='$libname$release$shared_ext$major'
14451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 shlibpath_overrides_runpath=no
14454
14455 # Some binutils ld are patched to set DT_RUNPATH
14456 if test ${lt_cv_shlibpath_overrides_runpath+y}
14457 then :
14458 printf %s "(cached) " >&6
14459 else case e in #(
14460 e) lt_cv_shlibpath_overrides_runpath=no
14461 save_LDFLAGS=$LDFLAGS
14462 save_libdir=$libdir
14463 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14464 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14467
14468 int
14469 main (void)
14470 {
14471
14472 ;
14473 return 0;
14474 }
14475 _ACEOF
14476 if ac_fn_c_try_link "$LINENO"
14477 then :
14478 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14479 then :
14480 lt_cv_shlibpath_overrides_runpath=yes
14481 fi
14482 fi
14483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14484 conftest$ac_exeext conftest.$ac_ext
14485 LDFLAGS=$save_LDFLAGS
14486 libdir=$save_libdir
14487 ;;
14488 esac
14489 fi
14490
14491 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14492
14493 # This implies no fast_install, which is unacceptable.
14494 # Some rework will be needed to allow for fast_install
14495 # before this can be enabled.
14496 hardcode_into_libs=yes
14497
14498 # Ideally, we could use ldconfig to report *all* directores which are
14499 # searched for libraries, however this is still not possible. Aside from not
14500 # being certain /sbin/ldconfig is available, command
14501 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14502 # even though it is searched at run-time. Try to do the best guess by
14503 # appending ld.so.conf contents (and includes) to the search path.
14504 if test -f /etc/ld.so.conf; then
14505 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' ' '`
14506 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14507 fi
14508
14509 # We used to test for /lib/ld.so.1 and disable shared libraries on
14510 # powerpc, because MkLinux only supported shared libraries with the
14511 # GNU dynamic linker. Since this was broken with cross compilers,
14512 # most powerpc-linux boxes support dynamic linking these days and
14513 # people can always --disable-shared, the test was removed, and we
14514 # assume the GNU/Linux dynamic linker is in use.
14515 dynamic_linker='GNU/Linux ld.so'
14516 ;;
14517
14518 netbsdelf*-gnu)
14519 version_type=linux
14520 need_lib_prefix=no
14521 need_version=no
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 shlibpath_overrides_runpath=no
14526 hardcode_into_libs=yes
14527 dynamic_linker='NetBSD ld.elf_so'
14528 ;;
14529
14530 netbsd*)
14531 version_type=sunos
14532 need_lib_prefix=no
14533 need_version=no
14534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14535 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14537 dynamic_linker='NetBSD (a.out) ld.so'
14538 else
14539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14540 soname_spec='$libname$release$shared_ext$major'
14541 dynamic_linker='NetBSD ld.elf_so'
14542 fi
14543 shlibpath_var=LD_LIBRARY_PATH
14544 shlibpath_overrides_runpath=yes
14545 hardcode_into_libs=yes
14546 ;;
14547
14548 newsos6)
14549 version_type=linux # correct to gnu/linux during the next big refactor
14550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes
14553 ;;
14554
14555 *nto* | *qnx*)
14556 version_type=qnx
14557 need_lib_prefix=no
14558 need_version=no
14559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14560 soname_spec='$libname$release$shared_ext$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath=no
14563 hardcode_into_libs=yes
14564 dynamic_linker='ldqnx.so'
14565 ;;
14566
14567 openbsd* | bitrig*)
14568 version_type=sunos
14569 sys_lib_dlsearch_path_spec=/usr/lib
14570 need_lib_prefix=no
14571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14572 need_version=no
14573 else
14574 need_version=yes
14575 fi
14576 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=yes
14580 ;;
14581
14582 os2*)
14583 libname_spec='$name'
14584 version_type=windows
14585 shrext_cmds=.dll
14586 need_version=no
14587 need_lib_prefix=no
14588 # OS/2 can only load a DLL with a base name of 8 characters or less.
14589 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14590 v=$($ECHO $release$versuffix | tr -d .-);
14591 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14592 $ECHO $n$v`$shared_ext'
14593 library_names_spec='${libname}_dll.$libext'
14594 dynamic_linker='OS/2 ld.exe'
14595 shlibpath_var=BEGINLIBPATH
14596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14598 postinstall_cmds='base_file=`basename \$file`~
14599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14600 dldir=$destdir/`dirname \$dlpath`~
14601 test -d \$dldir || mkdir -p \$dldir~
14602 $install_prog $dir/$dlname \$dldir/$dlname~
14603 chmod a+x \$dldir/$dlname~
14604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14606 fi'
14607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14608 dlpath=$dir/\$dldll~
14609 $RM \$dlpath'
14610 ;;
14611
14612 osf3* | osf4* | osf5*)
14613 version_type=osf
14614 need_lib_prefix=no
14615 need_version=no
14616 soname_spec='$libname$release$shared_ext$major'
14617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14621 ;;
14622
14623 rdos*)
14624 dynamic_linker=no
14625 ;;
14626
14627 solaris*)
14628 version_type=linux # correct to gnu/linux during the next big refactor
14629 need_lib_prefix=no
14630 need_version=no
14631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14632 soname_spec='$libname$release$shared_ext$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14634 shlibpath_overrides_runpath=yes
14635 hardcode_into_libs=yes
14636 # ldd complains unless libraries are executable
14637 postinstall_cmds='chmod +x $lib'
14638 ;;
14639
14640 sunos4*)
14641 version_type=sunos
14642 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14646 if test yes = "$with_gnu_ld"; then
14647 need_lib_prefix=no
14648 fi
14649 need_version=yes
14650 ;;
14651
14652 sysv4 | sysv4.3*)
14653 version_type=linux # correct to gnu/linux during the next big refactor
14654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14655 soname_spec='$libname$release$shared_ext$major'
14656 shlibpath_var=LD_LIBRARY_PATH
14657 case $host_vendor in
14658 sni)
14659 shlibpath_overrides_runpath=no
14660 need_lib_prefix=no
14661 runpath_var=LD_RUN_PATH
14662 ;;
14663 siemens)
14664 need_lib_prefix=no
14665 ;;
14666 motorola)
14667 need_lib_prefix=no
14668 need_version=no
14669 shlibpath_overrides_runpath=no
14670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14671 ;;
14672 esac
14673 ;;
14674
14675 sysv4*MP*)
14676 if test -d /usr/nec; then
14677 version_type=linux # correct to gnu/linux during the next big refactor
14678 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14679 soname_spec='$libname$shared_ext.$major'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 fi
14682 ;;
14683
14684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14685 version_type=sco
14686 need_lib_prefix=no
14687 need_version=no
14688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14689 soname_spec='$libname$release$shared_ext$major'
14690 shlibpath_var=LD_LIBRARY_PATH
14691 shlibpath_overrides_runpath=yes
14692 hardcode_into_libs=yes
14693 if test yes = "$with_gnu_ld"; then
14694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14695 else
14696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14697 case $host_os in
14698 sco3.2v5*)
14699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14700 ;;
14701 esac
14702 fi
14703 sys_lib_dlsearch_path_spec='/usr/lib'
14704 ;;
14705
14706 tpf*)
14707 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14708 version_type=linux # correct to gnu/linux during the next big refactor
14709 need_lib_prefix=no
14710 need_version=no
14711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=no
14714 hardcode_into_libs=yes
14715 ;;
14716
14717 uts4*)
14718 version_type=linux # correct to gnu/linux during the next big refactor
14719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14720 soname_spec='$libname$release$shared_ext$major'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 ;;
14723
14724 *)
14725 dynamic_linker=no
14726 ;;
14727 esac
14728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14729 printf "%s\n" "$dynamic_linker" >&6; }
14730 test no = "$dynamic_linker" && can_build_shared=no
14731
14732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14733 if test yes = "$GCC"; then
14734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14735 fi
14736
14737 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14738 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14739 fi
14740
14741 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14742 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14743 fi
14744
14745 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14746 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14747
14748 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14749 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14750
14751 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14752 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14851 printf %s "checking how to hardcode library paths into programs... " >&6; }
14852 hardcode_action=
14853 if test -n "$hardcode_libdir_flag_spec" ||
14854 test -n "$runpath_var" ||
14855 test yes = "$hardcode_automatic"; then
14856
14857 # We can hardcode non-existent directories.
14858 if test no != "$hardcode_direct" &&
14859 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14860 # have to relink, otherwise we might link with an installed library
14861 # when we should be linking with a yet-to-be-installed one
14862 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14863 test no != "$hardcode_minus_L"; then
14864 # Linking always hardcodes the temporary library directory.
14865 hardcode_action=relink
14866 else
14867 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14868 hardcode_action=immediate
14869 fi
14870 else
14871 # We cannot hardcode anything, or else we can only hardcode existing
14872 # directories.
14873 hardcode_action=unsupported
14874 fi
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14876 printf "%s\n" "$hardcode_action" >&6; }
14877
14878 if test relink = "$hardcode_action" ||
14879 test yes = "$inherit_rpath"; then
14880 # Fast installation is not supported
14881 enable_fast_install=no
14882 elif test yes = "$shlibpath_overrides_runpath" ||
14883 test no = "$enable_shared"; then
14884 # Fast installation is not necessary
14885 enable_fast_install=needless
14886 fi
14887
14888
14889
14890
14891
14892
14893 if test yes != "$enable_dlopen"; then
14894 enable_dlopen=unknown
14895 enable_dlopen_self=unknown
14896 enable_dlopen_self_static=unknown
14897 else
14898 lt_cv_dlopen=no
14899 lt_cv_dlopen_libs=
14900
14901 case $host_os in
14902 beos*)
14903 lt_cv_dlopen=load_add_on
14904 lt_cv_dlopen_libs=
14905 lt_cv_dlopen_self=yes
14906 ;;
14907
14908 mingw* | pw32* | cegcc*)
14909 lt_cv_dlopen=LoadLibrary
14910 lt_cv_dlopen_libs=
14911 ;;
14912
14913 cygwin*)
14914 lt_cv_dlopen=dlopen
14915 lt_cv_dlopen_libs=
14916 ;;
14917
14918 darwin*)
14919 # if libdl is installed we need to link against it
14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14921 printf %s "checking for dlopen in -ldl... " >&6; }
14922 if test ${ac_cv_lib_dl_dlopen+y}
14923 then :
14924 printf %s "(cached) " >&6
14925 else case e in #(
14926 e) ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-ldl $LIBS"
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14930
14931 /* Override any GCC internal prototype to avoid an error.
14932 Use char because int might match the return type of a GCC
14933 builtin and then its argument prototype would still apply.
14934 The 'extern "C"' is for builds by C++ compilers;
14935 although this is not generally supported in C code supporting it here
14936 has little cost and some practical benefit (sr 110532). */
14937 #ifdef __cplusplus
14938 extern "C"
14939 #endif
14940 char dlopen (void);
14941 int
14942 main (void)
14943 {
14944 return dlopen ();
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"
14950 then :
14951 ac_cv_lib_dl_dlopen=yes
14952 else case e in #(
14953 e) ac_cv_lib_dl_dlopen=no ;;
14954 esac
14955 fi
14956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14957 conftest$ac_exeext conftest.$ac_ext
14958 LIBS=$ac_check_lib_save_LIBS ;;
14959 esac
14960 fi
14961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14962 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14963 if test "x$ac_cv_lib_dl_dlopen" = xyes
14964 then :
14965 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14966 else case e in #(
14967 e)
14968 lt_cv_dlopen=dyld
14969 lt_cv_dlopen_libs=
14970 lt_cv_dlopen_self=yes
14971 ;;
14972 esac
14973 fi
14974
14975 ;;
14976
14977 tpf*)
14978 # Don't try to run any link tests for TPF. We know it's impossible
14979 # because TPF is a cross-compiler, and we know how we open DSOs.
14980 lt_cv_dlopen=dlopen
14981 lt_cv_dlopen_libs=
14982 lt_cv_dlopen_self=no
14983 ;;
14984
14985 *)
14986 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14987 if test "x$ac_cv_func_shl_load" = xyes
14988 then :
14989 lt_cv_dlopen=shl_load
14990 else case e in #(
14991 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14992 printf %s "checking for shl_load in -ldld... " >&6; }
14993 if test ${ac_cv_lib_dld_shl_load+y}
14994 then :
14995 printf %s "(cached) " >&6
14996 else case e in #(
14997 e) ac_check_lib_save_LIBS=$LIBS
14998 LIBS="-ldld $LIBS"
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001
15002 /* Override any GCC internal prototype to avoid an error.
15003 Use char because int might match the return type of a GCC
15004 builtin and then its argument prototype would still apply.
15005 The 'extern "C"' is for builds by C++ compilers;
15006 although this is not generally supported in C code supporting it here
15007 has little cost and some practical benefit (sr 110532). */
15008 #ifdef __cplusplus
15009 extern "C"
15010 #endif
15011 char shl_load (void);
15012 int
15013 main (void)
15014 {
15015 return shl_load ();
15016 ;
15017 return 0;
15018 }
15019 _ACEOF
15020 if ac_fn_c_try_link "$LINENO"
15021 then :
15022 ac_cv_lib_dld_shl_load=yes
15023 else case e in #(
15024 e) ac_cv_lib_dld_shl_load=no ;;
15025 esac
15026 fi
15027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15028 conftest$ac_exeext conftest.$ac_ext
15029 LIBS=$ac_check_lib_save_LIBS ;;
15030 esac
15031 fi
15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15033 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15034 if test "x$ac_cv_lib_dld_shl_load" = xyes
15035 then :
15036 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15037 else case e in #(
15038 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15039 if test "x$ac_cv_func_dlopen" = xyes
15040 then :
15041 lt_cv_dlopen=dlopen
15042 else case e in #(
15043 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15044 printf %s "checking for dlopen in -ldl... " >&6; }
15045 if test ${ac_cv_lib_dl_dlopen+y}
15046 then :
15047 printf %s "(cached) " >&6
15048 else case e in #(
15049 e) ac_check_lib_save_LIBS=$LIBS
15050 LIBS="-ldl $LIBS"
15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h. */
15053
15054 /* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply.
15057 The 'extern "C"' is for builds by C++ compilers;
15058 although this is not generally supported in C code supporting it here
15059 has little cost and some practical benefit (sr 110532). */
15060 #ifdef __cplusplus
15061 extern "C"
15062 #endif
15063 char dlopen (void);
15064 int
15065 main (void)
15066 {
15067 return dlopen ();
15068 ;
15069 return 0;
15070 }
15071 _ACEOF
15072 if ac_fn_c_try_link "$LINENO"
15073 then :
15074 ac_cv_lib_dl_dlopen=yes
15075 else case e in #(
15076 e) ac_cv_lib_dl_dlopen=no ;;
15077 esac
15078 fi
15079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15080 conftest$ac_exeext conftest.$ac_ext
15081 LIBS=$ac_check_lib_save_LIBS ;;
15082 esac
15083 fi
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15085 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15086 if test "x$ac_cv_lib_dl_dlopen" = xyes
15087 then :
15088 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15089 else case e in #(
15090 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15091 printf %s "checking for dlopen in -lsvld... " >&6; }
15092 if test ${ac_cv_lib_svld_dlopen+y}
15093 then :
15094 printf %s "(cached) " >&6
15095 else case e in #(
15096 e) ac_check_lib_save_LIBS=$LIBS
15097 LIBS="-lsvld $LIBS"
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15100
15101 /* Override any GCC internal prototype to avoid an error.
15102 Use char because int might match the return type of a GCC
15103 builtin and then its argument prototype would still apply.
15104 The 'extern "C"' is for builds by C++ compilers;
15105 although this is not generally supported in C code supporting it here
15106 has little cost and some practical benefit (sr 110532). */
15107 #ifdef __cplusplus
15108 extern "C"
15109 #endif
15110 char dlopen (void);
15111 int
15112 main (void)
15113 {
15114 return dlopen ();
15115 ;
15116 return 0;
15117 }
15118 _ACEOF
15119 if ac_fn_c_try_link "$LINENO"
15120 then :
15121 ac_cv_lib_svld_dlopen=yes
15122 else case e in #(
15123 e) ac_cv_lib_svld_dlopen=no ;;
15124 esac
15125 fi
15126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15127 conftest$ac_exeext conftest.$ac_ext
15128 LIBS=$ac_check_lib_save_LIBS ;;
15129 esac
15130 fi
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15132 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15133 if test "x$ac_cv_lib_svld_dlopen" = xyes
15134 then :
15135 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15136 else case e in #(
15137 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15138 printf %s "checking for dld_link in -ldld... " >&6; }
15139 if test ${ac_cv_lib_dld_dld_link+y}
15140 then :
15141 printf %s "(cached) " >&6
15142 else case e in #(
15143 e) ac_check_lib_save_LIBS=$LIBS
15144 LIBS="-ldld $LIBS"
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147
15148 /* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply.
15151 The 'extern "C"' is for builds by C++ compilers;
15152 although this is not generally supported in C code supporting it here
15153 has little cost and some practical benefit (sr 110532). */
15154 #ifdef __cplusplus
15155 extern "C"
15156 #endif
15157 char dld_link (void);
15158 int
15159 main (void)
15160 {
15161 return dld_link ();
15162 ;
15163 return 0;
15164 }
15165 _ACEOF
15166 if ac_fn_c_try_link "$LINENO"
15167 then :
15168 ac_cv_lib_dld_dld_link=yes
15169 else case e in #(
15170 e) ac_cv_lib_dld_dld_link=no ;;
15171 esac
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS ;;
15176 esac
15177 fi
15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15179 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15180 if test "x$ac_cv_lib_dld_dld_link" = xyes
15181 then :
15182 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15183 fi
15184
15185 ;;
15186 esac
15187 fi
15188
15189 ;;
15190 esac
15191 fi
15192
15193 ;;
15194 esac
15195 fi
15196
15197 ;;
15198 esac
15199 fi
15200
15201 ;;
15202 esac
15203 fi
15204
15205 ;;
15206 esac
15207
15208 if test no = "$lt_cv_dlopen"; then
15209 enable_dlopen=no
15210 else
15211 enable_dlopen=yes
15212 fi
15213
15214 case $lt_cv_dlopen in
15215 dlopen)
15216 save_CPPFLAGS=$CPPFLAGS
15217 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15218
15219 save_LDFLAGS=$LDFLAGS
15220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15221
15222 save_LIBS=$LIBS
15223 LIBS="$lt_cv_dlopen_libs $LIBS"
15224
15225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15226 printf %s "checking whether a program can dlopen itself... " >&6; }
15227 if test ${lt_cv_dlopen_self+y}
15228 then :
15229 printf %s "(cached) " >&6
15230 else case e in #(
15231 e) if test yes = "$cross_compiling"; then :
15232 lt_cv_dlopen_self=cross
15233 else
15234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15235 lt_status=$lt_dlunknown
15236 cat > conftest.$ac_ext <<_LT_EOF
15237 #line $LINENO "configure"
15238 #include "confdefs.h"
15239
15240 #if HAVE_DLFCN_H
15241 #include <dlfcn.h>
15242 #endif
15243
15244 #include <stdio.h>
15245
15246 #ifdef RTLD_GLOBAL
15247 # define LT_DLGLOBAL RTLD_GLOBAL
15248 #else
15249 # ifdef DL_GLOBAL
15250 # define LT_DLGLOBAL DL_GLOBAL
15251 # else
15252 # define LT_DLGLOBAL 0
15253 # endif
15254 #endif
15255
15256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15257 find out it does not work in some platform. */
15258 #ifndef LT_DLLAZY_OR_NOW
15259 # ifdef RTLD_LAZY
15260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15261 # else
15262 # ifdef DL_LAZY
15263 # define LT_DLLAZY_OR_NOW DL_LAZY
15264 # else
15265 # ifdef RTLD_NOW
15266 # define LT_DLLAZY_OR_NOW RTLD_NOW
15267 # else
15268 # ifdef DL_NOW
15269 # define LT_DLLAZY_OR_NOW DL_NOW
15270 # else
15271 # define LT_DLLAZY_OR_NOW 0
15272 # endif
15273 # endif
15274 # endif
15275 # endif
15276 #endif
15277
15278 /* When -fvisibility=hidden is used, assume the code has been annotated
15279 correspondingly for the symbols needed. */
15280 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15281 int fnord () __attribute__((visibility("default")));
15282 #endif
15283
15284 int fnord () { return 42; }
15285 int main ()
15286 {
15287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15288 int status = $lt_dlunknown;
15289
15290 if (self)
15291 {
15292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15293 else
15294 {
15295 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15296 else puts (dlerror ());
15297 }
15298 /* dlclose (self); */
15299 }
15300 else
15301 puts (dlerror ());
15302
15303 return status;
15304 }
15305 _LT_EOF
15306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15307 (eval $ac_link) 2>&5
15308 ac_status=$?
15309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15310 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15311 (./conftest; exit; ) >&5 2>/dev/null
15312 lt_status=$?
15313 case x$lt_status in
15314 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15315 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15316 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15317 esac
15318 else :
15319 # compilation failed
15320 lt_cv_dlopen_self=no
15321 fi
15322 fi
15323 rm -fr conftest*
15324
15325 ;;
15326 esac
15327 fi
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15329 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15330
15331 if test yes = "$lt_cv_dlopen_self"; then
15332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15334 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15335 if test ${lt_cv_dlopen_self_static+y}
15336 then :
15337 printf %s "(cached) " >&6
15338 else case e in #(
15339 e) if test yes = "$cross_compiling"; then :
15340 lt_cv_dlopen_self_static=cross
15341 else
15342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15343 lt_status=$lt_dlunknown
15344 cat > conftest.$ac_ext <<_LT_EOF
15345 #line $LINENO "configure"
15346 #include "confdefs.h"
15347
15348 #if HAVE_DLFCN_H
15349 #include <dlfcn.h>
15350 #endif
15351
15352 #include <stdio.h>
15353
15354 #ifdef RTLD_GLOBAL
15355 # define LT_DLGLOBAL RTLD_GLOBAL
15356 #else
15357 # ifdef DL_GLOBAL
15358 # define LT_DLGLOBAL DL_GLOBAL
15359 # else
15360 # define LT_DLGLOBAL 0
15361 # endif
15362 #endif
15363
15364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15365 find out it does not work in some platform. */
15366 #ifndef LT_DLLAZY_OR_NOW
15367 # ifdef RTLD_LAZY
15368 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15369 # else
15370 # ifdef DL_LAZY
15371 # define LT_DLLAZY_OR_NOW DL_LAZY
15372 # else
15373 # ifdef RTLD_NOW
15374 # define LT_DLLAZY_OR_NOW RTLD_NOW
15375 # else
15376 # ifdef DL_NOW
15377 # define LT_DLLAZY_OR_NOW DL_NOW
15378 # else
15379 # define LT_DLLAZY_OR_NOW 0
15380 # endif
15381 # endif
15382 # endif
15383 # endif
15384 #endif
15385
15386 /* When -fvisibility=hidden is used, assume the code has been annotated
15387 correspondingly for the symbols needed. */
15388 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15389 int fnord () __attribute__((visibility("default")));
15390 #endif
15391
15392 int fnord () { return 42; }
15393 int main ()
15394 {
15395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15396 int status = $lt_dlunknown;
15397
15398 if (self)
15399 {
15400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15401 else
15402 {
15403 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15404 else puts (dlerror ());
15405 }
15406 /* dlclose (self); */
15407 }
15408 else
15409 puts (dlerror ());
15410
15411 return status;
15412 }
15413 _LT_EOF
15414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15415 (eval $ac_link) 2>&5
15416 ac_status=$?
15417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15418 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15419 (./conftest; exit; ) >&5 2>/dev/null
15420 lt_status=$?
15421 case x$lt_status in
15422 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15423 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15424 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15425 esac
15426 else :
15427 # compilation failed
15428 lt_cv_dlopen_self_static=no
15429 fi
15430 fi
15431 rm -fr conftest*
15432
15433 ;;
15434 esac
15435 fi
15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15437 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15438 fi
15439
15440 CPPFLAGS=$save_CPPFLAGS
15441 LDFLAGS=$save_LDFLAGS
15442 LIBS=$save_LIBS
15443 ;;
15444 esac
15445
15446 case $lt_cv_dlopen_self in
15447 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15448 *) enable_dlopen_self=unknown ;;
15449 esac
15450
15451 case $lt_cv_dlopen_self_static in
15452 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15453 *) enable_dlopen_self_static=unknown ;;
15454 esac
15455 fi
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473 striplib=
15474 old_striplib=
15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15476 printf %s "checking whether stripping libraries is possible... " >&6; }
15477 if test -z "$STRIP"; then
15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15479 printf "%s\n" "no" >&6; }
15480 else
15481 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15482 old_striplib="$STRIP --strip-debug"
15483 striplib="$STRIP --strip-unneeded"
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15485 printf "%s\n" "yes" >&6; }
15486 else
15487 case $host_os in
15488 darwin*)
15489 # FIXME - insert some real tests, host_os isn't really good enough
15490 striplib="$STRIP -x"
15491 old_striplib="$STRIP -S"
15492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15493 printf "%s\n" "yes" >&6; }
15494 ;;
15495 freebsd*)
15496 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15497 old_striplib="$STRIP --strip-debug"
15498 striplib="$STRIP --strip-unneeded"
15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15500 printf "%s\n" "yes" >&6; }
15501 else
15502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15503 printf "%s\n" "no" >&6; }
15504 fi
15505 ;;
15506 *)
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508 printf "%s\n" "no" >&6; }
15509 ;;
15510 esac
15511 fi
15512 fi
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525 # Report what library types will actually be built
15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15527 printf %s "checking if libtool supports shared libraries... " >&6; }
15528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15529 printf "%s\n" "$can_build_shared" >&6; }
15530
15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15532 printf %s "checking whether to build shared libraries... " >&6; }
15533 test no = "$can_build_shared" && enable_shared=no
15534
15535 # On AIX, shared libraries and static libraries use the same namespace, and
15536 # are all built from PIC.
15537 case $host_os in
15538 aix3*)
15539 test yes = "$enable_shared" && enable_static=no
15540 if test -n "$RANLIB"; then
15541 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15542 postinstall_cmds='$RANLIB $lib'
15543 fi
15544 ;;
15545
15546 aix[4-9]*)
15547 if test ia64 != "$host_cpu"; then
15548 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15549 yes,aix,yes) ;; # shared object as lib.so file only
15550 yes,svr4,*) ;; # shared object as lib.so archive member only
15551 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15552 esac
15553 fi
15554 ;;
15555 esac
15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15557 printf "%s\n" "$enable_shared" >&6; }
15558
15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15560 printf %s "checking whether to build static libraries... " >&6; }
15561 # Make sure either enable_shared or enable_static is yes.
15562 test yes = "$enable_shared" || enable_static=yes
15563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15564 printf "%s\n" "$enable_static" >&6; }
15565
15566
15567
15568
15569 fi
15570 ac_ext=c
15571 ac_cpp='$CPP $CPPFLAGS'
15572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15575
15576 CC=$lt_save_CC
15577
15578 if test -n "$CXX" && ( test no != "$CXX" &&
15579 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15580 (test g++ != "$CXX"))); then
15581 ac_ext=cpp
15582 ac_cpp='$CXXCPP $CPPFLAGS'
15583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15587 printf %s "checking how to run the C++ preprocessor... " >&6; }
15588 if test -z "$CXXCPP"; then
15589 if test ${ac_cv_prog_CXXCPP+y}
15590 then :
15591 printf %s "(cached) " >&6
15592 else case e in #(
15593 e) # Double quotes because $CXX needs to be expanded
15594 for CXXCPP in "$CXX -E" cpp /lib/cpp
15595 do
15596 ac_preproc_ok=false
15597 for ac_cxx_preproc_warn_flag in '' yes
15598 do
15599 # Use a header file that comes with gcc, so configuring glibc
15600 # with a fresh cross-compiler works.
15601 # On the NeXT, cc -E runs the code through the compiler's parser,
15602 # not just through cpp. "Syntax error" is here to catch this case.
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605 #include <limits.h>
15606 Syntax error
15607 _ACEOF
15608 if ac_fn_cxx_try_cpp "$LINENO"
15609 then :
15610
15611 else case e in #(
15612 e) # Broken: fails on valid input.
15613 continue ;;
15614 esac
15615 fi
15616 rm -f conftest.err conftest.i conftest.$ac_ext
15617
15618 # OK, works on sane cases. Now check whether nonexistent headers
15619 # can be detected and how.
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622 #include <ac_nonexistent.h>
15623 _ACEOF
15624 if ac_fn_cxx_try_cpp "$LINENO"
15625 then :
15626 # Broken: success on invalid input.
15627 continue
15628 else case e in #(
15629 e) # Passes both tests.
15630 ac_preproc_ok=:
15631 break ;;
15632 esac
15633 fi
15634 rm -f conftest.err conftest.i conftest.$ac_ext
15635
15636 done
15637 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15638 rm -f conftest.i conftest.err conftest.$ac_ext
15639 if $ac_preproc_ok
15640 then :
15641 break
15642 fi
15643
15644 done
15645 ac_cv_prog_CXXCPP=$CXXCPP
15646 ;;
15647 esac
15648 fi
15649 CXXCPP=$ac_cv_prog_CXXCPP
15650 else
15651 ac_cv_prog_CXXCPP=$CXXCPP
15652 fi
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15654 printf "%s\n" "$CXXCPP" >&6; }
15655 ac_preproc_ok=false
15656 for ac_cxx_preproc_warn_flag in '' yes
15657 do
15658 # Use a header file that comes with gcc, so configuring glibc
15659 # with a fresh cross-compiler works.
15660 # On the NeXT, cc -E runs the code through the compiler's parser,
15661 # not just through cpp. "Syntax error" is here to catch this case.
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664 #include <limits.h>
15665 Syntax error
15666 _ACEOF
15667 if ac_fn_cxx_try_cpp "$LINENO"
15668 then :
15669
15670 else case e in #(
15671 e) # Broken: fails on valid input.
15672 continue ;;
15673 esac
15674 fi
15675 rm -f conftest.err conftest.i conftest.$ac_ext
15676
15677 # OK, works on sane cases. Now check whether nonexistent headers
15678 # can be detected and how.
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15681 #include <ac_nonexistent.h>
15682 _ACEOF
15683 if ac_fn_cxx_try_cpp "$LINENO"
15684 then :
15685 # Broken: success on invalid input.
15686 continue
15687 else case e in #(
15688 e) # Passes both tests.
15689 ac_preproc_ok=:
15690 break ;;
15691 esac
15692 fi
15693 rm -f conftest.err conftest.i conftest.$ac_ext
15694
15695 done
15696 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15697 rm -f conftest.i conftest.err conftest.$ac_ext
15698 if $ac_preproc_ok
15699 then :
15700
15701 else case e in #(
15702 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15703 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15704 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15705 See 'config.log' for more details" "$LINENO" 5; } ;;
15706 esac
15707 fi
15708
15709 ac_ext=c
15710 ac_cpp='$CPP $CPPFLAGS'
15711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15714
15715 else
15716 _lt_caught_CXX_error=yes
15717 fi
15718
15719 ac_ext=cpp
15720 ac_cpp='$CXXCPP $CPPFLAGS'
15721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15724
15725 archive_cmds_need_lc_CXX=no
15726 allow_undefined_flag_CXX=
15727 always_export_symbols_CXX=no
15728 archive_expsym_cmds_CXX=
15729 compiler_needs_object_CXX=no
15730 export_dynamic_flag_spec_CXX=
15731 hardcode_direct_CXX=no
15732 hardcode_direct_absolute_CXX=no
15733 hardcode_libdir_flag_spec_CXX=
15734 hardcode_libdir_separator_CXX=
15735 hardcode_minus_L_CXX=no
15736 hardcode_shlibpath_var_CXX=unsupported
15737 hardcode_automatic_CXX=no
15738 inherit_rpath_CXX=no
15739 module_cmds_CXX=
15740 module_expsym_cmds_CXX=
15741 link_all_deplibs_CXX=unknown
15742 old_archive_cmds_CXX=$old_archive_cmds
15743 reload_flag_CXX=$reload_flag
15744 reload_cmds_CXX=$reload_cmds
15745 no_undefined_flag_CXX=
15746 whole_archive_flag_spec_CXX=
15747 enable_shared_with_static_runtimes_CXX=no
15748
15749 # Source file extension for C++ test sources.
15750 ac_ext=cpp
15751
15752 # Object file extension for compiled C++ test sources.
15753 objext=o
15754 objext_CXX=$objext
15755
15756 # No sense in running all these tests if we already determined that
15757 # the CXX compiler isn't working. Some variables (like enable_shared)
15758 # are currently assumed to apply to all compilers on this platform,
15759 # and will be corrupted by setting them based on a non-working compiler.
15760 if test yes != "$_lt_caught_CXX_error"; then
15761 # Code to be used in simple compile tests
15762 lt_simple_compile_test_code="int some_variable = 0;"
15763
15764 # Code to be used in simple link tests
15765 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15766
15767 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15768
15769
15770
15771
15772
15773
15774 # If no C compiler was specified, use CC.
15775 LTCC=${LTCC-"$CC"}
15776
15777 # If no C compiler flags were specified, use CFLAGS.
15778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15779
15780 # Allow CC to be a program name with arguments.
15781 compiler=$CC
15782
15783
15784 # save warnings/boilerplate of simple test code
15785 ac_outfile=conftest.$ac_objext
15786 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15787 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15788 _lt_compiler_boilerplate=`cat conftest.err`
15789 $RM conftest*
15790
15791 ac_outfile=conftest.$ac_objext
15792 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15793 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15794 _lt_linker_boilerplate=`cat conftest.err`
15795 $RM -r conftest*
15796
15797
15798 # Allow CC to be a program name with arguments.
15799 lt_save_CC=$CC
15800 lt_save_CFLAGS=$CFLAGS
15801 lt_save_LD=$LD
15802 lt_save_GCC=$GCC
15803 GCC=$GXX
15804 lt_save_with_gnu_ld=$with_gnu_ld
15805 lt_save_path_LD=$lt_cv_path_LD
15806 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15807 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15808 else
15809 $as_unset lt_cv_prog_gnu_ld
15810 fi
15811 if test -n "${lt_cv_path_LDCXX+set}"; then
15812 lt_cv_path_LD=$lt_cv_path_LDCXX
15813 else
15814 $as_unset lt_cv_path_LD
15815 fi
15816 test -z "${LDCXX+set}" || LD=$LDCXX
15817 CC=${CXX-"c++"}
15818 CFLAGS=$CXXFLAGS
15819 compiler=$CC
15820 compiler_CXX=$CC
15821 func_cc_basename $compiler
15822 cc_basename=$func_cc_basename_result
15823
15824
15825 if test -n "$compiler"; then
15826 # We don't want -fno-exception when compiling C++ code, so set the
15827 # no_builtin_flag separately
15828 if test yes = "$GXX"; then
15829 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15830 else
15831 lt_prog_compiler_no_builtin_flag_CXX=
15832 fi
15833
15834 if test yes = "$GXX"; then
15835 # Set up default GNU C++ configuration
15836
15837
15838
15839 # Check whether --with-gnu-ld was given.
15840 if test ${with_gnu_ld+y}
15841 then :
15842 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15843 else case e in #(
15844 e) with_gnu_ld=no ;;
15845 esac
15846 fi
15847
15848 ac_prog=ld
15849 if test yes = "$GCC"; then
15850 # Check if gcc -print-prog-name=ld gives a path.
15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15852 printf %s "checking for ld used by $CC... " >&6; }
15853 case $host in
15854 *-*-mingw*)
15855 # gcc leaves a trailing carriage return, which upsets mingw
15856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15857 *)
15858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15859 esac
15860 case $ac_prog in
15861 # Accept absolute paths.
15862 [\\/]* | ?:[\\/]*)
15863 re_direlt='/[^/][^/]*/\.\./'
15864 # Canonicalize the pathname of ld
15865 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15866 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15867 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15868 done
15869 test -z "$LD" && LD=$ac_prog
15870 ;;
15871 "")
15872 # If it fails, then pretend we aren't using GCC.
15873 ac_prog=ld
15874 ;;
15875 *)
15876 # If it is relative, then search for the first ld in PATH.
15877 with_gnu_ld=unknown
15878 ;;
15879 esac
15880 elif test yes = "$with_gnu_ld"; then
15881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15882 printf %s "checking for GNU ld... " >&6; }
15883 else
15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15885 printf %s "checking for non-GNU ld... " >&6; }
15886 fi
15887 if test ${lt_cv_path_LD+y}
15888 then :
15889 printf %s "(cached) " >&6
15890 else case e in #(
15891 e) if test -z "$LD"; then
15892 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15893 for ac_dir in $PATH; do
15894 IFS=$lt_save_ifs
15895 test -z "$ac_dir" && ac_dir=.
15896 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15897 lt_cv_path_LD=$ac_dir/$ac_prog
15898 # Check to see if the program is GNU ld. I'd rather use --version,
15899 # but apparently some variants of GNU ld only accept -v.
15900 # Break only if it was the GNU/non-GNU ld that we prefer.
15901 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15902 *GNU* | *'with BFD'*)
15903 test no != "$with_gnu_ld" && break
15904 ;;
15905 *)
15906 test yes != "$with_gnu_ld" && break
15907 ;;
15908 esac
15909 fi
15910 done
15911 IFS=$lt_save_ifs
15912 else
15913 lt_cv_path_LD=$LD # Let the user override the test with a path.
15914 fi ;;
15915 esac
15916 fi
15917
15918 LD=$lt_cv_path_LD
15919 if test -n "$LD"; then
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15921 printf "%s\n" "$LD" >&6; }
15922 else
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 printf "%s\n" "no" >&6; }
15925 fi
15926 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15928 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15929 if test ${lt_cv_prog_gnu_ld+y}
15930 then :
15931 printf %s "(cached) " >&6
15932 else case e in #(
15933 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
15934 case `$LD -v 2>&1 </dev/null` in
15935 *GNU* | *'with BFD'*)
15936 lt_cv_prog_gnu_ld=yes
15937 ;;
15938 *)
15939 lt_cv_prog_gnu_ld=no
15940 ;;
15941 esac ;;
15942 esac
15943 fi
15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15945 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15946 with_gnu_ld=$lt_cv_prog_gnu_ld
15947
15948
15949
15950
15951
15952
15953
15954 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15955 # archiving commands below assume that GNU ld is being used.
15956 if test yes = "$with_gnu_ld"; then
15957 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15958 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15959
15960 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15961 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15962
15963 # If archive_cmds runs LD, not CC, wlarc should be empty
15964 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15965 # investigate it a little bit more. (MM)
15966 wlarc='$wl'
15967
15968 # ancient GNU ld didn't support --whole-archive et. al.
15969 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15970 $GREP 'no-whole-archive' > /dev/null; then
15971 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15972 else
15973 whole_archive_flag_spec_CXX=
15974 fi
15975 else
15976 with_gnu_ld=no
15977 wlarc=
15978
15979 # A generic and very simple default shared library creation
15980 # command for GNU C++ for the case where it uses the native
15981 # linker, instead of GNU ld. If possible, this setting should
15982 # overridden to take advantage of the native linker features on
15983 # the platform it is being used on.
15984 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15985 fi
15986
15987 # Commands to make compiler produce verbose output that lists
15988 # what "hidden" libraries, object files and flags are used when
15989 # linking a shared library.
15990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15991
15992 else
15993 GXX=no
15994 with_gnu_ld=no
15995 wlarc=
15996 fi
15997
15998 # PORTME: fill in a description of your system's C++ link characteristics
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16000 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16001 ld_shlibs_CXX=yes
16002 case $host_os in
16003 aix3*)
16004 # FIXME: insert proper C++ library support
16005 ld_shlibs_CXX=no
16006 ;;
16007 aix[4-9]*)
16008 if test ia64 = "$host_cpu"; then
16009 # On IA64, the linker does run time linking by default, so we don't
16010 # have to do anything special.
16011 aix_use_runtimelinking=no
16012 exp_sym_flag='-Bexport'
16013 no_entry_flag=
16014 else
16015 aix_use_runtimelinking=no
16016
16017 # Test if we are trying to use run time linking or normal
16018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16019 # have runtime linking enabled, and use it for executables.
16020 # For shared libraries, we enable/disable runtime linking
16021 # depending on the kind of the shared library created -
16022 # when "with_aix_soname,aix_use_runtimelinking" is:
16023 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16024 # "aix,yes" lib.so shared, rtl:yes, for executables
16025 # lib.a static archive
16026 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16027 # lib.a(lib.so.V) shared, rtl:no, for executables
16028 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16029 # lib.a(lib.so.V) shared, rtl:no
16030 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16031 # lib.a static archive
16032 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16033 for ld_flag in $LDFLAGS; do
16034 case $ld_flag in
16035 *-brtl*)
16036 aix_use_runtimelinking=yes
16037 break
16038 ;;
16039 esac
16040 done
16041 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16042 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16043 # so we don't have lib.a shared libs to link our executables.
16044 # We have to force runtime linking in this case.
16045 aix_use_runtimelinking=yes
16046 LDFLAGS="$LDFLAGS -Wl,-brtl"
16047 fi
16048 ;;
16049 esac
16050
16051 exp_sym_flag='-bexport'
16052 no_entry_flag='-bnoentry'
16053 fi
16054
16055 # When large executables or shared objects are built, AIX ld can
16056 # have problems creating the table of contents. If linking a library
16057 # or program results in "error TOC overflow" add -mminimal-toc to
16058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16060
16061 archive_cmds_CXX=''
16062 hardcode_direct_CXX=yes
16063 hardcode_direct_absolute_CXX=yes
16064 hardcode_libdir_separator_CXX=':'
16065 link_all_deplibs_CXX=yes
16066 file_list_spec_CXX='$wl-f,'
16067 case $with_aix_soname,$aix_use_runtimelinking in
16068 aix,*) ;; # no import file
16069 svr4,* | *,yes) # use import file
16070 # The Import File defines what to hardcode.
16071 hardcode_direct_CXX=no
16072 hardcode_direct_absolute_CXX=no
16073 ;;
16074 esac
16075
16076 if test yes = "$GXX"; then
16077 case $host_os in aix4.[012]|aix4.[012].*)
16078 # We only want to do this on AIX 4.2 and lower, the check
16079 # below for broken collect2 doesn't work under 4.3+
16080 collect2name=`$CC -print-prog-name=collect2`
16081 if test -f "$collect2name" &&
16082 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16083 then
16084 # We have reworked collect2
16085 :
16086 else
16087 # We have old collect2
16088 hardcode_direct_CXX=unsupported
16089 # It fails to find uninstalled libraries when the uninstalled
16090 # path is not listed in the libpath. Setting hardcode_minus_L
16091 # to unsupported forces relinking
16092 hardcode_minus_L_CXX=yes
16093 hardcode_libdir_flag_spec_CXX='-L$libdir'
16094 hardcode_libdir_separator_CXX=
16095 fi
16096 esac
16097 shared_flag='-shared'
16098 if test yes = "$aix_use_runtimelinking"; then
16099 shared_flag=$shared_flag' $wl-G'
16100 fi
16101 # Need to ensure runtime linking is disabled for the traditional
16102 # shared library, or the linker may eventually find shared libraries
16103 # /with/ Import File - we do not want to mix them.
16104 shared_flag_aix='-shared'
16105 shared_flag_svr4='-shared $wl-G'
16106 else
16107 # not using gcc
16108 if test ia64 = "$host_cpu"; then
16109 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16110 # chokes on -Wl,-G. The following line is correct:
16111 shared_flag='-G'
16112 else
16113 if test yes = "$aix_use_runtimelinking"; then
16114 shared_flag='$wl-G'
16115 else
16116 shared_flag='$wl-bM:SRE'
16117 fi
16118 shared_flag_aix='$wl-bM:SRE'
16119 shared_flag_svr4='$wl-G'
16120 fi
16121 fi
16122
16123 export_dynamic_flag_spec_CXX='$wl-bexpall'
16124 # It seems that -bexpall does not export symbols beginning with
16125 # underscore (_), so it is better to generate a list of symbols to
16126 # export.
16127 always_export_symbols_CXX=yes
16128 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16129 # Warning - without using the other runtime loading flags (-brtl),
16130 # -berok will link without error, but may produce a broken library.
16131 # The "-G" linker flag allows undefined symbols.
16132 no_undefined_flag_CXX='-bernotok'
16133 # Determine the default libpath from the value encoded in an empty
16134 # executable.
16135 if test set = "${lt_cv_aix_libpath+set}"; then
16136 aix_libpath=$lt_cv_aix_libpath
16137 else
16138 if test ${lt_cv_aix_libpath__CXX+y}
16139 then :
16140 printf %s "(cached) " >&6
16141 else case e in #(
16142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144
16145 int
16146 main (void)
16147 {
16148
16149 ;
16150 return 0;
16151 }
16152 _ACEOF
16153 if ac_fn_cxx_try_link "$LINENO"
16154 then :
16155
16156 lt_aix_libpath_sed='
16157 /Import File Strings/,/^$/ {
16158 /^0/ {
16159 s/^0 *\([^ ]*\) *$/\1/
16160 p
16161 }
16162 }'
16163 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16164 # Check for a 64-bit object if we didn't find anything.
16165 if test -z "$lt_cv_aix_libpath__CXX"; then
16166 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16167 fi
16168 fi
16169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16170 conftest$ac_exeext conftest.$ac_ext
16171 if test -z "$lt_cv_aix_libpath__CXX"; then
16172 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16173 fi
16174 ;;
16175 esac
16176 fi
16177
16178 aix_libpath=$lt_cv_aix_libpath__CXX
16179 fi
16180
16181 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16182
16183 archive_expsym_cmds_CXX='$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
16184 else
16185 if test ia64 = "$host_cpu"; then
16186 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16187 allow_undefined_flag_CXX="-z nodefs"
16188 archive_expsym_cmds_CXX="\$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"
16189 else
16190 # Determine the default libpath from the value encoded in an
16191 # empty executable.
16192 if test set = "${lt_cv_aix_libpath+set}"; then
16193 aix_libpath=$lt_cv_aix_libpath
16194 else
16195 if test ${lt_cv_aix_libpath__CXX+y}
16196 then :
16197 printf %s "(cached) " >&6
16198 else case e in #(
16199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16201
16202 int
16203 main (void)
16204 {
16205
16206 ;
16207 return 0;
16208 }
16209 _ACEOF
16210 if ac_fn_cxx_try_link "$LINENO"
16211 then :
16212
16213 lt_aix_libpath_sed='
16214 /Import File Strings/,/^$/ {
16215 /^0/ {
16216 s/^0 *\([^ ]*\) *$/\1/
16217 p
16218 }
16219 }'
16220 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16221 # Check for a 64-bit object if we didn't find anything.
16222 if test -z "$lt_cv_aix_libpath__CXX"; then
16223 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16224 fi
16225 fi
16226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16227 conftest$ac_exeext conftest.$ac_ext
16228 if test -z "$lt_cv_aix_libpath__CXX"; then
16229 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16230 fi
16231 ;;
16232 esac
16233 fi
16234
16235 aix_libpath=$lt_cv_aix_libpath__CXX
16236 fi
16237
16238 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16239 # Warning - without using the other run time loading flags,
16240 # -berok will link without error, but may produce a broken library.
16241 no_undefined_flag_CXX=' $wl-bernotok'
16242 allow_undefined_flag_CXX=' $wl-berok'
16243 if test yes = "$with_gnu_ld"; then
16244 # We only use this code for GNU lds that support --whole-archive.
16245 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16246 else
16247 # Exported symbols can be pulled into shared objects from archives
16248 whole_archive_flag_spec_CXX='$convenience'
16249 fi
16250 archive_cmds_need_lc_CXX=yes
16251 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16252 # -brtl affects multiple linker settings, -berok does not and is overridden later
16253 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16254 if test svr4 != "$with_aix_soname"; then
16255 # This is similar to how AIX traditionally builds its shared
16256 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16257 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16258 fi
16259 if test aix != "$with_aix_soname"; then
16260 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
16261 else
16262 # used by -dlpreopen to get the symbols
16263 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16264 fi
16265 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16266 fi
16267 fi
16268 ;;
16269
16270 beos*)
16271 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16272 allow_undefined_flag_CXX=unsupported
16273 # Joseph Beckenbach <[email protected]> says some releases of gcc
16274 # support --undefined. This deserves some investigation. FIXME
16275 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16276 else
16277 ld_shlibs_CXX=no
16278 fi
16279 ;;
16280
16281 chorus*)
16282 case $cc_basename in
16283 *)
16284 # FIXME: insert proper C++ library support
16285 ld_shlibs_CXX=no
16286 ;;
16287 esac
16288 ;;
16289
16290 cygwin* | mingw* | pw32* | cegcc*)
16291 case $GXX,$cc_basename in
16292 ,cl* | no,cl* | ,icl* | no,icl*)
16293 # Native MSVC or ICC
16294 # hardcode_libdir_flag_spec is actually meaningless, as there is
16295 # no search path for DLLs.
16296 hardcode_libdir_flag_spec_CXX=' '
16297 allow_undefined_flag_CXX=unsupported
16298 always_export_symbols_CXX=yes
16299 file_list_spec_CXX='@'
16300 # Tell ltmain to make .lib files, not .a files.
16301 libext=lib
16302 # Tell ltmain to make .dll files, not .so files.
16303 shrext_cmds=.dll
16304 # FIXME: Setting linknames here is a bad hack.
16305 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16306 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16307 cp "$export_symbols" "$output_objdir/$soname.def";
16308 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16309 else
16310 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16311 fi~
16312 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16313 linknames='
16314 # The linker will not automatically build a static lib if we build a DLL.
16315 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16316 enable_shared_with_static_runtimes_CXX=yes
16317 # Don't use ranlib
16318 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16319 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16320 lt_tool_outputfile="@TOOL_OUTPUT@"~
16321 case $lt_outputfile in
16322 *.exe|*.EXE) ;;
16323 *)
16324 lt_outputfile=$lt_outputfile.exe
16325 lt_tool_outputfile=$lt_tool_outputfile.exe
16326 ;;
16327 esac~
16328 func_to_tool_file "$lt_outputfile"~
16329 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16330 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16331 $RM "$lt_outputfile.manifest";
16332 fi'
16333 ;;
16334 *)
16335 # g++
16336 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16337 # as there is no search path for DLLs.
16338 hardcode_libdir_flag_spec_CXX='-L$libdir'
16339 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16340 allow_undefined_flag_CXX=unsupported
16341 always_export_symbols_CXX=no
16342 enable_shared_with_static_runtimes_CXX=yes
16343
16344 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16345 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16346 # If the export-symbols file already is a .def file, use it as
16347 # is; otherwise, prepend EXPORTS...
16348 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16349 cp $export_symbols $output_objdir/$soname.def;
16350 else
16351 echo EXPORTS > $output_objdir/$soname.def;
16352 cat $export_symbols >> $output_objdir/$soname.def;
16353 fi~
16354 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16355 else
16356 ld_shlibs_CXX=no
16357 fi
16358 ;;
16359 esac
16360 ;;
16361 darwin* | rhapsody*)
16362
16363
16364 archive_cmds_need_lc_CXX=no
16365 hardcode_direct_CXX=no
16366 hardcode_automatic_CXX=yes
16367 hardcode_shlibpath_var_CXX=unsupported
16368 if test yes = "$lt_cv_ld_force_load"; then
16369 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16370
16371 else
16372 whole_archive_flag_spec_CXX=''
16373 fi
16374 link_all_deplibs_CXX=yes
16375 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16376 case $cc_basename in
16377 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16378 *) _lt_dar_can_shared=$GCC ;;
16379 esac
16380 if test yes = "$_lt_dar_can_shared"; then
16381 output_verbose_link_cmd=func_echo_all
16382 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16383 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16384 archive_expsym_cmds_CXX="$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"
16385 module_expsym_cmds_CXX="$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"
16386 if test yes != "$lt_cv_apple_cc_single_mod"; then
16387 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16388 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16389 fi
16390
16391 else
16392 ld_shlibs_CXX=no
16393 fi
16394
16395 ;;
16396
16397 os2*)
16398 hardcode_libdir_flag_spec_CXX='-L$libdir'
16399 hardcode_minus_L_CXX=yes
16400 allow_undefined_flag_CXX=unsupported
16401 shrext_cmds=.dll
16402 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16403 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16404 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16405 $ECHO EXPORTS >> $output_objdir/$libname.def~
16406 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16407 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16408 emximp -o $lib $output_objdir/$libname.def'
16409 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16410 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16411 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16412 $ECHO EXPORTS >> $output_objdir/$libname.def~
16413 prefix_cmds="$SED"~
16414 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16415 prefix_cmds="$prefix_cmds -e 1d";
16416 fi~
16417 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16418 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16419 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16420 emximp -o $lib $output_objdir/$libname.def'
16421 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16422 enable_shared_with_static_runtimes_CXX=yes
16423 file_list_spec_CXX='@'
16424 ;;
16425
16426 dgux*)
16427 case $cc_basename in
16428 ec++*)
16429 # FIXME: insert proper C++ library support
16430 ld_shlibs_CXX=no
16431 ;;
16432 ghcx*)
16433 # Green Hills C++ Compiler
16434 # FIXME: insert proper C++ library support
16435 ld_shlibs_CXX=no
16436 ;;
16437 *)
16438 # FIXME: insert proper C++ library support
16439 ld_shlibs_CXX=no
16440 ;;
16441 esac
16442 ;;
16443
16444 freebsd2.*)
16445 # C++ shared libraries reported to be fairly broken before
16446 # switch to ELF
16447 ld_shlibs_CXX=no
16448 ;;
16449
16450 freebsd-elf*)
16451 archive_cmds_need_lc_CXX=no
16452 ;;
16453
16454 freebsd* | dragonfly* | midnightbsd*)
16455 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16456 # conventions
16457 ld_shlibs_CXX=yes
16458 ;;
16459
16460 haiku*)
16461 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16462 link_all_deplibs_CXX=yes
16463 ;;
16464
16465 hpux9*)
16466 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16467 hardcode_libdir_separator_CXX=:
16468 export_dynamic_flag_spec_CXX='$wl-E'
16469 hardcode_direct_CXX=yes
16470 hardcode_minus_L_CXX=yes # Not in the search PATH,
16471 # but as the default
16472 # location of the library.
16473
16474 case $cc_basename in
16475 CC*)
16476 # FIXME: insert proper C++ library support
16477 ld_shlibs_CXX=no
16478 ;;
16479 aCC*)
16480 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16481 # Commands to make compiler produce verbose output that lists
16482 # what "hidden" libraries, object files and flags are used when
16483 # linking a shared library.
16484 #
16485 # There doesn't appear to be a way to prevent this compiler from
16486 # explicitly linking system object files so we need to strip them
16487 # from the output so that they don't get included in the library
16488 # dependencies.
16489 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16490 ;;
16491 *)
16492 if test yes = "$GXX"; then
16493 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16494 else
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16497 fi
16498 ;;
16499 esac
16500 ;;
16501
16502 hpux10*|hpux11*)
16503 if test no = "$with_gnu_ld"; then
16504 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16505 hardcode_libdir_separator_CXX=:
16506
16507 case $host_cpu in
16508 hppa*64*|ia64*)
16509 ;;
16510 *)
16511 export_dynamic_flag_spec_CXX='$wl-E'
16512 ;;
16513 esac
16514 fi
16515 case $host_cpu in
16516 hppa*64*|ia64*)
16517 hardcode_direct_CXX=no
16518 hardcode_shlibpath_var_CXX=no
16519 ;;
16520 *)
16521 hardcode_direct_CXX=yes
16522 hardcode_direct_absolute_CXX=yes
16523 hardcode_minus_L_CXX=yes # Not in the search PATH,
16524 # but as the default
16525 # location of the library.
16526 ;;
16527 esac
16528
16529 case $cc_basename in
16530 CC*)
16531 # FIXME: insert proper C++ library support
16532 ld_shlibs_CXX=no
16533 ;;
16534 aCC*)
16535 case $host_cpu in
16536 hppa*64*)
16537 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16538 ;;
16539 ia64*)
16540 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16541 ;;
16542 *)
16543 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16544 ;;
16545 esac
16546 # Commands to make compiler produce verbose output that lists
16547 # what "hidden" libraries, object files and flags are used when
16548 # linking a shared library.
16549 #
16550 # There doesn't appear to be a way to prevent this compiler from
16551 # explicitly linking system object files so we need to strip them
16552 # from the output so that they don't get included in the library
16553 # dependencies.
16554 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16555 ;;
16556 *)
16557 if test yes = "$GXX"; then
16558 if test no = "$with_gnu_ld"; then
16559 case $host_cpu in
16560 hppa*64*)
16561 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16562 ;;
16563 ia64*)
16564 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16565 ;;
16566 *)
16567 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16568 ;;
16569 esac
16570 fi
16571 else
16572 # FIXME: insert proper C++ library support
16573 ld_shlibs_CXX=no
16574 fi
16575 ;;
16576 esac
16577 ;;
16578
16579 interix[3-9]*)
16580 hardcode_direct_CXX=no
16581 hardcode_shlibpath_var_CXX=no
16582 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16583 export_dynamic_flag_spec_CXX='$wl-E'
16584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16585 # Instead, shared libraries are loaded at an image base (0x10000000 by
16586 # default) and relocated if they conflict, which is a slow very memory
16587 # consuming and fragmenting process. To avoid this, we pick a random,
16588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16590 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16591 archive_expsym_cmds_CXX='$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'
16592 ;;
16593 irix5* | irix6*)
16594 case $cc_basename in
16595 CC*)
16596 # SGI C++
16597 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16598
16599 # Archives containing C++ object files must be created using
16600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16601 # necessary to make sure instantiated templates are included
16602 # in the archive.
16603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16604 ;;
16605 *)
16606 if test yes = "$GXX"; then
16607 if test no = "$with_gnu_ld"; then
16608 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16609 else
16610 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16611 fi
16612 fi
16613 link_all_deplibs_CXX=yes
16614 ;;
16615 esac
16616 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16617 hardcode_libdir_separator_CXX=:
16618 inherit_rpath_CXX=yes
16619 ;;
16620
16621 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16622 case $cc_basename in
16623 KCC*)
16624 # Kuck and Associates, Inc. (KAI) C++ Compiler
16625
16626 # KCC will only create a shared library if the output file
16627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16628 # to its proper name (with version) after linking.
16629 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16630 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
16631 # Commands to make compiler produce verbose output that lists
16632 # what "hidden" libraries, object files and flags are used when
16633 # linking a shared library.
16634 #
16635 # There doesn't appear to be a way to prevent this compiler from
16636 # explicitly linking system object files so we need to strip them
16637 # from the output so that they don't get included in the library
16638 # dependencies.
16639 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16640
16641 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16642 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16643
16644 # Archives containing C++ object files must be created using
16645 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16646 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16647 ;;
16648 icpc* | ecpc* )
16649 # Intel C++
16650 with_gnu_ld=yes
16651 # version 8.0 and above of icpc choke on multiply defined symbols
16652 # if we add $predep_objects and $postdep_objects, however 7.1 and
16653 # earlier do not add the objects themselves.
16654 case `$CC -V 2>&1` in
16655 *"Version 7."*)
16656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16657 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16658 ;;
16659 *) # Version 8.0 or newer
16660 tmp_idyn=
16661 case $host_cpu in
16662 ia64*) tmp_idyn=' -i_dynamic';;
16663 esac
16664 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16665 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16666 ;;
16667 esac
16668 archive_cmds_need_lc_CXX=no
16669 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16670 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16671 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16672 ;;
16673 pgCC* | pgcpp*)
16674 # Portland Group C++ compiler
16675 case `$CC -V` in
16676 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16677 prelink_cmds_CXX='tpldir=Template.dir~
16678 rm -rf $tpldir~
16679 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16680 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16681 old_archive_cmds_CXX='tpldir=Template.dir~
16682 rm -rf $tpldir~
16683 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16684 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16685 $RANLIB $oldlib'
16686 archive_cmds_CXX='tpldir=Template.dir~
16687 rm -rf $tpldir~
16688 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16689 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16690 archive_expsym_cmds_CXX='tpldir=Template.dir~
16691 rm -rf $tpldir~
16692 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16693 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16694 ;;
16695 *) # Version 6 and above use weak symbols
16696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16697 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16698 ;;
16699 esac
16700
16701 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16702 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16703 whole_archive_flag_spec_CXX='$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'
16704 ;;
16705 cxx*)
16706 # Compaq C++
16707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16708 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
16709
16710 runpath_var=LD_RUN_PATH
16711 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16712 hardcode_libdir_separator_CXX=:
16713
16714 # Commands to make compiler produce verbose output that lists
16715 # what "hidden" libraries, object files and flags are used when
16716 # linking a shared library.
16717 #
16718 # There doesn't appear to be a way to prevent this compiler from
16719 # explicitly linking system object files so we need to strip them
16720 # from the output so that they don't get included in the library
16721 # dependencies.
16722 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16723 ;;
16724 xl* | mpixl* | bgxl*)
16725 # IBM XL 8.0 on PPC, with GNU ld
16726 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16727 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16728 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16729 if test yes = "$supports_anon_versioning"; then
16730 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16731 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16732 echo "local: *; };" >> $output_objdir/$libname.ver~
16733 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16734 fi
16735 ;;
16736 *)
16737 case `$CC -V 2>&1 | $SED 5q` in
16738 *Sun\ C*)
16739 # Sun C++ 5.9
16740 no_undefined_flag_CXX=' -zdefs'
16741 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16742 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16743 hardcode_libdir_flag_spec_CXX='-R$libdir'
16744 whole_archive_flag_spec_CXX='$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'
16745 compiler_needs_object_CXX=yes
16746
16747 # Not sure whether something based on
16748 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16749 # would be better.
16750 output_verbose_link_cmd='func_echo_all'
16751
16752 # Archives containing C++ object files must be created using
16753 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16754 # necessary to make sure instantiated templates are included
16755 # in the archive.
16756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16757 ;;
16758 esac
16759 ;;
16760 esac
16761 ;;
16762
16763 lynxos*)
16764 # FIXME: insert proper C++ library support
16765 ld_shlibs_CXX=no
16766 ;;
16767
16768 m88k*)
16769 # FIXME: insert proper C++ library support
16770 ld_shlibs_CXX=no
16771 ;;
16772
16773 mvs*)
16774 case $cc_basename in
16775 cxx*)
16776 # FIXME: insert proper C++ library support
16777 ld_shlibs_CXX=no
16778 ;;
16779 *)
16780 # FIXME: insert proper C++ library support
16781 ld_shlibs_CXX=no
16782 ;;
16783 esac
16784 ;;
16785
16786 netbsd*)
16787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16788 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16789 wlarc=
16790 hardcode_libdir_flag_spec_CXX='-R$libdir'
16791 hardcode_direct_CXX=yes
16792 hardcode_shlibpath_var_CXX=no
16793 fi
16794 # Workaround some broken pre-1.5 toolchains
16795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16796 ;;
16797
16798 *nto* | *qnx*)
16799 ld_shlibs_CXX=yes
16800 ;;
16801
16802 openbsd* | bitrig*)
16803 if test -f /usr/libexec/ld.so; then
16804 hardcode_direct_CXX=yes
16805 hardcode_shlibpath_var_CXX=no
16806 hardcode_direct_absolute_CXX=yes
16807 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16808 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16810 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16811 export_dynamic_flag_spec_CXX='$wl-E'
16812 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16813 fi
16814 output_verbose_link_cmd=func_echo_all
16815 else
16816 ld_shlibs_CXX=no
16817 fi
16818 ;;
16819
16820 osf3* | osf4* | osf5*)
16821 case $cc_basename in
16822 KCC*)
16823 # Kuck and Associates, Inc. (KAI) C++ Compiler
16824
16825 # KCC will only create a shared library if the output file
16826 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16827 # to its proper name (with version) after linking.
16828 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16829
16830 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16831 hardcode_libdir_separator_CXX=:
16832
16833 # Archives containing C++ object files must be created using
16834 # the KAI C++ compiler.
16835 case $host in
16836 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16837 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16838 esac
16839 ;;
16840 RCC*)
16841 # Rational C++ 2.4.1
16842 # FIXME: insert proper C++ library support
16843 ld_shlibs_CXX=no
16844 ;;
16845 cxx*)
16846 case $host in
16847 osf3*)
16848 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16849 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16850 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16851 ;;
16852 *)
16853 allow_undefined_flag_CXX=' -expect_unresolved \*'
16854 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16855 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16856 echo "-hidden">> $lib.exp~
16857 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
16858 $RM $lib.exp'
16859 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16860 ;;
16861 esac
16862
16863 hardcode_libdir_separator_CXX=:
16864
16865 # Commands to make compiler produce verbose output that lists
16866 # what "hidden" libraries, object files and flags are used when
16867 # linking a shared library.
16868 #
16869 # There doesn't appear to be a way to prevent this compiler from
16870 # explicitly linking system object files so we need to strip them
16871 # from the output so that they don't get included in the library
16872 # dependencies.
16873 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16874 ;;
16875 *)
16876 if test yes,no = "$GXX,$with_gnu_ld"; then
16877 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16878 case $host in
16879 osf3*)
16880 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
16881 ;;
16882 *)
16883 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
16884 ;;
16885 esac
16886
16887 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16888 hardcode_libdir_separator_CXX=:
16889
16890 # Commands to make compiler produce verbose output that lists
16891 # what "hidden" libraries, object files and flags are used when
16892 # linking a shared library.
16893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16894
16895 else
16896 # FIXME: insert proper C++ library support
16897 ld_shlibs_CXX=no
16898 fi
16899 ;;
16900 esac
16901 ;;
16902
16903 psos*)
16904 # FIXME: insert proper C++ library support
16905 ld_shlibs_CXX=no
16906 ;;
16907
16908 sunos4*)
16909 case $cc_basename in
16910 CC*)
16911 # Sun C++ 4.x
16912 # FIXME: insert proper C++ library support
16913 ld_shlibs_CXX=no
16914 ;;
16915 lcc*)
16916 # Lucid
16917 # FIXME: insert proper C++ library support
16918 ld_shlibs_CXX=no
16919 ;;
16920 *)
16921 # FIXME: insert proper C++ library support
16922 ld_shlibs_CXX=no
16923 ;;
16924 esac
16925 ;;
16926
16927 solaris*)
16928 case $cc_basename in
16929 CC* | sunCC*)
16930 # Sun C++ 4.2, 5.x and Centerline C++
16931 archive_cmds_need_lc_CXX=yes
16932 no_undefined_flag_CXX=' -zdefs'
16933 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16934 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16935 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16936
16937 hardcode_libdir_flag_spec_CXX='-R$libdir'
16938 hardcode_shlibpath_var_CXX=no
16939 case $host_os in
16940 solaris2.[0-5] | solaris2.[0-5].*) ;;
16941 *)
16942 # The compiler driver will combine and reorder linker options,
16943 # but understands '-z linker_flag'.
16944 # Supported since Solaris 2.6 (maybe 2.5.1?)
16945 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16946 ;;
16947 esac
16948 link_all_deplibs_CXX=yes
16949
16950 output_verbose_link_cmd='func_echo_all'
16951
16952 # Archives containing C++ object files must be created using
16953 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16954 # necessary to make sure instantiated templates are included
16955 # in the archive.
16956 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16957 ;;
16958 gcx*)
16959 # Green Hills C++ Compiler
16960 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16961
16962 # The C++ compiler must be used to create the archive.
16963 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16964 ;;
16965 *)
16966 # GNU C++ compiler with Solaris linker
16967 if test yes,no = "$GXX,$with_gnu_ld"; then
16968 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16969 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16970 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16971 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16972 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16973
16974 # Commands to make compiler produce verbose output that lists
16975 # what "hidden" libraries, object files and flags are used when
16976 # linking a shared library.
16977 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16978 else
16979 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16980 # platform.
16981 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16982 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16983 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16984
16985 # Commands to make compiler produce verbose output that lists
16986 # what "hidden" libraries, object files and flags are used when
16987 # linking a shared library.
16988 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16989 fi
16990
16991 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16992 case $host_os in
16993 solaris2.[0-5] | solaris2.[0-5].*) ;;
16994 *)
16995 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16996 ;;
16997 esac
16998 fi
16999 ;;
17000 esac
17001 ;;
17002
17003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17004 no_undefined_flag_CXX='$wl-z,text'
17005 archive_cmds_need_lc_CXX=no
17006 hardcode_shlibpath_var_CXX=no
17007 runpath_var='LD_RUN_PATH'
17008
17009 case $cc_basename in
17010 CC*)
17011 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17012 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17013 ;;
17014 *)
17015 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17016 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17017 ;;
17018 esac
17019 ;;
17020
17021 sysv5* | sco3.2v5* | sco5v6*)
17022 # Note: We CANNOT use -z defs as we might desire, because we do not
17023 # link with -lc, and that would cause any symbols used from libc to
17024 # always be unresolved, which means just about no library would
17025 # ever link correctly. If we're not using GNU ld we use -z text
17026 # though, which does catch some bad symbols but isn't as heavy-handed
17027 # as -z defs.
17028 no_undefined_flag_CXX='$wl-z,text'
17029 allow_undefined_flag_CXX='$wl-z,nodefs'
17030 archive_cmds_need_lc_CXX=no
17031 hardcode_shlibpath_var_CXX=no
17032 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17033 hardcode_libdir_separator_CXX=':'
17034 link_all_deplibs_CXX=yes
17035 export_dynamic_flag_spec_CXX='$wl-Bexport'
17036 runpath_var='LD_RUN_PATH'
17037
17038 case $cc_basename in
17039 CC*)
17040 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17041 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17042 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17043 '"$old_archive_cmds_CXX"
17044 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17045 '"$reload_cmds_CXX"
17046 ;;
17047 *)
17048 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17049 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17050 ;;
17051 esac
17052 ;;
17053
17054 tandem*)
17055 case $cc_basename in
17056 NCC*)
17057 # NonStop-UX NCC 3.20
17058 # FIXME: insert proper C++ library support
17059 ld_shlibs_CXX=no
17060 ;;
17061 *)
17062 # FIXME: insert proper C++ library support
17063 ld_shlibs_CXX=no
17064 ;;
17065 esac
17066 ;;
17067
17068 vxworks*)
17069 # FIXME: insert proper C++ library support
17070 ld_shlibs_CXX=no
17071 ;;
17072
17073 *)
17074 # FIXME: insert proper C++ library support
17075 ld_shlibs_CXX=no
17076 ;;
17077 esac
17078
17079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17080 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17081 test no = "$ld_shlibs_CXX" && can_build_shared=no
17082
17083 GCC_CXX=$GXX
17084 LD_CXX=$LD
17085
17086 ## CAVEAT EMPTOR:
17087 ## There is no encapsulation within the following macros, do not change
17088 ## the running order or otherwise move them around unless you know exactly
17089 ## what you are doing...
17090 # Dependencies to place before and after the object being linked:
17091 predep_objects_CXX=
17092 postdep_objects_CXX=
17093 predeps_CXX=
17094 postdeps_CXX=
17095 compiler_lib_search_path_CXX=
17096
17097 cat > conftest.$ac_ext <<_LT_EOF
17098 class Foo
17099 {
17100 public:
17101 Foo (void) { a = 0; }
17102 private:
17103 int a;
17104 };
17105 _LT_EOF
17106
17107
17108 _lt_libdeps_save_CFLAGS=$CFLAGS
17109 case "$CC $CFLAGS " in #(
17110 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17111 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17112 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17113 esac
17114
17115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17116 (eval $ac_compile) 2>&5
17117 ac_status=$?
17118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17119 test $ac_status = 0; }; then
17120 # Parse the compiler output and extract the necessary
17121 # objects, libraries and library flags.
17122
17123 # Sentinel used to keep track of whether or not we are before
17124 # the conftest object file.
17125 pre_test_object_deps_done=no
17126
17127 for p in `eval "$output_verbose_link_cmd"`; do
17128 case $prev$p in
17129
17130 -L* | -R* | -l*)
17131 # Some compilers place space between "-{L,R}" and the path.
17132 # Remove the space.
17133 if test x-L = "$p" ||
17134 test x-R = "$p"; then
17135 prev=$p
17136 continue
17137 fi
17138
17139 # Expand the sysroot to ease extracting the directories later.
17140 if test -z "$prev"; then
17141 case $p in
17142 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17143 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17144 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17145 esac
17146 fi
17147 case $p in
17148 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17149 esac
17150 if test no = "$pre_test_object_deps_done"; then
17151 case $prev in
17152 -L | -R)
17153 # Internal compiler library paths should come after those
17154 # provided the user. The postdeps already come after the
17155 # user supplied libs so there is no need to process them.
17156 if test -z "$compiler_lib_search_path_CXX"; then
17157 compiler_lib_search_path_CXX=$prev$p
17158 else
17159 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17160 fi
17161 ;;
17162 # The "-l" case would never come before the object being
17163 # linked, so don't bother handling this case.
17164 esac
17165 else
17166 if test -z "$postdeps_CXX"; then
17167 postdeps_CXX=$prev$p
17168 else
17169 postdeps_CXX="${postdeps_CXX} $prev$p"
17170 fi
17171 fi
17172 prev=
17173 ;;
17174
17175 *.lto.$objext) ;; # Ignore GCC LTO objects
17176 *.$objext)
17177 # This assumes that the test object file only shows up
17178 # once in the compiler output.
17179 if test "$p" = "conftest.$objext"; then
17180 pre_test_object_deps_done=yes
17181 continue
17182 fi
17183
17184 if test no = "$pre_test_object_deps_done"; then
17185 if test -z "$predep_objects_CXX"; then
17186 predep_objects_CXX=$p
17187 else
17188 predep_objects_CXX="$predep_objects_CXX $p"
17189 fi
17190 else
17191 if test -z "$postdep_objects_CXX"; then
17192 postdep_objects_CXX=$p
17193 else
17194 postdep_objects_CXX="$postdep_objects_CXX $p"
17195 fi
17196 fi
17197 ;;
17198
17199 *) ;; # Ignore the rest.
17200
17201 esac
17202 done
17203
17204 # Clean up.
17205 rm -f a.out a.exe
17206 else
17207 echo "libtool.m4: error: problem compiling CXX test program"
17208 fi
17209
17210 $RM -f confest.$objext
17211 CFLAGS=$_lt_libdeps_save_CFLAGS
17212
17213 # PORTME: override above test on systems where it is broken
17214 case $host_os in
17215 interix[3-9]*)
17216 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17217 # hack all around it, let's just trust "g++" to DTRT.
17218 predep_objects_CXX=
17219 postdep_objects_CXX=
17220 postdeps_CXX=
17221 ;;
17222 esac
17223
17224
17225 case " $postdeps_CXX " in
17226 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17227 esac
17228 compiler_lib_search_dirs_CXX=
17229 if test -n "${compiler_lib_search_path_CXX}"; then
17230 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17231 fi
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263 lt_prog_compiler_wl_CXX=
17264 lt_prog_compiler_pic_CXX=
17265 lt_prog_compiler_static_CXX=
17266
17267
17268 # C++ specific cases for pic, static, wl, etc.
17269 if test yes = "$GXX"; then
17270 lt_prog_compiler_wl_CXX='-Wl,'
17271 lt_prog_compiler_static_CXX='-static'
17272
17273 case $host_os in
17274 aix*)
17275 # All AIX code is PIC.
17276 if test ia64 = "$host_cpu"; then
17277 # AIX 5 now supports IA64 processor
17278 lt_prog_compiler_static_CXX='-Bstatic'
17279 fi
17280 lt_prog_compiler_pic_CXX='-fPIC'
17281 ;;
17282
17283 amigaos*)
17284 case $host_cpu in
17285 powerpc)
17286 # see comment about AmigaOS4 .so support
17287 lt_prog_compiler_pic_CXX='-fPIC'
17288 ;;
17289 m68k)
17290 # FIXME: we need at least 68020 code to build shared libraries, but
17291 # adding the '-m68020' flag to GCC prevents building anything better,
17292 # like '-m68040'.
17293 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17294 ;;
17295 esac
17296 ;;
17297
17298 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17299 # PIC is the default for these OSes.
17300 ;;
17301 mingw* | cygwin* | os2* | pw32* | cegcc*)
17302 # This hack is so that the source file can tell whether it is being
17303 # built for inclusion in a dll (and should export symbols for example).
17304 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17305 # (--disable-auto-import) libraries
17306 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17307 case $host_os in
17308 os2*)
17309 lt_prog_compiler_static_CXX='$wl-static'
17310 ;;
17311 esac
17312 ;;
17313 darwin* | rhapsody*)
17314 # PIC is the default on this platform
17315 # Common symbols not allowed in MH_DYLIB files
17316 lt_prog_compiler_pic_CXX='-fno-common'
17317 ;;
17318 *djgpp*)
17319 # DJGPP does not support shared libraries at all
17320 lt_prog_compiler_pic_CXX=
17321 ;;
17322 haiku*)
17323 # PIC is the default for Haiku.
17324 # The "-static" flag exists, but is broken.
17325 lt_prog_compiler_static_CXX=
17326 ;;
17327 interix[3-9]*)
17328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17329 # Instead, we relocate shared libraries at runtime.
17330 ;;
17331 sysv4*MP*)
17332 if test -d /usr/nec; then
17333 lt_prog_compiler_pic_CXX=-Kconform_pic
17334 fi
17335 ;;
17336 hpux*)
17337 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17338 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17339 # sets the default TLS model and affects inlining.
17340 case $host_cpu in
17341 hppa*64*)
17342 ;;
17343 *)
17344 lt_prog_compiler_pic_CXX='-fPIC'
17345 ;;
17346 esac
17347 ;;
17348 *qnx* | *nto*)
17349 # QNX uses GNU C++, but need to define -shared option too, otherwise
17350 # it will coredump.
17351 lt_prog_compiler_pic_CXX='-fPIC -shared'
17352 ;;
17353 *)
17354 lt_prog_compiler_pic_CXX='-fPIC'
17355 ;;
17356 esac
17357 else
17358 case $host_os in
17359 aix[4-9]*)
17360 # All AIX code is PIC.
17361 if test ia64 = "$host_cpu"; then
17362 # AIX 5 now supports IA64 processor
17363 lt_prog_compiler_static_CXX='-Bstatic'
17364 else
17365 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17366 fi
17367 ;;
17368 chorus*)
17369 case $cc_basename in
17370 cxch68*)
17371 # Green Hills C++ Compiler
17372 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17373 ;;
17374 esac
17375 ;;
17376 mingw* | cygwin* | os2* | pw32* | cegcc*)
17377 # This hack is so that the source file can tell whether it is being
17378 # built for inclusion in a dll (and should export symbols for example).
17379 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17380 ;;
17381 dgux*)
17382 case $cc_basename in
17383 ec++*)
17384 lt_prog_compiler_pic_CXX='-KPIC'
17385 ;;
17386 ghcx*)
17387 # Green Hills C++ Compiler
17388 lt_prog_compiler_pic_CXX='-pic'
17389 ;;
17390 *)
17391 ;;
17392 esac
17393 ;;
17394 freebsd* | dragonfly* | midnightbsd*)
17395 # FreeBSD uses GNU C++
17396 ;;
17397 hpux9* | hpux10* | hpux11*)
17398 case $cc_basename in
17399 CC*)
17400 lt_prog_compiler_wl_CXX='-Wl,'
17401 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17402 if test ia64 != "$host_cpu"; then
17403 lt_prog_compiler_pic_CXX='+Z'
17404 fi
17405 ;;
17406 aCC*)
17407 lt_prog_compiler_wl_CXX='-Wl,'
17408 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17409 case $host_cpu in
17410 hppa*64*|ia64*)
17411 # +Z the default
17412 ;;
17413 *)
17414 lt_prog_compiler_pic_CXX='+Z'
17415 ;;
17416 esac
17417 ;;
17418 *)
17419 ;;
17420 esac
17421 ;;
17422 interix*)
17423 # This is c89, which is MS Visual C++ (no shared libs)
17424 # Anyone wants to do a port?
17425 ;;
17426 irix5* | irix6* | nonstopux*)
17427 case $cc_basename in
17428 CC*)
17429 lt_prog_compiler_wl_CXX='-Wl,'
17430 lt_prog_compiler_static_CXX='-non_shared'
17431 # CC pic flag -KPIC is the default.
17432 ;;
17433 *)
17434 ;;
17435 esac
17436 ;;
17437 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17438 case $cc_basename in
17439 KCC*)
17440 # KAI C++ Compiler
17441 lt_prog_compiler_wl_CXX='--backend -Wl,'
17442 lt_prog_compiler_pic_CXX='-fPIC'
17443 ;;
17444 ecpc* )
17445 # old Intel C++ for x86_64, which still supported -KPIC.
17446 lt_prog_compiler_wl_CXX='-Wl,'
17447 lt_prog_compiler_pic_CXX='-KPIC'
17448 lt_prog_compiler_static_CXX='-static'
17449 ;;
17450 icpc* )
17451 # Intel C++, used to be incompatible with GCC.
17452 # ICC 10 doesn't accept -KPIC any more.
17453 lt_prog_compiler_wl_CXX='-Wl,'
17454 lt_prog_compiler_pic_CXX='-fPIC'
17455 lt_prog_compiler_static_CXX='-static'
17456 ;;
17457 pgCC* | pgcpp*)
17458 # Portland Group C++ compiler
17459 lt_prog_compiler_wl_CXX='-Wl,'
17460 lt_prog_compiler_pic_CXX='-fpic'
17461 lt_prog_compiler_static_CXX='-Bstatic'
17462 ;;
17463 cxx*)
17464 # Compaq C++
17465 # Make sure the PIC flag is empty. It appears that all Alpha
17466 # Linux and Compaq Tru64 Unix objects are PIC.
17467 lt_prog_compiler_pic_CXX=
17468 lt_prog_compiler_static_CXX='-non_shared'
17469 ;;
17470 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17471 # IBM XL 8.0, 9.0 on PPC and BlueGene
17472 lt_prog_compiler_wl_CXX='-Wl,'
17473 lt_prog_compiler_pic_CXX='-qpic'
17474 lt_prog_compiler_static_CXX='-qstaticlink'
17475 ;;
17476 *)
17477 case `$CC -V 2>&1 | $SED 5q` in
17478 *Sun\ C*)
17479 # Sun C++ 5.9
17480 lt_prog_compiler_pic_CXX='-KPIC'
17481 lt_prog_compiler_static_CXX='-Bstatic'
17482 lt_prog_compiler_wl_CXX='-Qoption ld '
17483 ;;
17484 esac
17485 ;;
17486 esac
17487 ;;
17488 lynxos*)
17489 ;;
17490 m88k*)
17491 ;;
17492 mvs*)
17493 case $cc_basename in
17494 cxx*)
17495 lt_prog_compiler_pic_CXX='-W c,exportall'
17496 ;;
17497 *)
17498 ;;
17499 esac
17500 ;;
17501 netbsd* | netbsdelf*-gnu)
17502 ;;
17503 *qnx* | *nto*)
17504 # QNX uses GNU C++, but need to define -shared option too, otherwise
17505 # it will coredump.
17506 lt_prog_compiler_pic_CXX='-fPIC -shared'
17507 ;;
17508 osf3* | osf4* | osf5*)
17509 case $cc_basename in
17510 KCC*)
17511 lt_prog_compiler_wl_CXX='--backend -Wl,'
17512 ;;
17513 RCC*)
17514 # Rational C++ 2.4.1
17515 lt_prog_compiler_pic_CXX='-pic'
17516 ;;
17517 cxx*)
17518 # Digital/Compaq C++
17519 lt_prog_compiler_wl_CXX='-Wl,'
17520 # Make sure the PIC flag is empty. It appears that all Alpha
17521 # Linux and Compaq Tru64 Unix objects are PIC.
17522 lt_prog_compiler_pic_CXX=
17523 lt_prog_compiler_static_CXX='-non_shared'
17524 ;;
17525 *)
17526 ;;
17527 esac
17528 ;;
17529 psos*)
17530 ;;
17531 solaris*)
17532 case $cc_basename in
17533 CC* | sunCC*)
17534 # Sun C++ 4.2, 5.x and Centerline C++
17535 lt_prog_compiler_pic_CXX='-KPIC'
17536 lt_prog_compiler_static_CXX='-Bstatic'
17537 lt_prog_compiler_wl_CXX='-Qoption ld '
17538 ;;
17539 gcx*)
17540 # Green Hills C++ Compiler
17541 lt_prog_compiler_pic_CXX='-PIC'
17542 ;;
17543 *)
17544 ;;
17545 esac
17546 ;;
17547 sunos4*)
17548 case $cc_basename in
17549 CC*)
17550 # Sun C++ 4.x
17551 lt_prog_compiler_pic_CXX='-pic'
17552 lt_prog_compiler_static_CXX='-Bstatic'
17553 ;;
17554 lcc*)
17555 # Lucid
17556 lt_prog_compiler_pic_CXX='-pic'
17557 ;;
17558 *)
17559 ;;
17560 esac
17561 ;;
17562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17563 case $cc_basename in
17564 CC*)
17565 lt_prog_compiler_wl_CXX='-Wl,'
17566 lt_prog_compiler_pic_CXX='-KPIC'
17567 lt_prog_compiler_static_CXX='-Bstatic'
17568 ;;
17569 esac
17570 ;;
17571 tandem*)
17572 case $cc_basename in
17573 NCC*)
17574 # NonStop-UX NCC 3.20
17575 lt_prog_compiler_pic_CXX='-KPIC'
17576 ;;
17577 *)
17578 ;;
17579 esac
17580 ;;
17581 vxworks*)
17582 ;;
17583 *)
17584 lt_prog_compiler_can_build_shared_CXX=no
17585 ;;
17586 esac
17587 fi
17588
17589 case $host_os in
17590 # For platforms that do not support PIC, -DPIC is meaningless:
17591 *djgpp*)
17592 lt_prog_compiler_pic_CXX=
17593 ;;
17594 *)
17595 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17596 ;;
17597 esac
17598
17599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17600 printf %s "checking for $compiler option to produce PIC... " >&6; }
17601 if test ${lt_cv_prog_compiler_pic_CXX+y}
17602 then :
17603 printf %s "(cached) " >&6
17604 else case e in #(
17605 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
17606 esac
17607 fi
17608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17609 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17610 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17611
17612 #
17613 # Check to make sure the PIC flag actually works.
17614 #
17615 if test -n "$lt_prog_compiler_pic_CXX"; then
17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17617 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17618 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17619 then :
17620 printf %s "(cached) " >&6
17621 else case e in #(
17622 e) lt_cv_prog_compiler_pic_works_CXX=no
17623 ac_outfile=conftest.$ac_objext
17624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17625 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17626 # Insert the option either (1) after the last *FLAGS variable, or
17627 # (2) before a word containing "conftest.", or (3) at the end.
17628 # Note that $ac_compile itself does not contain backslashes and begins
17629 # with a dollar sign (not a hyphen), so the echo should work correctly.
17630 # The option is referenced via a variable to avoid confusing sed.
17631 lt_compile=`echo "$ac_compile" | $SED \
17632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17634 -e 's:$: $lt_compiler_flag:'`
17635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17636 (eval "$lt_compile" 2>conftest.err)
17637 ac_status=$?
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 if (exit $ac_status) && test -s "$ac_outfile"; then
17641 # The compiler can only warn and ignore the option if not recognized
17642 # So say no if there are warnings other than the usual output.
17643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17646 lt_cv_prog_compiler_pic_works_CXX=yes
17647 fi
17648 fi
17649 $RM conftest*
17650 ;;
17651 esac
17652 fi
17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17654 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17655
17656 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17657 case $lt_prog_compiler_pic_CXX in
17658 "" | " "*) ;;
17659 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17660 esac
17661 else
17662 lt_prog_compiler_pic_CXX=
17663 lt_prog_compiler_can_build_shared_CXX=no
17664 fi
17665
17666 fi
17667
17668
17669
17670
17671
17672 #
17673 # Check to make sure the static flag actually works.
17674 #
17675 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17677 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17678 if test ${lt_cv_prog_compiler_static_works_CXX+y}
17679 then :
17680 printf %s "(cached) " >&6
17681 else case e in #(
17682 e) lt_cv_prog_compiler_static_works_CXX=no
17683 save_LDFLAGS=$LDFLAGS
17684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17687 # The linker can only warn and ignore the option if not recognized
17688 # So say no if there are warnings
17689 if test -s conftest.err; then
17690 # Append any errors to the config.log.
17691 cat conftest.err 1>&5
17692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17694 if diff conftest.exp conftest.er2 >/dev/null; then
17695 lt_cv_prog_compiler_static_works_CXX=yes
17696 fi
17697 else
17698 lt_cv_prog_compiler_static_works_CXX=yes
17699 fi
17700 fi
17701 $RM -r conftest*
17702 LDFLAGS=$save_LDFLAGS
17703 ;;
17704 esac
17705 fi
17706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17707 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17708
17709 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17710 :
17711 else
17712 lt_prog_compiler_static_CXX=
17713 fi
17714
17715
17716
17717
17718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17719 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17720 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17721 then :
17722 printf %s "(cached) " >&6
17723 else case e in #(
17724 e) lt_cv_prog_compiler_c_o_CXX=no
17725 $RM -r conftest 2>/dev/null
17726 mkdir conftest
17727 cd conftest
17728 mkdir out
17729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17730
17731 lt_compiler_flag="-o out/conftest2.$ac_objext"
17732 # Insert the option either (1) after the last *FLAGS variable, or
17733 # (2) before a word containing "conftest.", or (3) at the end.
17734 # Note that $ac_compile itself does not contain backslashes and begins
17735 # with a dollar sign (not a hyphen), so the echo should work correctly.
17736 lt_compile=`echo "$ac_compile" | $SED \
17737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17739 -e 's:$: $lt_compiler_flag:'`
17740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17741 (eval "$lt_compile" 2>out/conftest.err)
17742 ac_status=$?
17743 cat out/conftest.err >&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17746 then
17747 # The compiler can only warn and ignore the option if not recognized
17748 # So say no if there are warnings
17749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17752 lt_cv_prog_compiler_c_o_CXX=yes
17753 fi
17754 fi
17755 chmod u+w . 2>&5
17756 $RM conftest*
17757 # SGI C++ compiler will create directory out/ii_files/ for
17758 # template instantiation
17759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17760 $RM out/* && rmdir out
17761 cd ..
17762 $RM -r conftest
17763 $RM conftest*
17764 ;;
17765 esac
17766 fi
17767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17768 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17769
17770
17771
17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17773 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17774 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17775 then :
17776 printf %s "(cached) " >&6
17777 else case e in #(
17778 e) lt_cv_prog_compiler_c_o_CXX=no
17779 $RM -r conftest 2>/dev/null
17780 mkdir conftest
17781 cd conftest
17782 mkdir out
17783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17784
17785 lt_compiler_flag="-o out/conftest2.$ac_objext"
17786 # Insert the option either (1) after the last *FLAGS variable, or
17787 # (2) before a word containing "conftest.", or (3) at the end.
17788 # Note that $ac_compile itself does not contain backslashes and begins
17789 # with a dollar sign (not a hyphen), so the echo should work correctly.
17790 lt_compile=`echo "$ac_compile" | $SED \
17791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17793 -e 's:$: $lt_compiler_flag:'`
17794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17795 (eval "$lt_compile" 2>out/conftest.err)
17796 ac_status=$?
17797 cat out/conftest.err >&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17800 then
17801 # The compiler can only warn and ignore the option if not recognized
17802 # So say no if there are warnings
17803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17806 lt_cv_prog_compiler_c_o_CXX=yes
17807 fi
17808 fi
17809 chmod u+w . 2>&5
17810 $RM conftest*
17811 # SGI C++ compiler will create directory out/ii_files/ for
17812 # template instantiation
17813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17814 $RM out/* && rmdir out
17815 cd ..
17816 $RM -r conftest
17817 $RM conftest*
17818 ;;
17819 esac
17820 fi
17821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17822 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17823
17824
17825
17826
17827 hard_links=nottested
17828 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17829 # do not overwrite the value of need_locks provided by the user
17830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17831 printf %s "checking if we can lock with hard links... " >&6; }
17832 hard_links=yes
17833 $RM conftest*
17834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17835 touch conftest.a
17836 ln conftest.a conftest.b 2>&5 || hard_links=no
17837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17839 printf "%s\n" "$hard_links" >&6; }
17840 if test no = "$hard_links"; then
17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17842 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17843 need_locks=warn
17844 fi
17845 else
17846 need_locks=no
17847 fi
17848
17849
17850
17851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17852 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17853
17854 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17855 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17856 case $host_os in
17857 aix[4-9]*)
17858 # If we're using GNU nm, then we don't want the "-C" option.
17859 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17860 # Without the "-l" option, or with the "-B" option, AIX nm treats
17861 # weak defined symbols like other global defined symbols, whereas
17862 # GNU nm marks them as "W".
17863 # While the 'weak' keyword is ignored in the Export File, we need
17864 # it in the Import File for the 'aix-soname' feature, so we have
17865 # to replace the "-B" option with "-P" for AIX nm.
17866 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17867 export_symbols_cmds_CXX='$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'
17868 else
17869 export_symbols_cmds_CXX='`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'
17870 fi
17871 ;;
17872 pw32*)
17873 export_symbols_cmds_CXX=$ltdll_cmds
17874 ;;
17875 cygwin* | mingw* | cegcc*)
17876 case $cc_basename in
17877 cl* | icl*)
17878 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17879 ;;
17880 *)
17881 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17882 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17883 ;;
17884 esac
17885 ;;
17886 linux* | k*bsd*-gnu | gnu*)
17887 link_all_deplibs_CXX=no
17888 ;;
17889 *)
17890 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17891 ;;
17892 esac
17893
17894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17895 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17896 test no = "$ld_shlibs_CXX" && can_build_shared=no
17897
17898 with_gnu_ld_CXX=$with_gnu_ld
17899
17900
17901
17902
17903
17904
17905 #
17906 # Do we need to explicitly link libc?
17907 #
17908 case "x$archive_cmds_need_lc_CXX" in
17909 x|xyes)
17910 # Assume -lc should be added
17911 archive_cmds_need_lc_CXX=yes
17912
17913 if test yes,yes = "$GCC,$enable_shared"; then
17914 case $archive_cmds_CXX in
17915 *'~'*)
17916 # FIXME: we may have to deal with multi-command sequences.
17917 ;;
17918 '$CC '*)
17919 # Test whether the compiler implicitly links with -lc since on some
17920 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17921 # to ld, don't add -lc before -lgcc.
17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17923 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17924 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17925 then :
17926 printf %s "(cached) " >&6
17927 else case e in #(
17928 e) $RM conftest*
17929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17930
17931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17932 (eval $ac_compile) 2>&5
17933 ac_status=$?
17934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17935 test $ac_status = 0; } 2>conftest.err; then
17936 soname=conftest
17937 lib=conftest
17938 libobjs=conftest.$ac_objext
17939 deplibs=
17940 wl=$lt_prog_compiler_wl_CXX
17941 pic_flag=$lt_prog_compiler_pic_CXX
17942 compiler_flags=-v
17943 linker_flags=-v
17944 verstring=
17945 output_objdir=.
17946 libname=conftest
17947 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17948 allow_undefined_flag_CXX=
17949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17950 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17951 ac_status=$?
17952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17953 test $ac_status = 0; }
17954 then
17955 lt_cv_archive_cmds_need_lc_CXX=no
17956 else
17957 lt_cv_archive_cmds_need_lc_CXX=yes
17958 fi
17959 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17960 else
17961 cat conftest.err 1>&5
17962 fi
17963 $RM conftest*
17964 ;;
17965 esac
17966 fi
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17968 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17969 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17970 ;;
17971 esac
17972 fi
17973 ;;
17974 esac
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18038 printf %s "checking dynamic linker characteristics... " >&6; }
18039
18040 library_names_spec=
18041 libname_spec='lib$name'
18042 soname_spec=
18043 shrext_cmds=.so
18044 postinstall_cmds=
18045 postuninstall_cmds=
18046 finish_cmds=
18047 finish_eval=
18048 shlibpath_var=
18049 shlibpath_overrides_runpath=unknown
18050 version_type=none
18051 dynamic_linker="$host_os ld.so"
18052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18053 need_lib_prefix=unknown
18054 hardcode_into_libs=no
18055
18056 # when you set need_version to no, make sure it does not cause -set_version
18057 # flags to be left without arguments
18058 need_version=unknown
18059
18060
18061
18062 case $host_os in
18063 aix3*)
18064 version_type=linux # correct to gnu/linux during the next big refactor
18065 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18066 shlibpath_var=LIBPATH
18067
18068 # AIX 3 has no versioning support, so we append a major version to the name.
18069 soname_spec='$libname$release$shared_ext$major'
18070 ;;
18071
18072 aix[4-9]*)
18073 version_type=linux # correct to gnu/linux during the next big refactor
18074 need_lib_prefix=no
18075 need_version=no
18076 hardcode_into_libs=yes
18077 if test ia64 = "$host_cpu"; then
18078 # AIX 5 supports IA64
18079 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18080 shlibpath_var=LD_LIBRARY_PATH
18081 else
18082 # With GCC up to 2.95.x, collect2 would create an import file
18083 # for dependence libraries. The import file would start with
18084 # the line '#! .'. This would cause the generated library to
18085 # depend on '.', always an invalid library. This was fixed in
18086 # development snapshots of GCC prior to 3.0.
18087 case $host_os in
18088 aix4 | aix4.[01] | aix4.[01].*)
18089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18090 echo ' yes '
18091 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18092 :
18093 else
18094 can_build_shared=no
18095 fi
18096 ;;
18097 esac
18098 # Using Import Files as archive members, it is possible to support
18099 # filename-based versioning of shared library archives on AIX. While
18100 # this would work for both with and without runtime linking, it will
18101 # prevent static linking of such archives. So we do filename-based
18102 # shared library versioning with .so extension only, which is used
18103 # when both runtime linking and shared linking is enabled.
18104 # Unfortunately, runtime linking may impact performance, so we do
18105 # not want this to be the default eventually. Also, we use the
18106 # versioned .so libs for executables only if there is the -brtl
18107 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18108 # To allow for filename-based versioning support, we need to create
18109 # libNAME.so.V as an archive file, containing:
18110 # *) an Import File, referring to the versioned filename of the
18111 # archive as well as the shared archive member, telling the
18112 # bitwidth (32 or 64) of that shared object, and providing the
18113 # list of exported symbols of that shared object, eventually
18114 # decorated with the 'weak' keyword
18115 # *) the shared object with the F_LOADONLY flag set, to really avoid
18116 # it being seen by the linker.
18117 # At run time we better use the real file rather than another symlink,
18118 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18119
18120 case $with_aix_soname,$aix_use_runtimelinking in
18121 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18122 # soname into executable. Probably we can add versioning support to
18123 # collect2, so additional links can be useful in future.
18124 aix,yes) # traditional libtool
18125 dynamic_linker='AIX unversionable lib.so'
18126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18127 # instead of lib<name>.a to let people know that these are not
18128 # typical AIX shared libraries.
18129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18130 ;;
18131 aix,no) # traditional AIX only
18132 dynamic_linker='AIX lib.a(lib.so.V)'
18133 # We preserve .a as extension for shared libraries through AIX4.2
18134 # and later when we are not doing run time linking.
18135 library_names_spec='$libname$release.a $libname.a'
18136 soname_spec='$libname$release$shared_ext$major'
18137 ;;
18138 svr4,*) # full svr4 only
18139 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18140 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18141 # We do not specify a path in Import Files, so LIBPATH fires.
18142 shlibpath_overrides_runpath=yes
18143 ;;
18144 *,yes) # both, prefer svr4
18145 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18146 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18147 # unpreferred sharedlib libNAME.a needs extra handling
18148 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"'
18149 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"'
18150 # We do not specify a path in Import Files, so LIBPATH fires.
18151 shlibpath_overrides_runpath=yes
18152 ;;
18153 *,no) # both, prefer aix
18154 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18155 library_names_spec='$libname$release.a $libname.a'
18156 soname_spec='$libname$release$shared_ext$major'
18157 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18158 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)'
18159 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"'
18160 ;;
18161 esac
18162 shlibpath_var=LIBPATH
18163 fi
18164 ;;
18165
18166 amigaos*)
18167 case $host_cpu in
18168 powerpc)
18169 # Since July 2007 AmigaOS4 officially supports .so libraries.
18170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18172 ;;
18173 m68k)
18174 library_names_spec='$libname.ixlibrary $libname.a'
18175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18176 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'
18177 ;;
18178 esac
18179 ;;
18180
18181 beos*)
18182 library_names_spec='$libname$shared_ext'
18183 dynamic_linker="$host_os ld.so"
18184 shlibpath_var=LIBRARY_PATH
18185 ;;
18186
18187 bsdi[45]*)
18188 version_type=linux # correct to gnu/linux during the next big refactor
18189 need_version=no
18190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18191 soname_spec='$libname$release$shared_ext$major'
18192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18196 # the default ld.so.conf also contains /usr/contrib/lib and
18197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18198 # libtool to hard-code these into programs
18199 ;;
18200
18201 cygwin* | mingw* | pw32* | cegcc*)
18202 version_type=windows
18203 shrext_cmds=.dll
18204 need_version=no
18205 need_lib_prefix=no
18206
18207 case $GCC,$cc_basename in
18208 yes,*)
18209 # gcc
18210 library_names_spec='$libname.dll.a'
18211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18212 postinstall_cmds='base_file=`basename \$file`~
18213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18214 dldir=$destdir/`dirname \$dlpath`~
18215 test -d \$dldir || mkdir -p \$dldir~
18216 $install_prog $dir/$dlname \$dldir/$dlname~
18217 chmod a+x \$dldir/$dlname~
18218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18220 fi'
18221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18222 dlpath=$dir/\$dldll~
18223 $RM \$dlpath'
18224 shlibpath_overrides_runpath=yes
18225
18226 case $host_os in
18227 cygwin*)
18228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18229 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18230
18231 ;;
18232 mingw* | cegcc*)
18233 # MinGW DLLs use traditional 'lib' prefix
18234 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18235 ;;
18236 pw32*)
18237 # pw32 DLLs use 'pw' prefix rather than 'lib'
18238 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18239 ;;
18240 esac
18241 dynamic_linker='Win32 ld.exe'
18242 ;;
18243
18244 *,cl* | *,icl*)
18245 # Native MSVC or ICC
18246 libname_spec='$name'
18247 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18248 library_names_spec='$libname.dll.lib'
18249
18250 case $build_os in
18251 mingw*)
18252 sys_lib_search_path_spec=
18253 lt_save_ifs=$IFS
18254 IFS=';'
18255 for lt_path in $LIB
18256 do
18257 IFS=$lt_save_ifs
18258 # Let DOS variable expansion print the short 8.3 style file name.
18259 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18260 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18261 done
18262 IFS=$lt_save_ifs
18263 # Convert to MSYS style.
18264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18265 ;;
18266 cygwin*)
18267 # Convert to unix form, then to dos form, then back to unix form
18268 # but this time dos style (no spaces!) so that the unix form looks
18269 # like /cygdrive/c/PROGRA~1:/cygdr...
18270 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18271 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18272 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18273 ;;
18274 *)
18275 sys_lib_search_path_spec=$LIB
18276 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18277 # It is most probably a Windows format PATH.
18278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18279 else
18280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18281 fi
18282 # FIXME: find the short name or the path components, as spaces are
18283 # common. (e.g. "Program Files" -> "PROGRA~1")
18284 ;;
18285 esac
18286
18287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18288 postinstall_cmds='base_file=`basename \$file`~
18289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18290 dldir=$destdir/`dirname \$dlpath`~
18291 test -d \$dldir || mkdir -p \$dldir~
18292 $install_prog $dir/$dlname \$dldir/$dlname'
18293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18294 dlpath=$dir/\$dldll~
18295 $RM \$dlpath'
18296 shlibpath_overrides_runpath=yes
18297 dynamic_linker='Win32 link.exe'
18298 ;;
18299
18300 *)
18301 # Assume MSVC and ICC wrapper
18302 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18303 dynamic_linker='Win32 ld.exe'
18304 ;;
18305 esac
18306 # FIXME: first we should search . and the directory the executable is in
18307 shlibpath_var=PATH
18308 ;;
18309
18310 darwin* | rhapsody*)
18311 dynamic_linker="$host_os dyld"
18312 version_type=darwin
18313 need_lib_prefix=no
18314 need_version=no
18315 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18316 soname_spec='$libname$release$major$shared_ext'
18317 shlibpath_overrides_runpath=yes
18318 shlibpath_var=DYLD_LIBRARY_PATH
18319 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18320
18321 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18322 ;;
18323
18324 dgux*)
18325 version_type=linux # correct to gnu/linux during the next big refactor
18326 need_lib_prefix=no
18327 need_version=no
18328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18329 soname_spec='$libname$release$shared_ext$major'
18330 shlibpath_var=LD_LIBRARY_PATH
18331 ;;
18332
18333 freebsd* | dragonfly* | midnightbsd*)
18334 # DragonFly does not have aout. When/if they implement a new
18335 # versioning mechanism, adjust this.
18336 if test -x /usr/bin/objformat; then
18337 objformat=`/usr/bin/objformat`
18338 else
18339 case $host_os in
18340 freebsd[23].*) objformat=aout ;;
18341 *) objformat=elf ;;
18342 esac
18343 fi
18344 version_type=freebsd-$objformat
18345 case $version_type in
18346 freebsd-elf*)
18347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18348 soname_spec='$libname$release$shared_ext$major'
18349 need_version=no
18350 need_lib_prefix=no
18351 ;;
18352 freebsd-*)
18353 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18354 need_version=yes
18355 ;;
18356 esac
18357 shlibpath_var=LD_LIBRARY_PATH
18358 case $host_os in
18359 freebsd2.*)
18360 shlibpath_overrides_runpath=yes
18361 ;;
18362 freebsd3.[01]* | freebsdelf3.[01]*)
18363 shlibpath_overrides_runpath=yes
18364 hardcode_into_libs=yes
18365 ;;
18366 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18367 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18368 shlibpath_overrides_runpath=no
18369 hardcode_into_libs=yes
18370 ;;
18371 *) # from 4.6 on, and DragonFly
18372 shlibpath_overrides_runpath=yes
18373 hardcode_into_libs=yes
18374 ;;
18375 esac
18376 ;;
18377
18378 haiku*)
18379 version_type=linux # correct to gnu/linux during the next big refactor
18380 need_lib_prefix=no
18381 need_version=no
18382 dynamic_linker="$host_os runtime_loader"
18383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18384 soname_spec='$libname$release$shared_ext$major'
18385 shlibpath_var=LIBRARY_PATH
18386 shlibpath_overrides_runpath=no
18387 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18388 hardcode_into_libs=yes
18389 ;;
18390
18391 hpux9* | hpux10* | hpux11*)
18392 # Give a soname corresponding to the major version so that dld.sl refuses to
18393 # link against other versions.
18394 version_type=sunos
18395 need_lib_prefix=no
18396 need_version=no
18397 case $host_cpu in
18398 ia64*)
18399 shrext_cmds='.so'
18400 hardcode_into_libs=yes
18401 dynamic_linker="$host_os dld.so"
18402 shlibpath_var=LD_LIBRARY_PATH
18403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18405 soname_spec='$libname$release$shared_ext$major'
18406 if test 32 = "$HPUX_IA64_MODE"; then
18407 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18408 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18409 else
18410 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18411 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18412 fi
18413 ;;
18414 hppa*64*)
18415 shrext_cmds='.sl'
18416 hardcode_into_libs=yes
18417 dynamic_linker="$host_os dld.sl"
18418 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18421 soname_spec='$libname$release$shared_ext$major'
18422 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18424 ;;
18425 *)
18426 shrext_cmds='.sl'
18427 dynamic_linker="$host_os dld.sl"
18428 shlibpath_var=SHLIB_PATH
18429 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18431 soname_spec='$libname$release$shared_ext$major'
18432 ;;
18433 esac
18434 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18435 postinstall_cmds='chmod 555 $lib'
18436 # or fails outright, so override atomically:
18437 install_override_mode=555
18438 ;;
18439
18440 interix[3-9]*)
18441 version_type=linux # correct to gnu/linux during the next big refactor
18442 need_lib_prefix=no
18443 need_version=no
18444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18445 soname_spec='$libname$release$shared_ext$major'
18446 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=no
18449 hardcode_into_libs=yes
18450 ;;
18451
18452 irix5* | irix6* | nonstopux*)
18453 case $host_os in
18454 nonstopux*) version_type=nonstopux ;;
18455 *)
18456 if test yes = "$lt_cv_prog_gnu_ld"; then
18457 version_type=linux # correct to gnu/linux during the next big refactor
18458 else
18459 version_type=irix
18460 fi ;;
18461 esac
18462 need_lib_prefix=no
18463 need_version=no
18464 soname_spec='$libname$release$shared_ext$major'
18465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18466 case $host_os in
18467 irix5* | nonstopux*)
18468 libsuff= shlibsuff=
18469 ;;
18470 *)
18471 case $LD in # libtool.m4 will add one of these switches to LD
18472 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18473 libsuff= shlibsuff= libmagic=32-bit;;
18474 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18475 libsuff=32 shlibsuff=N32 libmagic=N32;;
18476 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18477 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18478 *) libsuff= shlibsuff= libmagic=never-match;;
18479 esac
18480 ;;
18481 esac
18482 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18483 shlibpath_overrides_runpath=no
18484 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18485 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18486 hardcode_into_libs=yes
18487 ;;
18488
18489 # No shared lib support for Linux oldld, aout, or coff.
18490 linux*oldld* | linux*aout* | linux*coff*)
18491 dynamic_linker=no
18492 ;;
18493
18494 linux*android*)
18495 version_type=none # Android doesn't support versioned libraries.
18496 need_lib_prefix=no
18497 need_version=no
18498 library_names_spec='$libname$release$shared_ext'
18499 soname_spec='$libname$release$shared_ext'
18500 finish_cmds=
18501 shlibpath_var=LD_LIBRARY_PATH
18502 shlibpath_overrides_runpath=yes
18503
18504 # This implies no fast_install, which is unacceptable.
18505 # Some rework will be needed to allow for fast_install
18506 # before this can be enabled.
18507 hardcode_into_libs=yes
18508
18509 dynamic_linker='Android linker'
18510 # Don't embed -rpath directories since the linker doesn't support them.
18511 hardcode_libdir_flag_spec_CXX='-L$libdir'
18512 ;;
18513
18514 # This must be glibc/ELF.
18515 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18516 version_type=linux # correct to gnu/linux during the next big refactor
18517 need_lib_prefix=no
18518 need_version=no
18519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18520 soname_spec='$libname$release$shared_ext$major'
18521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18522 shlibpath_var=LD_LIBRARY_PATH
18523 shlibpath_overrides_runpath=no
18524
18525 # Some binutils ld are patched to set DT_RUNPATH
18526 if test ${lt_cv_shlibpath_overrides_runpath+y}
18527 then :
18528 printf %s "(cached) " >&6
18529 else case e in #(
18530 e) lt_cv_shlibpath_overrides_runpath=no
18531 save_LDFLAGS=$LDFLAGS
18532 save_libdir=$libdir
18533 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18534 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536 /* end confdefs.h. */
18537
18538 int
18539 main (void)
18540 {
18541
18542 ;
18543 return 0;
18544 }
18545 _ACEOF
18546 if ac_fn_cxx_try_link "$LINENO"
18547 then :
18548 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18549 then :
18550 lt_cv_shlibpath_overrides_runpath=yes
18551 fi
18552 fi
18553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18554 conftest$ac_exeext conftest.$ac_ext
18555 LDFLAGS=$save_LDFLAGS
18556 libdir=$save_libdir
18557 ;;
18558 esac
18559 fi
18560
18561 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18562
18563 # This implies no fast_install, which is unacceptable.
18564 # Some rework will be needed to allow for fast_install
18565 # before this can be enabled.
18566 hardcode_into_libs=yes
18567
18568 # Ideally, we could use ldconfig to report *all* directores which are
18569 # searched for libraries, however this is still not possible. Aside from not
18570 # being certain /sbin/ldconfig is available, command
18571 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18572 # even though it is searched at run-time. Try to do the best guess by
18573 # appending ld.so.conf contents (and includes) to the search path.
18574 if test -f /etc/ld.so.conf; then
18575 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' ' '`
18576 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18577 fi
18578
18579 # We used to test for /lib/ld.so.1 and disable shared libraries on
18580 # powerpc, because MkLinux only supported shared libraries with the
18581 # GNU dynamic linker. Since this was broken with cross compilers,
18582 # most powerpc-linux boxes support dynamic linking these days and
18583 # people can always --disable-shared, the test was removed, and we
18584 # assume the GNU/Linux dynamic linker is in use.
18585 dynamic_linker='GNU/Linux ld.so'
18586 ;;
18587
18588 netbsdelf*-gnu)
18589 version_type=linux
18590 need_lib_prefix=no
18591 need_version=no
18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18593 soname_spec='${libname}${release}${shared_ext}$major'
18594 shlibpath_var=LD_LIBRARY_PATH
18595 shlibpath_overrides_runpath=no
18596 hardcode_into_libs=yes
18597 dynamic_linker='NetBSD ld.elf_so'
18598 ;;
18599
18600 netbsd*)
18601 version_type=sunos
18602 need_lib_prefix=no
18603 need_version=no
18604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18605 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18607 dynamic_linker='NetBSD (a.out) ld.so'
18608 else
18609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18610 soname_spec='$libname$release$shared_ext$major'
18611 dynamic_linker='NetBSD ld.elf_so'
18612 fi
18613 shlibpath_var=LD_LIBRARY_PATH
18614 shlibpath_overrides_runpath=yes
18615 hardcode_into_libs=yes
18616 ;;
18617
18618 newsos6)
18619 version_type=linux # correct to gnu/linux during the next big refactor
18620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath=yes
18623 ;;
18624
18625 *nto* | *qnx*)
18626 version_type=qnx
18627 need_lib_prefix=no
18628 need_version=no
18629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18630 soname_spec='$libname$release$shared_ext$major'
18631 shlibpath_var=LD_LIBRARY_PATH
18632 shlibpath_overrides_runpath=no
18633 hardcode_into_libs=yes
18634 dynamic_linker='ldqnx.so'
18635 ;;
18636
18637 openbsd* | bitrig*)
18638 version_type=sunos
18639 sys_lib_dlsearch_path_spec=/usr/lib
18640 need_lib_prefix=no
18641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18642 need_version=no
18643 else
18644 need_version=yes
18645 fi
18646 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18648 shlibpath_var=LD_LIBRARY_PATH
18649 shlibpath_overrides_runpath=yes
18650 ;;
18651
18652 os2*)
18653 libname_spec='$name'
18654 version_type=windows
18655 shrext_cmds=.dll
18656 need_version=no
18657 need_lib_prefix=no
18658 # OS/2 can only load a DLL with a base name of 8 characters or less.
18659 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18660 v=$($ECHO $release$versuffix | tr -d .-);
18661 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18662 $ECHO $n$v`$shared_ext'
18663 library_names_spec='${libname}_dll.$libext'
18664 dynamic_linker='OS/2 ld.exe'
18665 shlibpath_var=BEGINLIBPATH
18666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18668 postinstall_cmds='base_file=`basename \$file`~
18669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18670 dldir=$destdir/`dirname \$dlpath`~
18671 test -d \$dldir || mkdir -p \$dldir~
18672 $install_prog $dir/$dlname \$dldir/$dlname~
18673 chmod a+x \$dldir/$dlname~
18674 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18675 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18676 fi'
18677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18678 dlpath=$dir/\$dldll~
18679 $RM \$dlpath'
18680 ;;
18681
18682 osf3* | osf4* | osf5*)
18683 version_type=osf
18684 need_lib_prefix=no
18685 need_version=no
18686 soname_spec='$libname$release$shared_ext$major'
18687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18688 shlibpath_var=LD_LIBRARY_PATH
18689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18691 ;;
18692
18693 rdos*)
18694 dynamic_linker=no
18695 ;;
18696
18697 solaris*)
18698 version_type=linux # correct to gnu/linux during the next big refactor
18699 need_lib_prefix=no
18700 need_version=no
18701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18702 soname_spec='$libname$release$shared_ext$major'
18703 shlibpath_var=LD_LIBRARY_PATH
18704 shlibpath_overrides_runpath=yes
18705 hardcode_into_libs=yes
18706 # ldd complains unless libraries are executable
18707 postinstall_cmds='chmod +x $lib'
18708 ;;
18709
18710 sunos4*)
18711 version_type=sunos
18712 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18714 shlibpath_var=LD_LIBRARY_PATH
18715 shlibpath_overrides_runpath=yes
18716 if test yes = "$with_gnu_ld"; then
18717 need_lib_prefix=no
18718 fi
18719 need_version=yes
18720 ;;
18721
18722 sysv4 | sysv4.3*)
18723 version_type=linux # correct to gnu/linux during the next big refactor
18724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18725 soname_spec='$libname$release$shared_ext$major'
18726 shlibpath_var=LD_LIBRARY_PATH
18727 case $host_vendor in
18728 sni)
18729 shlibpath_overrides_runpath=no
18730 need_lib_prefix=no
18731 runpath_var=LD_RUN_PATH
18732 ;;
18733 siemens)
18734 need_lib_prefix=no
18735 ;;
18736 motorola)
18737 need_lib_prefix=no
18738 need_version=no
18739 shlibpath_overrides_runpath=no
18740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18741 ;;
18742 esac
18743 ;;
18744
18745 sysv4*MP*)
18746 if test -d /usr/nec; then
18747 version_type=linux # correct to gnu/linux during the next big refactor
18748 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18749 soname_spec='$libname$shared_ext.$major'
18750 shlibpath_var=LD_LIBRARY_PATH
18751 fi
18752 ;;
18753
18754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18755 version_type=sco
18756 need_lib_prefix=no
18757 need_version=no
18758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18759 soname_spec='$libname$release$shared_ext$major'
18760 shlibpath_var=LD_LIBRARY_PATH
18761 shlibpath_overrides_runpath=yes
18762 hardcode_into_libs=yes
18763 if test yes = "$with_gnu_ld"; then
18764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18765 else
18766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18767 case $host_os in
18768 sco3.2v5*)
18769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18770 ;;
18771 esac
18772 fi
18773 sys_lib_dlsearch_path_spec='/usr/lib'
18774 ;;
18775
18776 tpf*)
18777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18778 version_type=linux # correct to gnu/linux during the next big refactor
18779 need_lib_prefix=no
18780 need_version=no
18781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18782 shlibpath_var=LD_LIBRARY_PATH
18783 shlibpath_overrides_runpath=no
18784 hardcode_into_libs=yes
18785 ;;
18786
18787 uts4*)
18788 version_type=linux # correct to gnu/linux during the next big refactor
18789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18790 soname_spec='$libname$release$shared_ext$major'
18791 shlibpath_var=LD_LIBRARY_PATH
18792 ;;
18793
18794 *)
18795 dynamic_linker=no
18796 ;;
18797 esac
18798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18799 printf "%s\n" "$dynamic_linker" >&6; }
18800 test no = "$dynamic_linker" && can_build_shared=no
18801
18802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18803 if test yes = "$GCC"; then
18804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18805 fi
18806
18807 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18808 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18809 fi
18810
18811 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18812 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18813 fi
18814
18815 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18816 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18817
18818 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18819 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18820
18821 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18822 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18864 printf %s "checking how to hardcode library paths into programs... " >&6; }
18865 hardcode_action_CXX=
18866 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18867 test -n "$runpath_var_CXX" ||
18868 test yes = "$hardcode_automatic_CXX"; then
18869
18870 # We can hardcode non-existent directories.
18871 if test no != "$hardcode_direct_CXX" &&
18872 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18873 # have to relink, otherwise we might link with an installed library
18874 # when we should be linking with a yet-to-be-installed one
18875 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18876 test no != "$hardcode_minus_L_CXX"; then
18877 # Linking always hardcodes the temporary library directory.
18878 hardcode_action_CXX=relink
18879 else
18880 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18881 hardcode_action_CXX=immediate
18882 fi
18883 else
18884 # We cannot hardcode anything, or else we can only hardcode existing
18885 # directories.
18886 hardcode_action_CXX=unsupported
18887 fi
18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18889 printf "%s\n" "$hardcode_action_CXX" >&6; }
18890
18891 if test relink = "$hardcode_action_CXX" ||
18892 test yes = "$inherit_rpath_CXX"; then
18893 # Fast installation is not supported
18894 enable_fast_install=no
18895 elif test yes = "$shlibpath_overrides_runpath" ||
18896 test no = "$enable_shared"; then
18897 # Fast installation is not necessary
18898 enable_fast_install=needless
18899 fi
18900
18901
18902
18903
18904
18905
18906
18907 fi # test -n "$compiler"
18908
18909 CC=$lt_save_CC
18910 CFLAGS=$lt_save_CFLAGS
18911 LDCXX=$LD
18912 LD=$lt_save_LD
18913 GCC=$lt_save_GCC
18914 with_gnu_ld=$lt_save_with_gnu_ld
18915 lt_cv_path_LDCXX=$lt_cv_path_LD
18916 lt_cv_path_LD=$lt_save_path_LD
18917 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18918 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18919 fi # test yes != "$_lt_caught_CXX_error"
18920
18921 ac_ext=c
18922 ac_cpp='$CPP $CPPFLAGS'
18923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941 ac_config_commands="$ac_config_commands libtool"
18942
18943
18944
18945
18946 # Only expand once:
18947
18948
18949
18950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18951 printf %s "checking whether byte ordering is bigendian... " >&6; }
18952 if test ${ac_cv_c_bigendian+y}
18953 then :
18954 printf %s "(cached) " >&6
18955 else case e in #(
18956 e) ac_cv_c_bigendian=unknown
18957 # See if we're dealing with a universal compiler.
18958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959 /* end confdefs.h. */
18960 #ifndef __APPLE_CC__
18961 not a universal capable compiler
18962 #endif
18963 typedef int dummy;
18964
18965 _ACEOF
18966 if ac_fn_c_try_compile "$LINENO"
18967 then :
18968
18969 # Check for potential -arch flags. It is not universal unless
18970 # there are at least two -arch flags with different values.
18971 ac_arch=
18972 ac_prev=
18973 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18974 if test -n "$ac_prev"; then
18975 case $ac_word in
18976 i?86 | x86_64 | ppc | ppc64)
18977 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18978 ac_arch=$ac_word
18979 else
18980 ac_cv_c_bigendian=universal
18981 break
18982 fi
18983 ;;
18984 esac
18985 ac_prev=
18986 elif test "x$ac_word" = "x-arch"; then
18987 ac_prev=arch
18988 fi
18989 done
18990 fi
18991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18992 if test $ac_cv_c_bigendian = unknown; then
18993 # See if sys/param.h defines the BYTE_ORDER macro.
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18996 #include <sys/types.h>
18997 #include <sys/param.h>
18998
18999 int
19000 main (void)
19001 {
19002 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
19003 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
19004 && LITTLE_ENDIAN)
19005 bogus endian macros
19006 #endif
19007
19008 ;
19009 return 0;
19010 }
19011 _ACEOF
19012 if ac_fn_c_try_compile "$LINENO"
19013 then :
19014 # It does; now see whether it defined to BIG_ENDIAN or not.
19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19017 #include <sys/types.h>
19018 #include <sys/param.h>
19019
19020 int
19021 main (void)
19022 {
19023 #if BYTE_ORDER != BIG_ENDIAN
19024 not big endian
19025 #endif
19026
19027 ;
19028 return 0;
19029 }
19030 _ACEOF
19031 if ac_fn_c_try_compile "$LINENO"
19032 then :
19033 ac_cv_c_bigendian=yes
19034 else case e in #(
19035 e) ac_cv_c_bigendian=no ;;
19036 esac
19037 fi
19038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19041 fi
19042 if test $ac_cv_c_bigendian = unknown; then
19043 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
19044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h. */
19046 #include <limits.h>
19047
19048 int
19049 main (void)
19050 {
19051 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19052 bogus endian macros
19053 #endif
19054
19055 ;
19056 return 0;
19057 }
19058 _ACEOF
19059 if ac_fn_c_try_compile "$LINENO"
19060 then :
19061 # It does; now see whether it defined to _BIG_ENDIAN or not.
19062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19063 /* end confdefs.h. */
19064 #include <limits.h>
19065
19066 int
19067 main (void)
19068 {
19069 #ifndef _BIG_ENDIAN
19070 not big endian
19071 #endif
19072
19073 ;
19074 return 0;
19075 }
19076 _ACEOF
19077 if ac_fn_c_try_compile "$LINENO"
19078 then :
19079 ac_cv_c_bigendian=yes
19080 else case e in #(
19081 e) ac_cv_c_bigendian=no ;;
19082 esac
19083 fi
19084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19085 fi
19086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19087 fi
19088 if test $ac_cv_c_bigendian = unknown; then
19089 # Compile a test program.
19090 if test "$cross_compiling" = yes
19091 then :
19092 # Try to guess by grepping values from an object file.
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h. */
19095 unsigned short int ascii_mm[] =
19096 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19097 unsigned short int ascii_ii[] =
19098 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19099 int use_ascii (int i) {
19100 return ascii_mm[i] + ascii_ii[i];
19101 }
19102 unsigned short int ebcdic_ii[] =
19103 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19104 unsigned short int ebcdic_mm[] =
19105 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19106 int use_ebcdic (int i) {
19107 return ebcdic_mm[i] + ebcdic_ii[i];
19108 }
19109 int
19110 main (int argc, char **argv)
19111 {
19112 /* Intimidate the compiler so that it does not
19113 optimize the arrays away. */
19114 char *p = argv[0];
19115 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
19116 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
19117 return use_ascii (argc) == use_ebcdic (*p);
19118 }
19119 _ACEOF
19120 if ac_fn_c_try_link "$LINENO"
19121 then :
19122 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
19123 ac_cv_c_bigendian=yes
19124 fi
19125 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
19126 if test "$ac_cv_c_bigendian" = unknown; then
19127 ac_cv_c_bigendian=no
19128 else
19129 # finding both strings is unlikely to happen, but who knows?
19130 ac_cv_c_bigendian=unknown
19131 fi
19132 fi
19133 fi
19134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19135 conftest$ac_exeext conftest.$ac_ext
19136 else case e in #(
19137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139 $ac_includes_default
19140 int
19141 main (void)
19142 {
19143
19144 /* Are we little or big endian? From Harbison&Steele. */
19145 union
19146 {
19147 long int l;
19148 char c[sizeof (long int)];
19149 } u;
19150 u.l = 1;
19151 return u.c[sizeof (long int) - 1] == 1;
19152
19153 ;
19154 return 0;
19155 }
19156 _ACEOF
19157 if ac_fn_c_try_run "$LINENO"
19158 then :
19159 ac_cv_c_bigendian=no
19160 else case e in #(
19161 e) ac_cv_c_bigendian=yes ;;
19162 esac
19163 fi
19164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19165 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19166 esac
19167 fi
19168
19169 fi ;;
19170 esac
19171 fi
19172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19173 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
19174 case $ac_cv_c_bigendian in #(
19175 yes)
19176 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
19177 ;; #(
19178 no)
19179 ;; #(
19180 universal)
19181
19182 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19183
19184 ;; #(
19185 *)
19186 as_fn_error $? "unknown endianness
19187 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
19188 esac
19189
19190
19191 if test -n "$ac_tool_prefix"; then
19192 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19193 set dummy ${ac_tool_prefix}windres; ac_word=$2
19194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19195 printf %s "checking for $ac_word... " >&6; }
19196 if test ${ac_cv_prog_RC+y}
19197 then :
19198 printf %s "(cached) " >&6
19199 else case e in #(
19200 e) if test -n "$RC"; then
19201 ac_cv_prog_RC="$RC" # Let the user override the test.
19202 else
19203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19204 for as_dir in $PATH
19205 do
19206 IFS=$as_save_IFS
19207 case $as_dir in #(((
19208 '') as_dir=./ ;;
19209 */) ;;
19210 *) as_dir=$as_dir/ ;;
19211 esac
19212 for ac_exec_ext in '' $ac_executable_extensions; do
19213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19214 ac_cv_prog_RC="${ac_tool_prefix}windres"
19215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19216 break 2
19217 fi
19218 done
19219 done
19220 IFS=$as_save_IFS
19221
19222 fi ;;
19223 esac
19224 fi
19225 RC=$ac_cv_prog_RC
19226 if test -n "$RC"; then
19227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
19228 printf "%s\n" "$RC" >&6; }
19229 else
19230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231 printf "%s\n" "no" >&6; }
19232 fi
19233
19234
19235 fi
19236 if test -z "$ac_cv_prog_RC"; then
19237 ac_ct_RC=$RC
19238 # Extract the first word of "windres", so it can be a program name with args.
19239 set dummy windres; ac_word=$2
19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19241 printf %s "checking for $ac_word... " >&6; }
19242 if test ${ac_cv_prog_ac_ct_RC+y}
19243 then :
19244 printf %s "(cached) " >&6
19245 else case e in #(
19246 e) if test -n "$ac_ct_RC"; then
19247 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
19248 else
19249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19250 for as_dir in $PATH
19251 do
19252 IFS=$as_save_IFS
19253 case $as_dir in #(((
19254 '') as_dir=./ ;;
19255 */) ;;
19256 *) as_dir=$as_dir/ ;;
19257 esac
19258 for ac_exec_ext in '' $ac_executable_extensions; do
19259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19260 ac_cv_prog_ac_ct_RC="windres"
19261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19262 break 2
19263 fi
19264 done
19265 done
19266 IFS=$as_save_IFS
19267
19268 fi ;;
19269 esac
19270 fi
19271 ac_ct_RC=$ac_cv_prog_ac_ct_RC
19272 if test -n "$ac_ct_RC"; then
19273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
19274 printf "%s\n" "$ac_ct_RC" >&6; }
19275 else
19276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19277 printf "%s\n" "no" >&6; }
19278 fi
19279
19280 if test "x$ac_ct_RC" = x; then
19281 RC=""
19282 else
19283 case $cross_compiling:$ac_tool_warned in
19284 yes:)
19285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19286 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19287 ac_tool_warned=yes ;;
19288 esac
19289 RC=$ac_ct_RC
19290 fi
19291 else
19292 RC="$ac_cv_prog_RC"
19293 fi
19294
19295
19296
19297
19298 # Source file extension for RC test sources.
19299 ac_ext=rc
19300
19301 # Object file extension for compiled RC test sources.
19302 objext=o
19303 objext_RC=$objext
19304
19305 # Code to be used in simple compile tests
19306 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19307
19308 # Code to be used in simple link tests
19309 lt_simple_link_test_code=$lt_simple_compile_test_code
19310
19311 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19312
19313
19314
19315
19316
19317
19318 # If no C compiler was specified, use CC.
19319 LTCC=${LTCC-"$CC"}
19320
19321 # If no C compiler flags were specified, use CFLAGS.
19322 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19323
19324 # Allow CC to be a program name with arguments.
19325 compiler=$CC
19326
19327
19328 # save warnings/boilerplate of simple test code
19329 ac_outfile=conftest.$ac_objext
19330 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19331 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19332 _lt_compiler_boilerplate=`cat conftest.err`
19333 $RM conftest*
19334
19335 ac_outfile=conftest.$ac_objext
19336 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19337 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19338 _lt_linker_boilerplate=`cat conftest.err`
19339 $RM -r conftest*
19340
19341
19342 # Allow CC to be a program name with arguments.
19343 lt_save_CC=$CC
19344 lt_save_CFLAGS=$CFLAGS
19345 lt_save_GCC=$GCC
19346 GCC=
19347 CC=${RC-"windres"}
19348 CFLAGS=
19349 compiler=$CC
19350 compiler_RC=$CC
19351 func_cc_basename $compiler
19352 cc_basename=$func_cc_basename_result
19353
19354 lt_cv_prog_compiler_c_o_RC=yes
19355
19356 if test -n "$compiler"; then
19357 :
19358
19359
19360
19361 fi
19362
19363 GCC=$lt_save_GCC
19364 ac_ext=c
19365 ac_cpp='$CPP $CPPFLAGS'
19366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19369
19370 CC=$lt_save_CC
19371 CFLAGS=$lt_save_CFLAGS
19372
19373
19374 case $host in
19375 *-*-msys | *-*-cygwin* | *-*-cegcc*)
19376 # These are POSIX-like systems using BSD-like sockets API.
19377 ;;
19378 *)
19379 for ac_header in windows.h
19380 do :
19381 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19382 if test "x$ac_cv_header_windows_h" = xyes
19383 then :
19384 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
19385 have_windows_h=yes
19386 else case e in #(
19387 e) have_windows_h=no ;;
19388 esac
19389 fi
19390
19391 done
19392 ;;
19393 esac
19394
19395 # Check whether --enable-largefile was given.
19396 if test ${enable_largefile+y}
19397 then :
19398 enableval=$enable_largefile;
19399 fi
19400 if test "$enable_largefile,$enable_year2038" != no,no
19401 then :
19402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
19403 printf %s "checking for $CC option to enable large file support... " >&6; }
19404 if test ${ac_cv_sys_largefile_opts+y}
19405 then :
19406 printf %s "(cached) " >&6
19407 else case e in #(
19408 e) ac_save_CC="$CC"
19409 ac_opt_found=no
19410 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
19411 if test x"$ac_opt" != x"none needed"
19412 then :
19413 CC="$ac_save_CC $ac_opt"
19414 fi
19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19417 #include <sys/types.h>
19418 #ifndef FTYPE
19419 # define FTYPE off_t
19420 #endif
19421 /* Check that FTYPE can represent 2**63 - 1 correctly.
19422 We can't simply define LARGE_FTYPE to be 9223372036854775807,
19423 since some C++ compilers masquerading as C compilers
19424 incorrectly reject 9223372036854775807. */
19425 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
19426 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
19427 && LARGE_FTYPE % 2147483647 == 1)
19428 ? 1 : -1];
19429 int
19430 main (void)
19431 {
19432
19433 ;
19434 return 0;
19435 }
19436 _ACEOF
19437 if ac_fn_c_try_compile "$LINENO"
19438 then :
19439 if test x"$ac_opt" = x"none needed"
19440 then :
19441 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
19442 CC="$CC -DFTYPE=ino_t"
19443 if ac_fn_c_try_compile "$LINENO"
19444 then :
19445
19446 else case e in #(
19447 e) CC="$CC -D_FILE_OFFSET_BITS=64"
19448 if ac_fn_c_try_compile "$LINENO"
19449 then :
19450 ac_opt='-D_FILE_OFFSET_BITS=64'
19451 fi
19452 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
19453 esac
19454 fi
19455 rm -f core conftest.err conftest.$ac_objext conftest.beam
19456 fi
19457 ac_cv_sys_largefile_opts=$ac_opt
19458 ac_opt_found=yes
19459 fi
19460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19461 test $ac_opt_found = no || break
19462 done
19463 CC="$ac_save_CC"
19464
19465 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
19466 esac
19467 fi
19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
19469 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
19470
19471 ac_have_largefile=yes
19472 case $ac_cv_sys_largefile_opts in #(
19473 "none needed") :
19474 ;; #(
19475 "supported through gnulib") :
19476 ;; #(
19477 "support not detected") :
19478 ac_have_largefile=no ;; #(
19479 "-D_FILE_OFFSET_BITS=64") :
19480
19481 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
19482 ;; #(
19483 "-D_LARGE_FILES=1") :
19484
19485 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
19486 ;; #(
19487 "-n32") :
19488 CC="$CC -n32" ;; #(
19489 *) :
19490 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
19491 esac
19492
19493 if test "$enable_year2038" != no
19494 then :
19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
19496 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
19497 if test ${ac_cv_sys_year2038_opts+y}
19498 then :
19499 printf %s "(cached) " >&6
19500 else case e in #(
19501 e) ac_save_CPPFLAGS="$CPPFLAGS"
19502 ac_opt_found=no
19503 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
19504 if test x"$ac_opt" != x"none needed"
19505 then :
19506 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
19507 fi
19508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510
19511 #include <time.h>
19512 /* Check that time_t can represent 2**32 - 1 correctly. */
19513 #define LARGE_TIME_T \\
19514 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
19515 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
19516 && LARGE_TIME_T % 65537 == 0)
19517 ? 1 : -1];
19518
19519 int
19520 main (void)
19521 {
19522
19523 ;
19524 return 0;
19525 }
19526 _ACEOF
19527 if ac_fn_c_try_compile "$LINENO"
19528 then :
19529 ac_cv_sys_year2038_opts="$ac_opt"
19530 ac_opt_found=yes
19531 fi
19532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19533 test $ac_opt_found = no || break
19534 done
19535 CPPFLAGS="$ac_save_CPPFLAGS"
19536 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
19537 esac
19538 fi
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
19540 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
19541
19542 ac_have_year2038=yes
19543 case $ac_cv_sys_year2038_opts in #(
19544 "none needed") :
19545 ;; #(
19546 "support not detected") :
19547 ac_have_year2038=no ;; #(
19548 "-D_TIME_BITS=64") :
19549
19550 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
19551 ;; #(
19552 "-D__MINGW_USE_VC2005_COMPAT") :
19553
19554 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
19555 ;; #(
19556 "-U_USE_32_BIT_TIME_T"*) :
19557 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19558 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19559 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
19560 will stop working after mid-January 2038. Remove
19561 _USE_32BIT_TIME_T from the compiler flags.
19562 See 'config.log' for more details" "$LINENO" 5; } ;; #(
19563 *) :
19564 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
19565 esac
19566
19567 fi
19568
19569 fi
19570
19571 # Crypto backends
19572
19573 found_crypto=none
19574 found_crypto_str=""
19575 crypto_errors=""
19576
19577
19578
19579
19580
19581
19582
19583
19584 # Check whether --with-crypto was given.
19585 if test ${with_crypto+y}
19586 then :
19587 withval=$with_crypto; use_crypto=$withval
19588 else case e in #(
19589 e) use_crypto=auto
19590 ;;
19591 esac
19592 fi
19593
19594
19595 case "${use_crypto}" in
19596 auto|openssl|libgcrypt|mbedtls|wincng|wolfssl)
19597
19598 if test "X$prefix" = "XNONE"; then
19599 acl_final_prefix="$ac_default_prefix"
19600 else
19601 acl_final_prefix="$prefix"
19602 fi
19603 if test "X$exec_prefix" = "XNONE"; then
19604 acl_final_exec_prefix='${prefix}'
19605 else
19606 acl_final_exec_prefix="$exec_prefix"
19607 fi
19608 acl_save_prefix="$prefix"
19609 prefix="$acl_final_prefix"
19610 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19611 prefix="$acl_save_prefix"
19612
19613
19614 # Check whether --with-gnu-ld was given.
19615 if test ${with_gnu_ld+y}
19616 then :
19617 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19618 else case e in #(
19619 e) with_gnu_ld=no ;;
19620 esac
19621 fi
19622
19623 # Prepare PATH_SEPARATOR.
19624 # The user is always right.
19625 if test "${PATH_SEPARATOR+set}" != set; then
19626 echo "#! /bin/sh" >conf$$.sh
19627 echo "exit 0" >>conf$$.sh
19628 chmod +x conf$$.sh
19629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19630 PATH_SEPARATOR=';'
19631 else
19632 PATH_SEPARATOR=:
19633 fi
19634 rm -f conf$$.sh
19635 fi
19636 ac_prog=ld
19637 if test "$GCC" = yes; then
19638 # Check if gcc -print-prog-name=ld gives a path.
19639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19640 printf %s "checking for ld used by GCC... " >&6; }
19641 case $host in
19642 *-*-mingw*)
19643 # gcc leaves a trailing carriage return which upsets mingw
19644 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19645 *)
19646 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19647 esac
19648 case $ac_prog in
19649 # Accept absolute paths.
19650 [\\/]* | [A-Za-z]:[\\/]*)
19651 re_direlt='/[^/][^/]*/\.\./'
19652 # Canonicalize the path of ld
19653 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19654 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19655 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19656 done
19657 test -z "$LD" && LD="$ac_prog"
19658 ;;
19659 "")
19660 # If it fails, then pretend we aren't using GCC.
19661 ac_prog=ld
19662 ;;
19663 *)
19664 # If it is relative, then search for the first ld in PATH.
19665 with_gnu_ld=unknown
19666 ;;
19667 esac
19668 elif test "$with_gnu_ld" = yes; then
19669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19670 printf %s "checking for GNU ld... " >&6; }
19671 else
19672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19673 printf %s "checking for non-GNU ld... " >&6; }
19674 fi
19675 if test ${acl_cv_path_LD+y}
19676 then :
19677 printf %s "(cached) " >&6
19678 else case e in #(
19679 e) if test -z "$LD"; then
19680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19681 for ac_dir in $PATH; do
19682 test -z "$ac_dir" && ac_dir=.
19683 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19684 acl_cv_path_LD="$ac_dir/$ac_prog"
19685 # Check to see if the program is GNU ld. I'd rather use --version,
19686 # but apparently some GNU ld's only accept -v.
19687 # Break only if it was the GNU/non-GNU ld that we prefer.
19688 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
19689 *GNU* | *'with BFD'*)
19690 test "$with_gnu_ld" != no && break ;;
19691 *)
19692 test "$with_gnu_ld" != yes && break ;;
19693 esac
19694 fi
19695 done
19696 IFS="$ac_save_ifs"
19697 else
19698 acl_cv_path_LD="$LD" # Let the user override the test with a path.
19699 fi ;;
19700 esac
19701 fi
19702
19703 LD="$acl_cv_path_LD"
19704 if test -n "$LD"; then
19705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19706 printf "%s\n" "$LD" >&6; }
19707 else
19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19709 printf "%s\n" "no" >&6; }
19710 fi
19711 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19713 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
19714 if test ${acl_cv_prog_gnu_ld+y}
19715 then :
19716 printf %s "(cached) " >&6
19717 else case e in #(
19718 e) # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19719 case `$LD -v 2>&1 </dev/null` in
19720 *GNU* | *'with BFD'*)
19721 acl_cv_prog_gnu_ld=yes ;;
19722 *)
19723 acl_cv_prog_gnu_ld=no ;;
19724 esac ;;
19725 esac
19726 fi
19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19728 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
19729 with_gnu_ld=$acl_cv_prog_gnu_ld
19730
19731
19732
19733
19734
19735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19736 printf %s "checking for shared library run path origin... " >&6; }
19737 if test ${acl_cv_rpath+y}
19738 then :
19739 printf %s "(cached) " >&6
19740 else case e in #(
19741 e)
19742 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19743 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19744 . ./conftest.sh
19745 rm -f ./conftest.sh
19746 acl_cv_rpath=done
19747 ;;
19748 esac
19749 fi
19750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19751 printf "%s\n" "$acl_cv_rpath" >&6; }
19752 wl="$acl_cv_wl"
19753 acl_libext="$acl_cv_libext"
19754 acl_shlibext="$acl_cv_shlibext"
19755 acl_libname_spec="$acl_cv_libname_spec"
19756 acl_library_names_spec="$acl_cv_library_names_spec"
19757 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19758 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19759 acl_hardcode_direct="$acl_cv_hardcode_direct"
19760 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
19761 # Check whether --enable-rpath was given.
19762 if test ${enable_rpath+y}
19763 then :
19764 enableval=$enable_rpath; :
19765 else case e in #(
19766 e) enable_rpath=yes ;;
19767 esac
19768 fi
19769
19770
19771
19772 acl_libdirstem=lib
19773 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19774 if test -n "$searchpath"; then
19775 acl_save_IFS="${IFS= }"; IFS=":"
19776 for searchdir in $searchpath; do
19777 if test -d "$searchdir"; then
19778 case "$searchdir" in
19779 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
19780 *) searchdir=`cd "$searchdir" && pwd`
19781 case "$searchdir" in
19782 */lib64 ) acl_libdirstem=lib64 ;;
19783 esac ;;
19784 esac
19785 fi
19786 done
19787 IFS="$acl_save_IFS"
19788 fi
19789
19790
19791 if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "openssl"; then
19792
19793
19794 libssh2_save_CPPFLAGS="$CPPFLAGS"
19795 libssh2_save_LDFLAGS="$LDFLAGS"
19796
19797 if test "${with_libssl_prefix+set}" = set; then
19798 CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libssl_prefix}/include"
19799 LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libssl_prefix}/lib"
19800 fi
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812 use_additional=yes
19813
19814 acl_save_prefix="$prefix"
19815 prefix="$acl_final_prefix"
19816 acl_save_exec_prefix="$exec_prefix"
19817 exec_prefix="$acl_final_exec_prefix"
19818
19819 eval additional_includedir=\"$includedir\"
19820 eval additional_libdir=\"$libdir\"
19821
19822 exec_prefix="$acl_save_exec_prefix"
19823 prefix="$acl_save_prefix"
19824
19825
19826 # Check whether --with-libssl-prefix was given.
19827 if test ${with_libssl_prefix+y}
19828 then :
19829 withval=$with_libssl_prefix;
19830 if test "X$withval" = "Xno"; then
19831 use_additional=no
19832 else
19833 if test "X$withval" = "X"; then
19834
19835 acl_save_prefix="$prefix"
19836 prefix="$acl_final_prefix"
19837 acl_save_exec_prefix="$exec_prefix"
19838 exec_prefix="$acl_final_exec_prefix"
19839
19840 eval additional_includedir=\"$includedir\"
19841 eval additional_libdir=\"$libdir\"
19842
19843 exec_prefix="$acl_save_exec_prefix"
19844 prefix="$acl_save_prefix"
19845
19846 else
19847 additional_includedir="$withval/include"
19848 additional_libdir="$withval/$acl_libdirstem"
19849 fi
19850 fi
19851
19852 fi
19853
19854 LIBSSL=
19855 LTLIBSSL=
19856 INCSSL=
19857 LIBSSL_PREFIX=
19858 rpathdirs=
19859 ltrpathdirs=
19860 names_already_handled=
19861 names_next_round='ssl crypto'
19862 while test -n "$names_next_round"; do
19863 names_this_round="$names_next_round"
19864 names_next_round=
19865 for name in $names_this_round; do
19866 already_handled=
19867 for n in $names_already_handled; do
19868 if test "$n" = "$name"; then
19869 already_handled=yes
19870 break
19871 fi
19872 done
19873 if test -z "$already_handled"; then
19874 names_already_handled="$names_already_handled $name"
19875 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19876 eval value=\"\$HAVE_LIB$uppername\"
19877 if test -n "$value"; then
19878 if test "$value" = yes; then
19879 eval value=\"\$LIB$uppername\"
19880 test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value"
19881 eval value=\"\$LTLIB$uppername\"
19882 test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value"
19883 else
19884 :
19885 fi
19886 else
19887 found_dir=
19888 found_la=
19889 found_so=
19890 found_a=
19891 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19892 if test -n "$acl_shlibext"; then
19893 shrext=".$acl_shlibext" # typically: shrext=.so
19894 else
19895 shrext=
19896 fi
19897 if test $use_additional = yes; then
19898 dir="$additional_libdir"
19899 if test -n "$acl_shlibext"; then
19900 if test -f "$dir/$libname$shrext"; then
19901 found_dir="$dir"
19902 found_so="$dir/$libname$shrext"
19903 else
19904 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19905 ver=`(cd "$dir" && \
19906 for f in "$libname$shrext".*; do echo "$f"; done \
19907 | sed -e "s,^$libname$shrext\\\\.,," \
19908 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19909 | sed 1q ) 2>/dev/null`
19910 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19911 found_dir="$dir"
19912 found_so="$dir/$libname$shrext.$ver"
19913 fi
19914 else
19915 eval library_names=\"$acl_library_names_spec\"
19916 for f in $library_names; do
19917 if test -f "$dir/$f"; then
19918 found_dir="$dir"
19919 found_so="$dir/$f"
19920 break
19921 fi
19922 done
19923 fi
19924 fi
19925 fi
19926 if test "X$found_dir" = "X"; then
19927 if test -f "$dir/$libname.$acl_libext"; then
19928 found_dir="$dir"
19929 found_a="$dir/$libname.$acl_libext"
19930 fi
19931 fi
19932 if test "X$found_dir" != "X"; then
19933 if test -f "$dir/$libname.la"; then
19934 found_la="$dir/$libname.la"
19935 fi
19936 fi
19937 fi
19938 if test "X$found_dir" = "X"; then
19939 for x in $LDFLAGS $LTLIBSSL; do
19940
19941 acl_save_prefix="$prefix"
19942 prefix="$acl_final_prefix"
19943 acl_save_exec_prefix="$exec_prefix"
19944 exec_prefix="$acl_final_exec_prefix"
19945 eval x=\"$x\"
19946 exec_prefix="$acl_save_exec_prefix"
19947 prefix="$acl_save_prefix"
19948
19949 case "$x" in
19950 -L*)
19951 dir=`echo "X$x" | sed -e 's/^X-L//'`
19952 if test -n "$acl_shlibext"; then
19953 if test -f "$dir/$libname$shrext"; then
19954 found_dir="$dir"
19955 found_so="$dir/$libname$shrext"
19956 else
19957 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19958 ver=`(cd "$dir" && \
19959 for f in "$libname$shrext".*; do echo "$f"; done \
19960 | sed -e "s,^$libname$shrext\\\\.,," \
19961 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19962 | sed 1q ) 2>/dev/null`
19963 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19964 found_dir="$dir"
19965 found_so="$dir/$libname$shrext.$ver"
19966 fi
19967 else
19968 eval library_names=\"$acl_library_names_spec\"
19969 for f in $library_names; do
19970 if test -f "$dir/$f"; then
19971 found_dir="$dir"
19972 found_so="$dir/$f"
19973 break
19974 fi
19975 done
19976 fi
19977 fi
19978 fi
19979 if test "X$found_dir" = "X"; then
19980 if test -f "$dir/$libname.$acl_libext"; then
19981 found_dir="$dir"
19982 found_a="$dir/$libname.$acl_libext"
19983 fi
19984 fi
19985 if test "X$found_dir" != "X"; then
19986 if test -f "$dir/$libname.la"; then
19987 found_la="$dir/$libname.la"
19988 fi
19989 fi
19990 ;;
19991 esac
19992 if test "X$found_dir" != "X"; then
19993 break
19994 fi
19995 done
19996 fi
19997 if test "X$found_dir" != "X"; then
19998 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
19999 if test "X$found_so" != "X"; then
20000 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
20001 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
20002 else
20003 haveit=
20004 for x in $ltrpathdirs; do
20005 if test "X$x" = "X$found_dir"; then
20006 haveit=yes
20007 break
20008 fi
20009 done
20010 if test -z "$haveit"; then
20011 ltrpathdirs="$ltrpathdirs $found_dir"
20012 fi
20013 if test "$acl_hardcode_direct" = yes; then
20014 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
20015 else
20016 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20017 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
20018 haveit=
20019 for x in $rpathdirs; do
20020 if test "X$x" = "X$found_dir"; then
20021 haveit=yes
20022 break
20023 fi
20024 done
20025 if test -z "$haveit"; then
20026 rpathdirs="$rpathdirs $found_dir"
20027 fi
20028 else
20029 haveit=
20030 for x in $LDFLAGS $LIBSSL; do
20031
20032 acl_save_prefix="$prefix"
20033 prefix="$acl_final_prefix"
20034 acl_save_exec_prefix="$exec_prefix"
20035 exec_prefix="$acl_final_exec_prefix"
20036 eval x=\"$x\"
20037 exec_prefix="$acl_save_exec_prefix"
20038 prefix="$acl_save_prefix"
20039
20040 if test "X$x" = "X-L$found_dir"; then
20041 haveit=yes
20042 break
20043 fi
20044 done
20045 if test -z "$haveit"; then
20046 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
20047 fi
20048 if test "$acl_hardcode_minus_L" != no; then
20049 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
20050 else
20051 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
20052 fi
20053 fi
20054 fi
20055 fi
20056 else
20057 if test "X$found_a" != "X"; then
20058 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a"
20059 else
20060 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name"
20061 fi
20062 fi
20063 additional_includedir=
20064 case "$found_dir" in
20065 */$acl_libdirstem | */$acl_libdirstem/)
20066 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20067 LIBSSL_PREFIX="$basedir"
20068 additional_includedir="$basedir/include"
20069 ;;
20070 esac
20071 if test "X$additional_includedir" != "X"; then
20072 if test "X$additional_includedir" != "X/usr/include"; then
20073 haveit=
20074 if test "X$additional_includedir" = "X/usr/local/include"; then
20075 if test -n "$GCC"; then
20076 case $host_os in
20077 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20078 esac
20079 fi
20080 fi
20081 if test -z "$haveit"; then
20082 for x in $CPPFLAGS $INCSSL; do
20083
20084 acl_save_prefix="$prefix"
20085 prefix="$acl_final_prefix"
20086 acl_save_exec_prefix="$exec_prefix"
20087 exec_prefix="$acl_final_exec_prefix"
20088 eval x=\"$x\"
20089 exec_prefix="$acl_save_exec_prefix"
20090 prefix="$acl_save_prefix"
20091
20092 if test "X$x" = "X-I$additional_includedir"; then
20093 haveit=yes
20094 break
20095 fi
20096 done
20097 if test -z "$haveit"; then
20098 if test -d "$additional_includedir"; then
20099 INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir"
20100 fi
20101 fi
20102 fi
20103 fi
20104 fi
20105 if test -n "$found_la"; then
20106 save_libdir="$libdir"
20107 case "$found_la" in
20108 */* | *\\*) . "$found_la" ;;
20109 *) . "./$found_la" ;;
20110 esac
20111 libdir="$save_libdir"
20112 for dep in $dependency_libs; do
20113 case "$dep" in
20114 -L*)
20115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20116 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20117 haveit=
20118 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20119 if test -n "$GCC"; then
20120 case $host_os in
20121 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20122 esac
20123 fi
20124 fi
20125 if test -z "$haveit"; then
20126 haveit=
20127 for x in $LDFLAGS $LIBSSL; do
20128
20129 acl_save_prefix="$prefix"
20130 prefix="$acl_final_prefix"
20131 acl_save_exec_prefix="$exec_prefix"
20132 exec_prefix="$acl_final_exec_prefix"
20133 eval x=\"$x\"
20134 exec_prefix="$acl_save_exec_prefix"
20135 prefix="$acl_save_prefix"
20136
20137 if test "X$x" = "X-L$additional_libdir"; then
20138 haveit=yes
20139 break
20140 fi
20141 done
20142 if test -z "$haveit"; then
20143 if test -d "$additional_libdir"; then
20144 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir"
20145 fi
20146 fi
20147 haveit=
20148 for x in $LDFLAGS $LTLIBSSL; do
20149
20150 acl_save_prefix="$prefix"
20151 prefix="$acl_final_prefix"
20152 acl_save_exec_prefix="$exec_prefix"
20153 exec_prefix="$acl_final_exec_prefix"
20154 eval x=\"$x\"
20155 exec_prefix="$acl_save_exec_prefix"
20156 prefix="$acl_save_prefix"
20157
20158 if test "X$x" = "X-L$additional_libdir"; then
20159 haveit=yes
20160 break
20161 fi
20162 done
20163 if test -z "$haveit"; then
20164 if test -d "$additional_libdir"; then
20165 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir"
20166 fi
20167 fi
20168 fi
20169 fi
20170 ;;
20171 -R*)
20172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20173 if test "$enable_rpath" != no; then
20174 haveit=
20175 for x in $rpathdirs; do
20176 if test "X$x" = "X$dir"; then
20177 haveit=yes
20178 break
20179 fi
20180 done
20181 if test -z "$haveit"; then
20182 rpathdirs="$rpathdirs $dir"
20183 fi
20184 haveit=
20185 for x in $ltrpathdirs; do
20186 if test "X$x" = "X$dir"; then
20187 haveit=yes
20188 break
20189 fi
20190 done
20191 if test -z "$haveit"; then
20192 ltrpathdirs="$ltrpathdirs $dir"
20193 fi
20194 fi
20195 ;;
20196 -l*)
20197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20198 ;;
20199 *.la)
20200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20201 ;;
20202 *)
20203 LIBSSL="${LIBSSL}${LIBSSL:+ }$dep"
20204 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep"
20205 ;;
20206 esac
20207 done
20208 fi
20209 else
20210 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
20211 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name"
20212 fi
20213 fi
20214 fi
20215 done
20216 done
20217 if test "X$rpathdirs" != "X"; then
20218 if test -n "$acl_hardcode_libdir_separator"; then
20219 alldirs=
20220 for found_dir in $rpathdirs; do
20221 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20222 done
20223 acl_save_libdir="$libdir"
20224 libdir="$alldirs"
20225 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20226 libdir="$acl_save_libdir"
20227 LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
20228 else
20229 for found_dir in $rpathdirs; do
20230 acl_save_libdir="$libdir"
20231 libdir="$found_dir"
20232 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20233 libdir="$acl_save_libdir"
20234 LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
20235 done
20236 fi
20237 fi
20238 if test "X$ltrpathdirs" != "X"; then
20239 for found_dir in $ltrpathdirs; do
20240 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir"
20241 done
20242 fi
20243
20244
20245 ac_save_CPPFLAGS="$CPPFLAGS"
20246
20247 for element in $INCSSL; do
20248 haveit=
20249 for x in $CPPFLAGS; do
20250
20251 acl_save_prefix="$prefix"
20252 prefix="$acl_final_prefix"
20253 acl_save_exec_prefix="$exec_prefix"
20254 exec_prefix="$acl_final_exec_prefix"
20255 eval x=\"$x\"
20256 exec_prefix="$acl_save_exec_prefix"
20257 prefix="$acl_save_prefix"
20258
20259 if test "X$x" = "X$element"; then
20260 haveit=yes
20261 break
20262 fi
20263 done
20264 if test -z "$haveit"; then
20265 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20266 fi
20267 done
20268
20269
20270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5
20271 printf %s "checking for libssl... " >&6; }
20272 if test ${ac_cv_libssl+y}
20273 then :
20274 printf %s "(cached) " >&6
20275 else case e in #(
20276 e)
20277 ac_save_LIBS="$LIBS"
20278 LIBS="$LIBS $LIBSSL"
20279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h. */
20281 #include <openssl/ssl.h>
20282 int
20283 main (void)
20284 {
20285
20286 ;
20287 return 0;
20288 }
20289 _ACEOF
20290 if ac_fn_c_try_link "$LINENO"
20291 then :
20292 ac_cv_libssl=yes
20293 else case e in #(
20294 e) ac_cv_libssl=no ;;
20295 esac
20296 fi
20297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20298 conftest$ac_exeext conftest.$ac_ext
20299 LIBS="$ac_save_LIBS"
20300 ;;
20301 esac
20302 fi
20303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libssl" >&5
20304 printf "%s\n" "$ac_cv_libssl" >&6; }
20305 if test "$ac_cv_libssl" = yes; then
20306 HAVE_LIBSSL=yes
20307
20308 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
20309
20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libssl" >&5
20311 printf %s "checking how to link with libssl... " >&6; }
20312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBSSL" >&5
20313 printf "%s\n" "$LIBSSL" >&6; }
20314 else
20315 HAVE_LIBSSL=no
20316 CPPFLAGS="$ac_save_CPPFLAGS"
20317 LIBSSL=
20318 LTLIBSSL=
20319 LIBSSL_PREFIX=
20320 fi
20321
20322
20323
20324
20325
20326
20327
20328
20329 if test "$ac_cv_libssl" = "yes"; then :
20330
20331
20332 printf "%s\n" "#define LIBSSH2_OPENSSL 1" >>confdefs.h
20333
20334 LIBSSH2_PC_REQUIRES_PRIVATE="$LIBSSH2_PC_REQUIRES_PRIVATE${LIBSSH2_PC_REQUIRES_PRIVATE:+,}libcrypto"
20335 found_crypto="openssl"
20336 found_crypto_str="OpenSSL"
20337
20338 else
20339 CPPFLAGS="$libssh2_save_CPPFLAGS"
20340 LDFLAGS="$libssh2_save_LDFLAGS"
20341 fi
20342
20343
20344 test "$found_crypto" = "none" &&
20345 crypto_errors="${crypto_errors}No openssl crypto library found!
20346 "
20347 fi
20348
20349 if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "libgcrypt"; then
20350
20351
20352 libssh2_save_CPPFLAGS="$CPPFLAGS"
20353 libssh2_save_LDFLAGS="$LDFLAGS"
20354
20355 if test "${with_libgcrypt_prefix+set}" = set; then
20356 CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libgcrypt_prefix}/include"
20357 LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libgcrypt_prefix}/lib"
20358 fi
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370 use_additional=yes
20371
20372 acl_save_prefix="$prefix"
20373 prefix="$acl_final_prefix"
20374 acl_save_exec_prefix="$exec_prefix"
20375 exec_prefix="$acl_final_exec_prefix"
20376
20377 eval additional_includedir=\"$includedir\"
20378 eval additional_libdir=\"$libdir\"
20379
20380 exec_prefix="$acl_save_exec_prefix"
20381 prefix="$acl_save_prefix"
20382
20383
20384 # Check whether --with-libgcrypt-prefix was given.
20385 if test ${with_libgcrypt_prefix+y}
20386 then :
20387 withval=$with_libgcrypt_prefix;
20388 if test "X$withval" = "Xno"; then
20389 use_additional=no
20390 else
20391 if test "X$withval" = "X"; then
20392
20393 acl_save_prefix="$prefix"
20394 prefix="$acl_final_prefix"
20395 acl_save_exec_prefix="$exec_prefix"
20396 exec_prefix="$acl_final_exec_prefix"
20397
20398 eval additional_includedir=\"$includedir\"
20399 eval additional_libdir=\"$libdir\"
20400
20401 exec_prefix="$acl_save_exec_prefix"
20402 prefix="$acl_save_prefix"
20403
20404 else
20405 additional_includedir="$withval/include"
20406 additional_libdir="$withval/$acl_libdirstem"
20407 fi
20408 fi
20409
20410 fi
20411
20412 LIBGCRYPT=
20413 LTLIBGCRYPT=
20414 INCGCRYPT=
20415 LIBGCRYPT_PREFIX=
20416 rpathdirs=
20417 ltrpathdirs=
20418 names_already_handled=
20419 names_next_round='gcrypt '
20420 while test -n "$names_next_round"; do
20421 names_this_round="$names_next_round"
20422 names_next_round=
20423 for name in $names_this_round; do
20424 already_handled=
20425 for n in $names_already_handled; do
20426 if test "$n" = "$name"; then
20427 already_handled=yes
20428 break
20429 fi
20430 done
20431 if test -z "$already_handled"; then
20432 names_already_handled="$names_already_handled $name"
20433 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20434 eval value=\"\$HAVE_LIB$uppername\"
20435 if test -n "$value"; then
20436 if test "$value" = yes; then
20437 eval value=\"\$LIB$uppername\"
20438 test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
20439 eval value=\"\$LTLIB$uppername\"
20440 test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
20441 else
20442 :
20443 fi
20444 else
20445 found_dir=
20446 found_la=
20447 found_so=
20448 found_a=
20449 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20450 if test -n "$acl_shlibext"; then
20451 shrext=".$acl_shlibext" # typically: shrext=.so
20452 else
20453 shrext=
20454 fi
20455 if test $use_additional = yes; then
20456 dir="$additional_libdir"
20457 if test -n "$acl_shlibext"; then
20458 if test -f "$dir/$libname$shrext"; then
20459 found_dir="$dir"
20460 found_so="$dir/$libname$shrext"
20461 else
20462 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20463 ver=`(cd "$dir" && \
20464 for f in "$libname$shrext".*; do echo "$f"; done \
20465 | sed -e "s,^$libname$shrext\\\\.,," \
20466 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20467 | sed 1q ) 2>/dev/null`
20468 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20469 found_dir="$dir"
20470 found_so="$dir/$libname$shrext.$ver"
20471 fi
20472 else
20473 eval library_names=\"$acl_library_names_spec\"
20474 for f in $library_names; do
20475 if test -f "$dir/$f"; then
20476 found_dir="$dir"
20477 found_so="$dir/$f"
20478 break
20479 fi
20480 done
20481 fi
20482 fi
20483 fi
20484 if test "X$found_dir" = "X"; then
20485 if test -f "$dir/$libname.$acl_libext"; then
20486 found_dir="$dir"
20487 found_a="$dir/$libname.$acl_libext"
20488 fi
20489 fi
20490 if test "X$found_dir" != "X"; then
20491 if test -f "$dir/$libname.la"; then
20492 found_la="$dir/$libname.la"
20493 fi
20494 fi
20495 fi
20496 if test "X$found_dir" = "X"; then
20497 for x in $LDFLAGS $LTLIBGCRYPT; do
20498
20499 acl_save_prefix="$prefix"
20500 prefix="$acl_final_prefix"
20501 acl_save_exec_prefix="$exec_prefix"
20502 exec_prefix="$acl_final_exec_prefix"
20503 eval x=\"$x\"
20504 exec_prefix="$acl_save_exec_prefix"
20505 prefix="$acl_save_prefix"
20506
20507 case "$x" in
20508 -L*)
20509 dir=`echo "X$x" | sed -e 's/^X-L//'`
20510 if test -n "$acl_shlibext"; then
20511 if test -f "$dir/$libname$shrext"; then
20512 found_dir="$dir"
20513 found_so="$dir/$libname$shrext"
20514 else
20515 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20516 ver=`(cd "$dir" && \
20517 for f in "$libname$shrext".*; do echo "$f"; done \
20518 | sed -e "s,^$libname$shrext\\\\.,," \
20519 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20520 | sed 1q ) 2>/dev/null`
20521 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20522 found_dir="$dir"
20523 found_so="$dir/$libname$shrext.$ver"
20524 fi
20525 else
20526 eval library_names=\"$acl_library_names_spec\"
20527 for f in $library_names; do
20528 if test -f "$dir/$f"; then
20529 found_dir="$dir"
20530 found_so="$dir/$f"
20531 break
20532 fi
20533 done
20534 fi
20535 fi
20536 fi
20537 if test "X$found_dir" = "X"; then
20538 if test -f "$dir/$libname.$acl_libext"; then
20539 found_dir="$dir"
20540 found_a="$dir/$libname.$acl_libext"
20541 fi
20542 fi
20543 if test "X$found_dir" != "X"; then
20544 if test -f "$dir/$libname.la"; then
20545 found_la="$dir/$libname.la"
20546 fi
20547 fi
20548 ;;
20549 esac
20550 if test "X$found_dir" != "X"; then
20551 break
20552 fi
20553 done
20554 fi
20555 if test "X$found_dir" != "X"; then
20556 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
20557 if test "X$found_so" != "X"; then
20558 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
20559 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
20560 else
20561 haveit=
20562 for x in $ltrpathdirs; do
20563 if test "X$x" = "X$found_dir"; then
20564 haveit=yes
20565 break
20566 fi
20567 done
20568 if test -z "$haveit"; then
20569 ltrpathdirs="$ltrpathdirs $found_dir"
20570 fi
20571 if test "$acl_hardcode_direct" = yes; then
20572 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
20573 else
20574 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20575 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
20576 haveit=
20577 for x in $rpathdirs; do
20578 if test "X$x" = "X$found_dir"; then
20579 haveit=yes
20580 break
20581 fi
20582 done
20583 if test -z "$haveit"; then
20584 rpathdirs="$rpathdirs $found_dir"
20585 fi
20586 else
20587 haveit=
20588 for x in $LDFLAGS $LIBGCRYPT; do
20589
20590 acl_save_prefix="$prefix"
20591 prefix="$acl_final_prefix"
20592 acl_save_exec_prefix="$exec_prefix"
20593 exec_prefix="$acl_final_exec_prefix"
20594 eval x=\"$x\"
20595 exec_prefix="$acl_save_exec_prefix"
20596 prefix="$acl_save_prefix"
20597
20598 if test "X$x" = "X-L$found_dir"; then
20599 haveit=yes
20600 break
20601 fi
20602 done
20603 if test -z "$haveit"; then
20604 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
20605 fi
20606 if test "$acl_hardcode_minus_L" != no; then
20607 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
20608 else
20609 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
20610 fi
20611 fi
20612 fi
20613 fi
20614 else
20615 if test "X$found_a" != "X"; then
20616 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
20617 else
20618 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
20619 fi
20620 fi
20621 additional_includedir=
20622 case "$found_dir" in
20623 */$acl_libdirstem | */$acl_libdirstem/)
20624 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20625 LIBGCRYPT_PREFIX="$basedir"
20626 additional_includedir="$basedir/include"
20627 ;;
20628 esac
20629 if test "X$additional_includedir" != "X"; then
20630 if test "X$additional_includedir" != "X/usr/include"; then
20631 haveit=
20632 if test "X$additional_includedir" = "X/usr/local/include"; then
20633 if test -n "$GCC"; then
20634 case $host_os in
20635 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20636 esac
20637 fi
20638 fi
20639 if test -z "$haveit"; then
20640 for x in $CPPFLAGS $INCGCRYPT; do
20641
20642 acl_save_prefix="$prefix"
20643 prefix="$acl_final_prefix"
20644 acl_save_exec_prefix="$exec_prefix"
20645 exec_prefix="$acl_final_exec_prefix"
20646 eval x=\"$x\"
20647 exec_prefix="$acl_save_exec_prefix"
20648 prefix="$acl_save_prefix"
20649
20650 if test "X$x" = "X-I$additional_includedir"; then
20651 haveit=yes
20652 break
20653 fi
20654 done
20655 if test -z "$haveit"; then
20656 if test -d "$additional_includedir"; then
20657 INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
20658 fi
20659 fi
20660 fi
20661 fi
20662 fi
20663 if test -n "$found_la"; then
20664 save_libdir="$libdir"
20665 case "$found_la" in
20666 */* | *\\*) . "$found_la" ;;
20667 *) . "./$found_la" ;;
20668 esac
20669 libdir="$save_libdir"
20670 for dep in $dependency_libs; do
20671 case "$dep" in
20672 -L*)
20673 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20674 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20675 haveit=
20676 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20677 if test -n "$GCC"; then
20678 case $host_os in
20679 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20680 esac
20681 fi
20682 fi
20683 if test -z "$haveit"; then
20684 haveit=
20685 for x in $LDFLAGS $LIBGCRYPT; do
20686
20687 acl_save_prefix="$prefix"
20688 prefix="$acl_final_prefix"
20689 acl_save_exec_prefix="$exec_prefix"
20690 exec_prefix="$acl_final_exec_prefix"
20691 eval x=\"$x\"
20692 exec_prefix="$acl_save_exec_prefix"
20693 prefix="$acl_save_prefix"
20694
20695 if test "X$x" = "X-L$additional_libdir"; then
20696 haveit=yes
20697 break
20698 fi
20699 done
20700 if test -z "$haveit"; then
20701 if test -d "$additional_libdir"; then
20702 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
20703 fi
20704 fi
20705 haveit=
20706 for x in $LDFLAGS $LTLIBGCRYPT; do
20707
20708 acl_save_prefix="$prefix"
20709 prefix="$acl_final_prefix"
20710 acl_save_exec_prefix="$exec_prefix"
20711 exec_prefix="$acl_final_exec_prefix"
20712 eval x=\"$x\"
20713 exec_prefix="$acl_save_exec_prefix"
20714 prefix="$acl_save_prefix"
20715
20716 if test "X$x" = "X-L$additional_libdir"; then
20717 haveit=yes
20718 break
20719 fi
20720 done
20721 if test -z "$haveit"; then
20722 if test -d "$additional_libdir"; then
20723 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
20724 fi
20725 fi
20726 fi
20727 fi
20728 ;;
20729 -R*)
20730 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20731 if test "$enable_rpath" != no; then
20732 haveit=
20733 for x in $rpathdirs; do
20734 if test "X$x" = "X$dir"; then
20735 haveit=yes
20736 break
20737 fi
20738 done
20739 if test -z "$haveit"; then
20740 rpathdirs="$rpathdirs $dir"
20741 fi
20742 haveit=
20743 for x in $ltrpathdirs; do
20744 if test "X$x" = "X$dir"; then
20745 haveit=yes
20746 break
20747 fi
20748 done
20749 if test -z "$haveit"; then
20750 ltrpathdirs="$ltrpathdirs $dir"
20751 fi
20752 fi
20753 ;;
20754 -l*)
20755 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20756 ;;
20757 *.la)
20758 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20759 ;;
20760 *)
20761 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
20762 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
20763 ;;
20764 esac
20765 done
20766 fi
20767 else
20768 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
20769 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
20770 fi
20771 fi
20772 fi
20773 done
20774 done
20775 if test "X$rpathdirs" != "X"; then
20776 if test -n "$acl_hardcode_libdir_separator"; then
20777 alldirs=
20778 for found_dir in $rpathdirs; do
20779 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20780 done
20781 acl_save_libdir="$libdir"
20782 libdir="$alldirs"
20783 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20784 libdir="$acl_save_libdir"
20785 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
20786 else
20787 for found_dir in $rpathdirs; do
20788 acl_save_libdir="$libdir"
20789 libdir="$found_dir"
20790 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20791 libdir="$acl_save_libdir"
20792 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
20793 done
20794 fi
20795 fi
20796 if test "X$ltrpathdirs" != "X"; then
20797 for found_dir in $ltrpathdirs; do
20798 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
20799 done
20800 fi
20801
20802
20803 ac_save_CPPFLAGS="$CPPFLAGS"
20804
20805 for element in $INCGCRYPT; do
20806 haveit=
20807 for x in $CPPFLAGS; do
20808
20809 acl_save_prefix="$prefix"
20810 prefix="$acl_final_prefix"
20811 acl_save_exec_prefix="$exec_prefix"
20812 exec_prefix="$acl_final_exec_prefix"
20813 eval x=\"$x\"
20814 exec_prefix="$acl_save_exec_prefix"
20815 prefix="$acl_save_prefix"
20816
20817 if test "X$x" = "X$element"; then
20818 haveit=yes
20819 break
20820 fi
20821 done
20822 if test -z "$haveit"; then
20823 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20824 fi
20825 done
20826
20827
20828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
20829 printf %s "checking for libgcrypt... " >&6; }
20830 if test ${ac_cv_libgcrypt+y}
20831 then :
20832 printf %s "(cached) " >&6
20833 else case e in #(
20834 e)
20835 ac_save_LIBS="$LIBS"
20836 LIBS="$LIBS $LIBGCRYPT"
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h. */
20839 #include <gcrypt.h>
20840 int
20841 main (void)
20842 {
20843
20844 ;
20845 return 0;
20846 }
20847 _ACEOF
20848 if ac_fn_c_try_link "$LINENO"
20849 then :
20850 ac_cv_libgcrypt=yes
20851 else case e in #(
20852 e) ac_cv_libgcrypt=no ;;
20853 esac
20854 fi
20855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20856 conftest$ac_exeext conftest.$ac_ext
20857 LIBS="$ac_save_LIBS"
20858 ;;
20859 esac
20860 fi
20861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
20862 printf "%s\n" "$ac_cv_libgcrypt" >&6; }
20863 if test "$ac_cv_libgcrypt" = yes; then
20864 HAVE_LIBGCRYPT=yes
20865
20866 printf "%s\n" "#define HAVE_LIBGCRYPT 1" >>confdefs.h
20867
20868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
20869 printf %s "checking how to link with libgcrypt... " >&6; }
20870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
20871 printf "%s\n" "$LIBGCRYPT" >&6; }
20872 else
20873 HAVE_LIBGCRYPT=no
20874 CPPFLAGS="$ac_save_CPPFLAGS"
20875 LIBGCRYPT=
20876 LTLIBGCRYPT=
20877 LIBGCRYPT_PREFIX=
20878 fi
20879
20880
20881
20882
20883
20884
20885
20886
20887 if test "$ac_cv_libgcrypt" = "yes"; then :
20888
20889
20890 printf "%s\n" "#define LIBSSH2_LIBGCRYPT 1" >>confdefs.h
20891
20892 LIBSSH2_PC_REQUIRES_PRIVATE="$LIBSSH2_PC_REQUIRES_PRIVATE${LIBSSH2_PC_REQUIRES_PRIVATE:+,}libgcrypt"
20893 found_crypto="libgcrypt"
20894
20895 else
20896 CPPFLAGS="$libssh2_save_CPPFLAGS"
20897 LDFLAGS="$libssh2_save_LDFLAGS"
20898 fi
20899
20900
20901 test "$found_crypto" = "none" &&
20902 crypto_errors="${crypto_errors}No libgcrypt crypto library found!
20903 "
20904 fi
20905
20906 if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "mbedtls"; then
20907
20908
20909 libssh2_save_CPPFLAGS="$CPPFLAGS"
20910 libssh2_save_LDFLAGS="$LDFLAGS"
20911
20912 if test "${with_libmbedcrypto_prefix+set}" = set; then
20913 CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libmbedcrypto_prefix}/include"
20914 LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libmbedcrypto_prefix}/lib"
20915 fi
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927 use_additional=yes
20928
20929 acl_save_prefix="$prefix"
20930 prefix="$acl_final_prefix"
20931 acl_save_exec_prefix="$exec_prefix"
20932 exec_prefix="$acl_final_exec_prefix"
20933
20934 eval additional_includedir=\"$includedir\"
20935 eval additional_libdir=\"$libdir\"
20936
20937 exec_prefix="$acl_save_exec_prefix"
20938 prefix="$acl_save_prefix"
20939
20940
20941 # Check whether --with-libmbedcrypto-prefix was given.
20942 if test ${with_libmbedcrypto_prefix+y}
20943 then :
20944 withval=$with_libmbedcrypto_prefix;
20945 if test "X$withval" = "Xno"; then
20946 use_additional=no
20947 else
20948 if test "X$withval" = "X"; then
20949
20950 acl_save_prefix="$prefix"
20951 prefix="$acl_final_prefix"
20952 acl_save_exec_prefix="$exec_prefix"
20953 exec_prefix="$acl_final_exec_prefix"
20954
20955 eval additional_includedir=\"$includedir\"
20956 eval additional_libdir=\"$libdir\"
20957
20958 exec_prefix="$acl_save_exec_prefix"
20959 prefix="$acl_save_prefix"
20960
20961 else
20962 additional_includedir="$withval/include"
20963 additional_libdir="$withval/$acl_libdirstem"
20964 fi
20965 fi
20966
20967 fi
20968
20969 LIBMBEDCRYPTO=
20970 LTLIBMBEDCRYPTO=
20971 INCMBEDCRYPTO=
20972 LIBMBEDCRYPTO_PREFIX=
20973 rpathdirs=
20974 ltrpathdirs=
20975 names_already_handled=
20976 names_next_round='mbedcrypto '
20977 while test -n "$names_next_round"; do
20978 names_this_round="$names_next_round"
20979 names_next_round=
20980 for name in $names_this_round; do
20981 already_handled=
20982 for n in $names_already_handled; do
20983 if test "$n" = "$name"; then
20984 already_handled=yes
20985 break
20986 fi
20987 done
20988 if test -z "$already_handled"; then
20989 names_already_handled="$names_already_handled $name"
20990 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20991 eval value=\"\$HAVE_LIB$uppername\"
20992 if test -n "$value"; then
20993 if test "$value" = yes; then
20994 eval value=\"\$LIB$uppername\"
20995 test -z "$value" || LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$value"
20996 eval value=\"\$LTLIB$uppername\"
20997 test -z "$value" || LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }$value"
20998 else
20999 :
21000 fi
21001 else
21002 found_dir=
21003 found_la=
21004 found_so=
21005 found_a=
21006 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21007 if test -n "$acl_shlibext"; then
21008 shrext=".$acl_shlibext" # typically: shrext=.so
21009 else
21010 shrext=
21011 fi
21012 if test $use_additional = yes; then
21013 dir="$additional_libdir"
21014 if test -n "$acl_shlibext"; then
21015 if test -f "$dir/$libname$shrext"; then
21016 found_dir="$dir"
21017 found_so="$dir/$libname$shrext"
21018 else
21019 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21020 ver=`(cd "$dir" && \
21021 for f in "$libname$shrext".*; do echo "$f"; done \
21022 | sed -e "s,^$libname$shrext\\\\.,," \
21023 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21024 | sed 1q ) 2>/dev/null`
21025 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21026 found_dir="$dir"
21027 found_so="$dir/$libname$shrext.$ver"
21028 fi
21029 else
21030 eval library_names=\"$acl_library_names_spec\"
21031 for f in $library_names; do
21032 if test -f "$dir/$f"; then
21033 found_dir="$dir"
21034 found_so="$dir/$f"
21035 break
21036 fi
21037 done
21038 fi
21039 fi
21040 fi
21041 if test "X$found_dir" = "X"; then
21042 if test -f "$dir/$libname.$acl_libext"; then
21043 found_dir="$dir"
21044 found_a="$dir/$libname.$acl_libext"
21045 fi
21046 fi
21047 if test "X$found_dir" != "X"; then
21048 if test -f "$dir/$libname.la"; then
21049 found_la="$dir/$libname.la"
21050 fi
21051 fi
21052 fi
21053 if test "X$found_dir" = "X"; then
21054 for x in $LDFLAGS $LTLIBMBEDCRYPTO; do
21055
21056 acl_save_prefix="$prefix"
21057 prefix="$acl_final_prefix"
21058 acl_save_exec_prefix="$exec_prefix"
21059 exec_prefix="$acl_final_exec_prefix"
21060 eval x=\"$x\"
21061 exec_prefix="$acl_save_exec_prefix"
21062 prefix="$acl_save_prefix"
21063
21064 case "$x" in
21065 -L*)
21066 dir=`echo "X$x" | sed -e 's/^X-L//'`
21067 if test -n "$acl_shlibext"; then
21068 if test -f "$dir/$libname$shrext"; then
21069 found_dir="$dir"
21070 found_so="$dir/$libname$shrext"
21071 else
21072 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21073 ver=`(cd "$dir" && \
21074 for f in "$libname$shrext".*; do echo "$f"; done \
21075 | sed -e "s,^$libname$shrext\\\\.,," \
21076 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21077 | sed 1q ) 2>/dev/null`
21078 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21079 found_dir="$dir"
21080 found_so="$dir/$libname$shrext.$ver"
21081 fi
21082 else
21083 eval library_names=\"$acl_library_names_spec\"
21084 for f in $library_names; do
21085 if test -f "$dir/$f"; then
21086 found_dir="$dir"
21087 found_so="$dir/$f"
21088 break
21089 fi
21090 done
21091 fi
21092 fi
21093 fi
21094 if test "X$found_dir" = "X"; then
21095 if test -f "$dir/$libname.$acl_libext"; then
21096 found_dir="$dir"
21097 found_a="$dir/$libname.$acl_libext"
21098 fi
21099 fi
21100 if test "X$found_dir" != "X"; then
21101 if test -f "$dir/$libname.la"; then
21102 found_la="$dir/$libname.la"
21103 fi
21104 fi
21105 ;;
21106 esac
21107 if test "X$found_dir" != "X"; then
21108 break
21109 fi
21110 done
21111 fi
21112 if test "X$found_dir" != "X"; then
21113 LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }-L$found_dir -l$name"
21114 if test "X$found_so" != "X"; then
21115 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21116 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_so"
21117 else
21118 haveit=
21119 for x in $ltrpathdirs; do
21120 if test "X$x" = "X$found_dir"; then
21121 haveit=yes
21122 break
21123 fi
21124 done
21125 if test -z "$haveit"; then
21126 ltrpathdirs="$ltrpathdirs $found_dir"
21127 fi
21128 if test "$acl_hardcode_direct" = yes; then
21129 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_so"
21130 else
21131 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21132 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_so"
21133 haveit=
21134 for x in $rpathdirs; do
21135 if test "X$x" = "X$found_dir"; then
21136 haveit=yes
21137 break
21138 fi
21139 done
21140 if test -z "$haveit"; then
21141 rpathdirs="$rpathdirs $found_dir"
21142 fi
21143 else
21144 haveit=
21145 for x in $LDFLAGS $LIBMBEDCRYPTO; do
21146
21147 acl_save_prefix="$prefix"
21148 prefix="$acl_final_prefix"
21149 acl_save_exec_prefix="$exec_prefix"
21150 exec_prefix="$acl_final_exec_prefix"
21151 eval x=\"$x\"
21152 exec_prefix="$acl_save_exec_prefix"
21153 prefix="$acl_save_prefix"
21154
21155 if test "X$x" = "X-L$found_dir"; then
21156 haveit=yes
21157 break
21158 fi
21159 done
21160 if test -z "$haveit"; then
21161 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-L$found_dir"
21162 fi
21163 if test "$acl_hardcode_minus_L" != no; then
21164 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_so"
21165 else
21166 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-l$name"
21167 fi
21168 fi
21169 fi
21170 fi
21171 else
21172 if test "X$found_a" != "X"; then
21173 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_a"
21174 else
21175 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-L$found_dir -l$name"
21176 fi
21177 fi
21178 additional_includedir=
21179 case "$found_dir" in
21180 */$acl_libdirstem | */$acl_libdirstem/)
21181 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21182 LIBMBEDCRYPTO_PREFIX="$basedir"
21183 additional_includedir="$basedir/include"
21184 ;;
21185 esac
21186 if test "X$additional_includedir" != "X"; then
21187 if test "X$additional_includedir" != "X/usr/include"; then
21188 haveit=
21189 if test "X$additional_includedir" = "X/usr/local/include"; then
21190 if test -n "$GCC"; then
21191 case $host_os in
21192 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21193 esac
21194 fi
21195 fi
21196 if test -z "$haveit"; then
21197 for x in $CPPFLAGS $INCMBEDCRYPTO; do
21198
21199 acl_save_prefix="$prefix"
21200 prefix="$acl_final_prefix"
21201 acl_save_exec_prefix="$exec_prefix"
21202 exec_prefix="$acl_final_exec_prefix"
21203 eval x=\"$x\"
21204 exec_prefix="$acl_save_exec_prefix"
21205 prefix="$acl_save_prefix"
21206
21207 if test "X$x" = "X-I$additional_includedir"; then
21208 haveit=yes
21209 break
21210 fi
21211 done
21212 if test -z "$haveit"; then
21213 if test -d "$additional_includedir"; then
21214 INCMBEDCRYPTO="${INCMBEDCRYPTO}${INCMBEDCRYPTO:+ }-I$additional_includedir"
21215 fi
21216 fi
21217 fi
21218 fi
21219 fi
21220 if test -n "$found_la"; then
21221 save_libdir="$libdir"
21222 case "$found_la" in
21223 */* | *\\*) . "$found_la" ;;
21224 *) . "./$found_la" ;;
21225 esac
21226 libdir="$save_libdir"
21227 for dep in $dependency_libs; do
21228 case "$dep" in
21229 -L*)
21230 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21231 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21232 haveit=
21233 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21234 if test -n "$GCC"; then
21235 case $host_os in
21236 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21237 esac
21238 fi
21239 fi
21240 if test -z "$haveit"; then
21241 haveit=
21242 for x in $LDFLAGS $LIBMBEDCRYPTO; do
21243
21244 acl_save_prefix="$prefix"
21245 prefix="$acl_final_prefix"
21246 acl_save_exec_prefix="$exec_prefix"
21247 exec_prefix="$acl_final_exec_prefix"
21248 eval x=\"$x\"
21249 exec_prefix="$acl_save_exec_prefix"
21250 prefix="$acl_save_prefix"
21251
21252 if test "X$x" = "X-L$additional_libdir"; then
21253 haveit=yes
21254 break
21255 fi
21256 done
21257 if test -z "$haveit"; then
21258 if test -d "$additional_libdir"; then
21259 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-L$additional_libdir"
21260 fi
21261 fi
21262 haveit=
21263 for x in $LDFLAGS $LTLIBMBEDCRYPTO; do
21264
21265 acl_save_prefix="$prefix"
21266 prefix="$acl_final_prefix"
21267 acl_save_exec_prefix="$exec_prefix"
21268 exec_prefix="$acl_final_exec_prefix"
21269 eval x=\"$x\"
21270 exec_prefix="$acl_save_exec_prefix"
21271 prefix="$acl_save_prefix"
21272
21273 if test "X$x" = "X-L$additional_libdir"; then
21274 haveit=yes
21275 break
21276 fi
21277 done
21278 if test -z "$haveit"; then
21279 if test -d "$additional_libdir"; then
21280 LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }-L$additional_libdir"
21281 fi
21282 fi
21283 fi
21284 fi
21285 ;;
21286 -R*)
21287 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21288 if test "$enable_rpath" != no; then
21289 haveit=
21290 for x in $rpathdirs; do
21291 if test "X$x" = "X$dir"; then
21292 haveit=yes
21293 break
21294 fi
21295 done
21296 if test -z "$haveit"; then
21297 rpathdirs="$rpathdirs $dir"
21298 fi
21299 haveit=
21300 for x in $ltrpathdirs; do
21301 if test "X$x" = "X$dir"; then
21302 haveit=yes
21303 break
21304 fi
21305 done
21306 if test -z "$haveit"; then
21307 ltrpathdirs="$ltrpathdirs $dir"
21308 fi
21309 fi
21310 ;;
21311 -l*)
21312 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21313 ;;
21314 *.la)
21315 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21316 ;;
21317 *)
21318 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$dep"
21319 LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }$dep"
21320 ;;
21321 esac
21322 done
21323 fi
21324 else
21325 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-l$name"
21326 LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }-l$name"
21327 fi
21328 fi
21329 fi
21330 done
21331 done
21332 if test "X$rpathdirs" != "X"; then
21333 if test -n "$acl_hardcode_libdir_separator"; then
21334 alldirs=
21335 for found_dir in $rpathdirs; do
21336 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21337 done
21338 acl_save_libdir="$libdir"
21339 libdir="$alldirs"
21340 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21341 libdir="$acl_save_libdir"
21342 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$flag"
21343 else
21344 for found_dir in $rpathdirs; do
21345 acl_save_libdir="$libdir"
21346 libdir="$found_dir"
21347 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21348 libdir="$acl_save_libdir"
21349 LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$flag"
21350 done
21351 fi
21352 fi
21353 if test "X$ltrpathdirs" != "X"; then
21354 for found_dir in $ltrpathdirs; do
21355 LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }-R$found_dir"
21356 done
21357 fi
21358
21359
21360 ac_save_CPPFLAGS="$CPPFLAGS"
21361
21362 for element in $INCMBEDCRYPTO; do
21363 haveit=
21364 for x in $CPPFLAGS; do
21365
21366 acl_save_prefix="$prefix"
21367 prefix="$acl_final_prefix"
21368 acl_save_exec_prefix="$exec_prefix"
21369 exec_prefix="$acl_final_exec_prefix"
21370 eval x=\"$x\"
21371 exec_prefix="$acl_save_exec_prefix"
21372 prefix="$acl_save_prefix"
21373
21374 if test "X$x" = "X$element"; then
21375 haveit=yes
21376 break
21377 fi
21378 done
21379 if test -z "$haveit"; then
21380 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21381 fi
21382 done
21383
21384
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmbedcrypto" >&5
21386 printf %s "checking for libmbedcrypto... " >&6; }
21387 if test ${ac_cv_libmbedcrypto+y}
21388 then :
21389 printf %s "(cached) " >&6
21390 else case e in #(
21391 e)
21392 ac_save_LIBS="$LIBS"
21393 LIBS="$LIBS $LIBMBEDCRYPTO"
21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21396 #include <mbedtls/version.h>
21397 int
21398 main (void)
21399 {
21400
21401 ;
21402 return 0;
21403 }
21404 _ACEOF
21405 if ac_fn_c_try_link "$LINENO"
21406 then :
21407 ac_cv_libmbedcrypto=yes
21408 else case e in #(
21409 e) ac_cv_libmbedcrypto=no ;;
21410 esac
21411 fi
21412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21413 conftest$ac_exeext conftest.$ac_ext
21414 LIBS="$ac_save_LIBS"
21415 ;;
21416 esac
21417 fi
21418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmbedcrypto" >&5
21419 printf "%s\n" "$ac_cv_libmbedcrypto" >&6; }
21420 if test "$ac_cv_libmbedcrypto" = yes; then
21421 HAVE_LIBMBEDCRYPTO=yes
21422
21423 printf "%s\n" "#define HAVE_LIBMBEDCRYPTO 1" >>confdefs.h
21424
21425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libmbedcrypto" >&5
21426 printf %s "checking how to link with libmbedcrypto... " >&6; }
21427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBMBEDCRYPTO" >&5
21428 printf "%s\n" "$LIBMBEDCRYPTO" >&6; }
21429 else
21430 HAVE_LIBMBEDCRYPTO=no
21431 CPPFLAGS="$ac_save_CPPFLAGS"
21432 LIBMBEDCRYPTO=
21433 LTLIBMBEDCRYPTO=
21434 LIBMBEDCRYPTO_PREFIX=
21435 fi
21436
21437
21438
21439
21440
21441
21442
21443
21444 if test "$ac_cv_libmbedcrypto" = "yes"; then :
21445
21446
21447 printf "%s\n" "#define LIBSSH2_MBEDTLS 1" >>confdefs.h
21448
21449 LIBS="$LIBS -lmbedcrypto"
21450 found_crypto="mbedtls"
21451
21452 else
21453 CPPFLAGS="$libssh2_save_CPPFLAGS"
21454 LDFLAGS="$libssh2_save_LDFLAGS"
21455 fi
21456
21457
21458 test "$found_crypto" = "none" &&
21459 crypto_errors="${crypto_errors}No mbedtls crypto library found!
21460 "
21461 fi
21462
21463 if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "wincng"; then
21464
21465 if test "x$have_windows_h" = "xyes"; then
21466 # Look for Windows Cryptography API: Next Generation
21467
21468 LIBS="$LIBS -lcrypt32"
21469
21470 # Check necessary for old-MinGW
21471
21472 libssh2_save_CPPFLAGS="$CPPFLAGS"
21473 libssh2_save_LDFLAGS="$LDFLAGS"
21474
21475 if test "${with_libbcrypt_prefix+set}" = set; then
21476 CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libbcrypt_prefix}/include"
21477 LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libbcrypt_prefix}/lib"
21478 fi
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490 use_additional=yes
21491
21492 acl_save_prefix="$prefix"
21493 prefix="$acl_final_prefix"
21494 acl_save_exec_prefix="$exec_prefix"
21495 exec_prefix="$acl_final_exec_prefix"
21496
21497 eval additional_includedir=\"$includedir\"
21498 eval additional_libdir=\"$libdir\"
21499
21500 exec_prefix="$acl_save_exec_prefix"
21501 prefix="$acl_save_prefix"
21502
21503
21504 # Check whether --with-libbcrypt-prefix was given.
21505 if test ${with_libbcrypt_prefix+y}
21506 then :
21507 withval=$with_libbcrypt_prefix;
21508 if test "X$withval" = "Xno"; then
21509 use_additional=no
21510 else
21511 if test "X$withval" = "X"; then
21512
21513 acl_save_prefix="$prefix"
21514 prefix="$acl_final_prefix"
21515 acl_save_exec_prefix="$exec_prefix"
21516 exec_prefix="$acl_final_exec_prefix"
21517
21518 eval additional_includedir=\"$includedir\"
21519 eval additional_libdir=\"$libdir\"
21520
21521 exec_prefix="$acl_save_exec_prefix"
21522 prefix="$acl_save_prefix"
21523
21524 else
21525 additional_includedir="$withval/include"
21526 additional_libdir="$withval/$acl_libdirstem"
21527 fi
21528 fi
21529
21530 fi
21531
21532 LIBBCRYPT=
21533 LTLIBBCRYPT=
21534 INCBCRYPT=
21535 LIBBCRYPT_PREFIX=
21536 rpathdirs=
21537 ltrpathdirs=
21538 names_already_handled=
21539 names_next_round='bcrypt '
21540 while test -n "$names_next_round"; do
21541 names_this_round="$names_next_round"
21542 names_next_round=
21543 for name in $names_this_round; do
21544 already_handled=
21545 for n in $names_already_handled; do
21546 if test "$n" = "$name"; then
21547 already_handled=yes
21548 break
21549 fi
21550 done
21551 if test -z "$already_handled"; then
21552 names_already_handled="$names_already_handled $name"
21553 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21554 eval value=\"\$HAVE_LIB$uppername\"
21555 if test -n "$value"; then
21556 if test "$value" = yes; then
21557 eval value=\"\$LIB$uppername\"
21558 test -z "$value" || LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$value"
21559 eval value=\"\$LTLIB$uppername\"
21560 test -z "$value" || LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }$value"
21561 else
21562 :
21563 fi
21564 else
21565 found_dir=
21566 found_la=
21567 found_so=
21568 found_a=
21569 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21570 if test -n "$acl_shlibext"; then
21571 shrext=".$acl_shlibext" # typically: shrext=.so
21572 else
21573 shrext=
21574 fi
21575 if test $use_additional = yes; then
21576 dir="$additional_libdir"
21577 if test -n "$acl_shlibext"; then
21578 if test -f "$dir/$libname$shrext"; then
21579 found_dir="$dir"
21580 found_so="$dir/$libname$shrext"
21581 else
21582 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21583 ver=`(cd "$dir" && \
21584 for f in "$libname$shrext".*; do echo "$f"; done \
21585 | sed -e "s,^$libname$shrext\\\\.,," \
21586 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21587 | sed 1q ) 2>/dev/null`
21588 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21589 found_dir="$dir"
21590 found_so="$dir/$libname$shrext.$ver"
21591 fi
21592 else
21593 eval library_names=\"$acl_library_names_spec\"
21594 for f in $library_names; do
21595 if test -f "$dir/$f"; then
21596 found_dir="$dir"
21597 found_so="$dir/$f"
21598 break
21599 fi
21600 done
21601 fi
21602 fi
21603 fi
21604 if test "X$found_dir" = "X"; then
21605 if test -f "$dir/$libname.$acl_libext"; then
21606 found_dir="$dir"
21607 found_a="$dir/$libname.$acl_libext"
21608 fi
21609 fi
21610 if test "X$found_dir" != "X"; then
21611 if test -f "$dir/$libname.la"; then
21612 found_la="$dir/$libname.la"
21613 fi
21614 fi
21615 fi
21616 if test "X$found_dir" = "X"; then
21617 for x in $LDFLAGS $LTLIBBCRYPT; do
21618
21619 acl_save_prefix="$prefix"
21620 prefix="$acl_final_prefix"
21621 acl_save_exec_prefix="$exec_prefix"
21622 exec_prefix="$acl_final_exec_prefix"
21623 eval x=\"$x\"
21624 exec_prefix="$acl_save_exec_prefix"
21625 prefix="$acl_save_prefix"
21626
21627 case "$x" in
21628 -L*)
21629 dir=`echo "X$x" | sed -e 's/^X-L//'`
21630 if test -n "$acl_shlibext"; then
21631 if test -f "$dir/$libname$shrext"; then
21632 found_dir="$dir"
21633 found_so="$dir/$libname$shrext"
21634 else
21635 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21636 ver=`(cd "$dir" && \
21637 for f in "$libname$shrext".*; do echo "$f"; done \
21638 | sed -e "s,^$libname$shrext\\\\.,," \
21639 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21640 | sed 1q ) 2>/dev/null`
21641 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21642 found_dir="$dir"
21643 found_so="$dir/$libname$shrext.$ver"
21644 fi
21645 else
21646 eval library_names=\"$acl_library_names_spec\"
21647 for f in $library_names; do
21648 if test -f "$dir/$f"; then
21649 found_dir="$dir"
21650 found_so="$dir/$f"
21651 break
21652 fi
21653 done
21654 fi
21655 fi
21656 fi
21657 if test "X$found_dir" = "X"; then
21658 if test -f "$dir/$libname.$acl_libext"; then
21659 found_dir="$dir"
21660 found_a="$dir/$libname.$acl_libext"
21661 fi
21662 fi
21663 if test "X$found_dir" != "X"; then
21664 if test -f "$dir/$libname.la"; then
21665 found_la="$dir/$libname.la"
21666 fi
21667 fi
21668 ;;
21669 esac
21670 if test "X$found_dir" != "X"; then
21671 break
21672 fi
21673 done
21674 fi
21675 if test "X$found_dir" != "X"; then
21676 LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }-L$found_dir -l$name"
21677 if test "X$found_so" != "X"; then
21678 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21679 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_so"
21680 else
21681 haveit=
21682 for x in $ltrpathdirs; do
21683 if test "X$x" = "X$found_dir"; then
21684 haveit=yes
21685 break
21686 fi
21687 done
21688 if test -z "$haveit"; then
21689 ltrpathdirs="$ltrpathdirs $found_dir"
21690 fi
21691 if test "$acl_hardcode_direct" = yes; then
21692 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_so"
21693 else
21694 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21695 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_so"
21696 haveit=
21697 for x in $rpathdirs; do
21698 if test "X$x" = "X$found_dir"; then
21699 haveit=yes
21700 break
21701 fi
21702 done
21703 if test -z "$haveit"; then
21704 rpathdirs="$rpathdirs $found_dir"
21705 fi
21706 else
21707 haveit=
21708 for x in $LDFLAGS $LIBBCRYPT; do
21709
21710 acl_save_prefix="$prefix"
21711 prefix="$acl_final_prefix"
21712 acl_save_exec_prefix="$exec_prefix"
21713 exec_prefix="$acl_final_exec_prefix"
21714 eval x=\"$x\"
21715 exec_prefix="$acl_save_exec_prefix"
21716 prefix="$acl_save_prefix"
21717
21718 if test "X$x" = "X-L$found_dir"; then
21719 haveit=yes
21720 break
21721 fi
21722 done
21723 if test -z "$haveit"; then
21724 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-L$found_dir"
21725 fi
21726 if test "$acl_hardcode_minus_L" != no; then
21727 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_so"
21728 else
21729 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-l$name"
21730 fi
21731 fi
21732 fi
21733 fi
21734 else
21735 if test "X$found_a" != "X"; then
21736 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_a"
21737 else
21738 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-L$found_dir -l$name"
21739 fi
21740 fi
21741 additional_includedir=
21742 case "$found_dir" in
21743 */$acl_libdirstem | */$acl_libdirstem/)
21744 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21745 LIBBCRYPT_PREFIX="$basedir"
21746 additional_includedir="$basedir/include"
21747 ;;
21748 esac
21749 if test "X$additional_includedir" != "X"; then
21750 if test "X$additional_includedir" != "X/usr/include"; then
21751 haveit=
21752 if test "X$additional_includedir" = "X/usr/local/include"; then
21753 if test -n "$GCC"; then
21754 case $host_os in
21755 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21756 esac
21757 fi
21758 fi
21759 if test -z "$haveit"; then
21760 for x in $CPPFLAGS $INCBCRYPT; do
21761
21762 acl_save_prefix="$prefix"
21763 prefix="$acl_final_prefix"
21764 acl_save_exec_prefix="$exec_prefix"
21765 exec_prefix="$acl_final_exec_prefix"
21766 eval x=\"$x\"
21767 exec_prefix="$acl_save_exec_prefix"
21768 prefix="$acl_save_prefix"
21769
21770 if test "X$x" = "X-I$additional_includedir"; then
21771 haveit=yes
21772 break
21773 fi
21774 done
21775 if test -z "$haveit"; then
21776 if test -d "$additional_includedir"; then
21777 INCBCRYPT="${INCBCRYPT}${INCBCRYPT:+ }-I$additional_includedir"
21778 fi
21779 fi
21780 fi
21781 fi
21782 fi
21783 if test -n "$found_la"; then
21784 save_libdir="$libdir"
21785 case "$found_la" in
21786 */* | *\\*) . "$found_la" ;;
21787 *) . "./$found_la" ;;
21788 esac
21789 libdir="$save_libdir"
21790 for dep in $dependency_libs; do
21791 case "$dep" in
21792 -L*)
21793 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21794 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21795 haveit=
21796 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21797 if test -n "$GCC"; then
21798 case $host_os in
21799 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21800 esac
21801 fi
21802 fi
21803 if test -z "$haveit"; then
21804 haveit=
21805 for x in $LDFLAGS $LIBBCRYPT; do
21806
21807 acl_save_prefix="$prefix"
21808 prefix="$acl_final_prefix"
21809 acl_save_exec_prefix="$exec_prefix"
21810 exec_prefix="$acl_final_exec_prefix"
21811 eval x=\"$x\"
21812 exec_prefix="$acl_save_exec_prefix"
21813 prefix="$acl_save_prefix"
21814
21815 if test "X$x" = "X-L$additional_libdir"; then
21816 haveit=yes
21817 break
21818 fi
21819 done
21820 if test -z "$haveit"; then
21821 if test -d "$additional_libdir"; then
21822 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-L$additional_libdir"
21823 fi
21824 fi
21825 haveit=
21826 for x in $LDFLAGS $LTLIBBCRYPT; do
21827
21828 acl_save_prefix="$prefix"
21829 prefix="$acl_final_prefix"
21830 acl_save_exec_prefix="$exec_prefix"
21831 exec_prefix="$acl_final_exec_prefix"
21832 eval x=\"$x\"
21833 exec_prefix="$acl_save_exec_prefix"
21834 prefix="$acl_save_prefix"
21835
21836 if test "X$x" = "X-L$additional_libdir"; then
21837 haveit=yes
21838 break
21839 fi
21840 done
21841 if test -z "$haveit"; then
21842 if test -d "$additional_libdir"; then
21843 LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }-L$additional_libdir"
21844 fi
21845 fi
21846 fi
21847 fi
21848 ;;
21849 -R*)
21850 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21851 if test "$enable_rpath" != no; then
21852 haveit=
21853 for x in $rpathdirs; do
21854 if test "X$x" = "X$dir"; then
21855 haveit=yes
21856 break
21857 fi
21858 done
21859 if test -z "$haveit"; then
21860 rpathdirs="$rpathdirs $dir"
21861 fi
21862 haveit=
21863 for x in $ltrpathdirs; do
21864 if test "X$x" = "X$dir"; then
21865 haveit=yes
21866 break
21867 fi
21868 done
21869 if test -z "$haveit"; then
21870 ltrpathdirs="$ltrpathdirs $dir"
21871 fi
21872 fi
21873 ;;
21874 -l*)
21875 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21876 ;;
21877 *.la)
21878 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21879 ;;
21880 *)
21881 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$dep"
21882 LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }$dep"
21883 ;;
21884 esac
21885 done
21886 fi
21887 else
21888 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-l$name"
21889 LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }-l$name"
21890 fi
21891 fi
21892 fi
21893 done
21894 done
21895 if test "X$rpathdirs" != "X"; then
21896 if test -n "$acl_hardcode_libdir_separator"; then
21897 alldirs=
21898 for found_dir in $rpathdirs; do
21899 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21900 done
21901 acl_save_libdir="$libdir"
21902 libdir="$alldirs"
21903 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21904 libdir="$acl_save_libdir"
21905 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$flag"
21906 else
21907 for found_dir in $rpathdirs; do
21908 acl_save_libdir="$libdir"
21909 libdir="$found_dir"
21910 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21911 libdir="$acl_save_libdir"
21912 LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$flag"
21913 done
21914 fi
21915 fi
21916 if test "X$ltrpathdirs" != "X"; then
21917 for found_dir in $ltrpathdirs; do
21918 LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }-R$found_dir"
21919 done
21920 fi
21921
21922
21923 ac_save_CPPFLAGS="$CPPFLAGS"
21924
21925 for element in $INCBCRYPT; do
21926 haveit=
21927 for x in $CPPFLAGS; do
21928
21929 acl_save_prefix="$prefix"
21930 prefix="$acl_final_prefix"
21931 acl_save_exec_prefix="$exec_prefix"
21932 exec_prefix="$acl_final_exec_prefix"
21933 eval x=\"$x\"
21934 exec_prefix="$acl_save_exec_prefix"
21935 prefix="$acl_save_prefix"
21936
21937 if test "X$x" = "X$element"; then
21938 haveit=yes
21939 break
21940 fi
21941 done
21942 if test -z "$haveit"; then
21943 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21944 fi
21945 done
21946
21947
21948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbcrypt" >&5
21949 printf %s "checking for libbcrypt... " >&6; }
21950 if test ${ac_cv_libbcrypt+y}
21951 then :
21952 printf %s "(cached) " >&6
21953 else case e in #(
21954 e)
21955 ac_save_LIBS="$LIBS"
21956 LIBS="$LIBS $LIBBCRYPT"
21957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h. */
21959
21960 #include <windows.h>
21961 #include <bcrypt.h>
21962
21963 int
21964 main (void)
21965 {
21966
21967 ;
21968 return 0;
21969 }
21970 _ACEOF
21971 if ac_fn_c_try_link "$LINENO"
21972 then :
21973 ac_cv_libbcrypt=yes
21974 else case e in #(
21975 e) ac_cv_libbcrypt=no ;;
21976 esac
21977 fi
21978 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21979 conftest$ac_exeext conftest.$ac_ext
21980 LIBS="$ac_save_LIBS"
21981 ;;
21982 esac
21983 fi
21984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbcrypt" >&5
21985 printf "%s\n" "$ac_cv_libbcrypt" >&6; }
21986 if test "$ac_cv_libbcrypt" = yes; then
21987 HAVE_LIBBCRYPT=yes
21988
21989 printf "%s\n" "#define HAVE_LIBBCRYPT 1" >>confdefs.h
21990
21991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libbcrypt" >&5
21992 printf %s "checking how to link with libbcrypt... " >&6; }
21993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBBCRYPT" >&5
21994 printf "%s\n" "$LIBBCRYPT" >&6; }
21995 else
21996 HAVE_LIBBCRYPT=no
21997 CPPFLAGS="$ac_save_CPPFLAGS"
21998 LIBBCRYPT=
21999 LTLIBBCRYPT=
22000 LIBBCRYPT_PREFIX=
22001 fi
22002
22003
22004
22005
22006
22007
22008
22009
22010 if test "$ac_cv_libbcrypt" = "yes"; then :
22011
22012
22013 printf "%s\n" "#define LIBSSH2_WINCNG 1" >>confdefs.h
22014
22015 found_crypto="wincng"
22016 found_crypto_str="Windows Cryptography API: Next Generation"
22017
22018 else
22019 CPPFLAGS="$libssh2_save_CPPFLAGS"
22020 LDFLAGS="$libssh2_save_LDFLAGS"
22021 fi
22022
22023 fi
22024
22025 test "$found_crypto" = "none" &&
22026 crypto_errors="${crypto_errors}No wincng crypto library found!
22027 "
22028 fi
22029
22030 if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "wolfssl"; then
22031
22032
22033 libssh2_save_CPPFLAGS="$CPPFLAGS"
22034 libssh2_save_LDFLAGS="$LDFLAGS"
22035
22036 if test "${with_libwolfssl_prefix+set}" = set; then
22037 CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libwolfssl_prefix}/include"
22038 LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libwolfssl_prefix}/lib"
22039 fi
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051 use_additional=yes
22052
22053 acl_save_prefix="$prefix"
22054 prefix="$acl_final_prefix"
22055 acl_save_exec_prefix="$exec_prefix"
22056 exec_prefix="$acl_final_exec_prefix"
22057
22058 eval additional_includedir=\"$includedir\"
22059 eval additional_libdir=\"$libdir\"
22060
22061 exec_prefix="$acl_save_exec_prefix"
22062 prefix="$acl_save_prefix"
22063
22064
22065 # Check whether --with-libwolfssl-prefix was given.
22066 if test ${with_libwolfssl_prefix+y}
22067 then :
22068 withval=$with_libwolfssl_prefix;
22069 if test "X$withval" = "Xno"; then
22070 use_additional=no
22071 else
22072 if test "X$withval" = "X"; then
22073
22074 acl_save_prefix="$prefix"
22075 prefix="$acl_final_prefix"
22076 acl_save_exec_prefix="$exec_prefix"
22077 exec_prefix="$acl_final_exec_prefix"
22078
22079 eval additional_includedir=\"$includedir\"
22080 eval additional_libdir=\"$libdir\"
22081
22082 exec_prefix="$acl_save_exec_prefix"
22083 prefix="$acl_save_prefix"
22084
22085 else
22086 additional_includedir="$withval/include"
22087 additional_libdir="$withval/$acl_libdirstem"
22088 fi
22089 fi
22090
22091 fi
22092
22093 LIBWOLFSSL=
22094 LTLIBWOLFSSL=
22095 INCWOLFSSL=
22096 LIBWOLFSSL_PREFIX=
22097 rpathdirs=
22098 ltrpathdirs=
22099 names_already_handled=
22100 names_next_round='wolfssl '
22101 while test -n "$names_next_round"; do
22102 names_this_round="$names_next_round"
22103 names_next_round=
22104 for name in $names_this_round; do
22105 already_handled=
22106 for n in $names_already_handled; do
22107 if test "$n" = "$name"; then
22108 already_handled=yes
22109 break
22110 fi
22111 done
22112 if test -z "$already_handled"; then
22113 names_already_handled="$names_already_handled $name"
22114 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22115 eval value=\"\$HAVE_LIB$uppername\"
22116 if test -n "$value"; then
22117 if test "$value" = yes; then
22118 eval value=\"\$LIB$uppername\"
22119 test -z "$value" || LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }$value"
22120 eval value=\"\$LTLIB$uppername\"
22121 test -z "$value" || LTLIBWOLFSSL="${LTLIBWOLFSSL}${LTLIBWOLFSSL:+ }$value"
22122 else
22123 :
22124 fi
22125 else
22126 found_dir=
22127 found_la=
22128 found_so=
22129 found_a=
22130 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22131 if test -n "$acl_shlibext"; then
22132 shrext=".$acl_shlibext" # typically: shrext=.so
22133 else
22134 shrext=
22135 fi
22136 if test $use_additional = yes; then
22137 dir="$additional_libdir"
22138 if test -n "$acl_shlibext"; then
22139 if test -f "$dir/$libname$shrext"; then
22140 found_dir="$dir"
22141 found_so="$dir/$libname$shrext"
22142 else
22143 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22144 ver=`(cd "$dir" && \
22145 for f in "$libname$shrext".*; do echo "$f"; done \
22146 | sed -e "s,^$libname$shrext\\\\.,," \
22147 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22148 | sed 1q ) 2>/dev/null`
22149 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22150 found_dir="$dir"
22151 found_so="$dir/$libname$shrext.$ver"
22152 fi
22153 else
22154 eval library_names=\"$acl_library_names_spec\"
22155 for f in $library_names; do
22156 if test -f "$dir/$f"; then
22157 found_dir="$dir"
22158 found_so="$dir/$f"
22159 break
22160 fi
22161 done
22162 fi
22163 fi
22164 fi
22165 if test "X$found_dir" = "X"; then
22166 if test -f "$dir/$libname.$acl_libext"; then
22167 found_dir="$dir"
22168 found_a="$dir/$libname.$acl_libext"
22169 fi
22170 fi
22171 if test "X$found_dir" != "X"; then
22172 if test -f "$dir/$libname.la"; then
22173 found_la="$dir/$libname.la"
22174 fi
22175 fi
22176 fi
22177 if test "X$found_dir" = "X"; then
22178 for x in $LDFLAGS $LTLIBWOLFSSL; do
22179
22180 acl_save_prefix="$prefix"
22181 prefix="$acl_final_prefix"
22182 acl_save_exec_prefix="$exec_prefix"
22183 exec_prefix="$acl_final_exec_prefix"
22184 eval x=\"$x\"
22185 exec_prefix="$acl_save_exec_prefix"
22186 prefix="$acl_save_prefix"
22187
22188 case "$x" in
22189 -L*)
22190 dir=`echo "X$x" | sed -e 's/^X-L//'`
22191 if test -n "$acl_shlibext"; then
22192 if test -f "$dir/$libname$shrext"; then
22193 found_dir="$dir"
22194 found_so="$dir/$libname$shrext"
22195 else
22196 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22197 ver=`(cd "$dir" && \
22198 for f in "$libname$shrext".*; do echo "$f"; done \
22199 | sed -e "s,^$libname$shrext\\\\.,," \
22200 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22201 | sed 1q ) 2>/dev/null`
22202 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22203 found_dir="$dir"
22204 found_so="$dir/$libname$shrext.$ver"
22205 fi
22206 else
22207 eval library_names=\"$acl_library_names_spec\"
22208 for f in $library_names; do
22209 if test -f "$dir/$f"; then
22210 found_dir="$dir"
22211 found_so="$dir/$f"
22212 break
22213 fi
22214 done
22215 fi
22216 fi
22217 fi
22218 if test "X$found_dir" = "X"; then
22219 if test -f "$dir/$libname.$acl_libext"; then
22220 found_dir="$dir"
22221 found_a="$dir/$libname.$acl_libext"
22222 fi
22223 fi
22224 if test "X$found_dir" != "X"; then
22225 if test -f "$dir/$libname.la"; then
22226 found_la="$dir/$libname.la"
22227 fi
22228 fi
22229 ;;
22230 esac
22231 if test "X$found_dir" != "X"; then
22232 break
22233 fi
22234 done
22235 fi
22236 if test "X$found_dir" != "X"; then
22237 LTLIBWOLFSSL="${LTLIBWOLFSSL}${LTLIBWOLFSSL:+ }-L$found_dir -l$name"
22238 if test "X$found_so" != "X"; then
22239 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22240 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }$found_so"
22241 else
22242 haveit=
22243 for x in $ltrpathdirs; do
22244 if test "X$x" = "X$found_dir"; then
22245 haveit=yes
22246 break
22247 fi
22248 done
22249 if test -z "$haveit"; then
22250 ltrpathdirs="$ltrpathdirs $found_dir"
22251 fi
22252 if test "$acl_hardcode_direct" = yes; then
22253 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }$found_so"
22254 else
22255 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22256 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }$found_so"
22257 haveit=
22258 for x in $rpathdirs; do
22259 if test "X$x" = "X$found_dir"; then
22260 haveit=yes
22261 break
22262 fi
22263 done
22264 if test -z "$haveit"; then
22265 rpathdirs="$rpathdirs $found_dir"
22266 fi
22267 else
22268 haveit=
22269 for x in $LDFLAGS $LIBWOLFSSL; do
22270
22271 acl_save_prefix="$prefix"
22272 prefix="$acl_final_prefix"
22273 acl_save_exec_prefix="$exec_prefix"
22274 exec_prefix="$acl_final_exec_prefix"
22275 eval x=\"$x\"
22276 exec_prefix="$acl_save_exec_prefix"
22277 prefix="$acl_save_prefix"
22278
22279 if test "X$x" = "X-L$found_dir"; then
22280 haveit=yes
22281 break
22282 fi
22283 done
22284 if test -z "$haveit"; then
22285 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }-L$found_dir"
22286 fi
22287 if test "$acl_hardcode_minus_L" != no; then
22288 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }$found_so"
22289 else
22290 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }-l$name"
22291 fi
22292 fi
22293 fi
22294 fi
22295 else
22296 if test "X$found_a" != "X"; then
22297 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }$found_a"
22298 else
22299 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }-L$found_dir -l$name"
22300 fi
22301 fi
22302 additional_includedir=
22303 case "$found_dir" in
22304 */$acl_libdirstem | */$acl_libdirstem/)
22305 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22306 LIBWOLFSSL_PREFIX="$basedir"
22307 additional_includedir="$basedir/include"
22308 ;;
22309 esac
22310 if test "X$additional_includedir" != "X"; then
22311 if test "X$additional_includedir" != "X/usr/include"; then
22312 haveit=
22313 if test "X$additional_includedir" = "X/usr/local/include"; then
22314 if test -n "$GCC"; then
22315 case $host_os in
22316 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22317 esac
22318 fi
22319 fi
22320 if test -z "$haveit"; then
22321 for x in $CPPFLAGS $INCWOLFSSL; do
22322
22323 acl_save_prefix="$prefix"
22324 prefix="$acl_final_prefix"
22325 acl_save_exec_prefix="$exec_prefix"
22326 exec_prefix="$acl_final_exec_prefix"
22327 eval x=\"$x\"
22328 exec_prefix="$acl_save_exec_prefix"
22329 prefix="$acl_save_prefix"
22330
22331 if test "X$x" = "X-I$additional_includedir"; then
22332 haveit=yes
22333 break
22334 fi
22335 done
22336 if test -z "$haveit"; then
22337 if test -d "$additional_includedir"; then
22338 INCWOLFSSL="${INCWOLFSSL}${INCWOLFSSL:+ }-I$additional_includedir"
22339 fi
22340 fi
22341 fi
22342 fi
22343 fi
22344 if test -n "$found_la"; then
22345 save_libdir="$libdir"
22346 case "$found_la" in
22347 */* | *\\*) . "$found_la" ;;
22348 *) . "./$found_la" ;;
22349 esac
22350 libdir="$save_libdir"
22351 for dep in $dependency_libs; do
22352 case "$dep" in
22353 -L*)
22354 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22355 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
22356 haveit=
22357 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
22358 if test -n "$GCC"; then
22359 case $host_os in
22360 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22361 esac
22362 fi
22363 fi
22364 if test -z "$haveit"; then
22365 haveit=
22366 for x in $LDFLAGS $LIBWOLFSSL; do
22367
22368 acl_save_prefix="$prefix"
22369 prefix="$acl_final_prefix"
22370 acl_save_exec_prefix="$exec_prefix"
22371 exec_prefix="$acl_final_exec_prefix"
22372 eval x=\"$x\"
22373 exec_prefix="$acl_save_exec_prefix"
22374 prefix="$acl_save_prefix"
22375
22376 if test "X$x" = "X-L$additional_libdir"; then
22377 haveit=yes
22378 break
22379 fi
22380 done
22381 if test -z "$haveit"; then
22382 if test -d "$additional_libdir"; then
22383 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }-L$additional_libdir"
22384 fi
22385 fi
22386 haveit=
22387 for x in $LDFLAGS $LTLIBWOLFSSL; do
22388
22389 acl_save_prefix="$prefix"
22390 prefix="$acl_final_prefix"
22391 acl_save_exec_prefix="$exec_prefix"
22392 exec_prefix="$acl_final_exec_prefix"
22393 eval x=\"$x\"
22394 exec_prefix="$acl_save_exec_prefix"
22395 prefix="$acl_save_prefix"
22396
22397 if test "X$x" = "X-L$additional_libdir"; then
22398 haveit=yes
22399 break
22400 fi
22401 done
22402 if test -z "$haveit"; then
22403 if test -d "$additional_libdir"; then
22404 LTLIBWOLFSSL="${LTLIBWOLFSSL}${LTLIBWOLFSSL:+ }-L$additional_libdir"
22405 fi
22406 fi
22407 fi
22408 fi
22409 ;;
22410 -R*)
22411 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22412 if test "$enable_rpath" != no; then
22413 haveit=
22414 for x in $rpathdirs; do
22415 if test "X$x" = "X$dir"; then
22416 haveit=yes
22417 break
22418 fi
22419 done
22420 if test -z "$haveit"; then
22421 rpathdirs="$rpathdirs $dir"
22422 fi
22423 haveit=
22424 for x in $ltrpathdirs; do
22425 if test "X$x" = "X$dir"; then
22426 haveit=yes
22427 break
22428 fi
22429 done
22430 if test -z "$haveit"; then
22431 ltrpathdirs="$ltrpathdirs $dir"
22432 fi
22433 fi
22434 ;;
22435 -l*)
22436 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22437 ;;
22438 *.la)
22439 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22440 ;;
22441 *)
22442 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }$dep"
22443 LTLIBWOLFSSL="${LTLIBWOLFSSL}${LTLIBWOLFSSL:+ }$dep"
22444 ;;
22445 esac
22446 done
22447 fi
22448 else
22449 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }-l$name"
22450 LTLIBWOLFSSL="${LTLIBWOLFSSL}${LTLIBWOLFSSL:+ }-l$name"
22451 fi
22452 fi
22453 fi
22454 done
22455 done
22456 if test "X$rpathdirs" != "X"; then
22457 if test -n "$acl_hardcode_libdir_separator"; then
22458 alldirs=
22459 for found_dir in $rpathdirs; do
22460 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22461 done
22462 acl_save_libdir="$libdir"
22463 libdir="$alldirs"
22464 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22465 libdir="$acl_save_libdir"
22466 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }$flag"
22467 else
22468 for found_dir in $rpathdirs; do
22469 acl_save_libdir="$libdir"
22470 libdir="$found_dir"
22471 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22472 libdir="$acl_save_libdir"
22473 LIBWOLFSSL="${LIBWOLFSSL}${LIBWOLFSSL:+ }$flag"
22474 done
22475 fi
22476 fi
22477 if test "X$ltrpathdirs" != "X"; then
22478 for found_dir in $ltrpathdirs; do
22479 LTLIBWOLFSSL="${LTLIBWOLFSSL}${LTLIBWOLFSSL:+ }-R$found_dir"
22480 done
22481 fi
22482
22483
22484 ac_save_CPPFLAGS="$CPPFLAGS"
22485
22486 for element in $INCWOLFSSL; do
22487 haveit=
22488 for x in $CPPFLAGS; do
22489
22490 acl_save_prefix="$prefix"
22491 prefix="$acl_final_prefix"
22492 acl_save_exec_prefix="$exec_prefix"
22493 exec_prefix="$acl_final_exec_prefix"
22494 eval x=\"$x\"
22495 exec_prefix="$acl_save_exec_prefix"
22496 prefix="$acl_save_prefix"
22497
22498 if test "X$x" = "X$element"; then
22499 haveit=yes
22500 break
22501 fi
22502 done
22503 if test -z "$haveit"; then
22504 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22505 fi
22506 done
22507
22508
22509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libwolfssl" >&5
22510 printf %s "checking for libwolfssl... " >&6; }
22511 if test ${ac_cv_libwolfssl+y}
22512 then :
22513 printf %s "(cached) " >&6
22514 else case e in #(
22515 e)
22516 ac_save_LIBS="$LIBS"
22517 LIBS="$LIBS $LIBWOLFSSL"
22518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519 /* end confdefs.h. */
22520 #include <wolfssl/options.h>
22521 int
22522 main (void)
22523 {
22524
22525 ;
22526 return 0;
22527 }
22528 _ACEOF
22529 if ac_fn_c_try_link "$LINENO"
22530 then :
22531 ac_cv_libwolfssl=yes
22532 else case e in #(
22533 e) ac_cv_libwolfssl=no ;;
22534 esac
22535 fi
22536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22537 conftest$ac_exeext conftest.$ac_ext
22538 LIBS="$ac_save_LIBS"
22539 ;;
22540 esac
22541 fi
22542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libwolfssl" >&5
22543 printf "%s\n" "$ac_cv_libwolfssl" >&6; }
22544 if test "$ac_cv_libwolfssl" = yes; then
22545 HAVE_LIBWOLFSSL=yes
22546
22547 printf "%s\n" "#define HAVE_LIBWOLFSSL 1" >>confdefs.h
22548
22549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libwolfssl" >&5
22550 printf %s "checking how to link with libwolfssl... " >&6; }
22551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBWOLFSSL" >&5
22552 printf "%s\n" "$LIBWOLFSSL" >&6; }
22553 else
22554 HAVE_LIBWOLFSSL=no
22555 CPPFLAGS="$ac_save_CPPFLAGS"
22556 LIBWOLFSSL=
22557 LTLIBWOLFSSL=
22558 LIBWOLFSSL_PREFIX=
22559 fi
22560
22561
22562
22563
22564
22565
22566
22567
22568 if test "$ac_cv_libwolfssl" = "yes"; then :
22569
22570
22571 printf "%s\n" "#define LIBSSH2_WOLFSSL 1" >>confdefs.h
22572
22573 LIBSSH2_PC_REQUIRES_PRIVATE="$LIBSSH2_PC_REQUIRES_PRIVATE${LIBSSH2_PC_REQUIRES_PRIVATE:+,}wolfssl"
22574 found_crypto="wolfssl"
22575
22576 else
22577 CPPFLAGS="$libssh2_save_CPPFLAGS"
22578 LDFLAGS="$libssh2_save_LDFLAGS"
22579 fi
22580
22581
22582 test "$found_crypto" = "none" &&
22583 crypto_errors="${crypto_errors}No wolfssl crypto library found!
22584 "
22585 fi
22586
22587 ;;
22588 yes|"")
22589 crypto_errors="No crypto backend specified."
22590 ;;
22591 *)
22592 crypto_errors="Unknown crypto backend '${use_crypto}' specified."
22593 ;;
22594 esac
22595
22596 if test "$found_crypto" = "none"; then
22597 crypto_errors="${crypto_errors}
22598 Specify --with-crypto=\$backend and/or the necessary library search prefix.
22599
22600 Known crypto backends: auto, openssl, libgcrypt, mbedtls, wincng, wolfssl"
22601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ERROR: ${crypto_errors}" >&5
22602 printf "%s\n" "$as_me: ERROR: ${crypto_errors}" >&6;}
22603 else
22604 test "$found_crypto_str" = "" && found_crypto_str="$found_crypto"
22605 fi
22606
22607 # ECDSA support with WinCNG
22608 # Check whether --enable-ecdsa-wincng was given.
22609 if test ${enable_ecdsa_wincng+y}
22610 then :
22611 enableval=$enable_ecdsa_wincng; wincng_ecdsa=$enableval
22612 fi
22613
22614 if test "$wincng_ecdsa" = yes; then
22615
22616 printf "%s\n" "#define LIBSSH2_ECDSA_WINCNG 1" >>confdefs.h
22617
22618 else
22619 wincng_ecdsa=no
22620 fi
22621
22622 # libz
22623
22624
22625 # Check whether --with-libz was given.
22626 if test ${with_libz+y}
22627 then :
22628 withval=$with_libz; use_libz=$withval
22629 else case e in #(
22630 e) use_libz=auto ;;
22631 esac
22632 fi
22633
22634
22635 found_libz=no
22636 libz_errors=""
22637
22638 if test "$use_libz" != no; then
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649 use_additional=yes
22650
22651 acl_save_prefix="$prefix"
22652 prefix="$acl_final_prefix"
22653 acl_save_exec_prefix="$exec_prefix"
22654 exec_prefix="$acl_final_exec_prefix"
22655
22656 eval additional_includedir=\"$includedir\"
22657 eval additional_libdir=\"$libdir\"
22658
22659 exec_prefix="$acl_save_exec_prefix"
22660 prefix="$acl_save_prefix"
22661
22662
22663 # Check whether --with-libz-prefix was given.
22664 if test ${with_libz_prefix+y}
22665 then :
22666 withval=$with_libz_prefix;
22667 if test "X$withval" = "Xno"; then
22668 use_additional=no
22669 else
22670 if test "X$withval" = "X"; then
22671
22672 acl_save_prefix="$prefix"
22673 prefix="$acl_final_prefix"
22674 acl_save_exec_prefix="$exec_prefix"
22675 exec_prefix="$acl_final_exec_prefix"
22676
22677 eval additional_includedir=\"$includedir\"
22678 eval additional_libdir=\"$libdir\"
22679
22680 exec_prefix="$acl_save_exec_prefix"
22681 prefix="$acl_save_prefix"
22682
22683 else
22684 additional_includedir="$withval/include"
22685 additional_libdir="$withval/$acl_libdirstem"
22686 fi
22687 fi
22688
22689 fi
22690
22691 LIBZ=
22692 LTLIBZ=
22693 INCZ=
22694 LIBZ_PREFIX=
22695 rpathdirs=
22696 ltrpathdirs=
22697 names_already_handled=
22698 names_next_round='z '
22699 while test -n "$names_next_round"; do
22700 names_this_round="$names_next_round"
22701 names_next_round=
22702 for name in $names_this_round; do
22703 already_handled=
22704 for n in $names_already_handled; do
22705 if test "$n" = "$name"; then
22706 already_handled=yes
22707 break
22708 fi
22709 done
22710 if test -z "$already_handled"; then
22711 names_already_handled="$names_already_handled $name"
22712 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22713 eval value=\"\$HAVE_LIB$uppername\"
22714 if test -n "$value"; then
22715 if test "$value" = yes; then
22716 eval value=\"\$LIB$uppername\"
22717 test -z "$value" || LIBZ="${LIBZ}${LIBZ:+ }$value"
22718 eval value=\"\$LTLIB$uppername\"
22719 test -z "$value" || LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$value"
22720 else
22721 :
22722 fi
22723 else
22724 found_dir=
22725 found_la=
22726 found_so=
22727 found_a=
22728 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22729 if test -n "$acl_shlibext"; then
22730 shrext=".$acl_shlibext" # typically: shrext=.so
22731 else
22732 shrext=
22733 fi
22734 if test $use_additional = yes; then
22735 dir="$additional_libdir"
22736 if test -n "$acl_shlibext"; then
22737 if test -f "$dir/$libname$shrext"; then
22738 found_dir="$dir"
22739 found_so="$dir/$libname$shrext"
22740 else
22741 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22742 ver=`(cd "$dir" && \
22743 for f in "$libname$shrext".*; do echo "$f"; done \
22744 | sed -e "s,^$libname$shrext\\\\.,," \
22745 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22746 | sed 1q ) 2>/dev/null`
22747 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22748 found_dir="$dir"
22749 found_so="$dir/$libname$shrext.$ver"
22750 fi
22751 else
22752 eval library_names=\"$acl_library_names_spec\"
22753 for f in $library_names; do
22754 if test -f "$dir/$f"; then
22755 found_dir="$dir"
22756 found_so="$dir/$f"
22757 break
22758 fi
22759 done
22760 fi
22761 fi
22762 fi
22763 if test "X$found_dir" = "X"; then
22764 if test -f "$dir/$libname.$acl_libext"; then
22765 found_dir="$dir"
22766 found_a="$dir/$libname.$acl_libext"
22767 fi
22768 fi
22769 if test "X$found_dir" != "X"; then
22770 if test -f "$dir/$libname.la"; then
22771 found_la="$dir/$libname.la"
22772 fi
22773 fi
22774 fi
22775 if test "X$found_dir" = "X"; then
22776 for x in $LDFLAGS $LTLIBZ; do
22777
22778 acl_save_prefix="$prefix"
22779 prefix="$acl_final_prefix"
22780 acl_save_exec_prefix="$exec_prefix"
22781 exec_prefix="$acl_final_exec_prefix"
22782 eval x=\"$x\"
22783 exec_prefix="$acl_save_exec_prefix"
22784 prefix="$acl_save_prefix"
22785
22786 case "$x" in
22787 -L*)
22788 dir=`echo "X$x" | sed -e 's/^X-L//'`
22789 if test -n "$acl_shlibext"; then
22790 if test -f "$dir/$libname$shrext"; then
22791 found_dir="$dir"
22792 found_so="$dir/$libname$shrext"
22793 else
22794 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22795 ver=`(cd "$dir" && \
22796 for f in "$libname$shrext".*; do echo "$f"; done \
22797 | sed -e "s,^$libname$shrext\\\\.,," \
22798 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22799 | sed 1q ) 2>/dev/null`
22800 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22801 found_dir="$dir"
22802 found_so="$dir/$libname$shrext.$ver"
22803 fi
22804 else
22805 eval library_names=\"$acl_library_names_spec\"
22806 for f in $library_names; do
22807 if test -f "$dir/$f"; then
22808 found_dir="$dir"
22809 found_so="$dir/$f"
22810 break
22811 fi
22812 done
22813 fi
22814 fi
22815 fi
22816 if test "X$found_dir" = "X"; then
22817 if test -f "$dir/$libname.$acl_libext"; then
22818 found_dir="$dir"
22819 found_a="$dir/$libname.$acl_libext"
22820 fi
22821 fi
22822 if test "X$found_dir" != "X"; then
22823 if test -f "$dir/$libname.la"; then
22824 found_la="$dir/$libname.la"
22825 fi
22826 fi
22827 ;;
22828 esac
22829 if test "X$found_dir" != "X"; then
22830 break
22831 fi
22832 done
22833 fi
22834 if test "X$found_dir" != "X"; then
22835 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$found_dir -l$name"
22836 if test "X$found_so" != "X"; then
22837 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22838 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
22839 else
22840 haveit=
22841 for x in $ltrpathdirs; do
22842 if test "X$x" = "X$found_dir"; then
22843 haveit=yes
22844 break
22845 fi
22846 done
22847 if test -z "$haveit"; then
22848 ltrpathdirs="$ltrpathdirs $found_dir"
22849 fi
22850 if test "$acl_hardcode_direct" = yes; then
22851 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
22852 else
22853 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22854 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
22855 haveit=
22856 for x in $rpathdirs; do
22857 if test "X$x" = "X$found_dir"; then
22858 haveit=yes
22859 break
22860 fi
22861 done
22862 if test -z "$haveit"; then
22863 rpathdirs="$rpathdirs $found_dir"
22864 fi
22865 else
22866 haveit=
22867 for x in $LDFLAGS $LIBZ; do
22868
22869 acl_save_prefix="$prefix"
22870 prefix="$acl_final_prefix"
22871 acl_save_exec_prefix="$exec_prefix"
22872 exec_prefix="$acl_final_exec_prefix"
22873 eval x=\"$x\"
22874 exec_prefix="$acl_save_exec_prefix"
22875 prefix="$acl_save_prefix"
22876
22877 if test "X$x" = "X-L$found_dir"; then
22878 haveit=yes
22879 break
22880 fi
22881 done
22882 if test -z "$haveit"; then
22883 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir"
22884 fi
22885 if test "$acl_hardcode_minus_L" != no; then
22886 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
22887 else
22888 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
22889 fi
22890 fi
22891 fi
22892 fi
22893 else
22894 if test "X$found_a" != "X"; then
22895 LIBZ="${LIBZ}${LIBZ:+ }$found_a"
22896 else
22897 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir -l$name"
22898 fi
22899 fi
22900 additional_includedir=
22901 case "$found_dir" in
22902 */$acl_libdirstem | */$acl_libdirstem/)
22903 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22904 LIBZ_PREFIX="$basedir"
22905 additional_includedir="$basedir/include"
22906 ;;
22907 esac
22908 if test "X$additional_includedir" != "X"; then
22909 if test "X$additional_includedir" != "X/usr/include"; then
22910 haveit=
22911 if test "X$additional_includedir" = "X/usr/local/include"; then
22912 if test -n "$GCC"; then
22913 case $host_os in
22914 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22915 esac
22916 fi
22917 fi
22918 if test -z "$haveit"; then
22919 for x in $CPPFLAGS $INCZ; do
22920
22921 acl_save_prefix="$prefix"
22922 prefix="$acl_final_prefix"
22923 acl_save_exec_prefix="$exec_prefix"
22924 exec_prefix="$acl_final_exec_prefix"
22925 eval x=\"$x\"
22926 exec_prefix="$acl_save_exec_prefix"
22927 prefix="$acl_save_prefix"
22928
22929 if test "X$x" = "X-I$additional_includedir"; then
22930 haveit=yes
22931 break
22932 fi
22933 done
22934 if test -z "$haveit"; then
22935 if test -d "$additional_includedir"; then
22936 INCZ="${INCZ}${INCZ:+ }-I$additional_includedir"
22937 fi
22938 fi
22939 fi
22940 fi
22941 fi
22942 if test -n "$found_la"; then
22943 save_libdir="$libdir"
22944 case "$found_la" in
22945 */* | *\\*) . "$found_la" ;;
22946 *) . "./$found_la" ;;
22947 esac
22948 libdir="$save_libdir"
22949 for dep in $dependency_libs; do
22950 case "$dep" in
22951 -L*)
22952 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22953 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
22954 haveit=
22955 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
22956 if test -n "$GCC"; then
22957 case $host_os in
22958 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22959 esac
22960 fi
22961 fi
22962 if test -z "$haveit"; then
22963 haveit=
22964 for x in $LDFLAGS $LIBZ; do
22965
22966 acl_save_prefix="$prefix"
22967 prefix="$acl_final_prefix"
22968 acl_save_exec_prefix="$exec_prefix"
22969 exec_prefix="$acl_final_exec_prefix"
22970 eval x=\"$x\"
22971 exec_prefix="$acl_save_exec_prefix"
22972 prefix="$acl_save_prefix"
22973
22974 if test "X$x" = "X-L$additional_libdir"; then
22975 haveit=yes
22976 break
22977 fi
22978 done
22979 if test -z "$haveit"; then
22980 if test -d "$additional_libdir"; then
22981 LIBZ="${LIBZ}${LIBZ:+ }-L$additional_libdir"
22982 fi
22983 fi
22984 haveit=
22985 for x in $LDFLAGS $LTLIBZ; do
22986
22987 acl_save_prefix="$prefix"
22988 prefix="$acl_final_prefix"
22989 acl_save_exec_prefix="$exec_prefix"
22990 exec_prefix="$acl_final_exec_prefix"
22991 eval x=\"$x\"
22992 exec_prefix="$acl_save_exec_prefix"
22993 prefix="$acl_save_prefix"
22994
22995 if test "X$x" = "X-L$additional_libdir"; then
22996 haveit=yes
22997 break
22998 fi
22999 done
23000 if test -z "$haveit"; then
23001 if test -d "$additional_libdir"; then
23002 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$additional_libdir"
23003 fi
23004 fi
23005 fi
23006 fi
23007 ;;
23008 -R*)
23009 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23010 if test "$enable_rpath" != no; then
23011 haveit=
23012 for x in $rpathdirs; do
23013 if test "X$x" = "X$dir"; then
23014 haveit=yes
23015 break
23016 fi
23017 done
23018 if test -z "$haveit"; then
23019 rpathdirs="$rpathdirs $dir"
23020 fi
23021 haveit=
23022 for x in $ltrpathdirs; do
23023 if test "X$x" = "X$dir"; then
23024 haveit=yes
23025 break
23026 fi
23027 done
23028 if test -z "$haveit"; then
23029 ltrpathdirs="$ltrpathdirs $dir"
23030 fi
23031 fi
23032 ;;
23033 -l*)
23034 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23035 ;;
23036 *.la)
23037 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23038 ;;
23039 *)
23040 LIBZ="${LIBZ}${LIBZ:+ }$dep"
23041 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$dep"
23042 ;;
23043 esac
23044 done
23045 fi
23046 else
23047 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
23048 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-l$name"
23049 fi
23050 fi
23051 fi
23052 done
23053 done
23054 if test "X$rpathdirs" != "X"; then
23055 if test -n "$acl_hardcode_libdir_separator"; then
23056 alldirs=
23057 for found_dir in $rpathdirs; do
23058 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23059 done
23060 acl_save_libdir="$libdir"
23061 libdir="$alldirs"
23062 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23063 libdir="$acl_save_libdir"
23064 LIBZ="${LIBZ}${LIBZ:+ }$flag"
23065 else
23066 for found_dir in $rpathdirs; do
23067 acl_save_libdir="$libdir"
23068 libdir="$found_dir"
23069 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23070 libdir="$acl_save_libdir"
23071 LIBZ="${LIBZ}${LIBZ:+ }$flag"
23072 done
23073 fi
23074 fi
23075 if test "X$ltrpathdirs" != "X"; then
23076 for found_dir in $ltrpathdirs; do
23077 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-R$found_dir"
23078 done
23079 fi
23080
23081
23082 ac_save_CPPFLAGS="$CPPFLAGS"
23083
23084 for element in $INCZ; do
23085 haveit=
23086 for x in $CPPFLAGS; do
23087
23088 acl_save_prefix="$prefix"
23089 prefix="$acl_final_prefix"
23090 acl_save_exec_prefix="$exec_prefix"
23091 exec_prefix="$acl_final_exec_prefix"
23092 eval x=\"$x\"
23093 exec_prefix="$acl_save_exec_prefix"
23094 prefix="$acl_save_prefix"
23095
23096 if test "X$x" = "X$element"; then
23097 haveit=yes
23098 break
23099 fi
23100 done
23101 if test -z "$haveit"; then
23102 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23103 fi
23104 done
23105
23106
23107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
23108 printf %s "checking for libz... " >&6; }
23109 if test ${ac_cv_libz+y}
23110 then :
23111 printf %s "(cached) " >&6
23112 else case e in #(
23113 e)
23114 ac_save_LIBS="$LIBS"
23115 LIBS="$LIBS $LIBZ"
23116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23117 /* end confdefs.h. */
23118 #include <zlib.h>
23119 int
23120 main (void)
23121 {
23122
23123 ;
23124 return 0;
23125 }
23126 _ACEOF
23127 if ac_fn_c_try_link "$LINENO"
23128 then :
23129 ac_cv_libz=yes
23130 else case e in #(
23131 e) ac_cv_libz=no ;;
23132 esac
23133 fi
23134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23135 conftest$ac_exeext conftest.$ac_ext
23136 LIBS="$ac_save_LIBS"
23137 ;;
23138 esac
23139 fi
23140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libz" >&5
23141 printf "%s\n" "$ac_cv_libz" >&6; }
23142 if test "$ac_cv_libz" = yes; then
23143 HAVE_LIBZ=yes
23144
23145 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
23146
23147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libz" >&5
23148 printf %s "checking how to link with libz... " >&6; }
23149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBZ" >&5
23150 printf "%s\n" "$LIBZ" >&6; }
23151 else
23152 HAVE_LIBZ=no
23153 CPPFLAGS="$ac_save_CPPFLAGS"
23154 LIBZ=
23155 LTLIBZ=
23156 LIBZ_PREFIX=
23157 fi
23158
23159
23160
23161
23162
23163
23164
23165 if test "$ac_cv_libz" != yes; then
23166 if test "$use_libz" = auto; then
23167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cannot find libz, disabling compression" >&5
23168 printf "%s\n" "$as_me: Cannot find libz, disabling compression" >&6;}
23169 found_libz="disabled; no libz found"
23170 else
23171 libz_errors="No libz found.
23172 Try --with-libz-prefix=PATH if you know that you have it."
23173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ERROR: $libz_errors" >&5
23174 printf "%s\n" "$as_me: ERROR: $libz_errors" >&6;}
23175 fi
23176 else
23177
23178 printf "%s\n" "#define LIBSSH2_HAVE_ZLIB 1" >>confdefs.h
23179
23180 LIBSSH2_PC_REQUIRES_PRIVATE="$LIBSSH2_PC_REQUIRES_PRIVATE${LIBSSH2_PC_REQUIRES_PRIVATE:+,}zlib"
23181 found_libz="yes"
23182 fi
23183 fi
23184
23185
23186
23187 #
23188 # Optional Settings
23189 #
23190 # Check whether --enable-clear-memory was given.
23191 if test ${enable_clear_memory+y}
23192 then :
23193 enableval=$enable_clear_memory; CLEAR_MEMORY=$enableval
23194 fi
23195
23196 if test "$CLEAR_MEMORY" = "no"; then
23197
23198 printf "%s\n" "#define LIBSSH2_NO_CLEAR_MEMORY 1" >>confdefs.h
23199
23200 enable_clear_memory=no
23201 else
23202 enable_clear_memory=yes
23203 fi
23204
23205 LIBSSH2_CFLAG_EXTRAS=""
23206
23207
23208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
23209 printf %s "checking whether to enable compiler warnings as errors... " >&6; }
23210 OPT_COMPILER_WERROR="default"
23211 # Check whether --enable-werror was given.
23212 if test ${enable_werror+y}
23213 then :
23214 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
23215 fi
23216
23217 case "$OPT_COMPILER_WERROR" in
23218 no)
23219 want_werror="no"
23220 ;;
23221 default)
23222 want_werror="no"
23223 ;;
23224 *)
23225 want_werror="yes"
23226 ;;
23227 esac
23228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
23229 printf "%s\n" "$want_werror" >&6; }
23230
23231 if test X"$want_werror" = Xyes; then
23232 LIBSSH2_CFLAG_EXTRAS="$LIBSSH2_CFLAG_EXTRAS -Werror"
23233 fi
23234
23235
23236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable pedantic and debug compiler options" >&5
23237 printf %s "checking whether to enable pedantic and debug compiler options... " >&6; }
23238 ac_ext=c
23239 ac_cpp='$CPP $CPPFLAGS'
23240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
23244 printf %s "checking how to run the C preprocessor... " >&6; }
23245 # On Suns, sometimes $CPP names a directory.
23246 if test -n "$CPP" && test -d "$CPP"; then
23247 CPP=
23248 fi
23249 if test -z "$CPP"; then
23250 if test ${ac_cv_prog_CPP+y}
23251 then :
23252 printf %s "(cached) " >&6
23253 else case e in #(
23254 e) # Double quotes because $CC needs to be expanded
23255 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
23256 do
23257 ac_preproc_ok=false
23258 for ac_c_preproc_warn_flag in '' yes
23259 do
23260 # Use a header file that comes with gcc, so configuring glibc
23261 # with a fresh cross-compiler works.
23262 # On the NeXT, cc -E runs the code through the compiler's parser,
23263 # not just through cpp. "Syntax error" is here to catch this case.
23264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23265 /* end confdefs.h. */
23266 #include <limits.h>
23267 Syntax error
23268 _ACEOF
23269 if ac_fn_c_try_cpp "$LINENO"
23270 then :
23271
23272 else case e in #(
23273 e) # Broken: fails on valid input.
23274 continue ;;
23275 esac
23276 fi
23277 rm -f conftest.err conftest.i conftest.$ac_ext
23278
23279 # OK, works on sane cases. Now check whether nonexistent headers
23280 # can be detected and how.
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282 /* end confdefs.h. */
23283 #include <ac_nonexistent.h>
23284 _ACEOF
23285 if ac_fn_c_try_cpp "$LINENO"
23286 then :
23287 # Broken: success on invalid input.
23288 continue
23289 else case e in #(
23290 e) # Passes both tests.
23291 ac_preproc_ok=:
23292 break ;;
23293 esac
23294 fi
23295 rm -f conftest.err conftest.i conftest.$ac_ext
23296
23297 done
23298 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23299 rm -f conftest.i conftest.err conftest.$ac_ext
23300 if $ac_preproc_ok
23301 then :
23302 break
23303 fi
23304
23305 done
23306 ac_cv_prog_CPP=$CPP
23307 ;;
23308 esac
23309 fi
23310 CPP=$ac_cv_prog_CPP
23311 else
23312 ac_cv_prog_CPP=$CPP
23313 fi
23314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
23315 printf "%s\n" "$CPP" >&6; }
23316 ac_preproc_ok=false
23317 for ac_c_preproc_warn_flag in '' yes
23318 do
23319 # Use a header file that comes with gcc, so configuring glibc
23320 # with a fresh cross-compiler works.
23321 # On the NeXT, cc -E runs the code through the compiler's parser,
23322 # not just through cpp. "Syntax error" is here to catch this case.
23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23324 /* end confdefs.h. */
23325 #include <limits.h>
23326 Syntax error
23327 _ACEOF
23328 if ac_fn_c_try_cpp "$LINENO"
23329 then :
23330
23331 else case e in #(
23332 e) # Broken: fails on valid input.
23333 continue ;;
23334 esac
23335 fi
23336 rm -f conftest.err conftest.i conftest.$ac_ext
23337
23338 # OK, works on sane cases. Now check whether nonexistent headers
23339 # can be detected and how.
23340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23341 /* end confdefs.h. */
23342 #include <ac_nonexistent.h>
23343 _ACEOF
23344 if ac_fn_c_try_cpp "$LINENO"
23345 then :
23346 # Broken: success on invalid input.
23347 continue
23348 else case e in #(
23349 e) # Passes both tests.
23350 ac_preproc_ok=:
23351 break ;;
23352 esac
23353 fi
23354 rm -f conftest.err conftest.i conftest.$ac_ext
23355
23356 done
23357 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23358 rm -f conftest.i conftest.err conftest.$ac_ext
23359 if $ac_preproc_ok
23360 then :
23361
23362 else case e in #(
23363 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23364 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23365 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
23366 See 'config.log' for more details" "$LINENO" 5; } ;;
23367 esac
23368 fi
23369
23370 ac_ext=c
23371 ac_cpp='$CPP $CPPFLAGS'
23372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23375
23376
23377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
23378 printf %s "checking for egrep -e... " >&6; }
23379 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
23380 then :
23381 printf %s "(cached) " >&6
23382 else case e in #(
23383 e) if test -z "$EGREP_TRADITIONAL"; then
23384 ac_path_EGREP_TRADITIONAL_found=false
23385 # Loop through the user's path and test for each of PROGNAME-LIST
23386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
23388 do
23389 IFS=$as_save_IFS
23390 case $as_dir in #(((
23391 '') as_dir=./ ;;
23392 */) ;;
23393 *) as_dir=$as_dir/ ;;
23394 esac
23395 for ac_prog in grep ggrep
23396 do
23397 for ac_exec_ext in '' $ac_executable_extensions; do
23398 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
23399 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
23400 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
23401 # Check for GNU $ac_path_EGREP_TRADITIONAL
23402 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
23403 *GNU*)
23404 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
23405 #(
23406 *)
23407 ac_count=0
23408 printf %s 0123456789 >"conftest.in"
23409 while :
23410 do
23411 cat "conftest.in" "conftest.in" >"conftest.tmp"
23412 mv "conftest.tmp" "conftest.in"
23413 cp "conftest.in" "conftest.nl"
23414 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
23415 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
23416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23417 as_fn_arith $ac_count + 1 && ac_count=$as_val
23418 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
23419 # Best one so far, save it but keep looking for a better one
23420 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
23421 ac_path_EGREP_TRADITIONAL_max=$ac_count
23422 fi
23423 # 10*(2^10) chars as input seems more than enough
23424 test $ac_count -gt 10 && break
23425 done
23426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23427 esac
23428
23429 $ac_path_EGREP_TRADITIONAL_found && break 3
23430 done
23431 done
23432 done
23433 IFS=$as_save_IFS
23434 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
23435 :
23436 fi
23437 else
23438 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
23439 fi
23440
23441 if test "$ac_cv_path_EGREP_TRADITIONAL"
23442 then :
23443 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
23444 else case e in #(
23445 e) if test -z "$EGREP_TRADITIONAL"; then
23446 ac_path_EGREP_TRADITIONAL_found=false
23447 # Loop through the user's path and test for each of PROGNAME-LIST
23448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
23450 do
23451 IFS=$as_save_IFS
23452 case $as_dir in #(((
23453 '') as_dir=./ ;;
23454 */) ;;
23455 *) as_dir=$as_dir/ ;;
23456 esac
23457 for ac_prog in egrep
23458 do
23459 for ac_exec_ext in '' $ac_executable_extensions; do
23460 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
23461 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
23462 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
23463 # Check for GNU $ac_path_EGREP_TRADITIONAL
23464 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
23465 *GNU*)
23466 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
23467 #(
23468 *)
23469 ac_count=0
23470 printf %s 0123456789 >"conftest.in"
23471 while :
23472 do
23473 cat "conftest.in" "conftest.in" >"conftest.tmp"
23474 mv "conftest.tmp" "conftest.in"
23475 cp "conftest.in" "conftest.nl"
23476 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
23477 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
23478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23479 as_fn_arith $ac_count + 1 && ac_count=$as_val
23480 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
23481 # Best one so far, save it but keep looking for a better one
23482 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
23483 ac_path_EGREP_TRADITIONAL_max=$ac_count
23484 fi
23485 # 10*(2^10) chars as input seems more than enough
23486 test $ac_count -gt 10 && break
23487 done
23488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23489 esac
23490
23491 $ac_path_EGREP_TRADITIONAL_found && break 3
23492 done
23493 done
23494 done
23495 IFS=$as_save_IFS
23496 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
23497 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
23498 fi
23499 else
23500 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
23501 fi
23502 ;;
23503 esac
23504 fi ;;
23505 esac
23506 fi
23507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
23508 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
23509 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
23510
23511
23512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
23513 printf %s "checking if cpp -P is needed... " >&6; }
23514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23515 /* end confdefs.h. */
23516
23517 #include <errno.h>
23518 TEST EINVAL TEST
23519
23520 _ACEOF
23521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23522 $EGREP_TRADITIONAL "TEST.*TEST" >/dev/null 2>&1
23523 then :
23524 cpp=no
23525 else case e in #(
23526 e) cpp=yes ;;
23527 esac
23528 fi
23529 rm -rf conftest*
23530
23531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
23532 printf "%s\n" "$cpp" >&6; }
23533
23534 if test "x$cpp" = "xyes"; then
23535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
23536 printf %s "checking if cpp -P works... " >&6; }
23537 OLDCPPFLAGS=$CPPFLAGS
23538 CPPFLAGS="$CPPFLAGS -P"
23539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540 /* end confdefs.h. */
23541
23542 #include <errno.h>
23543 TEST EINVAL TEST
23544
23545 _ACEOF
23546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23547 $EGREP_TRADITIONAL "TEST.*TEST" >/dev/null 2>&1
23548 then :
23549 cpp_p=yes
23550 else case e in #(
23551 e) cpp_p=no ;;
23552 esac
23553 fi
23554 rm -rf conftest*
23555
23556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
23557 printf "%s\n" "$cpp_p" >&6; }
23558
23559 if test "x$cpp_p" = "xno"; then
23560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
23561 printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
23562 # without -P
23563 CPPPFLAG=""
23564 else
23565 # with -P
23566 CPPPFLAG="-P"
23567 fi
23568 CPPFLAGS=$OLDCPPFLAGS
23569 else
23570 # without -P
23571 CPPPFLAG=""
23572 fi
23573
23574
23575 squeeze() {
23576 _sqz_result=""
23577 eval _sqz_input=\$$1
23578 for _sqz_token in $_sqz_input; do
23579 if test -z "$_sqz_result"; then
23580 _sqz_result="$_sqz_token"
23581 else
23582 _sqz_result="$_sqz_result $_sqz_token"
23583 fi
23584 done
23585 eval $1=\$_sqz_result
23586 return 0
23587 }
23588
23589 # Check whether --enable-debug was given.
23590 if test ${enable_debug+y}
23591 then :
23592 enableval=$enable_debug; case "$enable_debug" in
23593 no)
23594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23595 printf "%s\n" "no" >&6; }
23596 CPPFLAGS="$CPPFLAGS -DNDEBUG"
23597 ;;
23598 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23599 printf "%s\n" "yes" >&6; }
23600 enable_debug=yes
23601 CPPFLAGS="$CPPFLAGS -DLIBSSH2DEBUG"
23602 CFLAGS="$CFLAGS -g"
23603
23604
23605 if test "z$CLANG" = "z"; then
23606
23607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
23608 printf %s "checking if compiler is clang... " >&6; }
23609
23610 OLDCPPFLAGS=$CPPFLAGS
23611 # CPPPFLAG comes from CURL_CPP_P
23612 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23613 if test -z "$SED"; then
23614 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23615 fi
23616 if test -z "$GREP"; then
23617 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23618 fi
23619
23620 tmp_exp=""
23621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23622 /* end confdefs.h. */
23623
23624
23625 #ifdef __clang__
23626 CURL_DEF_TOKEN __clang__
23627 #endif
23628
23629
23630 _ACEOF
23631 if ac_fn_c_try_cpp "$LINENO"
23632 then :
23633
23634 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23635 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23636 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23637 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23638 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
23639 tmp_exp=""
23640 fi
23641
23642 fi
23643 rm -f conftest.err conftest.i conftest.$ac_ext
23644 if test -z "$tmp_exp"; then
23645 curl_cv_have_def___clang__=no
23646
23647 else
23648 curl_cv_have_def___clang__=yes
23649 curl_cv_def___clang__=$tmp_exp
23650
23651 fi
23652 CPPFLAGS=$OLDCPPFLAGS
23653
23654 if test "$curl_cv_have_def___clang__" = "yes"; then
23655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23656 printf "%s\n" "yes" >&6; }
23657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
23658 printf %s "checking if compiler is xlclang... " >&6; }
23659
23660 OLDCPPFLAGS=$CPPFLAGS
23661 # CPPPFLAG comes from CURL_CPP_P
23662 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23663 if test -z "$SED"; then
23664 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23665 fi
23666 if test -z "$GREP"; then
23667 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23668 fi
23669
23670 tmp_exp=""
23671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23672 /* end confdefs.h. */
23673
23674
23675 #ifdef __ibmxl__
23676 CURL_DEF_TOKEN __ibmxl__
23677 #endif
23678
23679
23680 _ACEOF
23681 if ac_fn_c_try_cpp "$LINENO"
23682 then :
23683
23684 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23685 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23686 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23687 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23688 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
23689 tmp_exp=""
23690 fi
23691
23692 fi
23693 rm -f conftest.err conftest.i conftest.$ac_ext
23694 if test -z "$tmp_exp"; then
23695 curl_cv_have_def___ibmxl__=no
23696
23697 else
23698 curl_cv_have_def___ibmxl__=yes
23699 curl_cv_def___ibmxl__=$tmp_exp
23700
23701 fi
23702 CPPFLAGS=$OLDCPPFLAGS
23703
23704 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
23705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23706 printf "%s\n" "yes" >&6; }
23707 compiler_id="XLCLANG"
23708 else
23709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23710 printf "%s\n" "no" >&6; }
23711 compiler_id="CLANG"
23712 fi
23713 flags_dbg_yes="-g"
23714 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
23715 flags_opt_yes="-O2"
23716 flags_opt_off="-O0"
23717 else
23718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23719 printf "%s\n" "no" >&6; }
23720 fi
23721
23722 if test "z$compiler_id" = "zCLANG"; then
23723 CLANG="yes"
23724 else
23725 CLANG="no"
23726 fi
23727 fi
23728 if test "z$ICC" = "z"; then
23729
23730 ICC="no"
23731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icc in use" >&5
23732 printf %s "checking for icc in use... " >&6; }
23733 if test "$GCC" = "yes"; then
23734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23735 /* end confdefs.h. */
23736 __INTEL_COMPILER
23737 _ACEOF
23738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23739 $EGREP_TRADITIONAL "^__INTEL_COMPILER" >/dev/null 2>&1
23740 then :
23741 ICC="no"
23742 else case e in #(
23743 e) ICC="yes"
23744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23745 printf "%s\n" "yes" >&6; }
23746
23747 ;;
23748 esac
23749 fi
23750 rm -rf conftest*
23751
23752 fi
23753 if test "$ICC" = "no"; then
23754 # this is not ICC
23755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23756 printf "%s\n" "no" >&6; }
23757 fi
23758
23759 fi
23760
23761 if test "$CLANG" = "yes"; then
23762
23763 # indentation to match curl's m4/curl-compilers.m4
23764
23765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
23766 printf %s "checking compiler version... " >&6; }
23767 fullclangver=`$CC -v 2>&1 | grep version`
23768 if echo $fullclangver | grep 'Apple' >/dev/null; then
23769 appleclang=1
23770 else
23771 appleclang=0
23772 fi
23773 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
23774 if test -z "$clangver"; then
23775 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
23776 oldapple=0
23777 else
23778 oldapple=1
23779 fi
23780 clangvhi=`echo $clangver | cut -d . -f1`
23781 clangvlo=`echo $clangver | cut -d . -f2`
23782 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
23783 if test "$appleclang" = '1' && test "$oldapple" = '0'; then
23784 if test "$compiler_num" -ge '1300'; then compiler_num='1200'
23785 elif test "$compiler_num" -ge '1205'; then compiler_num='1101'
23786 elif test "$compiler_num" -ge '1204'; then compiler_num='1000'
23787 elif test "$compiler_num" -ge '1107'; then compiler_num='900'
23788 elif test "$compiler_num" -ge '1103'; then compiler_num='800'
23789 elif test "$compiler_num" -ge '1003'; then compiler_num='700'
23790 elif test "$compiler_num" -ge '1001'; then compiler_num='600'
23791 elif test "$compiler_num" -ge '904'; then compiler_num='500'
23792 elif test "$compiler_num" -ge '902'; then compiler_num='400'
23793 elif test "$compiler_num" -ge '803'; then compiler_num='309'
23794 elif test "$compiler_num" -ge '703'; then compiler_num='308'
23795 else compiler_num='307'
23796 fi
23797 fi
23798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&5
23799 printf "%s\n" "clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&6; }
23800
23801 tmp_CFLAGS="-pedantic"
23802 if test "$want_werror" = "yes"; then
23803 LIBSSH2_CFLAG_EXTRAS="$LIBSSH2_CFLAG_EXTRAS -pedantic-errors"
23804 fi
23805
23806 ac_var_added_warnings=""
23807 for warning in all extra; do
23808
23809 ac_var_match_word="no"
23810 for word1 in $CFLAGS; do
23811 for word2 in -Wno-$warning -W$warning; do
23812 if test "$word1" = "$word2"; then
23813 ac_var_match_word="yes"
23814 fi
23815 done
23816 done
23817
23818 if test "$ac_var_match_word" = "no"; then
23819 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
23820 fi
23821 done
23822 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
23823 squeeze tmp_CFLAGS
23824
23825
23826 ac_var_added_warnings=""
23827 for warning in pointer-arith write-strings; do
23828
23829 ac_var_match_word="no"
23830 for word1 in $CFLAGS; do
23831 for word2 in -Wno-$warning -W$warning; do
23832 if test "$word1" = "$word2"; then
23833 ac_var_match_word="yes"
23834 fi
23835 done
23836 done
23837
23838 if test "$ac_var_match_word" = "no"; then
23839 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
23840 fi
23841 done
23842 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
23843 squeeze tmp_CFLAGS
23844
23845
23846 ac_var_added_warnings=""
23847 for warning in shadow; do
23848
23849 ac_var_match_word="no"
23850 for word1 in $CFLAGS; do
23851 for word2 in -Wno-$warning -W$warning; do
23852 if test "$word1" = "$word2"; then
23853 ac_var_match_word="yes"
23854 fi
23855 done
23856 done
23857
23858 if test "$ac_var_match_word" = "no"; then
23859 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
23860 fi
23861 done
23862 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
23863 squeeze tmp_CFLAGS
23864
23865
23866 ac_var_added_warnings=""
23867 for warning in inline nested-externs; do
23868
23869 ac_var_match_word="no"
23870 for word1 in $CFLAGS; do
23871 for word2 in -Wno-$warning -W$warning; do
23872 if test "$word1" = "$word2"; then
23873 ac_var_match_word="yes"
23874 fi
23875 done
23876 done
23877
23878 if test "$ac_var_match_word" = "no"; then
23879 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
23880 fi
23881 done
23882 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
23883 squeeze tmp_CFLAGS
23884
23885
23886 ac_var_added_warnings=""
23887 for warning in missing-declarations; do
23888
23889 ac_var_match_word="no"
23890 for word1 in $CFLAGS; do
23891 for word2 in -Wno-$warning -W$warning; do
23892 if test "$word1" = "$word2"; then
23893 ac_var_match_word="yes"
23894 fi
23895 done
23896 done
23897
23898 if test "$ac_var_match_word" = "no"; then
23899 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
23900 fi
23901 done
23902 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
23903 squeeze tmp_CFLAGS
23904
23905
23906 ac_var_added_warnings=""
23907 for warning in missing-prototypes; do
23908
23909 ac_var_match_word="no"
23910 for word1 in $CFLAGS; do
23911 for word2 in -Wno-$warning -W$warning; do
23912 if test "$word1" = "$word2"; then
23913 ac_var_match_word="yes"
23914 fi
23915 done
23916 done
23917
23918 if test "$ac_var_match_word" = "no"; then
23919 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
23920 fi
23921 done
23922 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
23923 squeeze tmp_CFLAGS
23924
23925 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
23926
23927 ac_var_added_warnings=""
23928 for warning in float-equal; do
23929
23930 ac_var_match_word="no"
23931 for word1 in $CFLAGS; do
23932 for word2 in -Wno-$warning -W$warning; do
23933 if test "$word1" = "$word2"; then
23934 ac_var_match_word="yes"
23935 fi
23936 done
23937 done
23938
23939 if test "$ac_var_match_word" = "no"; then
23940 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
23941 fi
23942 done
23943 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
23944 squeeze tmp_CFLAGS
23945
23946
23947 ac_var_added_warnings=""
23948 for warning in sign-compare; do
23949
23950 ac_var_match_word="no"
23951 for word1 in $CFLAGS; do
23952 for word2 in -Wno-$warning -W$warning; do
23953 if test "$word1" = "$word2"; then
23954 ac_var_match_word="yes"
23955 fi
23956 done
23957 done
23958
23959 if test "$ac_var_match_word" = "no"; then
23960 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
23961 fi
23962 done
23963 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
23964 squeeze tmp_CFLAGS
23965
23966 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
23967
23968 ac_var_added_warnings=""
23969 for warning in undef; do
23970
23971 ac_var_match_word="no"
23972 for word1 in $CFLAGS; do
23973 for word2 in -Wno-$warning -W$warning; do
23974 if test "$word1" = "$word2"; then
23975 ac_var_match_word="yes"
23976 fi
23977 done
23978 done
23979
23980 if test "$ac_var_match_word" = "no"; then
23981 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
23982 fi
23983 done
23984 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
23985 squeeze tmp_CFLAGS
23986
23987 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
23988
23989 ac_var_added_warnings=""
23990 for warning in endif-labels strict-prototypes; do
23991
23992 ac_var_match_word="no"
23993 for word1 in $CFLAGS; do
23994 for word2 in -Wno-$warning -W$warning; do
23995 if test "$word1" = "$word2"; then
23996 ac_var_match_word="yes"
23997 fi
23998 done
23999 done
24000
24001 if test "$ac_var_match_word" = "no"; then
24002 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24003 fi
24004 done
24005 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24006 squeeze tmp_CFLAGS
24007
24008
24009 ac_var_added_warnings=""
24010 for warning in declaration-after-statement; do
24011
24012 ac_var_match_word="no"
24013 for word1 in $CFLAGS; do
24014 for word2 in -Wno-$warning -W$warning; do
24015 if test "$word1" = "$word2"; then
24016 ac_var_match_word="yes"
24017 fi
24018 done
24019 done
24020
24021 if test "$ac_var_match_word" = "no"; then
24022 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24023 fi
24024 done
24025 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24026 squeeze tmp_CFLAGS
24027
24028
24029 ac_var_added_warnings=""
24030 for warning in cast-align; do
24031
24032 ac_var_match_word="no"
24033 for word1 in $CFLAGS; do
24034 for word2 in -Wno-$warning -W$warning; do
24035 if test "$word1" = "$word2"; then
24036 ac_var_match_word="yes"
24037 fi
24038 done
24039 done
24040
24041 if test "$ac_var_match_word" = "no"; then
24042 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24043 fi
24044 done
24045 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24046 squeeze tmp_CFLAGS
24047
24048 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
24049
24050 ac_var_added_warnings=""
24051 for warning in shorten-64-to-32; do
24052
24053 ac_var_match_word="no"
24054 for word1 in $CFLAGS; do
24055 for word2 in -Wno-$warning -W$warning; do
24056 if test "$word1" = "$word2"; then
24057 ac_var_match_word="yes"
24058 fi
24059 done
24060 done
24061
24062 if test "$ac_var_match_word" = "no"; then
24063 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24064 fi
24065 done
24066 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24067 squeeze tmp_CFLAGS
24068
24069 #
24070 if test "$compiler_num" -ge "101"; then
24071
24072 ac_var_added_warnings=""
24073 for warning in unused; do
24074
24075 ac_var_match_word="no"
24076 for word1 in $CFLAGS; do
24077 for word2 in -Wno-$warning -W$warning; do
24078 if test "$word1" = "$word2"; then
24079 ac_var_match_word="yes"
24080 fi
24081 done
24082 done
24083
24084 if test "$ac_var_match_word" = "no"; then
24085 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24086 fi
24087 done
24088 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24089 squeeze tmp_CFLAGS
24090
24091 fi
24092 #
24093 if test "$compiler_num" -ge "207"; then
24094
24095 ac_var_added_warnings=""
24096 for warning in address; do
24097
24098 ac_var_match_word="no"
24099 for word1 in $CFLAGS; do
24100 for word2 in -Wno-$warning -W$warning; do
24101 if test "$word1" = "$word2"; then
24102 ac_var_match_word="yes"
24103 fi
24104 done
24105 done
24106
24107 if test "$ac_var_match_word" = "no"; then
24108 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24109 fi
24110 done
24111 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24112 squeeze tmp_CFLAGS
24113
24114
24115 ac_var_added_warnings=""
24116 for warning in attributes; do
24117
24118 ac_var_match_word="no"
24119 for word1 in $CFLAGS; do
24120 for word2 in -Wno-$warning -W$warning; do
24121 if test "$word1" = "$word2"; then
24122 ac_var_match_word="yes"
24123 fi
24124 done
24125 done
24126
24127 if test "$ac_var_match_word" = "no"; then
24128 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24129 fi
24130 done
24131 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24132 squeeze tmp_CFLAGS
24133
24134
24135 ac_var_added_warnings=""
24136 for warning in bad-function-cast; do
24137
24138 ac_var_match_word="no"
24139 for word1 in $CFLAGS; do
24140 for word2 in -Wno-$warning -W$warning; do
24141 if test "$word1" = "$word2"; then
24142 ac_var_match_word="yes"
24143 fi
24144 done
24145 done
24146
24147 if test "$ac_var_match_word" = "no"; then
24148 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24149 fi
24150 done
24151 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24152 squeeze tmp_CFLAGS
24153
24154
24155 ac_var_added_warnings=""
24156 for warning in conversion; do
24157
24158 ac_var_match_word="no"
24159 for word1 in $CFLAGS; do
24160 for word2 in -Wno-$warning -W$warning; do
24161 if test "$word1" = "$word2"; then
24162 ac_var_match_word="yes"
24163 fi
24164 done
24165 done
24166
24167 if test "$ac_var_match_word" = "no"; then
24168 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24169 fi
24170 done
24171 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24172 squeeze tmp_CFLAGS
24173
24174
24175 ac_var_added_warnings=""
24176 for warning in div-by-zero format-security; do
24177
24178 ac_var_match_word="no"
24179 for word1 in $CFLAGS; do
24180 for word2 in -Wno-$warning -W$warning; do
24181 if test "$word1" = "$word2"; then
24182 ac_var_match_word="yes"
24183 fi
24184 done
24185 done
24186
24187 if test "$ac_var_match_word" = "no"; then
24188 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24189 fi
24190 done
24191 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24192 squeeze tmp_CFLAGS
24193
24194
24195 ac_var_added_warnings=""
24196 for warning in empty-body; do
24197
24198 ac_var_match_word="no"
24199 for word1 in $CFLAGS; do
24200 for word2 in -Wno-$warning -W$warning; do
24201 if test "$word1" = "$word2"; then
24202 ac_var_match_word="yes"
24203 fi
24204 done
24205 done
24206
24207 if test "$ac_var_match_word" = "no"; then
24208 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24209 fi
24210 done
24211 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24212 squeeze tmp_CFLAGS
24213
24214
24215 ac_var_added_warnings=""
24216 for warning in missing-field-initializers; do
24217
24218 ac_var_match_word="no"
24219 for word1 in $CFLAGS; do
24220 for word2 in -Wno-$warning -W$warning; do
24221 if test "$word1" = "$word2"; then
24222 ac_var_match_word="yes"
24223 fi
24224 done
24225 done
24226
24227 if test "$ac_var_match_word" = "no"; then
24228 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24229 fi
24230 done
24231 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24232 squeeze tmp_CFLAGS
24233
24234
24235 ac_var_added_warnings=""
24236 for warning in missing-noreturn; do
24237
24238 ac_var_match_word="no"
24239 for word1 in $CFLAGS; do
24240 for word2 in -Wno-$warning -W$warning; do
24241 if test "$word1" = "$word2"; then
24242 ac_var_match_word="yes"
24243 fi
24244 done
24245 done
24246
24247 if test "$ac_var_match_word" = "no"; then
24248 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24249 fi
24250 done
24251 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24252 squeeze tmp_CFLAGS
24253
24254
24255 ac_var_added_warnings=""
24256 for warning in old-style-definition; do
24257
24258 ac_var_match_word="no"
24259 for word1 in $CFLAGS; do
24260 for word2 in -Wno-$warning -W$warning; do
24261 if test "$word1" = "$word2"; then
24262 ac_var_match_word="yes"
24263 fi
24264 done
24265 done
24266
24267 if test "$ac_var_match_word" = "no"; then
24268 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24269 fi
24270 done
24271 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24272 squeeze tmp_CFLAGS
24273
24274
24275 ac_var_added_warnings=""
24276 for warning in redundant-decls; do
24277
24278 ac_var_match_word="no"
24279 for word1 in $CFLAGS; do
24280 for word2 in -Wno-$warning -W$warning; do
24281 if test "$word1" = "$word2"; then
24282 ac_var_match_word="yes"
24283 fi
24284 done
24285 done
24286
24287 if test "$ac_var_match_word" = "no"; then
24288 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24289 fi
24290 done
24291 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24292 squeeze tmp_CFLAGS
24293
24294 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically disallows default case
24295
24296 ac_var_added_warnings=""
24297 for warning in type-limits; do
24298
24299 ac_var_match_word="no"
24300 for word1 in $CFLAGS; do
24301 for word2 in -Wno-$warning -W$warning; do
24302 if test "$word1" = "$word2"; then
24303 ac_var_match_word="yes"
24304 fi
24305 done
24306 done
24307
24308 if test "$ac_var_match_word" = "no"; then
24309 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24310 fi
24311 done
24312 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24313 squeeze tmp_CFLAGS
24314
24315 if test "x$have_windows_h" != "xyes"; then
24316
24317 ac_var_added_warnings=""
24318 for warning in unused-macros; do
24319
24320 ac_var_match_word="no"
24321 for word1 in $CFLAGS; do
24322 for word2 in -Wno-$warning -W$warning; do
24323 if test "$word1" = "$word2"; then
24324 ac_var_match_word="yes"
24325 fi
24326 done
24327 done
24328
24329 if test "$ac_var_match_word" = "no"; then
24330 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24331 fi
24332 done
24333 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24334 squeeze tmp_CFLAGS
24335 # Seen to clash with libtool-generated stub code
24336 fi
24337
24338 ac_var_added_warnings=""
24339 for warning in unreachable-code unused-parameter; do
24340
24341 ac_var_match_word="no"
24342 for word1 in $CFLAGS; do
24343 for word2 in -Wno-$warning -W$warning; do
24344 if test "$word1" = "$word2"; then
24345 ac_var_match_word="yes"
24346 fi
24347 done
24348 done
24349
24350 if test "$ac_var_match_word" = "no"; then
24351 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24352 fi
24353 done
24354 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24355 squeeze tmp_CFLAGS
24356
24357 fi
24358 #
24359 if test "$compiler_num" -ge "208"; then
24360
24361 ac_var_added_warnings=""
24362 for warning in ignored-qualifiers; do
24363
24364 ac_var_match_word="no"
24365 for word1 in $CFLAGS; do
24366 for word2 in -Wno-$warning -W$warning; do
24367 if test "$word1" = "$word2"; then
24368 ac_var_match_word="yes"
24369 fi
24370 done
24371 done
24372
24373 if test "$ac_var_match_word" = "no"; then
24374 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24375 fi
24376 done
24377 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24378 squeeze tmp_CFLAGS
24379
24380
24381 ac_var_added_warnings=""
24382 for warning in vla; do
24383
24384 ac_var_match_word="no"
24385 for word1 in $CFLAGS; do
24386 for word2 in -Wno-$warning -W$warning; do
24387 if test "$word1" = "$word2"; then
24388 ac_var_match_word="yes"
24389 fi
24390 done
24391 done
24392
24393 if test "$ac_var_match_word" = "no"; then
24394 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24395 fi
24396 done
24397 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24398 squeeze tmp_CFLAGS
24399
24400 fi
24401 #
24402 if test "$compiler_num" -ge "209"; then
24403
24404 ac_var_added_warnings=""
24405 for warning in sign-conversion; do
24406
24407 ac_var_match_word="no"
24408 for word1 in $CFLAGS; do
24409 for word2 in -Wno-$warning -W$warning; do
24410 if test "$word1" = "$word2"; then
24411 ac_var_match_word="yes"
24412 fi
24413 done
24414 done
24415
24416 if test "$ac_var_match_word" = "no"; then
24417 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24418 fi
24419 done
24420 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24421 squeeze tmp_CFLAGS
24422
24423 tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion" # FIXME
24424
24425 ac_var_added_warnings=""
24426 for warning in shift-sign-overflow; do
24427
24428 ac_var_match_word="no"
24429 for word1 in $CFLAGS; do
24430 for word2 in -Wno-$warning -W$warning; do
24431 if test "$word1" = "$word2"; then
24432 ac_var_match_word="yes"
24433 fi
24434 done
24435 done
24436
24437 if test "$ac_var_match_word" = "no"; then
24438 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24439 fi
24440 done
24441 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24442 squeeze tmp_CFLAGS
24443
24444 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded]) # Not used because we cannot change public structs
24445 fi
24446 #
24447 if test "$compiler_num" -ge "300"; then
24448
24449 ac_var_added_warnings=""
24450 for warning in language-extension-token; do
24451
24452 ac_var_match_word="no"
24453 for word1 in $CFLAGS; do
24454 for word2 in -Wno-$warning -W$warning; do
24455 if test "$word1" = "$word2"; then
24456 ac_var_match_word="yes"
24457 fi
24458 done
24459 done
24460
24461 if test "$ac_var_match_word" = "no"; then
24462 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24463 fi
24464 done
24465 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24466 squeeze tmp_CFLAGS
24467
24468 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
24469 fi
24470 #
24471 if test "$compiler_num" -ge "302"; then
24472
24473 ac_var_added_warnings=""
24474 for warning in enum-conversion; do
24475
24476 ac_var_match_word="no"
24477 for word1 in $CFLAGS; do
24478 for word2 in -Wno-$warning -W$warning; do
24479 if test "$word1" = "$word2"; then
24480 ac_var_match_word="yes"
24481 fi
24482 done
24483 done
24484
24485 if test "$ac_var_match_word" = "no"; then
24486 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24487 fi
24488 done
24489 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24490 squeeze tmp_CFLAGS
24491
24492
24493 ac_var_added_warnings=""
24494 for warning in sometimes-uninitialized; do
24495
24496 ac_var_match_word="no"
24497 for word1 in $CFLAGS; do
24498 for word2 in -Wno-$warning -W$warning; do
24499 if test "$word1" = "$word2"; then
24500 ac_var_match_word="yes"
24501 fi
24502 done
24503 done
24504
24505 if test "$ac_var_match_word" = "no"; then
24506 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24507 fi
24508 done
24509 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24510 squeeze tmp_CFLAGS
24511
24512 case $host_os in
24513 cygwin* | mingw*)
24514 ;;
24515 *)
24516
24517 ac_var_added_warnings=""
24518 for warning in missing-variable-declarations; do
24519
24520 ac_var_match_word="no"
24521 for word1 in $CFLAGS; do
24522 for word2 in -Wno-$warning -W$warning; do
24523 if test "$word1" = "$word2"; then
24524 ac_var_match_word="yes"
24525 fi
24526 done
24527 done
24528
24529 if test "$ac_var_match_word" = "no"; then
24530 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24531 fi
24532 done
24533 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24534 squeeze tmp_CFLAGS
24535
24536 ;;
24537 esac
24538 fi
24539 #
24540 if test "$compiler_num" -ge "304"; then
24541
24542 ac_var_added_warnings=""
24543 for warning in header-guard; do
24544
24545 ac_var_match_word="no"
24546 for word1 in $CFLAGS; do
24547 for word2 in -Wno-$warning -W$warning; do
24548 if test "$word1" = "$word2"; then
24549 ac_var_match_word="yes"
24550 fi
24551 done
24552 done
24553
24554 if test "$ac_var_match_word" = "no"; then
24555 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24556 fi
24557 done
24558 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24559 squeeze tmp_CFLAGS
24560
24561
24562 ac_var_added_warnings=""
24563 for warning in unused-const-variable; do
24564
24565 ac_var_match_word="no"
24566 for word1 in $CFLAGS; do
24567 for word2 in -Wno-$warning -W$warning; do
24568 if test "$word1" = "$word2"; then
24569 ac_var_match_word="yes"
24570 fi
24571 done
24572 done
24573
24574 if test "$ac_var_match_word" = "no"; then
24575 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24576 fi
24577 done
24578 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24579 squeeze tmp_CFLAGS
24580
24581 fi
24582 #
24583 if test "$compiler_num" -ge "305"; then
24584
24585 ac_var_added_warnings=""
24586 for warning in pragmas; do
24587
24588 ac_var_match_word="no"
24589 for word1 in $CFLAGS; do
24590 for word2 in -Wno-$warning -W$warning; do
24591 if test "$word1" = "$word2"; then
24592 ac_var_match_word="yes"
24593 fi
24594 done
24595 done
24596
24597 if test "$ac_var_match_word" = "no"; then
24598 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24599 fi
24600 done
24601 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24602 squeeze tmp_CFLAGS
24603
24604
24605 ac_var_added_warnings=""
24606 for warning in unreachable-code-break; do
24607
24608 ac_var_match_word="no"
24609 for word1 in $CFLAGS; do
24610 for word2 in -Wno-$warning -W$warning; do
24611 if test "$word1" = "$word2"; then
24612 ac_var_match_word="yes"
24613 fi
24614 done
24615 done
24616
24617 if test "$ac_var_match_word" = "no"; then
24618 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24619 fi
24620 done
24621 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24622 squeeze tmp_CFLAGS
24623
24624 fi
24625 #
24626 if test "$compiler_num" -ge "306"; then
24627
24628 ac_var_added_warnings=""
24629 for warning in double-promotion; do
24630
24631 ac_var_match_word="no"
24632 for word1 in $CFLAGS; do
24633 for word2 in -Wno-$warning -W$warning; do
24634 if test "$word1" = "$word2"; then
24635 ac_var_match_word="yes"
24636 fi
24637 done
24638 done
24639
24640 if test "$ac_var_match_word" = "no"; then
24641 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24642 fi
24643 done
24644 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24645 squeeze tmp_CFLAGS
24646
24647 fi
24648 #
24649 if test "$compiler_num" -ge "309"; then
24650
24651 ac_var_added_warnings=""
24652 for warning in comma; do
24653
24654 ac_var_match_word="no"
24655 for word1 in $CFLAGS; do
24656 for word2 in -Wno-$warning -W$warning; do
24657 if test "$word1" = "$word2"; then
24658 ac_var_match_word="yes"
24659 fi
24660 done
24661 done
24662
24663 if test "$ac_var_match_word" = "no"; then
24664 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24665 fi
24666 done
24667 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24668 squeeze tmp_CFLAGS
24669
24670 # avoid the varargs warning, fixed in 4.0
24671 # https://bugs.llvm.org/show_bug.cgi?id=29140
24672 if test "$compiler_num" -lt "400"; then
24673 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
24674 fi
24675 fi
24676 if test "$compiler_num" -ge "700"; then
24677
24678 ac_var_added_warnings=""
24679 for warning in assign-enum; do
24680
24681 ac_var_match_word="no"
24682 for word1 in $CFLAGS; do
24683 for word2 in -Wno-$warning -W$warning; do
24684 if test "$word1" = "$word2"; then
24685 ac_var_match_word="yes"
24686 fi
24687 done
24688 done
24689
24690 if test "$ac_var_match_word" = "no"; then
24691 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24692 fi
24693 done
24694 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24695 squeeze tmp_CFLAGS
24696
24697
24698 ac_var_added_warnings=""
24699 for warning in extra-semi-stmt; do
24700
24701 ac_var_match_word="no"
24702 for word1 in $CFLAGS; do
24703 for word2 in -Wno-$warning -W$warning; do
24704 if test "$word1" = "$word2"; then
24705 ac_var_match_word="yes"
24706 fi
24707 done
24708 done
24709
24710 if test "$ac_var_match_word" = "no"; then
24711 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24712 fi
24713 done
24714 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24715 squeeze tmp_CFLAGS
24716
24717 fi
24718 if test "$compiler_num" -ge "1000"; then
24719 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough" # we have silencing markup for clang 10.0 and above only
24720 fi
24721
24722 CFLAGS="$CFLAGS $tmp_CFLAGS"
24723
24724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added this set of compiler options: $tmp_CFLAGS" >&5
24725 printf "%s\n" "$as_me: Added this set of compiler options: $tmp_CFLAGS" >&6;}
24726
24727 elif test "$GCC" = "yes"; then
24728
24729 # indentation to match curl's m4/curl-compilers.m4
24730
24731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
24732 printf %s "checking compiler version... " >&6; }
24733 # strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
24734 gccver=`$CC -dumpversion | sed -E 's/-.+$//'`
24735 gccvhi=`echo $gccver | cut -d . -f1`
24736 if echo $gccver | grep -F "." >/dev/null; then
24737 gccvlo=`echo $gccver | cut -d . -f2`
24738 else
24739 gccvlo="0"
24740 fi
24741 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
24742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc '$compiler_num' (raw: '$gccver')" >&5
24743 printf "%s\n" "gcc '$compiler_num' (raw: '$gccver')" >&6; }
24744
24745 if test "$ICC" = "yes"; then
24746
24747
24748 tmp_CFLAGS="-wd279,269,981,1418,1419"
24749
24750 if test "$compiler_num" -gt "600"; then
24751 tmp_CFLAGS="-Wall $tmp_CFLAGS"
24752 fi
24753 else tmp_CFLAGS="-pedantic"
24754 if test "$want_werror" = "yes"; then
24755 LIBSSH2_CFLAG_EXTRAS="$LIBSSH2_CFLAG_EXTRAS -pedantic-errors"
24756 fi
24757
24758 ac_var_added_warnings=""
24759 for warning in all; do
24760
24761 ac_var_match_word="no"
24762 for word1 in $CFLAGS; do
24763 for word2 in -Wno-$warning -W$warning; do
24764 if test "$word1" = "$word2"; then
24765 ac_var_match_word="yes"
24766 fi
24767 done
24768 done
24769
24770 if test "$ac_var_match_word" = "no"; then
24771 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24772 fi
24773 done
24774 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24775 squeeze tmp_CFLAGS
24776
24777 tmp_CFLAGS="$tmp_CFLAGS -W"
24778
24779 ac_var_added_warnings=""
24780 for warning in pointer-arith write-strings; do
24781
24782 ac_var_match_word="no"
24783 for word1 in $CFLAGS; do
24784 for word2 in -Wno-$warning -W$warning; do
24785 if test "$word1" = "$word2"; then
24786 ac_var_match_word="yes"
24787 fi
24788 done
24789 done
24790
24791 if test "$ac_var_match_word" = "no"; then
24792 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24793 fi
24794 done
24795 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24796 squeeze tmp_CFLAGS
24797
24798 #
24799 if test "$compiler_num" -ge "207"; then
24800
24801 ac_var_added_warnings=""
24802 for warning in inline nested-externs; do
24803
24804 ac_var_match_word="no"
24805 for word1 in $CFLAGS; do
24806 for word2 in -Wno-$warning -W$warning; do
24807 if test "$word1" = "$word2"; then
24808 ac_var_match_word="yes"
24809 fi
24810 done
24811 done
24812
24813 if test "$ac_var_match_word" = "no"; then
24814 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24815 fi
24816 done
24817 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24818 squeeze tmp_CFLAGS
24819
24820
24821 ac_var_added_warnings=""
24822 for warning in missing-declarations; do
24823
24824 ac_var_match_word="no"
24825 for word1 in $CFLAGS; do
24826 for word2 in -Wno-$warning -W$warning; do
24827 if test "$word1" = "$word2"; then
24828 ac_var_match_word="yes"
24829 fi
24830 done
24831 done
24832
24833 if test "$ac_var_match_word" = "no"; then
24834 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24835 fi
24836 done
24837 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24838 squeeze tmp_CFLAGS
24839
24840
24841 ac_var_added_warnings=""
24842 for warning in missing-prototypes; do
24843
24844 ac_var_match_word="no"
24845 for word1 in $CFLAGS; do
24846 for word2 in -Wno-$warning -W$warning; do
24847 if test "$word1" = "$word2"; then
24848 ac_var_match_word="yes"
24849 fi
24850 done
24851 done
24852
24853 if test "$ac_var_match_word" = "no"; then
24854 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24855 fi
24856 done
24857 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24858 squeeze tmp_CFLAGS
24859
24860 fi
24861 #
24862 if test "$compiler_num" -ge "295"; then
24863 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
24864
24865 ac_var_added_warnings=""
24866 for warning in bad-function-cast; do
24867
24868 ac_var_match_word="no"
24869 for word1 in $CFLAGS; do
24870 for word2 in -Wno-$warning -W$warning; do
24871 if test "$word1" = "$word2"; then
24872 ac_var_match_word="yes"
24873 fi
24874 done
24875 done
24876
24877 if test "$ac_var_match_word" = "no"; then
24878 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24879 fi
24880 done
24881 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24882 squeeze tmp_CFLAGS
24883
24884 fi
24885 #
24886 if test "$compiler_num" -ge "296"; then
24887
24888 ac_var_added_warnings=""
24889 for warning in float-equal; do
24890
24891 ac_var_match_word="no"
24892 for word1 in $CFLAGS; do
24893 for word2 in -Wno-$warning -W$warning; do
24894 if test "$word1" = "$word2"; then
24895 ac_var_match_word="yes"
24896 fi
24897 done
24898 done
24899
24900 if test "$ac_var_match_word" = "no"; then
24901 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24902 fi
24903 done
24904 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24905 squeeze tmp_CFLAGS
24906
24907 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
24908
24909 ac_var_added_warnings=""
24910 for warning in sign-compare; do
24911
24912 ac_var_match_word="no"
24913 for word1 in $CFLAGS; do
24914 for word2 in -Wno-$warning -W$warning; do
24915 if test "$word1" = "$word2"; then
24916 ac_var_match_word="yes"
24917 fi
24918 done
24919 done
24920
24921 if test "$ac_var_match_word" = "no"; then
24922 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24923 fi
24924 done
24925 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24926 squeeze tmp_CFLAGS
24927
24928
24929 ac_var_added_warnings=""
24930 for warning in undef; do
24931
24932 ac_var_match_word="no"
24933 for word1 in $CFLAGS; do
24934 for word2 in -Wno-$warning -W$warning; do
24935 if test "$word1" = "$word2"; then
24936 ac_var_match_word="yes"
24937 fi
24938 done
24939 done
24940
24941 if test "$ac_var_match_word" = "no"; then
24942 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24943 fi
24944 done
24945 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24946 squeeze tmp_CFLAGS
24947
24948 fi
24949 #
24950 if test "$compiler_num" -ge "297"; then
24951 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
24952 fi
24953 #
24954 if test "$compiler_num" -ge "300"; then
24955 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
24956
24957 ac_var_added_warnings=""
24958 for warning in unused shadow; do
24959
24960 ac_var_match_word="no"
24961 for word1 in $CFLAGS; do
24962 for word2 in -Wno-$warning -W$warning; do
24963 if test "$word1" = "$word2"; then
24964 ac_var_match_word="yes"
24965 fi
24966 done
24967 done
24968
24969 if test "$ac_var_match_word" = "no"; then
24970 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24971 fi
24972 done
24973 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24974 squeeze tmp_CFLAGS
24975
24976 fi
24977 #
24978 if test "$compiler_num" -ge "303"; then
24979
24980 ac_var_added_warnings=""
24981 for warning in endif-labels strict-prototypes; do
24982
24983 ac_var_match_word="no"
24984 for word1 in $CFLAGS; do
24985 for word2 in -Wno-$warning -W$warning; do
24986 if test "$word1" = "$word2"; then
24987 ac_var_match_word="yes"
24988 fi
24989 done
24990 done
24991
24992 if test "$ac_var_match_word" = "no"; then
24993 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
24994 fi
24995 done
24996 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
24997 squeeze tmp_CFLAGS
24998
24999 fi
25000 #
25001 if test "$compiler_num" -ge "304"; then
25002
25003 ac_var_added_warnings=""
25004 for warning in declaration-after-statement; do
25005
25006 ac_var_match_word="no"
25007 for word1 in $CFLAGS; do
25008 for word2 in -Wno-$warning -W$warning; do
25009 if test "$word1" = "$word2"; then
25010 ac_var_match_word="yes"
25011 fi
25012 done
25013 done
25014
25015 if test "$ac_var_match_word" = "no"; then
25016 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25017 fi
25018 done
25019 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25020 squeeze tmp_CFLAGS
25021
25022
25023 ac_var_added_warnings=""
25024 for warning in old-style-definition; do
25025
25026 ac_var_match_word="no"
25027 for word1 in $CFLAGS; do
25028 for word2 in -Wno-$warning -W$warning; do
25029 if test "$word1" = "$word2"; then
25030 ac_var_match_word="yes"
25031 fi
25032 done
25033 done
25034
25035 if test "$ac_var_match_word" = "no"; then
25036 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25037 fi
25038 done
25039 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25040 squeeze tmp_CFLAGS
25041
25042 fi
25043 #
25044 if test "$compiler_num" -ge "400"; then
25045 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
25046 fi
25047 #
25048 if test "$compiler_num" -ge "401"; then
25049
25050 ac_var_added_warnings=""
25051 for warning in attributes; do
25052
25053 ac_var_match_word="no"
25054 for word1 in $CFLAGS; do
25055 for word2 in -Wno-$warning -W$warning; do
25056 if test "$word1" = "$word2"; then
25057 ac_var_match_word="yes"
25058 fi
25059 done
25060 done
25061
25062 if test "$ac_var_match_word" = "no"; then
25063 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25064 fi
25065 done
25066 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25067 squeeze tmp_CFLAGS
25068
25069
25070 ac_var_added_warnings=""
25071 for warning in div-by-zero format-security; do
25072
25073 ac_var_match_word="no"
25074 for word1 in $CFLAGS; do
25075 for word2 in -Wno-$warning -W$warning; do
25076 if test "$word1" = "$word2"; then
25077 ac_var_match_word="yes"
25078 fi
25079 done
25080 done
25081
25082 if test "$ac_var_match_word" = "no"; then
25083 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25084 fi
25085 done
25086 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25087 squeeze tmp_CFLAGS
25088
25089
25090 ac_var_added_warnings=""
25091 for warning in missing-field-initializers; do
25092
25093 ac_var_match_word="no"
25094 for word1 in $CFLAGS; do
25095 for word2 in -Wno-$warning -W$warning; do
25096 if test "$word1" = "$word2"; then
25097 ac_var_match_word="yes"
25098 fi
25099 done
25100 done
25101
25102 if test "$ac_var_match_word" = "no"; then
25103 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25104 fi
25105 done
25106 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25107 squeeze tmp_CFLAGS
25108
25109
25110 ac_var_added_warnings=""
25111 for warning in missing-noreturn; do
25112
25113 ac_var_match_word="no"
25114 for word1 in $CFLAGS; do
25115 for word2 in -Wno-$warning -W$warning; do
25116 if test "$word1" = "$word2"; then
25117 ac_var_match_word="yes"
25118 fi
25119 done
25120 done
25121
25122 if test "$ac_var_match_word" = "no"; then
25123 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25124 fi
25125 done
25126 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25127 squeeze tmp_CFLAGS
25128
25129
25130 ac_var_added_warnings=""
25131 for warning in unreachable-code unused-parameter; do
25132
25133 ac_var_match_word="no"
25134 for word1 in $CFLAGS; do
25135 for word2 in -Wno-$warning -W$warning; do
25136 if test "$word1" = "$word2"; then
25137 ac_var_match_word="yes"
25138 fi
25139 done
25140 done
25141
25142 if test "$ac_var_match_word" = "no"; then
25143 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25144 fi
25145 done
25146 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25147 squeeze tmp_CFLAGS
25148
25149 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded]) # Not used because we cannot change public structs
25150
25151 ac_var_added_warnings=""
25152 for warning in pragmas; do
25153
25154 ac_var_match_word="no"
25155 for word1 in $CFLAGS; do
25156 for word2 in -Wno-$warning -W$warning; do
25157 if test "$word1" = "$word2"; then
25158 ac_var_match_word="yes"
25159 fi
25160 done
25161 done
25162
25163 if test "$ac_var_match_word" = "no"; then
25164 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25165 fi
25166 done
25167 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25168 squeeze tmp_CFLAGS
25169
25170
25171 ac_var_added_warnings=""
25172 for warning in redundant-decls; do
25173
25174 ac_var_match_word="no"
25175 for word1 in $CFLAGS; do
25176 for word2 in -Wno-$warning -W$warning; do
25177 if test "$word1" = "$word2"; then
25178 ac_var_match_word="yes"
25179 fi
25180 done
25181 done
25182
25183 if test "$ac_var_match_word" = "no"; then
25184 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25185 fi
25186 done
25187 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25188 squeeze tmp_CFLAGS
25189
25190 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically disallows default case
25191
25192 ac_var_added_warnings=""
25193 for warning in unused-macros; do
25194
25195 ac_var_match_word="no"
25196 for word1 in $CFLAGS; do
25197 for word2 in -Wno-$warning -W$warning; do
25198 if test "$word1" = "$word2"; then
25199 ac_var_match_word="yes"
25200 fi
25201 done
25202 done
25203
25204 if test "$ac_var_match_word" = "no"; then
25205 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25206 fi
25207 done
25208 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25209 squeeze tmp_CFLAGS
25210
25211 fi
25212 #
25213 if test "$compiler_num" -ge "402"; then
25214
25215 ac_var_added_warnings=""
25216 for warning in cast-align; do
25217
25218 ac_var_match_word="no"
25219 for word1 in $CFLAGS; do
25220 for word2 in -Wno-$warning -W$warning; do
25221 if test "$word1" = "$word2"; then
25222 ac_var_match_word="yes"
25223 fi
25224 done
25225 done
25226
25227 if test "$ac_var_match_word" = "no"; then
25228 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25229 fi
25230 done
25231 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25232 squeeze tmp_CFLAGS
25233
25234 fi
25235 #
25236 if test "$compiler_num" -ge "403"; then
25237
25238 ac_var_added_warnings=""
25239 for warning in address; do
25240
25241 ac_var_match_word="no"
25242 for word1 in $CFLAGS; do
25243 for word2 in -Wno-$warning -W$warning; do
25244 if test "$word1" = "$word2"; then
25245 ac_var_match_word="yes"
25246 fi
25247 done
25248 done
25249
25250 if test "$ac_var_match_word" = "no"; then
25251 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25252 fi
25253 done
25254 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25255 squeeze tmp_CFLAGS
25256
25257
25258 ac_var_added_warnings=""
25259 for warning in type-limits old-style-declaration; do
25260
25261 ac_var_match_word="no"
25262 for word1 in $CFLAGS; do
25263 for word2 in -Wno-$warning -W$warning; do
25264 if test "$word1" = "$word2"; then
25265 ac_var_match_word="yes"
25266 fi
25267 done
25268 done
25269
25270 if test "$ac_var_match_word" = "no"; then
25271 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25272 fi
25273 done
25274 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25275 squeeze tmp_CFLAGS
25276
25277
25278 ac_var_added_warnings=""
25279 for warning in missing-parameter-type empty-body; do
25280
25281 ac_var_match_word="no"
25282 for word1 in $CFLAGS; do
25283 for word2 in -Wno-$warning -W$warning; do
25284 if test "$word1" = "$word2"; then
25285 ac_var_match_word="yes"
25286 fi
25287 done
25288 done
25289
25290 if test "$ac_var_match_word" = "no"; then
25291 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25292 fi
25293 done
25294 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25295 squeeze tmp_CFLAGS
25296
25297
25298 ac_var_added_warnings=""
25299 for warning in clobbered ignored-qualifiers; do
25300
25301 ac_var_match_word="no"
25302 for word1 in $CFLAGS; do
25303 for word2 in -Wno-$warning -W$warning; do
25304 if test "$word1" = "$word2"; then
25305 ac_var_match_word="yes"
25306 fi
25307 done
25308 done
25309
25310 if test "$ac_var_match_word" = "no"; then
25311 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25312 fi
25313 done
25314 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25315 squeeze tmp_CFLAGS
25316
25317
25318 ac_var_added_warnings=""
25319 for warning in conversion trampolines; do
25320
25321 ac_var_match_word="no"
25322 for word1 in $CFLAGS; do
25323 for word2 in -Wno-$warning -W$warning; do
25324 if test "$word1" = "$word2"; then
25325 ac_var_match_word="yes"
25326 fi
25327 done
25328 done
25329
25330 if test "$ac_var_match_word" = "no"; then
25331 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25332 fi
25333 done
25334 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25335 squeeze tmp_CFLAGS
25336
25337
25338 ac_var_added_warnings=""
25339 for warning in sign-conversion; do
25340
25341 ac_var_match_word="no"
25342 for word1 in $CFLAGS; do
25343 for word2 in -Wno-$warning -W$warning; do
25344 if test "$word1" = "$word2"; then
25345 ac_var_match_word="yes"
25346 fi
25347 done
25348 done
25349
25350 if test "$ac_var_match_word" = "no"; then
25351 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25352 fi
25353 done
25354 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25355 squeeze tmp_CFLAGS
25356
25357 tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion" # FIXME
25358
25359 ac_var_added_warnings=""
25360 for warning in vla; do
25361
25362 ac_var_match_word="no"
25363 for word1 in $CFLAGS; do
25364 for word2 in -Wno-$warning -W$warning; do
25365 if test "$word1" = "$word2"; then
25366 ac_var_match_word="yes"
25367 fi
25368 done
25369 done
25370
25371 if test "$ac_var_match_word" = "no"; then
25372 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25373 fi
25374 done
25375 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25376 squeeze tmp_CFLAGS
25377
25378 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
25379 fi
25380 #
25381 if test "$compiler_num" -ge "405"; then
25382 case $host_os in
25383 mingw*)
25384 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
25385 ;;
25386 esac
25387 fi
25388 #
25389 if test "$compiler_num" -ge "406"; then
25390
25391 ac_var_added_warnings=""
25392 for warning in double-promotion; do
25393
25394 ac_var_match_word="no"
25395 for word1 in $CFLAGS; do
25396 for word2 in -Wno-$warning -W$warning; do
25397 if test "$word1" = "$word2"; then
25398 ac_var_match_word="yes"
25399 fi
25400 done
25401 done
25402
25403 if test "$ac_var_match_word" = "no"; then
25404 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25405 fi
25406 done
25407 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25408 squeeze tmp_CFLAGS
25409
25410 fi
25411 #
25412 if test "$compiler_num" -ge "408"; then
25413 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
25414 fi
25415 #
25416 if test "$compiler_num" -ge "500"; then
25417 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
25418 fi
25419 #
25420 if test "$compiler_num" -ge "600"; then
25421
25422 ac_var_added_warnings=""
25423 for warning in shift-negative-value; do
25424
25425 ac_var_match_word="no"
25426 for word1 in $CFLAGS; do
25427 for word2 in -Wno-$warning -W$warning; do
25428 if test "$word1" = "$word2"; then
25429 ac_var_match_word="yes"
25430 fi
25431 done
25432 done
25433
25434 if test "$ac_var_match_word" = "no"; then
25435 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25436 fi
25437 done
25438 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25439 squeeze tmp_CFLAGS
25440
25441 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
25442
25443 ac_var_added_warnings=""
25444 for warning in null-dereference; do
25445
25446 ac_var_match_word="no"
25447 for word1 in $CFLAGS; do
25448 for word2 in -Wno-$warning -W$warning; do
25449 if test "$word1" = "$word2"; then
25450 ac_var_match_word="yes"
25451 fi
25452 done
25453 done
25454
25455 if test "$ac_var_match_word" = "no"; then
25456 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25457 fi
25458 done
25459 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25460 squeeze tmp_CFLAGS
25461
25462 tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
25463
25464 ac_var_added_warnings=""
25465 for warning in duplicated-cond; do
25466
25467 ac_var_match_word="no"
25468 for word1 in $CFLAGS; do
25469 for word2 in -Wno-$warning -W$warning; do
25470 if test "$word1" = "$word2"; then
25471 ac_var_match_word="yes"
25472 fi
25473 done
25474 done
25475
25476 if test "$ac_var_match_word" = "no"; then
25477 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25478 fi
25479 done
25480 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25481 squeeze tmp_CFLAGS
25482
25483
25484 ac_var_added_warnings=""
25485 for warning in unused-const-variable; do
25486
25487 ac_var_match_word="no"
25488 for word1 in $CFLAGS; do
25489 for word2 in -Wno-$warning -W$warning; do
25490 if test "$word1" = "$word2"; then
25491 ac_var_match_word="yes"
25492 fi
25493 done
25494 done
25495
25496 if test "$ac_var_match_word" = "no"; then
25497 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25498 fi
25499 done
25500 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25501 squeeze tmp_CFLAGS
25502
25503 fi
25504 #
25505 if test "$compiler_num" -ge "700"; then
25506
25507 ac_var_added_warnings=""
25508 for warning in duplicated-branches; do
25509
25510 ac_var_match_word="no"
25511 for word1 in $CFLAGS; do
25512 for word2 in -Wno-$warning -W$warning; do
25513 if test "$word1" = "$word2"; then
25514 ac_var_match_word="yes"
25515 fi
25516 done
25517 done
25518
25519 if test "$ac_var_match_word" = "no"; then
25520 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25521 fi
25522 done
25523 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25524 squeeze tmp_CFLAGS
25525
25526
25527 ac_var_added_warnings=""
25528 for warning in restrict; do
25529
25530 ac_var_match_word="no"
25531 for word1 in $CFLAGS; do
25532 for word2 in -Wno-$warning -W$warning; do
25533 if test "$word1" = "$word2"; then
25534 ac_var_match_word="yes"
25535 fi
25536 done
25537 done
25538
25539 if test "$ac_var_match_word" = "no"; then
25540 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25541 fi
25542 done
25543 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25544 squeeze tmp_CFLAGS
25545
25546
25547 ac_var_added_warnings=""
25548 for warning in alloc-zero; do
25549
25550 ac_var_match_word="no"
25551 for word1 in $CFLAGS; do
25552 for word2 in -Wno-$warning -W$warning; do
25553 if test "$word1" = "$word2"; then
25554 ac_var_match_word="yes"
25555 fi
25556 done
25557 done
25558
25559 if test "$ac_var_match_word" = "no"; then
25560 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25561 fi
25562 done
25563 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25564 squeeze tmp_CFLAGS
25565
25566 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
25567 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
25568 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough"
25569 fi
25570 #
25571 if test "$compiler_num" -ge "1000"; then
25572
25573 ac_var_added_warnings=""
25574 for warning in arith-conversion; do
25575
25576 ac_var_match_word="no"
25577 for word1 in $CFLAGS; do
25578 for word2 in -Wno-$warning -W$warning; do
25579 if test "$word1" = "$word2"; then
25580 ac_var_match_word="yes"
25581 fi
25582 done
25583 done
25584
25585 if test "$ac_var_match_word" = "no"; then
25586 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25587 fi
25588 done
25589 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25590 squeeze tmp_CFLAGS
25591
25592
25593 ac_var_added_warnings=""
25594 for warning in enum-conversion; do
25595
25596 ac_var_match_word="no"
25597 for word1 in $CFLAGS; do
25598 for word2 in -Wno-$warning -W$warning; do
25599 if test "$word1" = "$word2"; then
25600 ac_var_match_word="yes"
25601 fi
25602 done
25603 done
25604
25605 if test "$ac_var_match_word" = "no"; then
25606 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
25607 fi
25608 done
25609 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
25610 squeeze tmp_CFLAGS
25611
25612 fi
25613
25614 for flag in $CPPFLAGS; do
25615 case "$flag" in
25616 -I*)
25617 add=`echo $flag | sed 's/^-I/-isystem /g'`
25618 tmp_CFLAGS="$tmp_CFLAGS $add"
25619 ;;
25620 esac
25621 done
25622
25623 fi
25624 CFLAGS="$CFLAGS $tmp_CFLAGS"
25625
25626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added this set of compiler options: $tmp_CFLAGS" >&5
25627 printf "%s\n" "$as_me: Added this set of compiler options: $tmp_CFLAGS" >&6;}
25628
25629 else
25630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added no extra compiler options" >&5
25631 printf "%s\n" "$as_me: Added no extra compiler options" >&6;}
25632
25633 fi
25634 NEWFLAGS=""
25635 for flag in $CFLAGS; do
25636 case "$flag" in
25637 -O*)
25638 ;;
25639 *)
25640 NEWFLAGS="$NEWFLAGS $flag"
25641 ;;
25642 esac
25643 done
25644 CFLAGS=$NEWFLAGS
25645
25646
25647 ;;
25648 esac
25649
25650 else case e in #(
25651 e) enable_debug=no
25652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25653 printf "%s\n" "no" >&6; }
25654 ;;
25655 esac
25656 fi
25657
25658
25659
25660
25661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hidden symbols in the library" >&5
25662 printf %s "checking whether to enable hidden symbols in the library... " >&6; }
25663 # Check whether --enable-hidden-symbols was given.
25664 if test ${enable_hidden_symbols+y}
25665 then :
25666 enableval=$enable_hidden_symbols; case "$enableval" in
25667 no)
25668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25669 printf "%s\n" "no" >&6; }
25670 ;;
25671 *)
25672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports it" >&5
25673 printf %s "checking whether $CC supports it... " >&6; }
25674 if test "$GCC" = yes ; then
25675 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
25676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25677 printf "%s\n" "yes" >&6; }
25678
25679 printf "%s\n" "#define LIBSSH2_API __attribute__ ((visibility (\"default\")))" >>confdefs.h
25680
25681 CFLAGS="$CFLAGS -fvisibility=hidden"
25682 else
25683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25684 printf "%s\n" "no" >&6; }
25685 fi
25686
25687 else
25688 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
25689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25690 printf "%s\n" "yes" >&6; }
25691
25692 printf "%s\n" "#define LIBSSH2_API __global" >>confdefs.h
25693
25694 CFLAGS="$CFLAGS -xldscope=hidden"
25695 else
25696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25697 printf "%s\n" "no" >&6; }
25698 fi
25699 fi
25700 ;;
25701 esac
25702 else case e in #(
25703 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25704 printf "%s\n" "no" >&6; }
25705 ;;
25706 esac
25707 fi
25708
25709
25710 # Check whether --enable-deprecated was given.
25711 if test ${enable_deprecated+y}
25712 then :
25713 enableval=$enable_deprecated; case "$enableval" in
25714 *)
25715 with_deprecated="no"
25716 CPPFLAGS="$CPPFLAGS -DLIBSSH2_NO_DEPRECATED"
25717 ;;
25718 esac
25719 else case e in #(
25720 e) with_deprecated="yes" ;;
25721 esac
25722 fi
25723
25724
25725 # Run Docker tests?
25726 # Check whether --enable-docker-tests was given.
25727 if test ${enable_docker_tests+y}
25728 then :
25729 enableval=$enable_docker_tests; run_docker_tests=no
25730 else case e in #(
25731 e) run_docker_tests=yes ;;
25732 esac
25733 fi
25734
25735 if test "x$run_docker_tests" != "xno"; then
25736 RUN_DOCKER_TESTS_TRUE=
25737 RUN_DOCKER_TESTS_FALSE='#'
25738 else
25739 RUN_DOCKER_TESTS_TRUE='#'
25740 RUN_DOCKER_TESTS_FALSE=
25741 fi
25742
25743
25744 # Run sshd tests?
25745 # Check whether --enable-sshd-tests was given.
25746 if test ${enable_sshd_tests+y}
25747 then :
25748 enableval=$enable_sshd_tests; run_sshd_tests=no
25749 else case e in #(
25750 e) run_sshd_tests=yes ;;
25751 esac
25752 fi
25753
25754 if test "x$run_sshd_tests" != "xno"; then
25755 RUN_SSHD_TESTS_TRUE=
25756 RUN_SSHD_TESTS_FALSE='#'
25757 else
25758 RUN_SSHD_TESTS_TRUE='#'
25759 RUN_SSHD_TESTS_FALSE=
25760 fi
25761
25762
25763 # Build example applications?
25764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build example applications" >&5
25765 printf %s "checking whether to build example applications... " >&6; }
25766 # Check whether --enable-examples-build was given.
25767 if test ${enable_examples_build+y}
25768 then :
25769 enableval=$enable_examples_build; case "$enableval" in
25770 no | false)
25771 build_examples='no'
25772 ;;
25773 *)
25774 build_examples='yes'
25775 ;;
25776 esac
25777 else case e in #(
25778 e) build_examples='yes' ;;
25779 esac
25780 fi
25781
25782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_examples" >&5
25783 printf "%s\n" "$build_examples" >&6; }
25784 if test "x$build_examples" != "xno"; then
25785 BUILD_EXAMPLES_TRUE=
25786 BUILD_EXAMPLES_FALSE='#'
25787 else
25788 BUILD_EXAMPLES_TRUE='#'
25789 BUILD_EXAMPLES_FALSE=
25790 fi
25791
25792
25793
25794 # Build OSS fuzzing targets?
25795 # Check whether --enable-ossfuzzers was given.
25796 if test ${enable_ossfuzzers+y}
25797 then :
25798 enableval=$enable_ossfuzzers; have_ossfuzzers=yes
25799 else case e in #(
25800 e) have_ossfuzzers=no ;;
25801 esac
25802 fi
25803
25804 if test "x$have_ossfuzzers" = "xyes"; then
25805 USE_OSSFUZZERS_TRUE=
25806 USE_OSSFUZZERS_FALSE='#'
25807 else
25808 USE_OSSFUZZERS_TRUE='#'
25809 USE_OSSFUZZERS_FALSE=
25810 fi
25811
25812
25813
25814 # Set the correct flags for the given fuzzing engine.
25815
25816 if test "x$LIB_FUZZING_ENGINE" = "x-fsanitize=fuzzer"; then
25817 USE_OSSFUZZ_FLAG_TRUE=
25818 USE_OSSFUZZ_FLAG_FALSE='#'
25819 else
25820 USE_OSSFUZZ_FLAG_TRUE='#'
25821 USE_OSSFUZZ_FLAG_FALSE=
25822 fi
25823
25824 if test -f "$LIB_FUZZING_ENGINE"; then
25825 USE_OSSFUZZ_STATIC_TRUE=
25826 USE_OSSFUZZ_STATIC_FALSE='#'
25827 else
25828 USE_OSSFUZZ_STATIC_TRUE='#'
25829 USE_OSSFUZZ_STATIC_FALSE=
25830 fi
25831
25832
25833
25834 # Checks for header files.
25835 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
25836 if test "x$ac_cv_header_errno_h" = xyes
25837 then :
25838 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
25839
25840 fi
25841 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
25842 if test "x$ac_cv_header_fcntl_h" = xyes
25843 then :
25844 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
25845
25846 fi
25847 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
25848 if test "x$ac_cv_header_stdio_h" = xyes
25849 then :
25850 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
25851
25852 fi
25853 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25854 if test "x$ac_cv_header_unistd_h" = xyes
25855 then :
25856 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
25857
25858 fi
25859 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
25860 if test "x$ac_cv_header_sys_uio_h" = xyes
25861 then :
25862 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
25863
25864 fi
25865
25866 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
25867 if test "x$ac_cv_header_sys_select_h" = xyes
25868 then :
25869 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
25870
25871 fi
25872 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
25873 if test "x$ac_cv_header_sys_socket_h" = xyes
25874 then :
25875 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
25876
25877 fi
25878 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
25879 if test "x$ac_cv_header_sys_ioctl_h" = xyes
25880 then :
25881 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
25882
25883 fi
25884 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
25885 if test "x$ac_cv_header_sys_time_h" = xyes
25886 then :
25887 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
25888
25889 fi
25890
25891 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
25892 if test "x$ac_cv_header_arpa_inet_h" = xyes
25893 then :
25894 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
25895
25896 fi
25897 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
25898 if test "x$ac_cv_header_netinet_in_h" = xyes
25899 then :
25900 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
25901
25902 fi
25903
25904 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
25905 if test "x$ac_cv_header_sys_un_h" = xyes
25906 then :
25907 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
25908
25909 fi
25910
25911
25912 case $host in
25913 *darwin*|*interix*)
25914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: poll use is disabled on this platform" >&5
25915 printf "%s\n" "$as_me: poll use is disabled on this platform" >&6;}
25916 ;;
25917 *)
25918 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
25919 if test "x$ac_cv_func_poll" = xyes
25920 then :
25921 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
25922
25923 fi
25924
25925 ;;
25926 esac
25927
25928 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
25929 if test "x$ac_cv_func_gettimeofday" = xyes
25930 then :
25931 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
25932
25933 fi
25934 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
25935 if test "x$ac_cv_func_select" = xyes
25936 then :
25937 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
25938
25939 fi
25940 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
25941 if test "x$ac_cv_func_strtoll" = xyes
25942 then :
25943 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
25944
25945 fi
25946 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
25947 if test "x$ac_cv_func_explicit_bzero" = xyes
25948 then :
25949 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
25950
25951 fi
25952 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
25953 if test "x$ac_cv_func_explicit_memset" = xyes
25954 then :
25955 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
25956
25957 fi
25958 ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s"
25959 if test "x$ac_cv_func_memset_s" = xyes
25960 then :
25961 printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h
25962
25963 fi
25964 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
25965 if test "x$ac_cv_func_snprintf" = xyes
25966 then :
25967 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
25968
25969 fi
25970
25971
25972 if test "$ac_cv_func_select" != "yes"; then
25973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select in ws2_32" >&5
25974 printf %s "checking for select in ws2_32... " >&6; }
25975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25976 /* end confdefs.h. */
25977
25978 #ifdef HAVE_WINDOWS_H
25979 #ifndef WIN32_LEAN_AND_MEAN
25980 #define WIN32_LEAN_AND_MEAN
25981 #endif
25982 #include <winsock2.h>
25983 #endif
25984
25985 int
25986 main (void)
25987 {
25988
25989 select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL,(struct timeval *)NULL);
25990
25991 ;
25992 return 0;
25993 }
25994 _ACEOF
25995 if ac_fn_c_try_link "$LINENO"
25996 then :
25997
25998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25999 printf "%s\n" "yes" >&6; }
26000 HAVE_SELECT="1"
26001
26002 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
26003
26004
26005 else case e in #(
26006 e)
26007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26008 printf "%s\n" "no" >&6; }
26009 ;;
26010 esac
26011 fi
26012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26013 conftest$ac_exeext conftest.$ac_ext
26014 fi
26015
26016 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26017 if test "x$ac_cv_type_size_t" = xyes
26018 then :
26019
26020 else case e in #(
26021 e)
26022 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
26023 ;;
26024 esac
26025 fi
26026
26027 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26028 # for constant arguments. Useless!
26029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
26030 printf %s "checking for working alloca.h... " >&6; }
26031 if test ${ac_cv_working_alloca_h+y}
26032 then :
26033 printf %s "(cached) " >&6
26034 else case e in #(
26035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26036 /* end confdefs.h. */
26037 #include <alloca.h>
26038 int
26039 main (void)
26040 {
26041 char *p = (char *) alloca (2 * sizeof (int));
26042 if (p) return 0;
26043 ;
26044 return 0;
26045 }
26046 _ACEOF
26047 if ac_fn_c_try_link "$LINENO"
26048 then :
26049 ac_cv_working_alloca_h=yes
26050 else case e in #(
26051 e) ac_cv_working_alloca_h=no ;;
26052 esac
26053 fi
26054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26055 conftest$ac_exeext conftest.$ac_ext ;;
26056 esac
26057 fi
26058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
26059 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
26060 if test $ac_cv_working_alloca_h = yes; then
26061
26062 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
26063
26064 fi
26065
26066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
26067 printf %s "checking for alloca... " >&6; }
26068 if test ${ac_cv_func_alloca_works+y}
26069 then :
26070 printf %s "(cached) " >&6
26071 else case e in #(
26072 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
26073 if test "$ac_cv_func_alloca_works" != yes
26074 then :
26075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076 /* end confdefs.h. */
26077 #include <stdlib.h>
26078 #include <stddef.h>
26079 #ifndef alloca
26080 # ifdef __GNUC__
26081 # define alloca __builtin_alloca
26082 # elif defined _MSC_VER
26083 # include <malloc.h>
26084 # define alloca _alloca
26085 # else
26086 # ifdef __cplusplus
26087 extern "C"
26088 # endif
26089 void *alloca (size_t);
26090 # endif
26091 #endif
26092
26093 int
26094 main (void)
26095 {
26096 char *p = (char *) alloca (1);
26097 if (p) return 0;
26098 ;
26099 return 0;
26100 }
26101 _ACEOF
26102 if ac_fn_c_try_link "$LINENO"
26103 then :
26104 ac_cv_func_alloca_works=yes
26105 fi
26106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26107 conftest$ac_exeext conftest.$ac_ext
26108 fi ;;
26109 esac
26110 fi
26111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
26112 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
26113
26114 if test $ac_cv_func_alloca_works = yes; then
26115
26116 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
26117
26118 else
26119 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
26120 # that cause trouble. Some versions do not even contain alloca or
26121 # contain a buggy version. If you still want to use their alloca,
26122 # use ar to extract alloca.o from them instead of compiling alloca.c.
26123
26124 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
26125
26126 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
26127
26128
26129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
26130 printf %s "checking stack direction for C alloca... " >&6; }
26131 if test ${ac_cv_c_stack_direction+y}
26132 then :
26133 printf %s "(cached) " >&6
26134 else case e in #(
26135 e) if test "$cross_compiling" = yes
26136 then :
26137 ac_cv_c_stack_direction=0
26138 else case e in #(
26139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26140 /* end confdefs.h. */
26141 $ac_includes_default
26142 int
26143 find_stack_direction (int *addr, int depth)
26144 {
26145 int dir, dummy = 0;
26146 if (! addr)
26147 addr = &dummy;
26148 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
26149 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
26150 return dir + dummy;
26151 }
26152
26153 int
26154 main (int argc, char **argv)
26155 {
26156 return find_stack_direction (0, argc + !argv + 20) < 0;
26157 }
26158 _ACEOF
26159 if ac_fn_c_try_run "$LINENO"
26160 then :
26161 ac_cv_c_stack_direction=1
26162 else case e in #(
26163 e) ac_cv_c_stack_direction=-1 ;;
26164 esac
26165 fi
26166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26167 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26168 esac
26169 fi
26170 ;;
26171 esac
26172 fi
26173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
26174 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
26175 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
26176
26177
26178 fi
26179
26180
26181 # Checks for typedefs, structures, and compiler characteristics.
26182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26183 printf %s "checking for an ANSI C-conforming const... " >&6; }
26184 if test ${ac_cv_c_const+y}
26185 then :
26186 printf %s "(cached) " >&6
26187 else case e in #(
26188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26189 /* end confdefs.h. */
26190
26191 int
26192 main (void)
26193 {
26194
26195 #ifndef __cplusplus
26196 /* Ultrix mips cc rejects this sort of thing. */
26197 typedef int charset[2];
26198 const charset cs = { 0, 0 };
26199 /* SunOS 4.1.1 cc rejects this. */
26200 char const *const *pcpcc;
26201 char **ppc;
26202 /* NEC SVR4.0.2 mips cc rejects this. */
26203 struct point {int x, y;};
26204 static struct point const zero = {0,0};
26205 /* IBM XL C 1.02.0.0 rejects this.
26206 It does not let you subtract one const X* pointer from another in
26207 an arm of an if-expression whose if-part is not a constant
26208 expression */
26209 const char *g = "string";
26210 pcpcc = &g + (g ? g-g : 0);
26211 /* HPUX 7.0 cc rejects these. */
26212 ++pcpcc;
26213 ppc = (char**) pcpcc;
26214 pcpcc = (char const *const *) ppc;
26215 { /* SCO 3.2v4 cc rejects this sort of thing. */
26216 char tx;
26217 char *t = &tx;
26218 char const *s = 0 ? (char *) 0 : (char const *) 0;
26219
26220 *t++ = 0;
26221 if (s) return 0;
26222 }
26223 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26224 int x[] = {25, 17};
26225 const int *foo = &x[0];
26226 ++foo;
26227 }
26228 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26229 typedef const int *iptr;
26230 iptr p = 0;
26231 ++p;
26232 }
26233 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
26234 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26235 struct s { int j; const int *ap[3]; } bx;
26236 struct s *b = &bx; b->j = 5;
26237 }
26238 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26239 const int foo = 10;
26240 if (!foo) return 0;
26241 }
26242 return !cs[0] && !zero.x;
26243 #endif
26244
26245 ;
26246 return 0;
26247 }
26248 _ACEOF
26249 if ac_fn_c_try_compile "$LINENO"
26250 then :
26251 ac_cv_c_const=yes
26252 else case e in #(
26253 e) ac_cv_c_const=no ;;
26254 esac
26255 fi
26256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26257 esac
26258 fi
26259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26260 printf "%s\n" "$ac_cv_c_const" >&6; }
26261 if test $ac_cv_c_const = no; then
26262
26263 printf "%s\n" "#define const /**/" >>confdefs.h
26264
26265 fi
26266
26267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
26268 printf %s "checking for inline... " >&6; }
26269 if test ${ac_cv_c_inline+y}
26270 then :
26271 printf %s "(cached) " >&6
26272 else case e in #(
26273 e) ac_cv_c_inline=no
26274 for ac_kw in inline __inline__ __inline; do
26275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26276 /* end confdefs.h. */
26277 #ifndef __cplusplus
26278 typedef int foo_t;
26279 static $ac_kw foo_t static_foo (void) {return 0; }
26280 $ac_kw foo_t foo (void) {return 0; }
26281 #endif
26282
26283 _ACEOF
26284 if ac_fn_c_try_compile "$LINENO"
26285 then :
26286 ac_cv_c_inline=$ac_kw
26287 fi
26288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26289 test "$ac_cv_c_inline" != no && break
26290 done
26291 ;;
26292 esac
26293 fi
26294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
26295 printf "%s\n" "$ac_cv_c_inline" >&6; }
26296
26297 case $ac_cv_c_inline in
26298 inline | yes) ;;
26299 *)
26300 case $ac_cv_c_inline in
26301 no) ac_val=;;
26302 *) ac_val=$ac_cv_c_inline;;
26303 esac
26304 cat >>confdefs.h <<_ACEOF
26305 #ifndef __cplusplus
26306 #define inline $ac_val
26307 #endif
26308 _ACEOF
26309 ;;
26310 esac
26311
26312
26313
26314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking non-blocking sockets style" >&5
26315 printf %s "checking non-blocking sockets style... " >&6; }
26316
26317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26318 /* end confdefs.h. */
26319
26320 /* headers for O_NONBLOCK test */
26321 #include <sys/types.h>
26322 #include <unistd.h>
26323 #include <fcntl.h>
26324
26325 int
26326 main (void)
26327 {
26328
26329 /* try to compile O_NONBLOCK */
26330
26331 #if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
26332 # if defined(__SVR4) || defined(__srv4__)
26333 # define PLATFORM_SOLARIS
26334 # else
26335 # define PLATFORM_SUNOS4
26336 # endif
26337 #endif
26338 #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
26339 # define PLATFORM_AIX_V3
26340 #endif
26341
26342 #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
26343 #error "O_NONBLOCK does not work on this platform"
26344 #endif
26345 int socket;
26346 int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
26347
26348 ;
26349 return 0;
26350 }
26351 _ACEOF
26352 if ac_fn_c_try_compile "$LINENO"
26353 then :
26354
26355 nonblock="O_NONBLOCK"
26356
26357 printf "%s\n" "#define HAVE_O_NONBLOCK 1" >>confdefs.h
26358
26359
26360 else case e in #(
26361 e)
26362
26363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26364 /* end confdefs.h. */
26365
26366 /* headers for FIONBIO test */
26367 #include <unistd.h>
26368 #include <stropts.h>
26369
26370 int
26371 main (void)
26372 {
26373
26374 /* FIONBIO source test (old-style unix) */
26375 int socket;
26376 int flags = ioctl(socket, FIONBIO, &flags);
26377
26378 ;
26379 return 0;
26380 }
26381 _ACEOF
26382 if ac_fn_c_try_compile "$LINENO"
26383 then :
26384
26385 nonblock="FIONBIO"
26386
26387 printf "%s\n" "#define HAVE_FIONBIO 1" >>confdefs.h
26388
26389
26390 else case e in #(
26391 e)
26392
26393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26394 /* end confdefs.h. */
26395
26396 /* headers for IoctlSocket test (Amiga?) */
26397 #include <sys/ioctl.h>
26398
26399 int
26400 main (void)
26401 {
26402
26403 /* IoctlSocket source code */
26404 int socket;
26405 int flags = IoctlSocket(socket, FIONBIO, (long)1);
26406
26407 ;
26408 return 0;
26409 }
26410 _ACEOF
26411 if ac_fn_c_try_link "$LINENO"
26412 then :
26413
26414 nonblock="IoctlSocket"
26415
26416 printf "%s\n" "#define HAVE_IOCTLSOCKET_CASE 1" >>confdefs.h
26417
26418
26419 else case e in #(
26420 e)
26421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26422 /* end confdefs.h. */
26423
26424 /* headers for SO_NONBLOCK test (BeOS) */
26425 #include <socket.h>
26426
26427 int
26428 main (void)
26429 {
26430
26431 /* SO_NONBLOCK source code */
26432 long b = 1;
26433 int socket;
26434 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
26435
26436 ;
26437 return 0;
26438 }
26439 _ACEOF
26440 if ac_fn_c_try_compile "$LINENO"
26441 then :
26442
26443 nonblock="SO_NONBLOCK"
26444
26445 printf "%s\n" "#define HAVE_SO_NONBLOCK 1" >>confdefs.h
26446
26447
26448 else case e in #(
26449 e)
26450 nonblock="nada"
26451 ;;
26452 esac
26453 fi
26454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26455
26456 ;;
26457 esac
26458 fi
26459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26460 conftest$ac_exeext conftest.$ac_ext
26461
26462 ;;
26463 esac
26464 fi
26465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26466
26467 ;;
26468 esac
26469 fi
26470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nonblock" >&5
26472 printf "%s\n" "$nonblock" >&6; }
26473
26474 if test "$nonblock" = "nada"; then
26475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: non-block sockets disabled" >&5
26476 printf "%s\n" "$as_me: WARNING: non-block sockets disabled" >&2;}
26477 fi
26478
26479
26480 missing_required_deps=0
26481
26482 if test "${libz_errors}" != ""; then
26483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ERROR: ${libz_errors}" >&5
26484 printf "%s\n" "$as_me: ERROR: ${libz_errors}" >&6;}
26485 missing_required_deps=1
26486 fi
26487
26488 if test "$found_crypto" = "none"; then
26489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ERROR: ${crypto_errors}" >&5
26490 printf "%s\n" "$as_me: ERROR: ${crypto_errors}" >&6;}
26491 missing_required_deps=1
26492 fi
26493
26494 if test $missing_required_deps = 1; then
26495 as_fn_error $? "Required dependencies are missing." "$LINENO" 5
26496 fi
26497
26498 if test "x$have_windows_h" = "xyes" && test "x${enable_shared}" = "xyes" && test -n "${RC}"; then
26499 HAVE_WINDRES_TRUE=
26500 HAVE_WINDRES_FALSE='#'
26501 else
26502 HAVE_WINDRES_TRUE='#'
26503 HAVE_WINDRES_FALSE=
26504 fi
26505
26506
26507 if test "x$enable_static" != "xno"; then
26508 HAVE_LIB_STATIC_TRUE=
26509 HAVE_LIB_STATIC_FALSE='#'
26510 else
26511 HAVE_LIB_STATIC_TRUE='#'
26512 HAVE_LIB_STATIC_FALSE=
26513 fi
26514
26515
26516 # Configure parameters
26517
26518 # Append crypto lib
26519 if test "$found_crypto" = "openssl"; then
26520 LIBS="${LIBS} ${LTLIBSSL}"
26521 elif test "$found_crypto" = "wolfssl"; then
26522 LIBS="${LIBS} ${LTLIBWOLFSSL}"
26523 elif test "$found_crypto" = "libgcrypt"; then
26524 LIBS="${LIBS} ${LTLIBGCRYPT}"
26525 elif test "$found_crypto" = "wincng"; then
26526 LIBS="${LIBS} ${LTLIBBCRYPT}"
26527 elif test "$found_crypto" = "mbedtls"; then
26528 LIBS="${LIBS} ${LTLIBMBEDCRYPTO}"
26529 fi
26530
26531 LIBS="${LIBS} ${LTLIBZ}"
26532
26533 LIBSSH2_PC_LIBS_PRIVATE=$LIBS
26534
26535
26536 if test "x$enable_shared" = "xyes"; then
26537 LIBSSH2_PC_REQUIRES=
26538 LIBSSH2_PC_LIBS=
26539 else
26540 LIBSSH2_PC_REQUIRES=$LIBSSH2_PC_REQUIRES_PRIVATE
26541 LIBSSH2_PC_LIBS=$LIBSSH2_PC_LIBS_PRIVATE
26542 fi
26543
26544
26545
26546 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/ossfuzz/Makefile example/Makefile docs/Makefile libssh2.pc"
26547
26548 cat >confcache <<\_ACEOF
26549 # This file is a shell script that caches the results of configure
26550 # tests run on this system so they can be shared between configure
26551 # scripts and configure runs, see configure's option --config-cache.
26552 # It is not useful on other systems. If it contains results you don't
26553 # want to keep, you may remove or edit it.
26554 #
26555 # config.status only pays attention to the cache file if you give it
26556 # the --recheck option to rerun configure.
26557 #
26558 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
26559 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
26560 # following values.
26561
26562 _ACEOF
26563
26564 # The following way of writing the cache mishandles newlines in values,
26565 # but we know of no workaround that is simple, portable, and efficient.
26566 # So, we kill variables containing newlines.
26567 # Ultrix sh set writes to stderr and can't be redirected directly,
26568 # and sets the high bit in the cache file unless we assign to the vars.
26569 (
26570 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26571 eval ac_val=\$$ac_var
26572 case $ac_val in #(
26573 *${as_nl}*)
26574 case $ac_var in #(
26575 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26576 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26577 esac
26578 case $ac_var in #(
26579 _ | IFS | as_nl) ;; #(
26580 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26581 *) { eval $ac_var=; unset $ac_var;} ;;
26582 esac ;;
26583 esac
26584 done
26585
26586 (set) 2>&1 |
26587 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26588 *${as_nl}ac_space=\ *)
26589 # 'set' does not quote correctly, so add quotes: double-quote
26590 # substitution turns \\\\ into \\, and sed turns \\ into \.
26591 sed -n \
26592 "s/'/'\\\\''/g;
26593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26594 ;; #(
26595 *)
26596 # 'set' quotes correctly as required by POSIX, so do not add quotes.
26597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26598 ;;
26599 esac |
26600 sort
26601 ) |
26602 sed '
26603 /^ac_cv_env_/b end
26604 t clear
26605 :clear
26606 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
26607 t end
26608 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26609 :end' >>confcache
26610 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26611 if test -w "$cache_file"; then
26612 if test "x$cache_file" != "x/dev/null"; then
26613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26614 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
26615 if test ! -f "$cache_file" || test -h "$cache_file"; then
26616 cat confcache >"$cache_file"
26617 else
26618 case $cache_file in #(
26619 */* | ?:*)
26620 mv -f confcache "$cache_file"$$ &&
26621 mv -f "$cache_file"$$ "$cache_file" ;; #(
26622 *)
26623 mv -f confcache "$cache_file" ;;
26624 esac
26625 fi
26626 fi
26627 else
26628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26629 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
26630 fi
26631 fi
26632 rm -f confcache
26633
26634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26635 # Let make expand exec_prefix.
26636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26637
26638 DEFS=-DHAVE_CONFIG_H
26639
26640 ac_libobjs=
26641 ac_ltlibobjs=
26642 U=
26643 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26644 # 1. Remove the extension, and $U if already installed.
26645 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26646 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
26647 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26648 # will be set to the directory where LIBOBJS objects are built.
26649 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26650 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26651 done
26652 LIBOBJS=$ac_libobjs
26653
26654 LTLIBOBJS=$ac_ltlibobjs
26655
26656
26657 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26658 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26660 fi
26661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26662 printf %s "checking that generated files are newer than configure... " >&6; }
26663 if test -n "$am_sleep_pid"; then
26664 # Hide warnings about reused PIDs.
26665 wait $am_sleep_pid 2>/dev/null
26666 fi
26667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
26668 printf "%s\n" "done" >&6; }
26669 if test -n "$EXEEXT"; then
26670 am__EXEEXT_TRUE=
26671 am__EXEEXT_FALSE='#'
26672 else
26673 am__EXEEXT_TRUE='#'
26674 am__EXEEXT_FALSE=
26675 fi
26676
26677 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26678 as_fn_error $? "conditional \"AMDEP\" was never defined.
26679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26680 fi
26681 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26682 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26684 fi
26685 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26686 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26688 fi
26689 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26690 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26692 fi
26693 if test -z "${SSHD_TRUE}" && test -z "${SSHD_FALSE}"; then
26694 as_fn_error $? "conditional \"SSHD\" was never defined.
26695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26696 fi
26697
26698 # Check whether --enable-year2038 was given.
26699 if test ${enable_year2038+y}
26700 then :
26701 enableval=$enable_year2038;
26702 fi
26703
26704 if test -z "${RUN_DOCKER_TESTS_TRUE}" && test -z "${RUN_DOCKER_TESTS_FALSE}"; then
26705 as_fn_error $? "conditional \"RUN_DOCKER_TESTS\" was never defined.
26706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26707 fi
26708 if test -z "${RUN_SSHD_TESTS_TRUE}" && test -z "${RUN_SSHD_TESTS_FALSE}"; then
26709 as_fn_error $? "conditional \"RUN_SSHD_TESTS\" was never defined.
26710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26711 fi
26712 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
26713 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
26714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26715 fi
26716 if test -z "${USE_OSSFUZZERS_TRUE}" && test -z "${USE_OSSFUZZERS_FALSE}"; then
26717 as_fn_error $? "conditional \"USE_OSSFUZZERS\" was never defined.
26718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26719 fi
26720 if test -z "${USE_OSSFUZZ_FLAG_TRUE}" && test -z "${USE_OSSFUZZ_FLAG_FALSE}"; then
26721 as_fn_error $? "conditional \"USE_OSSFUZZ_FLAG\" was never defined.
26722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26723 fi
26724 if test -z "${USE_OSSFUZZ_STATIC_TRUE}" && test -z "${USE_OSSFUZZ_STATIC_FALSE}"; then
26725 as_fn_error $? "conditional \"USE_OSSFUZZ_STATIC\" was never defined.
26726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26727 fi
26728 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
26729 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
26730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26731 fi
26732 if test -z "${HAVE_LIB_STATIC_TRUE}" && test -z "${HAVE_LIB_STATIC_FALSE}"; then
26733 as_fn_error $? "conditional \"HAVE_LIB_STATIC\" was never defined.
26734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26735 fi
26736
26737 : "${CONFIG_STATUS=./config.status}"
26738 ac_write_fail=0
26739 ac_clean_files_save=$ac_clean_files
26740 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26742 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
26743 as_write_fail=0
26744 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26745 #! $SHELL
26746 # Generated by $as_me.
26747 # Run this file to recreate the current configuration.
26748 # Compiler output produced by configure, useful for debugging
26749 # configure, is in config.log if it exists.
26750
26751 debug=false
26752 ac_cs_recheck=false
26753 ac_cs_silent=false
26754
26755 SHELL=\${CONFIG_SHELL-$SHELL}
26756 export SHELL
26757 _ASEOF
26758 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26759 ## -------------------- ##
26760 ## M4sh Initialization. ##
26761 ## -------------------- ##
26762
26763 # Be more Bourne compatible
26764 DUALCASE=1; export DUALCASE # for MKS sh
26765 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
26766 then :
26767 emulate sh
26768 NULLCMD=:
26769 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26770 # is contrary to our usage. Disable this feature.
26771 alias -g '${1+"$@"}'='"$@"'
26772 setopt NO_GLOB_SUBST
26773 else case e in #(
26774 e) case `(set -o) 2>/dev/null` in #(
26775 *posix*) :
26776 set -o posix ;; #(
26777 *) :
26778 ;;
26779 esac ;;
26780 esac
26781 fi
26782
26783
26784
26785 # Reset variables that may have inherited troublesome values from
26786 # the environment.
26787
26788 # IFS needs to be set, to space, tab, and newline, in precisely that order.
26789 # (If _AS_PATH_WALK were called with IFS unset, it would have the
26790 # side effect of setting IFS to empty, thus disabling word splitting.)
26791 # Quoting is to prevent editors from complaining about space-tab.
26792 as_nl='
26793 '
26794 export as_nl
26795 IFS=" "" $as_nl"
26796
26797 PS1='$ '
26798 PS2='> '
26799 PS4='+ '
26800
26801 # Ensure predictable behavior from utilities with locale-dependent output.
26802 LC_ALL=C
26803 export LC_ALL
26804 LANGUAGE=C
26805 export LANGUAGE
26806
26807 # We cannot yet rely on "unset" to work, but we need these variables
26808 # to be unset--not just set to an empty or harmless value--now, to
26809 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
26810 # also avoids known problems related to "unset" and subshell syntax
26811 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
26812 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
26813 do eval test \${$as_var+y} \
26814 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26815 done
26816
26817 # Ensure that fds 0, 1, and 2 are open.
26818 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
26819 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
26820 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
26821
26822 # The user is always right.
26823 if ${PATH_SEPARATOR+false} :; then
26824 PATH_SEPARATOR=:
26825 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26826 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26827 PATH_SEPARATOR=';'
26828 }
26829 fi
26830
26831
26832 # Find who we are. Look in the path if we contain no directory separator.
26833 as_myself=
26834 case $0 in #((
26835 *[\\/]* ) as_myself=$0 ;;
26836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26837 for as_dir in $PATH
26838 do
26839 IFS=$as_save_IFS
26840 case $as_dir in #(((
26841 '') as_dir=./ ;;
26842 */) ;;
26843 *) as_dir=$as_dir/ ;;
26844 esac
26845 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
26846 done
26847 IFS=$as_save_IFS
26848
26849 ;;
26850 esac
26851 # We did not find ourselves, most probably we were run as 'sh COMMAND'
26852 # in which case we are not to be found in the path.
26853 if test "x$as_myself" = x; then
26854 as_myself=$0
26855 fi
26856 if test ! -f "$as_myself"; then
26857 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26858 exit 1
26859 fi
26860
26861
26862
26863 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26864 # ----------------------------------------
26865 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26866 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26867 # script with STATUS, using 1 if that was 0.
26868 as_fn_error ()
26869 {
26870 as_status=$1; test $as_status -eq 0 && as_status=1
26871 if test "$4"; then
26872 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26874 fi
26875 printf "%s\n" "$as_me: error: $2" >&2
26876 as_fn_exit $as_status
26877 } # as_fn_error
26878
26879
26880 # as_fn_set_status STATUS
26881 # -----------------------
26882 # Set $? to STATUS, without forking.
26883 as_fn_set_status ()
26884 {
26885 return $1
26886 } # as_fn_set_status
26887
26888 # as_fn_exit STATUS
26889 # -----------------
26890 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26891 as_fn_exit ()
26892 {
26893 set +e
26894 as_fn_set_status $1
26895 exit $1
26896 } # as_fn_exit
26897
26898 # as_fn_unset VAR
26899 # ---------------
26900 # Portably unset VAR.
26901 as_fn_unset ()
26902 {
26903 { eval $1=; unset $1;}
26904 }
26905 as_unset=as_fn_unset
26906
26907 # as_fn_append VAR VALUE
26908 # ----------------------
26909 # Append the text in VALUE to the end of the definition contained in VAR. Take
26910 # advantage of any shell optimizations that allow amortized linear growth over
26911 # repeated appends, instead of the typical quadratic growth present in naive
26912 # implementations.
26913 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
26914 then :
26915 eval 'as_fn_append ()
26916 {
26917 eval $1+=\$2
26918 }'
26919 else case e in #(
26920 e) as_fn_append ()
26921 {
26922 eval $1=\$$1\$2
26923 } ;;
26924 esac
26925 fi # as_fn_append
26926
26927 # as_fn_arith ARG...
26928 # ------------------
26929 # Perform arithmetic evaluation on the ARGs, and store the result in the
26930 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26931 # must be portable across $(()) and expr.
26932 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
26933 then :
26934 eval 'as_fn_arith ()
26935 {
26936 as_val=$(( $* ))
26937 }'
26938 else case e in #(
26939 e) as_fn_arith ()
26940 {
26941 as_val=`expr "$@" || test $? -eq 1`
26942 } ;;
26943 esac
26944 fi # as_fn_arith
26945
26946
26947 if expr a : '\(a\)' >/dev/null 2>&1 &&
26948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26949 as_expr=expr
26950 else
26951 as_expr=false
26952 fi
26953
26954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26955 as_basename=basename
26956 else
26957 as_basename=false
26958 fi
26959
26960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26961 as_dirname=dirname
26962 else
26963 as_dirname=false
26964 fi
26965
26966 as_me=`$as_basename -- "$0" ||
26967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26968 X"$0" : 'X\(//\)$' \| \
26969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26970 printf "%s\n" X/"$0" |
26971 sed '/^.*\/\([^/][^/]*\)\/*$/{
26972 s//\1/
26973 q
26974 }
26975 /^X\/\(\/\/\)$/{
26976 s//\1/
26977 q
26978 }
26979 /^X\/\(\/\).*/{
26980 s//\1/
26981 q
26982 }
26983 s/.*/./; q'`
26984
26985 # Avoid depending upon Character Ranges.
26986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26989 as_cr_digits='0123456789'
26990 as_cr_alnum=$as_cr_Letters$as_cr_digits
26991
26992
26993 # Determine whether it's possible to make 'echo' print without a newline.
26994 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
26995 # for compatibility with existing Makefiles.
26996 ECHO_C= ECHO_N= ECHO_T=
26997 case `echo -n x` in #(((((
26998 -n*)
26999 case `echo 'xy\c'` in
27000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27001 xy) ECHO_C='\c';;
27002 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27003 ECHO_T=' ';;
27004 esac;;
27005 *)
27006 ECHO_N='-n';;
27007 esac
27008
27009 # For backward compatibility with old third-party macros, we provide
27010 # the shell variables $as_echo and $as_echo_n. New code should use
27011 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
27012 as_echo='printf %s\n'
27013 as_echo_n='printf %s'
27014
27015 rm -f conf$$ conf$$.exe conf$$.file
27016 if test -d conf$$.dir; then
27017 rm -f conf$$.dir/conf$$.file
27018 else
27019 rm -f conf$$.dir
27020 mkdir conf$$.dir 2>/dev/null
27021 fi
27022 if (echo >conf$$.file) 2>/dev/null; then
27023 if ln -s conf$$.file conf$$ 2>/dev/null; then
27024 as_ln_s='ln -s'
27025 # ... but there are two gotchas:
27026 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
27027 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
27028 # In both cases, we have to default to 'cp -pR'.
27029 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27030 as_ln_s='cp -pR'
27031 elif ln conf$$.file conf$$ 2>/dev/null; then
27032 as_ln_s=ln
27033 else
27034 as_ln_s='cp -pR'
27035 fi
27036 else
27037 as_ln_s='cp -pR'
27038 fi
27039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27040 rmdir conf$$.dir 2>/dev/null
27041
27042
27043 # as_fn_mkdir_p
27044 # -------------
27045 # Create "$as_dir" as a directory, including parents if necessary.
27046 as_fn_mkdir_p ()
27047 {
27048
27049 case $as_dir in #(
27050 -*) as_dir=./$as_dir;;
27051 esac
27052 test -d "$as_dir" || eval $as_mkdir_p || {
27053 as_dirs=
27054 while :; do
27055 case $as_dir in #(
27056 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27057 *) as_qdir=$as_dir;;
27058 esac
27059 as_dirs="'$as_qdir' $as_dirs"
27060 as_dir=`$as_dirname -- "$as_dir" ||
27061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27062 X"$as_dir" : 'X\(//\)[^/]' \| \
27063 X"$as_dir" : 'X\(//\)$' \| \
27064 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27065 printf "%s\n" X"$as_dir" |
27066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27067 s//\1/
27068 q
27069 }
27070 /^X\(\/\/\)[^/].*/{
27071 s//\1/
27072 q
27073 }
27074 /^X\(\/\/\)$/{
27075 s//\1/
27076 q
27077 }
27078 /^X\(\/\).*/{
27079 s//\1/
27080 q
27081 }
27082 s/.*/./; q'`
27083 test -d "$as_dir" && break
27084 done
27085 test -z "$as_dirs" || eval "mkdir $as_dirs"
27086 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27087
27088
27089 } # as_fn_mkdir_p
27090 if mkdir -p . 2>/dev/null; then
27091 as_mkdir_p='mkdir -p "$as_dir"'
27092 else
27093 test -d ./-p && rmdir ./-p
27094 as_mkdir_p=false
27095 fi
27096
27097
27098 # as_fn_executable_p FILE
27099 # -----------------------
27100 # Test if FILE is an executable regular file.
27101 as_fn_executable_p ()
27102 {
27103 test -f "$1" && test -x "$1"
27104 } # as_fn_executable_p
27105 as_test_x='test -x'
27106 as_executable_p=as_fn_executable_p
27107
27108 # Sed expression to map a string onto a valid CPP name.
27109 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
27110 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
27111
27112 # Sed expression to map a string onto a valid variable name.
27113 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
27114 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
27115
27116
27117 exec 6>&1
27118 ## ----------------------------------- ##
27119 ## Main body of $CONFIG_STATUS script. ##
27120 ## ----------------------------------- ##
27121 _ASEOF
27122 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27123
27124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27125 # Save the log message, to keep $0 and so on meaningful, and to
27126 # report actual input values of CONFIG_FILES etc. instead of their
27127 # values after options handling.
27128 ac_log="
27129 This file was extended by libssh2 $as_me -, which was
27130 generated by GNU Autoconf 2.72. Invocation command line was
27131
27132 CONFIG_FILES = $CONFIG_FILES
27133 CONFIG_HEADERS = $CONFIG_HEADERS
27134 CONFIG_LINKS = $CONFIG_LINKS
27135 CONFIG_COMMANDS = $CONFIG_COMMANDS
27136 $ $0 $@
27137
27138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27139 "
27140
27141 _ACEOF
27142
27143 case $ac_config_files in *"
27144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27145 esac
27146
27147 case $ac_config_headers in *"
27148 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27149 esac
27150
27151
27152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27153 # Files that config.status was made for.
27154 config_files="$ac_config_files"
27155 config_headers="$ac_config_headers"
27156 config_commands="$ac_config_commands"
27157
27158 _ACEOF
27159
27160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27161 ac_cs_usage="\
27162 '$as_me' instantiates files and other configuration actions
27163 from templates according to the current configuration. Unless the files
27164 and actions are specified as TAGs, all are instantiated by default.
27165
27166 Usage: $0 [OPTION]... [TAG]...
27167
27168 -h, --help print this help, then exit
27169 -V, --version print version number and configuration settings, then exit
27170 --config print configuration, then exit
27171 -q, --quiet, --silent
27172 do not print progress messages
27173 -d, --debug don't remove temporary files
27174 --recheck update $as_me by reconfiguring in the same conditions
27175 --file=FILE[:TEMPLATE]
27176 instantiate the configuration file FILE
27177 --header=FILE[:TEMPLATE]
27178 instantiate the configuration header FILE
27179
27180 Configuration files:
27181 $config_files
27182
27183 Configuration headers:
27184 $config_headers
27185
27186 Configuration commands:
27187 $config_commands
27188
27189 Report bugs to <[email protected]>."
27190
27191 _ACEOF
27192 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
27193 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
27194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27195 ac_cs_config='$ac_cs_config_escaped'
27196 ac_cs_version="\\
27197 libssh2 config.status -
27198 configured by $0, generated by GNU Autoconf 2.72,
27199 with options \\"\$ac_cs_config\\"
27200
27201 Copyright (C) 2023 Free Software Foundation, Inc.
27202 This config.status script is free software; the Free Software Foundation
27203 gives unlimited permission to copy, distribute and modify it."
27204
27205 ac_pwd='$ac_pwd'
27206 srcdir='$srcdir'
27207 INSTALL='$INSTALL'
27208 MKDIR_P='$MKDIR_P'
27209 AWK='$AWK'
27210 test -n "\$AWK" || AWK=awk
27211 _ACEOF
27212
27213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27214 # The default lists apply if the user does not specify any file.
27215 ac_need_defaults=:
27216 while test $# != 0
27217 do
27218 case $1 in
27219 --*=?*)
27220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27221 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27222 ac_shift=:
27223 ;;
27224 --*=)
27225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27226 ac_optarg=
27227 ac_shift=:
27228 ;;
27229 *)
27230 ac_option=$1
27231 ac_optarg=$2
27232 ac_shift=shift
27233 ;;
27234 esac
27235
27236 case $ac_option in
27237 # Handling of the options.
27238 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27239 ac_cs_recheck=: ;;
27240 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27241 printf "%s\n" "$ac_cs_version"; exit ;;
27242 --config | --confi | --conf | --con | --co | --c )
27243 printf "%s\n" "$ac_cs_config"; exit ;;
27244 --debug | --debu | --deb | --de | --d | -d )
27245 debug=: ;;
27246 --file | --fil | --fi | --f )
27247 $ac_shift
27248 case $ac_optarg in
27249 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27250 '') as_fn_error $? "missing file argument" ;;
27251 esac
27252 as_fn_append CONFIG_FILES " '$ac_optarg'"
27253 ac_need_defaults=false;;
27254 --header | --heade | --head | --hea )
27255 $ac_shift
27256 case $ac_optarg in
27257 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27258 esac
27259 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27260 ac_need_defaults=false;;
27261 --he | --h)
27262 # Conflict between --help and --header
27263 as_fn_error $? "ambiguous option: '$1'
27264 Try '$0 --help' for more information.";;
27265 --help | --hel | -h )
27266 printf "%s\n" "$ac_cs_usage"; exit ;;
27267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27269 ac_cs_silent=: ;;
27270
27271 # This is an error.
27272 -*) as_fn_error $? "unrecognized option: '$1'
27273 Try '$0 --help' for more information." ;;
27274
27275 *) as_fn_append ac_config_targets " $1"
27276 ac_need_defaults=false ;;
27277
27278 esac
27279 shift
27280 done
27281
27282 ac_configure_extra_args=
27283
27284 if $ac_cs_silent; then
27285 exec 6>/dev/null
27286 ac_configure_extra_args="$ac_configure_extra_args --silent"
27287 fi
27288
27289 _ACEOF
27290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27291 if \$ac_cs_recheck; then
27292 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27293 shift
27294 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
27295 CONFIG_SHELL='$SHELL'
27296 export CONFIG_SHELL
27297 exec "\$@"
27298 fi
27299
27300 _ACEOF
27301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27302 exec 5>>config.log
27303 {
27304 echo
27305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27306 ## Running $as_me. ##
27307 _ASBOX
27308 printf "%s\n" "$ac_log"
27309 } >&5
27310
27311 _ACEOF
27312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27313 #
27314 # INIT-COMMANDS
27315 #
27316 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27317
27318
27319 # The HP-UX ksh and POSIX shell print the target directory to stdout
27320 # if CDPATH is set.
27321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27322
27323 sed_quote_subst='$sed_quote_subst'
27324 double_quote_subst='$double_quote_subst'
27325 delay_variable_subst='$delay_variable_subst'
27326 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27327 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27328 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27329 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27330 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27331 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27332 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27333 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27334 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27335 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27336 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27337 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27338 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27339 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27340 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27341 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27342 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27343 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27344 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27345 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27346 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27347 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27348 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27349 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27350 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27351 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27352 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27353 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27354 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27355 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27356 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27357 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27358 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27359 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27360 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27361 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27362 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27363 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
27364 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27365 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27366 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27367 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27368 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27369 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27370 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
27371 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27372 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27373 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27374 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27375 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27376 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27377 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27378 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27379 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27380 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27381 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27382 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27383 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27384 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27385 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27386 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27387 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"`'
27388 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27389 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27390 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27391 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27392 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27393 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27394 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27395 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27396 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27397 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27398 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27399 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27400 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27401 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27402 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27403 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27404 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27405 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27406 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27407 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27408 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27409 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27410 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27411 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27412 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27413 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27414 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27415 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27416 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27417 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27418 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27419 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27420 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27421 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27422 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27423 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27424 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27425 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27426 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27427 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27428 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27429 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27430 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27431 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27432 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27433 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27434 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27435 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27436 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27437 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27438 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27439 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27440 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27441 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27442 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27443 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27444 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27445 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27446 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27447 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27448 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27449 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27450 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27451 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27452 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27453 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27454 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27455 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27456 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27457 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27458 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27459 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27460 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27461 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27462 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27463 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27464 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27465 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27466 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27467 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27468 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27469 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27470 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27471 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27472 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27473 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27474 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27475 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27476 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27477 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27478 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27479 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27480 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27481 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27482 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27483 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27484 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27485 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27486 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27487 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27488 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27489 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27490 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27491 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27492 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27493 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27494 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27495 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27496 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27497 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27498 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27499 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27500 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27501 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27502 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27503 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27504 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27505 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27506 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27507 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27508 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27509 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27510 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27511 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27512 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27513 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27514 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27515 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27516 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27517 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27518 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27519 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27520 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27521 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27522 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27523 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27524 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27525 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27526 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27527 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27528 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27529 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27530 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27531 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27532 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27533 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27534 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27535 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27536 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27537 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27538 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27539 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27540 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27541 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27542 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27543 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27544 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27545 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27546 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27547 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27548 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27549 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27550 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27551 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27552 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27553 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27554 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27555 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27556 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27557 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27558 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27559 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27560 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27561 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27562 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27563 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27564 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27565 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27566
27567 LTCC='$LTCC'
27568 LTCFLAGS='$LTCFLAGS'
27569 compiler='$compiler_DEFAULT'
27570
27571 # A function that is used when there is no print builtin or printf.
27572 func_fallback_echo ()
27573 {
27574 eval 'cat <<_LTECHO_EOF
27575 \$1
27576 _LTECHO_EOF'
27577 }
27578
27579 # Quote evaled strings.
27580 for var in AS \
27581 DLLTOOL \
27582 OBJDUMP \
27583 SHELL \
27584 ECHO \
27585 PATH_SEPARATOR \
27586 SED \
27587 GREP \
27588 EGREP \
27589 FGREP \
27590 LD \
27591 NM \
27592 LN_S \
27593 lt_SP2NL \
27594 lt_NL2SP \
27595 reload_flag \
27596 FILECMD \
27597 deplibs_check_method \
27598 file_magic_cmd \
27599 file_magic_glob \
27600 want_nocaseglob \
27601 sharedlib_from_linklib_cmd \
27602 AR \
27603 archiver_list_spec \
27604 STRIP \
27605 RANLIB \
27606 CC \
27607 CFLAGS \
27608 compiler \
27609 lt_cv_sys_global_symbol_pipe \
27610 lt_cv_sys_global_symbol_to_cdecl \
27611 lt_cv_sys_global_symbol_to_import \
27612 lt_cv_sys_global_symbol_to_c_name_address \
27613 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27614 lt_cv_nm_interface \
27615 nm_file_list_spec \
27616 lt_cv_truncate_bin \
27617 lt_prog_compiler_no_builtin_flag \
27618 lt_prog_compiler_pic \
27619 lt_prog_compiler_wl \
27620 lt_prog_compiler_static \
27621 lt_cv_prog_compiler_c_o \
27622 need_locks \
27623 MANIFEST_TOOL \
27624 DSYMUTIL \
27625 NMEDIT \
27626 LIPO \
27627 OTOOL \
27628 OTOOL64 \
27629 shrext_cmds \
27630 export_dynamic_flag_spec \
27631 whole_archive_flag_spec \
27632 compiler_needs_object \
27633 with_gnu_ld \
27634 allow_undefined_flag \
27635 no_undefined_flag \
27636 hardcode_libdir_flag_spec \
27637 hardcode_libdir_separator \
27638 exclude_expsyms \
27639 include_expsyms \
27640 file_list_spec \
27641 variables_saved_for_relink \
27642 libname_spec \
27643 library_names_spec \
27644 soname_spec \
27645 install_override_mode \
27646 finish_eval \
27647 old_striplib \
27648 striplib \
27649 compiler_lib_search_dirs \
27650 predep_objects \
27651 postdep_objects \
27652 predeps \
27653 postdeps \
27654 compiler_lib_search_path \
27655 LD_CXX \
27656 LD_RC \
27657 reload_flag_CXX \
27658 reload_flag_RC \
27659 compiler_CXX \
27660 compiler_RC \
27661 lt_prog_compiler_no_builtin_flag_CXX \
27662 lt_prog_compiler_no_builtin_flag_RC \
27663 lt_prog_compiler_pic_CXX \
27664 lt_prog_compiler_pic_RC \
27665 lt_prog_compiler_wl_CXX \
27666 lt_prog_compiler_wl_RC \
27667 lt_prog_compiler_static_CXX \
27668 lt_prog_compiler_static_RC \
27669 lt_cv_prog_compiler_c_o_CXX \
27670 lt_cv_prog_compiler_c_o_RC \
27671 export_dynamic_flag_spec_CXX \
27672 export_dynamic_flag_spec_RC \
27673 whole_archive_flag_spec_CXX \
27674 whole_archive_flag_spec_RC \
27675 compiler_needs_object_CXX \
27676 compiler_needs_object_RC \
27677 with_gnu_ld_CXX \
27678 with_gnu_ld_RC \
27679 allow_undefined_flag_CXX \
27680 allow_undefined_flag_RC \
27681 no_undefined_flag_CXX \
27682 no_undefined_flag_RC \
27683 hardcode_libdir_flag_spec_CXX \
27684 hardcode_libdir_flag_spec_RC \
27685 hardcode_libdir_separator_CXX \
27686 hardcode_libdir_separator_RC \
27687 exclude_expsyms_CXX \
27688 exclude_expsyms_RC \
27689 include_expsyms_CXX \
27690 include_expsyms_RC \
27691 file_list_spec_CXX \
27692 file_list_spec_RC \
27693 compiler_lib_search_dirs_CXX \
27694 compiler_lib_search_dirs_RC \
27695 predep_objects_CXX \
27696 predep_objects_RC \
27697 postdep_objects_CXX \
27698 postdep_objects_RC \
27699 predeps_CXX \
27700 predeps_RC \
27701 postdeps_CXX \
27702 postdeps_RC \
27703 compiler_lib_search_path_CXX \
27704 compiler_lib_search_path_RC; do
27705 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27706 *[\\\\\\\`\\"\\\$]*)
27707 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27708 ;;
27709 *)
27710 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27711 ;;
27712 esac
27713 done
27714
27715 # Double-quote double-evaled strings.
27716 for var in reload_cmds \
27717 old_postinstall_cmds \
27718 old_postuninstall_cmds \
27719 old_archive_cmds \
27720 extract_expsyms_cmds \
27721 old_archive_from_new_cmds \
27722 old_archive_from_expsyms_cmds \
27723 archive_cmds \
27724 archive_expsym_cmds \
27725 module_cmds \
27726 module_expsym_cmds \
27727 export_symbols_cmds \
27728 prelink_cmds \
27729 postlink_cmds \
27730 postinstall_cmds \
27731 postuninstall_cmds \
27732 finish_cmds \
27733 sys_lib_search_path_spec \
27734 configure_time_dlsearch_path \
27735 configure_time_lt_sys_library_path \
27736 reload_cmds_CXX \
27737 reload_cmds_RC \
27738 old_archive_cmds_CXX \
27739 old_archive_cmds_RC \
27740 old_archive_from_new_cmds_CXX \
27741 old_archive_from_new_cmds_RC \
27742 old_archive_from_expsyms_cmds_CXX \
27743 old_archive_from_expsyms_cmds_RC \
27744 archive_cmds_CXX \
27745 archive_cmds_RC \
27746 archive_expsym_cmds_CXX \
27747 archive_expsym_cmds_RC \
27748 module_cmds_CXX \
27749 module_cmds_RC \
27750 module_expsym_cmds_CXX \
27751 module_expsym_cmds_RC \
27752 export_symbols_cmds_CXX \
27753 export_symbols_cmds_RC \
27754 prelink_cmds_CXX \
27755 prelink_cmds_RC \
27756 postlink_cmds_CXX \
27757 postlink_cmds_RC; do
27758 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27759 *[\\\\\\\`\\"\\\$]*)
27760 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27761 ;;
27762 *)
27763 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27764 ;;
27765 esac
27766 done
27767
27768 ac_aux_dir='$ac_aux_dir'
27769
27770 # See if we are running on zsh, and set the options that allow our
27771 # commands through without removal of \ escapes INIT.
27772 if test -n "\${ZSH_VERSION+set}"; then
27773 setopt NO_GLOB_SUBST
27774 fi
27775
27776
27777 PACKAGE='$PACKAGE'
27778 VERSION='$VERSION'
27779 RM='$RM'
27780 ofile='$ofile'
27781
27782
27783
27784
27785
27786
27787
27788
27789 _ACEOF
27790
27791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27792
27793 # Handling of arguments.
27794 for ac_config_target in $ac_config_targets
27795 do
27796 case $ac_config_target in
27797 "src/libssh2_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/libssh2_config.h" ;;
27798 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27799 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27800 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27801 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27802 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27803 "tests/ossfuzz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ossfuzz/Makefile" ;;
27804 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
27805 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
27806 "libssh2.pc") CONFIG_FILES="$CONFIG_FILES libssh2.pc" ;;
27807
27808 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
27809 esac
27810 done
27811
27812
27813 # If the user did not use the arguments to specify the items to instantiate,
27814 # then the envvar interface is used. Set only those that are not.
27815 # We use the long form for the default assignment because of an extremely
27816 # bizarre bug on SunOS 4.1.3.
27817 if $ac_need_defaults; then
27818 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
27819 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
27820 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
27821 fi
27822
27823 # Have a temporary directory for convenience. Make it in the build tree
27824 # simply because there is no reason against having it here, and in addition,
27825 # creating and moving files from /tmp can sometimes cause problems.
27826 # Hook for its removal unless debugging.
27827 # Note that there is a small window in which the directory will not be cleaned:
27828 # after its creation but before its name has been assigned to '$tmp'.
27829 $debug ||
27830 {
27831 tmp= ac_tmp=
27832 trap 'exit_status=$?
27833 : "${ac_tmp:=$tmp}"
27834 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27835 ' 0
27836 trap 'as_fn_exit 1' 1 2 13 15
27837 }
27838 # Create a (secure) tmp directory for tmp files.
27839
27840 {
27841 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27842 test -d "$tmp"
27843 } ||
27844 {
27845 tmp=./conf$$-$RANDOM
27846 (umask 077 && mkdir "$tmp")
27847 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27848 ac_tmp=$tmp
27849
27850 # Set up the scripts for CONFIG_FILES section.
27851 # No need to generate them if there are no CONFIG_FILES.
27852 # This happens for instance with './config.status config.h'.
27853 if test -n "$CONFIG_FILES"; then
27854
27855
27856 ac_cr=`echo X | tr X '\015'`
27857 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27858 # But we know of no other shell where ac_cr would be empty at this
27859 # point, so we can use a bashism as a fallback.
27860 if test "x$ac_cr" = x; then
27861 eval ac_cr=\$\'\\r\'
27862 fi
27863 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27864 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27865 ac_cs_awk_cr='\\r'
27866 else
27867 ac_cs_awk_cr=$ac_cr
27868 fi
27869
27870 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27871 _ACEOF
27872
27873
27874 {
27875 echo "cat >conf$$subs.awk <<_ACEOF" &&
27876 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27877 echo "_ACEOF"
27878 } >conf$$subs.sh ||
27879 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27880 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27881 ac_delim='%!_!# '
27882 for ac_last_try in false false false false false :; do
27883 . ./conf$$subs.sh ||
27884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27885
27886 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27887 if test $ac_delim_n = $ac_delim_num; then
27888 break
27889 elif $ac_last_try; then
27890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27891 else
27892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27893 fi
27894 done
27895 rm -f conf$$subs.sh
27896
27897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27898 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27899 _ACEOF
27900 sed -n '
27901 h
27902 s/^/S["/; s/!.*/"]=/
27903 p
27904 g
27905 s/^[^!]*!//
27906 :repl
27907 t repl
27908 s/'"$ac_delim"'$//
27909 t delim
27910 :nl
27911 h
27912 s/\(.\{148\}\)..*/\1/
27913 t more1
27914 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27915 p
27916 n
27917 b repl
27918 :more1
27919 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27920 p
27921 g
27922 s/.\{148\}//
27923 t nl
27924 :delim
27925 h
27926 s/\(.\{148\}\)..*/\1/
27927 t more2
27928 s/["\\]/\\&/g; s/^/"/; s/$/"/
27929 p
27930 b
27931 :more2
27932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27933 p
27934 g
27935 s/.\{148\}//
27936 t delim
27937 ' <conf$$subs.awk | sed '
27938 /^[^""]/{
27939 N
27940 s/\n//
27941 }
27942 ' >>$CONFIG_STATUS || ac_write_fail=1
27943 rm -f conf$$subs.awk
27944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27945 _ACAWK
27946 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27947 for (key in S) S_is_set[key] = 1
27948 FS = ""
27949
27950 }
27951 {
27952 line = $ 0
27953 nfields = split(line, field, "@")
27954 substed = 0
27955 len = length(field[1])
27956 for (i = 2; i < nfields; i++) {
27957 key = field[i]
27958 keylen = length(key)
27959 if (S_is_set[key]) {
27960 value = S[key]
27961 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27962 len += length(value) + length(field[++i])
27963 substed = 1
27964 } else
27965 len += 1 + keylen
27966 }
27967
27968 print line
27969 }
27970
27971 _ACAWK
27972 _ACEOF
27973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27974 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27975 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27976 else
27977 cat
27978 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27979 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27980 _ACEOF
27981
27982 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27983 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27984 # trailing colons and then remove the whole line if VPATH becomes empty
27985 # (actually we leave an empty line to preserve line numbers).
27986 if test "x$srcdir" = x.; then
27987 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27988 h
27989 s///
27990 s/^/:/
27991 s/[ ]*$/:/
27992 s/:\$(srcdir):/:/g
27993 s/:\${srcdir}:/:/g
27994 s/:@srcdir@:/:/g
27995 s/^:*//
27996 s/:*$//
27997 x
27998 s/\(=[ ]*\).*/\1/
27999 G
28000 s/\n//
28001 s/^[^=]*=[ ]*$//
28002 }'
28003 fi
28004
28005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28006 fi # test -n "$CONFIG_FILES"
28007
28008 # Set up the scripts for CONFIG_HEADERS section.
28009 # No need to generate them if there are no CONFIG_HEADERS.
28010 # This happens for instance with './config.status Makefile'.
28011 if test -n "$CONFIG_HEADERS"; then
28012 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28013 BEGIN {
28014 _ACEOF
28015
28016 # Transform confdefs.h into an awk script 'defines.awk', embedded as
28017 # here-document in config.status, that substitutes the proper values into
28018 # config.h.in to produce config.h.
28019
28020 # Create a delimiter string that does not exist in confdefs.h, to ease
28021 # handling of long lines.
28022 ac_delim='%!_!# '
28023 for ac_last_try in false false :; do
28024 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28025 if test -z "$ac_tt"; then
28026 break
28027 elif $ac_last_try; then
28028 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28029 else
28030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28031 fi
28032 done
28033
28034 # For the awk script, D is an array of macro values keyed by name,
28035 # likewise P contains macro parameters if any. Preserve backslash
28036 # newline sequences.
28037
28038 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28039 sed -n '
28040 s/.\{148\}/&'"$ac_delim"'/g
28041 t rset
28042 :rset
28043 s/^[ ]*#[ ]*define[ ][ ]*/ /
28044 t def
28045 d
28046 :def
28047 s/\\$//
28048 t bsnl
28049 s/["\\]/\\&/g
28050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28051 D["\1"]=" \3"/p
28052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28053 d
28054 :bsnl
28055 s/["\\]/\\&/g
28056 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28057 D["\1"]=" \3\\\\\\n"\\/p
28058 t cont
28059 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28060 t cont
28061 d
28062 :cont
28063 n
28064 s/.\{148\}/&'"$ac_delim"'/g
28065 t clear
28066 :clear
28067 s/\\$//
28068 t bsnlc
28069 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28070 d
28071 :bsnlc
28072 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28073 b cont
28074 ' <confdefs.h | sed '
28075 s/'"$ac_delim"'/"\\\
28076 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28077
28078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28079 for (key in D) D_is_set[key] = 1
28080 FS = ""
28081 }
28082 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28083 line = \$ 0
28084 split(line, arg, " ")
28085 if (arg[1] == "#") {
28086 defundef = arg[2]
28087 mac1 = arg[3]
28088 } else {
28089 defundef = substr(arg[1], 2)
28090 mac1 = arg[2]
28091 }
28092 split(mac1, mac2, "(") #)
28093 macro = mac2[1]
28094 prefix = substr(line, 1, index(line, defundef) - 1)
28095 if (D_is_set[macro]) {
28096 # Preserve the white space surrounding the "#".
28097 print prefix "define", macro P[macro] D[macro]
28098 next
28099 } else {
28100 # Replace #undef with comments. This is necessary, for example,
28101 # in the case of _POSIX_SOURCE, which is predefined and required
28102 # on some systems where configure will not decide to define it.
28103 if (defundef == "undef") {
28104 print "/*", prefix defundef, macro, "*/"
28105 next
28106 }
28107 }
28108 }
28109 { print }
28110 _ACAWK
28111 _ACEOF
28112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28113 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28114 fi # test -n "$CONFIG_HEADERS"
28115
28116
28117 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28118 shift
28119 for ac_tag
28120 do
28121 case $ac_tag in
28122 :[FHLC]) ac_mode=$ac_tag; continue;;
28123 esac
28124 case $ac_mode$ac_tag in
28125 :[FHL]*:*);;
28126 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
28127 :[FH]-) ac_tag=-:-;;
28128 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28129 esac
28130 ac_save_IFS=$IFS
28131 IFS=:
28132 set x $ac_tag
28133 IFS=$ac_save_IFS
28134 shift
28135 ac_file=$1
28136 shift
28137
28138 case $ac_mode in
28139 :L) ac_source=$1;;
28140 :[FH])
28141 ac_file_inputs=
28142 for ac_f
28143 do
28144 case $ac_f in
28145 -) ac_f="$ac_tmp/stdin";;
28146 *) # Look for the file first in the build tree, then in the source tree
28147 # (if the path is not absolute). The absolute path cannot be DOS-style,
28148 # because $ac_f cannot contain ':'.
28149 test -f "$ac_f" ||
28150 case $ac_f in
28151 [\\/$]*) false;;
28152 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28153 esac ||
28154 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
28155 esac
28156 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28157 as_fn_append ac_file_inputs " '$ac_f'"
28158 done
28159
28160 # Let's still pretend it is 'configure' which instantiates (i.e., don't
28161 # use $as_me), people would be surprised to read:
28162 # /* config.h. Generated by config.status. */
28163 configure_input='Generated from '`
28164 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28165 `' by configure.'
28166 if test x"$ac_file" != x-; then
28167 configure_input="$ac_file. $configure_input"
28168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28169 printf "%s\n" "$as_me: creating $ac_file" >&6;}
28170 fi
28171 # Neutralize special characters interpreted by sed in replacement strings.
28172 case $configure_input in #(
28173 *\&* | *\|* | *\\* )
28174 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
28175 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28176 *) ac_sed_conf_input=$configure_input;;
28177 esac
28178
28179 case $ac_tag in
28180 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28182 esac
28183 ;;
28184 esac
28185
28186 ac_dir=`$as_dirname -- "$ac_file" ||
28187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28188 X"$ac_file" : 'X\(//\)[^/]' \| \
28189 X"$ac_file" : 'X\(//\)$' \| \
28190 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28191 printf "%s\n" X"$ac_file" |
28192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28193 s//\1/
28194 q
28195 }
28196 /^X\(\/\/\)[^/].*/{
28197 s//\1/
28198 q
28199 }
28200 /^X\(\/\/\)$/{
28201 s//\1/
28202 q
28203 }
28204 /^X\(\/\).*/{
28205 s//\1/
28206 q
28207 }
28208 s/.*/./; q'`
28209 as_dir="$ac_dir"; as_fn_mkdir_p
28210 ac_builddir=.
28211
28212 case "$ac_dir" in
28213 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28214 *)
28215 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
28216 # A ".." for each directory in $ac_dir_suffix.
28217 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28218 case $ac_top_builddir_sub in
28219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28221 esac ;;
28222 esac
28223 ac_abs_top_builddir=$ac_pwd
28224 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28225 # for backward compatibility:
28226 ac_top_builddir=$ac_top_build_prefix
28227
28228 case $srcdir in
28229 .) # We are building in place.
28230 ac_srcdir=.
28231 ac_top_srcdir=$ac_top_builddir_sub
28232 ac_abs_top_srcdir=$ac_pwd ;;
28233 [\\/]* | ?:[\\/]* ) # Absolute name.
28234 ac_srcdir=$srcdir$ac_dir_suffix;
28235 ac_top_srcdir=$srcdir
28236 ac_abs_top_srcdir=$srcdir ;;
28237 *) # Relative name.
28238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28239 ac_top_srcdir=$ac_top_build_prefix$srcdir
28240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28241 esac
28242 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28243
28244
28245 case $ac_mode in
28246 :F)
28247 #
28248 # CONFIG_FILE
28249 #
28250
28251 case $INSTALL in
28252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28254 esac
28255 ac_MKDIR_P=$MKDIR_P
28256 case $MKDIR_P in
28257 [\\/$]* | ?:[\\/]* ) ;;
28258 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28259 esac
28260 _ACEOF
28261
28262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28263 # If the template does not know about datarootdir, expand it.
28264 # FIXME: This hack should be removed a few years after 2.60.
28265 ac_datarootdir_hack=; ac_datarootdir_seen=
28266 ac_sed_dataroot='
28267 /datarootdir/ {
28268 p
28269 q
28270 }
28271 /@datadir@/p
28272 /@docdir@/p
28273 /@infodir@/p
28274 /@localedir@/p
28275 /@mandir@/p'
28276 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28277 *datarootdir*) ac_datarootdir_seen=yes;;
28278 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28280 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28281 _ACEOF
28282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28283 ac_datarootdir_hack='
28284 s&@datadir@&$datadir&g
28285 s&@docdir@&$docdir&g
28286 s&@infodir@&$infodir&g
28287 s&@localedir@&$localedir&g
28288 s&@mandir@&$mandir&g
28289 s&\\\${datarootdir}&$datarootdir&g' ;;
28290 esac
28291 _ACEOF
28292
28293 # Neutralize VPATH when '$srcdir' = '.'.
28294 # Shell code in configure.ac might set extrasub.
28295 # FIXME: do we really want to maintain this feature?
28296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28297 ac_sed_extra="$ac_vpsub
28298 $extrasub
28299 _ACEOF
28300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28301 :t
28302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28303 s|@configure_input@|$ac_sed_conf_input|;t t
28304 s&@top_builddir@&$ac_top_builddir_sub&;t t
28305 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28306 s&@srcdir@&$ac_srcdir&;t t
28307 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28308 s&@top_srcdir@&$ac_top_srcdir&;t t
28309 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28310 s&@builddir@&$ac_builddir&;t t
28311 s&@abs_builddir@&$ac_abs_builddir&;t t
28312 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28313 s&@INSTALL@&$ac_INSTALL&;t t
28314 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28315 $ac_datarootdir_hack
28316 "
28317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28318 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28319
28320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28321 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28323 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
28325 which seems to be undefined. Please make sure it is defined" >&5
28326 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
28327 which seems to be undefined. Please make sure it is defined" >&2;}
28328
28329 rm -f "$ac_tmp/stdin"
28330 case $ac_file in
28331 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28332 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28333 esac \
28334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28335 ;;
28336 :H)
28337 #
28338 # CONFIG_HEADER
28339 #
28340 if test x"$ac_file" != x-; then
28341 {
28342 printf "%s\n" "/* $configure_input */" >&1 \
28343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28344 } >"$ac_tmp/config.h" \
28345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28346 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28348 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
28349 else
28350 rm -f "$ac_file"
28351 mv "$ac_tmp/config.h" "$ac_file" \
28352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28353 fi
28354 else
28355 printf "%s\n" "/* $configure_input */" >&1 \
28356 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28357 || as_fn_error $? "could not create -" "$LINENO" 5
28358 fi
28359 # Compute "$ac_file"'s index in $config_headers.
28360 _am_arg="$ac_file"
28361 _am_stamp_count=1
28362 for _am_header in $config_headers :; do
28363 case $_am_header in
28364 $_am_arg | $_am_arg:* )
28365 break ;;
28366 * )
28367 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28368 esac
28369 done
28370 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28371 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28372 X"$_am_arg" : 'X\(//\)[^/]' \| \
28373 X"$_am_arg" : 'X\(//\)$' \| \
28374 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28375 printf "%s\n" X"$_am_arg" |
28376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28377 s//\1/
28378 q
28379 }
28380 /^X\(\/\/\)[^/].*/{
28381 s//\1/
28382 q
28383 }
28384 /^X\(\/\/\)$/{
28385 s//\1/
28386 q
28387 }
28388 /^X\(\/\).*/{
28389 s//\1/
28390 q
28391 }
28392 s/.*/./; q'`/stamp-h$_am_stamp_count
28393 ;;
28394
28395 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28396 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
28397 ;;
28398 esac
28399
28400
28401 case $ac_file$ac_mode in
28402 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28403 # Older Autoconf quotes --file arguments for eval, but not when files
28404 # are listed without --file. Let's play safe and only enable the eval
28405 # if we detect the quoting.
28406 # TODO: see whether this extra hack can be removed once we start
28407 # requiring Autoconf 2.70 or later.
28408 case $CONFIG_FILES in #(
28409 *\'*) :
28410 eval set x "$CONFIG_FILES" ;; #(
28411 *) :
28412 set x $CONFIG_FILES ;; #(
28413 *) :
28414 ;;
28415 esac
28416 shift
28417 # Used to flag and report bootstrapping failures.
28418 am_rc=0
28419 for am_mf
28420 do
28421 # Strip MF so we end up with the name of the file.
28422 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
28423 # Check whether this is an Automake generated Makefile which includes
28424 # dependency-tracking related rules and includes.
28425 # Grep'ing the whole file directly is not great: AIX grep has a line
28426 # limit of 2048, but all sed's we know have understand at least 4000.
28427 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28428 || continue
28429 am_dirpart=`$as_dirname -- "$am_mf" ||
28430 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28431 X"$am_mf" : 'X\(//\)[^/]' \| \
28432 X"$am_mf" : 'X\(//\)$' \| \
28433 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28434 printf "%s\n" X"$am_mf" |
28435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28436 s//\1/
28437 q
28438 }
28439 /^X\(\/\/\)[^/].*/{
28440 s//\1/
28441 q
28442 }
28443 /^X\(\/\/\)$/{
28444 s//\1/
28445 q
28446 }
28447 /^X\(\/\).*/{
28448 s//\1/
28449 q
28450 }
28451 s/.*/./; q'`
28452 am_filepart=`$as_basename -- "$am_mf" ||
28453 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28454 X"$am_mf" : 'X\(//\)$' \| \
28455 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28456 printf "%s\n" X/"$am_mf" |
28457 sed '/^.*\/\([^/][^/]*\)\/*$/{
28458 s//\1/
28459 q
28460 }
28461 /^X\/\(\/\/\)$/{
28462 s//\1/
28463 q
28464 }
28465 /^X\/\(\/\).*/{
28466 s//\1/
28467 q
28468 }
28469 s/.*/./; q'`
28470 { echo "$as_me:$LINENO: cd "$am_dirpart" \
28471 && sed -e '/# am--include-marker/d' "$am_filepart" \
28472 | $MAKE -f - am--depfiles" >&5
28473 (cd "$am_dirpart" \
28474 && sed -e '/# am--include-marker/d' "$am_filepart" \
28475 | $MAKE -f - am--depfiles) >&5 2>&5
28476 ac_status=$?
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); } || am_rc=$?
28479 done
28480 if test $am_rc -ne 0; then
28481 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
28482 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
28483 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28484 for automatic dependency tracking. If GNU make was not used, consider
28485 re-running the configure script with MAKE=\"gmake\" (or whatever is
28486 necessary). You can also try re-running configure with the
28487 '--disable-dependency-tracking' option to at least be able to build
28488 the package (albeit without support for automatic dependency tracking).
28489 See 'config.log' for more details" "$LINENO" 5; }
28490 fi
28491 { am_dirpart=; unset am_dirpart;}
28492 { am_filepart=; unset am_filepart;}
28493 { am_mf=; unset am_mf;}
28494 { am_rc=; unset am_rc;}
28495 rm -f conftest-deps.mk
28496 }
28497 ;;
28498 "libtool":C)
28499
28500 # See if we are running on zsh, and set the options that allow our
28501 # commands through without removal of \ escapes.
28502 if test -n "${ZSH_VERSION+set}"; then
28503 setopt NO_GLOB_SUBST
28504 fi
28505
28506 cfgfile=${ofile}T
28507 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28508 $RM "$cfgfile"
28509
28510 cat <<_LT_EOF >> "$cfgfile"
28511 #! $SHELL
28512 # Generated automatically by $as_me ($PACKAGE) $VERSION
28513 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28514
28515 # Provide generalized library-building support services.
28516 # Written by Gordon Matzigkeit, 1996
28517
28518 # Copyright (C) 2014 Free Software Foundation, Inc.
28519 # This is free software; see the source for copying conditions. There is NO
28520 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28521
28522 # GNU Libtool is free software; you can redistribute it and/or modify
28523 # it under the terms of the GNU General Public License as published by
28524 # the Free Software Foundation; either version 2 of of the License, or
28525 # (at your option) any later version.
28526 #
28527 # As a special exception to the GNU General Public License, if you
28528 # distribute this file as part of a program or library that is built
28529 # using GNU Libtool, you may include this file under the same
28530 # distribution terms that you use for the rest of that program.
28531 #
28532 # GNU Libtool is distributed in the hope that it will be useful, but
28533 # WITHOUT ANY WARRANTY; without even the implied warranty of
28534 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28535 # GNU General Public License for more details.
28536 #
28537 # You should have received a copy of the GNU General Public License
28538 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28539
28540
28541 # The names of the tagged configurations supported by this script.
28542 available_tags='CXX RC '
28543
28544 # Configured defaults for sys_lib_dlsearch_path munging.
28545 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28546
28547 # ### BEGIN LIBTOOL CONFIG
28548
28549 # Which release of libtool.m4 was used?
28550 macro_version=$macro_version
28551 macro_revision=$macro_revision
28552
28553 # Assembler program.
28554 AS=$lt_AS
28555
28556 # DLL creation program.
28557 DLLTOOL=$lt_DLLTOOL
28558
28559 # Object dumper program.
28560 OBJDUMP=$lt_OBJDUMP
28561
28562 # Whether or not to build shared libraries.
28563 build_libtool_libs=$enable_shared
28564
28565 # Whether or not to build static libraries.
28566 build_old_libs=$enable_static
28567
28568 # What type of objects to build.
28569 pic_mode=$pic_mode
28570
28571 # Whether or not to optimize for fast installation.
28572 fast_install=$enable_fast_install
28573
28574 # Shared archive member basename,for filename based shared library versioning on AIX.
28575 shared_archive_member_spec=$shared_archive_member_spec
28576
28577 # Shell to use when invoking shell scripts.
28578 SHELL=$lt_SHELL
28579
28580 # An echo program that protects backslashes.
28581 ECHO=$lt_ECHO
28582
28583 # The PATH separator for the build system.
28584 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28585
28586 # The host system.
28587 host_alias=$host_alias
28588 host=$host
28589 host_os=$host_os
28590
28591 # The build system.
28592 build_alias=$build_alias
28593 build=$build
28594 build_os=$build_os
28595
28596 # A sed program that does not truncate output.
28597 SED=$lt_SED
28598
28599 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28600 Xsed="\$SED -e 1s/^X//"
28601
28602 # A grep program that handles long lines.
28603 GREP=$lt_GREP
28604
28605 # An ERE matcher.
28606 EGREP=$lt_EGREP
28607
28608 # A literal string matcher.
28609 FGREP=$lt_FGREP
28610
28611 # A BSD- or MS-compatible name lister.
28612 NM=$lt_NM
28613
28614 # Whether we need soft or hard links.
28615 LN_S=$lt_LN_S
28616
28617 # What is the maximum length of a command?
28618 max_cmd_len=$max_cmd_len
28619
28620 # Object file suffix (normally "o").
28621 objext=$ac_objext
28622
28623 # Executable file suffix (normally "").
28624 exeext=$exeext
28625
28626 # whether the shell understands "unset".
28627 lt_unset=$lt_unset
28628
28629 # turn spaces into newlines.
28630 SP2NL=$lt_lt_SP2NL
28631
28632 # turn newlines into spaces.
28633 NL2SP=$lt_lt_NL2SP
28634
28635 # convert \$build file names to \$host format.
28636 to_host_file_cmd=$lt_cv_to_host_file_cmd
28637
28638 # convert \$build files to toolchain format.
28639 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28640
28641 # A file(cmd) program that detects file types.
28642 FILECMD=$lt_FILECMD
28643
28644 # Method to check whether dependent libraries are shared objects.
28645 deplibs_check_method=$lt_deplibs_check_method
28646
28647 # Command to use when deplibs_check_method = "file_magic".
28648 file_magic_cmd=$lt_file_magic_cmd
28649
28650 # How to find potential files when deplibs_check_method = "file_magic".
28651 file_magic_glob=$lt_file_magic_glob
28652
28653 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28654 want_nocaseglob=$lt_want_nocaseglob
28655
28656 # Command to associate shared and link libraries.
28657 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28658
28659 # The archiver.
28660 AR=$lt_AR
28661
28662 # Flags to create an archive (by configure).
28663 lt_ar_flags=$lt_ar_flags
28664
28665 # Flags to create an archive.
28666 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
28667
28668 # How to feed a file listing to the archiver.
28669 archiver_list_spec=$lt_archiver_list_spec
28670
28671 # A symbol stripping program.
28672 STRIP=$lt_STRIP
28673
28674 # Commands used to install an old-style archive.
28675 RANLIB=$lt_RANLIB
28676 old_postinstall_cmds=$lt_old_postinstall_cmds
28677 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28678
28679 # Whether to use a lock for old archive extraction.
28680 lock_old_archive_extraction=$lock_old_archive_extraction
28681
28682 # A C compiler.
28683 LTCC=$lt_CC
28684
28685 # LTCC compiler flags.
28686 LTCFLAGS=$lt_CFLAGS
28687
28688 # Take the output of nm and produce a listing of raw symbols and C names.
28689 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28690
28691 # Transform the output of nm in a proper C declaration.
28692 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28693
28694 # Transform the output of nm into a list of symbols to manually relocate.
28695 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28696
28697 # Transform the output of nm in a C name address pair.
28698 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28699
28700 # Transform the output of nm in a C name address pair when lib prefix is needed.
28701 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28702
28703 # The name lister interface.
28704 nm_interface=$lt_lt_cv_nm_interface
28705
28706 # Specify filename containing input files for \$NM.
28707 nm_file_list_spec=$lt_nm_file_list_spec
28708
28709 # The root where to search for dependent libraries,and where our libraries should be installed.
28710 lt_sysroot=$lt_sysroot
28711
28712 # Command to truncate a binary pipe.
28713 lt_truncate_bin=$lt_lt_cv_truncate_bin
28714
28715 # The name of the directory that contains temporary libtool files.
28716 objdir=$objdir
28717
28718 # Used to examine libraries when file_magic_cmd begins with "file".
28719 MAGIC_CMD=$MAGIC_CMD
28720
28721 # Must we lock files when doing compilation?
28722 need_locks=$lt_need_locks
28723
28724 # Manifest tool.
28725 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28726
28727 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28728 DSYMUTIL=$lt_DSYMUTIL
28729
28730 # Tool to change global to local symbols on Mac OS X.
28731 NMEDIT=$lt_NMEDIT
28732
28733 # Tool to manipulate fat objects and archives on Mac OS X.
28734 LIPO=$lt_LIPO
28735
28736 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28737 OTOOL=$lt_OTOOL
28738
28739 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28740 OTOOL64=$lt_OTOOL64
28741
28742 # Old archive suffix (normally "a").
28743 libext=$libext
28744
28745 # Shared library suffix (normally ".so").
28746 shrext_cmds=$lt_shrext_cmds
28747
28748 # The commands to extract the exported symbol list from a shared archive.
28749 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28750
28751 # Variables whose values should be saved in libtool wrapper scripts and
28752 # restored at link time.
28753 variables_saved_for_relink=$lt_variables_saved_for_relink
28754
28755 # Do we need the "lib" prefix for modules?
28756 need_lib_prefix=$need_lib_prefix
28757
28758 # Do we need a version for libraries?
28759 need_version=$need_version
28760
28761 # Library versioning type.
28762 version_type=$version_type
28763
28764 # Shared library runtime path variable.
28765 runpath_var=$runpath_var
28766
28767 # Shared library path variable.
28768 shlibpath_var=$shlibpath_var
28769
28770 # Is shlibpath searched before the hard-coded library search path?
28771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28772
28773 # Format of library name prefix.
28774 libname_spec=$lt_libname_spec
28775
28776 # List of archive names. First name is the real one, the rest are links.
28777 # The last name is the one that the linker finds with -lNAME
28778 library_names_spec=$lt_library_names_spec
28779
28780 # The coded name of the library, if different from the real name.
28781 soname_spec=$lt_soname_spec
28782
28783 # Permission mode override for installation of shared libraries.
28784 install_override_mode=$lt_install_override_mode
28785
28786 # Command to use after installation of a shared archive.
28787 postinstall_cmds=$lt_postinstall_cmds
28788
28789 # Command to use after uninstallation of a shared archive.
28790 postuninstall_cmds=$lt_postuninstall_cmds
28791
28792 # Commands used to finish a libtool library installation in a directory.
28793 finish_cmds=$lt_finish_cmds
28794
28795 # As "finish_cmds", except a single script fragment to be evaled but
28796 # not shown.
28797 finish_eval=$lt_finish_eval
28798
28799 # Whether we should hardcode library paths into libraries.
28800 hardcode_into_libs=$hardcode_into_libs
28801
28802 # Compile-time system search path for libraries.
28803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28804
28805 # Detected run-time system search path for libraries.
28806 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28807
28808 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28809 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28810
28811 # Whether dlopen is supported.
28812 dlopen_support=$enable_dlopen
28813
28814 # Whether dlopen of programs is supported.
28815 dlopen_self=$enable_dlopen_self
28816
28817 # Whether dlopen of statically linked programs is supported.
28818 dlopen_self_static=$enable_dlopen_self_static
28819
28820 # Commands to strip libraries.
28821 old_striplib=$lt_old_striplib
28822 striplib=$lt_striplib
28823
28824
28825 # The linker used to build libraries.
28826 LD=$lt_LD
28827
28828 # How to create reloadable object files.
28829 reload_flag=$lt_reload_flag
28830 reload_cmds=$lt_reload_cmds
28831
28832 # Commands used to build an old-style archive.
28833 old_archive_cmds=$lt_old_archive_cmds
28834
28835 # A language specific compiler.
28836 CC=$lt_compiler
28837
28838 # Is the compiler the GNU compiler?
28839 with_gcc=$GCC
28840
28841 # Compiler flag to turn off builtin functions.
28842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28843
28844 # Additional compiler flags for building library objects.
28845 pic_flag=$lt_lt_prog_compiler_pic
28846
28847 # How to pass a linker flag through the compiler.
28848 wl=$lt_lt_prog_compiler_wl
28849
28850 # Compiler flag to prevent dynamic linking.
28851 link_static_flag=$lt_lt_prog_compiler_static
28852
28853 # Does compiler simultaneously support -c and -o options?
28854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28855
28856 # Whether or not to add -lc for building shared libraries.
28857 build_libtool_need_lc=$archive_cmds_need_lc
28858
28859 # Whether or not to disallow shared libs when runtime libs are static.
28860 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28861
28862 # Compiler flag to allow reflexive dlopens.
28863 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28864
28865 # Compiler flag to generate shared objects directly from archives.
28866 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28867
28868 # Whether the compiler copes with passing no objects directly.
28869 compiler_needs_object=$lt_compiler_needs_object
28870
28871 # Create an old-style archive from a shared archive.
28872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28873
28874 # Create a temporary old-style archive to link instead of a shared archive.
28875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28876
28877 # Commands used to build a shared archive.
28878 archive_cmds=$lt_archive_cmds
28879 archive_expsym_cmds=$lt_archive_expsym_cmds
28880
28881 # Commands used to build a loadable module if different from building
28882 # a shared archive.
28883 module_cmds=$lt_module_cmds
28884 module_expsym_cmds=$lt_module_expsym_cmds
28885
28886 # Whether we are building with GNU ld or not.
28887 with_gnu_ld=$lt_with_gnu_ld
28888
28889 # Flag that allows shared libraries with undefined symbols to be built.
28890 allow_undefined_flag=$lt_allow_undefined_flag
28891
28892 # Flag that enforces no undefined symbols.
28893 no_undefined_flag=$lt_no_undefined_flag
28894
28895 # Flag to hardcode \$libdir into a binary during linking.
28896 # This must work even if \$libdir does not exist
28897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28898
28899 # Whether we need a single "-rpath" flag with a separated argument.
28900 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28901
28902 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28903 # DIR into the resulting binary.
28904 hardcode_direct=$hardcode_direct
28905
28906 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28907 # DIR into the resulting binary and the resulting library dependency is
28908 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28909 # library is relocated.
28910 hardcode_direct_absolute=$hardcode_direct_absolute
28911
28912 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28913 # into the resulting binary.
28914 hardcode_minus_L=$hardcode_minus_L
28915
28916 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28917 # into the resulting binary.
28918 hardcode_shlibpath_var=$hardcode_shlibpath_var
28919
28920 # Set to "yes" if building a shared library automatically hardcodes DIR
28921 # into the library and all subsequent libraries and executables linked
28922 # against it.
28923 hardcode_automatic=$hardcode_automatic
28924
28925 # Set to yes if linker adds runtime paths of dependent libraries
28926 # to runtime path list.
28927 inherit_rpath=$inherit_rpath
28928
28929 # Whether libtool must link a program against all its dependency libraries.
28930 link_all_deplibs=$link_all_deplibs
28931
28932 # Set to "yes" if exported symbols are required.
28933 always_export_symbols=$always_export_symbols
28934
28935 # The commands to list exported symbols.
28936 export_symbols_cmds=$lt_export_symbols_cmds
28937
28938 # Symbols that should not be listed in the preloaded symbols.
28939 exclude_expsyms=$lt_exclude_expsyms
28940
28941 # Symbols that must always be exported.
28942 include_expsyms=$lt_include_expsyms
28943
28944 # Commands necessary for linking programs (against libraries) with templates.
28945 prelink_cmds=$lt_prelink_cmds
28946
28947 # Commands necessary for finishing linking programs.
28948 postlink_cmds=$lt_postlink_cmds
28949
28950 # Specify filename containing input files.
28951 file_list_spec=$lt_file_list_spec
28952
28953 # How to hardcode a shared library path into an executable.
28954 hardcode_action=$hardcode_action
28955
28956 # The directories searched by this compiler when creating a shared library.
28957 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28958
28959 # Dependencies to place before and after the objects being linked to
28960 # create a shared library.
28961 predep_objects=$lt_predep_objects
28962 postdep_objects=$lt_postdep_objects
28963 predeps=$lt_predeps
28964 postdeps=$lt_postdeps
28965
28966 # The library search path used internally by the compiler when linking
28967 # a shared library.
28968 compiler_lib_search_path=$lt_compiler_lib_search_path
28969
28970 # ### END LIBTOOL CONFIG
28971
28972 _LT_EOF
28973
28974 cat <<'_LT_EOF' >> "$cfgfile"
28975
28976 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28977
28978 # func_munge_path_list VARIABLE PATH
28979 # -----------------------------------
28980 # VARIABLE is name of variable containing _space_ separated list of
28981 # directories to be munged by the contents of PATH, which is string
28982 # having a format:
28983 # "DIR[:DIR]:"
28984 # string "DIR[ DIR]" will be prepended to VARIABLE
28985 # ":DIR[:DIR]"
28986 # string "DIR[ DIR]" will be appended to VARIABLE
28987 # "DIRP[:DIRP]::[DIRA:]DIRA"
28988 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28989 # "DIRA[ DIRA]" will be appended to VARIABLE
28990 # "DIR[:DIR]"
28991 # VARIABLE will be replaced by "DIR[ DIR]"
28992 func_munge_path_list ()
28993 {
28994 case x$2 in
28995 x)
28996 ;;
28997 *:)
28998 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28999 ;;
29000 x:*)
29001 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29002 ;;
29003 *::*)
29004 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29005 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29006 ;;
29007 *)
29008 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29009 ;;
29010 esac
29011 }
29012
29013
29014 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
29015 func_cc_basename ()
29016 {
29017 for cc_temp in $*""; do
29018 case $cc_temp in
29019 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29020 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29021 \-*) ;;
29022 *) break;;
29023 esac
29024 done
29025 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29026 }
29027
29028
29029 # ### END FUNCTIONS SHARED WITH CONFIGURE
29030
29031 _LT_EOF
29032
29033 case $host_os in
29034 aix3*)
29035 cat <<\_LT_EOF >> "$cfgfile"
29036 # AIX sometimes has problems with the GCC collect2 program. For some
29037 # reason, if we set the COLLECT_NAMES environment variable, the problems
29038 # vanish in a puff of smoke.
29039 if test set != "${COLLECT_NAMES+set}"; then
29040 COLLECT_NAMES=
29041 export COLLECT_NAMES
29042 fi
29043 _LT_EOF
29044 ;;
29045 esac
29046
29047
29048
29049 ltmain=$ac_aux_dir/ltmain.sh
29050
29051
29052 # We use sed instead of cat because bash on DJGPP gets confused if
29053 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29054 # text mode, it properly converts lines to CR/LF. This bash problem
29055 # is reportedly fixed, but why not run on old versions too?
29056 $SED '$q' "$ltmain" >> "$cfgfile" \
29057 || (rm -f "$cfgfile"; exit 1)
29058
29059 mv -f "$cfgfile" "$ofile" ||
29060 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29061 chmod +x "$ofile"
29062
29063
29064 cat <<_LT_EOF >> "$ofile"
29065
29066 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29067
29068 # The linker used to build libraries.
29069 LD=$lt_LD_CXX
29070
29071 # How to create reloadable object files.
29072 reload_flag=$lt_reload_flag_CXX
29073 reload_cmds=$lt_reload_cmds_CXX
29074
29075 # Commands used to build an old-style archive.
29076 old_archive_cmds=$lt_old_archive_cmds_CXX
29077
29078 # A language specific compiler.
29079 CC=$lt_compiler_CXX
29080
29081 # Is the compiler the GNU compiler?
29082 with_gcc=$GCC_CXX
29083
29084 # Compiler flag to turn off builtin functions.
29085 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29086
29087 # Additional compiler flags for building library objects.
29088 pic_flag=$lt_lt_prog_compiler_pic_CXX
29089
29090 # How to pass a linker flag through the compiler.
29091 wl=$lt_lt_prog_compiler_wl_CXX
29092
29093 # Compiler flag to prevent dynamic linking.
29094 link_static_flag=$lt_lt_prog_compiler_static_CXX
29095
29096 # Does compiler simultaneously support -c and -o options?
29097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29098
29099 # Whether or not to add -lc for building shared libraries.
29100 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29101
29102 # Whether or not to disallow shared libs when runtime libs are static.
29103 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29104
29105 # Compiler flag to allow reflexive dlopens.
29106 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29107
29108 # Compiler flag to generate shared objects directly from archives.
29109 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29110
29111 # Whether the compiler copes with passing no objects directly.
29112 compiler_needs_object=$lt_compiler_needs_object_CXX
29113
29114 # Create an old-style archive from a shared archive.
29115 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29116
29117 # Create a temporary old-style archive to link instead of a shared archive.
29118 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29119
29120 # Commands used to build a shared archive.
29121 archive_cmds=$lt_archive_cmds_CXX
29122 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29123
29124 # Commands used to build a loadable module if different from building
29125 # a shared archive.
29126 module_cmds=$lt_module_cmds_CXX
29127 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29128
29129 # Whether we are building with GNU ld or not.
29130 with_gnu_ld=$lt_with_gnu_ld_CXX
29131
29132 # Flag that allows shared libraries with undefined symbols to be built.
29133 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29134
29135 # Flag that enforces no undefined symbols.
29136 no_undefined_flag=$lt_no_undefined_flag_CXX
29137
29138 # Flag to hardcode \$libdir into a binary during linking.
29139 # This must work even if \$libdir does not exist
29140 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29141
29142 # Whether we need a single "-rpath" flag with a separated argument.
29143 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29144
29145 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29146 # DIR into the resulting binary.
29147 hardcode_direct=$hardcode_direct_CXX
29148
29149 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29150 # DIR into the resulting binary and the resulting library dependency is
29151 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29152 # library is relocated.
29153 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29154
29155 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29156 # into the resulting binary.
29157 hardcode_minus_L=$hardcode_minus_L_CXX
29158
29159 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29160 # into the resulting binary.
29161 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29162
29163 # Set to "yes" if building a shared library automatically hardcodes DIR
29164 # into the library and all subsequent libraries and executables linked
29165 # against it.
29166 hardcode_automatic=$hardcode_automatic_CXX
29167
29168 # Set to yes if linker adds runtime paths of dependent libraries
29169 # to runtime path list.
29170 inherit_rpath=$inherit_rpath_CXX
29171
29172 # Whether libtool must link a program against all its dependency libraries.
29173 link_all_deplibs=$link_all_deplibs_CXX
29174
29175 # Set to "yes" if exported symbols are required.
29176 always_export_symbols=$always_export_symbols_CXX
29177
29178 # The commands to list exported symbols.
29179 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29180
29181 # Symbols that should not be listed in the preloaded symbols.
29182 exclude_expsyms=$lt_exclude_expsyms_CXX
29183
29184 # Symbols that must always be exported.
29185 include_expsyms=$lt_include_expsyms_CXX
29186
29187 # Commands necessary for linking programs (against libraries) with templates.
29188 prelink_cmds=$lt_prelink_cmds_CXX
29189
29190 # Commands necessary for finishing linking programs.
29191 postlink_cmds=$lt_postlink_cmds_CXX
29192
29193 # Specify filename containing input files.
29194 file_list_spec=$lt_file_list_spec_CXX
29195
29196 # How to hardcode a shared library path into an executable.
29197 hardcode_action=$hardcode_action_CXX
29198
29199 # The directories searched by this compiler when creating a shared library.
29200 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29201
29202 # Dependencies to place before and after the objects being linked to
29203 # create a shared library.
29204 predep_objects=$lt_predep_objects_CXX
29205 postdep_objects=$lt_postdep_objects_CXX
29206 predeps=$lt_predeps_CXX
29207 postdeps=$lt_postdeps_CXX
29208
29209 # The library search path used internally by the compiler when linking
29210 # a shared library.
29211 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29212
29213 # ### END LIBTOOL TAG CONFIG: CXX
29214 _LT_EOF
29215
29216
29217 cat <<_LT_EOF >> "$ofile"
29218
29219 # ### BEGIN LIBTOOL TAG CONFIG: RC
29220
29221 # The linker used to build libraries.
29222 LD=$lt_LD_RC
29223
29224 # How to create reloadable object files.
29225 reload_flag=$lt_reload_flag_RC
29226 reload_cmds=$lt_reload_cmds_RC
29227
29228 # Commands used to build an old-style archive.
29229 old_archive_cmds=$lt_old_archive_cmds_RC
29230
29231 # A language specific compiler.
29232 CC=$lt_compiler_RC
29233
29234 # Is the compiler the GNU compiler?
29235 with_gcc=$GCC_RC
29236
29237 # Compiler flag to turn off builtin functions.
29238 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29239
29240 # Additional compiler flags for building library objects.
29241 pic_flag=$lt_lt_prog_compiler_pic_RC
29242
29243 # How to pass a linker flag through the compiler.
29244 wl=$lt_lt_prog_compiler_wl_RC
29245
29246 # Compiler flag to prevent dynamic linking.
29247 link_static_flag=$lt_lt_prog_compiler_static_RC
29248
29249 # Does compiler simultaneously support -c and -o options?
29250 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
29251
29252 # Whether or not to add -lc for building shared libraries.
29253 build_libtool_need_lc=$archive_cmds_need_lc_RC
29254
29255 # Whether or not to disallow shared libs when runtime libs are static.
29256 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
29257
29258 # Compiler flag to allow reflexive dlopens.
29259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29260
29261 # Compiler flag to generate shared objects directly from archives.
29262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29263
29264 # Whether the compiler copes with passing no objects directly.
29265 compiler_needs_object=$lt_compiler_needs_object_RC
29266
29267 # Create an old-style archive from a shared archive.
29268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29269
29270 # Create a temporary old-style archive to link instead of a shared archive.
29271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29272
29273 # Commands used to build a shared archive.
29274 archive_cmds=$lt_archive_cmds_RC
29275 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29276
29277 # Commands used to build a loadable module if different from building
29278 # a shared archive.
29279 module_cmds=$lt_module_cmds_RC
29280 module_expsym_cmds=$lt_module_expsym_cmds_RC
29281
29282 # Whether we are building with GNU ld or not.
29283 with_gnu_ld=$lt_with_gnu_ld_RC
29284
29285 # Flag that allows shared libraries with undefined symbols to be built.
29286 allow_undefined_flag=$lt_allow_undefined_flag_RC
29287
29288 # Flag that enforces no undefined symbols.
29289 no_undefined_flag=$lt_no_undefined_flag_RC
29290
29291 # Flag to hardcode \$libdir into a binary during linking.
29292 # This must work even if \$libdir does not exist
29293 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29294
29295 # Whether we need a single "-rpath" flag with a separated argument.
29296 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29297
29298 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29299 # DIR into the resulting binary.
29300 hardcode_direct=$hardcode_direct_RC
29301
29302 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29303 # DIR into the resulting binary and the resulting library dependency is
29304 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29305 # library is relocated.
29306 hardcode_direct_absolute=$hardcode_direct_absolute_RC
29307
29308 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29309 # into the resulting binary.
29310 hardcode_minus_L=$hardcode_minus_L_RC
29311
29312 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29313 # into the resulting binary.
29314 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29315
29316 # Set to "yes" if building a shared library automatically hardcodes DIR
29317 # into the library and all subsequent libraries and executables linked
29318 # against it.
29319 hardcode_automatic=$hardcode_automatic_RC
29320
29321 # Set to yes if linker adds runtime paths of dependent libraries
29322 # to runtime path list.
29323 inherit_rpath=$inherit_rpath_RC
29324
29325 # Whether libtool must link a program against all its dependency libraries.
29326 link_all_deplibs=$link_all_deplibs_RC
29327
29328 # Set to "yes" if exported symbols are required.
29329 always_export_symbols=$always_export_symbols_RC
29330
29331 # The commands to list exported symbols.
29332 export_symbols_cmds=$lt_export_symbols_cmds_RC
29333
29334 # Symbols that should not be listed in the preloaded symbols.
29335 exclude_expsyms=$lt_exclude_expsyms_RC
29336
29337 # Symbols that must always be exported.
29338 include_expsyms=$lt_include_expsyms_RC
29339
29340 # Commands necessary for linking programs (against libraries) with templates.
29341 prelink_cmds=$lt_prelink_cmds_RC
29342
29343 # Commands necessary for finishing linking programs.
29344 postlink_cmds=$lt_postlink_cmds_RC
29345
29346 # Specify filename containing input files.
29347 file_list_spec=$lt_file_list_spec_RC
29348
29349 # How to hardcode a shared library path into an executable.
29350 hardcode_action=$hardcode_action_RC
29351
29352 # The directories searched by this compiler when creating a shared library.
29353 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
29354
29355 # Dependencies to place before and after the objects being linked to
29356 # create a shared library.
29357 predep_objects=$lt_predep_objects_RC
29358 postdep_objects=$lt_postdep_objects_RC
29359 predeps=$lt_predeps_RC
29360 postdeps=$lt_postdeps_RC
29361
29362 # The library search path used internally by the compiler when linking
29363 # a shared library.
29364 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29365
29366 # ### END LIBTOOL TAG CONFIG: RC
29367 _LT_EOF
29368
29369 ;;
29370
29371 esac
29372 done # for ac_tag
29373
29374
29375 as_fn_exit 0
29376 _ACEOF
29377 ac_clean_files=$ac_clean_files_save
29378
29379 test $ac_write_fail = 0 ||
29380 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29381
29382
29383 # configure is writing to config.log, and then calls config.status.
29384 # config.status does its own redirection, appending to config.log.
29385 # Unfortunately, on DOS this fails, as config.log is still kept open
29386 # by configure, so config.status won't be able to write to it; its
29387 # output is simply discarded. So we exec the FD to /dev/null,
29388 # effectively closing config.log, so it can be properly (re)opened and
29389 # appended to by config.status. When coming back to configure, we
29390 # need to make the FD available again.
29391 if test "$no_create" != yes; then
29392 ac_cs_success=:
29393 ac_config_status_args=
29394 test "$silent" = yes &&
29395 ac_config_status_args="$ac_config_status_args --quiet"
29396 exec 5>/dev/null
29397 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29398 exec 5>>config.log
29399 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29400 # would make configure fail if this is the last instruction.
29401 $ac_cs_success || as_fn_exit 1
29402 fi
29403 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29405 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29406 fi
29407
29408
29409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: summary of build options:
29410
29411 version: ${LIBSSH2_VERSION}
29412 Host type: ${host}
29413 Install prefix: ${prefix}
29414 Compiler: ${CC}
29415 Compiler flags: ${CFLAGS}
29416 Library types: Shared=${enable_shared}, Static=${enable_static}
29417 Crypto library: ${found_crypto_str}
29418 WinCNG ECDSA: $wincng_ecdsa
29419 zlib compression: ${found_libz}
29420 Clear memory: $enable_clear_memory
29421 Deprecated APIs: $with_deprecated
29422 Debug build: $enable_debug
29423 Build examples: $build_examples
29424 Run Docker tests: $run_docker_tests
29425 Run sshd tests: $run_sshd_tests
29426 Path to sshd: $ac_cv_path_SSHD (only for self-tests)
29427 " >&5
29428 printf "%s\n" "$as_me: summary of build options:
29429
29430 version: ${LIBSSH2_VERSION}
29431 Host type: ${host}
29432 Install prefix: ${prefix}
29433 Compiler: ${CC}
29434 Compiler flags: ${CFLAGS}
29435 Library types: Shared=${enable_shared}, Static=${enable_static}
29436 Crypto library: ${found_crypto_str}
29437 WinCNG ECDSA: $wincng_ecdsa
29438 zlib compression: ${found_libz}
29439 Clear memory: $enable_clear_memory
29440 Deprecated APIs: $with_deprecated
29441 Debug build: $enable_debug
29442 Build examples: $build_examples
29443 Run Docker tests: $run_docker_tests
29444 Run sshd tests: $run_sshd_tests
29445 Path to sshd: $ac_cv_path_SSHD (only for self-tests)
29446 " >&6;}
29447