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 avfs 1.3.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='avfs'
613 PACKAGE_TARNAME='avfs'
614 PACKAGE_VERSION='1.3.0'
615 PACKAGE_STRING='avfs 1.3.0'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_unique_file="include/avfs.h"
620 ac_default_prefix=/usr
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 enable_year2038=no
654 ac_subst_vars='am__EXEEXT_FALSE
655 am__EXEEXT_TRUE
656 LTLIBOBJS
657 LIBOBJS
658 shared_build
659 install_scriptcomps
660 VERSIONSCRIPT_OPTS
661 BUILD_SHARED_FALSE
662 BUILD_SHARED_TRUE
663 INSTALL_FUSE_FALSE
664 INSTALL_FUSE_TRUE
665 USE_LIBLZIP_FALSE
666 USE_LIBLZIP_TRUE
667 USE_LIBZSTD_FALSE
668 USE_LIBZSTD_TRUE
669 USE_LIBLZMA_FALSE
670 USE_LIBLZMA_TRUE
671 LIBZSTD_LIBS
672 LIBZSTD_CFLAGS
673 LIBLZMA_LIBS
674 LIBLZMA_CFLAGS
675 FUSELIBS
676 LIBFUSE_LIBS
677 LIBFUSE_CFLAGS
678 PERL
679 HAVE_ZIPINFO
680 UNZIP
681 ZIP
682 moduledir
683 LIBDAV
684 DAV_LS
685 DAV
686 BUILD_DAVSUPPORT_FALSE
687 BUILD_DAVSUPPORT_TRUE
688 LIBNEON_LIBS
689 LIBNEON_CFLAGS
690 ZLIB_CFLAGS
691 LT_SYS_LIBRARY_PATH
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 DLLTOOL
702 OBJDUMP
703 FILECMD
704 LN_S
705 NM
706 ac_ct_DUMPBIN
707 DUMPBIN
708 LD
709 FGREP
710 EGREP
711 GREP
712 SED
713 LIBTOOL
714 CPP
715 am__fastdepCC_FALSE
716 am__fastdepCC_TRUE
717 CCDEPMODE
718 am__nodep
719 AMDEPBACKSLASH
720 AMDEP_FALSE
721 AMDEP_TRUE
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 pkgconfigdir
732 BZLIB_INCLUDE
733 LIBBZ2
734 USE_SYSTEM_BZLIB_FALSE
735 USE_SYSTEM_BZLIB_TRUE
736 ZLIB_INCLUDE
737 LIBZ
738 USE_SYSTEM_ZLIB_FALSE
739 USE_SYSTEM_ZLIB_TRUE
740 LIBZLIB_LIBS
741 LIBZLIB_CFLAGS
742 PKG_CONFIG_LIBDIR
743 PKG_CONFIG_PATH
744 PKG_CONFIG
745 NUMVERSION
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 am__xargs_n
755 am__rm_f_notfound
756 AM_BACKSLASH
757 AM_DEFAULT_VERBOSITY
758 AM_DEFAULT_V
759 AM_V
760 CSCOPE
761 ETAGS
762 CTAGS
763 am__untar
764 am__tar
765 AMTAR
766 am__leading_dot
767 SET_MAKE
768 AWK
769 mkdir_p
770 MKDIR_P
771 INSTALL_STRIP_PROGRAM
772 STRIP
773 install_sh
774 MAKEINFO
775 AUTOHEADER
776 AUTOMAKE
777 AUTOCONF
778 ACLOCAL
779 VERSION
780 PACKAGE
781 CYGPATH_W
782 am__isrc
783 INSTALL_DATA
784 INSTALL_SCRIPT
785 INSTALL_PROGRAM
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 runstatedir
806 localstatedir
807 sharedstatedir
808 sysconfdir
809 datadir
810 datarootdir
811 libexecdir
812 sbindir
813 bindir
814 program_transform_name
815 prefix
816 exec_prefix
817 PACKAGE_URL
818 PACKAGE_BUGREPORT
819 PACKAGE_STRING
820 PACKAGE_VERSION
821 PACKAGE_TARNAME
822 PACKAGE_NAME
823 PATH_SEPARATOR
824 SHELL
825 am__quote'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_silent_rules
830 enable_library
831 enable_fuse
832 enable_debug
833 enable_dav
834 with_system_zlib
835 with_system_bzlib
836 with_pkgconfigdir
837 enable_dependency_tracking
838 enable_shared
839 enable_static
840 enable_pic
841 with_pic
842 enable_fast_install
843 enable_aix_soname
844 with_aix_soname
845 with_gnu_ld
846 with_sysroot
847 enable_libtool_lock
848 enable_largefile
849 enable_fuse_test
850 with_xz
851 with_zstd
852 with_lzip
853 enable_year2038
854 '
855 ac_precious_vars='build_alias
856 host_alias
857 target_alias
858 PKG_CONFIG
859 PKG_CONFIG_PATH
860 PKG_CONFIG_LIBDIR
861 LIBZLIB_CFLAGS
862 LIBZLIB_LIBS
863 CC
864 CFLAGS
865 LDFLAGS
866 LIBS
867 CPPFLAGS
868 CPP
869 LT_SYS_LIBRARY_PATH
870 LIBNEON_CFLAGS
871 LIBNEON_LIBS
872 LIBFUSE_CFLAGS
873 LIBFUSE_LIBS
874 LIBLZMA_CFLAGS
875 LIBLZMA_LIBS
876 LIBZSTD_CFLAGS
877 LIBZSTD_LIBS'
878
879
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
901
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 runstatedir='${localstatedir}/run'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
944 esac
945
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
954
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
969
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
974
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: '$ac_useropt'"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1007
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: '$ac_useropt'"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -runstatedir | --runstatedir | --runstatedi | --runstated \
1168 | --runstate | --runstat | --runsta | --runst | --runs \
1169 | --run | --ru | --r)
1170 ac_prev=runstatedir ;;
1171 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1172 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1173 | --run=* | --ru=* | --r=*)
1174 runstatedir=$ac_optarg ;;
1175
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1181
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1192
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1197
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1202
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1209
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1214
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1217
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1220
1221 -with-* | --with-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid package name: '$ac_useropt'"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
1236
1237 -without-* | --without-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid package name: '$ac_useropt'"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=no ;;
1252
1253 --x)
1254 # Obsolete; use --with-x.
1255 with_x=yes ;;
1256
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262 x_includes=$ac_optarg ;;
1263
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269 x_libraries=$ac_optarg ;;
1270
1271 -*) as_fn_error $? "unrecognized option: '$ac_option'
1272 Try '$0 --help' for more information"
1273 ;;
1274
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 case $ac_envvar in #(
1279 '' | [0-9]* | *[!_$as_cr_alnum]* )
1280 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1281 esac
1282 eval $ac_envvar=\$ac_optarg
1283 export $ac_envvar ;;
1284
1285 *)
1286 # FIXME: should be removed in autoconf 3.0.
1287 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1291 ;;
1292
1293 esac
1294 done
1295
1296 if test -n "$ac_prev"; then
1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298 as_fn_error $? "missing argument to $ac_option"
1299 fi
1300
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1303 no) ;;
1304 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1305 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 esac
1307 fi
1308
1309 # Check all directory arguments for consistency.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir runstatedir
1314 do
1315 eval ac_val=\$$ac_var
1316 # Remove trailing slashes.
1317 case $ac_val in
1318 */ )
1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\$ac_val;;
1321 esac
1322 # Be sure to have absolute directory names.
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1328 done
1329
1330 # There might be people who depend on the old broken behavior: '$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1333 build=$build_alias
1334 host=$host_alias
1335 target=$target_alias
1336
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1343 fi
1344 fi
1345
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349 test "$silent" = yes && exec 6>/dev/null
1350
1351
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error $? "working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error $? "pwd does not report name of working directory"
1358
1359
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 printf "%s\n" X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\).*/{
1383 s//\1/
1384 q
1385 }
1386 s/.*/./; q'`
1387 srcdir=$ac_confdir
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 srcdir=..
1390 fi
1391 else
1392 ac_srcdir_defaulted=no
1393 fi
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1397 fi
1398 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1399 ac_abs_confdir=`(
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1401 pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 srcdir=.
1405 fi
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 done
1418
1419 #
1420 # Report the --help message.
1421 #
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1425 cat <<_ACEOF
1426 'configure' configures avfs 1.3.0 to adapt to many kinds of systems.
1427
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1429
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1432
1433 Defaults for the options are specified in brackets.
1434
1435 Configuration:
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print 'checking ...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for '--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or '..']
1445
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 [PREFIX]
1451
1452 By default, 'make install' will install all the files in
1453 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than '$ac_default_prefix' using '--prefix',
1455 for instance '--prefix=\$HOME'.
1456
1457 For better control, use the options below.
1458
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/avfs]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480 _ACEOF
1481
1482 cat <<\_ACEOF
1483
1484 Program names:
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1488
1489 System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 _ACEOF
1493 fi
1494
1495 if test -n "$ac_init_help"; then
1496 case $ac_init_help in
1497 short | recursive ) echo "Configuration of avfs 1.3.0:";;
1498 esac
1499 cat <<\_ACEOF
1500
1501 Optional Features:
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --enable-silent-rules less verbose build output (undo: "make V=1")
1506 --disable-silent-rules verbose build output (undo: "make V=0")
1507 --enable-library Compile avfs as a shared or static library
1508 --enable-fuse Compile avfsd for fuse
1509 --enable-debug Compile in debug information
1510 --disable-debug Do not compile in debug information
1511 --enable-dav Compile the dav module (requires libneon)
1512 --enable-dependency-tracking
1513 do not reject slow dependency extractors
1514 --disable-dependency-tracking
1515 speeds up one-time build
1516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
1518 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1519 both]
1520 --enable-fast-install[=PKGS]
1521 optimize for fast installation [default=yes]
1522 --enable-aix-soname=aix|svr4|both
1523 shared library versioning (aka "SONAME") variant to
1524 provide on AIX, [default=aix].
1525 --disable-libtool-lock avoid locking (might break parallel builds)
1526 --disable-largefile omit support for large files
1527 --disable-fuse-test Disable test for fuse version
1528 --enable-year2038 support timestamps after 2038
1529
1530 Optional Packages:
1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1533 --with-system-zlib Use system zlib instead of builtin
1534 --with-system-bzlib Use system bzlib instead of builtin
1535 --with-pkgconfigdir=DIR pkgconfig file in DIR [LIBDIR/pkgconfig]
1536 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1537 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1538 compiler's sysroot if not specified).
1539 --with-xz use xz (default is YES, force to always enable)
1540 --with-zstd use zstd (default is YES)
1541 --with-lzip use lzip (default is YES)
1542
1543 Some influential environment variables:
1544 PKG_CONFIG path to pkg-config utility
1545 PKG_CONFIG_PATH
1546 directories to add to pkg-config's search path
1547 PKG_CONFIG_LIBDIR
1548 path overriding pkg-config's built-in search path
1549 LIBZLIB_CFLAGS
1550 C compiler flags for LIBZLIB, overriding pkg-config
1551 LIBZLIB_LIBS
1552 linker flags for LIBZLIB, overriding pkg-config
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CPP C preprocessor
1561 LT_SYS_LIBRARY_PATH
1562 User-defined run-time library search path.
1563 LIBNEON_CFLAGS
1564 C compiler flags for LIBNEON, overriding pkg-config
1565 LIBNEON_LIBS
1566 linker flags for LIBNEON, overriding pkg-config
1567 LIBFUSE_CFLAGS
1568 C compiler flags for LIBFUSE, overriding pkg-config
1569 LIBFUSE_LIBS
1570 linker flags for LIBFUSE, overriding pkg-config
1571 LIBLZMA_CFLAGS
1572 C compiler flags for LIBLZMA, overriding pkg-config
1573 LIBLZMA_LIBS
1574 linker flags for LIBLZMA, overriding pkg-config
1575 LIBZSTD_CFLAGS
1576 C compiler flags for LIBZSTD, overriding pkg-config
1577 LIBZSTD_LIBS
1578 linker flags for LIBZSTD, overriding pkg-config
1579
1580 Use these variables to override the choices made by 'configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1582
1583 Report bugs to the package provider.
1584 _ACEOF
1585 ac_status=$?
1586 fi
1587
1588 if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 continue
1594 ac_builddir=.
1595
1596 case "$ac_dir" in
1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *)
1599 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605 esac ;;
1606 esac
1607 ac_abs_top_builddir=$ac_pwd
1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609 # for backward compatibility:
1610 ac_top_builddir=$ac_top_build_prefix
1611
1612 case $srcdir in
1613 .) # We are building in place.
1614 ac_srcdir=.
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
1618 ac_srcdir=$srcdir$ac_dir_suffix;
1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1621 *) # Relative name.
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625 esac
1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for configure.gnu first; this name is used for a wrapper for
1630 # Metaconfig's "Configure" on case-insensitive file systems.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1637 else
1638 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1641 done
1642 fi
1643
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646 cat <<\_ACEOF
1647 avfs configure 1.3.0
1648 generated by GNU Autoconf 2.72
1649
1650 Copyright (C) 2023 Free Software Foundation, Inc.
1651 This configure script is free software; the Free Software Foundation
1652 gives unlimited permission to copy, distribute and modify it.
1653 _ACEOF
1654 exit
1655 fi
1656
1657 ## ------------------------ ##
1658 ## Autoconf initialization. ##
1659 ## ------------------------ ##
1660
1661 # ac_fn_c_try_compile LINENO
1662 # --------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest.beam
1668 if { { ac_try="$ac_compile"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 printf "%s\n" "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext
1687 then :
1688 ac_retval=0
1689 else case e in #(
1690 e) printf "%s\n" "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1 ;;
1694 esac
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_compile
1700
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_cpp ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 printf "%s\n" "$ac_try_echo"; } >&5
1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } > conftest.i && {
1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 }
1726 then :
1727 ac_retval=0
1728 else case e in #(
1729 e) printf "%s\n" "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1 ;;
1733 esac
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_cpp
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 printf "%s\n" "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1768 }
1769 then :
1770 ac_retval=0
1771 else case e in #(
1772 e) printf "%s\n" "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1 ;;
1776 esac
1777 fi
1778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780 # interfere with the next link command; also delete a directory that is
1781 # left behind by Apple's compiler. We do this before executing the actions.
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_link
1787
1788 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists and can be compiled using the include files in
1791 # INCLUDES, setting the cache variable VAR accordingly.
1792 ac_fn_c_check_header_compile ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 printf %s "checking for $2... " >&6; }
1797 if eval test \${$3+y}
1798 then :
1799 printf %s "(cached) " >&6
1800 else case e in #(
1801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 $4
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"
1807 then :
1808 eval "$3=yes"
1809 else case e in #(
1810 e) eval "$3=no" ;;
1811 esac
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1814 esac
1815 fi
1816 eval ac_res=\$$3
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 printf "%s\n" "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_header_compile
1822
1823 # ac_fn_c_check_func LINENO FUNC VAR
1824 # ----------------------------------
1825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1826 ac_fn_c_check_func ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 printf %s "checking for $2... " >&6; }
1831 if eval test \${$3+y}
1832 then :
1833 printf %s "(cached) " >&6
1834 else case e in #(
1835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839 #define $2 innocuous_$2
1840
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char $2 (void); below. */
1843
1844 #include <limits.h>
1845 #undef $2
1846
1847 /* Override any GCC internal prototype to avoid an error.
1848 Use char because int might match the return type of a GCC
1849 builtin and then its argument prototype would still apply. */
1850 #ifdef __cplusplus
1851 extern "C"
1852 #endif
1853 char $2 (void);
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined __stub_$2 || defined __stub___$2
1858 choke me
1859 #endif
1860
1861 int
1862 main (void)
1863 {
1864 return $2 ();
1865 ;
1866 return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_link "$LINENO"
1870 then :
1871 eval "$3=yes"
1872 else case e in #(
1873 e) eval "$3=no" ;;
1874 esac
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1877 conftest$ac_exeext conftest.$ac_ext ;;
1878 esac
1879 fi
1880 eval ac_res=\$$3
1881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 printf "%s\n" "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_func
1886 ac_configure_args_raw=
1887 for ac_arg
1888 do
1889 case $ac_arg in
1890 *\'*)
1891 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 esac
1893 as_fn_append ac_configure_args_raw " '$ac_arg'"
1894 done
1895
1896 case $ac_configure_args_raw in
1897 *$as_nl*)
1898 ac_safe_unquote= ;;
1899 *)
1900 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1901 ac_unsafe_a="$ac_unsafe_z#~"
1902 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1903 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1904 esac
1905
1906 cat >config.log <<_ACEOF
1907 This file contains any messages produced by compilers while
1908 running configure, to aid debugging if configure makes a mistake.
1909
1910 It was created by avfs $as_me 1.3.0, which was
1911 generated by GNU Autoconf 2.72. Invocation command line was
1912
1913 $ $0$ac_configure_args_raw
1914
1915 _ACEOF
1916 exec 5>>config.log
1917 {
1918 cat <<_ASUNAME
1919 ## --------- ##
1920 ## Platform. ##
1921 ## --------- ##
1922
1923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1928
1929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1931
1932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1939
1940 _ASUNAME
1941
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 case $as_dir in #(((
1947 '') as_dir=./ ;;
1948 */) ;;
1949 *) as_dir=$as_dir/ ;;
1950 esac
1951 printf "%s\n" "PATH: $as_dir"
1952 done
1953 IFS=$as_save_IFS
1954
1955 } >&5
1956
1957 cat >&5 <<_ACEOF
1958
1959
1960 ## ----------- ##
1961 ## Core tests. ##
1962 ## ----------- ##
1963
1964 _ACEOF
1965
1966
1967 # Keep a trace of the command line.
1968 # Strip out --no-create and --no-recursion so they do not pile up.
1969 # Strip out --silent because we don't want to record it for future runs.
1970 # Also quote any args containing shell meta-characters.
1971 # Make two passes to allow for proper duplicate-argument suppression.
1972 ac_configure_args=
1973 ac_configure_args0=
1974 ac_configure_args1=
1975 ac_must_keep_next=false
1976 for ac_pass in 1 2
1977 do
1978 for ac_arg
1979 do
1980 case $ac_arg in
1981 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1983 | -silent | --silent | --silen | --sile | --sil)
1984 continue ;;
1985 *\'*)
1986 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 esac
1988 case $ac_pass in
1989 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1990 2)
1991 as_fn_append ac_configure_args1 " '$ac_arg'"
1992 if test $ac_must_keep_next = true; then
1993 ac_must_keep_next=false # Got value, back to normal.
1994 else
1995 case $ac_arg in
1996 *=* | --config-cache | -C | -disable-* | --disable-* \
1997 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1998 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1999 | -with-* | --with-* | -without-* | --without-* | --x)
2000 case "$ac_configure_args0 " in
2001 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2002 esac
2003 ;;
2004 -* ) ac_must_keep_next=true ;;
2005 esac
2006 fi
2007 as_fn_append ac_configure_args " '$ac_arg'"
2008 ;;
2009 esac
2010 done
2011 done
2012 { ac_configure_args0=; unset ac_configure_args0;}
2013 { ac_configure_args1=; unset ac_configure_args1;}
2014
2015 # When interrupted or exit'd, cleanup temporary files, and complete
2016 # config.log. We remove comments because anyway the quotes in there
2017 # would cause problems or look ugly.
2018 # WARNING: Use '\'' to represent an apostrophe within the trap.
2019 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2020 trap 'exit_status=$?
2021 # Sanitize IFS.
2022 IFS=" "" $as_nl"
2023 # Save into config.log some information that might help in debugging.
2024 {
2025 echo
2026
2027 printf "%s\n" "## ---------------- ##
2028 ## Cache variables. ##
2029 ## ---------------- ##"
2030 echo
2031 # The following way of writing the cache mishandles newlines in values,
2032 (
2033 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in #(
2036 *${as_nl}*)
2037 case $ac_var in #(
2038 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2039 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2040 esac
2041 case $ac_var in #(
2042 _ | IFS | as_nl) ;; #(
2043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2044 *) { eval $ac_var=; unset $ac_var;} ;;
2045 esac ;;
2046 esac
2047 done
2048 (set) 2>&1 |
2049 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2050 *${as_nl}ac_space=\ *)
2051 sed -n \
2052 "s/'\''/'\''\\\\'\'''\''/g;
2053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2054 ;; #(
2055 *)
2056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2057 ;;
2058 esac |
2059 sort
2060 )
2061 echo
2062
2063 printf "%s\n" "## ----------------- ##
2064 ## Output variables. ##
2065 ## ----------------- ##"
2066 echo
2067 for ac_var in $ac_subst_vars
2068 do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 printf "%s\n" "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2076
2077 if test -n "$ac_subst_files"; then
2078 printf "%s\n" "## ------------------- ##
2079 ## File substitutions. ##
2080 ## ------------------- ##"
2081 echo
2082 for ac_var in $ac_subst_files
2083 do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 printf "%s\n" "$ac_var='\''$ac_val'\''"
2089 done | sort
2090 echo
2091 fi
2092
2093 if test -s confdefs.h; then
2094 printf "%s\n" "## ----------- ##
2095 ## confdefs.h. ##
2096 ## ----------- ##"
2097 echo
2098 cat confdefs.h
2099 echo
2100 fi
2101 test "$ac_signal" != 0 &&
2102 printf "%s\n" "$as_me: caught signal $ac_signal"
2103 printf "%s\n" "$as_me: exit $exit_status"
2104 } >&5
2105 rm -f core *.core core.conftest.* &&
2106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2107 exit $exit_status
2108 ' 0
2109 for ac_signal in 1 2 13 15; do
2110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2111 done
2112 ac_signal=0
2113
2114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2115 rm -f -r conftest* confdefs.h
2116
2117 printf "%s\n" "/* confdefs.h */" > confdefs.h
2118
2119 # Predefined preprocessor variables.
2120
2121 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2122
2123 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2124
2125 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2126
2127 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2128
2129 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2130
2131 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2132
2133
2134 # Let the site file select an alternate cache file if it wants to.
2135 # Prefer an explicitly selected file to automatically selected ones.
2136 if test -n "$CONFIG_SITE"; then
2137 ac_site_files="$CONFIG_SITE"
2138 elif test "x$prefix" != xNONE; then
2139 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2140 else
2141 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2142 fi
2143
2144 for ac_site_file in $ac_site_files
2145 do
2146 case $ac_site_file in #(
2147 */*) :
2148 ;; #(
2149 *) :
2150 ac_site_file=./$ac_site_file ;;
2151 esac
2152 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2155 sed 's/^/| /' "$ac_site_file" >&5
2156 . "$ac_site_file" \
2157 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2158 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2159 as_fn_error $? "failed to load site script $ac_site_file
2160 See 'config.log' for more details" "$LINENO" 5; }
2161 fi
2162 done
2163
2164 if test -r "$cache_file"; then
2165 # Some versions of bash will fail to source /dev/null (special files
2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2170 case $cache_file in
2171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172 *) . "./$cache_file";;
2173 esac
2174 fi
2175 else
2176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2178 >$cache_file
2179 fi
2180
2181 # Test code for whether the C compiler supports C89 (global declarations)
2182 ac_c_conftest_c89_globals='
2183 /* Does the compiler advertise C89 conformance?
2184 Do not test the value of __STDC__, because some compilers set it to 0
2185 while being otherwise adequately conformant. */
2186 #if !defined __STDC__
2187 # error "Compiler does not advertise C89 conformance"
2188 #endif
2189
2190 #include <stddef.h>
2191 #include <stdarg.h>
2192 struct stat;
2193 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2194 struct buf { int x; };
2195 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2196 static char *e (char **p, int i)
2197 {
2198 return p[i];
2199 }
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2201 {
2202 char *s;
2203 va_list v;
2204 va_start (v,p);
2205 s = g (p, va_arg (v,int));
2206 va_end (v);
2207 return s;
2208 }
2209
2210 /* C89 style stringification. */
2211 #define noexpand_stringify(a) #a
2212 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2213
2214 /* C89 style token pasting. Exercises some of the corner cases that
2215 e.g. old MSVC gets wrong, but not very hard. */
2216 #define noexpand_concat(a,b) a##b
2217 #define expand_concat(a,b) noexpand_concat(a,b)
2218 extern int vA;
2219 extern int vbee;
2220 #define aye A
2221 #define bee B
2222 int *pvA = &expand_concat(v,aye);
2223 int *pvbee = &noexpand_concat(v,bee);
2224
2225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2226 function prototypes and stuff, but not \xHH hex character constants.
2227 These do not provoke an error unfortunately, instead are silently treated
2228 as an "x". The following induces an error, until -std is added to get
2229 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2230 array size at least. It is necessary to write \x00 == 0 to get something
2231 that is true only with -std. */
2232 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2233
2234 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2235 inside strings and character constants. */
2236 #define FOO(x) '\''x'\''
2237 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2238
2239 int test (int i, double x);
2240 struct s1 {int (*f) (int a);};
2241 struct s2 {int (*f) (double a);};
2242 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2243 int, int);'
2244
2245 # Test code for whether the C compiler supports C89 (body of main).
2246 ac_c_conftest_c89_main='
2247 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2248 '
2249
2250 # Test code for whether the C compiler supports C99 (global declarations)
2251 ac_c_conftest_c99_globals='
2252 /* Does the compiler advertise C99 conformance? */
2253 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2254 # error "Compiler does not advertise C99 conformance"
2255 #endif
2256
2257 // See if C++-style comments work.
2258
2259 #include <stdbool.h>
2260 extern int puts (const char *);
2261 extern int printf (const char *, ...);
2262 extern int dprintf (int, const char *, ...);
2263 extern void *malloc (size_t);
2264 extern void free (void *);
2265
2266 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2267 // dprintf is used instead of fprintf to avoid needing to declare
2268 // FILE and stderr.
2269 #define debug(...) dprintf (2, __VA_ARGS__)
2270 #define showlist(...) puts (#__VA_ARGS__)
2271 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2272 static void
2273 test_varargs_macros (void)
2274 {
2275 int x = 1234;
2276 int y = 5678;
2277 debug ("Flag");
2278 debug ("X = %d\n", x);
2279 showlist (The first, second, and third items.);
2280 report (x>y, "x is %d but y is %d", x, y);
2281 }
2282
2283 // Check long long types.
2284 #define BIG64 18446744073709551615ull
2285 #define BIG32 4294967295ul
2286 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2287 #if !BIG_OK
2288 #error "your preprocessor is broken"
2289 #endif
2290 #if BIG_OK
2291 #else
2292 #error "your preprocessor is broken"
2293 #endif
2294 static long long int bignum = -9223372036854775807LL;
2295 static unsigned long long int ubignum = BIG64;
2296
2297 struct incomplete_array
2298 {
2299 int datasize;
2300 double data[];
2301 };
2302
2303 struct named_init {
2304 int number;
2305 const wchar_t *name;
2306 double average;
2307 };
2308
2309 typedef const char *ccp;
2310
2311 static inline int
2312 test_restrict (ccp restrict text)
2313 {
2314 // Iterate through items via the restricted pointer.
2315 // Also check for declarations in for loops.
2316 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2317 continue;
2318 return 0;
2319 }
2320
2321 // Check varargs and va_copy.
2322 static bool
2323 test_varargs (const char *format, ...)
2324 {
2325 va_list args;
2326 va_start (args, format);
2327 va_list args_copy;
2328 va_copy (args_copy, args);
2329
2330 const char *str = "";
2331 int number = 0;
2332 float fnumber = 0;
2333
2334 while (*format)
2335 {
2336 switch (*format++)
2337 {
2338 case '\''s'\'': // string
2339 str = va_arg (args_copy, const char *);
2340 break;
2341 case '\''d'\'': // int
2342 number = va_arg (args_copy, int);
2343 break;
2344 case '\''f'\'': // float
2345 fnumber = va_arg (args_copy, double);
2346 break;
2347 default:
2348 break;
2349 }
2350 }
2351 va_end (args_copy);
2352 va_end (args);
2353
2354 return *str && number && fnumber;
2355 }
2356 '
2357
2358 # Test code for whether the C compiler supports C99 (body of main).
2359 ac_c_conftest_c99_main='
2360 // Check bool.
2361 _Bool success = false;
2362 success |= (argc != 0);
2363
2364 // Check restrict.
2365 if (test_restrict ("String literal") == 0)
2366 success = true;
2367 char *restrict newvar = "Another string";
2368
2369 // Check varargs.
2370 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2371 test_varargs_macros ();
2372
2373 // Check flexible array members.
2374 struct incomplete_array *ia =
2375 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2376 ia->datasize = 10;
2377 for (int i = 0; i < ia->datasize; ++i)
2378 ia->data[i] = i * 1.234;
2379 // Work around memory leak warnings.
2380 free (ia);
2381
2382 // Check named initializers.
2383 struct named_init ni = {
2384 .number = 34,
2385 .name = L"Test wide string",
2386 .average = 543.34343,
2387 };
2388
2389 ni.number = 58;
2390
2391 int dynamic_array[ni.number];
2392 dynamic_array[0] = argv[0][0];
2393 dynamic_array[ni.number - 1] = 543;
2394
2395 // work around unused variable warnings
2396 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2397 || dynamic_array[ni.number - 1] != 543);
2398 '
2399
2400 # Test code for whether the C compiler supports C11 (global declarations)
2401 ac_c_conftest_c11_globals='
2402 /* Does the compiler advertise C11 conformance? */
2403 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2404 # error "Compiler does not advertise C11 conformance"
2405 #endif
2406
2407 // Check _Alignas.
2408 char _Alignas (double) aligned_as_double;
2409 char _Alignas (0) no_special_alignment;
2410 extern char aligned_as_int;
2411 char _Alignas (0) _Alignas (int) aligned_as_int;
2412
2413 // Check _Alignof.
2414 enum
2415 {
2416 int_alignment = _Alignof (int),
2417 int_array_alignment = _Alignof (int[100]),
2418 char_alignment = _Alignof (char)
2419 };
2420 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2421
2422 // Check _Noreturn.
2423 int _Noreturn does_not_return (void) { for (;;) continue; }
2424
2425 // Check _Static_assert.
2426 struct test_static_assert
2427 {
2428 int x;
2429 _Static_assert (sizeof (int) <= sizeof (long int),
2430 "_Static_assert does not work in struct");
2431 long int y;
2432 };
2433
2434 // Check UTF-8 literals.
2435 #define u8 syntax error!
2436 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2437
2438 // Check duplicate typedefs.
2439 typedef long *long_ptr;
2440 typedef long int *long_ptr;
2441 typedef long_ptr long_ptr;
2442
2443 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2444 struct anonymous
2445 {
2446 union {
2447 struct { int i; int j; };
2448 struct { int k; long int l; } w;
2449 };
2450 int m;
2451 } v1;
2452 '
2453
2454 # Test code for whether the C compiler supports C11 (body of main).
2455 ac_c_conftest_c11_main='
2456 _Static_assert ((offsetof (struct anonymous, i)
2457 == offsetof (struct anonymous, w.k)),
2458 "Anonymous union alignment botch");
2459 v1.i = 2;
2460 v1.w.k = 5;
2461 ok |= v1.i != 5;
2462 '
2463
2464 # Test code for whether the C compiler supports C11 (complete).
2465 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2466 ${ac_c_conftest_c99_globals}
2467 ${ac_c_conftest_c11_globals}
2468
2469 int
2470 main (int argc, char **argv)
2471 {
2472 int ok = 0;
2473 ${ac_c_conftest_c89_main}
2474 ${ac_c_conftest_c99_main}
2475 ${ac_c_conftest_c11_main}
2476 return ok;
2477 }
2478 "
2479
2480 # Test code for whether the C compiler supports C99 (complete).
2481 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2482 ${ac_c_conftest_c99_globals}
2483
2484 int
2485 main (int argc, char **argv)
2486 {
2487 int ok = 0;
2488 ${ac_c_conftest_c89_main}
2489 ${ac_c_conftest_c99_main}
2490 return ok;
2491 }
2492 "
2493
2494 # Test code for whether the C compiler supports C89 (complete).
2495 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2496
2497 int
2498 main (int argc, char **argv)
2499 {
2500 int ok = 0;
2501 ${ac_c_conftest_c89_main}
2502 return ok;
2503 }
2504 "
2505
2506 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2507 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2508 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2509 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2510 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2511 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2512 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2513 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2514 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2515
2516 # Auxiliary files required by this configure script.
2517 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2518
2519 # Locations in which to look for auxiliary files.
2520 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2521
2522 # Search for a directory containing all of the required auxiliary files,
2523 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2524 # If we don't find one directory that contains all the files we need,
2525 # we report the set of missing files from the *first* directory in
2526 # $ac_aux_dir_candidates and give up.
2527 ac_missing_aux_files=""
2528 ac_first_candidate=:
2529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 as_found=false
2532 for as_dir in $ac_aux_dir_candidates
2533 do
2534 IFS=$as_save_IFS
2535 case $as_dir in #(((
2536 '') as_dir=./ ;;
2537 */) ;;
2538 *) as_dir=$as_dir/ ;;
2539 esac
2540 as_found=:
2541
2542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2543 ac_aux_dir_found=yes
2544 ac_install_sh=
2545 for ac_aux in $ac_aux_files
2546 do
2547 # As a special case, if "install-sh" is required, that requirement
2548 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2549 # and $ac_install_sh is set appropriately for whichever one is found.
2550 if test x"$ac_aux" = x"install-sh"
2551 then
2552 if test -f "${as_dir}install-sh"; then
2553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2554 ac_install_sh="${as_dir}install-sh -c"
2555 elif test -f "${as_dir}install.sh"; then
2556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2557 ac_install_sh="${as_dir}install.sh -c"
2558 elif test -f "${as_dir}shtool"; then
2559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2560 ac_install_sh="${as_dir}shtool install -c"
2561 else
2562 ac_aux_dir_found=no
2563 if $ac_first_candidate; then
2564 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2565 else
2566 break
2567 fi
2568 fi
2569 else
2570 if test -f "${as_dir}${ac_aux}"; then
2571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2572 else
2573 ac_aux_dir_found=no
2574 if $ac_first_candidate; then
2575 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2576 else
2577 break
2578 fi
2579 fi
2580 fi
2581 done
2582 if test "$ac_aux_dir_found" = yes; then
2583 ac_aux_dir="$as_dir"
2584 break
2585 fi
2586 ac_first_candidate=false
2587
2588 as_found=false
2589 done
2590 IFS=$as_save_IFS
2591 if $as_found
2592 then :
2593
2594 else case e in #(
2595 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2596 esac
2597 fi
2598
2599
2600 # These three variables are undocumented and unsupported,
2601 # and are intended to be withdrawn in a future Autoconf release.
2602 # They can cause serious problems if a builder's source tree is in a directory
2603 # whose full name contains unusual characters.
2604 if test -f "${ac_aux_dir}config.guess"; then
2605 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2606 fi
2607 if test -f "${ac_aux_dir}config.sub"; then
2608 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2609 fi
2610 if test -f "$ac_aux_dir/configure"; then
2611 ac_configure="$SHELL ${ac_aux_dir}configure"
2612 fi
2613
2614 # Check that the precious variables saved in the cache have kept the same
2615 # value.
2616 ac_cache_corrupted=false
2617 for ac_var in $ac_precious_vars; do
2618 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2619 eval ac_new_set=\$ac_env_${ac_var}_set
2620 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2621 eval ac_new_val=\$ac_env_${ac_var}_value
2622 case $ac_old_set,$ac_new_set in
2623 set,)
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2625 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2627 ,set)
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2629 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2631 ,);;
2632 *)
2633 if test "x$ac_old_val" != "x$ac_new_val"; then
2634 # differences in whitespace do not lead to failure.
2635 ac_old_val_w=`echo x $ac_old_val`
2636 ac_new_val_w=`echo x $ac_new_val`
2637 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2639 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2640 ac_cache_corrupted=:
2641 else
2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2643 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2644 eval $ac_var=\$ac_old_val
2645 fi
2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2647 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2649 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2650 fi;;
2651 esac
2652 # Pass precious variables to config.status.
2653 if test "$ac_new_set" = set; then
2654 case $ac_new_val in
2655 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2656 *) ac_arg=$ac_var=$ac_new_val ;;
2657 esac
2658 case " $ac_configure_args " in
2659 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2660 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2661 esac
2662 fi
2663 done
2664 if $ac_cache_corrupted; then
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2666 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2668 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2669 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2670 and start over" "$LINENO" 5
2671 fi
2672 ## -------------------- ##
2673 ## Main body of script. ##
2674 ## -------------------- ##
2675
2676 ac_ext=c
2677 ac_cpp='$CPP $CPPFLAGS'
2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681
2682
2683
2684 am__api_version='1.18'
2685
2686
2687
2688 # Find a good install program. We prefer a C program (faster),
2689 # so one script is as good as another. But avoid the broken or
2690 # incompatible versions:
2691 # SysV /etc/install, /usr/sbin/install
2692 # SunOS /usr/etc/install
2693 # IRIX /sbin/install
2694 # AIX /bin/install
2695 # AmigaOS /C/install, which installs bootblocks on floppy discs
2696 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2697 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2698 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2699 # OS/2's system install, which has a completely different semantic
2700 # ./install, which can be erroneously created by make from ./install.sh.
2701 # Reject install programs that cannot install multiple files.
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2703 printf %s "checking for a BSD-compatible install... " >&6; }
2704 if test -z "$INSTALL"; then
2705 if test ${ac_cv_path_install+y}
2706 then :
2707 printf %s "(cached) " >&6
2708 else case e in #(
2709 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 case $as_dir in #(((
2714 '') as_dir=./ ;;
2715 */) ;;
2716 *) as_dir=$as_dir/ ;;
2717 esac
2718 # Account for fact that we put trailing slashes in our PATH walk.
2719 case $as_dir in #((
2720 ./ | /[cC]/* | \
2721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2722 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2723 /usr/ucb/* ) ;;
2724 *)
2725 # OSF1 and SCO ODT 3.0 have their own names for install.
2726 # Don't use installbsd from OSF since it installs stuff as root
2727 # by default.
2728 for ac_prog in ginstall scoinst install; do
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2731 if test $ac_prog = install &&
2732 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733 # AIX install. It has an incompatible calling convention.
2734 :
2735 elif test $ac_prog = install &&
2736 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737 # program-specific install script used by HP pwplus--don't use.
2738 :
2739 else
2740 rm -rf conftest.one conftest.two conftest.dir
2741 echo one > conftest.one
2742 echo two > conftest.two
2743 mkdir conftest.dir
2744 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2745 test -s conftest.one && test -s conftest.two &&
2746 test -s conftest.dir/conftest.one &&
2747 test -s conftest.dir/conftest.two
2748 then
2749 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2750 break 3
2751 fi
2752 fi
2753 fi
2754 done
2755 done
2756 ;;
2757 esac
2758
2759 done
2760 IFS=$as_save_IFS
2761
2762 rm -rf conftest.one conftest.two conftest.dir
2763 ;;
2764 esac
2765 fi
2766 if test ${ac_cv_path_install+y}; then
2767 INSTALL=$ac_cv_path_install
2768 else
2769 # As a last resort, use the slow shell script. Don't cache a
2770 # value for INSTALL within a source directory, because that will
2771 # break other packages using the cache if that directory is
2772 # removed, or if the value is a relative name.
2773 INSTALL=$ac_install_sh
2774 fi
2775 fi
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2777 printf "%s\n" "$INSTALL" >&6; }
2778
2779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2780 # It thinks the first close brace ends the variable substitution.
2781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2782
2783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2784
2785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2786
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2788 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2789 if test ${am_cv_sleep_fractional_seconds+y}
2790 then :
2791 printf %s "(cached) " >&6
2792 else case e in #(
2793 e) if sleep 0.001 2>/dev/null
2794 then :
2795 am_cv_sleep_fractional_seconds=yes
2796 else case e in #(
2797 e) am_cv_sleep_fractional_seconds=no ;;
2798 esac
2799 fi
2800 ;;
2801 esac
2802 fi
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2804 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2805
2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2807 printf %s "checking filesystem timestamp resolution... " >&6; }
2808 if test ${am_cv_filesystem_timestamp_resolution+y}
2809 then :
2810 printf %s "(cached) " >&6
2811 else case e in #(
2812 e) # Default to the worst case.
2813 am_cv_filesystem_timestamp_resolution=2
2814
2815 # Only try to go finer than 1 sec if sleep can do it.
2816 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2817 # - 1 sec is not much of a win compared to 2 sec, and
2818 # - it takes 2 seconds to perform the test whether 1 sec works.
2819 #
2820 # Instead, just use the default 2s on platforms that have 1s resolution,
2821 # accept the extra 1s delay when using $sleep in the Automake tests, in
2822 # exchange for not incurring the 2s delay for running the test for all
2823 # packages.
2824 #
2825 am_try_resolutions=
2826 if test "$am_cv_sleep_fractional_seconds" = yes; then
2827 # Even a millisecond often causes a bunch of false positives,
2828 # so just try a hundredth of a second. The time saved between .001 and
2829 # .01 is not terribly consequential.
2830 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2831 fi
2832
2833 # In order to catch current-generation FAT out, we must *modify* files
2834 # that already exist; the *creation* timestamp is finer. Use names
2835 # that make ls -t sort them differently when they have equal
2836 # timestamps than when they have distinct timestamps, keeping
2837 # in mind that ls -t prints the *newest* file first.
2838 rm -f conftest.ts?
2839 : > conftest.ts1
2840 : > conftest.ts2
2841 : > conftest.ts3
2842
2843 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2844 # clobber the current shell's arguments. (Outer-level square brackets
2845 # are removed by m4; they're present so that m4 does not expand
2846 # <dollar><star>; be careful, easy to get confused.)
2847 if (
2848 set X `ls -t conftest.ts[12]` &&
2849 {
2850 test "$*" != "X conftest.ts1 conftest.ts2" ||
2851 test "$*" != "X conftest.ts2 conftest.ts1";
2852 }
2853 ); then :; else
2854 # If neither matched, then we have a broken ls. This can happen
2855 # if, for instance, CONFIG_SHELL is bash and it inherits a
2856 # broken ls alias from the environment. This has actually
2857 # happened. Such a system could not be considered "sane".
2858 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2859 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2860 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2861 as_fn_error $? "ls -t produces unexpected output.
2862 Make sure there is not a broken ls alias in your environment.
2863 See 'config.log' for more details" "$LINENO" 5; }
2864 fi
2865
2866 for am_try_res in $am_try_resolutions; do
2867 # Any one fine-grained sleep might happen to cross the boundary
2868 # between two values of a coarser actual resolution, but if we do
2869 # two fine-grained sleeps in a row, at least one of them will fall
2870 # entirely within a coarse interval.
2871 echo alpha > conftest.ts1
2872 sleep $am_try_res
2873 echo beta > conftest.ts2
2874 sleep $am_try_res
2875 echo gamma > conftest.ts3
2876
2877 # We assume that 'ls -t' will make use of high-resolution
2878 # timestamps if the operating system supports them at all.
2879 if (set X `ls -t conftest.ts?` &&
2880 test "$2" = conftest.ts3 &&
2881 test "$3" = conftest.ts2 &&
2882 test "$4" = conftest.ts1); then
2883 #
2884 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2885 # because we don't need to test make.
2886 make_ok=true
2887 if test $am_try_res != 1; then
2888 # But if we've succeeded so far with a subsecond resolution, we
2889 # have one more thing to check: make. It can happen that
2890 # everything else supports the subsecond mtimes, but make doesn't;
2891 # notably on macOS, which ships make 3.81 from 2006 (the last one
2892 # released under GPLv2). https://bugs.gnu.org/68808
2893 #
2894 # We test $MAKE if it is defined in the environment, else "make".
2895 # It might get overridden later, but our hope is that in practice
2896 # it does not matter: it is the system "make" which is (by far)
2897 # the most likely to be broken, whereas if the user overrides it,
2898 # probably they did so with a better, or at least not worse, make.
2899 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2900 #
2901 # Create a Makefile (real tab character here):
2902 rm -f conftest.mk
2903 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2904 echo ' touch conftest.ts2' >>conftest.mk
2905 #
2906 # Now, running
2907 # touch conftest.ts1; touch conftest.ts2; make
2908 # should touch ts1 because ts2 is newer. This could happen by luck,
2909 # but most often, it will fail if make's support is insufficient. So
2910 # test for several consecutive successes.
2911 #
2912 # (We reuse conftest.ts[12] because we still want to modify existing
2913 # files, not create new ones, per above.)
2914 n=0
2915 make=${MAKE-make}
2916 until test $n -eq 3; do
2917 echo one > conftest.ts1
2918 sleep $am_try_res
2919 echo two > conftest.ts2 # ts2 should now be newer than ts1
2920 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2921 make_ok=false
2922 break # out of $n loop
2923 fi
2924 n=`expr $n + 1`
2925 done
2926 fi
2927 #
2928 if $make_ok; then
2929 # Everything we know to check worked out, so call this resolution good.
2930 am_cv_filesystem_timestamp_resolution=$am_try_res
2931 break # out of $am_try_res loop
2932 fi
2933 # Otherwise, we'll go on to check the next resolution.
2934 fi
2935 done
2936 rm -f conftest.ts?
2937 # (end _am_filesystem_timestamp_resolution)
2938 ;;
2939 esac
2940 fi
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2942 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2943
2944 # This check should not be cached, as it may vary across builds of
2945 # different projects.
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2947 printf %s "checking whether build environment is sane... " >&6; }
2948 # Reject unsafe characters in $srcdir or the absolute working directory
2949 # name. Accept space and tab only in the latter.
2950 am_lf='
2951 '
2952 case `pwd` in
2953 *[\\\"\#\$\&\'\`$am_lf]*)
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 printf "%s\n" "no" >&6; }
2956 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2957 esac
2958 case $srcdir in
2959 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 printf "%s\n" "no" >&6; }
2962 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2963 esac
2964
2965 # Do 'set' in a subshell so we don't clobber the current shell's
2966 # arguments. Must try -L first in case configure is actually a
2967 # symlink; some systems play weird games with the mod time of symlinks
2968 # (eg FreeBSD returns the mod time of the symlink's containing
2969 # directory).
2970 am_build_env_is_sane=no
2971 am_has_slept=no
2972 rm -f conftest.file
2973 for am_try in 1 2; do
2974 echo "timestamp, slept: $am_has_slept" > conftest.file
2975 if (
2976 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2977 if test "$*" = "X"; then
2978 # -L didn't work.
2979 set X `ls -t "$srcdir/configure" conftest.file`
2980 fi
2981 test "$2" = conftest.file
2982 ); then
2983 am_build_env_is_sane=yes
2984 break
2985 fi
2986 # Just in case.
2987 sleep "$am_cv_filesystem_timestamp_resolution"
2988 am_has_slept=yes
2989 done
2990
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2992 printf "%s\n" "$am_build_env_is_sane" >&6; }
2993 if test "$am_build_env_is_sane" = no; then
2994 as_fn_error $? "newly created file is older than distributed files!
2995 Check your system clock" "$LINENO" 5
2996 fi
2997
2998 # If we didn't sleep, we still need to ensure time stamps of config.status and
2999 # generated files are strictly newer.
3000 am_sleep_pid=
3001 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3002 then :
3003
3004 else case e in #(
3005 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3006 am_sleep_pid=$!
3007 ;;
3008 esac
3009 fi
3010
3011 rm -f conftest.file
3012
3013 test "$program_prefix" != NONE &&
3014 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3015 # Use a double $ so make ignores it.
3016 test "$program_suffix" != NONE &&
3017 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3018 # Double any \ or $.
3019 # By default was 's,x,x', remove it if useless.
3020 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3021 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3022
3023
3024 # Expand $ac_aux_dir to an absolute path.
3025 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3026
3027
3028 if test x"${MISSING+set}" != xset; then
3029 MISSING="\${SHELL} '$am_aux_dir/missing'"
3030 fi
3031 # Use eval to expand $SHELL
3032 if eval "$MISSING --is-lightweight"; then
3033 am_missing_run="$MISSING "
3034 else
3035 am_missing_run=
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3037 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3038 fi
3039
3040 if test x"${install_sh+set}" != xset; then
3041 case $am_aux_dir in
3042 *\ * | *\ *)
3043 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3044 *)
3045 install_sh="\${SHELL} $am_aux_dir/install-sh"
3046 esac
3047 fi
3048
3049 # Installed binaries are usually stripped using 'strip' when the user
3050 # run "make install-strip". However 'strip' might not be the right
3051 # tool to use in cross-compilation environments, therefore Automake
3052 # will honor the 'STRIP' environment variable to overrule this program.
3053 if test "$cross_compiling" != no; then
3054 if test -n "$ac_tool_prefix"; then
3055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}strip; ac_word=$2
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 printf %s "checking for $ac_word... " >&6; }
3059 if test ${ac_cv_prog_STRIP+y}
3060 then :
3061 printf %s "(cached) " >&6
3062 else case e in #(
3063 e) if test -n "$STRIP"; then
3064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069 IFS=$as_save_IFS
3070 case $as_dir in #(((
3071 '') as_dir=./ ;;
3072 */) ;;
3073 *) as_dir=$as_dir/ ;;
3074 esac
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi ;;
3086 esac
3087 fi
3088 STRIP=$ac_cv_prog_STRIP
3089 if test -n "$STRIP"; then
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3091 printf "%s\n" "$STRIP" >&6; }
3092 else
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 printf "%s\n" "no" >&6; }
3095 fi
3096
3097
3098 fi
3099 if test -z "$ac_cv_prog_STRIP"; then
3100 ac_ct_STRIP=$STRIP
3101 # Extract the first word of "strip", so it can be a program name with args.
3102 set dummy strip; ac_word=$2
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 printf %s "checking for $ac_word... " >&6; }
3105 if test ${ac_cv_prog_ac_ct_STRIP+y}
3106 then :
3107 printf %s "(cached) " >&6
3108 else case e in #(
3109 e) if test -n "$ac_ct_STRIP"; then
3110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 case $as_dir in #(((
3117 '') as_dir=./ ;;
3118 */) ;;
3119 *) as_dir=$as_dir/ ;;
3120 esac
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_ac_ct_STRIP="strip"
3124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 fi ;;
3132 esac
3133 fi
3134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3135 if test -n "$ac_ct_STRIP"; then
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3137 printf "%s\n" "$ac_ct_STRIP" >&6; }
3138 else
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 printf "%s\n" "no" >&6; }
3141 fi
3142
3143 if test "x$ac_ct_STRIP" = x; then
3144 STRIP=":"
3145 else
3146 case $cross_compiling:$ac_tool_warned in
3147 yes:)
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3150 ac_tool_warned=yes ;;
3151 esac
3152 STRIP=$ac_ct_STRIP
3153 fi
3154 else
3155 STRIP="$ac_cv_prog_STRIP"
3156 fi
3157
3158 fi
3159 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3160
3161
3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3163 printf %s "checking for a race-free mkdir -p... " >&6; }
3164 if test -z "$MKDIR_P"; then
3165 if test ${ac_cv_path_mkdir+y}
3166 then :
3167 printf %s "(cached) " >&6
3168 else case e in #(
3169 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3171 do
3172 IFS=$as_save_IFS
3173 case $as_dir in #(((
3174 '') as_dir=./ ;;
3175 */) ;;
3176 *) as_dir=$as_dir/ ;;
3177 esac
3178 for ac_prog in mkdir gmkdir; do
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3181 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3182 'mkdir ('*'coreutils) '* | \
3183 *'BusyBox '* | \
3184 'mkdir (fileutils) '4.1*)
3185 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3186 break 3;;
3187 esac
3188 done
3189 done
3190 done
3191 IFS=$as_save_IFS
3192 ;;
3193 esac
3194 fi
3195
3196 test -d ./--version && rmdir ./--version
3197 if test ${ac_cv_path_mkdir+y}; then
3198 MKDIR_P="$ac_cv_path_mkdir -p"
3199 else
3200 # As a last resort, use plain mkdir -p,
3201 # in the hope it doesn't have the bugs of ancient mkdir.
3202 MKDIR_P='mkdir -p'
3203 fi
3204 fi
3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3206 printf "%s\n" "$MKDIR_P" >&6; }
3207
3208 for ac_prog in gawk mawk nawk awk
3209 do
3210 # Extract the first word of "$ac_prog", so it can be a program name with args.
3211 set dummy $ac_prog; ac_word=$2
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 printf %s "checking for $ac_word... " >&6; }
3214 if test ${ac_cv_prog_AWK+y}
3215 then :
3216 printf %s "(cached) " >&6
3217 else case e in #(
3218 e) if test -n "$AWK"; then
3219 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 case $as_dir in #(((
3226 '') as_dir=./ ;;
3227 */) ;;
3228 *) as_dir=$as_dir/ ;;
3229 esac
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_AWK="$ac_prog"
3233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi ;;
3241 esac
3242 fi
3243 AWK=$ac_cv_prog_AWK
3244 if test -n "$AWK"; then
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3246 printf "%s\n" "$AWK" >&6; }
3247 else
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 printf "%s\n" "no" >&6; }
3250 fi
3251
3252
3253 test -n "$AWK" && break
3254 done
3255
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3257 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3258 set x ${MAKE-make}
3259 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3260 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3261 then :
3262 printf %s "(cached) " >&6
3263 else case e in #(
3264 e) cat >conftest.make <<\_ACEOF
3265 SHELL = /bin/sh
3266 all:
3267 @echo '@@@%%%=$(MAKE)=@@@%%%'
3268 _ACEOF
3269 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3270 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3271 *@@@%%%=?*=@@@%%%*)
3272 eval ac_cv_prog_make_${ac_make}_set=yes;;
3273 *)
3274 eval ac_cv_prog_make_${ac_make}_set=no;;
3275 esac
3276 rm -f conftest.make ;;
3277 esac
3278 fi
3279 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 printf "%s\n" "yes" >&6; }
3282 SET_MAKE=
3283 else
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 printf "%s\n" "no" >&6; }
3286 SET_MAKE="MAKE=${MAKE-make}"
3287 fi
3288
3289 rm -rf .tst 2>/dev/null
3290 mkdir .tst 2>/dev/null
3291 if test -d .tst; then
3292 am__leading_dot=.
3293 else
3294 am__leading_dot=_
3295 fi
3296 rmdir .tst 2>/dev/null
3297
3298 AM_DEFAULT_VERBOSITY=1
3299 # Check whether --enable-silent-rules was given.
3300 if test ${enable_silent_rules+y}
3301 then :
3302 enableval=$enable_silent_rules;
3303 fi
3304
3305 am_make=${MAKE-make}
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3307 printf %s "checking whether $am_make supports nested variables... " >&6; }
3308 if test ${am_cv_make_support_nested_variables+y}
3309 then :
3310 printf %s "(cached) " >&6
3311 else case e in #(
3312 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3313 BAR0=false
3314 BAR1=true
3315 V=1
3316 am__doit:
3317 @$(TRUE)
3318 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3319 am_cv_make_support_nested_variables=yes
3320 else
3321 am_cv_make_support_nested_variables=no
3322 fi ;;
3323 esac
3324 fi
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3326 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3327 AM_BACKSLASH='\'
3328
3329 am__rm_f_notfound=
3330 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3331 then :
3332
3333 else case e in #(
3334 e) am__rm_f_notfound='""' ;;
3335 esac
3336 fi
3337
3338
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3340 printf %s "checking xargs -n works... " >&6; }
3341 if test ${am_cv_xargs_n_works+y}
3342 then :
3343 printf %s "(cached) " >&6
3344 else case e in #(
3345 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3346 3"
3347 then :
3348 am_cv_xargs_n_works=yes
3349 else case e in #(
3350 e) am_cv_xargs_n_works=no ;;
3351 esac
3352 fi ;;
3353 esac
3354 fi
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3356 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3357 if test "$am_cv_xargs_n_works" = yes
3358 then :
3359 am__xargs_n='xargs -n'
3360 else case e in #(
3361 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3362 ;;
3363 esac
3364 fi
3365
3366 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3367 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3368 # is not polluted with repeated "-I."
3369 am__isrc=' -I$(srcdir)'
3370 # test to see if srcdir already configured
3371 if test -f $srcdir/config.status; then
3372 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3373 fi
3374 fi
3375
3376 # test whether we have cygpath
3377 if test -z "$CYGPATH_W"; then
3378 if (cygpath --version) >/dev/null 2>/dev/null; then
3379 CYGPATH_W='cygpath -w'
3380 else
3381 CYGPATH_W=echo
3382 fi
3383 fi
3384
3385
3386 # Define the identity of the package.
3387 PACKAGE='avfs'
3388 VERSION='1.3.0'
3389
3390
3391 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3392
3393
3394 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3395
3396 # Some tools Automake needs.
3397
3398 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3399
3400
3401 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3402
3403
3404 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3405
3406
3407 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3408
3409
3410 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3411
3412 # For better backward compatibility. To be removed once Automake 1.9.x
3413 # dies out for good. For more background, see:
3414 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3415 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3416 mkdir_p='$(MKDIR_P)'
3417
3418 # We need awk for the "check" target (and possibly the TAP driver). The
3419 # system "awk" is bad on some platforms.
3420 # Always define AMTAR for backward compatibility. Yes, it's still used
3421 # in the wild :-( We should find a proper way to deprecate it ...
3422 AMTAR='$${TAR-tar}'
3423
3424
3425 # We'll loop over all known methods to create a tar archive until one works.
3426 _am_tools='gnutar plaintar pax cpio none'
3427
3428 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3429 # There is notably a 21 bits limit for the UID and the GID. In fact,
3430 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3431 # and bug#13588).
3432 am_max_uid=2097151 # 2^21 - 1
3433 am_max_gid=$am_max_uid
3434 # The $UID and $GID variables are not portable, so we need to resort
3435 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3436 # below are definitely unexpected, so allow the users to see them
3437 # (that is, avoid stderr redirection).
3438 am_uid=`id -u || echo unknown`
3439 am_gid=`id -g || echo unknown`
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3441 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3442 if test x$am_uid = xunknown; then
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3444 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3445 elif test $am_uid -le $am_max_uid; then
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3447 printf "%s\n" "yes" >&6; }
3448 else
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 printf "%s\n" "no" >&6; }
3451 _am_tools=none
3452 fi
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3454 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3455 if test x$gm_gid = xunknown; then
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3457 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3458 elif test $am_gid -le $am_max_gid; then
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3460 printf "%s\n" "yes" >&6; }
3461 else
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 printf "%s\n" "no" >&6; }
3464 _am_tools=none
3465 fi
3466
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3468 printf %s "checking how to create a ustar tar archive... " >&6; }
3469
3470 # Go ahead even if we have the value already cached. We do so because we
3471 # need to set the values for the 'am__tar' and 'am__untar' variables.
3472 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3473
3474 for _am_tool in $_am_tools; do
3475 case $_am_tool in
3476 gnutar)
3477 for _am_tar in tar gnutar gtar; do
3478 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3479 ($_am_tar --version) >&5 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && break
3483 done
3484 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3485 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3486 am__untar="$_am_tar -xf -"
3487 ;;
3488 plaintar)
3489 # Must skip GNU tar: if it does not support --format= it doesn't create
3490 # ustar tarball either.
3491 (tar --version) >/dev/null 2>&1 && continue
3492 am__tar='tar chf - "$$tardir"'
3493 am__tar_='tar chf - "$tardir"'
3494 am__untar='tar xf -'
3495 ;;
3496 pax)
3497 am__tar='pax -L -x ustar -w "$$tardir"'
3498 am__tar_='pax -L -x ustar -w "$tardir"'
3499 am__untar='pax -r'
3500 ;;
3501 cpio)
3502 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3503 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3504 am__untar='cpio -i -H ustar -d'
3505 ;;
3506 none)
3507 am__tar=false
3508 am__tar_=false
3509 am__untar=false
3510 ;;
3511 esac
3512
3513 # If the value was cached, stop now. We just wanted to have am__tar
3514 # and am__untar set.
3515 test -n "${am_cv_prog_tar_ustar}" && break
3516
3517 # tar/untar a dummy directory, and stop if the command works.
3518 rm -rf conftest.dir
3519 mkdir conftest.dir
3520 echo GrepMe > conftest.dir/file
3521 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3522 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526 rm -rf conftest.dir
3527 if test -s conftest.tar; then
3528 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3529 ($am__untar <conftest.tar) >&5 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }
3533 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3534 (cat conftest.dir/file) >&5 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }
3538 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3539 fi
3540 done
3541 rm -rf conftest.dir
3542
3543 if test ${am_cv_prog_tar_ustar+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else case e in #(
3547 e) am_cv_prog_tar_ustar=$_am_tool ;;
3548 esac
3549 fi
3550
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3552 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3553
3554
3555
3556
3557
3558 # Variables for tags utilities; see am/tags.am
3559 if test -z "$CTAGS"; then
3560 CTAGS=ctags
3561 fi
3562
3563 if test -z "$ETAGS"; then
3564 ETAGS=etags
3565 fi
3566
3567 if test -z "$CSCOPE"; then
3568 CSCOPE=cscope
3569 fi
3570
3571
3572
3573
3574
3575
3576
3577
3578 ac_config_headers="$ac_config_headers include/config.h:config.h.in"
3579
3580
3581
3582
3583
3584
3585
3586 # Make sure we can run config.sub.
3587 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3588 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3589
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3591 printf %s "checking build system type... " >&6; }
3592 if test ${ac_cv_build+y}
3593 then :
3594 printf %s "(cached) " >&6
3595 else case e in #(
3596 e) ac_build_alias=$build_alias
3597 test "x$ac_build_alias" = x &&
3598 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3599 test "x$ac_build_alias" = x &&
3600 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3601 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3602 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3603 ;;
3604 esac
3605 fi
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3607 printf "%s\n" "$ac_cv_build" >&6; }
3608 case $ac_cv_build in
3609 *-*-*) ;;
3610 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3611 esac
3612 build=$ac_cv_build
3613 ac_save_IFS=$IFS; IFS='-'
3614 set x $ac_cv_build
3615 shift
3616 build_cpu=$1
3617 build_vendor=$2
3618 shift; shift
3619 # Remember, the first character of IFS is used to create $*,
3620 # except with old shells:
3621 build_os=$*
3622 IFS=$ac_save_IFS
3623 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3624
3625
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3627 printf %s "checking host system type... " >&6; }
3628 if test ${ac_cv_host+y}
3629 then :
3630 printf %s "(cached) " >&6
3631 else case e in #(
3632 e) if test "x$host_alias" = x; then
3633 ac_cv_host=$ac_cv_build
3634 else
3635 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3636 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3637 fi
3638 ;;
3639 esac
3640 fi
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3642 printf "%s\n" "$ac_cv_host" >&6; }
3643 case $ac_cv_host in
3644 *-*-*) ;;
3645 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3646 esac
3647 host=$ac_cv_host
3648 ac_save_IFS=$IFS; IFS='-'
3649 set x $ac_cv_host
3650 shift
3651 host_cpu=$1
3652 host_vendor=$2
3653 shift; shift
3654 # Remember, the first character of IFS is used to create $*,
3655 # except with old shells:
3656 host_os=$*
3657 IFS=$ac_save_IFS
3658 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3659
3660
3661
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if configuration is valid" >&5
3663 printf %s "checking if configuration is valid... " >&6; }
3664 if test ${szm_cv_host_system+y}
3665 then :
3666 printf %s "(cached) " >&6
3667 else case e in #(
3668 e) szm_cv_host_system=$host ;;
3669 esac
3670 fi
3671
3672 if test "$host" = "$szm_cv_host_system"; then
3673 validstring="valid"
3674 else
3675 validstring="invalid"
3676 fi
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $validstring" >&5
3678 printf "%s\n" "$validstring" >&6; }
3679 if test "$validstring" = invalid; then
3680 as_fn_error $? "type 'make realclean' before running configure" "$LINENO" 5
3681 fi
3682
3683 VERSION=1.3.0
3684
3685
3686 NUMVERSION=130
3687
3688
3689 os=`uname -s`
3690 kernver=`uname -r | sed -n 's/\([0-9]\+\)\.\([0-9]\+\)\..*/\1\2/p'`
3691 if test -z "$kernver"; then
3692 kernver="0"
3693 fi
3694
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared library and/or fuse daemon" >&5
3696 printf %s "checking whether to build shared library and/or fuse daemon... " >&6; }
3697
3698 shared=yes
3699 if test "$os" = "Linux"; then
3700 fuse=yes
3701 fi
3702
3703 # Check whether --enable-library was given.
3704 if test ${enable_library+y}
3705 then :
3706 enableval=$enable_library; if test "$enableval" = yes; then shared=yes; else shared=no; fi
3707 fi
3708
3709
3710 # Check whether --enable-fuse was given.
3711 if test ${enable_fuse+y}
3712 then :
3713 enableval=$enable_fuse; if test "$enableval" = yes; then fuse=yes; else fuse=no; fi
3714 fi
3715
3716
3717 shared_build=no
3718 fuse_build=no
3719 build_result=
3720
3721 if test "$shared" = yes; then
3722 shared_build=yes
3723 if test -z "$build_result"; then
3724 build_result=shared
3725 else
3726 build_result="$build_result shared"
3727 fi
3728 fi
3729 if test "$fuse" = yes; then
3730 fuse_build=yes
3731 if test -z "$build_result"; then
3732 build_result=fuse
3733 else
3734 build_result="$build_result fuse"
3735 fi
3736 fi
3737
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_result" >&5
3739 printf "%s\n" "$build_result" >&6; }
3740
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
3742 printf %s "checking whether debugging is enabled... " >&6; }
3743 # Check whether --enable-debug was given.
3744 if test ${enable_debug+y}
3745 then :
3746 enableval=$enable_debug; if test "$enableval" = yes; then debugmode=yes; else debugmode=no; fi
3747 else case e in #(
3748 e) debugmode=yes ;;
3749 esac
3750 fi
3751
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $debugmode" >&5
3753 printf "%s\n" "$debugmode" >&6; }
3754
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether building the dav module is enabled" >&5
3756 printf %s "checking whether building the dav module is enabled... " >&6; }
3757 # Check whether --enable-dav was given.
3758 if test ${enable_dav+y}
3759 then :
3760 enableval=$enable_dav; if test "$enableval" = yes; then dav=yes; else dav=no; fi
3761 else case e in #(
3762 e) dav=yes ;;
3763 esac
3764 fi
3765
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dav" >&5
3767 printf "%s\n" "$dav" >&6; }
3768
3769
3770 # Check whether --with-system-zlib was given.
3771 if test ${with_system_zlib+y}
3772 then :
3773 withval=$with_system_zlib; if test "$withval" = yes; then use_system_zlib=yes; else use_system_zlib=no; fi
3774 else case e in #(
3775 e) use_system_zlib=yes ;;
3776 esac
3777 fi
3778
3779
3780 if test "$use_system_zlib" = yes; then
3781
3782
3783
3784
3785
3786
3787
3788 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3789 if test -n "$ac_tool_prefix"; then
3790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3791 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 printf %s "checking for $ac_word... " >&6; }
3794 if test ${ac_cv_path_PKG_CONFIG+y}
3795 then :
3796 printf %s "(cached) " >&6
3797 else case e in #(
3798 e) case $PKG_CONFIG in
3799 [\\/]* | ?:[\\/]*)
3800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3801 ;;
3802 *)
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 case $as_dir in #(((
3808 '') as_dir=./ ;;
3809 */) ;;
3810 *) as_dir=$as_dir/ ;;
3811 esac
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3814 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818 done
3819 done
3820 IFS=$as_save_IFS
3821
3822 ;;
3823 esac ;;
3824 esac
3825 fi
3826 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3827 if test -n "$PKG_CONFIG"; then
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3829 printf "%s\n" "$PKG_CONFIG" >&6; }
3830 else
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 printf "%s\n" "no" >&6; }
3833 fi
3834
3835
3836 fi
3837 if test -z "$ac_cv_path_PKG_CONFIG"; then
3838 ac_pt_PKG_CONFIG=$PKG_CONFIG
3839 # Extract the first word of "pkg-config", so it can be a program name with args.
3840 set dummy pkg-config; ac_word=$2
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 printf %s "checking for $ac_word... " >&6; }
3843 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
3844 then :
3845 printf %s "(cached) " >&6
3846 else case e in #(
3847 e) case $ac_pt_PKG_CONFIG in
3848 [\\/]* | ?:[\\/]*)
3849 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3850 ;;
3851 *)
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855 IFS=$as_save_IFS
3856 case $as_dir in #(((
3857 '') as_dir=./ ;;
3858 */) ;;
3859 *) as_dir=$as_dir/ ;;
3860 esac
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3863 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3865 break 2
3866 fi
3867 done
3868 done
3869 IFS=$as_save_IFS
3870
3871 ;;
3872 esac ;;
3873 esac
3874 fi
3875 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3876 if test -n "$ac_pt_PKG_CONFIG"; then
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3878 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
3879 else
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 printf "%s\n" "no" >&6; }
3882 fi
3883
3884 if test "x$ac_pt_PKG_CONFIG" = x; then
3885 PKG_CONFIG=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893 PKG_CONFIG=$ac_pt_PKG_CONFIG
3894 fi
3895 else
3896 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3897 fi
3898
3899 fi
3900 if test -n "$PKG_CONFIG"; then
3901 _pkg_min_version=0.9.0
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3903 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3904 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3906 printf "%s\n" "yes" >&6; }
3907 else
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 printf "%s\n" "no" >&6; }
3910 PKG_CONFIG=""
3911 fi
3912 fi
3913 if test -z "$PKG_CONFIG"; then
3914 as_fn_error $? "pkg-config not found" "$LINENO" 5
3915 fi
3916 if test -n "$PKG_CONFIG" && \
3917 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
3918 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
3919 ac_status=$?
3920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; then
3922
3923
3924 pkg_failed=no
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.3" >&5
3926 printf %s "checking for zlib >= 1.2.3... " >&6; }
3927
3928 if test -n "$LIBZLIB_CFLAGS"; then
3929 pkg_cv_LIBZLIB_CFLAGS="$LIBZLIB_CFLAGS"
3930 elif test -n "$PKG_CONFIG"; then
3931 if test -n "$PKG_CONFIG" && \
3932 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
3933 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
3934 ac_status=$?
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }; then
3937 pkg_cv_LIBZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.3" 2>/dev/null`
3938 test "x$?" != "x0" && pkg_failed=yes
3939 else
3940 pkg_failed=yes
3941 fi
3942 else
3943 pkg_failed=untried
3944 fi
3945 if test -n "$LIBZLIB_LIBS"; then
3946 pkg_cv_LIBZLIB_LIBS="$LIBZLIB_LIBS"
3947 elif test -n "$PKG_CONFIG"; then
3948 if test -n "$PKG_CONFIG" && \
3949 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
3950 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
3951 ac_status=$?
3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }; then
3954 pkg_cv_LIBZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.3" 2>/dev/null`
3955 test "x$?" != "x0" && pkg_failed=yes
3956 else
3957 pkg_failed=yes
3958 fi
3959 else
3960 pkg_failed=untried
3961 fi
3962
3963
3964
3965 if test $pkg_failed = yes; then
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 printf "%s\n" "no" >&6; }
3968
3969 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3970 _pkg_short_errors_supported=yes
3971 else
3972 _pkg_short_errors_supported=no
3973 fi
3974 if test $_pkg_short_errors_supported = yes; then
3975 LIBZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
3976 else
3977 LIBZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
3978 fi
3979 # Put the nasty error message in config.log where it belongs
3980 echo "$LIBZLIB_PKG_ERRORS" >&5
3981
3982 use_system_zlib=no
3983 elif test $pkg_failed = untried; then
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 printf "%s\n" "no" >&6; }
3986 use_system_zlib=no
3987 else
3988 LIBZLIB_CFLAGS=$pkg_cv_LIBZLIB_CFLAGS
3989 LIBZLIB_LIBS=$pkg_cv_LIBZLIB_LIBS
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991 printf "%s\n" "yes" >&6; }
3992
3993 fi
3994
3995 fi
3996 fi
3997
3998 if test x$use_system_zlib = xyes; then
3999 USE_SYSTEM_ZLIB_TRUE=
4000 USE_SYSTEM_ZLIB_FALSE='#'
4001 else
4002 USE_SYSTEM_ZLIB_TRUE='#'
4003 USE_SYSTEM_ZLIB_FALSE=
4004 fi
4005
4006 if test x$use_system_zlib = xyes; then
4007
4008 printf "%s\n" "#define USE_SYSTEM_ZLIB 1" >>confdefs.h
4009
4010 LIBZ=-lz
4011 ZLIB_INCLUDE=
4012 else
4013 LIBZ=../zlib/libzlib.la
4014 ZLIB_INCLUDE='-I$(top_srcdir)/zlib'
4015 fi
4016
4017
4018
4019
4020 # Check whether --with-system-bzlib was given.
4021 if test ${with_system_bzlib+y}
4022 then :
4023 withval=$with_system_bzlib; if test "$withval" = yes; then use_system_bzlib=yes; else use_system_bzlib=no; fi
4024 else case e in #(
4025 e) use_system_bzlib=no ;;
4026 esac
4027 fi
4028
4029 if test x$use_system_bzlib = xyes; then
4030 USE_SYSTEM_BZLIB_TRUE=
4031 USE_SYSTEM_BZLIB_FALSE='#'
4032 else
4033 USE_SYSTEM_BZLIB_TRUE='#'
4034 USE_SYSTEM_BZLIB_FALSE=
4035 fi
4036
4037 if test x$use_system_bzlib = xyes; then
4038
4039 printf "%s\n" "#define USE_SYSTEM_BZLIB 1" >>confdefs.h
4040
4041 LIBBZ2=-lbz2
4042 BZLIB_INCLUDE=
4043 else
4044 LIBBZ2=../bzlib/libbz.la
4045 BZLIB_INCLUDE='-I$(top_srcdir)/bzlib'
4046 fi
4047
4048
4049
4050
4051 # Check whether --with-pkgconfigdir was given.
4052 if test ${with_pkgconfigdir+y}
4053 then :
4054 withval=$with_pkgconfigdir; pkgconfigdir=$withval
4055 else case e in #(
4056 e) pkgconfigdir='${libdir}/pkgconfig' ;;
4057 esac
4058 fi
4059
4060
4061
4062 cflags="$CFLAGS"
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 printf %s "checking for $ac_word... " >&6; }
4082 if test ${ac_cv_prog_CC+y}
4083 then :
4084 printf %s "(cached) " >&6
4085 else case e in #(
4086 e) if test -n "$CC"; then
4087 ac_cv_prog_CC="$CC" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092 IFS=$as_save_IFS
4093 case $as_dir in #(((
4094 '') as_dir=./ ;;
4095 */) ;;
4096 *) as_dir=$as_dir/ ;;
4097 esac
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104 done
4105 done
4106 IFS=$as_save_IFS
4107
4108 fi ;;
4109 esac
4110 fi
4111 CC=$ac_cv_prog_CC
4112 if test -n "$CC"; then
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 printf "%s\n" "$CC" >&6; }
4115 else
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 printf "%s\n" "no" >&6; }
4118 fi
4119
4120
4121 fi
4122 if test -z "$ac_cv_prog_CC"; then
4123 ac_ct_CC=$CC
4124 # Extract the first word of "gcc", so it can be a program name with args.
4125 set dummy gcc; ac_word=$2
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 printf %s "checking for $ac_word... " >&6; }
4128 if test ${ac_cv_prog_ac_ct_CC+y}
4129 then :
4130 printf %s "(cached) " >&6
4131 else case e in #(
4132 e) if test -n "$ac_ct_CC"; then
4133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 case $as_dir in #(((
4140 '') as_dir=./ ;;
4141 */) ;;
4142 *) as_dir=$as_dir/ ;;
4143 esac
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_ac_ct_CC="gcc"
4147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150 done
4151 done
4152 IFS=$as_save_IFS
4153
4154 fi ;;
4155 esac
4156 fi
4157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4158 if test -n "$ac_ct_CC"; then
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4160 printf "%s\n" "$ac_ct_CC" >&6; }
4161 else
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 printf "%s\n" "no" >&6; }
4164 fi
4165
4166 if test "x$ac_ct_CC" = x; then
4167 CC=""
4168 else
4169 case $cross_compiling:$ac_tool_warned in
4170 yes:)
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4172 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4173 ac_tool_warned=yes ;;
4174 esac
4175 CC=$ac_ct_CC
4176 fi
4177 else
4178 CC="$ac_cv_prog_CC"
4179 fi
4180
4181 if test -z "$CC"; then
4182 if test -n "$ac_tool_prefix"; then
4183 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4184 set dummy ${ac_tool_prefix}cc; ac_word=$2
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 printf %s "checking for $ac_word... " >&6; }
4187 if test ${ac_cv_prog_CC+y}
4188 then :
4189 printf %s "(cached) " >&6
4190 else case e in #(
4191 e) if test -n "$CC"; then
4192 ac_cv_prog_CC="$CC" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197 IFS=$as_save_IFS
4198 case $as_dir in #(((
4199 '') as_dir=./ ;;
4200 */) ;;
4201 *) as_dir=$as_dir/ ;;
4202 esac
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_CC="${ac_tool_prefix}cc"
4206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 fi ;;
4214 esac
4215 fi
4216 CC=$ac_cv_prog_CC
4217 if test -n "$CC"; then
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219 printf "%s\n" "$CC" >&6; }
4220 else
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 printf "%s\n" "no" >&6; }
4223 fi
4224
4225
4226 fi
4227 fi
4228 if test -z "$CC"; then
4229 # Extract the first word of "cc", so it can be a program name with args.
4230 set dummy cc; ac_word=$2
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 printf %s "checking for $ac_word... " >&6; }
4233 if test ${ac_cv_prog_CC+y}
4234 then :
4235 printf %s "(cached) " >&6
4236 else case e in #(
4237 e) if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239 else
4240 ac_prog_rejected=no
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 case $as_dir in #(((
4246 '') as_dir=./ ;;
4247 */) ;;
4248 *) as_dir=$as_dir/ ;;
4249 esac
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4252 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4253 ac_prog_rejected=yes
4254 continue
4255 fi
4256 ac_cv_prog_CC="cc"
4257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260 done
4261 done
4262 IFS=$as_save_IFS
4263
4264 if test $ac_prog_rejected = yes; then
4265 # We found a bogon in the path, so make sure we never use it.
4266 set dummy $ac_cv_prog_CC
4267 shift
4268 if test $# != 0; then
4269 # We chose a different compiler from the bogus one.
4270 # However, it has the same basename, so the bogon will be chosen
4271 # first if we set CC to just the basename; use the full file name.
4272 shift
4273 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4274 fi
4275 fi
4276 fi ;;
4277 esac
4278 fi
4279 CC=$ac_cv_prog_CC
4280 if test -n "$CC"; then
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4282 printf "%s\n" "$CC" >&6; }
4283 else
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 printf "%s\n" "no" >&6; }
4286 fi
4287
4288
4289 fi
4290 if test -z "$CC"; then
4291 if test -n "$ac_tool_prefix"; then
4292 for ac_prog in cl.exe
4293 do
4294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 printf %s "checking for $ac_word... " >&6; }
4298 if test ${ac_cv_prog_CC+y}
4299 then :
4300 printf %s "(cached) " >&6
4301 else case e in #(
4302 e) if test -n "$CC"; then
4303 ac_cv_prog_CC="$CC" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 case $as_dir in #(((
4310 '') as_dir=./ ;;
4311 */) ;;
4312 *) as_dir=$as_dir/ ;;
4313 esac
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320 done
4321 done
4322 IFS=$as_save_IFS
4323
4324 fi ;;
4325 esac
4326 fi
4327 CC=$ac_cv_prog_CC
4328 if test -n "$CC"; then
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4330 printf "%s\n" "$CC" >&6; }
4331 else
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 printf "%s\n" "no" >&6; }
4334 fi
4335
4336
4337 test -n "$CC" && break
4338 done
4339 fi
4340 if test -z "$CC"; then
4341 ac_ct_CC=$CC
4342 for ac_prog in cl.exe
4343 do
4344 # Extract the first word of "$ac_prog", so it can be a program name with args.
4345 set dummy $ac_prog; ac_word=$2
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 printf %s "checking for $ac_word... " >&6; }
4348 if test ${ac_cv_prog_ac_ct_CC+y}
4349 then :
4350 printf %s "(cached) " >&6
4351 else case e in #(
4352 e) if test -n "$ac_ct_CC"; then
4353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358 IFS=$as_save_IFS
4359 case $as_dir in #(((
4360 '') as_dir=./ ;;
4361 */) ;;
4362 *) as_dir=$as_dir/ ;;
4363 esac
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_ac_ct_CC="$ac_prog"
4367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4373
4374 fi ;;
4375 esac
4376 fi
4377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4378 if test -n "$ac_ct_CC"; then
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4380 printf "%s\n" "$ac_ct_CC" >&6; }
4381 else
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 printf "%s\n" "no" >&6; }
4384 fi
4385
4386
4387 test -n "$ac_ct_CC" && break
4388 done
4389
4390 if test "x$ac_ct_CC" = x; then
4391 CC=""
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4398 esac
4399 CC=$ac_ct_CC
4400 fi
4401 fi
4402
4403 fi
4404 if test -z "$CC"; then
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4407 set dummy ${ac_tool_prefix}clang; ac_word=$2
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 printf %s "checking for $ac_word... " >&6; }
4410 if test ${ac_cv_prog_CC+y}
4411 then :
4412 printf %s "(cached) " >&6
4413 else case e in #(
4414 e) if test -n "$CC"; then
4415 ac_cv_prog_CC="$CC" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 case $as_dir in #(((
4422 '') as_dir=./ ;;
4423 */) ;;
4424 *) as_dir=$as_dir/ ;;
4425 esac
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_CC="${ac_tool_prefix}clang"
4429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 fi ;;
4437 esac
4438 fi
4439 CC=$ac_cv_prog_CC
4440 if test -n "$CC"; then
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4442 printf "%s\n" "$CC" >&6; }
4443 else
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 printf "%s\n" "no" >&6; }
4446 fi
4447
4448
4449 fi
4450 if test -z "$ac_cv_prog_CC"; then
4451 ac_ct_CC=$CC
4452 # Extract the first word of "clang", so it can be a program name with args.
4453 set dummy clang; ac_word=$2
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 printf %s "checking for $ac_word... " >&6; }
4456 if test ${ac_cv_prog_ac_ct_CC+y}
4457 then :
4458 printf %s "(cached) " >&6
4459 else case e in #(
4460 e) if test -n "$ac_ct_CC"; then
4461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466 IFS=$as_save_IFS
4467 case $as_dir in #(((
4468 '') as_dir=./ ;;
4469 */) ;;
4470 *) as_dir=$as_dir/ ;;
4471 esac
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4474 ac_cv_prog_ac_ct_CC="clang"
4475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4476 break 2
4477 fi
4478 done
4479 done
4480 IFS=$as_save_IFS
4481
4482 fi ;;
4483 esac
4484 fi
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4488 printf "%s\n" "$ac_ct_CC" >&6; }
4489 else
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 printf "%s\n" "no" >&6; }
4492 fi
4493
4494 if test "x$ac_ct_CC" = x; then
4495 CC=""
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501 ac_tool_warned=yes ;;
4502 esac
4503 CC=$ac_ct_CC
4504 fi
4505 else
4506 CC="$ac_cv_prog_CC"
4507 fi
4508
4509 fi
4510
4511
4512 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4513 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4514 as_fn_error $? "no acceptable C compiler found in \$PATH
4515 See 'config.log' for more details" "$LINENO" 5; }
4516
4517 # Provide some information about the compiler.
4518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4519 set X $ac_compile
4520 ac_compiler=$2
4521 for ac_option in --version -v -V -qversion -version; do
4522 { { ac_try="$ac_compiler $ac_option >&5"
4523 case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 printf "%s\n" "$ac_try_echo"; } >&5
4529 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4530 ac_status=$?
4531 if test -s conftest.err; then
4532 sed '10a\
4533 ... rest of stderr output deleted ...
4534 10q' conftest.err >conftest.er1
4535 cat conftest.er1 >&5
4536 fi
4537 rm -f conftest.er1 conftest.err
4538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539 test $ac_status = 0; }
4540 done
4541
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544
4545 int
4546 main (void)
4547 {
4548
4549 ;
4550 return 0;
4551 }
4552 _ACEOF
4553 ac_clean_files_save=$ac_clean_files
4554 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4555 # Try to create an executable without -o first, disregard a.out.
4556 # It will help us diagnose broken compilers, and finding out an intuition
4557 # of exeext.
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4559 printf %s "checking whether the C compiler works... " >&6; }
4560 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4561
4562 # The possible output files:
4563 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4564
4565 ac_rmfiles=
4566 for ac_file in $ac_files
4567 do
4568 case $ac_file in
4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4570 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4571 esac
4572 done
4573 rm -f $ac_rmfiles
4574
4575 if { { ac_try="$ac_link_default"
4576 case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 printf "%s\n" "$ac_try_echo"; } >&5
4582 (eval "$ac_link_default") 2>&5
4583 ac_status=$?
4584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 then :
4587 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4588 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4589 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4590 # so that the user can short-circuit this test for compilers unknown to
4591 # Autoconf.
4592 for ac_file in $ac_files ''
4593 do
4594 test -f "$ac_file" || continue
4595 case $ac_file in
4596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4597 ;;
4598 [ab].out )
4599 # We found the default executable, but exeext='' is most
4600 # certainly right.
4601 break;;
4602 *.* )
4603 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4604 then :; else
4605 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4606 fi
4607 # We set ac_cv_exeext here because the later test for it is not
4608 # safe: cross compilers may not add the suffix if given an '-o'
4609 # argument, so we may need to know it at that point already.
4610 # Even if this section looks crufty: it has the advantage of
4611 # actually working.
4612 break;;
4613 * )
4614 break;;
4615 esac
4616 done
4617 test "$ac_cv_exeext" = no && ac_cv_exeext=
4618
4619 else case e in #(
4620 e) ac_file='' ;;
4621 esac
4622 fi
4623 if test -z "$ac_file"
4624 then :
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 printf "%s\n" "no" >&6; }
4627 printf "%s\n" "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4631 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4632 as_fn_error 77 "C compiler cannot create executables
4633 See 'config.log' for more details" "$LINENO" 5; }
4634 else case e in #(
4635 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4636 printf "%s\n" "yes" >&6; } ;;
4637 esac
4638 fi
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4640 printf %s "checking for C compiler default output file name... " >&6; }
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4642 printf "%s\n" "$ac_file" >&6; }
4643 ac_exeext=$ac_cv_exeext
4644
4645 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4646 ac_clean_files=$ac_clean_files_save
4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4648 printf %s "checking for suffix of executables... " >&6; }
4649 if { { ac_try="$ac_link"
4650 case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653 esac
4654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4655 printf "%s\n" "$ac_try_echo"; } >&5
4656 (eval "$ac_link") 2>&5
4657 ac_status=$?
4658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659 test $ac_status = 0; }
4660 then :
4661 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4662 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4663 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4664 # 'rm'.
4665 for ac_file in conftest.exe conftest conftest.*; do
4666 test -f "$ac_file" || continue
4667 case $ac_file in
4668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4670 break;;
4671 * ) break;;
4672 esac
4673 done
4674 else case e in #(
4675 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4676 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4677 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4678 See 'config.log' for more details" "$LINENO" 5; } ;;
4679 esac
4680 fi
4681 rm -f conftest conftest$ac_cv_exeext
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4683 printf "%s\n" "$ac_cv_exeext" >&6; }
4684
4685 rm -f conftest.$ac_ext
4686 EXEEXT=$ac_cv_exeext
4687 ac_exeext=$EXEEXT
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690 #include <stdio.h>
4691 int
4692 main (void)
4693 {
4694 FILE *f = fopen ("conftest.out", "w");
4695 if (!f)
4696 return 1;
4697 return ferror (f) || fclose (f) != 0;
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 ac_clean_files="$ac_clean_files conftest.out"
4704 # Check that the compiler produces executables we can run. If not, either
4705 # the compiler is broken, or we cross compile.
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4707 printf %s "checking whether we are cross compiling... " >&6; }
4708 if test "$cross_compiling" != yes; then
4709 { { ac_try="$ac_link"
4710 case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 printf "%s\n" "$ac_try_echo"; } >&5
4716 (eval "$ac_link") 2>&5
4717 ac_status=$?
4718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719 test $ac_status = 0; }
4720 if { ac_try='./conftest$ac_cv_exeext'
4721 { { case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 printf "%s\n" "$ac_try_echo"; } >&5
4727 (eval "$ac_try") 2>&5
4728 ac_status=$?
4729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }; }; then
4731 cross_compiling=no
4732 else
4733 if test "$cross_compiling" = maybe; then
4734 cross_compiling=yes
4735 else
4736 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4737 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4738 as_fn_error 77 "cannot run C compiled programs.
4739 If you meant to cross compile, use '--host'.
4740 See 'config.log' for more details" "$LINENO" 5; }
4741 fi
4742 fi
4743 fi
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4745 printf "%s\n" "$cross_compiling" >&6; }
4746
4747 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4748 conftest.o conftest.obj conftest.out
4749 ac_clean_files=$ac_clean_files_save
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4751 printf %s "checking for suffix of object files... " >&6; }
4752 if test ${ac_cv_objext+y}
4753 then :
4754 printf %s "(cached) " >&6
4755 else case e in #(
4756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758
4759 int
4760 main (void)
4761 {
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.o conftest.obj
4768 if { { ac_try="$ac_compile"
4769 case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4774 printf "%s\n" "$ac_try_echo"; } >&5
4775 (eval "$ac_compile") 2>&5
4776 ac_status=$?
4777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4778 test $ac_status = 0; }
4779 then :
4780 for ac_file in conftest.o conftest.obj conftest.*; do
4781 test -f "$ac_file" || continue;
4782 case $ac_file in
4783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4784 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4785 break;;
4786 esac
4787 done
4788 else case e in #(
4789 e) printf "%s\n" "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4793 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4794 as_fn_error $? "cannot compute suffix of object files: cannot compile
4795 See 'config.log' for more details" "$LINENO" 5; } ;;
4796 esac
4797 fi
4798 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4799 esac
4800 fi
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4802 printf "%s\n" "$ac_cv_objext" >&6; }
4803 OBJEXT=$ac_cv_objext
4804 ac_objext=$OBJEXT
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4806 printf %s "checking whether the compiler supports GNU C... " >&6; }
4807 if test ${ac_cv_c_compiler_gnu+y}
4808 then :
4809 printf %s "(cached) " >&6
4810 else case e in #(
4811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813
4814 int
4815 main (void)
4816 {
4817 #ifndef __GNUC__
4818 choke me
4819 #endif
4820
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 if ac_fn_c_try_compile "$LINENO"
4826 then :
4827 ac_compiler_gnu=yes
4828 else case e in #(
4829 e) ac_compiler_gnu=no ;;
4830 esac
4831 fi
4832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4834 ;;
4835 esac
4836 fi
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4838 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
4841 if test $ac_compiler_gnu = yes; then
4842 GCC=yes
4843 else
4844 GCC=
4845 fi
4846 ac_test_CFLAGS=${CFLAGS+y}
4847 ac_save_CFLAGS=$CFLAGS
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4849 printf %s "checking whether $CC accepts -g... " >&6; }
4850 if test ${ac_cv_prog_cc_g+y}
4851 then :
4852 printf %s "(cached) " >&6
4853 else case e in #(
4854 e) ac_save_c_werror_flag=$ac_c_werror_flag
4855 ac_c_werror_flag=yes
4856 ac_cv_prog_cc_g=no
4857 CFLAGS="-g"
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860
4861 int
4862 main (void)
4863 {
4864
4865 ;
4866 return 0;
4867 }
4868 _ACEOF
4869 if ac_fn_c_try_compile "$LINENO"
4870 then :
4871 ac_cv_prog_cc_g=yes
4872 else case e in #(
4873 e) CFLAGS=""
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876
4877 int
4878 main (void)
4879 {
4880
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"
4886 then :
4887
4888 else case e in #(
4889 e) ac_c_werror_flag=$ac_save_c_werror_flag
4890 CFLAGS="-g"
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893
4894 int
4895 main (void)
4896 {
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"
4903 then :
4904 ac_cv_prog_cc_g=yes
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4907 esac
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4910 esac
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4913 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4914 esac
4915 fi
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4917 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4918 if test $ac_test_CFLAGS; then
4919 CFLAGS=$ac_save_CFLAGS
4920 elif test $ac_cv_prog_cc_g = yes; then
4921 if test "$GCC" = yes; then
4922 CFLAGS="-g -O2"
4923 else
4924 CFLAGS="-g"
4925 fi
4926 else
4927 if test "$GCC" = yes; then
4928 CFLAGS="-O2"
4929 else
4930 CFLAGS=
4931 fi
4932 fi
4933 ac_prog_cc_stdc=no
4934 if test x$ac_prog_cc_stdc = xno
4935 then :
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4937 printf %s "checking for $CC option to enable C11 features... " >&6; }
4938 if test ${ac_cv_prog_cc_c11+y}
4939 then :
4940 printf %s "(cached) " >&6
4941 else case e in #(
4942 e) ac_cv_prog_cc_c11=no
4943 ac_save_CC=$CC
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 $ac_c_conftest_c11_program
4947 _ACEOF
4948 for ac_arg in '' -std=gnu11
4949 do
4950 CC="$ac_save_CC $ac_arg"
4951 if ac_fn_c_try_compile "$LINENO"
4952 then :
4953 ac_cv_prog_cc_c11=$ac_arg
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.beam
4956 test "x$ac_cv_prog_cc_c11" != "xno" && break
4957 done
4958 rm -f conftest.$ac_ext
4959 CC=$ac_save_CC ;;
4960 esac
4961 fi
4962
4963 if test "x$ac_cv_prog_cc_c11" = xno
4964 then :
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4966 printf "%s\n" "unsupported" >&6; }
4967 else case e in #(
4968 e) if test "x$ac_cv_prog_cc_c11" = x
4969 then :
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4971 printf "%s\n" "none needed" >&6; }
4972 else case e in #(
4973 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4974 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4975 CC="$CC $ac_cv_prog_cc_c11" ;;
4976 esac
4977 fi
4978 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4979 ac_prog_cc_stdc=c11 ;;
4980 esac
4981 fi
4982 fi
4983 if test x$ac_prog_cc_stdc = xno
4984 then :
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4986 printf %s "checking for $CC option to enable C99 features... " >&6; }
4987 if test ${ac_cv_prog_cc_c99+y}
4988 then :
4989 printf %s "(cached) " >&6
4990 else case e in #(
4991 e) ac_cv_prog_cc_c99=no
4992 ac_save_CC=$CC
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 $ac_c_conftest_c99_program
4996 _ACEOF
4997 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4998 do
4999 CC="$ac_save_CC $ac_arg"
5000 if ac_fn_c_try_compile "$LINENO"
5001 then :
5002 ac_cv_prog_cc_c99=$ac_arg
5003 fi
5004 rm -f core conftest.err conftest.$ac_objext conftest.beam
5005 test "x$ac_cv_prog_cc_c99" != "xno" && break
5006 done
5007 rm -f conftest.$ac_ext
5008 CC=$ac_save_CC ;;
5009 esac
5010 fi
5011
5012 if test "x$ac_cv_prog_cc_c99" = xno
5013 then :
5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5015 printf "%s\n" "unsupported" >&6; }
5016 else case e in #(
5017 e) if test "x$ac_cv_prog_cc_c99" = x
5018 then :
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5020 printf "%s\n" "none needed" >&6; }
5021 else case e in #(
5022 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5023 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5024 CC="$CC $ac_cv_prog_cc_c99" ;;
5025 esac
5026 fi
5027 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5028 ac_prog_cc_stdc=c99 ;;
5029 esac
5030 fi
5031 fi
5032 if test x$ac_prog_cc_stdc = xno
5033 then :
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5035 printf %s "checking for $CC option to enable C89 features... " >&6; }
5036 if test ${ac_cv_prog_cc_c89+y}
5037 then :
5038 printf %s "(cached) " >&6
5039 else case e in #(
5040 e) ac_cv_prog_cc_c89=no
5041 ac_save_CC=$CC
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 $ac_c_conftest_c89_program
5045 _ACEOF
5046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5047 do
5048 CC="$ac_save_CC $ac_arg"
5049 if ac_fn_c_try_compile "$LINENO"
5050 then :
5051 ac_cv_prog_cc_c89=$ac_arg
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext conftest.beam
5054 test "x$ac_cv_prog_cc_c89" != "xno" && break
5055 done
5056 rm -f conftest.$ac_ext
5057 CC=$ac_save_CC ;;
5058 esac
5059 fi
5060
5061 if test "x$ac_cv_prog_cc_c89" = xno
5062 then :
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5064 printf "%s\n" "unsupported" >&6; }
5065 else case e in #(
5066 e) if test "x$ac_cv_prog_cc_c89" = x
5067 then :
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5069 printf "%s\n" "none needed" >&6; }
5070 else case e in #(
5071 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5072 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5073 CC="$CC $ac_cv_prog_cc_c89" ;;
5074 esac
5075 fi
5076 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5077 ac_prog_cc_stdc=c89 ;;
5078 esac
5079 fi
5080 fi
5081
5082 ac_ext=c
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088
5089 ac_ext=c
5090 ac_cpp='$CPP $CPPFLAGS'
5091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5095 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5096 if test ${am_cv_prog_cc_c_o+y}
5097 then :
5098 printf %s "(cached) " >&6
5099 else case e in #(
5100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102
5103 int
5104 main (void)
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 # Make sure it works both with $CC and with simple cc.
5112 # Following AC_PROG_CC_C_O, we do the test twice because some
5113 # compilers refuse to overwrite an existing .o file with -o,
5114 # though they will create one.
5115 am_cv_prog_cc_c_o=yes
5116 for am_i in 1 2; do
5117 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5118 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } \
5122 && test -f conftest2.$ac_objext; then
5123 : OK
5124 else
5125 am_cv_prog_cc_c_o=no
5126 break
5127 fi
5128 done
5129 # aligned with autoconf, so not including core; see bug#72225.
5130 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5131 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5132 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5133 unset am_i ;;
5134 esac
5135 fi
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5137 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5138 if test "$am_cv_prog_cc_c_o" != yes; then
5139 # Losing compiler, so override with the script.
5140 # FIXME: It is wrong to rewrite CC.
5141 # But if we don't then we get into trouble of one sort or another.
5142 # A longer-term fix would be to have automake use am__CC in this case,
5143 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5144 CC="$am_aux_dir/compile $CC"
5145 fi
5146 ac_ext=c
5147 ac_cpp='$CPP $CPPFLAGS'
5148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151
5152 DEPDIR="${am__leading_dot}deps"
5153
5154 ac_config_commands="$ac_config_commands depfiles"
5155
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5157 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5158 cat > confinc.mk << 'END'
5159 am__doit:
5160 @echo this is the am__doit target >confinc.out
5161 .PHONY: am__doit
5162 END
5163 am__include="#"
5164 am__quote=
5165 # BSD make does it like this.
5166 echo '.include "confinc.mk" # ignored' > confmf.BSD
5167 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5168 echo 'include confinc.mk # ignored' > confmf.GNU
5169 _am_result=no
5170 for s in GNU BSD; do
5171 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5172 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }
5176 case $?:`cat confinc.out 2>/dev/null` in #(
5177 '0:this is the am__doit target') :
5178 case $s in #(
5179 BSD) :
5180 am__include='.include' am__quote='"' ;; #(
5181 *) :
5182 am__include='include' am__quote='' ;;
5183 esac ;; #(
5184 *) :
5185 ;;
5186 esac
5187 if test "$am__include" != "#"; then
5188 _am_result="yes ($s style)"
5189 break
5190 fi
5191 done
5192 rm -f confinc.* confmf.*
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5194 printf "%s\n" "${_am_result}" >&6; }
5195
5196 # Check whether --enable-dependency-tracking was given.
5197 if test ${enable_dependency_tracking+y}
5198 then :
5199 enableval=$enable_dependency_tracking;
5200 fi
5201
5202 if test "x$enable_dependency_tracking" != xno; then
5203 am_depcomp="$ac_aux_dir/depcomp"
5204 AMDEPBACKSLASH='\'
5205 am__nodep='_no'
5206 fi
5207 if test "x$enable_dependency_tracking" != xno; then
5208 AMDEP_TRUE=
5209 AMDEP_FALSE='#'
5210 else
5211 AMDEP_TRUE='#'
5212 AMDEP_FALSE=
5213 fi
5214
5215
5216
5217 depcc="$CC" am_compiler_list=
5218
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5220 printf %s "checking dependency style of $depcc... " >&6; }
5221 if test ${am_cv_CC_dependencies_compiler_type+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else case e in #(
5225 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5226 # We make a subdir and do the tests there. Otherwise we can end up
5227 # making bogus files that we don't know about and never remove. For
5228 # instance it was reported that on HP-UX the gcc test will end up
5229 # making a dummy file named 'D' -- because '-MD' means "put the output
5230 # in D".
5231 rm -rf conftest.dir
5232 mkdir conftest.dir
5233 # Copy depcomp to subdir because otherwise we won't find it if we're
5234 # using a relative directory.
5235 cp "$am_depcomp" conftest.dir
5236 cd conftest.dir
5237 # We will build objects and dependencies in a subdirectory because
5238 # it helps to detect inapplicable dependency modes. For instance
5239 # both Tru64's cc and ICC support -MD to output dependencies as a
5240 # side effect of compilation, but ICC will put the dependencies in
5241 # the current directory while Tru64 will put them in the object
5242 # directory.
5243 mkdir sub
5244
5245 am_cv_CC_dependencies_compiler_type=none
5246 if test "$am_compiler_list" = ""; then
5247 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5248 fi
5249 am__universal=false
5250 case " $depcc " in #(
5251 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5252 esac
5253
5254 for depmode in $am_compiler_list; do
5255 # Setup a source with many dependencies, because some compilers
5256 # like to wrap large dependency lists on column 80 (with \), and
5257 # we should not choose a depcomp mode which is confused by this.
5258 #
5259 # We need to recreate these files for each test, as the compiler may
5260 # overwrite some of them when testing with obscure command lines.
5261 # This happens at least with the AIX C compiler.
5262 : > sub/conftest.c
5263 for i in 1 2 3 4 5 6; do
5264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5265 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5266 # Solaris 10 /bin/sh.
5267 echo '/* dummy */' > sub/conftst$i.h
5268 done
5269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5270
5271 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5272 # mode. It turns out that the SunPro C++ compiler does not properly
5273 # handle '-M -o', and we need to detect this. Also, some Intel
5274 # versions had trouble with output in subdirs.
5275 am__obj=sub/conftest.${OBJEXT-o}
5276 am__minus_obj="-o $am__obj"
5277 case $depmode in
5278 gcc)
5279 # This depmode causes a compiler race in universal mode.
5280 test "$am__universal" = false || continue
5281 ;;
5282 nosideeffect)
5283 # After this tag, mechanisms are not by side-effect, so they'll
5284 # only be used when explicitly requested.
5285 if test "x$enable_dependency_tracking" = xyes; then
5286 continue
5287 else
5288 break
5289 fi
5290 ;;
5291 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5292 # This compiler won't grok '-c -o', but also, the minuso test has
5293 # not run yet. These depmodes are late enough in the game, and
5294 # so weak that their functioning should not be impacted.
5295 am__obj=conftest.${OBJEXT-o}
5296 am__minus_obj=
5297 ;;
5298 none) break ;;
5299 esac
5300 if depmode=$depmode \
5301 source=sub/conftest.c object=$am__obj \
5302 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5303 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5304 >/dev/null 2>conftest.err &&
5305 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5306 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5307 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5308 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5309 # icc doesn't choke on unknown options, it will just issue warnings
5310 # or remarks (even with -Werror). So we grep stderr for any message
5311 # that says an option was ignored or not supported.
5312 # When given -MP, icc 7.0 and 7.1 complain thus:
5313 # icc: Command line warning: ignoring option '-M'; no argument required
5314 # The diagnosis changed in icc 8.0:
5315 # icc: Command line remark: option '-MP' not supported
5316 if (grep 'ignoring option' conftest.err ||
5317 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5318 am_cv_CC_dependencies_compiler_type=$depmode
5319 break
5320 fi
5321 fi
5322 done
5323
5324 cd ..
5325 rm -rf conftest.dir
5326 else
5327 am_cv_CC_dependencies_compiler_type=none
5328 fi
5329 ;;
5330 esac
5331 fi
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5333 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5334 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5335
5336 if
5337 test "x$enable_dependency_tracking" != xno \
5338 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5339 am__fastdepCC_TRUE=
5340 am__fastdepCC_FALSE='#'
5341 else
5342 am__fastdepCC_TRUE='#'
5343 am__fastdepCC_FALSE=
5344 fi
5345
5346
5347 ac_ext=c
5348 ac_cpp='$CPP $CPPFLAGS'
5349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5353 printf %s "checking how to run the C preprocessor... " >&6; }
5354 # On Suns, sometimes $CPP names a directory.
5355 if test -n "$CPP" && test -d "$CPP"; then
5356 CPP=
5357 fi
5358 if test -z "$CPP"; then
5359 if test ${ac_cv_prog_CPP+y}
5360 then :
5361 printf %s "(cached) " >&6
5362 else case e in #(
5363 e) # Double quotes because $CC needs to be expanded
5364 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5365 do
5366 ac_preproc_ok=false
5367 for ac_c_preproc_warn_flag in '' yes
5368 do
5369 # Use a header file that comes with gcc, so configuring glibc
5370 # with a fresh cross-compiler works.
5371 # On the NeXT, cc -E runs the code through the compiler's parser,
5372 # not just through cpp. "Syntax error" is here to catch this case.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5375 #include <limits.h>
5376 Syntax error
5377 _ACEOF
5378 if ac_fn_c_try_cpp "$LINENO"
5379 then :
5380
5381 else case e in #(
5382 e) # Broken: fails on valid input.
5383 continue ;;
5384 esac
5385 fi
5386 rm -f conftest.err conftest.i conftest.$ac_ext
5387
5388 # OK, works on sane cases. Now check whether nonexistent headers
5389 # can be detected and how.
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 #include <ac_nonexistent.h>
5393 _ACEOF
5394 if ac_fn_c_try_cpp "$LINENO"
5395 then :
5396 # Broken: success on invalid input.
5397 continue
5398 else case e in #(
5399 e) # Passes both tests.
5400 ac_preproc_ok=:
5401 break ;;
5402 esac
5403 fi
5404 rm -f conftest.err conftest.i conftest.$ac_ext
5405
5406 done
5407 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5408 rm -f conftest.i conftest.err conftest.$ac_ext
5409 if $ac_preproc_ok
5410 then :
5411 break
5412 fi
5413
5414 done
5415 ac_cv_prog_CPP=$CPP
5416 ;;
5417 esac
5418 fi
5419 CPP=$ac_cv_prog_CPP
5420 else
5421 ac_cv_prog_CPP=$CPP
5422 fi
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5424 printf "%s\n" "$CPP" >&6; }
5425 ac_preproc_ok=false
5426 for ac_c_preproc_warn_flag in '' yes
5427 do
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # On the NeXT, cc -E runs the code through the compiler's parser,
5431 # not just through cpp. "Syntax error" is here to catch this case.
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434 #include <limits.h>
5435 Syntax error
5436 _ACEOF
5437 if ac_fn_c_try_cpp "$LINENO"
5438 then :
5439
5440 else case e in #(
5441 e) # Broken: fails on valid input.
5442 continue ;;
5443 esac
5444 fi
5445 rm -f conftest.err conftest.i conftest.$ac_ext
5446
5447 # OK, works on sane cases. Now check whether nonexistent headers
5448 # can be detected and how.
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 #include <ac_nonexistent.h>
5452 _ACEOF
5453 if ac_fn_c_try_cpp "$LINENO"
5454 then :
5455 # Broken: success on invalid input.
5456 continue
5457 else case e in #(
5458 e) # Passes both tests.
5459 ac_preproc_ok=:
5460 break ;;
5461 esac
5462 fi
5463 rm -f conftest.err conftest.i conftest.$ac_ext
5464
5465 done
5466 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467 rm -f conftest.i conftest.err conftest.$ac_ext
5468 if $ac_preproc_ok
5469 then :
5470
5471 else case e in #(
5472 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5473 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5474 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5475 See 'config.log' for more details" "$LINENO" 5; } ;;
5476 esac
5477 fi
5478
5479 ac_ext=c
5480 ac_cpp='$CPP $CPPFLAGS'
5481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484
5485
5486 case `pwd` in
5487 *\ * | *\ *)
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5489 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5490 esac
5491
5492
5493
5494 macro_version='2.5.4'
5495 macro_revision='2.5.4'
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 ltmain=$ac_aux_dir/ltmain.sh
5511
5512 # Backslashify metacharacters that are still active within
5513 # double-quoted strings.
5514 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5515
5516 # Same as above, but do not quote variable references.
5517 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5518
5519 # Sed substitution to delay expansion of an escaped shell variable in a
5520 # double_quote_subst'ed string.
5521 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5522
5523 # Sed substitution to delay expansion of an escaped single quote.
5524 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5525
5526 # Sed substitution to avoid accidental globbing in evaled expressions
5527 no_glob_subst='s/\*/\\\*/g'
5528
5529 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5530 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5531 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5532
5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5534 printf %s "checking how to print strings... " >&6; }
5535 # Test print first, because it will be a builtin if present.
5536 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5537 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5538 ECHO='print -r --'
5539 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5540 ECHO='printf %s\n'
5541 else
5542 # Use this function as a fallback that always works.
5543 func_fallback_echo ()
5544 {
5545 eval 'cat <<_LTECHO_EOF
5546 $1
5547 _LTECHO_EOF'
5548 }
5549 ECHO='func_fallback_echo'
5550 fi
5551
5552 # func_echo_all arg...
5553 # Invoke $ECHO with all args, space-separated.
5554 func_echo_all ()
5555 {
5556 $ECHO ""
5557 }
5558
5559 case $ECHO in
5560 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5561 printf "%s\n" "printf" >&6; } ;;
5562 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5563 printf "%s\n" "print -r" >&6; } ;;
5564 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5565 printf "%s\n" "cat" >&6; } ;;
5566 esac
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5582 printf %s "checking for a sed that does not truncate output... " >&6; }
5583 if test ${ac_cv_path_SED+y}
5584 then :
5585 printf %s "(cached) " >&6
5586 else case e in #(
5587 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5588 for ac_i in 1 2 3 4 5 6 7; do
5589 ac_script="$ac_script$as_nl$ac_script"
5590 done
5591 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5592 { ac_script=; unset ac_script;}
5593 if test -z "$SED"; then
5594 ac_path_SED_found=false
5595 # Loop through the user's path and test for each of PROGNAME-LIST
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599 IFS=$as_save_IFS
5600 case $as_dir in #(((
5601 '') as_dir=./ ;;
5602 */) ;;
5603 *) as_dir=$as_dir/ ;;
5604 esac
5605 for ac_prog in sed gsed
5606 do
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5609 as_fn_executable_p "$ac_path_SED" || continue
5610 # Check for GNU ac_path_SED and select it if it is found.
5611 # Check for GNU $ac_path_SED
5612 case `"$ac_path_SED" --version 2>&1` in #(
5613 *GNU*)
5614 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5615 #(
5616 *)
5617 ac_count=0
5618 printf %s 0123456789 >"conftest.in"
5619 while :
5620 do
5621 cat "conftest.in" "conftest.in" >"conftest.tmp"
5622 mv "conftest.tmp" "conftest.in"
5623 cp "conftest.in" "conftest.nl"
5624 printf "%s\n" '' >> "conftest.nl"
5625 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5627 as_fn_arith $ac_count + 1 && ac_count=$as_val
5628 if test $ac_count -gt ${ac_path_SED_max-0}; then
5629 # Best one so far, save it but keep looking for a better one
5630 ac_cv_path_SED="$ac_path_SED"
5631 ac_path_SED_max=$ac_count
5632 fi
5633 # 10*(2^10) chars as input seems more than enough
5634 test $ac_count -gt 10 && break
5635 done
5636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5637 esac
5638
5639 $ac_path_SED_found && break 3
5640 done
5641 done
5642 done
5643 IFS=$as_save_IFS
5644 if test -z "$ac_cv_path_SED"; then
5645 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5646 fi
5647 else
5648 ac_cv_path_SED=$SED
5649 fi
5650 ;;
5651 esac
5652 fi
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5654 printf "%s\n" "$ac_cv_path_SED" >&6; }
5655 SED="$ac_cv_path_SED"
5656 rm -f conftest.sed
5657
5658 test -z "$SED" && SED=sed
5659 Xsed="$SED -e 1s/^X//"
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5672 printf %s "checking for grep that handles long lines and -e... " >&6; }
5673 if test ${ac_cv_path_GREP+y}
5674 then :
5675 printf %s "(cached) " >&6
5676 else case e in #(
5677 e) if test -z "$GREP"; then
5678 ac_path_GREP_found=false
5679 # Loop through the user's path and test for each of PROGNAME-LIST
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5682 do
5683 IFS=$as_save_IFS
5684 case $as_dir in #(((
5685 '') as_dir=./ ;;
5686 */) ;;
5687 *) as_dir=$as_dir/ ;;
5688 esac
5689 for ac_prog in grep ggrep
5690 do
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5693 as_fn_executable_p "$ac_path_GREP" || continue
5694 # Check for GNU ac_path_GREP and select it if it is found.
5695 # Check for GNU $ac_path_GREP
5696 case `"$ac_path_GREP" --version 2>&1` in #(
5697 *GNU*)
5698 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5699 #(
5700 *)
5701 ac_count=0
5702 printf %s 0123456789 >"conftest.in"
5703 while :
5704 do
5705 cat "conftest.in" "conftest.in" >"conftest.tmp"
5706 mv "conftest.tmp" "conftest.in"
5707 cp "conftest.in" "conftest.nl"
5708 printf "%s\n" 'GREP' >> "conftest.nl"
5709 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5711 as_fn_arith $ac_count + 1 && ac_count=$as_val
5712 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5713 # Best one so far, save it but keep looking for a better one
5714 ac_cv_path_GREP="$ac_path_GREP"
5715 ac_path_GREP_max=$ac_count
5716 fi
5717 # 10*(2^10) chars as input seems more than enough
5718 test $ac_count -gt 10 && break
5719 done
5720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5721 esac
5722
5723 $ac_path_GREP_found && break 3
5724 done
5725 done
5726 done
5727 IFS=$as_save_IFS
5728 if test -z "$ac_cv_path_GREP"; then
5729 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5730 fi
5731 else
5732 ac_cv_path_GREP=$GREP
5733 fi
5734 ;;
5735 esac
5736 fi
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5738 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5739 GREP="$ac_cv_path_GREP"
5740
5741
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5743 printf %s "checking for egrep... " >&6; }
5744 if test ${ac_cv_path_EGREP+y}
5745 then :
5746 printf %s "(cached) " >&6
5747 else case e in #(
5748 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5749 then ac_cv_path_EGREP="$GREP -E"
5750 else
5751 if test -z "$EGREP"; then
5752 ac_path_EGREP_found=false
5753 # Loop through the user's path and test for each of PROGNAME-LIST
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5756 do
5757 IFS=$as_save_IFS
5758 case $as_dir in #(((
5759 '') as_dir=./ ;;
5760 */) ;;
5761 *) as_dir=$as_dir/ ;;
5762 esac
5763 for ac_prog in egrep
5764 do
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5767 as_fn_executable_p "$ac_path_EGREP" || continue
5768 # Check for GNU ac_path_EGREP and select it if it is found.
5769 # Check for GNU $ac_path_EGREP
5770 case `"$ac_path_EGREP" --version 2>&1` in #(
5771 *GNU*)
5772 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5773 #(
5774 *)
5775 ac_count=0
5776 printf %s 0123456789 >"conftest.in"
5777 while :
5778 do
5779 cat "conftest.in" "conftest.in" >"conftest.tmp"
5780 mv "conftest.tmp" "conftest.in"
5781 cp "conftest.in" "conftest.nl"
5782 printf "%s\n" 'EGREP' >> "conftest.nl"
5783 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5785 as_fn_arith $ac_count + 1 && ac_count=$as_val
5786 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5787 # Best one so far, save it but keep looking for a better one
5788 ac_cv_path_EGREP="$ac_path_EGREP"
5789 ac_path_EGREP_max=$ac_count
5790 fi
5791 # 10*(2^10) chars as input seems more than enough
5792 test $ac_count -gt 10 && break
5793 done
5794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5795 esac
5796
5797 $ac_path_EGREP_found && break 3
5798 done
5799 done
5800 done
5801 IFS=$as_save_IFS
5802 if test -z "$ac_cv_path_EGREP"; then
5803 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5804 fi
5805 else
5806 ac_cv_path_EGREP=$EGREP
5807 fi
5808
5809 fi ;;
5810 esac
5811 fi
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5813 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5814 EGREP="$ac_cv_path_EGREP"
5815
5816 EGREP_TRADITIONAL=$EGREP
5817 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5818
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5820 printf %s "checking for fgrep... " >&6; }
5821 if test ${ac_cv_path_FGREP+y}
5822 then :
5823 printf %s "(cached) " >&6
5824 else case e in #(
5825 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5826 then ac_cv_path_FGREP="$GREP -F"
5827 else
5828 if test -z "$FGREP"; then
5829 ac_path_FGREP_found=false
5830 # Loop through the user's path and test for each of PROGNAME-LIST
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5833 do
5834 IFS=$as_save_IFS
5835 case $as_dir in #(((
5836 '') as_dir=./ ;;
5837 */) ;;
5838 *) as_dir=$as_dir/ ;;
5839 esac
5840 for ac_prog in fgrep
5841 do
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5844 as_fn_executable_p "$ac_path_FGREP" || continue
5845 # Check for GNU ac_path_FGREP and select it if it is found.
5846 # Check for GNU $ac_path_FGREP
5847 case `"$ac_path_FGREP" --version 2>&1` in #(
5848 *GNU*)
5849 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5850 #(
5851 *)
5852 ac_count=0
5853 printf %s 0123456789 >"conftest.in"
5854 while :
5855 do
5856 cat "conftest.in" "conftest.in" >"conftest.tmp"
5857 mv "conftest.tmp" "conftest.in"
5858 cp "conftest.in" "conftest.nl"
5859 printf "%s\n" 'FGREP' >> "conftest.nl"
5860 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5862 as_fn_arith $ac_count + 1 && ac_count=$as_val
5863 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5864 # Best one so far, save it but keep looking for a better one
5865 ac_cv_path_FGREP="$ac_path_FGREP"
5866 ac_path_FGREP_max=$ac_count
5867 fi
5868 # 10*(2^10) chars as input seems more than enough
5869 test $ac_count -gt 10 && break
5870 done
5871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5872 esac
5873
5874 $ac_path_FGREP_found && break 3
5875 done
5876 done
5877 done
5878 IFS=$as_save_IFS
5879 if test -z "$ac_cv_path_FGREP"; then
5880 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5881 fi
5882 else
5883 ac_cv_path_FGREP=$FGREP
5884 fi
5885
5886 fi ;;
5887 esac
5888 fi
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5890 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5891 FGREP="$ac_cv_path_FGREP"
5892
5893
5894 test -z "$GREP" && GREP=grep
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 # Check whether --with-gnu-ld was given.
5915 if test ${with_gnu_ld+y}
5916 then :
5917 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5918 else case e in #(
5919 e) with_gnu_ld=no ;;
5920 esac
5921 fi
5922
5923 ac_prog=ld
5924 if test yes = "$GCC"; then
5925 # Check if gcc -print-prog-name=ld gives a path.
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5927 printf %s "checking for ld used by $CC... " >&6; }
5928 case $host in
5929 *-*-mingw* | *-*-windows*)
5930 # gcc leaves a trailing carriage return, which upsets mingw
5931 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5932 *)
5933 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5934 esac
5935 case $ac_prog in
5936 # Accept absolute paths.
5937 [\\/]* | ?:[\\/]*)
5938 re_direlt='/[^/][^/]*/\.\./'
5939 # Canonicalize the pathname of ld
5940 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5941 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5942 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5943 done
5944 test -z "$LD" && LD=$ac_prog
5945 ;;
5946 "")
5947 # If it fails, then pretend we aren't using GCC.
5948 ac_prog=ld
5949 ;;
5950 *)
5951 # If it is relative, then search for the first ld in PATH.
5952 with_gnu_ld=unknown
5953 ;;
5954 esac
5955 elif test yes = "$with_gnu_ld"; then
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5957 printf %s "checking for GNU ld... " >&6; }
5958 else
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5960 printf %s "checking for non-GNU ld... " >&6; }
5961 fi
5962 if test ${lt_cv_path_LD+y}
5963 then :
5964 printf %s "(cached) " >&6
5965 else case e in #(
5966 e) if test -z "$LD"; then
5967 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5968 for ac_dir in $PATH; do
5969 IFS=$lt_save_ifs
5970 test -z "$ac_dir" && ac_dir=.
5971 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5972 lt_cv_path_LD=$ac_dir/$ac_prog
5973 # Check to see if the program is GNU ld. I'd rather use --version,
5974 # but apparently some variants of GNU ld only accept -v.
5975 # Break only if it was the GNU/non-GNU ld that we prefer.
5976 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5977 *GNU* | *'with BFD'*)
5978 test no != "$with_gnu_ld" && break
5979 ;;
5980 *)
5981 test yes != "$with_gnu_ld" && break
5982 ;;
5983 esac
5984 fi
5985 done
5986 IFS=$lt_save_ifs
5987 else
5988 lt_cv_path_LD=$LD # Let the user override the test with a path.
5989 fi ;;
5990 esac
5991 fi
5992
5993 LD=$lt_cv_path_LD
5994 if test -n "$LD"; then
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5996 printf "%s\n" "$LD" >&6; }
5997 else
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 printf "%s\n" "no" >&6; }
6000 fi
6001 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6003 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6004 if test ${lt_cv_prog_gnu_ld+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else case e in #(
6008 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6009 case `$LD -v 2>&1 </dev/null` in
6010 *GNU* | *'with BFD'*)
6011 lt_cv_prog_gnu_ld=yes
6012 ;;
6013 *)
6014 lt_cv_prog_gnu_ld=no
6015 ;;
6016 esac ;;
6017 esac
6018 fi
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6020 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6021 with_gnu_ld=$lt_cv_prog_gnu_ld
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6032 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6033 if test ${lt_cv_path_NM+y}
6034 then :
6035 printf %s "(cached) " >&6
6036 else case e in #(
6037 e) if test -n "$NM"; then
6038 # Let the user override the test.
6039 lt_cv_path_NM=$NM
6040 else
6041 lt_nm_to_check=${ac_tool_prefix}nm
6042 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6043 lt_nm_to_check="$lt_nm_to_check nm"
6044 fi
6045 for lt_tmp_nm in $lt_nm_to_check; do
6046 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6047 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6048 IFS=$lt_save_ifs
6049 test -z "$ac_dir" && ac_dir=.
6050 tmp_nm=$ac_dir/$lt_tmp_nm
6051 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6052 # Check to see if the nm accepts a BSD-compat flag.
6053 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6054 # nm: unknown option "B" ignored
6055 # Tru64's nm complains that /dev/null is an invalid object file
6056 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6057 case $build_os in
6058 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6059 *) lt_bad_file=/dev/null ;;
6060 esac
6061 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6062 *$lt_bad_file* | *'Invalid file or object type'*)
6063 lt_cv_path_NM="$tmp_nm -B"
6064 break 2
6065 ;;
6066 *)
6067 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6068 */dev/null*)
6069 lt_cv_path_NM="$tmp_nm -p"
6070 break 2
6071 ;;
6072 *)
6073 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6074 continue # so that we can try to find one that supports BSD flags
6075 ;;
6076 esac
6077 ;;
6078 esac
6079 fi
6080 done
6081 IFS=$lt_save_ifs
6082 done
6083 : ${lt_cv_path_NM=no}
6084 fi ;;
6085 esac
6086 fi
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6088 printf "%s\n" "$lt_cv_path_NM" >&6; }
6089 if test no != "$lt_cv_path_NM"; then
6090 NM=$lt_cv_path_NM
6091 else
6092 # Didn't find any BSD compatible name lister, look for dumpbin.
6093 if test -n "$DUMPBIN"; then :
6094 # Let the user override the test.
6095 else
6096 if test -n "$ac_tool_prefix"; then
6097 for ac_prog in dumpbin "link -dump"
6098 do
6099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 printf %s "checking for $ac_word... " >&6; }
6103 if test ${ac_cv_prog_DUMPBIN+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else case e in #(
6107 e) if test -n "$DUMPBIN"; then
6108 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113 IFS=$as_save_IFS
6114 case $as_dir in #(((
6115 '') as_dir=./ ;;
6116 */) ;;
6117 *) as_dir=$as_dir/ ;;
6118 esac
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi ;;
6130 esac
6131 fi
6132 DUMPBIN=$ac_cv_prog_DUMPBIN
6133 if test -n "$DUMPBIN"; then
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6135 printf "%s\n" "$DUMPBIN" >&6; }
6136 else
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 printf "%s\n" "no" >&6; }
6139 fi
6140
6141
6142 test -n "$DUMPBIN" && break
6143 done
6144 fi
6145 if test -z "$DUMPBIN"; then
6146 ac_ct_DUMPBIN=$DUMPBIN
6147 for ac_prog in dumpbin "link -dump"
6148 do
6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
6150 set dummy $ac_prog; ac_word=$2
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 printf %s "checking for $ac_word... " >&6; }
6153 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6154 then :
6155 printf %s "(cached) " >&6
6156 else case e in #(
6157 e) if test -n "$ac_ct_DUMPBIN"; then
6158 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163 IFS=$as_save_IFS
6164 case $as_dir in #(((
6165 '') as_dir=./ ;;
6166 */) ;;
6167 *) as_dir=$as_dir/ ;;
6168 esac
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6171 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi ;;
6180 esac
6181 fi
6182 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6183 if test -n "$ac_ct_DUMPBIN"; then
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6185 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6186 else
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 printf "%s\n" "no" >&6; }
6189 fi
6190
6191
6192 test -n "$ac_ct_DUMPBIN" && break
6193 done
6194
6195 if test "x$ac_ct_DUMPBIN" = x; then
6196 DUMPBIN=":"
6197 else
6198 case $cross_compiling:$ac_tool_warned in
6199 yes:)
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6202 ac_tool_warned=yes ;;
6203 esac
6204 DUMPBIN=$ac_ct_DUMPBIN
6205 fi
6206 fi
6207
6208 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6209 *COFF*)
6210 DUMPBIN="$DUMPBIN -symbols -headers"
6211 ;;
6212 *)
6213 DUMPBIN=:
6214 ;;
6215 esac
6216 fi
6217
6218 if test : != "$DUMPBIN"; then
6219 NM=$DUMPBIN
6220 fi
6221 fi
6222 test -z "$NM" && NM=nm
6223
6224
6225
6226
6227
6228
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6230 printf %s "checking the name lister ($NM) interface... " >&6; }
6231 if test ${lt_cv_nm_interface+y}
6232 then :
6233 printf %s "(cached) " >&6
6234 else case e in #(
6235 e) lt_cv_nm_interface="BSD nm"
6236 echo "int some_variable = 0;" > conftest.$ac_ext
6237 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6238 (eval "$ac_compile" 2>conftest.err)
6239 cat conftest.err >&5
6240 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6241 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6242 cat conftest.err >&5
6243 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6244 cat conftest.out >&5
6245 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6246 lt_cv_nm_interface="MS dumpbin"
6247 fi
6248 rm -f conftest* ;;
6249 esac
6250 fi
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6252 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6253
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6255 printf %s "checking whether ln -s works... " >&6; }
6256 LN_S=$as_ln_s
6257 if test "$LN_S" = "ln -s"; then
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6259 printf "%s\n" "yes" >&6; }
6260 else
6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6262 printf "%s\n" "no, using $LN_S" >&6; }
6263 fi
6264
6265 # find the maximum length of command line arguments
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6267 printf %s "checking the maximum length of command line arguments... " >&6; }
6268 if test ${lt_cv_sys_max_cmd_len+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else case e in #(
6272 e) i=0
6273 teststring=ABCD
6274
6275 case $build_os in
6276 msdosdjgpp*)
6277 # On DJGPP, this test can blow up pretty badly due to problems in libc
6278 # (any single argument exceeding 2000 bytes causes a buffer overrun
6279 # during glob expansion). Even if it were fixed, the result of this
6280 # check would be larger than it should be.
6281 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6282 ;;
6283
6284 gnu* | ironclad*)
6285 # Under GNU Hurd and Ironclad, this test is not required because there
6286 # is no limit to the length of command line arguments.
6287 # Libtool will interpret -1 as no limit whatsoever
6288 lt_cv_sys_max_cmd_len=-1;
6289 ;;
6290
6291 cygwin* | mingw* | windows* | cegcc*)
6292 # On Win9x/ME, this test blows up -- it succeeds, but takes
6293 # about 5 minutes as the teststring grows exponentially.
6294 # Worse, since 9x/ME are not pre-emptively multitasking,
6295 # you end up with a "frozen" computer, even though with patience
6296 # the test eventually succeeds (with a max line length of 256k).
6297 # Instead, let's just punt: use the minimum linelength reported by
6298 # all of the supported platforms: 8192 (on NT/2K/XP).
6299 lt_cv_sys_max_cmd_len=8192;
6300 ;;
6301
6302 mint*)
6303 # On MiNT this can take a long time and run out of memory.
6304 lt_cv_sys_max_cmd_len=8192;
6305 ;;
6306
6307 amigaos*)
6308 # On AmigaOS with pdksh, this test takes hours, literally.
6309 # So we just punt and use a minimum line length of 8192.
6310 lt_cv_sys_max_cmd_len=8192;
6311 ;;
6312
6313 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6314 # This has been around since 386BSD, at least. Likely further.
6315 if test -x /sbin/sysctl; then
6316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6317 elif test -x /usr/sbin/sysctl; then
6318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6319 else
6320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6321 fi
6322 # And add a safety zone
6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6325 ;;
6326
6327 interix*)
6328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6329 lt_cv_sys_max_cmd_len=196608
6330 ;;
6331
6332 os2*)
6333 # The test takes a long time on OS/2.
6334 lt_cv_sys_max_cmd_len=8192
6335 ;;
6336
6337 osf*)
6338 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6339 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6340 # nice to cause kernel panics so lets avoid the loop below.
6341 # First set a reasonable default.
6342 lt_cv_sys_max_cmd_len=16384
6343 #
6344 if test -x /sbin/sysconfig; then
6345 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6346 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6347 esac
6348 fi
6349 ;;
6350 sco3.2v5*)
6351 lt_cv_sys_max_cmd_len=102400
6352 ;;
6353 sysv5* | sco5v6* | sysv4.2uw2*)
6354 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6355 if test -n "$kargmax"; then
6356 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6357 else
6358 lt_cv_sys_max_cmd_len=32768
6359 fi
6360 ;;
6361 *)
6362 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6363 if test -n "$lt_cv_sys_max_cmd_len" && \
6364 test undefined != "$lt_cv_sys_max_cmd_len"; then
6365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6367 else
6368 # Make teststring a little bigger before we do anything with it.
6369 # a 1K string should be a reasonable start.
6370 for i in 1 2 3 4 5 6 7 8; do
6371 teststring=$teststring$teststring
6372 done
6373 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6374 # If test is not a shell built-in, we'll probably end up computing a
6375 # maximum length that is only half of the actual maximum length, but
6376 # we can't tell.
6377 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6378 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6379 test 17 != "$i" # 1/2 MB should be enough
6380 do
6381 i=`expr $i + 1`
6382 teststring=$teststring$teststring
6383 done
6384 # Only check the string length outside the loop.
6385 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6386 teststring=
6387 # Add a significant safety factor because C++ compilers can tack on
6388 # massive amounts of additional arguments before passing them to the
6389 # linker. It appears as though 1/2 is a usable value.
6390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6391 fi
6392 ;;
6393 esac
6394 ;;
6395 esac
6396 fi
6397
6398 if test -n "$lt_cv_sys_max_cmd_len"; then
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6400 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6401 else
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6403 printf "%s\n" "none" >&6; }
6404 fi
6405 max_cmd_len=$lt_cv_sys_max_cmd_len
6406
6407
6408
6409
6410
6411
6412 : ${CP="cp -f"}
6413 : ${MV="mv -f"}
6414 : ${RM="rm -f"}
6415
6416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6417 lt_unset=unset
6418 else
6419 lt_unset=false
6420 fi
6421
6422
6423
6424
6425
6426 # test EBCDIC or ASCII
6427 case `echo X|tr X '\101'` in
6428 A) # ASCII based system
6429 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6430 lt_SP2NL='tr \040 \012'
6431 lt_NL2SP='tr \015\012 \040\040'
6432 ;;
6433 *) # EBCDIC based system
6434 lt_SP2NL='tr \100 \n'
6435 lt_NL2SP='tr \r\n \100\100'
6436 ;;
6437 esac
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6448 printf %s "checking how to convert $build file names to $host format... " >&6; }
6449 if test ${lt_cv_to_host_file_cmd+y}
6450 then :
6451 printf %s "(cached) " >&6
6452 else case e in #(
6453 e) case $host in
6454 *-*-mingw* )
6455 case $build in
6456 *-*-mingw* | *-*-windows* ) # actually msys
6457 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6458 ;;
6459 *-*-cygwin* )
6460 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6461 ;;
6462 * ) # otherwise, assume *nix
6463 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6464 ;;
6465 esac
6466 ;;
6467 *-*-cygwin* )
6468 case $build in
6469 *-*-mingw* | *-*-windows* ) # actually msys
6470 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6471 ;;
6472 *-*-cygwin* )
6473 lt_cv_to_host_file_cmd=func_convert_file_noop
6474 ;;
6475 * ) # otherwise, assume *nix
6476 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6477 ;;
6478 esac
6479 ;;
6480 * ) # unhandled hosts (and "normal" native builds)
6481 lt_cv_to_host_file_cmd=func_convert_file_noop
6482 ;;
6483 esac
6484 ;;
6485 esac
6486 fi
6487
6488 to_host_file_cmd=$lt_cv_to_host_file_cmd
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6490 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6491
6492
6493
6494
6495
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6497 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6498 if test ${lt_cv_to_tool_file_cmd+y}
6499 then :
6500 printf %s "(cached) " >&6
6501 else case e in #(
6502 e) #assume ordinary cross tools, or native build.
6503 lt_cv_to_tool_file_cmd=func_convert_file_noop
6504 case $host in
6505 *-*-mingw* | *-*-windows* )
6506 case $build in
6507 *-*-mingw* | *-*-windows* ) # actually msys
6508 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6509 ;;
6510 esac
6511 ;;
6512 esac
6513 ;;
6514 esac
6515 fi
6516
6517 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6519 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6520
6521
6522
6523
6524
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6526 printf %s "checking for $LD option to reload object files... " >&6; }
6527 if test ${lt_cv_ld_reload_flag+y}
6528 then :
6529 printf %s "(cached) " >&6
6530 else case e in #(
6531 e) lt_cv_ld_reload_flag='-r' ;;
6532 esac
6533 fi
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6535 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6536 reload_flag=$lt_cv_ld_reload_flag
6537 case $reload_flag in
6538 "" | " "*) ;;
6539 *) reload_flag=" $reload_flag" ;;
6540 esac
6541 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6542 case $host_os in
6543 cygwin* | mingw* | windows* | pw32* | cegcc*)
6544 if test yes != "$GCC"; then
6545 reload_cmds=false
6546 fi
6547 ;;
6548 darwin*)
6549 if test yes = "$GCC"; then
6550 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6551 else
6552 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6553 fi
6554 ;;
6555 esac
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 # Extract the first word of "file", so it can be a program name with args.
6566 set dummy file; ac_word=$2
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 printf %s "checking for $ac_word... " >&6; }
6569 if test ${ac_cv_prog_FILECMD+y}
6570 then :
6571 printf %s "(cached) " >&6
6572 else case e in #(
6573 e) if test -n "$FILECMD"; then
6574 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579 IFS=$as_save_IFS
6580 case $as_dir in #(((
6581 '') as_dir=./ ;;
6582 */) ;;
6583 *) as_dir=$as_dir/ ;;
6584 esac
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_FILECMD="file"
6588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6596 fi ;;
6597 esac
6598 fi
6599 FILECMD=$ac_cv_prog_FILECMD
6600 if test -n "$FILECMD"; then
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6602 printf "%s\n" "$FILECMD" >&6; }
6603 else
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 printf "%s\n" "no" >&6; }
6606 fi
6607
6608
6609
6610
6611
6612
6613
6614
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 printf %s "checking for $ac_word... " >&6; }
6620 if test ${ac_cv_prog_OBJDUMP+y}
6621 then :
6622 printf %s "(cached) " >&6
6623 else case e in #(
6624 e) if test -n "$OBJDUMP"; then
6625 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630 IFS=$as_save_IFS
6631 case $as_dir in #(((
6632 '') as_dir=./ ;;
6633 */) ;;
6634 *) as_dir=$as_dir/ ;;
6635 esac
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi ;;
6647 esac
6648 fi
6649 OBJDUMP=$ac_cv_prog_OBJDUMP
6650 if test -n "$OBJDUMP"; then
6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6652 printf "%s\n" "$OBJDUMP" >&6; }
6653 else
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 printf "%s\n" "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_OBJDUMP"; then
6661 ac_ct_OBJDUMP=$OBJDUMP
6662 # Extract the first word of "objdump", so it can be a program name with args.
6663 set dummy objdump; ac_word=$2
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 printf %s "checking for $ac_word... " >&6; }
6666 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6667 then :
6668 printf %s "(cached) " >&6
6669 else case e in #(
6670 e) if test -n "$ac_ct_OBJDUMP"; then
6671 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 case $as_dir in #(((
6678 '') as_dir=./ ;;
6679 */) ;;
6680 *) as_dir=$as_dir/ ;;
6681 esac
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi ;;
6693 esac
6694 fi
6695 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6696 if test -n "$ac_ct_OBJDUMP"; then
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6698 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6699 else
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 printf "%s\n" "no" >&6; }
6702 fi
6703
6704 if test "x$ac_ct_OBJDUMP" = x; then
6705 OBJDUMP="false"
6706 else
6707 case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713 OBJDUMP=$ac_ct_OBJDUMP
6714 fi
6715 else
6716 OBJDUMP="$ac_cv_prog_OBJDUMP"
6717 fi
6718
6719 test -z "$OBJDUMP" && OBJDUMP=objdump
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6730 printf %s "checking how to recognize dependent libraries... " >&6; }
6731 if test ${lt_cv_deplibs_check_method+y}
6732 then :
6733 printf %s "(cached) " >&6
6734 else case e in #(
6735 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6736 lt_cv_file_magic_test_file=
6737 lt_cv_deplibs_check_method='unknown'
6738 # Need to set the preceding variable on all platforms that support
6739 # interlibrary dependencies.
6740 # 'none' -- dependencies not supported.
6741 # 'unknown' -- same as none, but documents that we really don't know.
6742 # 'pass_all' -- all dependencies passed with no checks.
6743 # 'file_magic [[regex]]' -- check by looking for files in library path
6744 # that responds to the $file_magic_cmd with a given extended regex.
6745 # If you have 'file' or equivalent on your system and you're not sure
6746 # whether 'pass_all' will *always* work, you probably want this one.
6747
6748 case $host_os in
6749 aix[4-9]*)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752
6753 beos*)
6754 lt_cv_deplibs_check_method=pass_all
6755 ;;
6756
6757 bsdi[45]*)
6758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6759 lt_cv_file_magic_cmd='$FILECMD -L'
6760 lt_cv_file_magic_test_file=/shlib/libc.so
6761 ;;
6762
6763 cygwin*)
6764 # func_win32_libid is a shell function defined in ltmain.sh
6765 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6766 lt_cv_file_magic_cmd='func_win32_libid'
6767 ;;
6768
6769 mingw* | windows* | pw32*)
6770 # Base MSYS/MinGW do not provide the 'file' command needed by
6771 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6772 # unless we find 'file', for example because we are cross-compiling.
6773 if ( file / ) >/dev/null 2>&1; then
6774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6775 lt_cv_file_magic_cmd='func_win32_libid'
6776 else
6777 # Keep this pattern in sync with the one in func_win32_libid.
6778 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6779 lt_cv_file_magic_cmd='$OBJDUMP -f'
6780 fi
6781 ;;
6782
6783 cegcc*)
6784 # use the weaker test based on 'objdump'. See mingw*.
6785 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6786 lt_cv_file_magic_cmd='$OBJDUMP -f'
6787 ;;
6788
6789 darwin* | rhapsody*)
6790 lt_cv_deplibs_check_method=pass_all
6791 ;;
6792
6793 freebsd* | dragonfly* | midnightbsd*)
6794 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6795 case $host_cpu in
6796 i*86 )
6797 # Not sure whether the presence of OpenBSD here was a mistake.
6798 # Let's accept both of them until this is cleared up.
6799 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6800 lt_cv_file_magic_cmd=$FILECMD
6801 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6802 ;;
6803 esac
6804 else
6805 lt_cv_deplibs_check_method=pass_all
6806 fi
6807 ;;
6808
6809 haiku*)
6810 lt_cv_deplibs_check_method=pass_all
6811 ;;
6812
6813 hpux10.20* | hpux11*)
6814 lt_cv_file_magic_cmd=$FILECMD
6815 case $host_cpu in
6816 ia64*)
6817 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6818 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6819 ;;
6820 hppa*64*)
6821 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]'
6822 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6823 ;;
6824 *)
6825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6826 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6827 ;;
6828 esac
6829 ;;
6830
6831 interix[3-9]*)
6832 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6834 ;;
6835
6836 irix5* | irix6* | nonstopux*)
6837 case $LD in
6838 *-32|*"-32 ") libmagic=32-bit;;
6839 *-n32|*"-n32 ") libmagic=N32;;
6840 *-64|*"-64 ") libmagic=64-bit;;
6841 *) libmagic=never-match;;
6842 esac
6843 lt_cv_deplibs_check_method=pass_all
6844 ;;
6845
6846 # This must be glibc/ELF.
6847 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6848 lt_cv_deplibs_check_method=pass_all
6849 ;;
6850
6851 *-mlibc)
6852 lt_cv_deplibs_check_method=pass_all
6853 ;;
6854
6855 netbsd* | netbsdelf*-gnu)
6856 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6857 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6858 else
6859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6860 fi
6861 ;;
6862
6863 newos6*)
6864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6865 lt_cv_file_magic_cmd=$FILECMD
6866 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6867 ;;
6868
6869 *nto* | *qnx*)
6870 lt_cv_deplibs_check_method=pass_all
6871 ;;
6872
6873 openbsd*)
6874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6876 else
6877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6878 fi
6879 ;;
6880
6881 osf3* | osf4* | osf5*)
6882 lt_cv_deplibs_check_method=pass_all
6883 ;;
6884
6885 rdos*)
6886 lt_cv_deplibs_check_method=pass_all
6887 ;;
6888
6889 serenity*)
6890 lt_cv_deplibs_check_method=pass_all
6891 ;;
6892
6893 solaris*)
6894 lt_cv_deplibs_check_method=pass_all
6895 ;;
6896
6897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6898 lt_cv_deplibs_check_method=pass_all
6899 ;;
6900
6901 sysv4 | sysv4.3*)
6902 case $host_vendor in
6903 motorola)
6904 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]'
6905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6906 ;;
6907 ncr)
6908 lt_cv_deplibs_check_method=pass_all
6909 ;;
6910 sequent)
6911 lt_cv_file_magic_cmd='/bin/file'
6912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6913 ;;
6914 sni)
6915 lt_cv_file_magic_cmd='/bin/file'
6916 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6917 lt_cv_file_magic_test_file=/lib/libc.so
6918 ;;
6919 siemens)
6920 lt_cv_deplibs_check_method=pass_all
6921 ;;
6922 pc)
6923 lt_cv_deplibs_check_method=pass_all
6924 ;;
6925 esac
6926 ;;
6927
6928 tpf*)
6929 lt_cv_deplibs_check_method=pass_all
6930 ;;
6931 os2*)
6932 lt_cv_deplibs_check_method=pass_all
6933 ;;
6934 esac
6935 ;;
6936 esac
6937 fi
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6939 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6940
6941 file_magic_glob=
6942 want_nocaseglob=no
6943 if test "$build" = "$host"; then
6944 case $host_os in
6945 mingw* | windows* | pw32*)
6946 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6947 want_nocaseglob=yes
6948 else
6949 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6950 fi
6951 ;;
6952 esac
6953 fi
6954
6955 file_magic_cmd=$lt_cv_file_magic_cmd
6956 deplibs_check_method=$lt_cv_deplibs_check_method
6957 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980 if test -n "$ac_tool_prefix"; then
6981 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6982 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 printf %s "checking for $ac_word... " >&6; }
6985 if test ${ac_cv_prog_DLLTOOL+y}
6986 then :
6987 printf %s "(cached) " >&6
6988 else case e in #(
6989 e) if test -n "$DLLTOOL"; then
6990 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995 IFS=$as_save_IFS
6996 case $as_dir in #(((
6997 '') as_dir=./ ;;
6998 */) ;;
6999 *) as_dir=$as_dir/ ;;
7000 esac
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007 done
7008 done
7009 IFS=$as_save_IFS
7010
7011 fi ;;
7012 esac
7013 fi
7014 DLLTOOL=$ac_cv_prog_DLLTOOL
7015 if test -n "$DLLTOOL"; then
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7017 printf "%s\n" "$DLLTOOL" >&6; }
7018 else
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 printf "%s\n" "no" >&6; }
7021 fi
7022
7023
7024 fi
7025 if test -z "$ac_cv_prog_DLLTOOL"; then
7026 ac_ct_DLLTOOL=$DLLTOOL
7027 # Extract the first word of "dlltool", so it can be a program name with args.
7028 set dummy dlltool; ac_word=$2
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 printf %s "checking for $ac_word... " >&6; }
7031 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7032 then :
7033 printf %s "(cached) " >&6
7034 else case e in #(
7035 e) if test -n "$ac_ct_DLLTOOL"; then
7036 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 case $as_dir in #(((
7043 '') as_dir=./ ;;
7044 */) ;;
7045 *) as_dir=$as_dir/ ;;
7046 esac
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi ;;
7058 esac
7059 fi
7060 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7061 if test -n "$ac_ct_DLLTOOL"; then
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7063 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7064 else
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 printf "%s\n" "no" >&6; }
7067 fi
7068
7069 if test "x$ac_ct_DLLTOOL" = x; then
7070 DLLTOOL="false"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078 DLLTOOL=$ac_ct_DLLTOOL
7079 fi
7080 else
7081 DLLTOOL="$ac_cv_prog_DLLTOOL"
7082 fi
7083
7084 test -z "$DLLTOOL" && DLLTOOL=dlltool
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7096 printf %s "checking how to associate runtime and link libraries... " >&6; }
7097 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7098 then :
7099 printf %s "(cached) " >&6
7100 else case e in #(
7101 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7102
7103 case $host_os in
7104 cygwin* | mingw* | windows* | pw32* | cegcc*)
7105 # two different shell functions defined in ltmain.sh;
7106 # decide which one to use based on capabilities of $DLLTOOL
7107 case `$DLLTOOL --help 2>&1` in
7108 *--identify-strict*)
7109 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7110 ;;
7111 *)
7112 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7113 ;;
7114 esac
7115 ;;
7116 *)
7117 # fallback: assume linklib IS sharedlib
7118 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7119 ;;
7120 esac
7121 ;;
7122 esac
7123 fi
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7125 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7126 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7127 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7128
7129
7130
7131
7132
7133
7134
7135
7136 if test -n "$ac_tool_prefix"; then
7137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 printf %s "checking for $ac_word... " >&6; }
7141 if test ${ac_cv_prog_RANLIB+y}
7142 then :
7143 printf %s "(cached) " >&6
7144 else case e in #(
7145 e) if test -n "$RANLIB"; then
7146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151 IFS=$as_save_IFS
7152 case $as_dir in #(((
7153 '') as_dir=./ ;;
7154 */) ;;
7155 *) as_dir=$as_dir/ ;;
7156 esac
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163 done
7164 done
7165 IFS=$as_save_IFS
7166
7167 fi ;;
7168 esac
7169 fi
7170 RANLIB=$ac_cv_prog_RANLIB
7171 if test -n "$RANLIB"; then
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7173 printf "%s\n" "$RANLIB" >&6; }
7174 else
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 printf "%s\n" "no" >&6; }
7177 fi
7178
7179
7180 fi
7181 if test -z "$ac_cv_prog_RANLIB"; then
7182 ac_ct_RANLIB=$RANLIB
7183 # Extract the first word of "ranlib", so it can be a program name with args.
7184 set dummy ranlib; ac_word=$2
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186 printf %s "checking for $ac_word... " >&6; }
7187 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7188 then :
7189 printf %s "(cached) " >&6
7190 else case e in #(
7191 e) if test -n "$ac_ct_RANLIB"; then
7192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197 IFS=$as_save_IFS
7198 case $as_dir in #(((
7199 '') as_dir=./ ;;
7200 */) ;;
7201 *) as_dir=$as_dir/ ;;
7202 esac
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_ac_ct_RANLIB="ranlib"
7206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213 fi ;;
7214 esac
7215 fi
7216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7217 if test -n "$ac_ct_RANLIB"; then
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7219 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7220 else
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 printf "%s\n" "no" >&6; }
7223 fi
7224
7225 if test "x$ac_ct_RANLIB" = x; then
7226 RANLIB=":"
7227 else
7228 case $cross_compiling:$ac_tool_warned in
7229 yes:)
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7232 ac_tool_warned=yes ;;
7233 esac
7234 RANLIB=$ac_ct_RANLIB
7235 fi
7236 else
7237 RANLIB="$ac_cv_prog_RANLIB"
7238 fi
7239
7240 if test -n "$ac_tool_prefix"; then
7241 for ac_prog in ar
7242 do
7243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 printf %s "checking for $ac_word... " >&6; }
7247 if test ${ac_cv_prog_AR+y}
7248 then :
7249 printf %s "(cached) " >&6
7250 else case e in #(
7251 e) if test -n "$AR"; then
7252 ac_cv_prog_AR="$AR" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257 IFS=$as_save_IFS
7258 case $as_dir in #(((
7259 '') as_dir=./ ;;
7260 */) ;;
7261 *) as_dir=$as_dir/ ;;
7262 esac
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7272
7273 fi ;;
7274 esac
7275 fi
7276 AR=$ac_cv_prog_AR
7277 if test -n "$AR"; then
7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7279 printf "%s\n" "$AR" >&6; }
7280 else
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 printf "%s\n" "no" >&6; }
7283 fi
7284
7285
7286 test -n "$AR" && break
7287 done
7288 fi
7289 if test -z "$AR"; then
7290 ac_ct_AR=$AR
7291 for ac_prog in ar
7292 do
7293 # Extract the first word of "$ac_prog", so it can be a program name with args.
7294 set dummy $ac_prog; ac_word=$2
7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 printf %s "checking for $ac_word... " >&6; }
7297 if test ${ac_cv_prog_ac_ct_AR+y}
7298 then :
7299 printf %s "(cached) " >&6
7300 else case e in #(
7301 e) if test -n "$ac_ct_AR"; then
7302 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307 IFS=$as_save_IFS
7308 case $as_dir in #(((
7309 '') as_dir=./ ;;
7310 */) ;;
7311 *) as_dir=$as_dir/ ;;
7312 esac
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_ac_ct_AR="$ac_prog"
7316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319 done
7320 done
7321 IFS=$as_save_IFS
7322
7323 fi ;;
7324 esac
7325 fi
7326 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7327 if test -n "$ac_ct_AR"; then
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7329 printf "%s\n" "$ac_ct_AR" >&6; }
7330 else
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 printf "%s\n" "no" >&6; }
7333 fi
7334
7335
7336 test -n "$ac_ct_AR" && break
7337 done
7338
7339 if test "x$ac_ct_AR" = x; then
7340 AR="false"
7341 else
7342 case $cross_compiling:$ac_tool_warned in
7343 yes:)
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346 ac_tool_warned=yes ;;
7347 esac
7348 AR=$ac_ct_AR
7349 fi
7350 fi
7351
7352 : ${AR=ar}
7353
7354
7355
7356
7357
7358
7359 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7360 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7361 # higher priority because that's what people were doing historically (setting
7362 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7363 # variable obsoleted/removed.
7364
7365 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7366 lt_ar_flags=$AR_FLAGS
7367
7368
7369
7370
7371
7372
7373 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7374 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7375
7376
7377
7378
7379
7380
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7382 printf %s "checking for archiver @FILE support... " >&6; }
7383 if test ${lt_cv_ar_at_file+y}
7384 then :
7385 printf %s "(cached) " >&6
7386 else case e in #(
7387 e) lt_cv_ar_at_file=no
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390
7391 int
7392 main (void)
7393 {
7394
7395 ;
7396 return 0;
7397 }
7398 _ACEOF
7399 if ac_fn_c_try_compile "$LINENO"
7400 then :
7401 echo conftest.$ac_objext > conftest.lst
7402 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7404 (eval $lt_ar_try) 2>&5
7405 ac_status=$?
7406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }
7408 if test 0 -eq "$ac_status"; then
7409 # Ensure the archiver fails upon bogus file names.
7410 rm -f conftest.$ac_objext libconftest.a
7411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7412 (eval $lt_ar_try) 2>&5
7413 ac_status=$?
7414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7415 test $ac_status = 0; }
7416 if test 0 -ne "$ac_status"; then
7417 lt_cv_ar_at_file=@
7418 fi
7419 fi
7420 rm -f conftest.* libconftest.a
7421
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7424 ;;
7425 esac
7426 fi
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7428 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7429
7430 if test no = "$lt_cv_ar_at_file"; then
7431 archiver_list_spec=
7432 else
7433 archiver_list_spec=$lt_cv_ar_at_file
7434 fi
7435
7436
7437
7438
7439
7440
7441
7442 if test -n "$ac_tool_prefix"; then
7443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7444 set dummy ${ac_tool_prefix}strip; ac_word=$2
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 printf %s "checking for $ac_word... " >&6; }
7447 if test ${ac_cv_prog_STRIP+y}
7448 then :
7449 printf %s "(cached) " >&6
7450 else case e in #(
7451 e) if test -n "$STRIP"; then
7452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 case $as_dir in #(((
7459 '') as_dir=./ ;;
7460 */) ;;
7461 *) as_dir=$as_dir/ ;;
7462 esac
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7467 break 2
7468 fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473 fi ;;
7474 esac
7475 fi
7476 STRIP=$ac_cv_prog_STRIP
7477 if test -n "$STRIP"; then
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7479 printf "%s\n" "$STRIP" >&6; }
7480 else
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 printf "%s\n" "no" >&6; }
7483 fi
7484
7485
7486 fi
7487 if test -z "$ac_cv_prog_STRIP"; then
7488 ac_ct_STRIP=$STRIP
7489 # Extract the first word of "strip", so it can be a program name with args.
7490 set dummy strip; ac_word=$2
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 printf %s "checking for $ac_word... " >&6; }
7493 if test ${ac_cv_prog_ac_ct_STRIP+y}
7494 then :
7495 printf %s "(cached) " >&6
7496 else case e in #(
7497 e) if test -n "$ac_ct_STRIP"; then
7498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 case $as_dir in #(((
7505 '') as_dir=./ ;;
7506 */) ;;
7507 *) as_dir=$as_dir/ ;;
7508 esac
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_ac_ct_STRIP="strip"
7512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519 fi ;;
7520 esac
7521 fi
7522 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7523 if test -n "$ac_ct_STRIP"; then
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7525 printf "%s\n" "$ac_ct_STRIP" >&6; }
7526 else
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 printf "%s\n" "no" >&6; }
7529 fi
7530
7531 if test "x$ac_ct_STRIP" = x; then
7532 STRIP=":"
7533 else
7534 case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540 STRIP=$ac_ct_STRIP
7541 fi
7542 else
7543 STRIP="$ac_cv_prog_STRIP"
7544 fi
7545
7546 test -z "$STRIP" && STRIP=:
7547
7548
7549
7550
7551
7552
7553
7554 test -z "$RANLIB" && RANLIB=:
7555
7556
7557
7558
7559
7560
7561 # Determine commands to create old-style static archives.
7562 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7563 old_postinstall_cmds='chmod 644 $oldlib'
7564 old_postuninstall_cmds=
7565
7566 if test -n "$RANLIB"; then
7567 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7568 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7569 fi
7570
7571 case $host_os in
7572 darwin*)
7573 lock_old_archive_extraction=yes ;;
7574 *)
7575 lock_old_archive_extraction=no ;;
7576 esac
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616 # If no C compiler was specified, use CC.
7617 LTCC=${LTCC-"$CC"}
7618
7619 # If no C compiler flags were specified, use CFLAGS.
7620 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7621
7622 # Allow CC to be a program name with arguments.
7623 compiler=$CC
7624
7625
7626 # Check for command to grab the raw symbol name followed by C symbol from nm.
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7628 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7629 if test ${lt_cv_sys_global_symbol_pipe+y}
7630 then :
7631 printf %s "(cached) " >&6
7632 else case e in #(
7633 e)
7634 # These are sane defaults that work on at least a few old systems.
7635 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7636
7637 # Character class describing NM global symbol codes.
7638 symcode='[BCDEGRST]'
7639
7640 # Regexp to match symbols that can be accessed directly from C.
7641 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7642
7643 # Define system-specific variables.
7644 case $host_os in
7645 aix*)
7646 symcode='[BCDT]'
7647 ;;
7648 cygwin* | mingw* | windows* | pw32* | cegcc*)
7649 symcode='[ABCDGISTW]'
7650 ;;
7651 hpux*)
7652 if test ia64 = "$host_cpu"; then
7653 symcode='[ABCDEGRST]'
7654 fi
7655 ;;
7656 irix* | nonstopux*)
7657 symcode='[BCDEGRST]'
7658 ;;
7659 osf*)
7660 symcode='[BCDEGQRST]'
7661 ;;
7662 solaris*)
7663 symcode='[BCDRT]'
7664 ;;
7665 sco3.2v5*)
7666 symcode='[DT]'
7667 ;;
7668 sysv4.2uw2*)
7669 symcode='[DT]'
7670 ;;
7671 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7672 symcode='[ABDT]'
7673 ;;
7674 sysv4)
7675 symcode='[DFNSTU]'
7676 ;;
7677 esac
7678
7679 # If we're using GNU nm, then use its standard symbol codes.
7680 case `$NM -V 2>&1` in
7681 *GNU* | *'with BFD'*)
7682 symcode='[ABCDGIRSTW]' ;;
7683 esac
7684
7685 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7686 # Gets list of data symbols to import.
7687 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7688 # Adjust the below global symbol transforms to fixup imported variables.
7689 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7690 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7691 lt_c_name_lib_hook="\
7692 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7693 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7694 else
7695 # Disable hooks by default.
7696 lt_cv_sys_global_symbol_to_import=
7697 lt_cdecl_hook=
7698 lt_c_name_hook=
7699 lt_c_name_lib_hook=
7700 fi
7701
7702 # Transform an extracted symbol line into a proper C declaration.
7703 # Some systems (esp. on ia64) link data and code symbols differently,
7704 # so use this general approach.
7705 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7706 $lt_cdecl_hook\
7707 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7708 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7709
7710 # Transform an extracted symbol line into symbol name and symbol address
7711 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7712 $lt_c_name_hook\
7713 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7714 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7715
7716 # Transform an extracted symbol line into symbol name with lib prefix and
7717 # symbol address.
7718 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7719 $lt_c_name_lib_hook\
7720 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7721 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7722 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7723
7724 # Handle CRLF in mingw tool chain
7725 opt_cr=
7726 case $build_os in
7727 mingw* | windows*)
7728 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7729 ;;
7730 esac
7731
7732 # Try without a prefix underscore, then with it.
7733 for ac_symprfx in "" "_"; do
7734
7735 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7736 symxfrm="\\1 $ac_symprfx\\2 \\2"
7737
7738 # Write the raw and C identifiers.
7739 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7740 # Fake it for dumpbin and say T for any non-static function,
7741 # D for any global variable and I for any imported variable.
7742 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7743 # which start with @ or ?.
7744 lt_cv_sys_global_symbol_pipe="$AWK '"\
7745 " {last_section=section; section=\$ 3};"\
7746 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7747 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7748 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7749 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7750 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7751 " \$ 0!~/External *\|/{next};"\
7752 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7753 " {if(hide[section]) next};"\
7754 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7755 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7756 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7757 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7758 " ' prfx=^$ac_symprfx"
7759 else
7760 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7761 fi
7762 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7763
7764 # Check to see that the pipe works correctly.
7765 pipe_works=no
7766
7767 rm -f conftest*
7768 cat > conftest.$ac_ext <<_LT_EOF
7769 #ifdef __cplusplus
7770 extern "C" {
7771 #endif
7772 char nm_test_var;
7773 void nm_test_func(void);
7774 void nm_test_func(void){}
7775 #ifdef __cplusplus
7776 }
7777 #endif
7778 int main(void){nm_test_var='a';nm_test_func();return(0);}
7779 _LT_EOF
7780
7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782 (eval $ac_compile) 2>&5
7783 ac_status=$?
7784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 # Now try to grab the symbols.
7787 nlist=conftest.nm
7788 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7789 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7790 # Try sorting and uniquifying the output.
7791 if sort "$nlist" | uniq > "$nlist"T; then
7792 mv -f "$nlist"T "$nlist"
7793 else
7794 rm -f "$nlist"T
7795 fi
7796
7797 # Make sure that we snagged all the symbols we need.
7798 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7799 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7800 cat <<_LT_EOF > conftest.$ac_ext
7801 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7802 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7803 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7804 relocations are performed -- see ld's documentation on pseudo-relocs. */
7805 # define LT_DLSYM_CONST
7806 #elif defined __osf__
7807 /* This system does not cope well with relocations in const data. */
7808 # define LT_DLSYM_CONST
7809 #else
7810 # define LT_DLSYM_CONST const
7811 #endif
7812
7813 #ifdef __cplusplus
7814 extern "C" {
7815 #endif
7816
7817 _LT_EOF
7818 # Now generate the symbol file.
7819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7820
7821 cat <<_LT_EOF >> conftest.$ac_ext
7822
7823 /* The mapping between symbol names and symbols. */
7824 LT_DLSYM_CONST struct {
7825 const char *name;
7826 void *address;
7827 }
7828 lt__PROGRAM__LTX_preloaded_symbols[] =
7829 {
7830 { "@PROGRAM@", (void *) 0 },
7831 _LT_EOF
7832 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7833 cat <<\_LT_EOF >> conftest.$ac_ext
7834 {0, (void *) 0}
7835 };
7836
7837 /* This works around a problem in FreeBSD linker */
7838 #ifdef FREEBSD_WORKAROUND
7839 static const void *lt_preloaded_setup() {
7840 return lt__PROGRAM__LTX_preloaded_symbols;
7841 }
7842 #endif
7843
7844 #ifdef __cplusplus
7845 }
7846 #endif
7847 _LT_EOF
7848 # Now try linking the two files.
7849 mv conftest.$ac_objext conftstm.$ac_objext
7850 lt_globsym_save_LIBS=$LIBS
7851 lt_globsym_save_CFLAGS=$CFLAGS
7852 LIBS=conftstm.$ac_objext
7853 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7855 (eval $ac_link) 2>&5
7856 ac_status=$?
7857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7859 pipe_works=yes
7860 fi
7861 LIBS=$lt_globsym_save_LIBS
7862 CFLAGS=$lt_globsym_save_CFLAGS
7863 else
7864 echo "cannot find nm_test_func in $nlist" >&5
7865 fi
7866 else
7867 echo "cannot find nm_test_var in $nlist" >&5
7868 fi
7869 else
7870 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7871 fi
7872 else
7873 echo "$progname: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7875 fi
7876 rm -rf conftest* conftst*
7877
7878 # Do not use the global_symbol_pipe unless it works.
7879 if test yes = "$pipe_works"; then
7880 break
7881 else
7882 lt_cv_sys_global_symbol_pipe=
7883 fi
7884 done
7885 ;;
7886 esac
7887 fi
7888
7889 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7890 lt_cv_sys_global_symbol_to_cdecl=
7891 fi
7892 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7894 printf "%s\n" "failed" >&6; }
7895 else
7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7897 printf "%s\n" "ok" >&6; }
7898 fi
7899
7900 # Response file support.
7901 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7902 nm_file_list_spec='@'
7903 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7904 nm_file_list_spec='@'
7905 fi
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7944 printf %s "checking for sysroot... " >&6; }
7945
7946 # Check whether --with-sysroot was given.
7947 if test ${with_sysroot+y}
7948 then :
7949 withval=$with_sysroot;
7950 else case e in #(
7951 e) with_sysroot=no ;;
7952 esac
7953 fi
7954
7955
7956 lt_sysroot=
7957 case $with_sysroot in #(
7958 yes)
7959 if test yes = "$GCC"; then
7960 # Trim trailing / since we'll always append absolute paths and we want
7961 # to avoid //, if only for less confusing output for the user.
7962 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7963 fi
7964 ;; #(
7965 /*)
7966 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7967 ;; #(
7968 no|'')
7969 ;; #(
7970 *)
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7972 printf "%s\n" "$with_sysroot" >&6; }
7973 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7974 ;;
7975 esac
7976
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7978 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7979
7980
7981
7982
7983
7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7985 printf %s "checking for a working dd... " >&6; }
7986 if test ${ac_cv_path_lt_DD+y}
7987 then :
7988 printf %s "(cached) " >&6
7989 else case e in #(
7990 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7991 cat conftest.i conftest.i >conftest2.i
7992 : ${lt_DD:=$DD}
7993 if test -z "$lt_DD"; then
7994 ac_path_lt_DD_found=false
7995 # Loop through the user's path and test for each of PROGNAME-LIST
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999 IFS=$as_save_IFS
8000 case $as_dir in #(((
8001 '') as_dir=./ ;;
8002 */) ;;
8003 *) as_dir=$as_dir/ ;;
8004 esac
8005 for ac_prog in dd
8006 do
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8009 as_fn_executable_p "$ac_path_lt_DD" || continue
8010 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8011 cmp -s conftest.i conftest.out \
8012 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8013 fi
8014 $ac_path_lt_DD_found && break 3
8015 done
8016 done
8017 done
8018 IFS=$as_save_IFS
8019 if test -z "$ac_cv_path_lt_DD"; then
8020 :
8021 fi
8022 else
8023 ac_cv_path_lt_DD=$lt_DD
8024 fi
8025
8026 rm -f conftest.i conftest2.i conftest.out ;;
8027 esac
8028 fi
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8030 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8031
8032
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8034 printf %s "checking how to truncate binary pipes... " >&6; }
8035 if test ${lt_cv_truncate_bin+y}
8036 then :
8037 printf %s "(cached) " >&6
8038 else case e in #(
8039 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8040 cat conftest.i conftest.i >conftest2.i
8041 lt_cv_truncate_bin=
8042 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8043 cmp -s conftest.i conftest.out \
8044 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8045 fi
8046 rm -f conftest.i conftest2.i conftest.out
8047 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8048 esac
8049 fi
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8051 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8052
8053
8054
8055
8056
8057
8058
8059 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8060 func_cc_basename ()
8061 {
8062 for cc_temp in $*""; do
8063 case $cc_temp in
8064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8066 \-*) ;;
8067 *) break;;
8068 esac
8069 done
8070 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8071 }
8072
8073 # Check whether --enable-libtool-lock was given.
8074 if test ${enable_libtool_lock+y}
8075 then :
8076 enableval=$enable_libtool_lock;
8077 fi
8078
8079 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8080
8081 # Some flags need to be propagated to the compiler or linker for good
8082 # libtool support.
8083 case $host in
8084 ia64-*-hpux*)
8085 # Find out what ABI is being produced by ac_compile, and set mode
8086 # options accordingly.
8087 echo 'int i;' > conftest.$ac_ext
8088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8089 (eval $ac_compile) 2>&5
8090 ac_status=$?
8091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8092 test $ac_status = 0; }; then
8093 case `$FILECMD conftest.$ac_objext` in
8094 *ELF-32*)
8095 HPUX_IA64_MODE=32
8096 ;;
8097 *ELF-64*)
8098 HPUX_IA64_MODE=64
8099 ;;
8100 esac
8101 fi
8102 rm -rf conftest*
8103 ;;
8104 *-*-irix6*)
8105 # Find out what ABI is being produced by ac_compile, and set linker
8106 # options accordingly.
8107 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8109 (eval $ac_compile) 2>&5
8110 ac_status=$?
8111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8112 test $ac_status = 0; }; then
8113 if test yes = "$lt_cv_prog_gnu_ld"; then
8114 case `$FILECMD conftest.$ac_objext` in
8115 *32-bit*)
8116 LD="${LD-ld} -melf32bsmip"
8117 ;;
8118 *N32*)
8119 LD="${LD-ld} -melf32bmipn32"
8120 ;;
8121 *64-bit*)
8122 LD="${LD-ld} -melf64bmip"
8123 ;;
8124 esac
8125 else
8126 case `$FILECMD conftest.$ac_objext` in
8127 *32-bit*)
8128 LD="${LD-ld} -32"
8129 ;;
8130 *N32*)
8131 LD="${LD-ld} -n32"
8132 ;;
8133 *64-bit*)
8134 LD="${LD-ld} -64"
8135 ;;
8136 esac
8137 fi
8138 fi
8139 rm -rf conftest*
8140 ;;
8141
8142 mips64*-*linux*)
8143 # Find out what ABI is being produced by ac_compile, and set linker
8144 # options accordingly.
8145 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8147 (eval $ac_compile) 2>&5
8148 ac_status=$?
8149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8150 test $ac_status = 0; }; then
8151 emul=elf
8152 case `$FILECMD conftest.$ac_objext` in
8153 *32-bit*)
8154 emul="${emul}32"
8155 ;;
8156 *64-bit*)
8157 emul="${emul}64"
8158 ;;
8159 esac
8160 case `$FILECMD conftest.$ac_objext` in
8161 *MSB*)
8162 emul="${emul}btsmip"
8163 ;;
8164 *LSB*)
8165 emul="${emul}ltsmip"
8166 ;;
8167 esac
8168 case `$FILECMD conftest.$ac_objext` in
8169 *N32*)
8170 emul="${emul}n32"
8171 ;;
8172 esac
8173 LD="${LD-ld} -m $emul"
8174 fi
8175 rm -rf conftest*
8176 ;;
8177
8178 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8179 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8180 # Find out what ABI is being produced by ac_compile, and set linker
8181 # options accordingly. Note that the listed cases only cover the
8182 # situations where additional linker options are needed (such as when
8183 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8184 # vice versa); the common cases where no linker options are needed do
8185 # not appear in the list.
8186 echo 'int i;' > conftest.$ac_ext
8187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8188 (eval $ac_compile) 2>&5
8189 ac_status=$?
8190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8191 test $ac_status = 0; }; then
8192 case `$FILECMD conftest.o` in
8193 *32-bit*)
8194 case $host in
8195 x86_64-*kfreebsd*-gnu)
8196 LD="${LD-ld} -m elf_i386_fbsd"
8197 ;;
8198 x86_64-*linux*|x86_64-gnu*)
8199 case `$FILECMD conftest.o` in
8200 *x86-64*)
8201 LD="${LD-ld} -m elf32_x86_64"
8202 ;;
8203 *)
8204 LD="${LD-ld} -m elf_i386"
8205 ;;
8206 esac
8207 ;;
8208 powerpc64le-*linux*)
8209 LD="${LD-ld} -m elf32lppclinux"
8210 ;;
8211 powerpc64-*linux*)
8212 LD="${LD-ld} -m elf32ppclinux"
8213 ;;
8214 s390x-*linux*)
8215 LD="${LD-ld} -m elf_s390"
8216 ;;
8217 sparc64-*linux*)
8218 LD="${LD-ld} -m elf32_sparc"
8219 ;;
8220 esac
8221 ;;
8222 *64-bit*)
8223 case $host in
8224 x86_64-*kfreebsd*-gnu)
8225 LD="${LD-ld} -m elf_x86_64_fbsd"
8226 ;;
8227 x86_64-*linux*|x86_64-gnu*)
8228 LD="${LD-ld} -m elf_x86_64"
8229 ;;
8230 powerpcle-*linux*)
8231 LD="${LD-ld} -m elf64lppc"
8232 ;;
8233 powerpc-*linux*)
8234 LD="${LD-ld} -m elf64ppc"
8235 ;;
8236 s390*-*linux*|s390*-*tpf*)
8237 LD="${LD-ld} -m elf64_s390"
8238 ;;
8239 sparc*-*linux*)
8240 LD="${LD-ld} -m elf64_sparc"
8241 ;;
8242 esac
8243 ;;
8244 esac
8245 fi
8246 rm -rf conftest*
8247 ;;
8248
8249 *-*-sco3.2v5*)
8250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8251 SAVE_CFLAGS=$CFLAGS
8252 CFLAGS="$CFLAGS -belf"
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8254 printf %s "checking whether the C compiler needs -belf... " >&6; }
8255 if test ${lt_cv_cc_needs_belf+y}
8256 then :
8257 printf %s "(cached) " >&6
8258 else case e in #(
8259 e) ac_ext=c
8260 ac_cpp='$CPP $CPPFLAGS'
8261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8264
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267
8268 int
8269 main (void)
8270 {
8271
8272 ;
8273 return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"
8277 then :
8278 lt_cv_cc_needs_belf=yes
8279 else case e in #(
8280 e) lt_cv_cc_needs_belf=no ;;
8281 esac
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8284 conftest$ac_exeext conftest.$ac_ext
8285 ac_ext=c
8286 ac_cpp='$CPP $CPPFLAGS'
8287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8290 ;;
8291 esac
8292 fi
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8294 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8295 if test yes != "$lt_cv_cc_needs_belf"; then
8296 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8297 CFLAGS=$SAVE_CFLAGS
8298 fi
8299 ;;
8300 *-*solaris*)
8301 # Find out what ABI is being produced by ac_compile, and set linker
8302 # options accordingly.
8303 echo 'int i;' > conftest.$ac_ext
8304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8305 (eval $ac_compile) 2>&5
8306 ac_status=$?
8307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8308 test $ac_status = 0; }; then
8309 case `$FILECMD conftest.o` in
8310 *64-bit*)
8311 case $lt_cv_prog_gnu_ld in
8312 yes*)
8313 case $host in
8314 i?86-*-solaris*|x86_64-*-solaris*)
8315 LD="${LD-ld} -m elf_x86_64"
8316 ;;
8317 sparc*-*-solaris*)
8318 LD="${LD-ld} -m elf64_sparc"
8319 ;;
8320 esac
8321 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8322 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8323 LD=${LD-ld}_sol2
8324 fi
8325 ;;
8326 *)
8327 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8328 LD="${LD-ld} -64"
8329 fi
8330 ;;
8331 esac
8332 ;;
8333 esac
8334 fi
8335 rm -rf conftest*
8336 ;;
8337 esac
8338
8339 need_locks=$enable_libtool_lock
8340
8341 if test -n "$ac_tool_prefix"; then
8342 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8343 set dummy ${ac_tool_prefix}mt; ac_word=$2
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 printf %s "checking for $ac_word... " >&6; }
8346 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8347 then :
8348 printf %s "(cached) " >&6
8349 else case e in #(
8350 e) if test -n "$MANIFEST_TOOL"; then
8351 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356 IFS=$as_save_IFS
8357 case $as_dir in #(((
8358 '') as_dir=./ ;;
8359 */) ;;
8360 *) as_dir=$as_dir/ ;;
8361 esac
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8364 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368 done
8369 done
8370 IFS=$as_save_IFS
8371
8372 fi ;;
8373 esac
8374 fi
8375 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8376 if test -n "$MANIFEST_TOOL"; then
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8378 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8379 else
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 printf "%s\n" "no" >&6; }
8382 fi
8383
8384
8385 fi
8386 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8387 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8388 # Extract the first word of "mt", so it can be a program name with args.
8389 set dummy mt; ac_word=$2
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 printf %s "checking for $ac_word... " >&6; }
8392 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8393 then :
8394 printf %s "(cached) " >&6
8395 else case e in #(
8396 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8397 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402 IFS=$as_save_IFS
8403 case $as_dir in #(((
8404 '') as_dir=./ ;;
8405 */) ;;
8406 *) as_dir=$as_dir/ ;;
8407 esac
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8410 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8412 break 2
8413 fi
8414 done
8415 done
8416 IFS=$as_save_IFS
8417
8418 fi ;;
8419 esac
8420 fi
8421 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8422 if test -n "$ac_ct_MANIFEST_TOOL"; then
8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8424 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8425 else
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 printf "%s\n" "no" >&6; }
8428 fi
8429
8430 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8431 MANIFEST_TOOL=":"
8432 else
8433 case $cross_compiling:$ac_tool_warned in
8434 yes:)
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8436 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8437 ac_tool_warned=yes ;;
8438 esac
8439 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8440 fi
8441 else
8442 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8443 fi
8444
8445 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8447 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8448 if test ${lt_cv_path_manifest_tool+y}
8449 then :
8450 printf %s "(cached) " >&6
8451 else case e in #(
8452 e) lt_cv_path_manifest_tool=no
8453 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8454 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8455 cat conftest.err >&5
8456 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8457 lt_cv_path_manifest_tool=yes
8458 fi
8459 rm -f conftest* ;;
8460 esac
8461 fi
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8463 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8464 if test yes != "$lt_cv_path_manifest_tool"; then
8465 MANIFEST_TOOL=:
8466 fi
8467
8468
8469
8470
8471
8472
8473 case $host_os in
8474 rhapsody* | darwin*)
8475 if test -n "$ac_tool_prefix"; then
8476 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8477 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 printf %s "checking for $ac_word... " >&6; }
8480 if test ${ac_cv_prog_DSYMUTIL+y}
8481 then :
8482 printf %s "(cached) " >&6
8483 else case e in #(
8484 e) if test -n "$DSYMUTIL"; then
8485 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8486 else
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8489 do
8490 IFS=$as_save_IFS
8491 case $as_dir in #(((
8492 '') as_dir=./ ;;
8493 */) ;;
8494 *) as_dir=$as_dir/ ;;
8495 esac
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8498 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502 done
8503 done
8504 IFS=$as_save_IFS
8505
8506 fi ;;
8507 esac
8508 fi
8509 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8510 if test -n "$DSYMUTIL"; then
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8512 printf "%s\n" "$DSYMUTIL" >&6; }
8513 else
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 printf "%s\n" "no" >&6; }
8516 fi
8517
8518
8519 fi
8520 if test -z "$ac_cv_prog_DSYMUTIL"; then
8521 ac_ct_DSYMUTIL=$DSYMUTIL
8522 # Extract the first word of "dsymutil", so it can be a program name with args.
8523 set dummy dsymutil; ac_word=$2
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 printf %s "checking for $ac_word... " >&6; }
8526 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8527 then :
8528 printf %s "(cached) " >&6
8529 else case e in #(
8530 e) if test -n "$ac_ct_DSYMUTIL"; then
8531 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536 IFS=$as_save_IFS
8537 case $as_dir in #(((
8538 '') as_dir=./ ;;
8539 */) ;;
8540 *) as_dir=$as_dir/ ;;
8541 esac
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548 done
8549 done
8550 IFS=$as_save_IFS
8551
8552 fi ;;
8553 esac
8554 fi
8555 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8556 if test -n "$ac_ct_DSYMUTIL"; then
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8558 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8559 else
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 printf "%s\n" "no" >&6; }
8562 fi
8563
8564 if test "x$ac_ct_DSYMUTIL" = x; then
8565 DSYMUTIL=":"
8566 else
8567 case $cross_compiling:$ac_tool_warned in
8568 yes:)
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8571 ac_tool_warned=yes ;;
8572 esac
8573 DSYMUTIL=$ac_ct_DSYMUTIL
8574 fi
8575 else
8576 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8577 fi
8578
8579 if test -n "$ac_tool_prefix"; then
8580 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 printf %s "checking for $ac_word... " >&6; }
8584 if test ${ac_cv_prog_NMEDIT+y}
8585 then :
8586 printf %s "(cached) " >&6
8587 else case e in #(
8588 e) if test -n "$NMEDIT"; then
8589 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594 IFS=$as_save_IFS
8595 case $as_dir in #(((
8596 '') as_dir=./ ;;
8597 */) ;;
8598 *) as_dir=$as_dir/ ;;
8599 esac
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8602 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8604 break 2
8605 fi
8606 done
8607 done
8608 IFS=$as_save_IFS
8609
8610 fi ;;
8611 esac
8612 fi
8613 NMEDIT=$ac_cv_prog_NMEDIT
8614 if test -n "$NMEDIT"; then
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8616 printf "%s\n" "$NMEDIT" >&6; }
8617 else
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 printf "%s\n" "no" >&6; }
8620 fi
8621
8622
8623 fi
8624 if test -z "$ac_cv_prog_NMEDIT"; then
8625 ac_ct_NMEDIT=$NMEDIT
8626 # Extract the first word of "nmedit", so it can be a program name with args.
8627 set dummy nmedit; ac_word=$2
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 printf %s "checking for $ac_word... " >&6; }
8630 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8631 then :
8632 printf %s "(cached) " >&6
8633 else case e in #(
8634 e) if test -n "$ac_ct_NMEDIT"; then
8635 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8636 else
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in $PATH
8639 do
8640 IFS=$as_save_IFS
8641 case $as_dir in #(((
8642 '') as_dir=./ ;;
8643 */) ;;
8644 *) as_dir=$as_dir/ ;;
8645 esac
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8648 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8650 break 2
8651 fi
8652 done
8653 done
8654 IFS=$as_save_IFS
8655
8656 fi ;;
8657 esac
8658 fi
8659 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8660 if test -n "$ac_ct_NMEDIT"; then
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8662 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8663 else
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 printf "%s\n" "no" >&6; }
8666 fi
8667
8668 if test "x$ac_ct_NMEDIT" = x; then
8669 NMEDIT=":"
8670 else
8671 case $cross_compiling:$ac_tool_warned in
8672 yes:)
8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8675 ac_tool_warned=yes ;;
8676 esac
8677 NMEDIT=$ac_ct_NMEDIT
8678 fi
8679 else
8680 NMEDIT="$ac_cv_prog_NMEDIT"
8681 fi
8682
8683 if test -n "$ac_tool_prefix"; then
8684 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8685 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 printf %s "checking for $ac_word... " >&6; }
8688 if test ${ac_cv_prog_LIPO+y}
8689 then :
8690 printf %s "(cached) " >&6
8691 else case e in #(
8692 e) if test -n "$LIPO"; then
8693 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8694 else
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8697 do
8698 IFS=$as_save_IFS
8699 case $as_dir in #(((
8700 '') as_dir=./ ;;
8701 */) ;;
8702 *) as_dir=$as_dir/ ;;
8703 esac
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8706 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8708 break 2
8709 fi
8710 done
8711 done
8712 IFS=$as_save_IFS
8713
8714 fi ;;
8715 esac
8716 fi
8717 LIPO=$ac_cv_prog_LIPO
8718 if test -n "$LIPO"; then
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8720 printf "%s\n" "$LIPO" >&6; }
8721 else
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 printf "%s\n" "no" >&6; }
8724 fi
8725
8726
8727 fi
8728 if test -z "$ac_cv_prog_LIPO"; then
8729 ac_ct_LIPO=$LIPO
8730 # Extract the first word of "lipo", so it can be a program name with args.
8731 set dummy lipo; ac_word=$2
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 printf %s "checking for $ac_word... " >&6; }
8734 if test ${ac_cv_prog_ac_ct_LIPO+y}
8735 then :
8736 printf %s "(cached) " >&6
8737 else case e in #(
8738 e) if test -n "$ac_ct_LIPO"; then
8739 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8740 else
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 for as_dir in $PATH
8743 do
8744 IFS=$as_save_IFS
8745 case $as_dir in #(((
8746 '') as_dir=./ ;;
8747 */) ;;
8748 *) as_dir=$as_dir/ ;;
8749 esac
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_ac_ct_LIPO="lipo"
8753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756 done
8757 done
8758 IFS=$as_save_IFS
8759
8760 fi ;;
8761 esac
8762 fi
8763 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8764 if test -n "$ac_ct_LIPO"; then
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8766 printf "%s\n" "$ac_ct_LIPO" >&6; }
8767 else
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 printf "%s\n" "no" >&6; }
8770 fi
8771
8772 if test "x$ac_ct_LIPO" = x; then
8773 LIPO=":"
8774 else
8775 case $cross_compiling:$ac_tool_warned in
8776 yes:)
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8779 ac_tool_warned=yes ;;
8780 esac
8781 LIPO=$ac_ct_LIPO
8782 fi
8783 else
8784 LIPO="$ac_cv_prog_LIPO"
8785 fi
8786
8787 if test -n "$ac_tool_prefix"; then
8788 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8789 set dummy ${ac_tool_prefix}otool; ac_word=$2
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 printf %s "checking for $ac_word... " >&6; }
8792 if test ${ac_cv_prog_OTOOL+y}
8793 then :
8794 printf %s "(cached) " >&6
8795 else case e in #(
8796 e) if test -n "$OTOOL"; then
8797 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802 IFS=$as_save_IFS
8803 case $as_dir in #(((
8804 '') as_dir=./ ;;
8805 */) ;;
8806 *) as_dir=$as_dir/ ;;
8807 esac
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8810 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8812 break 2
8813 fi
8814 done
8815 done
8816 IFS=$as_save_IFS
8817
8818 fi ;;
8819 esac
8820 fi
8821 OTOOL=$ac_cv_prog_OTOOL
8822 if test -n "$OTOOL"; then
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8824 printf "%s\n" "$OTOOL" >&6; }
8825 else
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 printf "%s\n" "no" >&6; }
8828 fi
8829
8830
8831 fi
8832 if test -z "$ac_cv_prog_OTOOL"; then
8833 ac_ct_OTOOL=$OTOOL
8834 # Extract the first word of "otool", so it can be a program name with args.
8835 set dummy otool; ac_word=$2
8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 printf %s "checking for $ac_word... " >&6; }
8838 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8839 then :
8840 printf %s "(cached) " >&6
8841 else case e in #(
8842 e) if test -n "$ac_ct_OTOOL"; then
8843 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8847 do
8848 IFS=$as_save_IFS
8849 case $as_dir in #(((
8850 '') as_dir=./ ;;
8851 */) ;;
8852 *) as_dir=$as_dir/ ;;
8853 esac
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_ac_ct_OTOOL="otool"
8857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860 done
8861 done
8862 IFS=$as_save_IFS
8863
8864 fi ;;
8865 esac
8866 fi
8867 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8868 if test -n "$ac_ct_OTOOL"; then
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8870 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8871 else
8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 printf "%s\n" "no" >&6; }
8874 fi
8875
8876 if test "x$ac_ct_OTOOL" = x; then
8877 OTOOL=":"
8878 else
8879 case $cross_compiling:$ac_tool_warned in
8880 yes:)
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8883 ac_tool_warned=yes ;;
8884 esac
8885 OTOOL=$ac_ct_OTOOL
8886 fi
8887 else
8888 OTOOL="$ac_cv_prog_OTOOL"
8889 fi
8890
8891 if test -n "$ac_tool_prefix"; then
8892 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8893 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 printf %s "checking for $ac_word... " >&6; }
8896 if test ${ac_cv_prog_OTOOL64+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else case e in #(
8900 e) if test -n "$OTOOL64"; then
8901 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8905 do
8906 IFS=$as_save_IFS
8907 case $as_dir in #(((
8908 '') as_dir=./ ;;
8909 */) ;;
8910 *) as_dir=$as_dir/ ;;
8911 esac
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8916 break 2
8917 fi
8918 done
8919 done
8920 IFS=$as_save_IFS
8921
8922 fi ;;
8923 esac
8924 fi
8925 OTOOL64=$ac_cv_prog_OTOOL64
8926 if test -n "$OTOOL64"; then
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8928 printf "%s\n" "$OTOOL64" >&6; }
8929 else
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 printf "%s\n" "no" >&6; }
8932 fi
8933
8934
8935 fi
8936 if test -z "$ac_cv_prog_OTOOL64"; then
8937 ac_ct_OTOOL64=$OTOOL64
8938 # Extract the first word of "otool64", so it can be a program name with args.
8939 set dummy otool64; ac_word=$2
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 printf %s "checking for $ac_word... " >&6; }
8942 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8943 then :
8944 printf %s "(cached) " >&6
8945 else case e in #(
8946 e) if test -n "$ac_ct_OTOOL64"; then
8947 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952 IFS=$as_save_IFS
8953 case $as_dir in #(((
8954 '') as_dir=./ ;;
8955 */) ;;
8956 *) as_dir=$as_dir/ ;;
8957 esac
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_ac_ct_OTOOL64="otool64"
8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8962 break 2
8963 fi
8964 done
8965 done
8966 IFS=$as_save_IFS
8967
8968 fi ;;
8969 esac
8970 fi
8971 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8972 if test -n "$ac_ct_OTOOL64"; then
8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8974 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8975 else
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977 printf "%s\n" "no" >&6; }
8978 fi
8979
8980 if test "x$ac_ct_OTOOL64" = x; then
8981 OTOOL64=":"
8982 else
8983 case $cross_compiling:$ac_tool_warned in
8984 yes:)
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8986 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8987 ac_tool_warned=yes ;;
8988 esac
8989 OTOOL64=$ac_ct_OTOOL64
8990 fi
8991 else
8992 OTOOL64="$ac_cv_prog_OTOOL64"
8993 fi
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9022 printf %s "checking for -single_module linker flag... " >&6; }
9023 if test ${lt_cv_apple_cc_single_mod+y}
9024 then :
9025 printf %s "(cached) " >&6
9026 else case e in #(
9027 e) lt_cv_apple_cc_single_mod=no
9028 if test -z "$LT_MULTI_MODULE"; then
9029 # By default we will add the -single_module flag. You can override
9030 # by either setting the environment variable LT_MULTI_MODULE
9031 # non-empty at configure time, or by adding -multi_module to the
9032 # link flags.
9033 rm -rf libconftest.dylib*
9034 echo "int foo(void){return 1;}" > conftest.c
9035 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9036 -dynamiclib -Wl,-single_module conftest.c" >&5
9037 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9038 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9039 _lt_result=$?
9040 # If there is a non-empty error log, and "single_module"
9041 # appears in it, assume the flag caused a linker warning
9042 if test -s conftest.err && $GREP single_module conftest.err; then
9043 cat conftest.err >&5
9044 # Otherwise, if the output was created with a 0 exit code from
9045 # the compiler, it worked.
9046 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9047 lt_cv_apple_cc_single_mod=yes
9048 else
9049 cat conftest.err >&5
9050 fi
9051 rm -rf libconftest.dylib*
9052 rm -f conftest.*
9053 fi ;;
9054 esac
9055 fi
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9057 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9058
9059 # Feature test to disable chained fixups since it is not
9060 # compatible with '-undefined dynamic_lookup'
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9062 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9063 if test ${lt_cv_support_no_fixup_chains+y}
9064 then :
9065 printf %s "(cached) " >&6
9066 else case e in #(
9067 e) save_LDFLAGS=$LDFLAGS
9068 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071
9072 int
9073 main (void)
9074 {
9075
9076 ;
9077 return 0;
9078 }
9079 _ACEOF
9080 if ac_fn_c_try_link "$LINENO"
9081 then :
9082 lt_cv_support_no_fixup_chains=yes
9083 else case e in #(
9084 e) lt_cv_support_no_fixup_chains=no
9085 ;;
9086 esac
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9089 conftest$ac_exeext conftest.$ac_ext
9090 LDFLAGS=$save_LDFLAGS
9091
9092 ;;
9093 esac
9094 fi
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9096 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9097
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9099 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9100 if test ${lt_cv_ld_exported_symbols_list+y}
9101 then :
9102 printf %s "(cached) " >&6
9103 else case e in #(
9104 e) lt_cv_ld_exported_symbols_list=no
9105 save_LDFLAGS=$LDFLAGS
9106 echo "_main" > conftest.sym
9107 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110
9111 int
9112 main (void)
9113 {
9114
9115 ;
9116 return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"
9120 then :
9121 lt_cv_ld_exported_symbols_list=yes
9122 else case e in #(
9123 e) lt_cv_ld_exported_symbols_list=no ;;
9124 esac
9125 fi
9126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9127 conftest$ac_exeext conftest.$ac_ext
9128 LDFLAGS=$save_LDFLAGS
9129 ;;
9130 esac
9131 fi
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9133 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9134
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9136 printf %s "checking for -force_load linker flag... " >&6; }
9137 if test ${lt_cv_ld_force_load+y}
9138 then :
9139 printf %s "(cached) " >&6
9140 else case e in #(
9141 e) lt_cv_ld_force_load=no
9142 cat > conftest.c << _LT_EOF
9143 int forced_loaded() { return 2;}
9144 _LT_EOF
9145 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9146 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9147 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9148 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9149 echo "$RANLIB libconftest.a" >&5
9150 $RANLIB libconftest.a 2>&5
9151 cat > conftest.c << _LT_EOF
9152 int main(void) { return 0;}
9153 _LT_EOF
9154 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9155 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9156 _lt_result=$?
9157 if test -s conftest.err && $GREP force_load conftest.err; then
9158 cat conftest.err >&5
9159 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9160 lt_cv_ld_force_load=yes
9161 else
9162 cat conftest.err >&5
9163 fi
9164 rm -f conftest.err libconftest.a conftest conftest.c
9165 rm -rf conftest.dSYM
9166 ;;
9167 esac
9168 fi
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9170 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9171 case $host_os in
9172 rhapsody* | darwin1.[012])
9173 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9174 darwin1.*)
9175 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9176 darwin*)
9177 case $MACOSX_DEPLOYMENT_TARGET,$host in
9178 10.[012],*|,*powerpc*-darwin[5-8]*)
9179 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9180 *)
9181 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9182 if test yes = "$lt_cv_support_no_fixup_chains"; then
9183 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9184 fi
9185 ;;
9186 esac
9187 ;;
9188 esac
9189 if test yes = "$lt_cv_apple_cc_single_mod"; then
9190 _lt_dar_single_mod='$single_module'
9191 fi
9192 _lt_dar_needs_single_mod=no
9193 case $host_os in
9194 rhapsody* | darwin1.*)
9195 _lt_dar_needs_single_mod=yes ;;
9196 darwin*)
9197 # When targeting Mac OS X 10.4 (darwin 8) or later,
9198 # -single_module is the default and -multi_module is unsupported.
9199 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9200 # target any OS version that needs -single_module.
9201 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9202 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9203 _lt_dar_needs_single_mod=yes ;;
9204 esac
9205 ;;
9206 esac
9207 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9208 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9209 else
9210 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9211 fi
9212 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9213 _lt_dsymutil='~$DSYMUTIL $lib || :'
9214 else
9215 _lt_dsymutil=
9216 fi
9217 ;;
9218 esac
9219
9220 # func_munge_path_list VARIABLE PATH
9221 # -----------------------------------
9222 # VARIABLE is name of variable containing _space_ separated list of
9223 # directories to be munged by the contents of PATH, which is string
9224 # having a format:
9225 # "DIR[:DIR]:"
9226 # string "DIR[ DIR]" will be prepended to VARIABLE
9227 # ":DIR[:DIR]"
9228 # string "DIR[ DIR]" will be appended to VARIABLE
9229 # "DIRP[:DIRP]::[DIRA:]DIRA"
9230 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9231 # "DIRA[ DIRA]" will be appended to VARIABLE
9232 # "DIR[:DIR]"
9233 # VARIABLE will be replaced by "DIR[ DIR]"
9234 func_munge_path_list ()
9235 {
9236 case x$2 in
9237 x)
9238 ;;
9239 *:)
9240 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9241 ;;
9242 x:*)
9243 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9244 ;;
9245 *::*)
9246 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9247 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9248 ;;
9249 *)
9250 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9251 ;;
9252 esac
9253 }
9254
9255 ac_header= ac_cache=
9256 for ac_item in $ac_header_c_list
9257 do
9258 if test $ac_cache; then
9259 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9260 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9261 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9262 fi
9263 ac_header= ac_cache=
9264 elif test $ac_header; then
9265 ac_cache=$ac_item
9266 else
9267 ac_header=$ac_item
9268 fi
9269 done
9270
9271
9272
9273
9274
9275
9276
9277
9278 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9279 then :
9280
9281 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9282
9283 fi
9284 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9285 "
9286 if test "x$ac_cv_header_dlfcn_h" = xyes
9287 then :
9288 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9289
9290 fi
9291
9292
9293
9294
9295
9296 # Set options
9297
9298
9299
9300 enable_dlopen=no
9301
9302
9303 enable_win32_dll=no
9304
9305
9306 # Check whether --enable-shared was given.
9307 if test ${enable_shared+y}
9308 then :
9309 enableval=$enable_shared; p=${PACKAGE-default}
9310 case $enableval in
9311 yes) enable_shared=yes ;;
9312 no) enable_shared=no ;;
9313 *)
9314 enable_shared=no
9315 # Look at the argument we got. We use all the common list separators.
9316 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9317 for pkg in $enableval; do
9318 IFS=$lt_save_ifs
9319 if test "X$pkg" = "X$p"; then
9320 enable_shared=yes
9321 fi
9322 done
9323 IFS=$lt_save_ifs
9324 ;;
9325 esac
9326 else case e in #(
9327 e) enable_shared=yes ;;
9328 esac
9329 fi
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339 # Check whether --enable-static was given.
9340 if test ${enable_static+y}
9341 then :
9342 enableval=$enable_static; p=${PACKAGE-default}
9343 case $enableval in
9344 yes) enable_static=yes ;;
9345 no) enable_static=no ;;
9346 *)
9347 enable_static=no
9348 # Look at the argument we got. We use all the common list separators.
9349 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9350 for pkg in $enableval; do
9351 IFS=$lt_save_ifs
9352 if test "X$pkg" = "X$p"; then
9353 enable_static=yes
9354 fi
9355 done
9356 IFS=$lt_save_ifs
9357 ;;
9358 esac
9359 else case e in #(
9360 e) enable_static=yes ;;
9361 esac
9362 fi
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372 # Check whether --enable-pic was given.
9373 if test ${enable_pic+y}
9374 then :
9375 enableval=$enable_pic; lt_p=${PACKAGE-default}
9376 case $enableval in
9377 yes|no) pic_mode=$enableval ;;
9378 *)
9379 pic_mode=default
9380 # Look at the argument we got. We use all the common list separators.
9381 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9382 for lt_pkg in $enableval; do
9383 IFS=$lt_save_ifs
9384 if test "X$lt_pkg" = "X$lt_p"; then
9385 pic_mode=yes
9386 fi
9387 done
9388 IFS=$lt_save_ifs
9389 ;;
9390 esac
9391 else case e in #(
9392 e) # Check whether --with-pic was given.
9393 if test ${with_pic+y}
9394 then :
9395 withval=$with_pic; lt_p=${PACKAGE-default}
9396 case $withval in
9397 yes|no) pic_mode=$withval ;;
9398 *)
9399 pic_mode=default
9400 # Look at the argument we got. We use all the common list separators.
9401 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9402 for lt_pkg in $withval; do
9403 IFS=$lt_save_ifs
9404 if test "X$lt_pkg" = "X$lt_p"; then
9405 pic_mode=yes
9406 fi
9407 done
9408 IFS=$lt_save_ifs
9409 ;;
9410 esac
9411 else case e in #(
9412 e) pic_mode=default ;;
9413 esac
9414 fi
9415
9416 ;;
9417 esac
9418 fi
9419
9420
9421
9422
9423
9424
9425
9426
9427 # Check whether --enable-fast-install was given.
9428 if test ${enable_fast_install+y}
9429 then :
9430 enableval=$enable_fast_install; p=${PACKAGE-default}
9431 case $enableval in
9432 yes) enable_fast_install=yes ;;
9433 no) enable_fast_install=no ;;
9434 *)
9435 enable_fast_install=no
9436 # Look at the argument we got. We use all the common list separators.
9437 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9438 for pkg in $enableval; do
9439 IFS=$lt_save_ifs
9440 if test "X$pkg" = "X$p"; then
9441 enable_fast_install=yes
9442 fi
9443 done
9444 IFS=$lt_save_ifs
9445 ;;
9446 esac
9447 else case e in #(
9448 e) enable_fast_install=yes ;;
9449 esac
9450 fi
9451
9452
9453
9454
9455
9456
9457
9458
9459 shared_archive_member_spec=
9460 case $host,$enable_shared in
9461 power*-*-aix[5-9]*,yes)
9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9463 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9464 # Check whether --enable-aix-soname was given.
9465 if test ${enable_aix_soname+y}
9466 then :
9467 enableval=$enable_aix_soname; case $enableval in
9468 aix|svr4|both)
9469 ;;
9470 *)
9471 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9472 ;;
9473 esac
9474 lt_cv_with_aix_soname=$enable_aix_soname
9475 else case e in #(
9476 e) # Check whether --with-aix-soname was given.
9477 if test ${with_aix_soname+y}
9478 then :
9479 withval=$with_aix_soname; case $withval in
9480 aix|svr4|both)
9481 ;;
9482 *)
9483 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9484 ;;
9485 esac
9486 lt_cv_with_aix_soname=$with_aix_soname
9487 else case e in #(
9488 e) if test ${lt_cv_with_aix_soname+y}
9489 then :
9490 printf %s "(cached) " >&6
9491 else case e in #(
9492 e) lt_cv_with_aix_soname=aix ;;
9493 esac
9494 fi
9495 ;;
9496 esac
9497 fi
9498
9499 enable_aix_soname=$lt_cv_with_aix_soname ;;
9500 esac
9501 fi
9502
9503 with_aix_soname=$enable_aix_soname
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9505 printf "%s\n" "$with_aix_soname" >&6; }
9506 if test aix != "$with_aix_soname"; then
9507 # For the AIX way of multilib, we name the shared archive member
9508 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9509 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9510 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9511 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9512 if test 64 = "${OBJECT_MODE-32}"; then
9513 shared_archive_member_spec=shr_64
9514 else
9515 shared_archive_member_spec=shr
9516 fi
9517 fi
9518 ;;
9519 *)
9520 with_aix_soname=aix
9521 ;;
9522 esac
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533 # This can be used to rebuild libtool when needed
9534 LIBTOOL_DEPS=$ltmain
9535
9536 # Always use our own libtool.
9537 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568 test -z "$LN_S" && LN_S="ln -s"
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583 if test -n "${ZSH_VERSION+set}"; then
9584 setopt NO_GLOB_SUBST
9585 fi
9586
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9588 printf %s "checking for objdir... " >&6; }
9589 if test ${lt_cv_objdir+y}
9590 then :
9591 printf %s "(cached) " >&6
9592 else case e in #(
9593 e) rm -f .libs 2>/dev/null
9594 mkdir .libs 2>/dev/null
9595 if test -d .libs; then
9596 lt_cv_objdir=.libs
9597 else
9598 # MS-DOS does not allow filenames that begin with a dot.
9599 lt_cv_objdir=_libs
9600 fi
9601 rmdir .libs 2>/dev/null ;;
9602 esac
9603 fi
9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9605 printf "%s\n" "$lt_cv_objdir" >&6; }
9606 objdir=$lt_cv_objdir
9607
9608
9609
9610
9611
9612 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9613
9614
9615
9616
9617 case $host_os in
9618 aix3*)
9619 # AIX sometimes has problems with the GCC collect2 program. For some
9620 # reason, if we set the COLLECT_NAMES environment variable, the problems
9621 # vanish in a puff of smoke.
9622 if test set != "${COLLECT_NAMES+set}"; then
9623 COLLECT_NAMES=
9624 export COLLECT_NAMES
9625 fi
9626 ;;
9627 esac
9628
9629 # Global variables:
9630 ofile=libtool
9631 can_build_shared=yes
9632
9633 # All known linkers require a '.a' archive for static linking (except MSVC and
9634 # ICC, which need '.lib').
9635 libext=a
9636
9637 with_gnu_ld=$lt_cv_prog_gnu_ld
9638
9639 old_CC=$CC
9640 old_CFLAGS=$CFLAGS
9641
9642 # Set sane defaults for various variables
9643 test -z "$CC" && CC=cc
9644 test -z "$LTCC" && LTCC=$CC
9645 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9646 test -z "$LD" && LD=ld
9647 test -z "$ac_objext" && ac_objext=o
9648
9649 func_cc_basename $compiler
9650 cc_basename=$func_cc_basename_result
9651
9652
9653 # Only perform the check for file, if the check method requires it
9654 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9655 case $deplibs_check_method in
9656 file_magic*)
9657 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9659 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9660 if test ${lt_cv_path_MAGIC_CMD+y}
9661 then :
9662 printf %s "(cached) " >&6
9663 else case e in #(
9664 e) case $MAGIC_CMD in
9665 [\\/*] | ?:[\\/]*)
9666 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9667 ;;
9668 *)
9669 lt_save_MAGIC_CMD=$MAGIC_CMD
9670 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9671 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9672 for ac_dir in $ac_dummy; do
9673 IFS=$lt_save_ifs
9674 test -z "$ac_dir" && ac_dir=.
9675 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9676 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9677 if test -n "$file_magic_test_file"; then
9678 case $deplibs_check_method in
9679 "file_magic "*)
9680 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9681 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9683 $EGREP "$file_magic_regex" > /dev/null; then
9684 :
9685 else
9686 cat <<_LT_EOF 1>&2
9687
9688 *** Warning: the command libtool uses to detect shared libraries,
9689 *** $file_magic_cmd, produces output that libtool cannot recognize.
9690 *** The result is that libtool may fail to recognize shared libraries
9691 *** as such. This will affect the creation of libtool libraries that
9692 *** depend on shared libraries, but programs linked with such libtool
9693 *** libraries will work regardless of this problem. Nevertheless, you
9694 *** may want to report the problem to your system manager and/or to
9695 *** [email protected]
9696
9697 _LT_EOF
9698 fi ;;
9699 esac
9700 fi
9701 break
9702 fi
9703 done
9704 IFS=$lt_save_ifs
9705 MAGIC_CMD=$lt_save_MAGIC_CMD
9706 ;;
9707 esac ;;
9708 esac
9709 fi
9710
9711 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9712 if test -n "$MAGIC_CMD"; then
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9714 printf "%s\n" "$MAGIC_CMD" >&6; }
9715 else
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 printf "%s\n" "no" >&6; }
9718 fi
9719
9720
9721
9722
9723
9724 if test -z "$lt_cv_path_MAGIC_CMD"; then
9725 if test -n "$ac_tool_prefix"; then
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9727 printf %s "checking for file... " >&6; }
9728 if test ${lt_cv_path_MAGIC_CMD+y}
9729 then :
9730 printf %s "(cached) " >&6
9731 else case e in #(
9732 e) case $MAGIC_CMD in
9733 [\\/*] | ?:[\\/]*)
9734 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9735 ;;
9736 *)
9737 lt_save_MAGIC_CMD=$MAGIC_CMD
9738 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9739 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9740 for ac_dir in $ac_dummy; do
9741 IFS=$lt_save_ifs
9742 test -z "$ac_dir" && ac_dir=.
9743 if test -f "$ac_dir/file"; then
9744 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9745 if test -n "$file_magic_test_file"; then
9746 case $deplibs_check_method in
9747 "file_magic "*)
9748 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9749 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9751 $EGREP "$file_magic_regex" > /dev/null; then
9752 :
9753 else
9754 cat <<_LT_EOF 1>&2
9755
9756 *** Warning: the command libtool uses to detect shared libraries,
9757 *** $file_magic_cmd, produces output that libtool cannot recognize.
9758 *** The result is that libtool may fail to recognize shared libraries
9759 *** as such. This will affect the creation of libtool libraries that
9760 *** depend on shared libraries, but programs linked with such libtool
9761 *** libraries will work regardless of this problem. Nevertheless, you
9762 *** may want to report the problem to your system manager and/or to
9763 *** [email protected]
9764
9765 _LT_EOF
9766 fi ;;
9767 esac
9768 fi
9769 break
9770 fi
9771 done
9772 IFS=$lt_save_ifs
9773 MAGIC_CMD=$lt_save_MAGIC_CMD
9774 ;;
9775 esac ;;
9776 esac
9777 fi
9778
9779 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9780 if test -n "$MAGIC_CMD"; then
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9782 printf "%s\n" "$MAGIC_CMD" >&6; }
9783 else
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 printf "%s\n" "no" >&6; }
9786 fi
9787
9788
9789 else
9790 MAGIC_CMD=:
9791 fi
9792 fi
9793
9794 fi
9795 ;;
9796 esac
9797
9798 # Use C for the default configuration in the libtool script
9799
9800 lt_save_CC=$CC
9801 ac_ext=c
9802 ac_cpp='$CPP $CPPFLAGS'
9803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9806
9807
9808 # Source file extension for C test sources.
9809 ac_ext=c
9810
9811 # Object file extension for compiled C test sources.
9812 objext=o
9813 objext=$objext
9814
9815 # Code to be used in simple compile tests
9816 lt_simple_compile_test_code="int some_variable = 0;"
9817
9818 # Code to be used in simple link tests
9819 lt_simple_link_test_code='int main(void){return(0);}'
9820
9821
9822
9823
9824
9825
9826
9827 # If no C compiler was specified, use CC.
9828 LTCC=${LTCC-"$CC"}
9829
9830 # If no C compiler flags were specified, use CFLAGS.
9831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9832
9833 # Allow CC to be a program name with arguments.
9834 compiler=$CC
9835
9836 # Save the default compiler, since it gets overwritten when the other
9837 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9838 compiler_DEFAULT=$CC
9839
9840 # save warnings/boilerplate of simple test code
9841 ac_outfile=conftest.$ac_objext
9842 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9844 _lt_compiler_boilerplate=`cat conftest.err`
9845 $RM conftest*
9846
9847 ac_outfile=conftest.$ac_objext
9848 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9850 _lt_linker_boilerplate=`cat conftest.err`
9851 $RM -r conftest*
9852
9853
9854 if test -n "$compiler"; then
9855
9856 lt_prog_compiler_no_builtin_flag=
9857
9858 if test yes = "$GCC"; then
9859 case $cc_basename in
9860 nvcc*)
9861 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9862 *)
9863 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9864 esac
9865
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9867 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9868 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9869 then :
9870 printf %s "(cached) " >&6
9871 else case e in #(
9872 e) lt_cv_prog_compiler_rtti_exceptions=no
9873 ac_outfile=conftest.$ac_objext
9874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9875 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9876 # Insert the option either (1) after the last *FLAGS variable, or
9877 # (2) before a word containing "conftest.", or (3) at the end.
9878 # Note that $ac_compile itself does not contain backslashes and begins
9879 # with a dollar sign (not a hyphen), so the echo should work correctly.
9880 # The option is referenced via a variable to avoid confusing sed.
9881 lt_compile=`echo "$ac_compile" | $SED \
9882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9884 -e 's:$: $lt_compiler_flag:'`
9885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9886 (eval "$lt_compile" 2>conftest.err)
9887 ac_status=$?
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 if (exit $ac_status) && test -s "$ac_outfile"; then
9891 # The compiler can only warn and ignore the option if not recognized
9892 # So say no if there are warnings other than the usual output.
9893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9896 lt_cv_prog_compiler_rtti_exceptions=yes
9897 fi
9898 fi
9899 $RM conftest*
9900 ;;
9901 esac
9902 fi
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9904 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9905
9906 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9907 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9908 else
9909 :
9910 fi
9911
9912 fi
9913
9914
9915
9916
9917
9918
9919 lt_prog_compiler_wl=
9920 lt_prog_compiler_pic=
9921 lt_prog_compiler_static=
9922
9923
9924 if test yes = "$GCC"; then
9925 lt_prog_compiler_wl='-Wl,'
9926 lt_prog_compiler_static='-static'
9927
9928 case $host_os in
9929 aix*)
9930 # All AIX code is PIC.
9931 if test ia64 = "$host_cpu"; then
9932 # AIX 5 now supports IA64 processor
9933 lt_prog_compiler_static='-Bstatic'
9934 fi
9935 lt_prog_compiler_pic='-fPIC'
9936 ;;
9937
9938 amigaos*)
9939 case $host_cpu in
9940 powerpc)
9941 # see comment about AmigaOS4 .so support
9942 lt_prog_compiler_pic='-fPIC'
9943 ;;
9944 m68k)
9945 # FIXME: we need at least 68020 code to build shared libraries, but
9946 # adding the '-m68020' flag to GCC prevents building anything better,
9947 # like '-m68040'.
9948 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9949 ;;
9950 esac
9951 ;;
9952
9953 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9954 # PIC is the default for these OSes.
9955 ;;
9956
9957 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9958 # This hack is so that the source file can tell whether it is being
9959 # built for inclusion in a dll (and should export symbols for example).
9960 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9961 # (--disable-auto-import) libraries
9962 lt_prog_compiler_pic='-DDLL_EXPORT'
9963 case $host_os in
9964 os2*)
9965 lt_prog_compiler_static='$wl-static'
9966 ;;
9967 esac
9968 ;;
9969
9970 darwin* | rhapsody*)
9971 # PIC is the default on this platform
9972 # Common symbols not allowed in MH_DYLIB files
9973 lt_prog_compiler_pic='-fno-common'
9974 ;;
9975
9976 haiku*)
9977 # PIC is the default for Haiku.
9978 # The "-static" flag exists, but is broken.
9979 lt_prog_compiler_static=
9980 ;;
9981
9982 hpux*)
9983 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9984 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9985 # sets the default TLS model and affects inlining.
9986 case $host_cpu in
9987 hppa*64*)
9988 # +Z the default
9989 ;;
9990 *)
9991 lt_prog_compiler_pic='-fPIC'
9992 ;;
9993 esac
9994 ;;
9995
9996 interix[3-9]*)
9997 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9998 # Instead, we relocate shared libraries at runtime.
9999 ;;
10000
10001 msdosdjgpp*)
10002 # Just because we use GCC doesn't mean we suddenly get shared libraries
10003 # on systems that don't support them.
10004 lt_prog_compiler_can_build_shared=no
10005 enable_shared=no
10006 ;;
10007
10008 *nto* | *qnx*)
10009 # QNX uses GNU C++, but need to define -shared option too, otherwise
10010 # it will coredump.
10011 lt_prog_compiler_pic='-fPIC -shared'
10012 ;;
10013
10014 sysv4*MP*)
10015 if test -d /usr/nec; then
10016 lt_prog_compiler_pic=-Kconform_pic
10017 fi
10018 ;;
10019
10020 *)
10021 lt_prog_compiler_pic='-fPIC'
10022 ;;
10023 esac
10024
10025 case $cc_basename in
10026 nvcc*) # Cuda Compiler Driver 2.2
10027 lt_prog_compiler_wl='-Xlinker '
10028 if test -n "$lt_prog_compiler_pic"; then
10029 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10030 fi
10031 ;;
10032 esac
10033 else
10034 # PORTME Check for flag to pass linker flags through the system compiler.
10035 case $host_os in
10036 aix*)
10037 lt_prog_compiler_wl='-Wl,'
10038 if test ia64 = "$host_cpu"; then
10039 # AIX 5 now supports IA64 processor
10040 lt_prog_compiler_static='-Bstatic'
10041 else
10042 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10043 fi
10044 ;;
10045
10046 darwin* | rhapsody*)
10047 # PIC is the default on this platform
10048 # Common symbols not allowed in MH_DYLIB files
10049 lt_prog_compiler_pic='-fno-common'
10050 case $cc_basename in
10051 nagfor*)
10052 # NAG Fortran compiler
10053 lt_prog_compiler_wl='-Wl,-Wl,,'
10054 lt_prog_compiler_pic='-PIC'
10055 lt_prog_compiler_static='-Bstatic'
10056 ;;
10057 esac
10058 ;;
10059
10060 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10061 # This hack is so that the source file can tell whether it is being
10062 # built for inclusion in a dll (and should export symbols for example).
10063 lt_prog_compiler_pic='-DDLL_EXPORT'
10064 case $host_os in
10065 os2*)
10066 lt_prog_compiler_static='$wl-static'
10067 ;;
10068 esac
10069 ;;
10070
10071 hpux9* | hpux10* | hpux11*)
10072 lt_prog_compiler_wl='-Wl,'
10073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10074 # not for PA HP-UX.
10075 case $host_cpu in
10076 hppa*64*|ia64*)
10077 # +Z the default
10078 ;;
10079 *)
10080 lt_prog_compiler_pic='+Z'
10081 ;;
10082 esac
10083 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10084 lt_prog_compiler_static='$wl-a ${wl}archive'
10085 ;;
10086
10087 irix5* | irix6* | nonstopux*)
10088 lt_prog_compiler_wl='-Wl,'
10089 # PIC (with -KPIC) is the default.
10090 lt_prog_compiler_static='-non_shared'
10091 ;;
10092
10093 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10094 case $cc_basename in
10095 # old Intel for x86_64, which still supported -KPIC.
10096 ecc*)
10097 lt_prog_compiler_wl='-Wl,'
10098 lt_prog_compiler_pic='-KPIC'
10099 lt_prog_compiler_static='-static'
10100 ;;
10101 *flang* | ftn | f18* | f95*)
10102 # Flang compiler.
10103 lt_prog_compiler_wl='-Wl,'
10104 lt_prog_compiler_pic='-fPIC'
10105 lt_prog_compiler_static='-static'
10106 ;;
10107 # icc used to be incompatible with GCC.
10108 # ICC 10 doesn't accept -KPIC any more.
10109 icc* | ifort*)
10110 lt_prog_compiler_wl='-Wl,'
10111 lt_prog_compiler_pic='-fPIC'
10112 lt_prog_compiler_static='-static'
10113 ;;
10114 # Lahey Fortran 8.1.
10115 lf95*)
10116 lt_prog_compiler_wl='-Wl,'
10117 lt_prog_compiler_pic='--shared'
10118 lt_prog_compiler_static='--static'
10119 ;;
10120 nagfor*)
10121 # NAG Fortran compiler
10122 lt_prog_compiler_wl='-Wl,-Wl,,'
10123 lt_prog_compiler_pic='-PIC'
10124 lt_prog_compiler_static='-Bstatic'
10125 ;;
10126 tcc*)
10127 # Fabrice Bellard et al's Tiny C Compiler
10128 lt_prog_compiler_wl='-Wl,'
10129 lt_prog_compiler_pic='-fPIC'
10130 lt_prog_compiler_static='-static'
10131 ;;
10132 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10133 # Portland Group compilers (*not* the Pentium gcc compiler,
10134 # which looks to be a dead project)
10135 lt_prog_compiler_wl='-Wl,'
10136 lt_prog_compiler_pic='-fpic'
10137 lt_prog_compiler_static='-Bstatic'
10138 ;;
10139 ccc*)
10140 lt_prog_compiler_wl='-Wl,'
10141 # All Alpha code is PIC.
10142 lt_prog_compiler_static='-non_shared'
10143 ;;
10144 xl* | bgxl* | bgf* | mpixl*)
10145 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10146 lt_prog_compiler_wl='-Wl,'
10147 lt_prog_compiler_pic='-qpic'
10148 lt_prog_compiler_static='-qstaticlink'
10149 ;;
10150 *)
10151 case `$CC -V 2>&1 | $SED 5q` in
10152 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10153 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10154 lt_prog_compiler_pic='-KPIC'
10155 lt_prog_compiler_static='-Bstatic'
10156 lt_prog_compiler_wl=''
10157 ;;
10158 *Sun\ F* | *Sun*Fortran*)
10159 lt_prog_compiler_pic='-KPIC'
10160 lt_prog_compiler_static='-Bstatic'
10161 lt_prog_compiler_wl='-Qoption ld '
10162 ;;
10163 *Sun\ C*)
10164 # Sun C 5.9
10165 lt_prog_compiler_pic='-KPIC'
10166 lt_prog_compiler_static='-Bstatic'
10167 lt_prog_compiler_wl='-Wl,'
10168 ;;
10169 *Intel*\ [CF]*Compiler*)
10170 lt_prog_compiler_wl='-Wl,'
10171 lt_prog_compiler_pic='-fPIC'
10172 lt_prog_compiler_static='-static'
10173 ;;
10174 *Portland\ Group*)
10175 lt_prog_compiler_wl='-Wl,'
10176 lt_prog_compiler_pic='-fpic'
10177 lt_prog_compiler_static='-Bstatic'
10178 ;;
10179 esac
10180 ;;
10181 esac
10182 ;;
10183
10184 newsos6)
10185 lt_prog_compiler_pic='-KPIC'
10186 lt_prog_compiler_static='-Bstatic'
10187 ;;
10188
10189 *-mlibc)
10190 lt_prog_compiler_wl='-Wl,'
10191 lt_prog_compiler_pic='-fPIC'
10192 lt_prog_compiler_static='-static'
10193 ;;
10194
10195 *nto* | *qnx*)
10196 # QNX uses GNU C++, but need to define -shared option too, otherwise
10197 # it will coredump.
10198 lt_prog_compiler_pic='-fPIC -shared'
10199 ;;
10200
10201 osf3* | osf4* | osf5*)
10202 lt_prog_compiler_wl='-Wl,'
10203 # All OSF/1 code is PIC.
10204 lt_prog_compiler_static='-non_shared'
10205 ;;
10206
10207 rdos*)
10208 lt_prog_compiler_static='-non_shared'
10209 ;;
10210
10211 serenity*)
10212 ;;
10213
10214 solaris*)
10215 lt_prog_compiler_pic='-KPIC'
10216 lt_prog_compiler_static='-Bstatic'
10217 case $cc_basename in
10218 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10219 lt_prog_compiler_wl='-Qoption ld ';;
10220 *)
10221 lt_prog_compiler_wl='-Wl,';;
10222 esac
10223 ;;
10224
10225 sunos4*)
10226 lt_prog_compiler_wl='-Qoption ld '
10227 lt_prog_compiler_pic='-PIC'
10228 lt_prog_compiler_static='-Bstatic'
10229 ;;
10230
10231 sysv4 | sysv4.2uw2* | sysv4.3*)
10232 lt_prog_compiler_wl='-Wl,'
10233 lt_prog_compiler_pic='-KPIC'
10234 lt_prog_compiler_static='-Bstatic'
10235 ;;
10236
10237 sysv4*MP*)
10238 if test -d /usr/nec; then
10239 lt_prog_compiler_pic='-Kconform_pic'
10240 lt_prog_compiler_static='-Bstatic'
10241 fi
10242 ;;
10243
10244 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10245 lt_prog_compiler_wl='-Wl,'
10246 lt_prog_compiler_pic='-KPIC'
10247 lt_prog_compiler_static='-Bstatic'
10248 ;;
10249
10250 unicos*)
10251 lt_prog_compiler_wl='-Wl,'
10252 lt_prog_compiler_can_build_shared=no
10253 ;;
10254
10255 uts4*)
10256 lt_prog_compiler_pic='-pic'
10257 lt_prog_compiler_static='-Bstatic'
10258 ;;
10259
10260 *)
10261 lt_prog_compiler_can_build_shared=no
10262 ;;
10263 esac
10264 fi
10265
10266 case $host_os in
10267 # For platforms that do not support PIC, -DPIC is meaningless:
10268 *djgpp*)
10269 lt_prog_compiler_pic=
10270 ;;
10271 *)
10272 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10273 ;;
10274 esac
10275
10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10277 printf %s "checking for $compiler option to produce PIC... " >&6; }
10278 if test ${lt_cv_prog_compiler_pic+y}
10279 then :
10280 printf %s "(cached) " >&6
10281 else case e in #(
10282 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10283 esac
10284 fi
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10286 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10287 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10288
10289 #
10290 # Check to make sure the PIC flag actually works.
10291 #
10292 if test -n "$lt_prog_compiler_pic"; then
10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10294 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10295 if test ${lt_cv_prog_compiler_pic_works+y}
10296 then :
10297 printf %s "(cached) " >&6
10298 else case e in #(
10299 e) lt_cv_prog_compiler_pic_works=no
10300 ac_outfile=conftest.$ac_objext
10301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10302 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10303 # Insert the option either (1) after the last *FLAGS variable, or
10304 # (2) before a word containing "conftest.", or (3) at the end.
10305 # Note that $ac_compile itself does not contain backslashes and begins
10306 # with a dollar sign (not a hyphen), so the echo should work correctly.
10307 # The option is referenced via a variable to avoid confusing sed.
10308 lt_compile=`echo "$ac_compile" | $SED \
10309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10311 -e 's:$: $lt_compiler_flag:'`
10312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10313 (eval "$lt_compile" 2>conftest.err)
10314 ac_status=$?
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 if (exit $ac_status) && test -s "$ac_outfile"; then
10318 # The compiler can only warn and ignore the option if not recognized
10319 # So say no if there are warnings other than the usual output.
10320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10323 lt_cv_prog_compiler_pic_works=yes
10324 fi
10325 fi
10326 $RM conftest*
10327 ;;
10328 esac
10329 fi
10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10331 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10332
10333 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10334 case $lt_prog_compiler_pic in
10335 "" | " "*) ;;
10336 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10337 esac
10338 else
10339 lt_prog_compiler_pic=
10340 lt_prog_compiler_can_build_shared=no
10341 fi
10342
10343 fi
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355 #
10356 # Check to make sure the static flag actually works.
10357 #
10358 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10360 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10361 if test ${lt_cv_prog_compiler_static_works+y}
10362 then :
10363 printf %s "(cached) " >&6
10364 else case e in #(
10365 e) lt_cv_prog_compiler_static_works=no
10366 save_LDFLAGS=$LDFLAGS
10367 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10368 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10370 # The linker can only warn and ignore the option if not recognized
10371 # So say no if there are warnings
10372 if test -s conftest.err; then
10373 # Append any errors to the config.log.
10374 cat conftest.err 1>&5
10375 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10377 if diff conftest.exp conftest.er2 >/dev/null; then
10378 lt_cv_prog_compiler_static_works=yes
10379 fi
10380 else
10381 lt_cv_prog_compiler_static_works=yes
10382 fi
10383 fi
10384 $RM -r conftest*
10385 LDFLAGS=$save_LDFLAGS
10386 ;;
10387 esac
10388 fi
10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10390 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10391
10392 if test yes = "$lt_cv_prog_compiler_static_works"; then
10393 :
10394 else
10395 lt_prog_compiler_static=
10396 fi
10397
10398
10399
10400
10401
10402
10403
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10405 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10406 if test ${lt_cv_prog_compiler_c_o+y}
10407 then :
10408 printf %s "(cached) " >&6
10409 else case e in #(
10410 e) lt_cv_prog_compiler_c_o=no
10411 $RM -r conftest 2>/dev/null
10412 mkdir conftest
10413 cd conftest
10414 mkdir out
10415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10416
10417 lt_compiler_flag="-o out/conftest2.$ac_objext"
10418 # Insert the option either (1) after the last *FLAGS variable, or
10419 # (2) before a word containing "conftest.", or (3) at the end.
10420 # Note that $ac_compile itself does not contain backslashes and begins
10421 # with a dollar sign (not a hyphen), so the echo should work correctly.
10422 lt_compile=`echo "$ac_compile" | $SED \
10423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10425 -e 's:$: $lt_compiler_flag:'`
10426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10427 (eval "$lt_compile" 2>out/conftest.err)
10428 ac_status=$?
10429 cat out/conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10432 then
10433 # The compiler can only warn and ignore the option if not recognized
10434 # So say no if there are warnings
10435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10438 lt_cv_prog_compiler_c_o=yes
10439 fi
10440 fi
10441 chmod u+w . 2>&5
10442 $RM conftest*
10443 # SGI C++ compiler will create directory out/ii_files/ for
10444 # template instantiation
10445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10446 $RM out/* && rmdir out
10447 cd ..
10448 $RM -r conftest
10449 $RM conftest*
10450 ;;
10451 esac
10452 fi
10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10454 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10455
10456
10457
10458
10459
10460
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10462 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10463 if test ${lt_cv_prog_compiler_c_o+y}
10464 then :
10465 printf %s "(cached) " >&6
10466 else case e in #(
10467 e) lt_cv_prog_compiler_c_o=no
10468 $RM -r conftest 2>/dev/null
10469 mkdir conftest
10470 cd conftest
10471 mkdir out
10472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10473
10474 lt_compiler_flag="-o out/conftest2.$ac_objext"
10475 # Insert the option either (1) after the last *FLAGS variable, or
10476 # (2) before a word containing "conftest.", or (3) at the end.
10477 # Note that $ac_compile itself does not contain backslashes and begins
10478 # with a dollar sign (not a hyphen), so the echo should work correctly.
10479 lt_compile=`echo "$ac_compile" | $SED \
10480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10482 -e 's:$: $lt_compiler_flag:'`
10483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10484 (eval "$lt_compile" 2>out/conftest.err)
10485 ac_status=$?
10486 cat out/conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10489 then
10490 # The compiler can only warn and ignore the option if not recognized
10491 # So say no if there are warnings
10492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10495 lt_cv_prog_compiler_c_o=yes
10496 fi
10497 fi
10498 chmod u+w . 2>&5
10499 $RM conftest*
10500 # SGI C++ compiler will create directory out/ii_files/ for
10501 # template instantiation
10502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10503 $RM out/* && rmdir out
10504 cd ..
10505 $RM -r conftest
10506 $RM conftest*
10507 ;;
10508 esac
10509 fi
10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10511 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10512
10513
10514
10515
10516 hard_links=nottested
10517 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10518 # do not overwrite the value of need_locks provided by the user
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10520 printf %s "checking if we can lock with hard links... " >&6; }
10521 hard_links=yes
10522 $RM conftest*
10523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10524 touch conftest.a
10525 ln conftest.a conftest.b 2>&5 || hard_links=no
10526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10528 printf "%s\n" "$hard_links" >&6; }
10529 if test no = "$hard_links"; then
10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10531 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10532 need_locks=warn
10533 fi
10534 else
10535 need_locks=no
10536 fi
10537
10538
10539
10540
10541
10542
10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10544 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10545
10546 runpath_var=
10547 allow_undefined_flag=
10548 always_export_symbols=no
10549 archive_cmds=
10550 archive_expsym_cmds=
10551 compiler_needs_object=no
10552 enable_shared_with_static_runtimes=no
10553 export_dynamic_flag_spec=
10554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10555 hardcode_automatic=no
10556 hardcode_direct=no
10557 hardcode_direct_absolute=no
10558 hardcode_libdir_flag_spec=
10559 hardcode_libdir_separator=
10560 hardcode_minus_L=no
10561 hardcode_shlibpath_var=unsupported
10562 inherit_rpath=no
10563 link_all_deplibs=unknown
10564 module_cmds=
10565 module_expsym_cmds=
10566 old_archive_from_new_cmds=
10567 old_archive_from_expsyms_cmds=
10568 thread_safe_flag_spec=
10569 whole_archive_flag_spec=
10570 # include_expsyms should be a list of space-separated symbols to be *always*
10571 # included in the symbol list
10572 include_expsyms=
10573 # exclude_expsyms can be an extended regexp of symbols to exclude
10574 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10575 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10576 # as well as any symbol that contains 'd'.
10577 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10578 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10579 # platforms (ab)use it in PIC code, but their linkers get confused if
10580 # the symbol is explicitly referenced. Since portable code cannot
10581 # rely on this symbol name, it's probably fine to never include it in
10582 # preloaded symbol tables.
10583 # Exclude shared library initialization/finalization symbols.
10584 extract_expsyms_cmds=
10585
10586 case $host_os in
10587 cygwin* | mingw* | windows* | pw32* | cegcc*)
10588 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10589 # When not using gcc, we currently assume that we are using
10590 # Microsoft Visual C++ or Intel C++ Compiler.
10591 if test yes != "$GCC"; then
10592 with_gnu_ld=no
10593 fi
10594 ;;
10595 interix*)
10596 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10597 with_gnu_ld=yes
10598 ;;
10599 esac
10600
10601 ld_shlibs=yes
10602
10603 # On some targets, GNU ld is compatible enough with the native linker
10604 # that we're better off using the native interface for both.
10605 lt_use_gnu_ld_interface=no
10606 if test yes = "$with_gnu_ld"; then
10607 case $host_os in
10608 aix*)
10609 # The AIX port of GNU ld has always aspired to compatibility
10610 # with the native linker. However, as the warning in the GNU ld
10611 # block says, versions before 2.19.5* couldn't really create working
10612 # shared libraries, regardless of the interface used.
10613 case `$LD -v 2>&1` in
10614 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10615 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10616 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10617 *)
10618 lt_use_gnu_ld_interface=yes
10619 ;;
10620 esac
10621 ;;
10622 *)
10623 lt_use_gnu_ld_interface=yes
10624 ;;
10625 esac
10626 fi
10627
10628 if test yes = "$lt_use_gnu_ld_interface"; then
10629 # If archive_cmds runs LD, not CC, wlarc should be empty
10630 wlarc='$wl'
10631
10632 # Set some defaults for GNU ld with shared library support. These
10633 # are reset later if shared libraries are not supported. Putting them
10634 # here allows them to be overridden if necessary.
10635 runpath_var=LD_RUN_PATH
10636 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10637 export_dynamic_flag_spec='$wl--export-dynamic'
10638 # ancient GNU ld didn't support --whole-archive et. al.
10639 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10640 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10641 else
10642 whole_archive_flag_spec=
10643 fi
10644 supports_anon_versioning=no
10645 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10646 *GNU\ gold*) supports_anon_versioning=yes ;;
10647 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10648 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10649 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10650 *\ 2.11.*) ;; # other 2.11 versions
10651 *) supports_anon_versioning=yes ;;
10652 esac
10653
10654 # See if GNU ld supports shared libraries.
10655 case $host_os in
10656 aix[3-9]*)
10657 # On AIX/PPC, the GNU linker is very broken
10658 if test ia64 != "$host_cpu"; then
10659 ld_shlibs=no
10660 cat <<_LT_EOF 1>&2
10661
10662 *** Warning: the GNU linker, at least up to release 2.19, is reported
10663 *** to be unable to reliably create shared libraries on AIX.
10664 *** Therefore, libtool is disabling shared libraries support. If you
10665 *** really care for shared libraries, you may want to install binutils
10666 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10667 *** You will then need to restart the configuration process.
10668
10669 _LT_EOF
10670 fi
10671 ;;
10672
10673 amigaos*)
10674 case $host_cpu in
10675 powerpc)
10676 # see comment about AmigaOS4 .so support
10677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10678 archive_expsym_cmds=''
10679 ;;
10680 m68k)
10681 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)'
10682 hardcode_libdir_flag_spec='-L$libdir'
10683 hardcode_minus_L=yes
10684 ;;
10685 esac
10686 ;;
10687
10688 beos*)
10689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10690 allow_undefined_flag=unsupported
10691 # Joseph Beckenbach <[email protected]> says some releases of gcc
10692 # support --undefined. This deserves some investigation. FIXME
10693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10694 else
10695 ld_shlibs=no
10696 fi
10697 ;;
10698
10699 cygwin* | mingw* | windows* | pw32* | cegcc*)
10700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10701 # as there is no search path for DLLs.
10702 hardcode_libdir_flag_spec='-L$libdir'
10703 export_dynamic_flag_spec='$wl--export-all-symbols'
10704 allow_undefined_flag=unsupported
10705 always_export_symbols=no
10706 enable_shared_with_static_runtimes=yes
10707 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'
10708 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10709 file_list_spec='@'
10710
10711 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10713 # If the export-symbols file already is a .def file, use it as
10714 # is; otherwise, prepend EXPORTS...
10715 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10716 cp $export_symbols $output_objdir/$soname.def;
10717 else
10718 echo EXPORTS > $output_objdir/$soname.def;
10719 cat $export_symbols >> $output_objdir/$soname.def;
10720 fi~
10721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10722 else
10723 ld_shlibs=no
10724 fi
10725 ;;
10726
10727 haiku*)
10728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10729 link_all_deplibs=no
10730 ;;
10731
10732 os2*)
10733 hardcode_libdir_flag_spec='-L$libdir'
10734 hardcode_minus_L=yes
10735 allow_undefined_flag=unsupported
10736 shrext_cmds=.dll
10737 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10738 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10739 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10740 $ECHO EXPORTS >> $output_objdir/$libname.def~
10741 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10742 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10743 emximp -o $lib $output_objdir/$libname.def'
10744 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10745 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10746 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10747 $ECHO EXPORTS >> $output_objdir/$libname.def~
10748 prefix_cmds="$SED"~
10749 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10750 prefix_cmds="$prefix_cmds -e 1d";
10751 fi~
10752 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10753 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10754 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10755 emximp -o $lib $output_objdir/$libname.def'
10756 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10757 enable_shared_with_static_runtimes=yes
10758 file_list_spec='@'
10759 ;;
10760
10761 interix[3-9]*)
10762 hardcode_direct=no
10763 hardcode_shlibpath_var=no
10764 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10765 export_dynamic_flag_spec='$wl-E'
10766 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10767 # Instead, shared libraries are loaded at an image base (0x10000000 by
10768 # default) and relocated if they conflict, which is a slow very memory
10769 # consuming and fragmenting process. To avoid this, we pick a random,
10770 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10771 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10773 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'
10774 ;;
10775
10776 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10777 tmp_diet=no
10778 if test linux-dietlibc = "$host_os"; then
10779 case $cc_basename in
10780 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10781 esac
10782 fi
10783 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10784 && test no = "$tmp_diet"
10785 then
10786 tmp_addflag=' $pic_flag'
10787 tmp_sharedflag='-shared'
10788 case $cc_basename,$host_cpu in
10789 pgcc*) # Portland Group C compiler
10790 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'
10791 tmp_addflag=' $pic_flag'
10792 ;;
10793 pgf77* | pgf90* | pgf95* | pgfortran*)
10794 # Portland Group f77 and f90 compilers
10795 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'
10796 tmp_addflag=' $pic_flag -Mnomain' ;;
10797 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10798 tmp_addflag=' -i_dynamic' ;;
10799 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10800 tmp_addflag=' -i_dynamic -nofor_main' ;;
10801 ifc* | ifort*) # Intel Fortran compiler
10802 tmp_addflag=' -nofor_main' ;;
10803 lf95*) # Lahey Fortran 8.1
10804 whole_archive_flag_spec=
10805 tmp_sharedflag='--shared' ;;
10806 nagfor*) # NAGFOR 5.3
10807 tmp_sharedflag='-Wl,-shared' ;;
10808 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10809 tmp_sharedflag='-qmkshrobj'
10810 tmp_addflag= ;;
10811 nvcc*) # Cuda Compiler Driver 2.2
10812 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'
10813 compiler_needs_object=yes
10814 ;;
10815 esac
10816 case `$CC -V 2>&1 | $SED 5q` in
10817 *Sun\ C*) # Sun C 5.9
10818 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'
10819 compiler_needs_object=yes
10820 tmp_sharedflag='-G' ;;
10821 *Sun\ F*) # Sun Fortran 8.3
10822 tmp_sharedflag='-G' ;;
10823 esac
10824 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10825
10826 if test yes = "$supports_anon_versioning"; then
10827 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10828 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10829 echo "local: *; };" >> $output_objdir/$libname.ver~
10830 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10831 fi
10832
10833 case $cc_basename in
10834 tcc*)
10835 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10836 export_dynamic_flag_spec='-rdynamic'
10837 ;;
10838 xlf* | bgf* | bgxlf* | mpixlf*)
10839 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10840 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10841 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10842 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10843 if test yes = "$supports_anon_versioning"; then
10844 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10845 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10846 echo "local: *; };" >> $output_objdir/$libname.ver~
10847 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10848 fi
10849 ;;
10850 esac
10851 else
10852 ld_shlibs=no
10853 fi
10854 ;;
10855
10856 *-mlibc)
10857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10858 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10859 ;;
10860
10861 netbsd* | netbsdelf*-gnu)
10862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10863 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10864 wlarc=
10865 else
10866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10867 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10868 fi
10869 ;;
10870
10871 solaris*)
10872 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10873 ld_shlibs=no
10874 cat <<_LT_EOF 1>&2
10875
10876 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10877 *** create shared libraries on Solaris systems. Therefore, libtool
10878 *** is disabling shared libraries support. We urge you to upgrade GNU
10879 *** binutils to release 2.9.1 or newer. Another option is to modify
10880 *** your PATH or compiler configuration so that the native linker is
10881 *** used, and then restart.
10882
10883 _LT_EOF
10884 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10886 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10887 else
10888 ld_shlibs=no
10889 fi
10890 ;;
10891
10892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10893 case `$LD -v 2>&1` in
10894 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10895 ld_shlibs=no
10896 cat <<_LT_EOF 1>&2
10897
10898 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10899 *** reliably create shared libraries on SCO systems. Therefore, libtool
10900 *** is disabling shared libraries support. We urge you to upgrade GNU
10901 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10902 *** your PATH or compiler configuration so that the native linker is
10903 *** used, and then restart.
10904
10905 _LT_EOF
10906 ;;
10907 *)
10908 # For security reasons, it is highly recommended that you always
10909 # use absolute paths for naming shared libraries, and exclude the
10910 # DT_RUNPATH tag from executables and libraries. But doing so
10911 # requires that you compile everything twice, which is a pain.
10912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10913 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10916 else
10917 ld_shlibs=no
10918 fi
10919 ;;
10920 esac
10921 ;;
10922
10923 sunos4*)
10924 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10925 wlarc=
10926 hardcode_direct=yes
10927 hardcode_shlibpath_var=no
10928 ;;
10929
10930 *)
10931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10933 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10934 else
10935 ld_shlibs=no
10936 fi
10937 ;;
10938 esac
10939
10940 if test no = "$ld_shlibs"; then
10941 runpath_var=
10942 hardcode_libdir_flag_spec=
10943 export_dynamic_flag_spec=
10944 whole_archive_flag_spec=
10945 fi
10946 else
10947 # PORTME fill in a description of your system's linker (not GNU ld)
10948 case $host_os in
10949 aix3*)
10950 allow_undefined_flag=unsupported
10951 always_export_symbols=yes
10952 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'
10953 # Note: this linker hardcodes the directories in LIBPATH if there
10954 # are no directories specified by -L.
10955 hardcode_minus_L=yes
10956 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10957 # Neither direct hardcoding nor static linking is supported with a
10958 # broken collect2.
10959 hardcode_direct=unsupported
10960 fi
10961 ;;
10962
10963 aix[4-9]*)
10964 if test ia64 = "$host_cpu"; then
10965 # On IA64, the linker does run time linking by default, so we don't
10966 # have to do anything special.
10967 aix_use_runtimelinking=no
10968 exp_sym_flag='-Bexport'
10969 no_entry_flag=
10970 else
10971 # If we're using GNU nm, then we don't want the "-C" option.
10972 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10973 # Without the "-l" option, or with the "-B" option, AIX nm treats
10974 # weak defined symbols like other global defined symbols, whereas
10975 # GNU nm marks them as "W".
10976 # While the 'weak' keyword is ignored in the Export File, we need
10977 # it in the Import File for the 'aix-soname' feature, so we have
10978 # to replace the "-B" option with "-P" for AIX nm.
10979 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10980 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'
10981 else
10982 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'
10983 fi
10984 aix_use_runtimelinking=no
10985
10986 # Test if we are trying to use run time linking or normal
10987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10988 # have runtime linking enabled, and use it for executables.
10989 # For shared libraries, we enable/disable runtime linking
10990 # depending on the kind of the shared library created -
10991 # when "with_aix_soname,aix_use_runtimelinking" is:
10992 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10993 # "aix,yes" lib.so shared, rtl:yes, for executables
10994 # lib.a static archive
10995 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10996 # lib.a(lib.so.V) shared, rtl:no, for executables
10997 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10998 # lib.a(lib.so.V) shared, rtl:no
10999 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11000 # lib.a static archive
11001 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11002 for ld_flag in $LDFLAGS; do
11003 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11004 aix_use_runtimelinking=yes
11005 break
11006 fi
11007 done
11008 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11009 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11010 # so we don't have lib.a shared libs to link our executables.
11011 # We have to force runtime linking in this case.
11012 aix_use_runtimelinking=yes
11013 LDFLAGS="$LDFLAGS -Wl,-brtl"
11014 fi
11015 ;;
11016 esac
11017
11018 exp_sym_flag='-bexport'
11019 no_entry_flag='-bnoentry'
11020 fi
11021
11022 # When large executables or shared objects are built, AIX ld can
11023 # have problems creating the table of contents. If linking a library
11024 # or program results in "error TOC overflow" add -mminimal-toc to
11025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11027
11028 archive_cmds=''
11029 hardcode_direct=yes
11030 hardcode_direct_absolute=yes
11031 hardcode_libdir_separator=':'
11032 link_all_deplibs=yes
11033 file_list_spec='$wl-f,'
11034 case $with_aix_soname,$aix_use_runtimelinking in
11035 aix,*) ;; # traditional, no import file
11036 svr4,* | *,yes) # use import file
11037 # The Import File defines what to hardcode.
11038 hardcode_direct=no
11039 hardcode_direct_absolute=no
11040 ;;
11041 esac
11042
11043 if test yes = "$GCC"; then
11044 case $host_os in aix4.[012]|aix4.[012].*)
11045 # We only want to do this on AIX 4.2 and lower, the check
11046 # below for broken collect2 doesn't work under 4.3+
11047 collect2name=`$CC -print-prog-name=collect2`
11048 if test -f "$collect2name" &&
11049 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11050 then
11051 # We have reworked collect2
11052 :
11053 else
11054 # We have old collect2
11055 hardcode_direct=unsupported
11056 # It fails to find uninstalled libraries when the uninstalled
11057 # path is not listed in the libpath. Setting hardcode_minus_L
11058 # to unsupported forces relinking
11059 hardcode_minus_L=yes
11060 hardcode_libdir_flag_spec='-L$libdir'
11061 hardcode_libdir_separator=
11062 fi
11063 ;;
11064 esac
11065 shared_flag='-shared'
11066 if test yes = "$aix_use_runtimelinking"; then
11067 shared_flag="$shared_flag "'$wl-G'
11068 fi
11069 # Need to ensure runtime linking is disabled for the traditional
11070 # shared library, or the linker may eventually find shared libraries
11071 # /with/ Import File - we do not want to mix them.
11072 shared_flag_aix='-shared'
11073 shared_flag_svr4='-shared $wl-G'
11074 else
11075 # not using gcc
11076 if test ia64 = "$host_cpu"; then
11077 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11078 # chokes on -Wl,-G. The following line is correct:
11079 shared_flag='-G'
11080 else
11081 if test yes = "$aix_use_runtimelinking"; then
11082 shared_flag='$wl-G'
11083 else
11084 shared_flag='$wl-bM:SRE'
11085 fi
11086 shared_flag_aix='$wl-bM:SRE'
11087 shared_flag_svr4='$wl-G'
11088 fi
11089 fi
11090
11091 export_dynamic_flag_spec='$wl-bexpall'
11092 # It seems that -bexpall does not export symbols beginning with
11093 # underscore (_), so it is better to generate a list of symbols to export.
11094 always_export_symbols=yes
11095 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11096 # Warning - without using the other runtime loading flags (-brtl),
11097 # -berok will link without error, but may produce a broken library.
11098 allow_undefined_flag='-berok'
11099 # Determine the default libpath from the value encoded in an
11100 # empty executable.
11101 if test set = "${lt_cv_aix_libpath+set}"; then
11102 aix_libpath=$lt_cv_aix_libpath
11103 else
11104 if test ${lt_cv_aix_libpath_+y}
11105 then :
11106 printf %s "(cached) " >&6
11107 else case e in #(
11108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11110
11111 int
11112 main (void)
11113 {
11114
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 if ac_fn_c_try_link "$LINENO"
11120 then :
11121
11122 lt_aix_libpath_sed='
11123 /Import File Strings/,/^$/ {
11124 /^0/ {
11125 s/^0 *\([^ ]*\) *$/\1/
11126 p
11127 }
11128 }'
11129 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11130 # Check for a 64-bit object if we didn't find anything.
11131 if test -z "$lt_cv_aix_libpath_"; then
11132 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11133 fi
11134 fi
11135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11136 conftest$ac_exeext conftest.$ac_ext
11137 if test -z "$lt_cv_aix_libpath_"; then
11138 lt_cv_aix_libpath_=/usr/lib:/lib
11139 fi
11140 ;;
11141 esac
11142 fi
11143
11144 aix_libpath=$lt_cv_aix_libpath_
11145 fi
11146
11147 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11148 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
11149 else
11150 if test ia64 = "$host_cpu"; then
11151 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11152 allow_undefined_flag="-z nodefs"
11153 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"
11154 else
11155 # Determine the default libpath from the value encoded in an
11156 # empty executable.
11157 if test set = "${lt_cv_aix_libpath+set}"; then
11158 aix_libpath=$lt_cv_aix_libpath
11159 else
11160 if test ${lt_cv_aix_libpath_+y}
11161 then :
11162 printf %s "(cached) " >&6
11163 else case e in #(
11164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11166
11167 int
11168 main (void)
11169 {
11170
11171 ;
11172 return 0;
11173 }
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"
11176 then :
11177
11178 lt_aix_libpath_sed='
11179 /Import File Strings/,/^$/ {
11180 /^0/ {
11181 s/^0 *\([^ ]*\) *$/\1/
11182 p
11183 }
11184 }'
11185 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11186 # Check for a 64-bit object if we didn't find anything.
11187 if test -z "$lt_cv_aix_libpath_"; then
11188 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11189 fi
11190 fi
11191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11192 conftest$ac_exeext conftest.$ac_ext
11193 if test -z "$lt_cv_aix_libpath_"; then
11194 lt_cv_aix_libpath_=/usr/lib:/lib
11195 fi
11196 ;;
11197 esac
11198 fi
11199
11200 aix_libpath=$lt_cv_aix_libpath_
11201 fi
11202
11203 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11204 # Warning - without using the other run time loading flags,
11205 # -berok will link without error, but may produce a broken library.
11206 no_undefined_flag=' $wl-bernotok'
11207 allow_undefined_flag=' $wl-berok'
11208 if test yes = "$with_gnu_ld"; then
11209 # We only use this code for GNU lds that support --whole-archive.
11210 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11211 else
11212 # Exported symbols can be pulled into shared objects from archives
11213 whole_archive_flag_spec='$convenience'
11214 fi
11215 archive_cmds_need_lc=yes
11216 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11217 # -brtl affects multiple linker settings, -berok does not and is overridden later
11218 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11219 if test svr4 != "$with_aix_soname"; then
11220 # This is similar to how AIX traditionally builds its shared libraries.
11221 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'
11222 fi
11223 if test aix != "$with_aix_soname"; then
11224 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'
11225 else
11226 # used by -dlpreopen to get the symbols
11227 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11228 fi
11229 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11230 fi
11231 fi
11232 ;;
11233
11234 amigaos*)
11235 case $host_cpu in
11236 powerpc)
11237 # see comment about AmigaOS4 .so support
11238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11239 archive_expsym_cmds=''
11240 ;;
11241 m68k)
11242 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)'
11243 hardcode_libdir_flag_spec='-L$libdir'
11244 hardcode_minus_L=yes
11245 ;;
11246 esac
11247 ;;
11248
11249 bsdi[45]*)
11250 export_dynamic_flag_spec=-rdynamic
11251 ;;
11252
11253 cygwin* | mingw* | windows* | pw32* | cegcc*)
11254 # When not using gcc, we currently assume that we are using
11255 # Microsoft Visual C++ or Intel C++ Compiler.
11256 # hardcode_libdir_flag_spec is actually meaningless, as there is
11257 # no search path for DLLs.
11258 case $cc_basename in
11259 cl* | icl*)
11260 # Native MSVC or ICC
11261 hardcode_libdir_flag_spec=' '
11262 allow_undefined_flag=unsupported
11263 always_export_symbols=yes
11264 file_list_spec='@'
11265 # Tell ltmain to make .lib files, not .a files.
11266 libext=lib
11267 # Tell ltmain to make .dll files, not .so files.
11268 shrext_cmds=.dll
11269 # FIXME: Setting linknames here is a bad hack.
11270 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11271 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11272 cp "$export_symbols" "$output_objdir/$soname.def";
11273 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11274 else
11275 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11276 fi~
11277 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11278 linknames='
11279 # The linker will not automatically build a static lib if we build a DLL.
11280 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11281 enable_shared_with_static_runtimes=yes
11282 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11284 # Don't use ranlib
11285 old_postinstall_cmds='chmod 644 $oldlib'
11286 postlink_cmds='lt_outputfile="@OUTPUT@"~
11287 lt_tool_outputfile="@TOOL_OUTPUT@"~
11288 case $lt_outputfile in
11289 *.exe|*.EXE) ;;
11290 *)
11291 lt_outputfile=$lt_outputfile.exe
11292 lt_tool_outputfile=$lt_tool_outputfile.exe
11293 ;;
11294 esac~
11295 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11296 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11297 $RM "$lt_outputfile.manifest";
11298 fi'
11299 ;;
11300 *)
11301 # Assume MSVC and ICC wrapper
11302 hardcode_libdir_flag_spec=' '
11303 allow_undefined_flag=unsupported
11304 # Tell ltmain to make .lib files, not .a files.
11305 libext=lib
11306 # Tell ltmain to make .dll files, not .so files.
11307 shrext_cmds=.dll
11308 # FIXME: Setting linknames here is a bad hack.
11309 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11310 # The linker will automatically build a .lib file if we build a DLL.
11311 old_archive_from_new_cmds='true'
11312 # FIXME: Should let the user specify the lib program.
11313 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11314 enable_shared_with_static_runtimes=yes
11315 ;;
11316 esac
11317 ;;
11318
11319 darwin* | rhapsody*)
11320
11321
11322 archive_cmds_need_lc=no
11323 hardcode_direct=no
11324 hardcode_automatic=yes
11325 hardcode_shlibpath_var=unsupported
11326 if test yes = "$lt_cv_ld_force_load"; then
11327 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\"`'
11328
11329 else
11330 whole_archive_flag_spec=''
11331 fi
11332 link_all_deplibs=yes
11333 allow_undefined_flag=$_lt_dar_allow_undefined
11334 case $cc_basename in
11335 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11336 *) _lt_dar_can_shared=$GCC ;;
11337 esac
11338 if test yes = "$_lt_dar_can_shared"; then
11339 output_verbose_link_cmd=func_echo_all
11340 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11341 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11342 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"
11343 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"
11344
11345 else
11346 ld_shlibs=no
11347 fi
11348
11349 ;;
11350
11351 dgux*)
11352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353 hardcode_libdir_flag_spec='-L$libdir'
11354 hardcode_shlibpath_var=no
11355 ;;
11356
11357 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11358 # support. Future versions do this automatically, but an explicit c++rt0.o
11359 # does not break anything, and helps significantly (at the cost of a little
11360 # extra space).
11361 freebsd2.2*)
11362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11363 hardcode_libdir_flag_spec='-R$libdir'
11364 hardcode_direct=yes
11365 hardcode_shlibpath_var=no
11366 ;;
11367
11368 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11369 freebsd2.*)
11370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11371 hardcode_direct=yes
11372 hardcode_minus_L=yes
11373 hardcode_shlibpath_var=no
11374 ;;
11375
11376 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11377 freebsd* | dragonfly* | midnightbsd*)
11378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11379 hardcode_libdir_flag_spec='-R$libdir'
11380 hardcode_direct=yes
11381 hardcode_shlibpath_var=no
11382 ;;
11383
11384 hpux9*)
11385 if test yes = "$GCC"; then
11386 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'
11387 else
11388 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'
11389 fi
11390 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11391 hardcode_libdir_separator=:
11392 hardcode_direct=yes
11393
11394 # hardcode_minus_L: Not really in the search PATH,
11395 # but as the default location of the library.
11396 hardcode_minus_L=yes
11397 export_dynamic_flag_spec='$wl-E'
11398 ;;
11399
11400 hpux10*)
11401 if test yes,no = "$GCC,$with_gnu_ld"; then
11402 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11403 else
11404 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11405 fi
11406 if test no = "$with_gnu_ld"; then
11407 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11408 hardcode_libdir_separator=:
11409 hardcode_direct=yes
11410 hardcode_direct_absolute=yes
11411 export_dynamic_flag_spec='$wl-E'
11412 # hardcode_minus_L: Not really in the search PATH,
11413 # but as the default location of the library.
11414 hardcode_minus_L=yes
11415 fi
11416 ;;
11417
11418 hpux11*)
11419 if test yes,no = "$GCC,$with_gnu_ld"; then
11420 case $host_cpu in
11421 hppa*64*)
11422 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11423 ;;
11424 ia64*)
11425 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11426 ;;
11427 *)
11428 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11429 ;;
11430 esac
11431 else
11432 case $host_cpu in
11433 hppa*64*)
11434 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11435 ;;
11436 ia64*)
11437 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11438 ;;
11439 *)
11440
11441 # Older versions of the 11.00 compiler do not understand -b yet
11442 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11444 printf %s "checking if $CC understands -b... " >&6; }
11445 if test ${lt_cv_prog_compiler__b+y}
11446 then :
11447 printf %s "(cached) " >&6
11448 else case e in #(
11449 e) lt_cv_prog_compiler__b=no
11450 save_LDFLAGS=$LDFLAGS
11451 LDFLAGS="$LDFLAGS -b"
11452 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11454 # The linker can only warn and ignore the option if not recognized
11455 # So say no if there are warnings
11456 if test -s conftest.err; then
11457 # Append any errors to the config.log.
11458 cat conftest.err 1>&5
11459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11461 if diff conftest.exp conftest.er2 >/dev/null; then
11462 lt_cv_prog_compiler__b=yes
11463 fi
11464 else
11465 lt_cv_prog_compiler__b=yes
11466 fi
11467 fi
11468 $RM -r conftest*
11469 LDFLAGS=$save_LDFLAGS
11470 ;;
11471 esac
11472 fi
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11474 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11475
11476 if test yes = "$lt_cv_prog_compiler__b"; then
11477 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11478 else
11479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11480 fi
11481
11482 ;;
11483 esac
11484 fi
11485 if test no = "$with_gnu_ld"; then
11486 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11487 hardcode_libdir_separator=:
11488
11489 case $host_cpu in
11490 hppa*64*|ia64*)
11491 hardcode_direct=no
11492 hardcode_shlibpath_var=no
11493 ;;
11494 *)
11495 hardcode_direct=yes
11496 hardcode_direct_absolute=yes
11497 export_dynamic_flag_spec='$wl-E'
11498
11499 # hardcode_minus_L: Not really in the search PATH,
11500 # but as the default location of the library.
11501 hardcode_minus_L=yes
11502 ;;
11503 esac
11504 fi
11505 ;;
11506
11507 irix5* | irix6* | nonstopux*)
11508 if test yes = "$GCC"; then
11509 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'
11510 # Try to use the -exported_symbol ld option, if it does not
11511 # work, assume that -exports_file does not work either and
11512 # implicitly export all symbols.
11513 # This should be the same for all languages, so no per-tag cache variable.
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11515 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11516 if test ${lt_cv_irix_exported_symbol+y}
11517 then :
11518 printf %s "(cached) " >&6
11519 else case e in #(
11520 e) save_LDFLAGS=$LDFLAGS
11521 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524 int foo (void) { return 0; }
11525 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"
11527 then :
11528 lt_cv_irix_exported_symbol=yes
11529 else case e in #(
11530 e) lt_cv_irix_exported_symbol=no ;;
11531 esac
11532 fi
11533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11534 conftest$ac_exeext conftest.$ac_ext
11535 LDFLAGS=$save_LDFLAGS ;;
11536 esac
11537 fi
11538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11539 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11540 if test yes = "$lt_cv_irix_exported_symbol"; then
11541 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'
11542 fi
11543 else
11544 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'
11545 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'
11546 fi
11547 archive_cmds_need_lc='no'
11548 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11549 hardcode_libdir_separator=:
11550 inherit_rpath=yes
11551 link_all_deplibs=yes
11552 ;;
11553
11554 linux*)
11555 case $cc_basename in
11556 tcc*)
11557 # Fabrice Bellard et al's Tiny C Compiler
11558 ld_shlibs=yes
11559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11561 ;;
11562 esac
11563 ;;
11564
11565 *-mlibc)
11566 ;;
11567
11568 netbsd* | netbsdelf*-gnu)
11569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11571 else
11572 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11573 fi
11574 hardcode_libdir_flag_spec='-R$libdir'
11575 hardcode_direct=yes
11576 hardcode_shlibpath_var=no
11577 ;;
11578
11579 newsos6)
11580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11581 hardcode_direct=yes
11582 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11583 hardcode_libdir_separator=:
11584 hardcode_shlibpath_var=no
11585 ;;
11586
11587 *nto* | *qnx*)
11588 ;;
11589
11590 openbsd*)
11591 if test -f /usr/libexec/ld.so; then
11592 hardcode_direct=yes
11593 hardcode_shlibpath_var=no
11594 hardcode_direct_absolute=yes
11595 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11597 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11598 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11599 export_dynamic_flag_spec='$wl-E'
11600 else
11601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11602 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11603 fi
11604 else
11605 ld_shlibs=no
11606 fi
11607 ;;
11608
11609 os2*)
11610 hardcode_libdir_flag_spec='-L$libdir'
11611 hardcode_minus_L=yes
11612 allow_undefined_flag=unsupported
11613 shrext_cmds=.dll
11614 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11615 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11616 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11617 $ECHO EXPORTS >> $output_objdir/$libname.def~
11618 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11619 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11620 emximp -o $lib $output_objdir/$libname.def'
11621 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11622 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11623 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11624 $ECHO EXPORTS >> $output_objdir/$libname.def~
11625 prefix_cmds="$SED"~
11626 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11627 prefix_cmds="$prefix_cmds -e 1d";
11628 fi~
11629 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11630 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11631 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11632 emximp -o $lib $output_objdir/$libname.def'
11633 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11634 enable_shared_with_static_runtimes=yes
11635 file_list_spec='@'
11636 ;;
11637
11638 osf3*)
11639 if test yes = "$GCC"; then
11640 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11641 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'
11642 else
11643 allow_undefined_flag=' -expect_unresolved \*'
11644 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'
11645 fi
11646 archive_cmds_need_lc='no'
11647 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11648 hardcode_libdir_separator=:
11649 ;;
11650
11651 osf4* | osf5*) # as osf3* with the addition of -msym flag
11652 if test yes = "$GCC"; then
11653 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11654 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'
11655 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11656 else
11657 allow_undefined_flag=' -expect_unresolved \*'
11658 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'
11659 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~
11660 $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'
11661
11662 # Both c and cxx compiler support -rpath directly
11663 hardcode_libdir_flag_spec='-rpath $libdir'
11664 fi
11665 archive_cmds_need_lc='no'
11666 hardcode_libdir_separator=:
11667 ;;
11668
11669 serenity*)
11670 ;;
11671
11672 solaris*)
11673 no_undefined_flag=' -z defs'
11674 if test yes = "$GCC"; then
11675 wlarc='$wl'
11676 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11677 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11678 $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'
11679 else
11680 case `$CC -V 2>&1` in
11681 *"Compilers 5.0"*)
11682 wlarc=''
11683 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11684 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11685 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11686 ;;
11687 *)
11688 wlarc='$wl'
11689 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11690 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11691 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11692 ;;
11693 esac
11694 fi
11695 hardcode_libdir_flag_spec='-R$libdir'
11696 hardcode_shlibpath_var=no
11697 case $host_os in
11698 solaris2.[0-5] | solaris2.[0-5].*) ;;
11699 *)
11700 # The compiler driver will combine and reorder linker options,
11701 # but understands '-z linker_flag'. GCC discards it without '$wl',
11702 # but is careful enough not to reorder.
11703 # Supported since Solaris 2.6 (maybe 2.5.1?)
11704 if test yes = "$GCC"; then
11705 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11706 else
11707 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11708 fi
11709 ;;
11710 esac
11711 link_all_deplibs=yes
11712 ;;
11713
11714 sunos4*)
11715 if test sequent = "$host_vendor"; then
11716 # Use $CC to link under sequent, because it throws in some extra .o
11717 # files that make .init and .fini sections work.
11718 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11719 else
11720 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11721 fi
11722 hardcode_libdir_flag_spec='-L$libdir'
11723 hardcode_direct=yes
11724 hardcode_minus_L=yes
11725 hardcode_shlibpath_var=no
11726 ;;
11727
11728 sysv4)
11729 case $host_vendor in
11730 sni)
11731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11732 hardcode_direct=yes # is this really true???
11733 ;;
11734 siemens)
11735 ## LD is ld it makes a PLAMLIB
11736 ## CC just makes a GrossModule.
11737 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11738 reload_cmds='$CC -r -o $output$reload_objs'
11739 hardcode_direct=no
11740 ;;
11741 motorola)
11742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11743 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11744 ;;
11745 esac
11746 runpath_var='LD_RUN_PATH'
11747 hardcode_shlibpath_var=no
11748 ;;
11749
11750 sysv4.3*)
11751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11752 hardcode_shlibpath_var=no
11753 export_dynamic_flag_spec='-Bexport'
11754 ;;
11755
11756 sysv4*MP*)
11757 if test -d /usr/nec; then
11758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11759 hardcode_shlibpath_var=no
11760 runpath_var=LD_RUN_PATH
11761 hardcode_runpath_var=yes
11762 ld_shlibs=yes
11763 fi
11764 ;;
11765
11766 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11767 no_undefined_flag='$wl-z,text'
11768 archive_cmds_need_lc=no
11769 hardcode_shlibpath_var=no
11770 runpath_var='LD_RUN_PATH'
11771
11772 if test yes = "$GCC"; then
11773 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11774 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11775 else
11776 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 fi
11779 ;;
11780
11781 sysv5* | sco3.2v5* | sco5v6*)
11782 # Note: We CANNOT use -z defs as we might desire, because we do not
11783 # link with -lc, and that would cause any symbols used from libc to
11784 # always be unresolved, which means just about no library would
11785 # ever link correctly. If we're not using GNU ld we use -z text
11786 # though, which does catch some bad symbols but isn't as heavy-handed
11787 # as -z defs.
11788 no_undefined_flag='$wl-z,text'
11789 allow_undefined_flag='$wl-z,nodefs'
11790 archive_cmds_need_lc=no
11791 hardcode_shlibpath_var=no
11792 hardcode_libdir_flag_spec='$wl-R,$libdir'
11793 hardcode_libdir_separator=':'
11794 link_all_deplibs=yes
11795 export_dynamic_flag_spec='$wl-Bexport'
11796 runpath_var='LD_RUN_PATH'
11797
11798 if test yes = "$GCC"; then
11799 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11801 else
11802 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11803 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 fi
11805 ;;
11806
11807 uts4*)
11808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11809 hardcode_libdir_flag_spec='-L$libdir'
11810 hardcode_shlibpath_var=no
11811 ;;
11812
11813 *)
11814 ld_shlibs=no
11815 ;;
11816 esac
11817
11818 if test sni = "$host_vendor"; then
11819 case $host in
11820 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11821 export_dynamic_flag_spec='$wl-Blargedynsym'
11822 ;;
11823 esac
11824 fi
11825 fi
11826
11827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11828 printf "%s\n" "$ld_shlibs" >&6; }
11829 test no = "$ld_shlibs" && can_build_shared=no
11830
11831 with_gnu_ld=$with_gnu_ld
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847 #
11848 # Do we need to explicitly link libc?
11849 #
11850 case "x$archive_cmds_need_lc" in
11851 x|xyes)
11852 # Assume -lc should be added
11853 archive_cmds_need_lc=yes
11854
11855 if test yes,yes = "$GCC,$enable_shared"; then
11856 case $archive_cmds in
11857 *'~'*)
11858 # FIXME: we may have to deal with multi-command sequences.
11859 ;;
11860 '$CC '*)
11861 # Test whether the compiler implicitly links with -lc since on some
11862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11863 # to ld, don't add -lc before -lgcc.
11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11865 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11866 if test ${lt_cv_archive_cmds_need_lc+y}
11867 then :
11868 printf %s "(cached) " >&6
11869 else case e in #(
11870 e) $RM conftest*
11871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11872
11873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11874 (eval $ac_compile) 2>&5
11875 ac_status=$?
11876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11877 test $ac_status = 0; } 2>conftest.err; then
11878 soname=conftest
11879 lib=conftest
11880 libobjs=conftest.$ac_objext
11881 deplibs=
11882 wl=$lt_prog_compiler_wl
11883 pic_flag=$lt_prog_compiler_pic
11884 compiler_flags=-v
11885 linker_flags=-v
11886 verstring=
11887 output_objdir=.
11888 libname=conftest
11889 lt_save_allow_undefined_flag=$allow_undefined_flag
11890 allow_undefined_flag=
11891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11892 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11893 ac_status=$?
11894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11895 test $ac_status = 0; }
11896 then
11897 lt_cv_archive_cmds_need_lc=no
11898 else
11899 lt_cv_archive_cmds_need_lc=yes
11900 fi
11901 allow_undefined_flag=$lt_save_allow_undefined_flag
11902 else
11903 cat conftest.err 1>&5
11904 fi
11905 $RM conftest*
11906 ;;
11907 esac
11908 fi
11909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11910 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11911 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11912 ;;
11913 esac
11914 fi
11915 ;;
11916 esac
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12070 printf %s "checking dynamic linker characteristics... " >&6; }
12071
12072 if test yes = "$GCC"; then
12073 case $host_os in
12074 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12075 *) lt_awk_arg='/^libraries:/' ;;
12076 esac
12077 case $host_os in
12078 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12079 *) lt_sed_strip_eq='s|=/|/|g' ;;
12080 esac
12081 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12082 case $lt_search_path_spec in
12083 *\;*)
12084 # if the path contains ";" then we assume it to be the separator
12085 # otherwise default to the standard path separator (i.e. ":") - it is
12086 # assumed that no part of a normal pathname contains ";" but that should
12087 # okay in the real world where ";" in dirpaths is itself problematic.
12088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12089 ;;
12090 *)
12091 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12092 ;;
12093 esac
12094 # Ok, now we have the path, separated by spaces, we can step through it
12095 # and add multilib dir if necessary...
12096 lt_tmp_lt_search_path_spec=
12097 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12098 # ...but if some path component already ends with the multilib dir we assume
12099 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12100 case "$lt_multi_os_dir; $lt_search_path_spec " in
12101 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12102 lt_multi_os_dir=
12103 ;;
12104 esac
12105 for lt_sys_path in $lt_search_path_spec; do
12106 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12108 elif test -n "$lt_multi_os_dir"; then
12109 test -d "$lt_sys_path" && \
12110 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12111 fi
12112 done
12113 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12114 BEGIN {RS = " "; FS = "/|\n";} {
12115 lt_foo = "";
12116 lt_count = 0;
12117 for (lt_i = NF; lt_i > 0; lt_i--) {
12118 if ($lt_i != "" && $lt_i != ".") {
12119 if ($lt_i == "..") {
12120 lt_count++;
12121 } else {
12122 if (lt_count == 0) {
12123 lt_foo = "/" $lt_i lt_foo;
12124 } else {
12125 lt_count--;
12126 }
12127 }
12128 }
12129 }
12130 if (lt_foo != "") { lt_freq[lt_foo]++; }
12131 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12132 }'`
12133 # AWK program above erroneously prepends '/' to C:/dos/paths
12134 # for these hosts.
12135 case $host_os in
12136 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12137 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12138 esac
12139 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12140 else
12141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12142 fi
12143 library_names_spec=
12144 libname_spec='lib$name'
12145 soname_spec=
12146 shrext_cmds=.so
12147 postinstall_cmds=
12148 postuninstall_cmds=
12149 finish_cmds=
12150 finish_eval=
12151 shlibpath_var=
12152 shlibpath_overrides_runpath=unknown
12153 version_type=none
12154 dynamic_linker="$host_os ld.so"
12155 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12156 need_lib_prefix=unknown
12157 hardcode_into_libs=no
12158
12159 # when you set need_version to no, make sure it does not cause -set_version
12160 # flags to be left without arguments
12161 need_version=unknown
12162
12163
12164
12165 case $host_os in
12166 aix3*)
12167 version_type=linux # correct to gnu/linux during the next big refactor
12168 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12169 shlibpath_var=LIBPATH
12170
12171 # AIX 3 has no versioning support, so we append a major version to the name.
12172 soname_spec='$libname$release$shared_ext$major'
12173 ;;
12174
12175 aix[4-9]*)
12176 version_type=linux # correct to gnu/linux during the next big refactor
12177 need_lib_prefix=no
12178 need_version=no
12179 hardcode_into_libs=yes
12180 if test ia64 = "$host_cpu"; then
12181 # AIX 5 supports IA64
12182 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12183 shlibpath_var=LD_LIBRARY_PATH
12184 else
12185 # With GCC up to 2.95.x, collect2 would create an import file
12186 # for dependence libraries. The import file would start with
12187 # the line '#! .'. This would cause the generated library to
12188 # depend on '.', always an invalid library. This was fixed in
12189 # development snapshots of GCC prior to 3.0.
12190 case $host_os in
12191 aix4 | aix4.[01] | aix4.[01].*)
12192 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12193 echo ' yes '
12194 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12195 :
12196 else
12197 can_build_shared=no
12198 fi
12199 ;;
12200 esac
12201 # Using Import Files as archive members, it is possible to support
12202 # filename-based versioning of shared library archives on AIX. While
12203 # this would work for both with and without runtime linking, it will
12204 # prevent static linking of such archives. So we do filename-based
12205 # shared library versioning with .so extension only, which is used
12206 # when both runtime linking and shared linking is enabled.
12207 # Unfortunately, runtime linking may impact performance, so we do
12208 # not want this to be the default eventually. Also, we use the
12209 # versioned .so libs for executables only if there is the -brtl
12210 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12211 # To allow for filename-based versioning support, we need to create
12212 # libNAME.so.V as an archive file, containing:
12213 # *) an Import File, referring to the versioned filename of the
12214 # archive as well as the shared archive member, telling the
12215 # bitwidth (32 or 64) of that shared object, and providing the
12216 # list of exported symbols of that shared object, eventually
12217 # decorated with the 'weak' keyword
12218 # *) the shared object with the F_LOADONLY flag set, to really avoid
12219 # it being seen by the linker.
12220 # At run time we better use the real file rather than another symlink,
12221 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12222
12223 case $with_aix_soname,$aix_use_runtimelinking in
12224 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12225 # soname into executable. Probably we can add versioning support to
12226 # collect2, so additional links can be useful in future.
12227 aix,yes) # traditional libtool
12228 dynamic_linker='AIX unversionable lib.so'
12229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12230 # instead of lib<name>.a to let people know that these are not
12231 # typical AIX shared libraries.
12232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12233 ;;
12234 aix,no) # traditional AIX only
12235 dynamic_linker='AIX lib.a(lib.so.V)'
12236 # We preserve .a as extension for shared libraries through AIX4.2
12237 # and later when we are not doing run time linking.
12238 library_names_spec='$libname$release.a $libname.a'
12239 soname_spec='$libname$release$shared_ext$major'
12240 ;;
12241 svr4,*) # full svr4 only
12242 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12243 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12244 # We do not specify a path in Import Files, so LIBPATH fires.
12245 shlibpath_overrides_runpath=yes
12246 ;;
12247 *,yes) # both, prefer svr4
12248 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12249 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12250 # unpreferred sharedlib libNAME.a needs extra handling
12251 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"'
12252 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"'
12253 # We do not specify a path in Import Files, so LIBPATH fires.
12254 shlibpath_overrides_runpath=yes
12255 ;;
12256 *,no) # both, prefer aix
12257 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12258 library_names_spec='$libname$release.a $libname.a'
12259 soname_spec='$libname$release$shared_ext$major'
12260 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12261 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)'
12262 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"'
12263 ;;
12264 esac
12265 shlibpath_var=LIBPATH
12266 fi
12267 ;;
12268
12269 amigaos*)
12270 case $host_cpu in
12271 powerpc)
12272 # Since July 2007 AmigaOS4 officially supports .so libraries.
12273 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12275 ;;
12276 m68k)
12277 library_names_spec='$libname.ixlibrary $libname.a'
12278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12279 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'
12280 ;;
12281 esac
12282 ;;
12283
12284 beos*)
12285 library_names_spec='$libname$shared_ext'
12286 dynamic_linker="$host_os ld.so"
12287 shlibpath_var=LIBRARY_PATH
12288 ;;
12289
12290 bsdi[45]*)
12291 version_type=linux # correct to gnu/linux during the next big refactor
12292 need_version=no
12293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12294 soname_spec='$libname$release$shared_ext$major'
12295 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12296 shlibpath_var=LD_LIBRARY_PATH
12297 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12298 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12299 # the default ld.so.conf also contains /usr/contrib/lib and
12300 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12301 # libtool to hard-code these into programs
12302 ;;
12303
12304 cygwin* | mingw* | windows* | pw32* | cegcc*)
12305 version_type=windows
12306 shrext_cmds=.dll
12307 need_version=no
12308 need_lib_prefix=no
12309
12310 case $GCC,$cc_basename in
12311 yes,*)
12312 # gcc
12313 library_names_spec='$libname.dll.a'
12314 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12315 # If user builds GCC with multilib enabled,
12316 # it should just install on $(libdir)
12317 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12318 if test xyes = x"$multilib"; then
12319 postinstall_cmds='base_file=`basename \$file`~
12320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12321 dldir=$destdir/`dirname \$dlpath`~
12322 $install_prog $dir/$dlname $destdir/$dlname~
12323 chmod a+x $destdir/$dlname~
12324 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12325 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12326 fi'
12327 else
12328 postinstall_cmds='base_file=`basename \$file`~
12329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12330 dldir=$destdir/`dirname \$dlpath`~
12331 test -d \$dldir || mkdir -p \$dldir~
12332 $install_prog $dir/$dlname \$dldir/$dlname~
12333 chmod a+x \$dldir/$dlname~
12334 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12335 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12336 fi'
12337 fi
12338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12339 dlpath=$dir/\$dldll~
12340 $RM \$dlpath'
12341 shlibpath_overrides_runpath=yes
12342
12343 case $host_os in
12344 cygwin*)
12345 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12346 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12347
12348 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12349 ;;
12350 mingw* | windows* | cegcc*)
12351 # MinGW DLLs use traditional 'lib' prefix
12352 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12353 ;;
12354 pw32*)
12355 # pw32 DLLs use 'pw' prefix rather than 'lib'
12356 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12357 ;;
12358 esac
12359 dynamic_linker='Win32 ld.exe'
12360 ;;
12361
12362 *,cl* | *,icl*)
12363 # Native MSVC or ICC
12364 libname_spec='$name'
12365 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12366 library_names_spec='$libname.dll.lib'
12367
12368 case $build_os in
12369 mingw* | windows*)
12370 sys_lib_search_path_spec=
12371 lt_save_ifs=$IFS
12372 IFS=';'
12373 for lt_path in $LIB
12374 do
12375 IFS=$lt_save_ifs
12376 # Let DOS variable expansion print the short 8.3 style file name.
12377 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12378 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12379 done
12380 IFS=$lt_save_ifs
12381 # Convert to MSYS style.
12382 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12383 ;;
12384 cygwin*)
12385 # Convert to unix form, then to dos form, then back to unix form
12386 # but this time dos style (no spaces!) so that the unix form looks
12387 # like /cygdrive/c/PROGRA~1:/cygdr...
12388 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12389 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12390 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12391 ;;
12392 *)
12393 sys_lib_search_path_spec=$LIB
12394 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12395 # It is most probably a Windows format PATH.
12396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12397 else
12398 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12399 fi
12400 # FIXME: find the short name or the path components, as spaces are
12401 # common. (e.g. "Program Files" -> "PROGRA~1")
12402 ;;
12403 esac
12404
12405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12406 postinstall_cmds='base_file=`basename \$file`~
12407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12408 dldir=$destdir/`dirname \$dlpath`~
12409 test -d \$dldir || mkdir -p \$dldir~
12410 $install_prog $dir/$dlname \$dldir/$dlname'
12411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12412 dlpath=$dir/\$dldll~
12413 $RM \$dlpath'
12414 shlibpath_overrides_runpath=yes
12415 dynamic_linker='Win32 link.exe'
12416 ;;
12417
12418 *)
12419 # Assume MSVC and ICC wrapper
12420 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12421 dynamic_linker='Win32 ld.exe'
12422 ;;
12423 esac
12424 # FIXME: first we should search . and the directory the executable is in
12425 shlibpath_var=PATH
12426 ;;
12427
12428 darwin* | rhapsody*)
12429 dynamic_linker="$host_os dyld"
12430 version_type=darwin
12431 need_lib_prefix=no
12432 need_version=no
12433 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12434 soname_spec='$libname$release$major$shared_ext'
12435 shlibpath_overrides_runpath=yes
12436 shlibpath_var=DYLD_LIBRARY_PATH
12437 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12438
12439 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12441 ;;
12442
12443 dgux*)
12444 version_type=linux # correct to gnu/linux during the next big refactor
12445 need_lib_prefix=no
12446 need_version=no
12447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12448 soname_spec='$libname$release$shared_ext$major'
12449 shlibpath_var=LD_LIBRARY_PATH
12450 ;;
12451
12452 freebsd* | dragonfly* | midnightbsd*)
12453 # DragonFly does not have aout. When/if they implement a new
12454 # versioning mechanism, adjust this.
12455 if test -x /usr/bin/objformat; then
12456 objformat=`/usr/bin/objformat`
12457 else
12458 case $host_os in
12459 freebsd[23].*) objformat=aout ;;
12460 *) objformat=elf ;;
12461 esac
12462 fi
12463 version_type=freebsd-$objformat
12464 case $version_type in
12465 freebsd-elf*)
12466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467 soname_spec='$libname$release$shared_ext$major'
12468 need_version=no
12469 need_lib_prefix=no
12470 ;;
12471 freebsd-*)
12472 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12473 need_version=yes
12474 ;;
12475 esac
12476 case $host_cpu in
12477 powerpc64)
12478 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12479 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12482 int test_pointer_size[sizeof (void *) - 5];
12483
12484 _ACEOF
12485 if ac_fn_c_try_compile "$LINENO"
12486 then :
12487 shlibpath_var=LD_LIBRARY_PATH
12488 else case e in #(
12489 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12490 esac
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12493 ;;
12494 *)
12495 shlibpath_var=LD_LIBRARY_PATH
12496 ;;
12497 esac
12498 case $host_os in
12499 freebsd2.*)
12500 shlibpath_overrides_runpath=yes
12501 ;;
12502 freebsd3.[01]* | freebsdelf3.[01]*)
12503 shlibpath_overrides_runpath=yes
12504 hardcode_into_libs=yes
12505 ;;
12506 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12507 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12508 shlibpath_overrides_runpath=no
12509 hardcode_into_libs=yes
12510 ;;
12511 *) # from 4.6 on, and DragonFly
12512 shlibpath_overrides_runpath=yes
12513 hardcode_into_libs=yes
12514 ;;
12515 esac
12516 ;;
12517
12518 haiku*)
12519 version_type=linux # correct to gnu/linux during the next big refactor
12520 need_lib_prefix=no
12521 need_version=no
12522 dynamic_linker="$host_os runtime_loader"
12523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12524 soname_spec='$libname$release$shared_ext$major'
12525 shlibpath_var=LIBRARY_PATH
12526 shlibpath_overrides_runpath=no
12527 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12528 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12529 hardcode_into_libs=no
12530 ;;
12531
12532 hpux9* | hpux10* | hpux11*)
12533 # Give a soname corresponding to the major version so that dld.sl refuses to
12534 # link against other versions.
12535 version_type=sunos
12536 need_lib_prefix=no
12537 need_version=no
12538 case $host_cpu in
12539 ia64*)
12540 shrext_cmds='.so'
12541 hardcode_into_libs=yes
12542 dynamic_linker="$host_os dld.so"
12543 shlibpath_var=LD_LIBRARY_PATH
12544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12546 soname_spec='$libname$release$shared_ext$major'
12547 if test 32 = "$HPUX_IA64_MODE"; then
12548 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12549 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12550 else
12551 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12552 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12553 fi
12554 ;;
12555 hppa*64*)
12556 shrext_cmds='.sl'
12557 hardcode_into_libs=yes
12558 dynamic_linker="$host_os dld.sl"
12559 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12562 soname_spec='$libname$release$shared_ext$major'
12563 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12565 ;;
12566 *)
12567 shrext_cmds='.sl'
12568 dynamic_linker="$host_os dld.sl"
12569 shlibpath_var=SHLIB_PATH
12570 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12572 soname_spec='$libname$release$shared_ext$major'
12573 ;;
12574 esac
12575 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12576 postinstall_cmds='chmod 555 $lib'
12577 # or fails outright, so override atomically:
12578 install_override_mode=555
12579 ;;
12580
12581 interix[3-9]*)
12582 version_type=linux # correct to gnu/linux during the next big refactor
12583 need_lib_prefix=no
12584 need_version=no
12585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12586 soname_spec='$libname$release$shared_ext$major'
12587 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12588 shlibpath_var=LD_LIBRARY_PATH
12589 shlibpath_overrides_runpath=no
12590 hardcode_into_libs=yes
12591 ;;
12592
12593 irix5* | irix6* | nonstopux*)
12594 case $host_os in
12595 nonstopux*) version_type=nonstopux ;;
12596 *)
12597 if test yes = "$lt_cv_prog_gnu_ld"; then
12598 version_type=linux # correct to gnu/linux during the next big refactor
12599 else
12600 version_type=irix
12601 fi ;;
12602 esac
12603 need_lib_prefix=no
12604 need_version=no
12605 soname_spec='$libname$release$shared_ext$major'
12606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12607 case $host_os in
12608 irix5* | nonstopux*)
12609 libsuff= shlibsuff=
12610 ;;
12611 *)
12612 case $LD in # libtool.m4 will add one of these switches to LD
12613 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12614 libsuff= shlibsuff= libmagic=32-bit;;
12615 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12616 libsuff=32 shlibsuff=N32 libmagic=N32;;
12617 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12618 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12619 *) libsuff= shlibsuff= libmagic=never-match;;
12620 esac
12621 ;;
12622 esac
12623 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12624 shlibpath_overrides_runpath=no
12625 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12626 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12627 hardcode_into_libs=yes
12628 ;;
12629
12630 # No shared lib support for Linux oldld, aout, or coff.
12631 linux*oldld* | linux*aout* | linux*coff*)
12632 dynamic_linker=no
12633 ;;
12634
12635 linux*android*)
12636 version_type=none # Android doesn't support versioned libraries.
12637 need_lib_prefix=no
12638 need_version=no
12639 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12640 soname_spec='$libname$release$shared_ext'
12641 finish_cmds=
12642 shlibpath_var=LD_LIBRARY_PATH
12643 shlibpath_overrides_runpath=yes
12644
12645 # This implies no fast_install, which is unacceptable.
12646 # Some rework will be needed to allow for fast_install
12647 # before this can be enabled.
12648 hardcode_into_libs=yes
12649
12650 dynamic_linker='Android linker'
12651 # -rpath works at least for libraries that are not overridden by
12652 # libraries installed in system locations.
12653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12654 ;;
12655
12656 # This must be glibc/ELF.
12657 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12658 version_type=linux # correct to gnu/linux during the next big refactor
12659 need_lib_prefix=no
12660 need_version=no
12661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12662 soname_spec='$libname$release$shared_ext$major'
12663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12664 shlibpath_var=LD_LIBRARY_PATH
12665 shlibpath_overrides_runpath=no
12666
12667 # Some binutils ld are patched to set DT_RUNPATH
12668 if test ${lt_cv_shlibpath_overrides_runpath+y}
12669 then :
12670 printf %s "(cached) " >&6
12671 else case e in #(
12672 e) lt_cv_shlibpath_overrides_runpath=no
12673 save_LDFLAGS=$LDFLAGS
12674 save_libdir=$libdir
12675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679
12680 int
12681 main (void)
12682 {
12683
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_c_try_link "$LINENO"
12689 then :
12690 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12691 then :
12692 lt_cv_shlibpath_overrides_runpath=yes
12693 fi
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12696 conftest$ac_exeext conftest.$ac_ext
12697 LDFLAGS=$save_LDFLAGS
12698 libdir=$save_libdir
12699 ;;
12700 esac
12701 fi
12702
12703 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12704
12705 # This implies no fast_install, which is unacceptable.
12706 # Some rework will be needed to allow for fast_install
12707 # before this can be enabled.
12708 hardcode_into_libs=yes
12709
12710 # Ideally, we could use ldconfig to report *all* directories which are
12711 # searched for libraries, however this is still not possible. Aside from not
12712 # being certain /sbin/ldconfig is available, command
12713 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12714 # even though it is searched at run-time. Try to do the best guess by
12715 # appending ld.so.conf contents (and includes) to the search path.
12716 if test -f /etc/ld.so.conf; then
12717 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' ' '`
12718 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12719 fi
12720
12721 # We used to test for /lib/ld.so.1 and disable shared libraries on
12722 # powerpc, because MkLinux only supported shared libraries with the
12723 # GNU dynamic linker. Since this was broken with cross compilers,
12724 # most powerpc-linux boxes support dynamic linking these days and
12725 # people can always --disable-shared, the test was removed, and we
12726 # assume the GNU/Linux dynamic linker is in use.
12727 dynamic_linker='GNU/Linux ld.so'
12728 ;;
12729
12730 netbsdelf*-gnu)
12731 version_type=linux
12732 need_lib_prefix=no
12733 need_version=no
12734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12735 soname_spec='$libname$release$shared_ext$major'
12736 shlibpath_var=LD_LIBRARY_PATH
12737 shlibpath_overrides_runpath=no
12738 hardcode_into_libs=yes
12739 dynamic_linker='NetBSD ld.elf_so'
12740 ;;
12741
12742 netbsd*)
12743 version_type=sunos
12744 need_lib_prefix=no
12745 need_version=no
12746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12747 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12749 dynamic_linker='NetBSD (a.out) ld.so'
12750 else
12751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12752 soname_spec='$libname$release$shared_ext$major'
12753 dynamic_linker='NetBSD ld.elf_so'
12754 fi
12755 shlibpath_var=LD_LIBRARY_PATH
12756 shlibpath_overrides_runpath=yes
12757 hardcode_into_libs=yes
12758 ;;
12759
12760 *-mlibc)
12761 version_type=linux # correct to gnu/linux during the next big refactor
12762 need_lib_prefix=no
12763 need_version=no
12764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12765 soname_spec='$libname$release$shared_ext$major'
12766 dynamic_linker='mlibc ld.so'
12767 shlibpath_var=LD_LIBRARY_PATH
12768 shlibpath_overrides_runpath=no
12769 hardcode_into_libs=yes
12770 ;;
12771
12772 newsos6)
12773 version_type=linux # correct to gnu/linux during the next big refactor
12774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12775 shlibpath_var=LD_LIBRARY_PATH
12776 shlibpath_overrides_runpath=yes
12777 ;;
12778
12779 *nto* | *qnx*)
12780 version_type=qnx
12781 need_lib_prefix=no
12782 need_version=no
12783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12784 soname_spec='$libname$release$shared_ext$major'
12785 shlibpath_var=LD_LIBRARY_PATH
12786 shlibpath_overrides_runpath=no
12787 hardcode_into_libs=yes
12788 dynamic_linker='ldqnx.so'
12789 ;;
12790
12791 openbsd*)
12792 version_type=sunos
12793 sys_lib_dlsearch_path_spec=/usr/lib
12794 need_lib_prefix=no
12795 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12796 need_version=no
12797 else
12798 need_version=yes
12799 fi
12800 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 shlibpath_overrides_runpath=yes
12804 ;;
12805
12806 os2*)
12807 libname_spec='$name'
12808 version_type=windows
12809 shrext_cmds=.dll
12810 need_version=no
12811 need_lib_prefix=no
12812 # OS/2 can only load a DLL with a base name of 8 characters or less.
12813 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12814 v=$($ECHO $release$versuffix | tr -d .-);
12815 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12816 $ECHO $n$v`$shared_ext'
12817 library_names_spec='${libname}_dll.$libext'
12818 dynamic_linker='OS/2 ld.exe'
12819 shlibpath_var=BEGINLIBPATH
12820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12822 postinstall_cmds='base_file=`basename \$file`~
12823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12824 dldir=$destdir/`dirname \$dlpath`~
12825 test -d \$dldir || mkdir -p \$dldir~
12826 $install_prog $dir/$dlname \$dldir/$dlname~
12827 chmod a+x \$dldir/$dlname~
12828 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12829 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12830 fi'
12831 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12832 dlpath=$dir/\$dldll~
12833 $RM \$dlpath'
12834 ;;
12835
12836 osf3* | osf4* | osf5*)
12837 version_type=osf
12838 need_lib_prefix=no
12839 need_version=no
12840 soname_spec='$libname$release$shared_ext$major'
12841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12842 shlibpath_var=LD_LIBRARY_PATH
12843 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12845 ;;
12846
12847 rdos*)
12848 dynamic_linker=no
12849 ;;
12850
12851 serenity*)
12852 version_type=linux # correct to gnu/linux during the next big refactor
12853 need_lib_prefix=no
12854 need_version=no
12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12856 soname_spec='$libname$release$shared_ext$major'
12857 shlibpath_var=LD_LIBRARY_PATH
12858 shlibpath_overrides_runpath=no
12859 dynamic_linker='SerenityOS LibELF'
12860 ;;
12861
12862 solaris*)
12863 version_type=linux # correct to gnu/linux during the next big refactor
12864 need_lib_prefix=no
12865 need_version=no
12866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12867 soname_spec='$libname$release$shared_ext$major'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 shlibpath_overrides_runpath=yes
12870 hardcode_into_libs=yes
12871 # ldd complains unless libraries are executable
12872 postinstall_cmds='chmod +x $lib'
12873 ;;
12874
12875 sunos4*)
12876 version_type=sunos
12877 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12878 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12879 shlibpath_var=LD_LIBRARY_PATH
12880 shlibpath_overrides_runpath=yes
12881 if test yes = "$with_gnu_ld"; then
12882 need_lib_prefix=no
12883 fi
12884 need_version=yes
12885 ;;
12886
12887 sysv4 | sysv4.3*)
12888 version_type=linux # correct to gnu/linux during the next big refactor
12889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12890 soname_spec='$libname$release$shared_ext$major'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 case $host_vendor in
12893 sni)
12894 shlibpath_overrides_runpath=no
12895 need_lib_prefix=no
12896 runpath_var=LD_RUN_PATH
12897 ;;
12898 siemens)
12899 need_lib_prefix=no
12900 ;;
12901 motorola)
12902 need_lib_prefix=no
12903 need_version=no
12904 shlibpath_overrides_runpath=no
12905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12906 ;;
12907 esac
12908 ;;
12909
12910 sysv4*MP*)
12911 if test -d /usr/nec; then
12912 version_type=linux # correct to gnu/linux during the next big refactor
12913 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12914 soname_spec='$libname$shared_ext.$major'
12915 shlibpath_var=LD_LIBRARY_PATH
12916 fi
12917 ;;
12918
12919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12920 version_type=sco
12921 need_lib_prefix=no
12922 need_version=no
12923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12924 soname_spec='$libname$release$shared_ext$major'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 shlibpath_overrides_runpath=yes
12927 hardcode_into_libs=yes
12928 if test yes = "$with_gnu_ld"; then
12929 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12930 else
12931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12932 case $host_os in
12933 sco3.2v5*)
12934 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12935 ;;
12936 esac
12937 fi
12938 sys_lib_dlsearch_path_spec='/usr/lib'
12939 ;;
12940
12941 tpf*)
12942 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12943 version_type=linux # correct to gnu/linux during the next big refactor
12944 need_lib_prefix=no
12945 need_version=no
12946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12947 shlibpath_var=LD_LIBRARY_PATH
12948 shlibpath_overrides_runpath=no
12949 hardcode_into_libs=yes
12950 ;;
12951
12952 uts4*)
12953 version_type=linux # correct to gnu/linux during the next big refactor
12954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12955 soname_spec='$libname$release$shared_ext$major'
12956 shlibpath_var=LD_LIBRARY_PATH
12957 ;;
12958
12959 emscripten*)
12960 version_type=none
12961 need_lib_prefix=no
12962 need_version=no
12963 library_names_spec='$libname$release$shared_ext'
12964 soname_spec='$libname$release$shared_ext'
12965 finish_cmds=
12966 dynamic_linker="Emscripten linker"
12967 lt_prog_compiler_wl=
12968 lt_prog_compiler_pic=
12969 lt_prog_compiler_static=
12970
12971
12972 if test yes = "$GCC"; then
12973 lt_prog_compiler_wl='-Wl,'
12974 lt_prog_compiler_static='-static'
12975
12976 case $host_os in
12977 aix*)
12978 # All AIX code is PIC.
12979 if test ia64 = "$host_cpu"; then
12980 # AIX 5 now supports IA64 processor
12981 lt_prog_compiler_static='-Bstatic'
12982 fi
12983 lt_prog_compiler_pic='-fPIC'
12984 ;;
12985
12986 amigaos*)
12987 case $host_cpu in
12988 powerpc)
12989 # see comment about AmigaOS4 .so support
12990 lt_prog_compiler_pic='-fPIC'
12991 ;;
12992 m68k)
12993 # FIXME: we need at least 68020 code to build shared libraries, but
12994 # adding the '-m68020' flag to GCC prevents building anything better,
12995 # like '-m68040'.
12996 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12997 ;;
12998 esac
12999 ;;
13000
13001 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13002 # PIC is the default for these OSes.
13003 ;;
13004
13005 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13006 # This hack is so that the source file can tell whether it is being
13007 # built for inclusion in a dll (and should export symbols for example).
13008 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13009 # (--disable-auto-import) libraries
13010 lt_prog_compiler_pic='-DDLL_EXPORT'
13011 case $host_os in
13012 os2*)
13013 lt_prog_compiler_static='$wl-static'
13014 ;;
13015 esac
13016 ;;
13017
13018 darwin* | rhapsody*)
13019 # PIC is the default on this platform
13020 # Common symbols not allowed in MH_DYLIB files
13021 lt_prog_compiler_pic='-fno-common'
13022 ;;
13023
13024 haiku*)
13025 # PIC is the default for Haiku.
13026 # The "-static" flag exists, but is broken.
13027 lt_prog_compiler_static=
13028 ;;
13029
13030 hpux*)
13031 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13032 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13033 # sets the default TLS model and affects inlining.
13034 case $host_cpu in
13035 hppa*64*)
13036 # +Z the default
13037 ;;
13038 *)
13039 lt_prog_compiler_pic='-fPIC'
13040 ;;
13041 esac
13042 ;;
13043
13044 interix[3-9]*)
13045 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13046 # Instead, we relocate shared libraries at runtime.
13047 ;;
13048
13049 msdosdjgpp*)
13050 # Just because we use GCC doesn't mean we suddenly get shared libraries
13051 # on systems that don't support them.
13052 lt_prog_compiler_can_build_shared=no
13053 enable_shared=no
13054 ;;
13055
13056 *nto* | *qnx*)
13057 # QNX uses GNU C++, but need to define -shared option too, otherwise
13058 # it will coredump.
13059 lt_prog_compiler_pic='-fPIC -shared'
13060 ;;
13061
13062 sysv4*MP*)
13063 if test -d /usr/nec; then
13064 lt_prog_compiler_pic=-Kconform_pic
13065 fi
13066 ;;
13067
13068 *)
13069 lt_prog_compiler_pic='-fPIC'
13070 ;;
13071 esac
13072
13073 case $cc_basename in
13074 nvcc*) # Cuda Compiler Driver 2.2
13075 lt_prog_compiler_wl='-Xlinker '
13076 if test -n "$lt_prog_compiler_pic"; then
13077 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13078 fi
13079 ;;
13080 esac
13081 else
13082 # PORTME Check for flag to pass linker flags through the system compiler.
13083 case $host_os in
13084 aix*)
13085 lt_prog_compiler_wl='-Wl,'
13086 if test ia64 = "$host_cpu"; then
13087 # AIX 5 now supports IA64 processor
13088 lt_prog_compiler_static='-Bstatic'
13089 else
13090 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13091 fi
13092 ;;
13093
13094 darwin* | rhapsody*)
13095 # PIC is the default on this platform
13096 # Common symbols not allowed in MH_DYLIB files
13097 lt_prog_compiler_pic='-fno-common'
13098 case $cc_basename in
13099 nagfor*)
13100 # NAG Fortran compiler
13101 lt_prog_compiler_wl='-Wl,-Wl,,'
13102 lt_prog_compiler_pic='-PIC'
13103 lt_prog_compiler_static='-Bstatic'
13104 ;;
13105 esac
13106 ;;
13107
13108 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13109 # This hack is so that the source file can tell whether it is being
13110 # built for inclusion in a dll (and should export symbols for example).
13111 lt_prog_compiler_pic='-DDLL_EXPORT'
13112 case $host_os in
13113 os2*)
13114 lt_prog_compiler_static='$wl-static'
13115 ;;
13116 esac
13117 ;;
13118
13119 hpux9* | hpux10* | hpux11*)
13120 lt_prog_compiler_wl='-Wl,'
13121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13122 # not for PA HP-UX.
13123 case $host_cpu in
13124 hppa*64*|ia64*)
13125 # +Z the default
13126 ;;
13127 *)
13128 lt_prog_compiler_pic='+Z'
13129 ;;
13130 esac
13131 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13132 lt_prog_compiler_static='$wl-a ${wl}archive'
13133 ;;
13134
13135 irix5* | irix6* | nonstopux*)
13136 lt_prog_compiler_wl='-Wl,'
13137 # PIC (with -KPIC) is the default.
13138 lt_prog_compiler_static='-non_shared'
13139 ;;
13140
13141 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13142 case $cc_basename in
13143 # old Intel for x86_64, which still supported -KPIC.
13144 ecc*)
13145 lt_prog_compiler_wl='-Wl,'
13146 lt_prog_compiler_pic='-KPIC'
13147 lt_prog_compiler_static='-static'
13148 ;;
13149 *flang* | ftn | f18* | f95*)
13150 # Flang compiler.
13151 lt_prog_compiler_wl='-Wl,'
13152 lt_prog_compiler_pic='-fPIC'
13153 lt_prog_compiler_static='-static'
13154 ;;
13155 # icc used to be incompatible with GCC.
13156 # ICC 10 doesn't accept -KPIC any more.
13157 icc* | ifort*)
13158 lt_prog_compiler_wl='-Wl,'
13159 lt_prog_compiler_pic='-fPIC'
13160 lt_prog_compiler_static='-static'
13161 ;;
13162 # Lahey Fortran 8.1.
13163 lf95*)
13164 lt_prog_compiler_wl='-Wl,'
13165 lt_prog_compiler_pic='--shared'
13166 lt_prog_compiler_static='--static'
13167 ;;
13168 nagfor*)
13169 # NAG Fortran compiler
13170 lt_prog_compiler_wl='-Wl,-Wl,,'
13171 lt_prog_compiler_pic='-PIC'
13172 lt_prog_compiler_static='-Bstatic'
13173 ;;
13174 tcc*)
13175 # Fabrice Bellard et al's Tiny C Compiler
13176 lt_prog_compiler_wl='-Wl,'
13177 lt_prog_compiler_pic='-fPIC'
13178 lt_prog_compiler_static='-static'
13179 ;;
13180 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13181 # Portland Group compilers (*not* the Pentium gcc compiler,
13182 # which looks to be a dead project)
13183 lt_prog_compiler_wl='-Wl,'
13184 lt_prog_compiler_pic='-fpic'
13185 lt_prog_compiler_static='-Bstatic'
13186 ;;
13187 ccc*)
13188 lt_prog_compiler_wl='-Wl,'
13189 # All Alpha code is PIC.
13190 lt_prog_compiler_static='-non_shared'
13191 ;;
13192 xl* | bgxl* | bgf* | mpixl*)
13193 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13194 lt_prog_compiler_wl='-Wl,'
13195 lt_prog_compiler_pic='-qpic'
13196 lt_prog_compiler_static='-qstaticlink'
13197 ;;
13198 *)
13199 case `$CC -V 2>&1 | $SED 5q` in
13200 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13202 lt_prog_compiler_pic='-KPIC'
13203 lt_prog_compiler_static='-Bstatic'
13204 lt_prog_compiler_wl=''
13205 ;;
13206 *Sun\ F* | *Sun*Fortran*)
13207 lt_prog_compiler_pic='-KPIC'
13208 lt_prog_compiler_static='-Bstatic'
13209 lt_prog_compiler_wl='-Qoption ld '
13210 ;;
13211 *Sun\ C*)
13212 # Sun C 5.9
13213 lt_prog_compiler_pic='-KPIC'
13214 lt_prog_compiler_static='-Bstatic'
13215 lt_prog_compiler_wl='-Wl,'
13216 ;;
13217 *Intel*\ [CF]*Compiler*)
13218 lt_prog_compiler_wl='-Wl,'
13219 lt_prog_compiler_pic='-fPIC'
13220 lt_prog_compiler_static='-static'
13221 ;;
13222 *Portland\ Group*)
13223 lt_prog_compiler_wl='-Wl,'
13224 lt_prog_compiler_pic='-fpic'
13225 lt_prog_compiler_static='-Bstatic'
13226 ;;
13227 esac
13228 ;;
13229 esac
13230 ;;
13231
13232 newsos6)
13233 lt_prog_compiler_pic='-KPIC'
13234 lt_prog_compiler_static='-Bstatic'
13235 ;;
13236
13237 *-mlibc)
13238 lt_prog_compiler_wl='-Wl,'
13239 lt_prog_compiler_pic='-fPIC'
13240 lt_prog_compiler_static='-static'
13241 ;;
13242
13243 *nto* | *qnx*)
13244 # QNX uses GNU C++, but need to define -shared option too, otherwise
13245 # it will coredump.
13246 lt_prog_compiler_pic='-fPIC -shared'
13247 ;;
13248
13249 osf3* | osf4* | osf5*)
13250 lt_prog_compiler_wl='-Wl,'
13251 # All OSF/1 code is PIC.
13252 lt_prog_compiler_static='-non_shared'
13253 ;;
13254
13255 rdos*)
13256 lt_prog_compiler_static='-non_shared'
13257 ;;
13258
13259 serenity*)
13260 ;;
13261
13262 solaris*)
13263 lt_prog_compiler_pic='-KPIC'
13264 lt_prog_compiler_static='-Bstatic'
13265 case $cc_basename in
13266 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13267 lt_prog_compiler_wl='-Qoption ld ';;
13268 *)
13269 lt_prog_compiler_wl='-Wl,';;
13270 esac
13271 ;;
13272
13273 sunos4*)
13274 lt_prog_compiler_wl='-Qoption ld '
13275 lt_prog_compiler_pic='-PIC'
13276 lt_prog_compiler_static='-Bstatic'
13277 ;;
13278
13279 sysv4 | sysv4.2uw2* | sysv4.3*)
13280 lt_prog_compiler_wl='-Wl,'
13281 lt_prog_compiler_pic='-KPIC'
13282 lt_prog_compiler_static='-Bstatic'
13283 ;;
13284
13285 sysv4*MP*)
13286 if test -d /usr/nec; then
13287 lt_prog_compiler_pic='-Kconform_pic'
13288 lt_prog_compiler_static='-Bstatic'
13289 fi
13290 ;;
13291
13292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13293 lt_prog_compiler_wl='-Wl,'
13294 lt_prog_compiler_pic='-KPIC'
13295 lt_prog_compiler_static='-Bstatic'
13296 ;;
13297
13298 unicos*)
13299 lt_prog_compiler_wl='-Wl,'
13300 lt_prog_compiler_can_build_shared=no
13301 ;;
13302
13303 uts4*)
13304 lt_prog_compiler_pic='-pic'
13305 lt_prog_compiler_static='-Bstatic'
13306 ;;
13307
13308 *)
13309 lt_prog_compiler_can_build_shared=no
13310 ;;
13311 esac
13312 fi
13313
13314 case $host_os in
13315 # For platforms that do not support PIC, -DPIC is meaningless:
13316 *djgpp*)
13317 lt_prog_compiler_pic=
13318 ;;
13319 *)
13320 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13321 ;;
13322 esac
13323
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13325 printf %s "checking for $compiler option to produce PIC... " >&6; }
13326 if test ${lt_cv_prog_compiler_pic+y}
13327 then :
13328 printf %s "(cached) " >&6
13329 else case e in #(
13330 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13331 esac
13332 fi
13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13334 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13335 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13336
13337 #
13338 # Check to make sure the PIC flag actually works.
13339 #
13340 if test -n "$lt_prog_compiler_pic"; then
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13342 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13343 if test ${lt_cv_prog_compiler_pic_works+y}
13344 then :
13345 printf %s "(cached) " >&6
13346 else case e in #(
13347 e) lt_cv_prog_compiler_pic_works=no
13348 ac_outfile=conftest.$ac_objext
13349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13350 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13351 # Insert the option either (1) after the last *FLAGS variable, or
13352 # (2) before a word containing "conftest.", or (3) at the end.
13353 # Note that $ac_compile itself does not contain backslashes and begins
13354 # with a dollar sign (not a hyphen), so the echo should work correctly.
13355 # The option is referenced via a variable to avoid confusing sed.
13356 lt_compile=`echo "$ac_compile" | $SED \
13357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13359 -e 's:$: $lt_compiler_flag:'`
13360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13361 (eval "$lt_compile" 2>conftest.err)
13362 ac_status=$?
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 if (exit $ac_status) && test -s "$ac_outfile"; then
13366 # The compiler can only warn and ignore the option if not recognized
13367 # So say no if there are warnings other than the usual output.
13368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13370 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13371 lt_cv_prog_compiler_pic_works=yes
13372 fi
13373 fi
13374 $RM conftest*
13375 ;;
13376 esac
13377 fi
13378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13379 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13380
13381 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13382 case $lt_prog_compiler_pic in
13383 "" | " "*) ;;
13384 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13385 esac
13386 else
13387 lt_prog_compiler_pic=
13388 lt_prog_compiler_can_build_shared=no
13389 fi
13390
13391 fi
13392
13393
13394
13395
13396
13397 #
13398 # Check to make sure the static flag actually works.
13399 #
13400 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13402 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13403 if test ${lt_cv_prog_compiler_static_works+y}
13404 then :
13405 printf %s "(cached) " >&6
13406 else case e in #(
13407 e) lt_cv_prog_compiler_static_works=no
13408 save_LDFLAGS=$LDFLAGS
13409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13410 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13412 # The linker can only warn and ignore the option if not recognized
13413 # So say no if there are warnings
13414 if test -s conftest.err; then
13415 # Append any errors to the config.log.
13416 cat conftest.err 1>&5
13417 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13419 if diff conftest.exp conftest.er2 >/dev/null; then
13420 lt_cv_prog_compiler_static_works=yes
13421 fi
13422 else
13423 lt_cv_prog_compiler_static_works=yes
13424 fi
13425 fi
13426 $RM -r conftest*
13427 LDFLAGS=$save_LDFLAGS
13428 ;;
13429 esac
13430 fi
13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13432 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13433
13434 if test yes = "$lt_cv_prog_compiler_static_works"; then
13435 :
13436 else
13437 lt_prog_compiler_static=
13438 fi
13439
13440
13441
13442 ='-fPIC'
13443 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13444 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13445 archive_cmds_need_lc=no
13446 no_undefined_flag=
13447 ;;
13448
13449 *)
13450 dynamic_linker=no
13451 ;;
13452 esac
13453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13454 printf "%s\n" "$dynamic_linker" >&6; }
13455 test no = "$dynamic_linker" && can_build_shared=no
13456
13457 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13458 if test yes = "$GCC"; then
13459 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13460 fi
13461
13462 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13463 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13464 fi
13465
13466 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13467 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13468 fi
13469
13470 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13471 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13472
13473 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13474 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13475
13476 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13477 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13576 printf %s "checking how to hardcode library paths into programs... " >&6; }
13577 hardcode_action=
13578 if test -n "$hardcode_libdir_flag_spec" ||
13579 test -n "$runpath_var" ||
13580 test yes = "$hardcode_automatic"; then
13581
13582 # We can hardcode non-existent directories.
13583 if test no != "$hardcode_direct" &&
13584 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13585 # have to relink, otherwise we might link with an installed library
13586 # when we should be linking with a yet-to-be-installed one
13587 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13588 test no != "$hardcode_minus_L"; then
13589 # Linking always hardcodes the temporary library directory.
13590 hardcode_action=relink
13591 else
13592 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13593 hardcode_action=immediate
13594 fi
13595 else
13596 # We cannot hardcode anything, or else we can only hardcode existing
13597 # directories.
13598 hardcode_action=unsupported
13599 fi
13600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13601 printf "%s\n" "$hardcode_action" >&6; }
13602
13603 if test relink = "$hardcode_action" ||
13604 test yes = "$inherit_rpath"; then
13605 # Fast installation is not supported
13606 enable_fast_install=no
13607 elif test yes = "$shlibpath_overrides_runpath" ||
13608 test no = "$enable_shared"; then
13609 # Fast installation is not necessary
13610 enable_fast_install=needless
13611 fi
13612
13613
13614
13615
13616
13617
13618 if test yes != "$enable_dlopen"; then
13619 enable_dlopen=unknown
13620 enable_dlopen_self=unknown
13621 enable_dlopen_self_static=unknown
13622 else
13623 lt_cv_dlopen=no
13624 lt_cv_dlopen_libs=
13625
13626 case $host_os in
13627 beos*)
13628 lt_cv_dlopen=load_add_on
13629 lt_cv_dlopen_libs=
13630 lt_cv_dlopen_self=yes
13631 ;;
13632
13633 mingw* | windows* | pw32* | cegcc*)
13634 lt_cv_dlopen=LoadLibrary
13635 lt_cv_dlopen_libs=
13636 ;;
13637
13638 cygwin*)
13639 lt_cv_dlopen=dlopen
13640 lt_cv_dlopen_libs=
13641 ;;
13642
13643 darwin*)
13644 # if libdl is installed we need to link against it
13645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13646 printf %s "checking for dlopen in -ldl... " >&6; }
13647 if test ${ac_cv_lib_dl_dlopen+y}
13648 then :
13649 printf %s "(cached) " >&6
13650 else case e in #(
13651 e) ac_check_lib_save_LIBS=$LIBS
13652 LIBS="-ldl $LIBS"
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13655
13656 /* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply.
13659 The 'extern "C"' is for builds by C++ compilers;
13660 although this is not generally supported in C code supporting it here
13661 has little cost and some practical benefit (sr 110532). */
13662 #ifdef __cplusplus
13663 extern "C"
13664 #endif
13665 char dlopen (void);
13666 int
13667 main (void)
13668 {
13669 return dlopen ();
13670 ;
13671 return 0;
13672 }
13673 _ACEOF
13674 if ac_fn_c_try_link "$LINENO"
13675 then :
13676 ac_cv_lib_dl_dlopen=yes
13677 else case e in #(
13678 e) ac_cv_lib_dl_dlopen=no ;;
13679 esac
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13682 conftest$ac_exeext conftest.$ac_ext
13683 LIBS=$ac_check_lib_save_LIBS ;;
13684 esac
13685 fi
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13687 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13688 if test "x$ac_cv_lib_dl_dlopen" = xyes
13689 then :
13690 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13691 else case e in #(
13692 e)
13693 lt_cv_dlopen=dyld
13694 lt_cv_dlopen_libs=
13695 lt_cv_dlopen_self=yes
13696 ;;
13697 esac
13698 fi
13699
13700 ;;
13701
13702 tpf*)
13703 # Don't try to run any link tests for TPF. We know it's impossible
13704 # because TPF is a cross-compiler, and we know how we open DSOs.
13705 lt_cv_dlopen=dlopen
13706 lt_cv_dlopen_libs=
13707 lt_cv_dlopen_self=no
13708 ;;
13709
13710 *)
13711 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13712 if test "x$ac_cv_func_shl_load" = xyes
13713 then :
13714 lt_cv_dlopen=shl_load
13715 else case e in #(
13716 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13717 printf %s "checking for shl_load in -ldld... " >&6; }
13718 if test ${ac_cv_lib_dld_shl_load+y}
13719 then :
13720 printf %s "(cached) " >&6
13721 else case e in #(
13722 e) ac_check_lib_save_LIBS=$LIBS
13723 LIBS="-ldld $LIBS"
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726
13727 /* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply.
13730 The 'extern "C"' is for builds by C++ compilers;
13731 although this is not generally supported in C code supporting it here
13732 has little cost and some practical benefit (sr 110532). */
13733 #ifdef __cplusplus
13734 extern "C"
13735 #endif
13736 char shl_load (void);
13737 int
13738 main (void)
13739 {
13740 return shl_load ();
13741 ;
13742 return 0;
13743 }
13744 _ACEOF
13745 if ac_fn_c_try_link "$LINENO"
13746 then :
13747 ac_cv_lib_dld_shl_load=yes
13748 else case e in #(
13749 e) ac_cv_lib_dld_shl_load=no ;;
13750 esac
13751 fi
13752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13753 conftest$ac_exeext conftest.$ac_ext
13754 LIBS=$ac_check_lib_save_LIBS ;;
13755 esac
13756 fi
13757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13758 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13759 if test "x$ac_cv_lib_dld_shl_load" = xyes
13760 then :
13761 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13762 else case e in #(
13763 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13764 if test "x$ac_cv_func_dlopen" = xyes
13765 then :
13766 lt_cv_dlopen=dlopen
13767 else case e in #(
13768 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13769 printf %s "checking for dlopen in -ldl... " >&6; }
13770 if test ${ac_cv_lib_dl_dlopen+y}
13771 then :
13772 printf %s "(cached) " >&6
13773 else case e in #(
13774 e) ac_check_lib_save_LIBS=$LIBS
13775 LIBS="-ldl $LIBS"
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13778
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply.
13782 The 'extern "C"' is for builds by C++ compilers;
13783 although this is not generally supported in C code supporting it here
13784 has little cost and some practical benefit (sr 110532). */
13785 #ifdef __cplusplus
13786 extern "C"
13787 #endif
13788 char dlopen (void);
13789 int
13790 main (void)
13791 {
13792 return dlopen ();
13793 ;
13794 return 0;
13795 }
13796 _ACEOF
13797 if ac_fn_c_try_link "$LINENO"
13798 then :
13799 ac_cv_lib_dl_dlopen=yes
13800 else case e in #(
13801 e) ac_cv_lib_dl_dlopen=no ;;
13802 esac
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS ;;
13807 esac
13808 fi
13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13810 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13811 if test "x$ac_cv_lib_dl_dlopen" = xyes
13812 then :
13813 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13814 else case e in #(
13815 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13816 printf %s "checking for dlopen in -lsvld... " >&6; }
13817 if test ${ac_cv_lib_svld_dlopen+y}
13818 then :
13819 printf %s "(cached) " >&6
13820 else case e in #(
13821 e) ac_check_lib_save_LIBS=$LIBS
13822 LIBS="-lsvld $LIBS"
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13825
13826 /* Override any GCC internal prototype to avoid an error.
13827 Use char because int might match the return type of a GCC
13828 builtin and then its argument prototype would still apply.
13829 The 'extern "C"' is for builds by C++ compilers;
13830 although this is not generally supported in C code supporting it here
13831 has little cost and some practical benefit (sr 110532). */
13832 #ifdef __cplusplus
13833 extern "C"
13834 #endif
13835 char dlopen (void);
13836 int
13837 main (void)
13838 {
13839 return dlopen ();
13840 ;
13841 return 0;
13842 }
13843 _ACEOF
13844 if ac_fn_c_try_link "$LINENO"
13845 then :
13846 ac_cv_lib_svld_dlopen=yes
13847 else case e in #(
13848 e) ac_cv_lib_svld_dlopen=no ;;
13849 esac
13850 fi
13851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13852 conftest$ac_exeext conftest.$ac_ext
13853 LIBS=$ac_check_lib_save_LIBS ;;
13854 esac
13855 fi
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13857 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13858 if test "x$ac_cv_lib_svld_dlopen" = xyes
13859 then :
13860 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13861 else case e in #(
13862 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13863 printf %s "checking for dld_link in -ldld... " >&6; }
13864 if test ${ac_cv_lib_dld_dld_link+y}
13865 then :
13866 printf %s "(cached) " >&6
13867 else case e in #(
13868 e) ac_check_lib_save_LIBS=$LIBS
13869 LIBS="-ldld $LIBS"
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872
13873 /* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply.
13876 The 'extern "C"' is for builds by C++ compilers;
13877 although this is not generally supported in C code supporting it here
13878 has little cost and some practical benefit (sr 110532). */
13879 #ifdef __cplusplus
13880 extern "C"
13881 #endif
13882 char dld_link (void);
13883 int
13884 main (void)
13885 {
13886 return dld_link ();
13887 ;
13888 return 0;
13889 }
13890 _ACEOF
13891 if ac_fn_c_try_link "$LINENO"
13892 then :
13893 ac_cv_lib_dld_dld_link=yes
13894 else case e in #(
13895 e) ac_cv_lib_dld_dld_link=no ;;
13896 esac
13897 fi
13898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13899 conftest$ac_exeext conftest.$ac_ext
13900 LIBS=$ac_check_lib_save_LIBS ;;
13901 esac
13902 fi
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13904 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13905 if test "x$ac_cv_lib_dld_dld_link" = xyes
13906 then :
13907 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13908 fi
13909
13910 ;;
13911 esac
13912 fi
13913
13914 ;;
13915 esac
13916 fi
13917
13918 ;;
13919 esac
13920 fi
13921
13922 ;;
13923 esac
13924 fi
13925
13926 ;;
13927 esac
13928 fi
13929
13930 ;;
13931 esac
13932
13933 if test no = "$lt_cv_dlopen"; then
13934 enable_dlopen=no
13935 else
13936 enable_dlopen=yes
13937 fi
13938
13939 case $lt_cv_dlopen in
13940 dlopen)
13941 save_CPPFLAGS=$CPPFLAGS
13942 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13943
13944 save_LDFLAGS=$LDFLAGS
13945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13946
13947 save_LIBS=$LIBS
13948 LIBS="$lt_cv_dlopen_libs $LIBS"
13949
13950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13951 printf %s "checking whether a program can dlopen itself... " >&6; }
13952 if test ${lt_cv_dlopen_self+y}
13953 then :
13954 printf %s "(cached) " >&6
13955 else case e in #(
13956 e) if test yes = "$cross_compiling"; then :
13957 lt_cv_dlopen_self=cross
13958 else
13959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13960 lt_status=$lt_dlunknown
13961 cat > conftest.$ac_ext <<_LT_EOF
13962 #line $LINENO "configure"
13963 #include "confdefs.h"
13964
13965 #if HAVE_DLFCN_H
13966 #include <dlfcn.h>
13967 #endif
13968
13969 #include <stdio.h>
13970
13971 #ifdef RTLD_GLOBAL
13972 # define LT_DLGLOBAL RTLD_GLOBAL
13973 #else
13974 # ifdef DL_GLOBAL
13975 # define LT_DLGLOBAL DL_GLOBAL
13976 # else
13977 # define LT_DLGLOBAL 0
13978 # endif
13979 #endif
13980
13981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13982 find out it does not work in some platform. */
13983 #ifndef LT_DLLAZY_OR_NOW
13984 # ifdef RTLD_LAZY
13985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13986 # else
13987 # ifdef DL_LAZY
13988 # define LT_DLLAZY_OR_NOW DL_LAZY
13989 # else
13990 # ifdef RTLD_NOW
13991 # define LT_DLLAZY_OR_NOW RTLD_NOW
13992 # else
13993 # ifdef DL_NOW
13994 # define LT_DLLAZY_OR_NOW DL_NOW
13995 # else
13996 # define LT_DLLAZY_OR_NOW 0
13997 # endif
13998 # endif
13999 # endif
14000 # endif
14001 #endif
14002
14003 /* When -fvisibility=hidden is used, assume the code has been annotated
14004 correspondingly for the symbols needed. */
14005 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14006 int fnord (void) __attribute__((visibility("default")));
14007 #endif
14008
14009 int fnord (void) { return 42; }
14010 int main (void)
14011 {
14012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14013 int status = $lt_dlunknown;
14014
14015 if (self)
14016 {
14017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14018 else
14019 {
14020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14021 else puts (dlerror ());
14022 }
14023 /* dlclose (self); */
14024 }
14025 else
14026 puts (dlerror ());
14027
14028 return status;
14029 }
14030 _LT_EOF
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14032 (eval $ac_link) 2>&5
14033 ac_status=$?
14034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14036 (./conftest; exit; ) >&5 2>/dev/null
14037 lt_status=$?
14038 case x$lt_status in
14039 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14040 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14041 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14042 esac
14043 else :
14044 # compilation failed
14045 lt_cv_dlopen_self=no
14046 fi
14047 fi
14048 rm -fr conftest*
14049
14050 ;;
14051 esac
14052 fi
14053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14054 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14055
14056 if test yes = "$lt_cv_dlopen_self"; then
14057 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14059 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14060 if test ${lt_cv_dlopen_self_static+y}
14061 then :
14062 printf %s "(cached) " >&6
14063 else case e in #(
14064 e) if test yes = "$cross_compiling"; then :
14065 lt_cv_dlopen_self_static=cross
14066 else
14067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14068 lt_status=$lt_dlunknown
14069 cat > conftest.$ac_ext <<_LT_EOF
14070 #line $LINENO "configure"
14071 #include "confdefs.h"
14072
14073 #if HAVE_DLFCN_H
14074 #include <dlfcn.h>
14075 #endif
14076
14077 #include <stdio.h>
14078
14079 #ifdef RTLD_GLOBAL
14080 # define LT_DLGLOBAL RTLD_GLOBAL
14081 #else
14082 # ifdef DL_GLOBAL
14083 # define LT_DLGLOBAL DL_GLOBAL
14084 # else
14085 # define LT_DLGLOBAL 0
14086 # endif
14087 #endif
14088
14089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14090 find out it does not work in some platform. */
14091 #ifndef LT_DLLAZY_OR_NOW
14092 # ifdef RTLD_LAZY
14093 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14094 # else
14095 # ifdef DL_LAZY
14096 # define LT_DLLAZY_OR_NOW DL_LAZY
14097 # else
14098 # ifdef RTLD_NOW
14099 # define LT_DLLAZY_OR_NOW RTLD_NOW
14100 # else
14101 # ifdef DL_NOW
14102 # define LT_DLLAZY_OR_NOW DL_NOW
14103 # else
14104 # define LT_DLLAZY_OR_NOW 0
14105 # endif
14106 # endif
14107 # endif
14108 # endif
14109 #endif
14110
14111 /* When -fvisibility=hidden is used, assume the code has been annotated
14112 correspondingly for the symbols needed. */
14113 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14114 int fnord (void) __attribute__((visibility("default")));
14115 #endif
14116
14117 int fnord (void) { return 42; }
14118 int main (void)
14119 {
14120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14121 int status = $lt_dlunknown;
14122
14123 if (self)
14124 {
14125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14126 else
14127 {
14128 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14129 else puts (dlerror ());
14130 }
14131 /* dlclose (self); */
14132 }
14133 else
14134 puts (dlerror ());
14135
14136 return status;
14137 }
14138 _LT_EOF
14139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14140 (eval $ac_link) 2>&5
14141 ac_status=$?
14142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14143 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14144 (./conftest; exit; ) >&5 2>/dev/null
14145 lt_status=$?
14146 case x$lt_status in
14147 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14148 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14149 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14150 esac
14151 else :
14152 # compilation failed
14153 lt_cv_dlopen_self_static=no
14154 fi
14155 fi
14156 rm -fr conftest*
14157
14158 ;;
14159 esac
14160 fi
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14162 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14163 fi
14164
14165 CPPFLAGS=$save_CPPFLAGS
14166 LDFLAGS=$save_LDFLAGS
14167 LIBS=$save_LIBS
14168 ;;
14169 esac
14170
14171 case $lt_cv_dlopen_self in
14172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14173 *) enable_dlopen_self=unknown ;;
14174 esac
14175
14176 case $lt_cv_dlopen_self_static in
14177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14178 *) enable_dlopen_self_static=unknown ;;
14179 esac
14180 fi
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198 striplib=
14199 old_striplib=
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14201 printf %s "checking whether stripping libraries is possible... " >&6; }
14202 if test -z "$STRIP"; then
14203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 printf "%s\n" "no" >&6; }
14205 else
14206 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14207 old_striplib="$STRIP --strip-debug"
14208 striplib="$STRIP --strip-unneeded"
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14210 printf "%s\n" "yes" >&6; }
14211 else
14212 case $host_os in
14213 darwin*)
14214 # FIXME - insert some real tests, host_os isn't really good enough
14215 striplib="$STRIP -x"
14216 old_striplib="$STRIP -S"
14217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14218 printf "%s\n" "yes" >&6; }
14219 ;;
14220 freebsd*)
14221 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14222 old_striplib="$STRIP --strip-debug"
14223 striplib="$STRIP --strip-unneeded"
14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14225 printf "%s\n" "yes" >&6; }
14226 else
14227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14228 printf "%s\n" "no" >&6; }
14229 fi
14230 ;;
14231 *)
14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 printf "%s\n" "no" >&6; }
14234 ;;
14235 esac
14236 fi
14237 fi
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250 # Report what library types will actually be built
14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14252 printf %s "checking if libtool supports shared libraries... " >&6; }
14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14254 printf "%s\n" "$can_build_shared" >&6; }
14255
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14257 printf %s "checking whether to build shared libraries... " >&6; }
14258 test no = "$can_build_shared" && enable_shared=no
14259
14260 # On AIX, shared libraries and static libraries use the same namespace, and
14261 # are all built from PIC.
14262 case $host_os in
14263 aix3*)
14264 test yes = "$enable_shared" && enable_static=no
14265 if test -n "$RANLIB"; then
14266 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14267 postinstall_cmds='$RANLIB $lib'
14268 fi
14269 ;;
14270
14271 aix[4-9]*)
14272 if test ia64 != "$host_cpu"; then
14273 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14274 yes,aix,yes) ;; # shared object as lib.so file only
14275 yes,svr4,*) ;; # shared object as lib.so archive member only
14276 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14277 esac
14278 fi
14279 ;;
14280 esac
14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14282 printf "%s\n" "$enable_shared" >&6; }
14283
14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14285 printf %s "checking whether to build static libraries... " >&6; }
14286 # Make sure either enable_shared or enable_static is yes.
14287 test yes = "$enable_shared" || enable_static=yes
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14289 printf "%s\n" "$enable_static" >&6; }
14290
14291
14292
14293
14294 fi
14295 ac_ext=c
14296 ac_cpp='$CPP $CPPFLAGS'
14297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14300
14301 CC=$lt_save_CC
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317 ac_config_commands="$ac_config_commands libtool"
14318
14319
14320
14321
14322 # Only expand once:
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14334 if test -n "$ac_tool_prefix"; then
14335 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14336 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14338 printf %s "checking for $ac_word... " >&6; }
14339 if test ${ac_cv_path_PKG_CONFIG+y}
14340 then :
14341 printf %s "(cached) " >&6
14342 else case e in #(
14343 e) case $PKG_CONFIG in
14344 [\\/]* | ?:[\\/]*)
14345 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14346 ;;
14347 *)
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14350 do
14351 IFS=$as_save_IFS
14352 case $as_dir in #(((
14353 '') as_dir=./ ;;
14354 */) ;;
14355 *) as_dir=$as_dir/ ;;
14356 esac
14357 for ac_exec_ext in '' $ac_executable_extensions; do
14358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14359 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14361 break 2
14362 fi
14363 done
14364 done
14365 IFS=$as_save_IFS
14366
14367 ;;
14368 esac ;;
14369 esac
14370 fi
14371 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14372 if test -n "$PKG_CONFIG"; then
14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14374 printf "%s\n" "$PKG_CONFIG" >&6; }
14375 else
14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 printf "%s\n" "no" >&6; }
14378 fi
14379
14380
14381 fi
14382 if test -z "$ac_cv_path_PKG_CONFIG"; then
14383 ac_pt_PKG_CONFIG=$PKG_CONFIG
14384 # Extract the first word of "pkg-config", so it can be a program name with args.
14385 set dummy pkg-config; ac_word=$2
14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 printf %s "checking for $ac_word... " >&6; }
14388 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14389 then :
14390 printf %s "(cached) " >&6
14391 else case e in #(
14392 e) case $ac_pt_PKG_CONFIG in
14393 [\\/]* | ?:[\\/]*)
14394 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14395 ;;
14396 *)
14397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398 for as_dir in $PATH
14399 do
14400 IFS=$as_save_IFS
14401 case $as_dir in #(((
14402 '') as_dir=./ ;;
14403 */) ;;
14404 *) as_dir=$as_dir/ ;;
14405 esac
14406 for ac_exec_ext in '' $ac_executable_extensions; do
14407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14408 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14410 break 2
14411 fi
14412 done
14413 done
14414 IFS=$as_save_IFS
14415
14416 ;;
14417 esac ;;
14418 esac
14419 fi
14420 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14421 if test -n "$ac_pt_PKG_CONFIG"; then
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14423 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14424 else
14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 printf "%s\n" "no" >&6; }
14427 fi
14428
14429 if test "x$ac_pt_PKG_CONFIG" = x; then
14430 PKG_CONFIG=""
14431 else
14432 case $cross_compiling:$ac_tool_warned in
14433 yes:)
14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14435 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14436 ac_tool_warned=yes ;;
14437 esac
14438 PKG_CONFIG=$ac_pt_PKG_CONFIG
14439 fi
14440 else
14441 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14442 fi
14443
14444 fi
14445 if test -n "$PKG_CONFIG"; then
14446 _pkg_min_version=0.9.0
14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14448 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14449 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14451 printf "%s\n" "yes" >&6; }
14452 else
14453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454 printf "%s\n" "no" >&6; }
14455 PKG_CONFIG=""
14456 fi
14457 fi
14458 if test -z "$PKG_CONFIG"; then
14459 as_fn_error $? "pkg-config not found" "$LINENO" 5
14460 fi
14461
14462 # Check whether --enable-largefile was given.
14463 if test ${enable_largefile+y}
14464 then :
14465 enableval=$enable_largefile;
14466 fi
14467 if test "$enable_largefile,$enable_year2038" != no,no
14468 then :
14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
14470 printf %s "checking for $CPPFLAGS option for large files... " >&6; }
14471 if test ${ac_cv_sys_largefile_opts+y}
14472 then :
14473 printf %s "(cached) " >&6
14474 else case e in #(
14475 e) ac_save_CPPFLAGS=$CPPFLAGS
14476 ac_opt_found=no
14477 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
14478 if test x"$ac_opt" != x"none needed"
14479 then :
14480 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14481 fi
14482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h. */
14484 #include <sys/types.h>
14485 #ifndef FTYPE
14486 # define FTYPE off_t
14487 #endif
14488 /* Check that FTYPE can represent 2**63 - 1 correctly.
14489 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14490 since some C++ compilers masquerading as C compilers
14491 incorrectly reject 9223372036854775807. */
14492 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14493 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14494 && LARGE_FTYPE % 2147483647 == 1)
14495 ? 1 : -1];
14496 int
14497 main (void)
14498 {
14499
14500 ;
14501 return 0;
14502 }
14503 _ACEOF
14504 if ac_fn_c_try_compile "$LINENO"
14505 then :
14506 if test x"$ac_opt" = x"none needed"
14507 then :
14508 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14509 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
14510 if ac_fn_c_try_compile "$LINENO"
14511 then :
14512
14513 else case e in #(
14514 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
14515 if ac_fn_c_try_compile "$LINENO"
14516 then :
14517 ac_opt='-D_FILE_OFFSET_BITS=64'
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14520 esac
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext conftest.beam
14523 fi
14524 ac_cv_sys_largefile_opts=$ac_opt
14525 ac_opt_found=yes
14526 fi
14527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14528 test $ac_opt_found = no || break
14529 done
14530 CPPFLAGS=$ac_save_CPPFLAGS
14531
14532 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14533 esac
14534 fi
14535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14536 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14537
14538 ac_have_largefile=yes
14539 case $ac_cv_sys_largefile_opts in #(
14540 "none needed") :
14541 ;; #(
14542 "supported through gnulib") :
14543 ;; #(
14544 "support not detected") :
14545 ac_have_largefile=no ;; #(
14546 "-D_FILE_OFFSET_BITS=64") :
14547
14548 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14549 ;; #(
14550 "-D_LARGE_FILES=1") :
14551
14552 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14553 ;; #(
14554 *) :
14555 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14556 esac
14557
14558 if test "$enable_year2038" != no
14559 then :
14560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
14561 printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
14562 if test ${ac_cv_sys_year2038_opts+y}
14563 then :
14564 printf %s "(cached) " >&6
14565 else case e in #(
14566 e) ac_save_CPPFLAGS="$CPPFLAGS"
14567 ac_opt_found=no
14568 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
14569 if test x"$ac_opt" != x"none needed"
14570 then :
14571 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14572 fi
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575
14576 #include <time.h>
14577 /* Check that time_t can represent 2**32 - 1 correctly. */
14578 #define LARGE_TIME_T \\
14579 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
14580 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
14581 && LARGE_TIME_T % 65537 == 0)
14582 ? 1 : -1];
14583
14584 int
14585 main (void)
14586 {
14587
14588 ;
14589 return 0;
14590 }
14591 _ACEOF
14592 if ac_fn_c_try_compile "$LINENO"
14593 then :
14594 ac_cv_sys_year2038_opts="$ac_opt"
14595 ac_opt_found=yes
14596 fi
14597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14598 test $ac_opt_found = no || break
14599 done
14600 CPPFLAGS="$ac_save_CPPFLAGS"
14601 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
14602 esac
14603 fi
14604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
14605 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
14606
14607 ac_have_year2038=yes
14608 case $ac_cv_sys_year2038_opts in #(
14609 "none needed") :
14610 ;; #(
14611 "support not detected") :
14612 ac_have_year2038=no ;; #(
14613 "-D_TIME_BITS=64") :
14614
14615 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
14616 ;; #(
14617 "-D__MINGW_USE_VC2005_COMPAT") :
14618
14619 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
14620 ;; #(
14621 "-U_USE_32_BIT_TIME_T"*) :
14622 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14623 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14624 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
14625 will stop working after mid-January 2038. Remove
14626 _USE_32BIT_TIME_T from the compiler flags.
14627 See 'config.log' for more details" "$LINENO" 5; } ;; #(
14628 *) :
14629 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
14630 esac
14631
14632 fi
14633
14634 fi
14635
14636
14637 fob_set=no
14638 if test "x$ac_cv_sys_file_offset_bits" != x -a "$ac_cv_sys_file_offset_bits" != no; then
14639 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
14640 fob_set=yes
14641 fi
14642 if test "x$ac_cv_sys_large_files" != x -a "$ac_cv_sys_large_files" != no; then
14643 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
14644 fi
14645
14646 if test "$enable_largefile" != no -a "$fob_set" != "yes" -a "$fuse_build" = "yes"; then
14647 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
14648 fob_set=yes
14649 fi
14650
14651 if test -z "$cflags"; then
14652 if test "$GCC" = yes; then
14653 if test "$debugmode" = yes; then
14654 CFLAGS="-Wall -g"
14655 else
14656 CFLAGS="-Wall -O3"
14657 fi
14658 ZLIB_CFLAGS="-Wall -O3"
14659
14660 old_CFLAGS="$CFLAGS"
14661 CFLAGS="$CFLAGS -Wno-old-style-definition"
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the GCC works with \"-Wno-old-style-definition\"" >&5
14663 printf %s "checking whether the GCC works with \"-Wno-old-style-definition\"... " >&6; }
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14666
14667 int
14668 main (void)
14669 {
14670 int test=0; test=5;
14671 ;
14672 return 0;
14673 }
14674 _ACEOF
14675 if ac_fn_c_try_compile "$LINENO"
14676 then :
14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14678 printf "%s\n" "yes" >&6; }
14679 ZLIB_CFLAGS="$ZLIB_CFLAGS -Wno-old-style-definition"
14680
14681 else case e in #(
14682 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683 printf "%s\n" "no" >&6; } ;;
14684 esac
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14687 CFLAGS="$old_CFLAGS"
14688 else
14689 if test "$debugmode" = yes; then
14690 CFLAGS="-g"
14691 else
14692 CFLAGS="-O"
14693 fi
14694 ZLIB_CFLAGS="-O"
14695 fi
14696 fi
14697
14698
14699
14700 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE"
14701
14702 if test -z "$LD"; then
14703 # Extract the first word of "ld", so it can be a program name with args.
14704 set dummy ld; ac_word=$2
14705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14706 printf %s "checking for $ac_word... " >&6; }
14707 if test ${ac_cv_prog_LD+y}
14708 then :
14709 printf %s "(cached) " >&6
14710 else case e in #(
14711 e) if test -n "$LD"; then
14712 ac_cv_prog_LD="$LD" # Let the user override the test.
14713 else
14714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14715 for as_dir in $PATH
14716 do
14717 IFS=$as_save_IFS
14718 case $as_dir in #(((
14719 '') as_dir=./ ;;
14720 */) ;;
14721 *) as_dir=$as_dir/ ;;
14722 esac
14723 for ac_exec_ext in '' $ac_executable_extensions; do
14724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14725 ac_cv_prog_LD="ld -r"
14726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14727 break 2
14728 fi
14729 done
14730 done
14731 IFS=$as_save_IFS
14732
14733 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="$CC -Wl,-r -nostdlib"
14734 fi ;;
14735 esac
14736 fi
14737 LD=$ac_cv_prog_LD
14738 if test -n "$LD"; then
14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14740 printf "%s\n" "$LD" >&6; }
14741 else
14742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 printf "%s\n" "no" >&6; }
14744 fi
14745
14746
14747 else
14748 LD="$LD -r"
14749
14750 fi
14751
14752 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
14753 if test "x$ac_cv_func_vsnprintf" = xyes
14754 then :
14755 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
14756
14757 fi
14758 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
14759 if test "x$ac_cv_func_strncasecmp" = xyes
14760 then :
14761 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
14762
14763 fi
14764 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
14765 if test "x$ac_cv_func_strcasecmp" = xyes
14766 then :
14767 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
14768
14769 fi
14770 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
14771 if test "x$ac_cv_func_mkdtemp" = xyes
14772 then :
14773 printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
14774
14775 fi
14776
14777 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
14778 if test "x$ac_cv_func_getpwuid_r" = xyes
14779 then :
14780 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
14781
14782 fi
14783 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
14784 if test "x$ac_cv_func_getpwnam_r" = xyes
14785 then :
14786 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
14787
14788 fi
14789 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
14790 if test "x$ac_cv_func_getgrgid_r" = xyes
14791 then :
14792 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
14793
14794 fi
14795 ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
14796 if test "x$ac_cv_func_getgrnam_r" = xyes
14797 then :
14798 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
14799
14800 fi
14801
14802 ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
14803 if test "x$ac_cv_func_atoll" = xyes
14804 then :
14805 printf "%s\n" "#define HAVE_ATOLL 1" >>confdefs.h
14806
14807 fi
14808
14809
14810 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
14811 if test "x$ac_cv_header_sys_mkdev_h" = xyes
14812 then :
14813
14814 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
14815
14816 fi
14817
14818 if test $ac_cv_header_sys_mkdev_h = no; then
14819 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
14820 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
14821 then :
14822
14823 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
14824
14825 fi
14826
14827 fi
14828
14829
14830 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14831 if test "x$ac_cv_header_unistd_h" = xyes
14832 then :
14833 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14834
14835 fi
14836
14837 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
14838 if test "x$ac_cv_header_sys_statvfs_h" = xyes
14839 then :
14840 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
14841
14842 fi
14843
14844
14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_type in struct dirent" >&5
14846 printf %s "checking for d_type in struct dirent... " >&6; }
14847 if test ${my_cv_struct_d_type+y}
14848 then :
14849 printf %s "(cached) " >&6
14850 else case e in #(
14851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853 #include <sys/types.h>
14854 #include <dirent.h>
14855 int
14856 main (void)
14857 {
14858 struct dirent d; d.d_type;
14859 ;
14860 return 0;
14861 }
14862 _ACEOF
14863 if ac_fn_c_try_compile "$LINENO"
14864 then :
14865 my_cv_struct_d_type=yes
14866 else case e in #(
14867 e) my_cv_struct_d_type=no ;;
14868 esac
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14871 esac
14872 fi
14873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $my_cv_struct_d_type" >&5
14874 printf "%s\n" "$my_cv_struct_d_type" >&6; }
14875 if test $my_cv_struct_d_type = yes; then
14876
14877 printf "%s\n" "#define HAVE_D_TYPE 1" >>confdefs.h
14878
14879 fi
14880
14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_off in struct dirent" >&5
14882 printf %s "checking for d_off in struct dirent... " >&6; }
14883 if test ${my_cv_struct_d_off+y}
14884 then :
14885 printf %s "(cached) " >&6
14886 else case e in #(
14887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889 #include <sys/types.h>
14890 #include <dirent.h>
14891 int
14892 main (void)
14893 {
14894 struct dirent d; d.d_off;
14895 ;
14896 return 0;
14897 }
14898 _ACEOF
14899 if ac_fn_c_try_compile "$LINENO"
14900 then :
14901 my_cv_struct_d_off=yes
14902 else case e in #(
14903 e) my_cv_struct_d_off=no ;;
14904 esac
14905 fi
14906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14907 esac
14908 fi
14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $my_cv_struct_d_off" >&5
14910 printf "%s\n" "$my_cv_struct_d_off" >&6; }
14911 if test $my_cv_struct_d_off = yes; then
14912
14913 printf "%s\n" "#define HAVE_D_OFF 1" >>confdefs.h
14914
14915 fi
14916
14917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14918 printf %s "checking for library containing nanosleep... " >&6; }
14919 if test ${ac_cv_search_nanosleep+y}
14920 then :
14921 printf %s "(cached) " >&6
14922 else case e in #(
14923 e) ac_func_search_save_LIBS=$LIBS
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926
14927 /* Override any GCC internal prototype to avoid an error.
14928 Use char because int might match the return type of a GCC
14929 builtin and then its argument prototype would still apply.
14930 The 'extern "C"' is for builds by C++ compilers;
14931 although this is not generally supported in C code supporting it here
14932 has little cost and some practical benefit (sr 110532). */
14933 #ifdef __cplusplus
14934 extern "C"
14935 #endif
14936 char nanosleep (void);
14937 int
14938 main (void)
14939 {
14940 return nanosleep ();
14941 ;
14942 return 0;
14943 }
14944 _ACEOF
14945 for ac_lib in '' posix4
14946 do
14947 if test -z "$ac_lib"; then
14948 ac_res="none required"
14949 else
14950 ac_res=-l$ac_lib
14951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14952 fi
14953 if ac_fn_c_try_link "$LINENO"
14954 then :
14955 ac_cv_search_nanosleep=$ac_res
14956 fi
14957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14958 conftest$ac_exeext
14959 if test ${ac_cv_search_nanosleep+y}
14960 then :
14961 break
14962 fi
14963 done
14964 if test ${ac_cv_search_nanosleep+y}
14965 then :
14966
14967 else case e in #(
14968 e) ac_cv_search_nanosleep=no ;;
14969 esac
14970 fi
14971 rm conftest.$ac_ext
14972 LIBS=$ac_func_search_save_LIBS ;;
14973 esac
14974 fi
14975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14976 printf "%s\n" "$ac_cv_search_nanosleep" >&6; }
14977 ac_res=$ac_cv_search_nanosleep
14978 if test "$ac_res" != no
14979 then :
14980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14981
14982 fi
14983
14984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14985 printf %s "checking for library containing gethostbyname... " >&6; }
14986 if test ${ac_cv_search_gethostbyname+y}
14987 then :
14988 printf %s "(cached) " >&6
14989 else case e in #(
14990 e) ac_func_search_save_LIBS=$LIBS
14991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14993
14994 /* Override any GCC internal prototype to avoid an error.
14995 Use char because int might match the return type of a GCC
14996 builtin and then its argument prototype would still apply.
14997 The 'extern "C"' is for builds by C++ compilers;
14998 although this is not generally supported in C code supporting it here
14999 has little cost and some practical benefit (sr 110532). */
15000 #ifdef __cplusplus
15001 extern "C"
15002 #endif
15003 char gethostbyname (void);
15004 int
15005 main (void)
15006 {
15007 return gethostbyname ();
15008 ;
15009 return 0;
15010 }
15011 _ACEOF
15012 for ac_lib in '' nsl
15013 do
15014 if test -z "$ac_lib"; then
15015 ac_res="none required"
15016 else
15017 ac_res=-l$ac_lib
15018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15019 fi
15020 if ac_fn_c_try_link "$LINENO"
15021 then :
15022 ac_cv_search_gethostbyname=$ac_res
15023 fi
15024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15025 conftest$ac_exeext
15026 if test ${ac_cv_search_gethostbyname+y}
15027 then :
15028 break
15029 fi
15030 done
15031 if test ${ac_cv_search_gethostbyname+y}
15032 then :
15033
15034 else case e in #(
15035 e) ac_cv_search_gethostbyname=no ;;
15036 esac
15037 fi
15038 rm conftest.$ac_ext
15039 LIBS=$ac_func_search_save_LIBS ;;
15040 esac
15041 fi
15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
15043 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
15044 ac_res=$ac_cv_search_gethostbyname
15045 if test "$ac_res" != no
15046 then :
15047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15048
15049 fi
15050
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15052 printf %s "checking for library containing socket... " >&6; }
15053 if test ${ac_cv_search_socket+y}
15054 then :
15055 printf %s "(cached) " >&6
15056 else case e in #(
15057 e) ac_func_search_save_LIBS=$LIBS
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060
15061 /* Override any GCC internal prototype to avoid an error.
15062 Use char because int might match the return type of a GCC
15063 builtin and then its argument prototype would still apply.
15064 The 'extern "C"' is for builds by C++ compilers;
15065 although this is not generally supported in C code supporting it here
15066 has little cost and some practical benefit (sr 110532). */
15067 #ifdef __cplusplus
15068 extern "C"
15069 #endif
15070 char socket (void);
15071 int
15072 main (void)
15073 {
15074 return socket ();
15075 ;
15076 return 0;
15077 }
15078 _ACEOF
15079 for ac_lib in '' socket inet
15080 do
15081 if test -z "$ac_lib"; then
15082 ac_res="none required"
15083 else
15084 ac_res=-l$ac_lib
15085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15086 fi
15087 if ac_fn_c_try_link "$LINENO"
15088 then :
15089 ac_cv_search_socket=$ac_res
15090 fi
15091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15092 conftest$ac_exeext
15093 if test ${ac_cv_search_socket+y}
15094 then :
15095 break
15096 fi
15097 done
15098 if test ${ac_cv_search_socket+y}
15099 then :
15100
15101 else case e in #(
15102 e) ac_cv_search_socket=no ;;
15103 esac
15104 fi
15105 rm conftest.$ac_ext
15106 LIBS=$ac_func_search_save_LIBS ;;
15107 esac
15108 fi
15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15110 printf "%s\n" "$ac_cv_search_socket" >&6; }
15111 ac_res=$ac_cv_search_socket
15112 if test "$ac_res" != no
15113 then :
15114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15115
15116 fi
15117
15118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __atomic_fetch_add_8" >&5
15119 printf %s "checking for library containing __atomic_fetch_add_8... " >&6; }
15120 if test ${ac_cv_search___atomic_fetch_add_8+y}
15121 then :
15122 printf %s "(cached) " >&6
15123 else case e in #(
15124 e) ac_func_search_save_LIBS=$LIBS
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127
15128 /* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply.
15131 The 'extern "C"' is for builds by C++ compilers;
15132 although this is not generally supported in C code supporting it here
15133 has little cost and some practical benefit (sr 110532). */
15134 #ifdef __cplusplus
15135 extern "C"
15136 #endif
15137 char __atomic_fetch_add_8 (void);
15138 int
15139 main (void)
15140 {
15141 return __atomic_fetch_add_8 ();
15142 ;
15143 return 0;
15144 }
15145 _ACEOF
15146 for ac_lib in '' atomic
15147 do
15148 if test -z "$ac_lib"; then
15149 ac_res="none required"
15150 else
15151 ac_res=-l$ac_lib
15152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15153 fi
15154 if ac_fn_c_try_link "$LINENO"
15155 then :
15156 ac_cv_search___atomic_fetch_add_8=$ac_res
15157 fi
15158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15159 conftest$ac_exeext
15160 if test ${ac_cv_search___atomic_fetch_add_8+y}
15161 then :
15162 break
15163 fi
15164 done
15165 if test ${ac_cv_search___atomic_fetch_add_8+y}
15166 then :
15167
15168 else case e in #(
15169 e) ac_cv_search___atomic_fetch_add_8=no ;;
15170 esac
15171 fi
15172 rm conftest.$ac_ext
15173 LIBS=$ac_func_search_save_LIBS ;;
15174 esac
15175 fi
15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___atomic_fetch_add_8" >&5
15177 printf "%s\n" "$ac_cv_search___atomic_fetch_add_8" >&6; }
15178 ac_res=$ac_cv_search___atomic_fetch_add_8
15179 if test "$ac_res" != no
15180 then :
15181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15182
15183 fi
15184
15185
15186 neon_found=no
15187 if test "$dav" = yes; then
15188 if test -n "$PKG_CONFIG" && \
15189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon\""; } >&5
15190 ($PKG_CONFIG --exists --print-errors "neon") 2>&5
15191 ac_status=$?
15192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193 test $ac_status = 0; }; then
15194
15195
15196 pkg_failed=no
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for neon >= 0.27.0" >&5
15198 printf %s "checking for neon >= 0.27.0... " >&6; }
15199
15200 if test -n "$LIBNEON_CFLAGS"; then
15201 pkg_cv_LIBNEON_CFLAGS="$LIBNEON_CFLAGS"
15202 elif test -n "$PKG_CONFIG"; then
15203 if test -n "$PKG_CONFIG" && \
15204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27.0\""; } >&5
15205 ($PKG_CONFIG --exists --print-errors "neon >= 0.27.0") 2>&5
15206 ac_status=$?
15207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15208 test $ac_status = 0; }; then
15209 pkg_cv_LIBNEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27.0" 2>/dev/null`
15210 test "x$?" != "x0" && pkg_failed=yes
15211 else
15212 pkg_failed=yes
15213 fi
15214 else
15215 pkg_failed=untried
15216 fi
15217 if test -n "$LIBNEON_LIBS"; then
15218 pkg_cv_LIBNEON_LIBS="$LIBNEON_LIBS"
15219 elif test -n "$PKG_CONFIG"; then
15220 if test -n "$PKG_CONFIG" && \
15221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27.0\""; } >&5
15222 ($PKG_CONFIG --exists --print-errors "neon >= 0.27.0") 2>&5
15223 ac_status=$?
15224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15225 test $ac_status = 0; }; then
15226 pkg_cv_LIBNEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27.0" 2>/dev/null`
15227 test "x$?" != "x0" && pkg_failed=yes
15228 else
15229 pkg_failed=yes
15230 fi
15231 else
15232 pkg_failed=untried
15233 fi
15234
15235
15236
15237 if test $pkg_failed = yes; then
15238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15239 printf "%s\n" "no" >&6; }
15240
15241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15242 _pkg_short_errors_supported=yes
15243 else
15244 _pkg_short_errors_supported=no
15245 fi
15246 if test $_pkg_short_errors_supported = yes; then
15247 LIBNEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "neon >= 0.27.0" 2>&1`
15248 else
15249 LIBNEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "neon >= 0.27.0" 2>&1`
15250 fi
15251 # Put the nasty error message in config.log where it belongs
15252 echo "$LIBNEON_PKG_ERRORS" >&5
15253
15254 neon_found=no
15255 elif test $pkg_failed = untried; then
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15257 printf "%s\n" "no" >&6; }
15258 neon_found=no
15259 else
15260 LIBNEON_CFLAGS=$pkg_cv_LIBNEON_CFLAGS
15261 LIBNEON_LIBS=$pkg_cv_LIBNEON_LIBS
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15263 printf "%s\n" "yes" >&6; }
15264 neon_found=yes
15265 fi
15266
15267 fi
15268 if test "$neon_found" = "yes"; then
15269
15270 printf "%s\n" "#define HAVE_LIBNEON 1" >>confdefs.h
15271
15272 CPPFLAGS="$CPPFLAGS $LIBNEON_CFLAGS"
15273 LIBS="$LIBS $LIBNEON_LIBS"
15274 DAV=dav.c
15275 DAV_LS=dav_ls.c
15276 else
15277 DAV=
15278 DAV_LS=
15279 fi
15280 else
15281 DAV=
15282 DAV_LS=
15283 LIBDAV=
15284 fi
15285
15286 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
15287 if test "x$ac_cv_header_iconv_h" = xyes
15288 then :
15289 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
15290
15291 fi
15292
15293 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
15294 if test "x$ac_cv_header_langinfo_h" = xyes
15295 then :
15296 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
15297
15298 fi
15299
15300 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
15301 if test "x$ac_cv_func_iconv" = xyes
15302 then :
15303 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
15304
15305 fi
15306
15307 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
15308 if test "x$ac_cv_func_nl_langinfo" = xyes
15309 then :
15310 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
15311
15312 fi
15313
15314
15315 if test x$neon_found = xyes; then
15316 BUILD_DAVSUPPORT_TRUE=
15317 BUILD_DAVSUPPORT_FALSE='#'
15318 else
15319 BUILD_DAVSUPPORT_TRUE='#'
15320 BUILD_DAVSUPPORT_FALSE=
15321 fi
15322
15323
15324
15325
15326
15327
15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15329 printf %s "checking for dlopen in -ldl... " >&6; }
15330 if test ${ac_cv_lib_dl_dlopen+y}
15331 then :
15332 printf %s "(cached) " >&6
15333 else case e in #(
15334 e) ac_check_lib_save_LIBS=$LIBS
15335 LIBS="-ldl $LIBS"
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338
15339 /* Override any GCC internal prototype to avoid an error.
15340 Use char because int might match the return type of a GCC
15341 builtin and then its argument prototype would still apply.
15342 The 'extern "C"' is for builds by C++ compilers;
15343 although this is not generally supported in C code supporting it here
15344 has little cost and some practical benefit (sr 110532). */
15345 #ifdef __cplusplus
15346 extern "C"
15347 #endif
15348 char dlopen (void);
15349 int
15350 main (void)
15351 {
15352 return dlopen ();
15353 ;
15354 return 0;
15355 }
15356 _ACEOF
15357 if ac_fn_c_try_link "$LINENO"
15358 then :
15359 ac_cv_lib_dl_dlopen=yes
15360 else case e in #(
15361 e) ac_cv_lib_dl_dlopen=no ;;
15362 esac
15363 fi
15364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15365 conftest$ac_exeext conftest.$ac_ext
15366 LIBS=$ac_check_lib_save_LIBS ;;
15367 esac
15368 fi
15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15370 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15371 if test "x$ac_cv_lib_dl_dlopen" = xyes
15372 then :
15373 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
15374
15375 LIBS="-ldl $LIBS"
15376
15377 fi
15378
15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15380 printf %s "checking for pthread_create in -lpthread... " >&6; }
15381 if test ${ac_cv_lib_pthread_pthread_create+y}
15382 then :
15383 printf %s "(cached) " >&6
15384 else case e in #(
15385 e) ac_check_lib_save_LIBS=$LIBS
15386 LIBS="-lpthread $LIBS"
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply.
15393 The 'extern "C"' is for builds by C++ compilers;
15394 although this is not generally supported in C code supporting it here
15395 has little cost and some practical benefit (sr 110532). */
15396 #ifdef __cplusplus
15397 extern "C"
15398 #endif
15399 char pthread_create (void);
15400 int
15401 main (void)
15402 {
15403 return pthread_create ();
15404 ;
15405 return 0;
15406 }
15407 _ACEOF
15408 if ac_fn_c_try_link "$LINENO"
15409 then :
15410 ac_cv_lib_pthread_pthread_create=yes
15411 else case e in #(
15412 e) ac_cv_lib_pthread_pthread_create=no ;;
15413 esac
15414 fi
15415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15416 conftest$ac_exeext conftest.$ac_ext
15417 LIBS=$ac_check_lib_save_LIBS ;;
15418 esac
15419 fi
15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15421 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
15422 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
15423 then :
15424 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
15425
15426 LIBS="-lpthread $LIBS"
15427
15428 fi
15429
15430 if test -z "`echo "$LIBS"|grep pthread`"; then
15431 LIBS="$LIBS -pthread"
15432 fi
15433
15434 moduledir='${libdir}/avfs'
15435
15436
15437
15438 install_scriptcomps=
15439
15440
15441 # Extract the first word of "zip", so it can be a program name with args.
15442 set dummy zip; ac_word=$2
15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15444 printf %s "checking for $ac_word... " >&6; }
15445 if test ${ac_cv_path_ZIP+y}
15446 then :
15447 printf %s "(cached) " >&6
15448 else case e in #(
15449 e) case $ZIP in
15450 [\\/]* | ?:[\\/]*)
15451 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
15452 ;;
15453 *)
15454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15455 for as_dir in $PATH
15456 do
15457 IFS=$as_save_IFS
15458 case $as_dir in #(((
15459 '') as_dir=./ ;;
15460 */) ;;
15461 *) as_dir=$as_dir/ ;;
15462 esac
15463 for ac_exec_ext in '' $ac_executable_extensions; do
15464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15465 ac_cv_path_ZIP="$as_dir$ac_word$ac_exec_ext"
15466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15467 break 2
15468 fi
15469 done
15470 done
15471 IFS=$as_save_IFS
15472
15473 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/usr/bin/zip"
15474 ;;
15475 esac ;;
15476 esac
15477 fi
15478 ZIP=$ac_cv_path_ZIP
15479 if test -n "$ZIP"; then
15480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
15481 printf "%s\n" "$ZIP" >&6; }
15482 else
15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15484 printf "%s\n" "no" >&6; }
15485 fi
15486
15487
15488 # Extract the first word of "unzip", so it can be a program name with args.
15489 set dummy unzip; ac_word=$2
15490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15491 printf %s "checking for $ac_word... " >&6; }
15492 if test ${ac_cv_path_UNZIP+y}
15493 then :
15494 printf %s "(cached) " >&6
15495 else case e in #(
15496 e) case $UNZIP in
15497 [\\/]* | ?:[\\/]*)
15498 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
15499 ;;
15500 *)
15501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15502 for as_dir in $PATH
15503 do
15504 IFS=$as_save_IFS
15505 case $as_dir in #(((
15506 '') as_dir=./ ;;
15507 */) ;;
15508 *) as_dir=$as_dir/ ;;
15509 esac
15510 for ac_exec_ext in '' $ac_executable_extensions; do
15511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15512 ac_cv_path_UNZIP="$as_dir$ac_word$ac_exec_ext"
15513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15514 break 2
15515 fi
15516 done
15517 done
15518 IFS=$as_save_IFS
15519
15520 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="/usr/bin/unzip"
15521 ;;
15522 esac ;;
15523 esac
15524 fi
15525 UNZIP=$ac_cv_path_UNZIP
15526 if test -n "$UNZIP"; then
15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
15528 printf "%s\n" "$UNZIP" >&6; }
15529 else
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15531 printf "%s\n" "no" >&6; }
15532 fi
15533
15534
15535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zipinfo code in unzip" >&5
15536 printf %s "checking for zipinfo code in unzip... " >&6; }
15537 if test ${mc_cv_have_zipinfo+y}
15538 then :
15539 printf %s "(cached) " >&6
15540 else case e in #(
15541 e) mc_cv_have_zipinfo=no
15542 if $UNZIP -Z </dev/null >/dev/null 2>&1; then
15543 mc_cv_have_zipinfo=yes
15544 fi ;;
15545 esac
15546 fi
15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mc_cv_have_zipinfo" >&5
15548 printf "%s\n" "$mc_cv_have_zipinfo" >&6; }
15549 if test "x$mc_cv_have_zipinfo" = xyes; then
15550 HAVE_ZIPINFO=1
15551 else
15552 HAVE_ZIPINFO=0
15553 fi
15554
15555 # Extract the first word of "perl", so it can be a program name with args.
15556 set dummy perl; ac_word=$2
15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15558 printf %s "checking for $ac_word... " >&6; }
15559 if test ${ac_cv_path_PERL+y}
15560 then :
15561 printf %s "(cached) " >&6
15562 else case e in #(
15563 e) case $PERL in
15564 [\\/]* | ?:[\\/]*)
15565 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15566 ;;
15567 *)
15568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15569 for as_dir in $PATH
15570 do
15571 IFS=$as_save_IFS
15572 case $as_dir in #(((
15573 '') as_dir=./ ;;
15574 */) ;;
15575 *) as_dir=$as_dir/ ;;
15576 esac
15577 for ac_exec_ext in '' $ac_executable_extensions; do
15578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15579 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
15580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15581 break 2
15582 fi
15583 done
15584 done
15585 IFS=$as_save_IFS
15586
15587 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
15588 ;;
15589 esac ;;
15590 esac
15591 fi
15592 PERL=$ac_cv_path_PERL
15593 if test -n "$PERL"; then
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15595 printf "%s\n" "$PERL" >&6; }
15596 else
15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15598 printf "%s\n" "no" >&6; }
15599 fi
15600
15601
15602
15603
15604 install_fuse=no
15605
15606
15607 run_fuse_test=yes
15608 # Check whether --enable-fuse-test was given.
15609 if test ${enable_fuse_test+y}
15610 then :
15611 enableval=$enable_fuse_test; if test "$enableval" = yes; then run_fuse_test=yes; else run_fuse_test=no; fi
15612 fi
15613
15614
15615 if test $fuse_build = yes; then
15616 if test $run_fuse_test = yes; then
15617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fuse is new enough" >&5
15618 printf %s "checking whether fuse is new enough... " >&6; }
15619
15620 pkg-config fuse3 >/dev/null 2>/dev/null
15621 if test $? -eq 0; then
15622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15623 printf "%s\n" "yes" >&6; }
15624 else
15625 pkg-config --atleast-version=2.6.0 fuse >/dev/null 2>/dev/null
15626
15627 if test $? -ne 0; then
15628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15629 printf "%s\n" "no" >&6; }
15630 fuse_build=no
15631 else
15632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15633 printf "%s\n" "yes" >&6; }
15634 fi
15635 fi
15636 fi
15637 fi
15638
15639 if test $fuse_build = yes; then
15640 fuse_pkg_found=no
15641 if test -n "$PKG_CONFIG" && \
15642 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
15643 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
15644 ac_status=$?
15645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15646 test $ac_status = 0; }; then
15647
15648
15649 pkg_failed=no
15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
15651 printf %s "checking for fuse3... " >&6; }
15652
15653 if test -n "$LIBFUSE_CFLAGS"; then
15654 pkg_cv_LIBFUSE_CFLAGS="$LIBFUSE_CFLAGS"
15655 elif test -n "$PKG_CONFIG"; then
15656 if test -n "$PKG_CONFIG" && \
15657 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
15658 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
15659 ac_status=$?
15660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15661 test $ac_status = 0; }; then
15662 pkg_cv_LIBFUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
15663 test "x$?" != "x0" && pkg_failed=yes
15664 else
15665 pkg_failed=yes
15666 fi
15667 else
15668 pkg_failed=untried
15669 fi
15670 if test -n "$LIBFUSE_LIBS"; then
15671 pkg_cv_LIBFUSE_LIBS="$LIBFUSE_LIBS"
15672 elif test -n "$PKG_CONFIG"; then
15673 if test -n "$PKG_CONFIG" && \
15674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
15675 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
15676 ac_status=$?
15677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15678 test $ac_status = 0; }; then
15679 pkg_cv_LIBFUSE_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
15680 test "x$?" != "x0" && pkg_failed=yes
15681 else
15682 pkg_failed=yes
15683 fi
15684 else
15685 pkg_failed=untried
15686 fi
15687
15688
15689
15690 if test $pkg_failed = yes; then
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 printf "%s\n" "no" >&6; }
15693
15694 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15695 _pkg_short_errors_supported=yes
15696 else
15697 _pkg_short_errors_supported=no
15698 fi
15699 if test $_pkg_short_errors_supported = yes; then
15700 LIBFUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
15701 else
15702 LIBFUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
15703 fi
15704 # Put the nasty error message in config.log where it belongs
15705 echo "$LIBFUSE_PKG_ERRORS" >&5
15706
15707 as_fn_error $? "Package requirements (fuse3) were not met:
15708
15709 $LIBFUSE_PKG_ERRORS
15710
15711 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15712 installed software in a non-standard prefix.
15713
15714 Alternatively, you may set the environment variables LIBFUSE_CFLAGS
15715 and LIBFUSE_LIBS to avoid the need to call pkg-config.
15716 See the pkg-config man page for more details." "$LINENO" 5
15717 elif test $pkg_failed = untried; then
15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15719 printf "%s\n" "no" >&6; }
15720 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15721 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15722 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15723 is in your PATH or set the PKG_CONFIG environment variable to the full
15724 path to pkg-config.
15725
15726 Alternatively, you may set the environment variables LIBFUSE_CFLAGS
15727 and LIBFUSE_LIBS to avoid the need to call pkg-config.
15728 See the pkg-config man page for more details.
15729
15730 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15731 See 'config.log' for more details" "$LINENO" 5; }
15732 else
15733 LIBFUSE_CFLAGS=$pkg_cv_LIBFUSE_CFLAGS
15734 LIBFUSE_LIBS=$pkg_cv_LIBFUSE_LIBS
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15736 printf "%s\n" "yes" >&6; }
15737 fuse_pkg_found=yes
15738
15739 printf "%s\n" "#define LIBFUSE_VERSION 3" >>confdefs.h
15740
15741
15742 fi
15743
15744 else
15745
15746 pkg_failed=no
15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse" >&5
15748 printf %s "checking for fuse... " >&6; }
15749
15750 if test -n "$LIBFUSE_CFLAGS"; then
15751 pkg_cv_LIBFUSE_CFLAGS="$LIBFUSE_CFLAGS"
15752 elif test -n "$PKG_CONFIG"; then
15753 if test -n "$PKG_CONFIG" && \
15754 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse\""; } >&5
15755 ($PKG_CONFIG --exists --print-errors "fuse") 2>&5
15756 ac_status=$?
15757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15758 test $ac_status = 0; }; then
15759 pkg_cv_LIBFUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse" 2>/dev/null`
15760 test "x$?" != "x0" && pkg_failed=yes
15761 else
15762 pkg_failed=yes
15763 fi
15764 else
15765 pkg_failed=untried
15766 fi
15767 if test -n "$LIBFUSE_LIBS"; then
15768 pkg_cv_LIBFUSE_LIBS="$LIBFUSE_LIBS"
15769 elif test -n "$PKG_CONFIG"; then
15770 if test -n "$PKG_CONFIG" && \
15771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse\""; } >&5
15772 ($PKG_CONFIG --exists --print-errors "fuse") 2>&5
15773 ac_status=$?
15774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15775 test $ac_status = 0; }; then
15776 pkg_cv_LIBFUSE_LIBS=`$PKG_CONFIG --libs "fuse" 2>/dev/null`
15777 test "x$?" != "x0" && pkg_failed=yes
15778 else
15779 pkg_failed=yes
15780 fi
15781 else
15782 pkg_failed=untried
15783 fi
15784
15785
15786
15787 if test $pkg_failed = yes; then
15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789 printf "%s\n" "no" >&6; }
15790
15791 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15792 _pkg_short_errors_supported=yes
15793 else
15794 _pkg_short_errors_supported=no
15795 fi
15796 if test $_pkg_short_errors_supported = yes; then
15797 LIBFUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse" 2>&1`
15798 else
15799 LIBFUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse" 2>&1`
15800 fi
15801 # Put the nasty error message in config.log where it belongs
15802 echo "$LIBFUSE_PKG_ERRORS" >&5
15803
15804 as_fn_error $? "Package requirements (fuse) were not met:
15805
15806 $LIBFUSE_PKG_ERRORS
15807
15808 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15809 installed software in a non-standard prefix.
15810
15811 Alternatively, you may set the environment variables LIBFUSE_CFLAGS
15812 and LIBFUSE_LIBS to avoid the need to call pkg-config.
15813 See the pkg-config man page for more details." "$LINENO" 5
15814 elif test $pkg_failed = untried; then
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 printf "%s\n" "no" >&6; }
15817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15819 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15820 is in your PATH or set the PKG_CONFIG environment variable to the full
15821 path to pkg-config.
15822
15823 Alternatively, you may set the environment variables LIBFUSE_CFLAGS
15824 and LIBFUSE_LIBS to avoid the need to call pkg-config.
15825 See the pkg-config man page for more details.
15826
15827 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15828 See 'config.log' for more details" "$LINENO" 5; }
15829 else
15830 LIBFUSE_CFLAGS=$pkg_cv_LIBFUSE_CFLAGS
15831 LIBFUSE_LIBS=$pkg_cv_LIBFUSE_LIBS
15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15833 printf "%s\n" "yes" >&6; }
15834 fuse_pkg_found=yes
15835
15836 printf "%s\n" "#define LIBFUSE_VERSION 2" >>confdefs.h
15837
15838
15839 fi
15840
15841 fi
15842
15843 if test "$fuse_pkg_found" = "yes" -o "$run_fuse_test" = "no"; then
15844
15845 printf "%s\n" "#define HAVE_LIBFUSE 1" >>confdefs.h
15846
15847 CPPFLAGS="$CPPFLAGS $LIBFUSE_CFLAGS"
15848 FUSELIBS="$LIBFUSE_LIBS"
15849
15850 install_fuse=yes
15851 install_scriptcomps="$install_scriptcomps mountavfs umountavfs"
15852 else
15853 fuse_build=no
15854 fi
15855
15856 fi
15857
15858
15859
15860 have_liblzma=no
15861 use_liblzma=no
15862
15863 # Check whether --with-xz was given.
15864 if test ${with_xz+y}
15865 then :
15866 withval=$with_xz; ac_cv_use_xz=$withval
15867 else case e in #(
15868 e) ac_cv_use_xz=yes ;;
15869 esac
15870 fi
15871
15872 if test "$ac_cv_use_xz" = "yes" -o "$ac_cv_use_xz" = "force"; then
15873 if test -n "$PKG_CONFIG" && \
15874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
15875 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
15876 ac_status=$?
15877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15878 test $ac_status = 0; }; then
15879
15880
15881 pkg_failed=no
15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15883 printf %s "checking for liblzma... " >&6; }
15884
15885 if test -n "$LIBLZMA_CFLAGS"; then
15886 pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS"
15887 elif test -n "$PKG_CONFIG"; then
15888 if test -n "$PKG_CONFIG" && \
15889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
15890 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
15891 ac_status=$?
15892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15893 test $ac_status = 0; }; then
15894 pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
15895 test "x$?" != "x0" && pkg_failed=yes
15896 else
15897 pkg_failed=yes
15898 fi
15899 else
15900 pkg_failed=untried
15901 fi
15902 if test -n "$LIBLZMA_LIBS"; then
15903 pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS"
15904 elif test -n "$PKG_CONFIG"; then
15905 if test -n "$PKG_CONFIG" && \
15906 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
15907 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
15908 ac_status=$?
15909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15910 test $ac_status = 0; }; then
15911 pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
15912 test "x$?" != "x0" && pkg_failed=yes
15913 else
15914 pkg_failed=yes
15915 fi
15916 else
15917 pkg_failed=untried
15918 fi
15919
15920
15921
15922 if test $pkg_failed = yes; then
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 printf "%s\n" "no" >&6; }
15925
15926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15927 _pkg_short_errors_supported=yes
15928 else
15929 _pkg_short_errors_supported=no
15930 fi
15931 if test $_pkg_short_errors_supported = yes; then
15932 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
15933 else
15934 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
15935 fi
15936 # Put the nasty error message in config.log where it belongs
15937 echo "$LIBLZMA_PKG_ERRORS" >&5
15938
15939 as_fn_error $? "Package requirements (liblzma) were not met:
15940
15941 $LIBLZMA_PKG_ERRORS
15942
15943 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15944 installed software in a non-standard prefix.
15945
15946 Alternatively, you may set the environment variables LIBLZMA_CFLAGS
15947 and LIBLZMA_LIBS to avoid the need to call pkg-config.
15948 See the pkg-config man page for more details." "$LINENO" 5
15949 elif test $pkg_failed = untried; then
15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15951 printf "%s\n" "no" >&6; }
15952 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15953 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15954 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15955 is in your PATH or set the PKG_CONFIG environment variable to the full
15956 path to pkg-config.
15957
15958 Alternatively, you may set the environment variables LIBLZMA_CFLAGS
15959 and LIBLZMA_LIBS to avoid the need to call pkg-config.
15960 See the pkg-config man page for more details.
15961
15962 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15963 See 'config.log' for more details" "$LINENO" 5; }
15964 else
15965 LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS
15966 LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS
15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15968 printf "%s\n" "yes" >&6; }
15969 have_liblzma=yes
15970 fi
15971
15972 fi
15973
15974 if test "$have_liblzma" = "yes" -o "$ac_cv_use_xz" = "force"; then
15975
15976 printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
15977
15978 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
15979 LIBS="$LIBS $LIBLZMA_LIBS"
15980 use_liblzma=yes
15981 fi
15982 fi
15983
15984
15985 have_libzstd=no
15986 use_libzstd=no
15987
15988 # Check whether --with-zstd was given.
15989 if test ${with_zstd+y}
15990 then :
15991 withval=$with_zstd; ac_cv_use_zstd=$withval
15992 else case e in #(
15993 e) ac_cv_use_zstd=yes ;;
15994 esac
15995 fi
15996
15997 if test "$ac_cv_use_zstd" = "yes"; then
15998 if test -n "$PKG_CONFIG" && \
15999 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
16000 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
16001 ac_status=$?
16002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16003 test $ac_status = 0; }; then
16004
16005
16006 pkg_failed=no
16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5
16008 printf %s "checking for libzstd... " >&6; }
16009
16010 if test -n "$LIBZSTD_CFLAGS"; then
16011 pkg_cv_LIBZSTD_CFLAGS="$LIBZSTD_CFLAGS"
16012 elif test -n "$PKG_CONFIG"; then
16013 if test -n "$PKG_CONFIG" && \
16014 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
16015 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
16016 ac_status=$?
16017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16018 test $ac_status = 0; }; then
16019 pkg_cv_LIBZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
16020 test "x$?" != "x0" && pkg_failed=yes
16021 else
16022 pkg_failed=yes
16023 fi
16024 else
16025 pkg_failed=untried
16026 fi
16027 if test -n "$LIBZSTD_LIBS"; then
16028 pkg_cv_LIBZSTD_LIBS="$LIBZSTD_LIBS"
16029 elif test -n "$PKG_CONFIG"; then
16030 if test -n "$PKG_CONFIG" && \
16031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
16032 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
16033 ac_status=$?
16034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16035 test $ac_status = 0; }; then
16036 pkg_cv_LIBZSTD_LIBS=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
16037 test "x$?" != "x0" && pkg_failed=yes
16038 else
16039 pkg_failed=yes
16040 fi
16041 else
16042 pkg_failed=untried
16043 fi
16044
16045
16046
16047 if test $pkg_failed = yes; then
16048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049 printf "%s\n" "no" >&6; }
16050
16051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16052 _pkg_short_errors_supported=yes
16053 else
16054 _pkg_short_errors_supported=no
16055 fi
16056 if test $_pkg_short_errors_supported = yes; then
16057 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
16058 else
16059 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
16060 fi
16061 # Put the nasty error message in config.log where it belongs
16062 echo "$LIBZSTD_PKG_ERRORS" >&5
16063
16064 as_fn_error $? "Package requirements (libzstd) were not met:
16065
16066 $LIBZSTD_PKG_ERRORS
16067
16068 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16069 installed software in a non-standard prefix.
16070
16071 Alternatively, you may set the environment variables LIBZSTD_CFLAGS
16072 and LIBZSTD_LIBS to avoid the need to call pkg-config.
16073 See the pkg-config man page for more details." "$LINENO" 5
16074 elif test $pkg_failed = untried; then
16075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076 printf "%s\n" "no" >&6; }
16077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16078 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16079 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16080 is in your PATH or set the PKG_CONFIG environment variable to the full
16081 path to pkg-config.
16082
16083 Alternatively, you may set the environment variables LIBZSTD_CFLAGS
16084 and LIBZSTD_LIBS to avoid the need to call pkg-config.
16085 See the pkg-config man page for more details.
16086
16087 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16088 See 'config.log' for more details" "$LINENO" 5; }
16089 else
16090 LIBZSTD_CFLAGS=$pkg_cv_LIBZSTD_CFLAGS
16091 LIBZSTD_LIBS=$pkg_cv_LIBZSTD_LIBS
16092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16093 printf "%s\n" "yes" >&6; }
16094 have_libzstd=yes
16095 fi
16096
16097 fi
16098
16099 if test "$have_libzstd" = "yes"; then
16100
16101 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
16102
16103 CPPFLAGS="$CPPFLAGS $LIBZSTD_CFLAGS"
16104 LIBS="$LIBS $LIBZSTD_LIBS"
16105 use_libzstd=yes
16106 fi
16107 fi
16108
16109
16110 use_liblzip=no
16111
16112 # Check whether --with-lzip was given.
16113 if test ${with_lzip+y}
16114 then :
16115 withval=$with_lzip; ac_cv_use_lzip=$withval
16116 else case e in #(
16117 e) ac_cv_use_lzip=yes ;;
16118 esac
16119 fi
16120
16121 if test "$ac_cv_use_lzip" = "yes"; then
16122 for ac_header in lzlib.h
16123 do :
16124 ac_fn_c_check_header_compile "$LINENO" "lzlib.h" "ac_cv_header_lzlib_h" "$ac_includes_default"
16125 if test "x$ac_cv_header_lzlib_h" = xyes
16126 then :
16127 printf "%s\n" "#define HAVE_LZLIB_H 1" >>confdefs.h
16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ_decompress_open in -llz" >&5
16129 printf %s "checking for LZ_decompress_open in -llz... " >&6; }
16130 if test ${ac_cv_lib_lz_LZ_decompress_open+y}
16131 then :
16132 printf %s "(cached) " >&6
16133 else case e in #(
16134 e) ac_check_lib_save_LIBS=$LIBS
16135 LIBS="-llz $LIBS"
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16138
16139 /* Override any GCC internal prototype to avoid an error.
16140 Use char because int might match the return type of a GCC
16141 builtin and then its argument prototype would still apply.
16142 The 'extern "C"' is for builds by C++ compilers;
16143 although this is not generally supported in C code supporting it here
16144 has little cost and some practical benefit (sr 110532). */
16145 #ifdef __cplusplus
16146 extern "C"
16147 #endif
16148 char LZ_decompress_open (void);
16149 int
16150 main (void)
16151 {
16152 return LZ_decompress_open ();
16153 ;
16154 return 0;
16155 }
16156 _ACEOF
16157 if ac_fn_c_try_link "$LINENO"
16158 then :
16159 ac_cv_lib_lz_LZ_decompress_open=yes
16160 else case e in #(
16161 e) ac_cv_lib_lz_LZ_decompress_open=no ;;
16162 esac
16163 fi
16164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16165 conftest$ac_exeext conftest.$ac_ext
16166 LIBS=$ac_check_lib_save_LIBS ;;
16167 esac
16168 fi
16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz_LZ_decompress_open" >&5
16170 printf "%s\n" "$ac_cv_lib_lz_LZ_decompress_open" >&6; }
16171 if test "x$ac_cv_lib_lz_LZ_decompress_open" = xyes
16172 then :
16173 LIBS="$LIBS -llz"
16174
16175 printf "%s\n" "#define HAVE_LIBLZIP 1" >>confdefs.h
16176
16177 use_liblzip=yes
16178 fi
16179
16180 fi
16181
16182 done
16183 fi
16184
16185 if test x$use_liblzma = xyes; then
16186 USE_LIBLZMA_TRUE=
16187 USE_LIBLZMA_FALSE='#'
16188 else
16189 USE_LIBLZMA_TRUE='#'
16190 USE_LIBLZMA_FALSE=
16191 fi
16192
16193 if test x$use_libzstd = xyes; then
16194 USE_LIBZSTD_TRUE=
16195 USE_LIBZSTD_FALSE='#'
16196 else
16197 USE_LIBZSTD_TRUE='#'
16198 USE_LIBZSTD_FALSE=
16199 fi
16200
16201 if test x$use_liblzip = xyes; then
16202 USE_LIBLZIP_TRUE=
16203 USE_LIBLZIP_FALSE='#'
16204 else
16205 USE_LIBLZIP_TRUE='#'
16206 USE_LIBLZIP_FALSE=
16207 fi
16208
16209 if test x$install_fuse = xyes; then
16210 INSTALL_FUSE_TRUE=
16211 INSTALL_FUSE_FALSE='#'
16212 else
16213 INSTALL_FUSE_TRUE='#'
16214 INSTALL_FUSE_FALSE=
16215 fi
16216
16217
16218
16219 if test $shared_build = yes; then
16220 install_scriptcomps="$install_scriptcomps avfs-config"
16221 fi
16222 if test x$shared_build = xyes; then
16223 BUILD_SHARED_TRUE=
16224 BUILD_SHARED_FALSE='#'
16225 else
16226 BUILD_SHARED_TRUE='#'
16227 BUILD_SHARED_FALSE=
16228 fi
16229
16230
16231
16232
16233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker ($LD) supports symbol versioning" >&5
16234 printf %s "checking whether the linker ($LD) supports symbol versioning... " >&6; }
16235 ld_versionscript=no
16236 if test "$ld_shlibs" = yes -a "$enable_shared" = yes; then
16237 if test "$with_gnu_ld" = yes; then
16238 if test -n "`$LD --help 2>/dev/null | grep version-script`"; then
16239 ld_versionscript=yes
16240 VERSIONSCRIPT_OPTS="-Wl,--version-script=\$(srcdir)/libavfs.map"
16241 fi
16242 else
16243 case $host_os in
16244 solaris*|sunos4*)
16245 if test -n "`$LD --help 2>&1 | grep "M mapfile"`"; then
16246 ld_versionscript=yes
16247 VERSIONSCRIPT_OPTS="-Wl,-M,\$(srcdir)/libavfs.map"
16248 fi
16249 ;;
16250 *)
16251 ;;
16252 esac
16253 fi
16254 fi
16255
16256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_versionscript" >&5
16257 printf "%s\n" "$ld_versionscript" >&6; }
16258
16259
16260
16261
16262
16263 ac_config_files="$ac_config_files pkgconfig/avfs.pc"
16264
16265
16266 ac_config_files="$ac_config_files Makefile src/Makefile modules/Makefile zlib/Makefile bzlib/Makefile lib/Makefile include/Makefile extfs/Makefile scripts/Makefile test/Makefile spec/Makefile macros/Makefile patch/Makefile doc/Makefile fuse/Makefile pkgconfig/Makefile scripts/avfs-config extfs/a extfs/apt extfs/audio extfs/deb extfs/deba extfs/debd extfs/dpkg extfs/hp48 extfs/iso9660 extfs/lslR extfs/mailfs extfs/patchfs extfs/rpms extfs/u7z extfs/uace extfs/uar extfs/uarj extfs/uc1541 extfs/uha extfs/ulha extfs/upp extfs/uextrar extfs/uxdms extfs/uxpk extfs/uzip extfs/uzoo include/version.h"
16267
16268 ac_config_commands="$ac_config_commands default"
16269
16270 cat >confcache <<\_ACEOF
16271 # This file is a shell script that caches the results of configure
16272 # tests run on this system so they can be shared between configure
16273 # scripts and configure runs, see configure's option --config-cache.
16274 # It is not useful on other systems. If it contains results you don't
16275 # want to keep, you may remove or edit it.
16276 #
16277 # config.status only pays attention to the cache file if you give it
16278 # the --recheck option to rerun configure.
16279 #
16280 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16281 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16282 # following values.
16283
16284 _ACEOF
16285
16286 # The following way of writing the cache mishandles newlines in values,
16287 # but we know of no workaround that is simple, portable, and efficient.
16288 # So, we kill variables containing newlines.
16289 # Ultrix sh set writes to stderr and can't be redirected directly,
16290 # and sets the high bit in the cache file unless we assign to the vars.
16291 (
16292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16293 eval ac_val=\$$ac_var
16294 case $ac_val in #(
16295 *${as_nl}*)
16296 case $ac_var in #(
16297 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16298 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16299 esac
16300 case $ac_var in #(
16301 _ | IFS | as_nl) ;; #(
16302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16303 *) { eval $ac_var=; unset $ac_var;} ;;
16304 esac ;;
16305 esac
16306 done
16307
16308 (set) 2>&1 |
16309 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16310 *${as_nl}ac_space=\ *)
16311 # 'set' does not quote correctly, so add quotes: double-quote
16312 # substitution turns \\\\ into \\, and sed turns \\ into \.
16313 sed -n \
16314 "s/'/'\\\\''/g;
16315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16316 ;; #(
16317 *)
16318 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16320 ;;
16321 esac |
16322 sort
16323 ) |
16324 sed '
16325 /^ac_cv_env_/b end
16326 t clear
16327 :clear
16328 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16329 t end
16330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16331 :end' >>confcache
16332 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16333 if test -w "$cache_file"; then
16334 if test "x$cache_file" != "x/dev/null"; then
16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16336 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16337 if test ! -f "$cache_file" || test -h "$cache_file"; then
16338 cat confcache >"$cache_file"
16339 else
16340 case $cache_file in #(
16341 */* | ?:*)
16342 mv -f confcache "$cache_file"$$ &&
16343 mv -f "$cache_file"$$ "$cache_file" ;; #(
16344 *)
16345 mv -f confcache "$cache_file" ;;
16346 esac
16347 fi
16348 fi
16349 else
16350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16351 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16352 fi
16353 fi
16354 rm -f confcache
16355
16356 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16357 # Let make expand exec_prefix.
16358 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16359
16360 DEFS=-DHAVE_CONFIG_H
16361
16362 ac_libobjs=
16363 ac_ltlibobjs=
16364 U=
16365 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16366 # 1. Remove the extension, and $U if already installed.
16367 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16368 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16369 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16370 # will be set to the directory where LIBOBJS objects are built.
16371 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16372 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16373 done
16374 LIBOBJS=$ac_libobjs
16375
16376 LTLIBOBJS=$ac_ltlibobjs
16377
16378
16379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16380 printf %s "checking that generated files are newer than configure... " >&6; }
16381 if test -n "$am_sleep_pid"; then
16382 # Hide warnings about reused PIDs.
16383 wait $am_sleep_pid 2>/dev/null
16384 fi
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16386 printf "%s\n" "done" >&6; }
16387 case $enable_silent_rules in # (((
16388 yes) AM_DEFAULT_VERBOSITY=0;;
16389 no) AM_DEFAULT_VERBOSITY=1;;
16390 esac
16391 if test $am_cv_make_support_nested_variables = yes; then
16392 AM_V='$(V)'
16393 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16394 else
16395 AM_V=$AM_DEFAULT_VERBOSITY
16396 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16397 fi
16398
16399 if test -n "$EXEEXT"; then
16400 am__EXEEXT_TRUE=
16401 am__EXEEXT_FALSE='#'
16402 else
16403 am__EXEEXT_TRUE='#'
16404 am__EXEEXT_FALSE=
16405 fi
16406
16407 if test -z "${USE_SYSTEM_ZLIB_TRUE}" && test -z "${USE_SYSTEM_ZLIB_FALSE}"; then
16408 as_fn_error $? "conditional \"USE_SYSTEM_ZLIB\" was never defined.
16409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16410 fi
16411 if test -z "${USE_SYSTEM_BZLIB_TRUE}" && test -z "${USE_SYSTEM_BZLIB_FALSE}"; then
16412 as_fn_error $? "conditional \"USE_SYSTEM_BZLIB\" was never defined.
16413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16414 fi
16415 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16416 as_fn_error $? "conditional \"AMDEP\" was never defined.
16417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16418 fi
16419 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16420 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16422 fi
16423 # Check whether --enable-year2038 was given.
16424 if test ${enable_year2038+y}
16425 then :
16426 enableval=$enable_year2038;
16427 fi
16428
16429 if test -z "${BUILD_DAVSUPPORT_TRUE}" && test -z "${BUILD_DAVSUPPORT_FALSE}"; then
16430 as_fn_error $? "conditional \"BUILD_DAVSUPPORT\" was never defined.
16431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16432 fi
16433 if test -z "${USE_LIBLZMA_TRUE}" && test -z "${USE_LIBLZMA_FALSE}"; then
16434 as_fn_error $? "conditional \"USE_LIBLZMA\" was never defined.
16435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16436 fi
16437 if test -z "${USE_LIBZSTD_TRUE}" && test -z "${USE_LIBZSTD_FALSE}"; then
16438 as_fn_error $? "conditional \"USE_LIBZSTD\" was never defined.
16439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16440 fi
16441 if test -z "${USE_LIBLZIP_TRUE}" && test -z "${USE_LIBLZIP_FALSE}"; then
16442 as_fn_error $? "conditional \"USE_LIBLZIP\" was never defined.
16443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16444 fi
16445 if test -z "${INSTALL_FUSE_TRUE}" && test -z "${INSTALL_FUSE_FALSE}"; then
16446 as_fn_error $? "conditional \"INSTALL_FUSE\" was never defined.
16447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16448 fi
16449 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
16450 as_fn_error $? "conditional \"BUILD_SHARED\" was never defined.
16451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16452 fi
16453
16454 : "${CONFIG_STATUS=./config.status}"
16455 ac_write_fail=0
16456 ac_clean_files_save=$ac_clean_files
16457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16459 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16460 as_write_fail=0
16461 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16462 #! $SHELL
16463 # Generated by $as_me.
16464 # Run this file to recreate the current configuration.
16465 # Compiler output produced by configure, useful for debugging
16466 # configure, is in config.log if it exists.
16467
16468 debug=false
16469 ac_cs_recheck=false
16470 ac_cs_silent=false
16471
16472 SHELL=\${CONFIG_SHELL-$SHELL}
16473 export SHELL
16474 _ASEOF
16475 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16476 ## -------------------- ##
16477 ## M4sh Initialization. ##
16478 ## -------------------- ##
16479
16480 # Be more Bourne compatible
16481 DUALCASE=1; export DUALCASE # for MKS sh
16482 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16483 then :
16484 emulate sh
16485 NULLCMD=:
16486 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16487 # is contrary to our usage. Disable this feature.
16488 alias -g '${1+"$@"}'='"$@"'
16489 setopt NO_GLOB_SUBST
16490 else case e in #(
16491 e) case `(set -o) 2>/dev/null` in #(
16492 *posix*) :
16493 set -o posix ;; #(
16494 *) :
16495 ;;
16496 esac ;;
16497 esac
16498 fi
16499
16500
16501
16502 # Reset variables that may have inherited troublesome values from
16503 # the environment.
16504
16505 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16506 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16507 # side effect of setting IFS to empty, thus disabling word splitting.)
16508 # Quoting is to prevent editors from complaining about space-tab.
16509 as_nl='
16510 '
16511 export as_nl
16512 IFS=" "" $as_nl"
16513
16514 PS1='$ '
16515 PS2='> '
16516 PS4='+ '
16517
16518 # Ensure predictable behavior from utilities with locale-dependent output.
16519 LC_ALL=C
16520 export LC_ALL
16521 LANGUAGE=C
16522 export LANGUAGE
16523
16524 # We cannot yet rely on "unset" to work, but we need these variables
16525 # to be unset--not just set to an empty or harmless value--now, to
16526 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16527 # also avoids known problems related to "unset" and subshell syntax
16528 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16529 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16530 do eval test \${$as_var+y} \
16531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16532 done
16533
16534 # Ensure that fds 0, 1, and 2 are open.
16535 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16536 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16537 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16538
16539 # The user is always right.
16540 if ${PATH_SEPARATOR+false} :; then
16541 PATH_SEPARATOR=:
16542 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16543 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16544 PATH_SEPARATOR=';'
16545 }
16546 fi
16547
16548
16549 # Find who we are. Look in the path if we contain no directory separator.
16550 as_myself=
16551 case $0 in #((
16552 *[\\/]* ) as_myself=$0 ;;
16553 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16554 for as_dir in $PATH
16555 do
16556 IFS=$as_save_IFS
16557 case $as_dir in #(((
16558 '') as_dir=./ ;;
16559 */) ;;
16560 *) as_dir=$as_dir/ ;;
16561 esac
16562 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16563 done
16564 IFS=$as_save_IFS
16565
16566 ;;
16567 esac
16568 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16569 # in which case we are not to be found in the path.
16570 if test "x$as_myself" = x; then
16571 as_myself=$0
16572 fi
16573 if test ! -f "$as_myself"; then
16574 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16575 exit 1
16576 fi
16577
16578
16579
16580 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16581 # ----------------------------------------
16582 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16583 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16584 # script with STATUS, using 1 if that was 0.
16585 as_fn_error ()
16586 {
16587 as_status=$1; test $as_status -eq 0 && as_status=1
16588 if test "$4"; then
16589 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16591 fi
16592 printf "%s\n" "$as_me: error: $2" >&2
16593 as_fn_exit $as_status
16594 } # as_fn_error
16595
16596
16597 # as_fn_set_status STATUS
16598 # -----------------------
16599 # Set $? to STATUS, without forking.
16600 as_fn_set_status ()
16601 {
16602 return $1
16603 } # as_fn_set_status
16604
16605 # as_fn_exit STATUS
16606 # -----------------
16607 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16608 as_fn_exit ()
16609 {
16610 set +e
16611 as_fn_set_status $1
16612 exit $1
16613 } # as_fn_exit
16614
16615 # as_fn_unset VAR
16616 # ---------------
16617 # Portably unset VAR.
16618 as_fn_unset ()
16619 {
16620 { eval $1=; unset $1;}
16621 }
16622 as_unset=as_fn_unset
16623
16624 # as_fn_append VAR VALUE
16625 # ----------------------
16626 # Append the text in VALUE to the end of the definition contained in VAR. Take
16627 # advantage of any shell optimizations that allow amortized linear growth over
16628 # repeated appends, instead of the typical quadratic growth present in naive
16629 # implementations.
16630 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16631 then :
16632 eval 'as_fn_append ()
16633 {
16634 eval $1+=\$2
16635 }'
16636 else case e in #(
16637 e) as_fn_append ()
16638 {
16639 eval $1=\$$1\$2
16640 } ;;
16641 esac
16642 fi # as_fn_append
16643
16644 # as_fn_arith ARG...
16645 # ------------------
16646 # Perform arithmetic evaluation on the ARGs, and store the result in the
16647 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16648 # must be portable across $(()) and expr.
16649 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16650 then :
16651 eval 'as_fn_arith ()
16652 {
16653 as_val=$(( $* ))
16654 }'
16655 else case e in #(
16656 e) as_fn_arith ()
16657 {
16658 as_val=`expr "$@" || test $? -eq 1`
16659 } ;;
16660 esac
16661 fi # as_fn_arith
16662
16663
16664 if expr a : '\(a\)' >/dev/null 2>&1 &&
16665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16666 as_expr=expr
16667 else
16668 as_expr=false
16669 fi
16670
16671 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16672 as_basename=basename
16673 else
16674 as_basename=false
16675 fi
16676
16677 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16678 as_dirname=dirname
16679 else
16680 as_dirname=false
16681 fi
16682
16683 as_me=`$as_basename -- "$0" ||
16684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16685 X"$0" : 'X\(//\)$' \| \
16686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16687 printf "%s\n" X/"$0" |
16688 sed '/^.*\/\([^/][^/]*\)\/*$/{
16689 s//\1/
16690 q
16691 }
16692 /^X\/\(\/\/\)$/{
16693 s//\1/
16694 q
16695 }
16696 /^X\/\(\/\).*/{
16697 s//\1/
16698 q
16699 }
16700 s/.*/./; q'`
16701
16702 # Avoid depending upon Character Ranges.
16703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16706 as_cr_digits='0123456789'
16707 as_cr_alnum=$as_cr_Letters$as_cr_digits
16708
16709
16710 # Determine whether it's possible to make 'echo' print without a newline.
16711 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16712 # for compatibility with existing Makefiles.
16713 ECHO_C= ECHO_N= ECHO_T=
16714 case `echo -n x` in #(((((
16715 -n*)
16716 case `echo 'xy\c'` in
16717 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16718 xy) ECHO_C='\c';;
16719 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16720 ECHO_T=' ';;
16721 esac;;
16722 *)
16723 ECHO_N='-n';;
16724 esac
16725
16726 # For backward compatibility with old third-party macros, we provide
16727 # the shell variables $as_echo and $as_echo_n. New code should use
16728 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16729 as_echo='printf %s\n'
16730 as_echo_n='printf %s'
16731
16732 rm -f conf$$ conf$$.exe conf$$.file
16733 if test -d conf$$.dir; then
16734 rm -f conf$$.dir/conf$$.file
16735 else
16736 rm -f conf$$.dir
16737 mkdir conf$$.dir 2>/dev/null
16738 fi
16739 if (echo >conf$$.file) 2>/dev/null; then
16740 if ln -s conf$$.file conf$$ 2>/dev/null; then
16741 as_ln_s='ln -s'
16742 # ... but there are two gotchas:
16743 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16744 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16745 # In both cases, we have to default to 'cp -pR'.
16746 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16747 as_ln_s='cp -pR'
16748 elif ln conf$$.file conf$$ 2>/dev/null; then
16749 as_ln_s=ln
16750 else
16751 as_ln_s='cp -pR'
16752 fi
16753 else
16754 as_ln_s='cp -pR'
16755 fi
16756 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16757 rmdir conf$$.dir 2>/dev/null
16758
16759
16760 # as_fn_mkdir_p
16761 # -------------
16762 # Create "$as_dir" as a directory, including parents if necessary.
16763 as_fn_mkdir_p ()
16764 {
16765
16766 case $as_dir in #(
16767 -*) as_dir=./$as_dir;;
16768 esac
16769 test -d "$as_dir" || eval $as_mkdir_p || {
16770 as_dirs=
16771 while :; do
16772 case $as_dir in #(
16773 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16774 *) as_qdir=$as_dir;;
16775 esac
16776 as_dirs="'$as_qdir' $as_dirs"
16777 as_dir=`$as_dirname -- "$as_dir" ||
16778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16779 X"$as_dir" : 'X\(//\)[^/]' \| \
16780 X"$as_dir" : 'X\(//\)$' \| \
16781 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16782 printf "%s\n" X"$as_dir" |
16783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16784 s//\1/
16785 q
16786 }
16787 /^X\(\/\/\)[^/].*/{
16788 s//\1/
16789 q
16790 }
16791 /^X\(\/\/\)$/{
16792 s//\1/
16793 q
16794 }
16795 /^X\(\/\).*/{
16796 s//\1/
16797 q
16798 }
16799 s/.*/./; q'`
16800 test -d "$as_dir" && break
16801 done
16802 test -z "$as_dirs" || eval "mkdir $as_dirs"
16803 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16804
16805
16806 } # as_fn_mkdir_p
16807 if mkdir -p . 2>/dev/null; then
16808 as_mkdir_p='mkdir -p "$as_dir"'
16809 else
16810 test -d ./-p && rmdir ./-p
16811 as_mkdir_p=false
16812 fi
16813
16814
16815 # as_fn_executable_p FILE
16816 # -----------------------
16817 # Test if FILE is an executable regular file.
16818 as_fn_executable_p ()
16819 {
16820 test -f "$1" && test -x "$1"
16821 } # as_fn_executable_p
16822 as_test_x='test -x'
16823 as_executable_p=as_fn_executable_p
16824
16825 # Sed expression to map a string onto a valid CPP name.
16826 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16827 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16828
16829 # Sed expression to map a string onto a valid variable name.
16830 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16831 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16832
16833
16834 exec 6>&1
16835 ## ----------------------------------- ##
16836 ## Main body of $CONFIG_STATUS script. ##
16837 ## ----------------------------------- ##
16838 _ASEOF
16839 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16840
16841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16842 # Save the log message, to keep $0 and so on meaningful, and to
16843 # report actual input values of CONFIG_FILES etc. instead of their
16844 # values after options handling.
16845 ac_log="
16846 This file was extended by avfs $as_me 1.3.0, which was
16847 generated by GNU Autoconf 2.72. Invocation command line was
16848
16849 CONFIG_FILES = $CONFIG_FILES
16850 CONFIG_HEADERS = $CONFIG_HEADERS
16851 CONFIG_LINKS = $CONFIG_LINKS
16852 CONFIG_COMMANDS = $CONFIG_COMMANDS
16853 $ $0 $@
16854
16855 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16856 "
16857
16858 _ACEOF
16859
16860 case $ac_config_files in *"
16861 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16862 esac
16863
16864 case $ac_config_headers in *"
16865 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16866 esac
16867
16868
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 # Files that config.status was made for.
16871 config_files="$ac_config_files"
16872 config_headers="$ac_config_headers"
16873 config_commands="$ac_config_commands"
16874
16875 _ACEOF
16876
16877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16878 ac_cs_usage="\
16879 '$as_me' instantiates files and other configuration actions
16880 from templates according to the current configuration. Unless the files
16881 and actions are specified as TAGs, all are instantiated by default.
16882
16883 Usage: $0 [OPTION]... [TAG]...
16884
16885 -h, --help print this help, then exit
16886 -V, --version print version number and configuration settings, then exit
16887 --config print configuration, then exit
16888 -q, --quiet, --silent
16889 do not print progress messages
16890 -d, --debug don't remove temporary files
16891 --recheck update $as_me by reconfiguring in the same conditions
16892 --file=FILE[:TEMPLATE]
16893 instantiate the configuration file FILE
16894 --header=FILE[:TEMPLATE]
16895 instantiate the configuration header FILE
16896
16897 Configuration files:
16898 $config_files
16899
16900 Configuration headers:
16901 $config_headers
16902
16903 Configuration commands:
16904 $config_commands
16905
16906 Report bugs to the package provider."
16907
16908 _ACEOF
16909 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16910 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16912 ac_cs_config='$ac_cs_config_escaped'
16913 ac_cs_version="\\
16914 avfs config.status 1.3.0
16915 configured by $0, generated by GNU Autoconf 2.72,
16916 with options \\"\$ac_cs_config\\"
16917
16918 Copyright (C) 2023 Free Software Foundation, Inc.
16919 This config.status script is free software; the Free Software Foundation
16920 gives unlimited permission to copy, distribute and modify it."
16921
16922 ac_pwd='$ac_pwd'
16923 srcdir='$srcdir'
16924 INSTALL='$INSTALL'
16925 MKDIR_P='$MKDIR_P'
16926 AWK='$AWK'
16927 test -n "\$AWK" || AWK=awk
16928 _ACEOF
16929
16930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16931 # The default lists apply if the user does not specify any file.
16932 ac_need_defaults=:
16933 while test $# != 0
16934 do
16935 case $1 in
16936 --*=?*)
16937 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16938 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16939 ac_shift=:
16940 ;;
16941 --*=)
16942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16943 ac_optarg=
16944 ac_shift=:
16945 ;;
16946 *)
16947 ac_option=$1
16948 ac_optarg=$2
16949 ac_shift=shift
16950 ;;
16951 esac
16952
16953 case $ac_option in
16954 # Handling of the options.
16955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16956 ac_cs_recheck=: ;;
16957 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16958 printf "%s\n" "$ac_cs_version"; exit ;;
16959 --config | --confi | --conf | --con | --co | --c )
16960 printf "%s\n" "$ac_cs_config"; exit ;;
16961 --debug | --debu | --deb | --de | --d | -d )
16962 debug=: ;;
16963 --file | --fil | --fi | --f )
16964 $ac_shift
16965 case $ac_optarg in
16966 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16967 '') as_fn_error $? "missing file argument" ;;
16968 esac
16969 as_fn_append CONFIG_FILES " '$ac_optarg'"
16970 ac_need_defaults=false;;
16971 --header | --heade | --head | --hea )
16972 $ac_shift
16973 case $ac_optarg in
16974 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16975 esac
16976 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16977 ac_need_defaults=false;;
16978 --he | --h)
16979 # Conflict between --help and --header
16980 as_fn_error $? "ambiguous option: '$1'
16981 Try '$0 --help' for more information.";;
16982 --help | --hel | -h )
16983 printf "%s\n" "$ac_cs_usage"; exit ;;
16984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16985 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16986 ac_cs_silent=: ;;
16987
16988 # This is an error.
16989 -*) as_fn_error $? "unrecognized option: '$1'
16990 Try '$0 --help' for more information." ;;
16991
16992 *) as_fn_append ac_config_targets " $1"
16993 ac_need_defaults=false ;;
16994
16995 esac
16996 shift
16997 done
16998
16999 ac_configure_extra_args=
17000
17001 if $ac_cs_silent; then
17002 exec 6>/dev/null
17003 ac_configure_extra_args="$ac_configure_extra_args --silent"
17004 fi
17005
17006 _ACEOF
17007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17008 if \$ac_cs_recheck; then
17009 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17010 shift
17011 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17012 CONFIG_SHELL='$SHELL'
17013 export CONFIG_SHELL
17014 exec "\$@"
17015 fi
17016
17017 _ACEOF
17018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17019 exec 5>>config.log
17020 {
17021 echo
17022 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17023 ## Running $as_me. ##
17024 _ASBOX
17025 printf "%s\n" "$ac_log"
17026 } >&5
17027
17028 _ACEOF
17029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17030 #
17031 # INIT-COMMANDS
17032 #
17033 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17034
17035
17036 # The HP-UX ksh and POSIX shell print the target directory to stdout
17037 # if CDPATH is set.
17038 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17039
17040 sed_quote_subst='$sed_quote_subst'
17041 double_quote_subst='$double_quote_subst'
17042 delay_variable_subst='$delay_variable_subst'
17043 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17044 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17045 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17046 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17047 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17048 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17049 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17050 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17051 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17052 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17053 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17054 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17055 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17056 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17057 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17058 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17059 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17060 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17061 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17062 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17063 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17064 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17065 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17066 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17067 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17068 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17069 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17070 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17071 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17072 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17073 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17074 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17075 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17076 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17077 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17078 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17079 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17080 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17081 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17082 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17083 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17084 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17085 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17086 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17087 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17088 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17089 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17090 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17091 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17092 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17093 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17094 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17095 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17096 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17097 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17098 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17099 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17100 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17101 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17102 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17103 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"`'
17104 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17105 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17106 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17107 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17108 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17109 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17110 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17111 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17112 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17113 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17114 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17115 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17116 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17117 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17118 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17119 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17120 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17121 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17122 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17123 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17124 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17125 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17126 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17127 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17128 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17129 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17130 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17131 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17132 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17133 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17134 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17135 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17136 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17137 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17138 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17139 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17140 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17141 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17142 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17143 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17144 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17145 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17146 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17147 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17148 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17149 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17150 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17151 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17152 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17153 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17154 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17155 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17156 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17157 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17158 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17159 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17160 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17161 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17162 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17163 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17164 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17165 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17166 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17167 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17168 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17169 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17170 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17171 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17172 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17173 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17174 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17175 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17176 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17177 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17178 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17179 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17180
17181 LTCC='$LTCC'
17182 LTCFLAGS='$LTCFLAGS'
17183 compiler='$compiler_DEFAULT'
17184
17185 # A function that is used when there is no print builtin or printf.
17186 func_fallback_echo ()
17187 {
17188 eval 'cat <<_LTECHO_EOF
17189 \$1
17190 _LTECHO_EOF'
17191 }
17192
17193 # Quote evaled strings.
17194 for var in SHELL \
17195 ECHO \
17196 PATH_SEPARATOR \
17197 SED \
17198 GREP \
17199 EGREP \
17200 FGREP \
17201 LD \
17202 NM \
17203 LN_S \
17204 lt_SP2NL \
17205 lt_NL2SP \
17206 reload_flag \
17207 FILECMD \
17208 OBJDUMP \
17209 deplibs_check_method \
17210 file_magic_cmd \
17211 file_magic_glob \
17212 want_nocaseglob \
17213 DLLTOOL \
17214 sharedlib_from_linklib_cmd \
17215 AR \
17216 archiver_list_spec \
17217 STRIP \
17218 RANLIB \
17219 CC \
17220 CFLAGS \
17221 compiler \
17222 lt_cv_sys_global_symbol_pipe \
17223 lt_cv_sys_global_symbol_to_cdecl \
17224 lt_cv_sys_global_symbol_to_import \
17225 lt_cv_sys_global_symbol_to_c_name_address \
17226 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17227 lt_cv_nm_interface \
17228 nm_file_list_spec \
17229 lt_cv_truncate_bin \
17230 lt_prog_compiler_no_builtin_flag \
17231 lt_prog_compiler_pic \
17232 lt_prog_compiler_wl \
17233 lt_prog_compiler_static \
17234 lt_cv_prog_compiler_c_o \
17235 need_locks \
17236 MANIFEST_TOOL \
17237 DSYMUTIL \
17238 NMEDIT \
17239 LIPO \
17240 OTOOL \
17241 OTOOL64 \
17242 shrext_cmds \
17243 export_dynamic_flag_spec \
17244 whole_archive_flag_spec \
17245 compiler_needs_object \
17246 with_gnu_ld \
17247 allow_undefined_flag \
17248 no_undefined_flag \
17249 hardcode_libdir_flag_spec \
17250 hardcode_libdir_separator \
17251 exclude_expsyms \
17252 include_expsyms \
17253 file_list_spec \
17254 variables_saved_for_relink \
17255 libname_spec \
17256 library_names_spec \
17257 soname_spec \
17258 install_override_mode \
17259 finish_eval \
17260 old_striplib \
17261 striplib; do
17262 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17263 *[\\\\\\\`\\"\\\$]*)
17264 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17265 ;;
17266 *)
17267 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17268 ;;
17269 esac
17270 done
17271
17272 # Double-quote double-evaled strings.
17273 for var in reload_cmds \
17274 old_postinstall_cmds \
17275 old_postuninstall_cmds \
17276 old_archive_cmds \
17277 extract_expsyms_cmds \
17278 old_archive_from_new_cmds \
17279 old_archive_from_expsyms_cmds \
17280 archive_cmds \
17281 archive_expsym_cmds \
17282 module_cmds \
17283 module_expsym_cmds \
17284 export_symbols_cmds \
17285 prelink_cmds \
17286 postlink_cmds \
17287 postinstall_cmds \
17288 postuninstall_cmds \
17289 finish_cmds \
17290 sys_lib_search_path_spec \
17291 configure_time_dlsearch_path \
17292 configure_time_lt_sys_library_path; do
17293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17294 *[\\\\\\\`\\"\\\$]*)
17295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17296 ;;
17297 *)
17298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17299 ;;
17300 esac
17301 done
17302
17303 ac_aux_dir='$ac_aux_dir'
17304
17305 # See if we are running on zsh, and set the options that allow our
17306 # commands through without removal of \ escapes INIT.
17307 if test -n "\${ZSH_VERSION+set}"; then
17308 setopt NO_GLOB_SUBST
17309 fi
17310
17311
17312 PACKAGE='$PACKAGE'
17313 VERSION='$VERSION'
17314 RM='$RM'
17315 ofile='$ofile'
17316
17317
17318
17319
17320 _ACEOF
17321
17322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17323
17324 # Handling of arguments.
17325 for ac_config_target in $ac_config_targets
17326 do
17327 case $ac_config_target in
17328 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:config.h.in" ;;
17329 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17330 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17331 "pkgconfig/avfs.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/avfs.pc" ;;
17332 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17333 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17334 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
17335 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
17336 "bzlib/Makefile") CONFIG_FILES="$CONFIG_FILES bzlib/Makefile" ;;
17337 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17338 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17339 "extfs/Makefile") CONFIG_FILES="$CONFIG_FILES extfs/Makefile" ;;
17340 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
17341 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17342 "spec/Makefile") CONFIG_FILES="$CONFIG_FILES spec/Makefile" ;;
17343 "macros/Makefile") CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
17344 "patch/Makefile") CONFIG_FILES="$CONFIG_FILES patch/Makefile" ;;
17345 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17346 "fuse/Makefile") CONFIG_FILES="$CONFIG_FILES fuse/Makefile" ;;
17347 "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
17348 "scripts/avfs-config") CONFIG_FILES="$CONFIG_FILES scripts/avfs-config" ;;
17349 "extfs/a") CONFIG_FILES="$CONFIG_FILES extfs/a" ;;
17350 "extfs/apt") CONFIG_FILES="$CONFIG_FILES extfs/apt" ;;
17351 "extfs/audio") CONFIG_FILES="$CONFIG_FILES extfs/audio" ;;
17352 "extfs/deb") CONFIG_FILES="$CONFIG_FILES extfs/deb" ;;
17353 "extfs/deba") CONFIG_FILES="$CONFIG_FILES extfs/deba" ;;
17354 "extfs/debd") CONFIG_FILES="$CONFIG_FILES extfs/debd" ;;
17355 "extfs/dpkg") CONFIG_FILES="$CONFIG_FILES extfs/dpkg" ;;
17356 "extfs/hp48") CONFIG_FILES="$CONFIG_FILES extfs/hp48" ;;
17357 "extfs/iso9660") CONFIG_FILES="$CONFIG_FILES extfs/iso9660" ;;
17358 "extfs/lslR") CONFIG_FILES="$CONFIG_FILES extfs/lslR" ;;
17359 "extfs/mailfs") CONFIG_FILES="$CONFIG_FILES extfs/mailfs" ;;
17360 "extfs/patchfs") CONFIG_FILES="$CONFIG_FILES extfs/patchfs" ;;
17361 "extfs/rpms") CONFIG_FILES="$CONFIG_FILES extfs/rpms" ;;
17362 "extfs/u7z") CONFIG_FILES="$CONFIG_FILES extfs/u7z" ;;
17363 "extfs/uace") CONFIG_FILES="$CONFIG_FILES extfs/uace" ;;
17364 "extfs/uar") CONFIG_FILES="$CONFIG_FILES extfs/uar" ;;
17365 "extfs/uarj") CONFIG_FILES="$CONFIG_FILES extfs/uarj" ;;
17366 "extfs/uc1541") CONFIG_FILES="$CONFIG_FILES extfs/uc1541" ;;
17367 "extfs/uha") CONFIG_FILES="$CONFIG_FILES extfs/uha" ;;
17368 "extfs/ulha") CONFIG_FILES="$CONFIG_FILES extfs/ulha" ;;
17369 "extfs/upp") CONFIG_FILES="$CONFIG_FILES extfs/upp" ;;
17370 "extfs/uextrar") CONFIG_FILES="$CONFIG_FILES extfs/uextrar" ;;
17371 "extfs/uxdms") CONFIG_FILES="$CONFIG_FILES extfs/uxdms" ;;
17372 "extfs/uxpk") CONFIG_FILES="$CONFIG_FILES extfs/uxpk" ;;
17373 "extfs/uzip") CONFIG_FILES="$CONFIG_FILES extfs/uzip" ;;
17374 "extfs/uzoo") CONFIG_FILES="$CONFIG_FILES extfs/uzoo" ;;
17375 "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
17376 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17377
17378 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17379 esac
17380 done
17381
17382
17383 # If the user did not use the arguments to specify the items to instantiate,
17384 # then the envvar interface is used. Set only those that are not.
17385 # We use the long form for the default assignment because of an extremely
17386 # bizarre bug on SunOS 4.1.3.
17387 if $ac_need_defaults; then
17388 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17389 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17390 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17391 fi
17392
17393 # Have a temporary directory for convenience. Make it in the build tree
17394 # simply because there is no reason against having it here, and in addition,
17395 # creating and moving files from /tmp can sometimes cause problems.
17396 # Hook for its removal unless debugging.
17397 # Note that there is a small window in which the directory will not be cleaned:
17398 # after its creation but before its name has been assigned to '$tmp'.
17399 $debug ||
17400 {
17401 tmp= ac_tmp=
17402 trap 'exit_status=$?
17403 : "${ac_tmp:=$tmp}"
17404 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17405 ' 0
17406 trap 'as_fn_exit 1' 1 2 13 15
17407 }
17408 # Create a (secure) tmp directory for tmp files.
17409
17410 {
17411 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17412 test -d "$tmp"
17413 } ||
17414 {
17415 tmp=./conf$$-$RANDOM
17416 (umask 077 && mkdir "$tmp")
17417 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17418 ac_tmp=$tmp
17419
17420 # Set up the scripts for CONFIG_FILES section.
17421 # No need to generate them if there are no CONFIG_FILES.
17422 # This happens for instance with './config.status config.h'.
17423 if test -n "$CONFIG_FILES"; then
17424
17425
17426 ac_cr=`echo X | tr X '\015'`
17427 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17428 # But we know of no other shell where ac_cr would be empty at this
17429 # point, so we can use a bashism as a fallback.
17430 if test "x$ac_cr" = x; then
17431 eval ac_cr=\$\'\\r\'
17432 fi
17433 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17434 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17435 ac_cs_awk_cr='\\r'
17436 else
17437 ac_cs_awk_cr=$ac_cr
17438 fi
17439
17440 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17441 _ACEOF
17442
17443
17444 {
17445 echo "cat >conf$$subs.awk <<_ACEOF" &&
17446 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17447 echo "_ACEOF"
17448 } >conf$$subs.sh ||
17449 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17450 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17451 ac_delim='%!_!# '
17452 for ac_last_try in false false false false false :; do
17453 . ./conf$$subs.sh ||
17454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17455
17456 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17457 if test $ac_delim_n = $ac_delim_num; then
17458 break
17459 elif $ac_last_try; then
17460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17461 else
17462 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17463 fi
17464 done
17465 rm -f conf$$subs.sh
17466
17467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17468 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17469 _ACEOF
17470 sed -n '
17471 h
17472 s/^/S["/; s/!.*/"]=/
17473 p
17474 g
17475 s/^[^!]*!//
17476 :repl
17477 t repl
17478 s/'"$ac_delim"'$//
17479 t delim
17480 :nl
17481 h
17482 s/\(.\{148\}\)..*/\1/
17483 t more1
17484 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17485 p
17486 n
17487 b repl
17488 :more1
17489 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17490 p
17491 g
17492 s/.\{148\}//
17493 t nl
17494 :delim
17495 h
17496 s/\(.\{148\}\)..*/\1/
17497 t more2
17498 s/["\\]/\\&/g; s/^/"/; s/$/"/
17499 p
17500 b
17501 :more2
17502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17503 p
17504 g
17505 s/.\{148\}//
17506 t delim
17507 ' <conf$$subs.awk | sed '
17508 /^[^""]/{
17509 N
17510 s/\n//
17511 }
17512 ' >>$CONFIG_STATUS || ac_write_fail=1
17513 rm -f conf$$subs.awk
17514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17515 _ACAWK
17516 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17517 for (key in S) S_is_set[key] = 1
17518 FS = ""
17519
17520 }
17521 {
17522 line = $ 0
17523 nfields = split(line, field, "@")
17524 substed = 0
17525 len = length(field[1])
17526 for (i = 2; i < nfields; i++) {
17527 key = field[i]
17528 keylen = length(key)
17529 if (S_is_set[key]) {
17530 value = S[key]
17531 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17532 len += length(value) + length(field[++i])
17533 substed = 1
17534 } else
17535 len += 1 + keylen
17536 }
17537
17538 print line
17539 }
17540
17541 _ACAWK
17542 _ACEOF
17543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17544 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17545 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17546 else
17547 cat
17548 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17549 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17550 _ACEOF
17551
17552 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17553 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17554 # trailing colons and then remove the whole line if VPATH becomes empty
17555 # (actually we leave an empty line to preserve line numbers).
17556 if test "x$srcdir" = x.; then
17557 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17558 h
17559 s///
17560 s/^/:/
17561 s/[ ]*$/:/
17562 s/:\$(srcdir):/:/g
17563 s/:\${srcdir}:/:/g
17564 s/:@srcdir@:/:/g
17565 s/^:*//
17566 s/:*$//
17567 x
17568 s/\(=[ ]*\).*/\1/
17569 G
17570 s/\n//
17571 s/^[^=]*=[ ]*$//
17572 }'
17573 fi
17574
17575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17576 fi # test -n "$CONFIG_FILES"
17577
17578 # Set up the scripts for CONFIG_HEADERS section.
17579 # No need to generate them if there are no CONFIG_HEADERS.
17580 # This happens for instance with './config.status Makefile'.
17581 if test -n "$CONFIG_HEADERS"; then
17582 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17583 BEGIN {
17584 _ACEOF
17585
17586 # Transform confdefs.h into an awk script 'defines.awk', embedded as
17587 # here-document in config.status, that substitutes the proper values into
17588 # config.h.in to produce config.h.
17589
17590 # Create a delimiter string that does not exist in confdefs.h, to ease
17591 # handling of long lines.
17592 ac_delim='%!_!# '
17593 for ac_last_try in false false :; do
17594 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17595 if test -z "$ac_tt"; then
17596 break
17597 elif $ac_last_try; then
17598 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17599 else
17600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17601 fi
17602 done
17603
17604 # For the awk script, D is an array of macro values keyed by name,
17605 # likewise P contains macro parameters if any. Preserve backslash
17606 # newline sequences.
17607
17608 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17609 sed -n '
17610 s/.\{148\}/&'"$ac_delim"'/g
17611 t rset
17612 :rset
17613 s/^[ ]*#[ ]*define[ ][ ]*/ /
17614 t def
17615 d
17616 :def
17617 s/\\$//
17618 t bsnl
17619 s/["\\]/\\&/g
17620 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17621 D["\1"]=" \3"/p
17622 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17623 d
17624 :bsnl
17625 s/["\\]/\\&/g
17626 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17627 D["\1"]=" \3\\\\\\n"\\/p
17628 t cont
17629 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17630 t cont
17631 d
17632 :cont
17633 n
17634 s/.\{148\}/&'"$ac_delim"'/g
17635 t clear
17636 :clear
17637 s/\\$//
17638 t bsnlc
17639 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17640 d
17641 :bsnlc
17642 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17643 b cont
17644 ' <confdefs.h | sed '
17645 s/'"$ac_delim"'/"\\\
17646 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17647
17648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17649 for (key in D) D_is_set[key] = 1
17650 FS = ""
17651 }
17652 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17653 line = \$ 0
17654 split(line, arg, " ")
17655 if (arg[1] == "#") {
17656 defundef = arg[2]
17657 mac1 = arg[3]
17658 } else {
17659 defundef = substr(arg[1], 2)
17660 mac1 = arg[2]
17661 }
17662 split(mac1, mac2, "(") #)
17663 macro = mac2[1]
17664 prefix = substr(line, 1, index(line, defundef) - 1)
17665 if (D_is_set[macro]) {
17666 # Preserve the white space surrounding the "#".
17667 print prefix "define", macro P[macro] D[macro]
17668 next
17669 } else {
17670 # Replace #undef with comments. This is necessary, for example,
17671 # in the case of _POSIX_SOURCE, which is predefined and required
17672 # on some systems where configure will not decide to define it.
17673 if (defundef == "undef") {
17674 print "/*", prefix defundef, macro, "*/"
17675 next
17676 }
17677 }
17678 }
17679 { print }
17680 _ACAWK
17681 _ACEOF
17682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17683 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17684 fi # test -n "$CONFIG_HEADERS"
17685
17686
17687 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17688 shift
17689 for ac_tag
17690 do
17691 case $ac_tag in
17692 :[FHLC]) ac_mode=$ac_tag; continue;;
17693 esac
17694 case $ac_mode$ac_tag in
17695 :[FHL]*:*);;
17696 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17697 :[FH]-) ac_tag=-:-;;
17698 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17699 esac
17700 ac_save_IFS=$IFS
17701 IFS=:
17702 set x $ac_tag
17703 IFS=$ac_save_IFS
17704 shift
17705 ac_file=$1
17706 shift
17707
17708 case $ac_mode in
17709 :L) ac_source=$1;;
17710 :[FH])
17711 ac_file_inputs=
17712 for ac_f
17713 do
17714 case $ac_f in
17715 -) ac_f="$ac_tmp/stdin";;
17716 *) # Look for the file first in the build tree, then in the source tree
17717 # (if the path is not absolute). The absolute path cannot be DOS-style,
17718 # because $ac_f cannot contain ':'.
17719 test -f "$ac_f" ||
17720 case $ac_f in
17721 [\\/$]*) false;;
17722 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17723 esac ||
17724 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17725 esac
17726 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17727 as_fn_append ac_file_inputs " '$ac_f'"
17728 done
17729
17730 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17731 # use $as_me), people would be surprised to read:
17732 # /* config.h. Generated by config.status. */
17733 configure_input='Generated from '`
17734 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17735 `' by configure.'
17736 if test x"$ac_file" != x-; then
17737 configure_input="$ac_file. $configure_input"
17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17739 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17740 fi
17741 # Neutralize special characters interpreted by sed in replacement strings.
17742 case $configure_input in #(
17743 *\&* | *\|* | *\\* )
17744 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17745 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17746 *) ac_sed_conf_input=$configure_input;;
17747 esac
17748
17749 case $ac_tag in
17750 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17752 esac
17753 ;;
17754 esac
17755
17756 ac_dir=`$as_dirname -- "$ac_file" ||
17757 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17758 X"$ac_file" : 'X\(//\)[^/]' \| \
17759 X"$ac_file" : 'X\(//\)$' \| \
17760 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17761 printf "%s\n" X"$ac_file" |
17762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17763 s//\1/
17764 q
17765 }
17766 /^X\(\/\/\)[^/].*/{
17767 s//\1/
17768 q
17769 }
17770 /^X\(\/\/\)$/{
17771 s//\1/
17772 q
17773 }
17774 /^X\(\/\).*/{
17775 s//\1/
17776 q
17777 }
17778 s/.*/./; q'`
17779 as_dir="$ac_dir"; as_fn_mkdir_p
17780 ac_builddir=.
17781
17782 case "$ac_dir" in
17783 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17784 *)
17785 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17786 # A ".." for each directory in $ac_dir_suffix.
17787 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17788 case $ac_top_builddir_sub in
17789 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17790 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17791 esac ;;
17792 esac
17793 ac_abs_top_builddir=$ac_pwd
17794 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17795 # for backward compatibility:
17796 ac_top_builddir=$ac_top_build_prefix
17797
17798 case $srcdir in
17799 .) # We are building in place.
17800 ac_srcdir=.
17801 ac_top_srcdir=$ac_top_builddir_sub
17802 ac_abs_top_srcdir=$ac_pwd ;;
17803 [\\/]* | ?:[\\/]* ) # Absolute name.
17804 ac_srcdir=$srcdir$ac_dir_suffix;
17805 ac_top_srcdir=$srcdir
17806 ac_abs_top_srcdir=$srcdir ;;
17807 *) # Relative name.
17808 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17809 ac_top_srcdir=$ac_top_build_prefix$srcdir
17810 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17811 esac
17812 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17813
17814
17815 case $ac_mode in
17816 :F)
17817 #
17818 # CONFIG_FILE
17819 #
17820
17821 case $INSTALL in
17822 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17823 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17824 esac
17825 ac_MKDIR_P=$MKDIR_P
17826 case $MKDIR_P in
17827 [\\/$]* | ?:[\\/]* ) ;;
17828 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17829 esac
17830 _ACEOF
17831
17832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17833 # If the template does not know about datarootdir, expand it.
17834 # FIXME: This hack should be removed a few years after 2.60.
17835 ac_datarootdir_hack=; ac_datarootdir_seen=
17836 ac_sed_dataroot='
17837 /datarootdir/ {
17838 p
17839 q
17840 }
17841 /@datadir@/p
17842 /@docdir@/p
17843 /@infodir@/p
17844 /@localedir@/p
17845 /@mandir@/p'
17846 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17847 *datarootdir*) ac_datarootdir_seen=yes;;
17848 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17850 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17851 _ACEOF
17852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17853 ac_datarootdir_hack='
17854 s&@datadir@&$datadir&g
17855 s&@docdir@&$docdir&g
17856 s&@infodir@&$infodir&g
17857 s&@localedir@&$localedir&g
17858 s&@mandir@&$mandir&g
17859 s&\\\${datarootdir}&$datarootdir&g' ;;
17860 esac
17861 _ACEOF
17862
17863 # Neutralize VPATH when '$srcdir' = '.'.
17864 # Shell code in configure.ac might set extrasub.
17865 # FIXME: do we really want to maintain this feature?
17866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17867 ac_sed_extra="$ac_vpsub
17868 $extrasub
17869 _ACEOF
17870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17871 :t
17872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17873 s|@configure_input@|$ac_sed_conf_input|;t t
17874 s&@top_builddir@&$ac_top_builddir_sub&;t t
17875 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17876 s&@srcdir@&$ac_srcdir&;t t
17877 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17878 s&@top_srcdir@&$ac_top_srcdir&;t t
17879 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17880 s&@builddir@&$ac_builddir&;t t
17881 s&@abs_builddir@&$ac_abs_builddir&;t t
17882 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17883 s&@INSTALL@&$ac_INSTALL&;t t
17884 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17885 $ac_datarootdir_hack
17886 "
17887 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17888 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17889
17890 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17891 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17892 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17893 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17895 which seems to be undefined. Please make sure it is defined" >&5
17896 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17897 which seems to be undefined. Please make sure it is defined" >&2;}
17898
17899 rm -f "$ac_tmp/stdin"
17900 case $ac_file in
17901 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17902 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17903 esac \
17904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17905 ;;
17906 :H)
17907 #
17908 # CONFIG_HEADER
17909 #
17910 if test x"$ac_file" != x-; then
17911 {
17912 printf "%s\n" "/* $configure_input */" >&1 \
17913 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17914 } >"$ac_tmp/config.h" \
17915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17916 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17918 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17919 else
17920 rm -f "$ac_file"
17921 mv "$ac_tmp/config.h" "$ac_file" \
17922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17923 fi
17924 else
17925 printf "%s\n" "/* $configure_input */" >&1 \
17926 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17927 || as_fn_error $? "could not create -" "$LINENO" 5
17928 fi
17929 # Compute "$ac_file"'s index in $config_headers.
17930 _am_arg="$ac_file"
17931 _am_stamp_count=1
17932 for _am_header in $config_headers :; do
17933 case $_am_header in
17934 $_am_arg | $_am_arg:* )
17935 break ;;
17936 * )
17937 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17938 esac
17939 done
17940 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17941 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17942 X"$_am_arg" : 'X\(//\)[^/]' \| \
17943 X"$_am_arg" : 'X\(//\)$' \| \
17944 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17945 printf "%s\n" X"$_am_arg" |
17946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17947 s//\1/
17948 q
17949 }
17950 /^X\(\/\/\)[^/].*/{
17951 s//\1/
17952 q
17953 }
17954 /^X\(\/\/\)$/{
17955 s//\1/
17956 q
17957 }
17958 /^X\(\/\).*/{
17959 s//\1/
17960 q
17961 }
17962 s/.*/./; q'`/stamp-h$_am_stamp_count
17963 ;;
17964
17965 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17966 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17967 ;;
17968 esac
17969
17970
17971 case $ac_file$ac_mode in
17972 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17973 # Older Autoconf quotes --file arguments for eval, but not when files
17974 # are listed without --file. Let's play safe and only enable the eval
17975 # if we detect the quoting.
17976 # TODO: see whether this extra hack can be removed once we start
17977 # requiring Autoconf 2.70 or later.
17978 case $CONFIG_FILES in #(
17979 *\'*) :
17980 eval set x "$CONFIG_FILES" ;; #(
17981 *) :
17982 set x $CONFIG_FILES ;; #(
17983 *) :
17984 ;;
17985 esac
17986 shift
17987 # Used to flag and report bootstrapping failures.
17988 am_rc=0
17989 for am_mf
17990 do
17991 # Strip MF so we end up with the name of the file.
17992 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17993 # Check whether this is an Automake generated Makefile which includes
17994 # dependency-tracking related rules and includes.
17995 # Grep'ing the whole file directly is not great: AIX grep has a line
17996 # limit of 2048, but all sed's we know have understand at least 4000.
17997 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17998 || continue
17999 am_dirpart=`$as_dirname -- "$am_mf" ||
18000 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18001 X"$am_mf" : 'X\(//\)[^/]' \| \
18002 X"$am_mf" : 'X\(//\)$' \| \
18003 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18004 printf "%s\n" X"$am_mf" |
18005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18006 s//\1/
18007 q
18008 }
18009 /^X\(\/\/\)[^/].*/{
18010 s//\1/
18011 q
18012 }
18013 /^X\(\/\/\)$/{
18014 s//\1/
18015 q
18016 }
18017 /^X\(\/\).*/{
18018 s//\1/
18019 q
18020 }
18021 s/.*/./; q'`
18022 am_filepart=`$as_basename -- "$am_mf" ||
18023 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18024 X"$am_mf" : 'X\(//\)$' \| \
18025 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18026 printf "%s\n" X/"$am_mf" |
18027 sed '/^.*\/\([^/][^/]*\)\/*$/{
18028 s//\1/
18029 q
18030 }
18031 /^X\/\(\/\/\)$/{
18032 s//\1/
18033 q
18034 }
18035 /^X\/\(\/\).*/{
18036 s//\1/
18037 q
18038 }
18039 s/.*/./; q'`
18040 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18041 && sed -e '/# am--include-marker/d' "$am_filepart" \
18042 | $MAKE -f - am--depfiles" >&5
18043 (cd "$am_dirpart" \
18044 && sed -e '/# am--include-marker/d' "$am_filepart" \
18045 | $MAKE -f - am--depfiles) >&5 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } || am_rc=$?
18049 done
18050 if test $am_rc -ne 0; then
18051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18052 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18053 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18054 for automatic dependency tracking. If GNU make was not used, consider
18055 re-running the configure script with MAKE=\"gmake\" (or whatever is
18056 necessary). You can also try re-running configure with the
18057 '--disable-dependency-tracking' option to at least be able to build
18058 the package (albeit without support for automatic dependency tracking).
18059 See 'config.log' for more details" "$LINENO" 5; }
18060 fi
18061 { am_dirpart=; unset am_dirpart;}
18062 { am_filepart=; unset am_filepart;}
18063 { am_mf=; unset am_mf;}
18064 { am_rc=; unset am_rc;}
18065 rm -f conftest-deps.mk
18066 }
18067 ;;
18068 "libtool":C)
18069
18070 # See if we are running on zsh, and set the options that allow our
18071 # commands through without removal of \ escapes.
18072 if test -n "${ZSH_VERSION+set}"; then
18073 setopt NO_GLOB_SUBST
18074 fi
18075
18076 cfgfile=${ofile}T
18077 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18078 $RM "$cfgfile"
18079
18080 cat <<_LT_EOF >> "$cfgfile"
18081 #! $SHELL
18082 # Generated automatically by $as_me ($PACKAGE) $VERSION
18083 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18084
18085 # Provide generalized library-building support services.
18086 # Written by Gordon Matzigkeit, 1996
18087
18088 # Copyright (C) 2024 Free Software Foundation, Inc.
18089 # This is free software; see the source for copying conditions. There is NO
18090 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18091
18092 # GNU Libtool is free software; you can redistribute it and/or modify
18093 # it under the terms of the GNU General Public License as published by
18094 # the Free Software Foundation; either version 2 of the License, or
18095 # (at your option) any later version.
18096 #
18097 # As a special exception to the GNU General Public License, if you
18098 # distribute this file as part of a program or library that is built
18099 # using GNU Libtool, you may include this file under the same
18100 # distribution terms that you use for the rest of that program.
18101 #
18102 # GNU Libtool is distributed in the hope that it will be useful, but
18103 # WITHOUT ANY WARRANTY; without even the implied warranty of
18104 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18105 # GNU General Public License for more details.
18106 #
18107 # You should have received a copy of the GNU General Public License
18108 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18109
18110
18111 # The names of the tagged configurations supported by this script.
18112 available_tags=''
18113
18114 # Configured defaults for sys_lib_dlsearch_path munging.
18115 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18116
18117 # ### BEGIN LIBTOOL CONFIG
18118
18119 # Which release of libtool.m4 was used?
18120 macro_version=$macro_version
18121 macro_revision=$macro_revision
18122
18123 # Whether or not to build shared libraries.
18124 build_libtool_libs=$enable_shared
18125
18126 # Whether or not to build static libraries.
18127 build_old_libs=$enable_static
18128
18129 # What type of objects to build.
18130 pic_mode=$pic_mode
18131
18132 # Whether or not to optimize for fast installation.
18133 fast_install=$enable_fast_install
18134
18135 # Shared archive member basename,for filename based shared library versioning on AIX.
18136 shared_archive_member_spec=$shared_archive_member_spec
18137
18138 # Shell to use when invoking shell scripts.
18139 SHELL=$lt_SHELL
18140
18141 # An echo program that protects backslashes.
18142 ECHO=$lt_ECHO
18143
18144 # The PATH separator for the build system.
18145 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18146
18147 # The host system.
18148 host_alias=$host_alias
18149 host=$host
18150 host_os=$host_os
18151
18152 # The build system.
18153 build_alias=$build_alias
18154 build=$build
18155 build_os=$build_os
18156
18157 # A sed program that does not truncate output.
18158 SED=$lt_SED
18159
18160 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18161 Xsed="\$SED -e 1s/^X//"
18162
18163 # A grep program that handles long lines.
18164 GREP=$lt_GREP
18165
18166 # An ERE matcher.
18167 EGREP=$lt_EGREP
18168
18169 # A literal string matcher.
18170 FGREP=$lt_FGREP
18171
18172 # A BSD- or MS-compatible name lister.
18173 NM=$lt_NM
18174
18175 # Whether we need soft or hard links.
18176 LN_S=$lt_LN_S
18177
18178 # What is the maximum length of a command?
18179 max_cmd_len=$max_cmd_len
18180
18181 # Object file suffix (normally "o").
18182 objext=$ac_objext
18183
18184 # Executable file suffix (normally "").
18185 exeext=$exeext
18186
18187 # whether the shell understands "unset".
18188 lt_unset=$lt_unset
18189
18190 # turn spaces into newlines.
18191 SP2NL=$lt_lt_SP2NL
18192
18193 # turn newlines into spaces.
18194 NL2SP=$lt_lt_NL2SP
18195
18196 # convert \$build file names to \$host format.
18197 to_host_file_cmd=$lt_cv_to_host_file_cmd
18198
18199 # convert \$build files to toolchain format.
18200 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18201
18202 # A file(cmd) program that detects file types.
18203 FILECMD=$lt_FILECMD
18204
18205 # An object symbol dumper.
18206 OBJDUMP=$lt_OBJDUMP
18207
18208 # Method to check whether dependent libraries are shared objects.
18209 deplibs_check_method=$lt_deplibs_check_method
18210
18211 # Command to use when deplibs_check_method = "file_magic".
18212 file_magic_cmd=$lt_file_magic_cmd
18213
18214 # How to find potential files when deplibs_check_method = "file_magic".
18215 file_magic_glob=$lt_file_magic_glob
18216
18217 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18218 want_nocaseglob=$lt_want_nocaseglob
18219
18220 # DLL creation program.
18221 DLLTOOL=$lt_DLLTOOL
18222
18223 # Command to associate shared and link libraries.
18224 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18225
18226 # The archiver.
18227 AR=$lt_AR
18228
18229 # Flags to create an archive (by configure).
18230 lt_ar_flags=$lt_ar_flags
18231
18232 # Flags to create an archive.
18233 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18234
18235 # How to feed a file listing to the archiver.
18236 archiver_list_spec=$lt_archiver_list_spec
18237
18238 # A symbol stripping program.
18239 STRIP=$lt_STRIP
18240
18241 # Commands used to install an old-style archive.
18242 RANLIB=$lt_RANLIB
18243 old_postinstall_cmds=$lt_old_postinstall_cmds
18244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18245
18246 # Whether to use a lock for old archive extraction.
18247 lock_old_archive_extraction=$lock_old_archive_extraction
18248
18249 # A C compiler.
18250 LTCC=$lt_CC
18251
18252 # LTCC compiler flags.
18253 LTCFLAGS=$lt_CFLAGS
18254
18255 # Take the output of nm and produce a listing of raw symbols and C names.
18256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18257
18258 # Transform the output of nm in a proper C declaration.
18259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18260
18261 # Transform the output of nm into a list of symbols to manually relocate.
18262 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18263
18264 # Transform the output of nm in a C name address pair.
18265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18266
18267 # Transform the output of nm in a C name address pair when lib prefix is needed.
18268 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18269
18270 # The name lister interface.
18271 nm_interface=$lt_lt_cv_nm_interface
18272
18273 # Specify filename containing input files for \$NM.
18274 nm_file_list_spec=$lt_nm_file_list_spec
18275
18276 # The root where to search for dependent libraries,and where our libraries should be installed.
18277 lt_sysroot=$lt_sysroot
18278
18279 # Command to truncate a binary pipe.
18280 lt_truncate_bin=$lt_lt_cv_truncate_bin
18281
18282 # The name of the directory that contains temporary libtool files.
18283 objdir=$objdir
18284
18285 # Used to examine libraries when file_magic_cmd begins with "file".
18286 MAGIC_CMD=$MAGIC_CMD
18287
18288 # Must we lock files when doing compilation?
18289 need_locks=$lt_need_locks
18290
18291 # Manifest tool.
18292 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18293
18294 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18295 DSYMUTIL=$lt_DSYMUTIL
18296
18297 # Tool to change global to local symbols on Mac OS X.
18298 NMEDIT=$lt_NMEDIT
18299
18300 # Tool to manipulate fat objects and archives on Mac OS X.
18301 LIPO=$lt_LIPO
18302
18303 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18304 OTOOL=$lt_OTOOL
18305
18306 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18307 OTOOL64=$lt_OTOOL64
18308
18309 # Old archive suffix (normally "a").
18310 libext=$libext
18311
18312 # Shared library suffix (normally ".so").
18313 shrext_cmds=$lt_shrext_cmds
18314
18315 # The commands to extract the exported symbol list from a shared archive.
18316 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18317
18318 # Variables whose values should be saved in libtool wrapper scripts and
18319 # restored at link time.
18320 variables_saved_for_relink=$lt_variables_saved_for_relink
18321
18322 # Do we need the "lib" prefix for modules?
18323 need_lib_prefix=$need_lib_prefix
18324
18325 # Do we need a version for libraries?
18326 need_version=$need_version
18327
18328 # Library versioning type.
18329 version_type=$version_type
18330
18331 # Shared library runtime path variable.
18332 runpath_var=$runpath_var
18333
18334 # Shared library path variable.
18335 shlibpath_var=$shlibpath_var
18336
18337 # Is shlibpath searched before the hard-coded library search path?
18338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18339
18340 # Format of library name prefix.
18341 libname_spec=$lt_libname_spec
18342
18343 # List of archive names. First name is the real one, the rest are links.
18344 # The last name is the one that the linker finds with -lNAME
18345 library_names_spec=$lt_library_names_spec
18346
18347 # The coded name of the library, if different from the real name.
18348 soname_spec=$lt_soname_spec
18349
18350 # Permission mode override for installation of shared libraries.
18351 install_override_mode=$lt_install_override_mode
18352
18353 # Command to use after installation of a shared archive.
18354 postinstall_cmds=$lt_postinstall_cmds
18355
18356 # Command to use after uninstallation of a shared archive.
18357 postuninstall_cmds=$lt_postuninstall_cmds
18358
18359 # Commands used to finish a libtool library installation in a directory.
18360 finish_cmds=$lt_finish_cmds
18361
18362 # As "finish_cmds", except a single script fragment to be evaled but
18363 # not shown.
18364 finish_eval=$lt_finish_eval
18365
18366 # Whether we should hardcode library paths into libraries.
18367 hardcode_into_libs=$hardcode_into_libs
18368
18369 # Compile-time system search path for libraries.
18370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18371
18372 # Detected run-time system search path for libraries.
18373 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18374
18375 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18376 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18377
18378 # Whether dlopen is supported.
18379 dlopen_support=$enable_dlopen
18380
18381 # Whether dlopen of programs is supported.
18382 dlopen_self=$enable_dlopen_self
18383
18384 # Whether dlopen of statically linked programs is supported.
18385 dlopen_self_static=$enable_dlopen_self_static
18386
18387 # Commands to strip libraries.
18388 old_striplib=$lt_old_striplib
18389 striplib=$lt_striplib
18390
18391
18392 # The linker used to build libraries.
18393 LD=$lt_LD
18394
18395 # How to create reloadable object files.
18396 reload_flag=$lt_reload_flag
18397 reload_cmds=$lt_reload_cmds
18398
18399 # Commands used to build an old-style archive.
18400 old_archive_cmds=$lt_old_archive_cmds
18401
18402 # A language specific compiler.
18403 CC=$lt_compiler
18404
18405 # Is the compiler the GNU compiler?
18406 with_gcc=$GCC
18407
18408 # Compiler flag to turn off builtin functions.
18409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18410
18411 # Additional compiler flags for building library objects.
18412 pic_flag=$lt_lt_prog_compiler_pic
18413
18414 # How to pass a linker flag through the compiler.
18415 wl=$lt_lt_prog_compiler_wl
18416
18417 # Compiler flag to prevent dynamic linking.
18418 link_static_flag=$lt_lt_prog_compiler_static
18419
18420 # Does compiler simultaneously support -c and -o options?
18421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18422
18423 # Whether or not to add -lc for building shared libraries.
18424 build_libtool_need_lc=$archive_cmds_need_lc
18425
18426 # Whether or not to disallow shared libs when runtime libs are static.
18427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18428
18429 # Compiler flag to allow reflexive dlopens.
18430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18431
18432 # Compiler flag to generate shared objects directly from archives.
18433 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18434
18435 # Whether the compiler copes with passing no objects directly.
18436 compiler_needs_object=$lt_compiler_needs_object
18437
18438 # Create an old-style archive from a shared archive.
18439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18440
18441 # Create a temporary old-style archive to link instead of a shared archive.
18442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18443
18444 # Commands used to build a shared archive.
18445 archive_cmds=$lt_archive_cmds
18446 archive_expsym_cmds=$lt_archive_expsym_cmds
18447
18448 # Commands used to build a loadable module if different from building
18449 # a shared archive.
18450 module_cmds=$lt_module_cmds
18451 module_expsym_cmds=$lt_module_expsym_cmds
18452
18453 # Whether we are building with GNU ld or not.
18454 with_gnu_ld=$lt_with_gnu_ld
18455
18456 # Flag that allows shared libraries with undefined symbols to be built.
18457 allow_undefined_flag=$lt_allow_undefined_flag
18458
18459 # Flag that enforces no undefined symbols.
18460 no_undefined_flag=$lt_no_undefined_flag
18461
18462 # Flag to hardcode \$libdir into a binary during linking.
18463 # This must work even if \$libdir does not exist
18464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18465
18466 # Whether we need a single "-rpath" flag with a separated argument.
18467 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18468
18469 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18470 # DIR into the resulting binary.
18471 hardcode_direct=$hardcode_direct
18472
18473 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18474 # DIR into the resulting binary and the resulting library dependency is
18475 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
18476 # library is relocated.
18477 hardcode_direct_absolute=$hardcode_direct_absolute
18478
18479 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18480 # into the resulting binary.
18481 hardcode_minus_L=$hardcode_minus_L
18482
18483 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18484 # into the resulting binary.
18485 hardcode_shlibpath_var=$hardcode_shlibpath_var
18486
18487 # Set to "yes" if building a shared library automatically hardcodes DIR
18488 # into the library and all subsequent libraries and executables linked
18489 # against it.
18490 hardcode_automatic=$hardcode_automatic
18491
18492 # Set to yes if linker adds runtime paths of dependent libraries
18493 # to runtime path list.
18494 inherit_rpath=$inherit_rpath
18495
18496 # Whether libtool must link a program against all its dependency libraries.
18497 link_all_deplibs=$link_all_deplibs
18498
18499 # Set to "yes" if exported symbols are required.
18500 always_export_symbols=$always_export_symbols
18501
18502 # The commands to list exported symbols.
18503 export_symbols_cmds=$lt_export_symbols_cmds
18504
18505 # Symbols that should not be listed in the preloaded symbols.
18506 exclude_expsyms=$lt_exclude_expsyms
18507
18508 # Symbols that must always be exported.
18509 include_expsyms=$lt_include_expsyms
18510
18511 # Commands necessary for linking programs (against libraries) with templates.
18512 prelink_cmds=$lt_prelink_cmds
18513
18514 # Commands necessary for finishing linking programs.
18515 postlink_cmds=$lt_postlink_cmds
18516
18517 # Specify filename containing input files.
18518 file_list_spec=$lt_file_list_spec
18519
18520 # How to hardcode a shared library path into an executable.
18521 hardcode_action=$hardcode_action
18522
18523 # ### END LIBTOOL CONFIG
18524
18525 _LT_EOF
18526
18527 cat <<'_LT_EOF' >> "$cfgfile"
18528
18529 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18530
18531 # func_munge_path_list VARIABLE PATH
18532 # -----------------------------------
18533 # VARIABLE is name of variable containing _space_ separated list of
18534 # directories to be munged by the contents of PATH, which is string
18535 # having a format:
18536 # "DIR[:DIR]:"
18537 # string "DIR[ DIR]" will be prepended to VARIABLE
18538 # ":DIR[:DIR]"
18539 # string "DIR[ DIR]" will be appended to VARIABLE
18540 # "DIRP[:DIRP]::[DIRA:]DIRA"
18541 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18542 # "DIRA[ DIRA]" will be appended to VARIABLE
18543 # "DIR[:DIR]"
18544 # VARIABLE will be replaced by "DIR[ DIR]"
18545 func_munge_path_list ()
18546 {
18547 case x$2 in
18548 x)
18549 ;;
18550 *:)
18551 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18552 ;;
18553 x:*)
18554 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18555 ;;
18556 *::*)
18557 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18558 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18559 ;;
18560 *)
18561 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18562 ;;
18563 esac
18564 }
18565
18566
18567 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18568 func_cc_basename ()
18569 {
18570 for cc_temp in $*""; do
18571 case $cc_temp in
18572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18574 \-*) ;;
18575 *) break;;
18576 esac
18577 done
18578 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18579 }
18580
18581
18582 # ### END FUNCTIONS SHARED WITH CONFIGURE
18583
18584 _LT_EOF
18585
18586 case $host_os in
18587 aix3*)
18588 cat <<\_LT_EOF >> "$cfgfile"
18589 # AIX sometimes has problems with the GCC collect2 program. For some
18590 # reason, if we set the COLLECT_NAMES environment variable, the problems
18591 # vanish in a puff of smoke.
18592 if test set != "${COLLECT_NAMES+set}"; then
18593 COLLECT_NAMES=
18594 export COLLECT_NAMES
18595 fi
18596 _LT_EOF
18597 ;;
18598 esac
18599
18600
18601
18602 ltmain=$ac_aux_dir/ltmain.sh
18603
18604
18605 # We use sed instead of cat because bash on DJGPP gets confused if
18606 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18607 # text mode, it properly converts lines to CR/LF. This bash problem
18608 # is reportedly fixed, but why not run on old versions too?
18609 $SED '$q' "$ltmain" >> "$cfgfile" \
18610 || (rm -f "$cfgfile"; exit 1)
18611
18612 mv -f "$cfgfile" "$ofile" ||
18613 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18614 chmod +x "$ofile"
18615
18616 ;;
18617 "default":C) chmod +x scripts/avfs-config ;;
18618
18619 esac
18620 done # for ac_tag
18621
18622
18623 as_fn_exit 0
18624 _ACEOF
18625 ac_clean_files=$ac_clean_files_save
18626
18627 test $ac_write_fail = 0 ||
18628 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18629
18630
18631 # configure is writing to config.log, and then calls config.status.
18632 # config.status does its own redirection, appending to config.log.
18633 # Unfortunately, on DOS this fails, as config.log is still kept open
18634 # by configure, so config.status won't be able to write to it; its
18635 # output is simply discarded. So we exec the FD to /dev/null,
18636 # effectively closing config.log, so it can be properly (re)opened and
18637 # appended to by config.status. When coming back to configure, we
18638 # need to make the FD available again.
18639 if test "$no_create" != yes; then
18640 ac_cs_success=:
18641 ac_config_status_args=
18642 test "$silent" = yes &&
18643 ac_config_status_args="$ac_config_status_args --quiet"
18644 exec 5>/dev/null
18645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18646 exec 5>>config.log
18647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18648 # would make configure fail if this is the last instruction.
18649 $ac_cs_success || as_fn_exit 1
18650 fi
18651 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18653 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18654 fi
18655
18656
18657 echo ""
18658 echo "Configuration details:"
18659 if test "$shared_build" = "yes"; then
18660 echo " Building library : yes"
18661 else
18662 echo " Building library : no"
18663 fi
18664 if test "$fuse_build" = "yes"; then
18665 echo " Building avfsd for fuse : yes"
18666 else
18667 echo " Building avfsd for fuse : no"
18668 fi
18669 echo ""
18670 if test "x$use_system_zlib" = "xyes"; then
18671 echo " Use zlib : system"
18672 else
18673 echo " Use zlib : internal"
18674 fi
18675 if test "x$use_system_bzlib" = "xyes"; then
18676 echo " Use bzlib : system (not recommended, slower random access)"
18677 else
18678 echo " Use bzlib : internal (recommended, faster random access)"
18679 fi
18680 if test "x$use_liblzma" = "xyes"; then
18681 echo " Use liblzma : yes"
18682 else
18683 echo " Use liblzma : no"
18684 fi
18685 if test "x$use_libzstd" = "xyes"; then
18686 echo " Use libzstd : yes"
18687 else
18688 echo " Use libzstd : no"
18689 fi
18690 if test "x$dav" = "xyes" -a "x$neon_found" = "xyes"; then
18691 echo " WebDAV support : yes"
18692 else
18693 echo " WebDAV support : no"
18694 fi
18695 if test "x$use_liblzip" = "xyes"; then
18696 echo " Use liblzip : yes"
18697 else
18698 echo " Use liblzip : no"
18699 fi
18700 echo ""
18701 echo " Installation prefix : $prefix"
18702 echo ""
18703