Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libxslt 1.1.45.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
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="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
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 \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='libxslt'
620 PACKAGE_TARNAME='libxslt'
621 PACKAGE_VERSION='1.1.45'
622 PACKAGE_STRING='libxslt 1.1.45'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 ac_unique_file="libxslt/xslt.c"
627 # Factoring default headers for most tests.
628 ac_includes_default="\
629 #include <stddef.h>
630 #ifdef HAVE_STDIO_H
631 # include <stdio.h>
632 #endif
633 #ifdef HAVE_STDLIB_H
634 # include <stdlib.h>
635 #endif
636 #ifdef HAVE_STRING_H
637 # include <string.h>
638 #endif
639 #ifdef HAVE_INTTYPES_H
640 # include <inttypes.h>
641 #endif
642 #ifdef HAVE_STDINT_H
643 # include <stdint.h>
644 #endif
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
647 #endif
648 #ifdef HAVE_SYS_TYPES_H
649 # include <sys/types.h>
650 #endif
651 #ifdef HAVE_SYS_STAT_H
652 # include <sys/stat.h>
653 #endif
654 #ifdef HAVE_UNISTD_H
655 # include <unistd.h>
656 #endif"
657
658 ac_header_c_list=
659 ac_subst_vars='am__EXEEXT_FALSE
660 am__EXEEXT_TRUE
661 LTLIBOBJS
662 LIBOBJS
663 RELDATE
664 EXTRA_LIBS
665 EXSLT_PRIVATE_LIBS
666 EXSLT_INCLUDEDIR
667 EXSLT_LIBDIR
668 AM_CFLAGS
669 LIBEXSLT_CFLAGS
670 LIBXSLT_CFLAGS
671 XSLT_PRIVATE_LIBS
672 XSLT_LIBS
673 XSLT_INCLUDEDIR
674 XSLT_LIBDIR
675 WITH_MODULES_FALSE
676 WITH_MODULES_TRUE
677 WITH_MODULES
678 LIBXSLT_DEFAULT_PLUGINS_PATH
679 LIBXML_LIBS
680 LIBXML_CFLAGS
681 XML_CONFIG
682 LIBXML_REQUIRED_VERSION
683 LIBXML_SRC
684 WITH_PROFILER
685 WITH_DEBUGGER
686 WITH_XSLT_DEBUG
687 CRYPTO_TESTDIR
688 WITH_CRYPTO
689 LIBGCRYPT_LIBS
690 LIBGCRYPT_CFLAGS
691 LIBGCRYPT_CONFIG
692 WITH_PYTHON_FALSE
693 WITH_PYTHON_TRUE
694 PYTHON_LDFLAGS
695 PYTHON_LIBS
696 PYTHON_CFLAGS
697 pkgpyexecdir
698 pyexecdir
699 pkgpythondir
700 pythondir
701 PYTHON_EXEC_PREFIX
702 PYTHON_PREFIX
703 PYTHON_PLATFORM
704 PYTHON_VERSION
705 PYTHON
706 WITH_PERL_FALSE
707 WITH_PERL_TRUE
708 PERL
709 WITH_TRIO
710 THREAD_LIBS
711 WITH_THREADS
712 USE_VERSION_SCRIPT_FALSE
713 USE_VERSION_SCRIPT_TRUE
714 VERSION_SCRIPT_FLAGS
715 LIBM
716 LT_SYS_LIBRARY_PATH
717 OTOOL64
718 OTOOL
719 LIPO
720 NMEDIT
721 DSYMUTIL
722 MANIFEST_TOOL
723 RANLIB
724 ac_ct_AR
725 AR
726 FILECMD
727 LN_S
728 NM
729 ac_ct_DUMPBIN
730 DUMPBIN
731 LD
732 FGREP
733 EGREP
734 GREP
735 SED
736 LIBTOOL
737 OBJDUMP
738 DLLTOOL
739 AS
740 PKG_CONFIG_LIBDIR
741 PKG_CONFIG_PATH
742 PKG_CONFIG
743 XSLTPROC
744 XMLLINT
745 CPP
746 MAINT
747 MAINTAINER_MODE_FALSE
748 MAINTAINER_MODE_TRUE
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 CSCOPE
754 ETAGS
755 CTAGS
756 am__fastdepCC_FALSE
757 am__fastdepCC_TRUE
758 CCDEPMODE
759 am__nodep
760 AMDEPBACKSLASH
761 AMDEP_FALSE
762 AMDEP_TRUE
763 am__include
764 DEPDIR
765 am__untar
766 am__tar
767 AMTAR
768 am__leading_dot
769 SET_MAKE
770 AWK
771 mkdir_p
772 MKDIR_P
773 INSTALL_STRIP_PROGRAM
774 STRIP
775 install_sh
776 MAKEINFO
777 AUTOHEADER
778 AUTOMAKE
779 AUTOCONF
780 ACLOCAL
781 VERSION
782 PACKAGE
783 CYGPATH_W
784 am__isrc
785 INSTALL_DATA
786 INSTALL_SCRIPT
787 INSTALL_PROGRAM
788 LIBEXSLT_VERSION_EXTRA
789 LIBEXSLT_VERSION_NUMBER
790 LIBEXSLT_VERSION_INFO
791 LIBEXSLT_VERSION
792 LIBEXSLT_MICRO_VERSION
793 LIBEXSLT_MINOR_VERSION
794 LIBEXSLT_MAJOR_VERSION
795 LIBXSLT_MAJOR_MINOR_VERSION
796 LIBXSLT_VERSION_EXTRA
797 LIBXSLT_VERSION_NUMBER
798 LIBXSLT_VERSION_INFO
799 LIBXSLT_VERSION
800 LIBXSLT_MICRO_VERSION
801 LIBXSLT_MINOR_VERSION
802 LIBXSLT_MAJOR_VERSION
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
809 CC
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 runstatedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL
857 am__quote'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 enable_dependency_tracking
862 enable_silent_rules
863 enable_maintainer_mode
864 enable_static
865 enable_shared
866 with_pic
867 enable_fast_install
868 with_aix_soname
869 with_gnu_ld
870 with_sysroot
871 enable_libtool_lock
872 with_python
873 with_python_sys_prefix
874 with_python_prefix
875 with_python_exec_prefix
876 with_crypto
877 with_debug
878 with_debugger
879 with_profiler
880 with_libxml_prefix
881 with_libxml_include_prefix
882 with_libxml_libs_prefix
883 with_libxml_src
884 with_plugins
885 '
886 ac_precious_vars='build_alias
887 host_alias
888 target_alias
889 CC
890 CFLAGS
891 LDFLAGS
892 LIBS
893 CPPFLAGS
894 CPP
895 PKG_CONFIG
896 PKG_CONFIG_PATH
897 PKG_CONFIG_LIBDIR
898 LT_SYS_LIBRARY_PATH
899 PYTHON
900 PYTHON_CFLAGS
901 PYTHON_LIBS
902 LIBGCRYPT_CFLAGS
903 LIBGCRYPT_LIBS
904 LIBXML_CFLAGS
905 LIBXML_LIBS'
906
907
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 ac_unrecognized_opts=
912 ac_unrecognized_sep=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
929
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 runstatedir='${localstatedir}/run'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *=) ac_optarg= ;;
971 *) ac_optarg=yes ;;
972 esac
973
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 bindir=$ac_optarg ;;
982
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
997
998 -datadir | --datadir | --datadi | --datad)
999 ac_prev=datadir ;;
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1002
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
1010 -disable-* | --disable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=no ;;
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1035
1036 -enable-* | --enable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -runstatedir | --runstatedir | --runstatedi | --runstated \
1196 | --runstate | --runstat | --runsta | --runst | --runs \
1197 | --run | --ru | --r)
1198 ac_prev=runstatedir ;;
1199 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1200 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1201 | --run=* | --ru=* | --r=*)
1202 runstatedir=$ac_optarg ;;
1203
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1209
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1220
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1225
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1230
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1237
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1242
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1245
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1248
1249 -with-* | --with-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: \`$ac_useropt'"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1264
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: \`$ac_useropt'"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
1280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1298
1299 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information"
1301 ;;
1302
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
1308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1309 esac
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1312
1313 *)
1314 # FIXME: should be removed in autoconf 3.0.
1315 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319 ;;
1320
1321 esac
1322 done
1323
1324 if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error $? "missing argument to $ac_option"
1327 fi
1328
1329 if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
1332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1333 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1335 fi
1336
1337 # Check all directory arguments for consistency.
1338 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir runstatedir
1342 do
1343 eval ac_val=\$$ac_var
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1356 done
1357
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1364
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1371 fi
1372 fi
1373
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377 test "$silent" = yes && exec 6>/dev/null
1378
1379
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 as_fn_error $? "working directory cannot be determined"
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 as_fn_error $? "pwd does not report name of working directory"
1386
1387
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397 printf "%s\n" X"$as_myself" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1418 fi
1419 else
1420 ac_srcdir_defaulted=no
1421 fi
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1425 fi
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429 pwd)`
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 srcdir=.
1433 fi
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1437 case $srcdir in
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 esac
1440 for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 done
1446
1447 #
1448 # Report the --help message.
1449 #
1450 if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1453 cat <<_ACEOF
1454 \`configure' configures libxslt 1.1.45 to adapt to many kinds of systems.
1455
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1457
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE. See below for descriptions of some of the useful variables.
1460
1461 Defaults for the options are specified in brackets.
1462
1463 Configuration:
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking ...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473
1474 Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 [PREFIX]
1479
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1484
1485 For better control, use the options below.
1486
1487 Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/libxslt]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1508 _ACEOF
1509
1510 cat <<\_ACEOF
1511
1512 Program names:
1513 --program-prefix=PREFIX prepend PREFIX to installed program names
1514 --program-suffix=SUFFIX append SUFFIX to installed program names
1515 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1516
1517 System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of libxslt 1.1.45:";;
1526 esac
1527 cat <<\_ACEOF
1528
1529 Optional Features:
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-dependency-tracking
1534 do not reject slow dependency extractors
1535 --disable-dependency-tracking
1536 speeds up one-time build
1537 --enable-silent-rules less verbose build output (undo: "make V=1")
1538 --disable-silent-rules verbose build output (undo: "make V=0")
1539 --disable-maintainer-mode
1540 disable make rules and dependencies not useful (and
1541 sometimes confusing) to the casual installer
1542 --enable-static[=PKGS] build static libraries [default=no]
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1547
1548 Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1551 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1552 both]
1553 --with-aix-soname=aix|svr4|both
1554 shared library versioning (aka "SONAME") variant to
1555 provide on AIX, [default=aix].
1556 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1557 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1558 compiler's sysroot if not specified).
1559 --with-python build Python bindings (on)
1560 --with-python-sys-prefix
1561 use Python's sys.prefix and sys.exec_prefix values
1562 --with-python_prefix override the default PYTHON_PREFIX
1563 --with-python_exec_prefix
1564 override the default PYTHON_EXEC_PREFIX
1565 --with-crypto Add crypto support to exslt (off)
1566 --with-debug Add the debugging code (on)
1567 --with-debugger Add the debugging support (on)
1568 --with-profiler Add the profiling support (on)
1569 --with-libxml-prefix=PFX Specify location of libxml config
1570 --with-libxml-include-prefix=PFX Specify location of libxml headers
1571 --with-libxml-libs-prefix=PFX Specify location of libxml libs
1572 --with-libxml-src=DIR For libxml thats not installed yet (sets all three above)
1573 --with-plugins Add plugin extension support (off)
1574
1575 Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 LIBS libraries to pass to the linker, e.g. -l<library>
1581 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
1583 CPP C preprocessor
1584 PKG_CONFIG path to pkg-config utility
1585 PKG_CONFIG_PATH
1586 directories to add to pkg-config's search path
1587 PKG_CONFIG_LIBDIR
1588 path overriding pkg-config's built-in search path
1589 LT_SYS_LIBRARY_PATH
1590 User-defined run-time library search path.
1591 PYTHON the Python interpreter
1592 PYTHON_CFLAGS
1593 C compiler flags for PYTHON, overriding pkg-config
1594 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
1595 LIBGCRYPT_CFLAGS
1596 C compiler flags for LIBGCRYPT, overriding pkg-config
1597 LIBGCRYPT_LIBS
1598 linker flags for LIBGCRYPT, overriding pkg-config
1599 LIBXML_CFLAGS
1600 C compiler flags for LIBXML, overriding pkg-config
1601 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1602
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1605
1606 Report bugs to the package provider.
1607 _ACEOF
1608 ac_status=$?
1609 fi
1610
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
1617 ac_builddir=.
1618
1619 case "$ac_dir" in
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *)
1622 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629 esac
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1634
1635 case $srcdir in
1636 .) # We are building in place.
1637 ac_srcdir=.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 esac
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for configure.gnu first; this name is used for a wrapper for
1653 # Metaconfig's "Configure" on case-insensitive file systems.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure" --help=recursive
1660 else
1661 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662 fi || ac_status=$?
1663 cd "$ac_pwd" || { ac_status=$?; break; }
1664 done
1665 fi
1666
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1669 cat <<\_ACEOF
1670 libxslt configure 1.1.45
1671 generated by GNU Autoconf 2.71
1672
1673 Copyright (C) 2021 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1676 _ACEOF
1677 exit
1678 fi
1679
1680 ## ------------------------ ##
1681 ## Autoconf initialization. ##
1682 ## ------------------------ ##
1683
1684 # ac_fn_c_try_compile LINENO
1685 # --------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest.beam
1691 if { { ac_try="$ac_compile"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext
1710 then :
1711 ac_retval=0
1712 else $as_nop
1713 printf "%s\n" "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717 fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_compile
1722
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 printf %s "checking for $2... " >&6; }
1732 if eval test \${$3+y}
1733 then :
1734 printf %s "(cached) " >&6
1735 else $as_nop
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 $4
1739 #include <$2>
1740 _ACEOF
1741 if ac_fn_c_try_compile "$LINENO"
1742 then :
1743 eval "$3=yes"
1744 else $as_nop
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 printf "%s\n" "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_c_try_cpp LINENO
1757 # ----------------------
1758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_cpp ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 printf "%s\n" "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1775 fi
1776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } > conftest.i && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 }
1781 then :
1782 ac_retval=0
1783 else $as_nop
1784 printf "%s\n" "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787 ac_retval=1
1788 fi
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_cpp
1793
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_link ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 printf "%s\n" "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 test -x conftest$ac_exeext
1822 }
1823 then :
1824 ac_retval=0
1825 else $as_nop
1826 printf "%s\n" "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1
1830 fi
1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833 # interfere with the next link command; also delete a directory that is
1834 # left behind by Apple's compiler. We do this before executing the actions.
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_link
1840
1841 # ac_fn_c_check_func LINENO FUNC VAR
1842 # ----------------------------------
1843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1844 ac_fn_c_check_func ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 printf %s "checking for $2... " >&6; }
1849 if eval test \${$3+y}
1850 then :
1851 printf %s "(cached) " >&6
1852 else $as_nop
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1857 #define $2 innocuous_$2
1858
1859 /* System header to define __stub macros and hopefully few prototypes,
1860 which can conflict with char $2 (); below. */
1861
1862 #include <limits.h>
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main (void)
1881 {
1882 return $2 ();
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"
1888 then :
1889 eval "$3=yes"
1890 else $as_nop
1891 eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1894 conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 printf "%s\n" "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902 ac_configure_args_raw=
1903 for ac_arg
1904 do
1905 case $ac_arg in
1906 *\'*)
1907 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 esac
1909 as_fn_append ac_configure_args_raw " '$ac_arg'"
1910 done
1911
1912 case $ac_configure_args_raw in
1913 *$as_nl*)
1914 ac_safe_unquote= ;;
1915 *)
1916 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1917 ac_unsafe_a="$ac_unsafe_z#~"
1918 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1919 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1920 esac
1921
1922 cat >config.log <<_ACEOF
1923 This file contains any messages produced by compilers while
1924 running configure, to aid debugging if configure makes a mistake.
1925
1926 It was created by libxslt $as_me 1.1.45, which was
1927 generated by GNU Autoconf 2.71. Invocation command line was
1928
1929 $ $0$ac_configure_args_raw
1930
1931 _ACEOF
1932 exec 5>>config.log
1933 {
1934 cat <<_ASUNAME
1935 ## --------- ##
1936 ## Platform. ##
1937 ## --------- ##
1938
1939 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1940 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1941 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1942 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1943 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1944
1945 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1946 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1947
1948 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1949 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1950 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1951 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1952 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1953 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1954 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1955
1956 _ASUNAME
1957
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961 IFS=$as_save_IFS
1962 case $as_dir in #(((
1963 '') as_dir=./ ;;
1964 */) ;;
1965 *) as_dir=$as_dir/ ;;
1966 esac
1967 printf "%s\n" "PATH: $as_dir"
1968 done
1969 IFS=$as_save_IFS
1970
1971 } >&5
1972
1973 cat >&5 <<_ACEOF
1974
1975
1976 ## ----------- ##
1977 ## Core tests. ##
1978 ## ----------- ##
1979
1980 _ACEOF
1981
1982
1983 # Keep a trace of the command line.
1984 # Strip out --no-create and --no-recursion so they do not pile up.
1985 # Strip out --silent because we don't want to record it for future runs.
1986 # Also quote any args containing shell meta-characters.
1987 # Make two passes to allow for proper duplicate-argument suppression.
1988 ac_configure_args=
1989 ac_configure_args0=
1990 ac_configure_args1=
1991 ac_must_keep_next=false
1992 for ac_pass in 1 2
1993 do
1994 for ac_arg
1995 do
1996 case $ac_arg in
1997 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1999 | -silent | --silent | --silen | --sile | --sil)
2000 continue ;;
2001 *\'*)
2002 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2003 esac
2004 case $ac_pass in
2005 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2006 2)
2007 as_fn_append ac_configure_args1 " '$ac_arg'"
2008 if test $ac_must_keep_next = true; then
2009 ac_must_keep_next=false # Got value, back to normal.
2010 else
2011 case $ac_arg in
2012 *=* | --config-cache | -C | -disable-* | --disable-* \
2013 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2014 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2015 | -with-* | --with-* | -without-* | --without-* | --x)
2016 case "$ac_configure_args0 " in
2017 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2018 esac
2019 ;;
2020 -* ) ac_must_keep_next=true ;;
2021 esac
2022 fi
2023 as_fn_append ac_configure_args " '$ac_arg'"
2024 ;;
2025 esac
2026 done
2027 done
2028 { ac_configure_args0=; unset ac_configure_args0;}
2029 { ac_configure_args1=; unset ac_configure_args1;}
2030
2031 # When interrupted or exit'd, cleanup temporary files, and complete
2032 # config.log. We remove comments because anyway the quotes in there
2033 # would cause problems or look ugly.
2034 # WARNING: Use '\'' to represent an apostrophe within the trap.
2035 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2036 trap 'exit_status=$?
2037 # Sanitize IFS.
2038 IFS=" "" $as_nl"
2039 # Save into config.log some information that might help in debugging.
2040 {
2041 echo
2042
2043 printf "%s\n" "## ---------------- ##
2044 ## Cache variables. ##
2045 ## ---------------- ##"
2046 echo
2047 # The following way of writing the cache mishandles newlines in values,
2048 (
2049 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2050 eval ac_val=\$$ac_var
2051 case $ac_val in #(
2052 *${as_nl}*)
2053 case $ac_var in #(
2054 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2055 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2056 esac
2057 case $ac_var in #(
2058 _ | IFS | as_nl) ;; #(
2059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2060 *) { eval $ac_var=; unset $ac_var;} ;;
2061 esac ;;
2062 esac
2063 done
2064 (set) 2>&1 |
2065 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2066 *${as_nl}ac_space=\ *)
2067 sed -n \
2068 "s/'\''/'\''\\\\'\'''\''/g;
2069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2070 ;; #(
2071 *)
2072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073 ;;
2074 esac |
2075 sort
2076 )
2077 echo
2078
2079 printf "%s\n" "## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##"
2082 echo
2083 for ac_var in $ac_subst_vars
2084 do
2085 eval ac_val=\$$ac_var
2086 case $ac_val in
2087 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088 esac
2089 printf "%s\n" "$ac_var='\''$ac_val'\''"
2090 done | sort
2091 echo
2092
2093 if test -n "$ac_subst_files"; then
2094 printf "%s\n" "## ------------------- ##
2095 ## File substitutions. ##
2096 ## ------------------- ##"
2097 echo
2098 for ac_var in $ac_subst_files
2099 do
2100 eval ac_val=\$$ac_var
2101 case $ac_val in
2102 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103 esac
2104 printf "%s\n" "$ac_var='\''$ac_val'\''"
2105 done | sort
2106 echo
2107 fi
2108
2109 if test -s confdefs.h; then
2110 printf "%s\n" "## ----------- ##
2111 ## confdefs.h. ##
2112 ## ----------- ##"
2113 echo
2114 cat confdefs.h
2115 echo
2116 fi
2117 test "$ac_signal" != 0 &&
2118 printf "%s\n" "$as_me: caught signal $ac_signal"
2119 printf "%s\n" "$as_me: exit $exit_status"
2120 } >&5
2121 rm -f core *.core core.conftest.* &&
2122 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2123 exit $exit_status
2124 ' 0
2125 for ac_signal in 1 2 13 15; do
2126 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2127 done
2128 ac_signal=0
2129
2130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2131 rm -f -r conftest* confdefs.h
2132
2133 printf "%s\n" "/* confdefs.h */" > confdefs.h
2134
2135 # Predefined preprocessor variables.
2136
2137 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2138
2139 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2140
2141 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2142
2143 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2144
2145 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2146
2147 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2148
2149
2150 # Let the site file select an alternate cache file if it wants to.
2151 # Prefer an explicitly selected file to automatically selected ones.
2152 if test -n "$CONFIG_SITE"; then
2153 ac_site_files="$CONFIG_SITE"
2154 elif test "x$prefix" != xNONE; then
2155 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2156 else
2157 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2158 fi
2159
2160 for ac_site_file in $ac_site_files
2161 do
2162 case $ac_site_file in #(
2163 */*) :
2164 ;; #(
2165 *) :
2166 ac_site_file=./$ac_site_file ;;
2167 esac
2168 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2170 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2171 sed 's/^/| /' "$ac_site_file" >&5
2172 . "$ac_site_file" \
2173 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2175 as_fn_error $? "failed to load site script $ac_site_file
2176 See \`config.log' for more details" "$LINENO" 5; }
2177 fi
2178 done
2179
2180 if test -r "$cache_file"; then
2181 # Some versions of bash will fail to source /dev/null (special files
2182 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2183 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2185 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2186 case $cache_file in
2187 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2188 *) . "./$cache_file";;
2189 esac
2190 fi
2191 else
2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2193 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2194 >$cache_file
2195 fi
2196
2197 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2198 # Test code for whether the C compiler supports C89 (global declarations)
2199 ac_c_conftest_c89_globals='
2200 /* Does the compiler advertise C89 conformance?
2201 Do not test the value of __STDC__, because some compilers set it to 0
2202 while being otherwise adequately conformant. */
2203 #if !defined __STDC__
2204 # error "Compiler does not advertise C89 conformance"
2205 #endif
2206
2207 #include <stddef.h>
2208 #include <stdarg.h>
2209 struct stat;
2210 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2211 struct buf { int x; };
2212 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2213 static char *e (p, i)
2214 char **p;
2215 int i;
2216 {
2217 return p[i];
2218 }
2219 static char *f (char * (*g) (char **, int), char **p, ...)
2220 {
2221 char *s;
2222 va_list v;
2223 va_start (v,p);
2224 s = g (p, va_arg (v,int));
2225 va_end (v);
2226 return s;
2227 }
2228
2229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2230 function prototypes and stuff, but not \xHH hex character constants.
2231 These do not provoke an error unfortunately, instead are silently treated
2232 as an "x". The following induces an error, until -std is added to get
2233 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2234 array size at least. It is necessary to write \x00 == 0 to get something
2235 that is true only with -std. */
2236 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2237
2238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2239 inside strings and character constants. */
2240 #define FOO(x) '\''x'\''
2241 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2242
2243 int test (int i, double x);
2244 struct s1 {int (*f) (int a);};
2245 struct s2 {int (*f) (double a);};
2246 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2247 int, int);'
2248
2249 # Test code for whether the C compiler supports C89 (body of main).
2250 ac_c_conftest_c89_main='
2251 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2252 '
2253
2254 # Test code for whether the C compiler supports C99 (global declarations)
2255 ac_c_conftest_c99_globals='
2256 // Does the compiler advertise C99 conformance?
2257 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2258 # error "Compiler does not advertise C99 conformance"
2259 #endif
2260
2261 #include <stdbool.h>
2262 extern int puts (const char *);
2263 extern int printf (const char *, ...);
2264 extern int dprintf (int, const char *, ...);
2265 extern void *malloc (size_t);
2266
2267 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2268 // dprintf is used instead of fprintf to avoid needing to declare
2269 // FILE and stderr.
2270 #define debug(...) dprintf (2, __VA_ARGS__)
2271 #define showlist(...) puts (#__VA_ARGS__)
2272 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2273 static void
2274 test_varargs_macros (void)
2275 {
2276 int x = 1234;
2277 int y = 5678;
2278 debug ("Flag");
2279 debug ("X = %d\n", x);
2280 showlist (The first, second, and third items.);
2281 report (x>y, "x is %d but y is %d", x, y);
2282 }
2283
2284 // Check long long types.
2285 #define BIG64 18446744073709551615ull
2286 #define BIG32 4294967295ul
2287 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2288 #if !BIG_OK
2289 #error "your preprocessor is broken"
2290 #endif
2291 #if BIG_OK
2292 #else
2293 #error "your preprocessor is broken"
2294 #endif
2295 static long long int bignum = -9223372036854775807LL;
2296 static unsigned long long int ubignum = BIG64;
2297
2298 struct incomplete_array
2299 {
2300 int datasize;
2301 double data[];
2302 };
2303
2304 struct named_init {
2305 int number;
2306 const wchar_t *name;
2307 double average;
2308 };
2309
2310 typedef const char *ccp;
2311
2312 static inline int
2313 test_restrict (ccp restrict text)
2314 {
2315 // See if C++-style comments work.
2316 // Iterate through items via the restricted pointer.
2317 // Also check for declarations in for loops.
2318 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2319 continue;
2320 return 0;
2321 }
2322
2323 // Check varargs and va_copy.
2324 static bool
2325 test_varargs (const char *format, ...)
2326 {
2327 va_list args;
2328 va_start (args, format);
2329 va_list args_copy;
2330 va_copy (args_copy, args);
2331
2332 const char *str = "";
2333 int number = 0;
2334 float fnumber = 0;
2335
2336 while (*format)
2337 {
2338 switch (*format++)
2339 {
2340 case '\''s'\'': // string
2341 str = va_arg (args_copy, const char *);
2342 break;
2343 case '\''d'\'': // int
2344 number = va_arg (args_copy, int);
2345 break;
2346 case '\''f'\'': // float
2347 fnumber = va_arg (args_copy, double);
2348 break;
2349 default:
2350 break;
2351 }
2352 }
2353 va_end (args_copy);
2354 va_end (args);
2355
2356 return *str && number && fnumber;
2357 }
2358 '
2359
2360 # Test code for whether the C compiler supports C99 (body of main).
2361 ac_c_conftest_c99_main='
2362 // Check bool.
2363 _Bool success = false;
2364 success |= (argc != 0);
2365
2366 // Check restrict.
2367 if (test_restrict ("String literal") == 0)
2368 success = true;
2369 char *restrict newvar = "Another string";
2370
2371 // Check varargs.
2372 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2373 test_varargs_macros ();
2374
2375 // Check flexible array members.
2376 struct incomplete_array *ia =
2377 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2378 ia->datasize = 10;
2379 for (int i = 0; i < ia->datasize; ++i)
2380 ia->data[i] = i * 1.234;
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 " stdlib.h stdlib_h HAVE_STDLIB_H"
2507 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2508 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2509 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2510 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2511 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2512 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2513 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2514 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2515 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2516
2517 # Auxiliary files required by this configure script.
2518 ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub"
2519
2520 # Locations in which to look for auxiliary files.
2521 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2522
2523 # Search for a directory containing all of the required auxiliary files,
2524 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2525 # If we don't find one directory that contains all the files we need,
2526 # we report the set of missing files from the *first* directory in
2527 # $ac_aux_dir_candidates and give up.
2528 ac_missing_aux_files=""
2529 ac_first_candidate=:
2530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 as_found=false
2533 for as_dir in $ac_aux_dir_candidates
2534 do
2535 IFS=$as_save_IFS
2536 case $as_dir in #(((
2537 '') as_dir=./ ;;
2538 */) ;;
2539 *) as_dir=$as_dir/ ;;
2540 esac
2541 as_found=:
2542
2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2544 ac_aux_dir_found=yes
2545 ac_install_sh=
2546 for ac_aux in $ac_aux_files
2547 do
2548 # As a special case, if "install-sh" is required, that requirement
2549 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2550 # and $ac_install_sh is set appropriately for whichever one is found.
2551 if test x"$ac_aux" = x"install-sh"
2552 then
2553 if test -f "${as_dir}install-sh"; then
2554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2555 ac_install_sh="${as_dir}install-sh -c"
2556 elif test -f "${as_dir}install.sh"; then
2557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2558 ac_install_sh="${as_dir}install.sh -c"
2559 elif test -f "${as_dir}shtool"; then
2560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2561 ac_install_sh="${as_dir}shtool install -c"
2562 else
2563 ac_aux_dir_found=no
2564 if $ac_first_candidate; then
2565 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2566 else
2567 break
2568 fi
2569 fi
2570 else
2571 if test -f "${as_dir}${ac_aux}"; then
2572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2573 else
2574 ac_aux_dir_found=no
2575 if $ac_first_candidate; then
2576 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2577 else
2578 break
2579 fi
2580 fi
2581 fi
2582 done
2583 if test "$ac_aux_dir_found" = yes; then
2584 ac_aux_dir="$as_dir"
2585 break
2586 fi
2587 ac_first_candidate=false
2588
2589 as_found=false
2590 done
2591 IFS=$as_save_IFS
2592 if $as_found
2593 then :
2594
2595 else $as_nop
2596 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
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 ac_config_headers="$ac_config_headers config.h"
2685
2686
2687
2688
2689
2690 # Make sure we can run config.sub.
2691 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2692 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2693
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2695 printf %s "checking build system type... " >&6; }
2696 if test ${ac_cv_build+y}
2697 then :
2698 printf %s "(cached) " >&6
2699 else $as_nop
2700 ac_build_alias=$build_alias
2701 test "x$ac_build_alias" = x &&
2702 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2703 test "x$ac_build_alias" = x &&
2704 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2705 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2706 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2707
2708 fi
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2710 printf "%s\n" "$ac_cv_build" >&6; }
2711 case $ac_cv_build in
2712 *-*-*) ;;
2713 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2714 esac
2715 build=$ac_cv_build
2716 ac_save_IFS=$IFS; IFS='-'
2717 set x $ac_cv_build
2718 shift
2719 build_cpu=$1
2720 build_vendor=$2
2721 shift; shift
2722 # Remember, the first character of IFS is used to create $*,
2723 # except with old shells:
2724 build_os=$*
2725 IFS=$ac_save_IFS
2726 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2727
2728
2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2730 printf %s "checking host system type... " >&6; }
2731 if test ${ac_cv_host+y}
2732 then :
2733 printf %s "(cached) " >&6
2734 else $as_nop
2735 if test "x$host_alias" = x; then
2736 ac_cv_host=$ac_cv_build
2737 else
2738 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2739 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2740 fi
2741
2742 fi
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2744 printf "%s\n" "$ac_cv_host" >&6; }
2745 case $ac_cv_host in
2746 *-*-*) ;;
2747 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2748 esac
2749 host=$ac_cv_host
2750 ac_save_IFS=$IFS; IFS='-'
2751 set x $ac_cv_host
2752 shift
2753 host_cpu=$1
2754 host_vendor=$2
2755 shift; shift
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2758 host_os=$*
2759 IFS=$ac_save_IFS
2760 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773 # Expand $ac_aux_dir to an absolute path.
2774 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2775
2776 ac_ext=c
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 printf %s "checking for $ac_word... " >&6; }
2786 if test ${ac_cv_prog_CC+y}
2787 then :
2788 printf %s "(cached) " >&6
2789 else $as_nop
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 case $as_dir in #(((
2798 '') as_dir=./ ;;
2799 */) ;;
2800 *) as_dir=$as_dir/ ;;
2801 esac
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 printf "%s\n" "$CC" >&6; }
2818 else
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 printf "%s\n" "no" >&6; }
2821 fi
2822
2823
2824 fi
2825 if test -z "$ac_cv_prog_CC"; then
2826 ac_ct_CC=$CC
2827 # Extract the first word of "gcc", so it can be a program name with args.
2828 set dummy gcc; ac_word=$2
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 printf %s "checking for $ac_word... " >&6; }
2831 if test ${ac_cv_prog_ac_ct_CC+y}
2832 then :
2833 printf %s "(cached) " >&6
2834 else $as_nop
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 case $as_dir in #(((
2843 '') as_dir=./ ;;
2844 */) ;;
2845 *) as_dir=$as_dir/ ;;
2846 esac
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2849 ac_cv_prog_ac_ct_CC="gcc"
2850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2862 printf "%s\n" "$ac_ct_CC" >&6; }
2863 else
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 printf "%s\n" "no" >&6; }
2866 fi
2867
2868 if test "x$ac_ct_CC" = x; then
2869 CC=""
2870 else
2871 case $cross_compiling:$ac_tool_warned in
2872 yes:)
2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2875 ac_tool_warned=yes ;;
2876 esac
2877 CC=$ac_ct_CC
2878 fi
2879 else
2880 CC="$ac_cv_prog_CC"
2881 fi
2882
2883 if test -z "$CC"; then
2884 if test -n "$ac_tool_prefix"; then
2885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2886 set dummy ${ac_tool_prefix}cc; ac_word=$2
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 printf %s "checking for $ac_word... " >&6; }
2889 if test ${ac_cv_prog_CC+y}
2890 then :
2891 printf %s "(cached) " >&6
2892 else $as_nop
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 case $as_dir in #(((
2901 '') as_dir=./ ;;
2902 */) ;;
2903 *) as_dir=$as_dir/ ;;
2904 esac
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_CC="${ac_tool_prefix}cc"
2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 printf "%s\n" "$CC" >&6; }
2921 else
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 printf "%s\n" "no" >&6; }
2924 fi
2925
2926
2927 fi
2928 fi
2929 if test -z "$CC"; then
2930 # Extract the first word of "cc", so it can be a program name with args.
2931 set dummy cc; ac_word=$2
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 printf %s "checking for $ac_word... " >&6; }
2934 if test ${ac_cv_prog_CC+y}
2935 then :
2936 printf %s "(cached) " >&6
2937 else $as_nop
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 ac_prog_rejected=no
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 case $as_dir in #(((
2947 '') as_dir=./ ;;
2948 */) ;;
2949 *) as_dir=$as_dir/ ;;
2950 esac
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2953 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2954 ac_prog_rejected=yes
2955 continue
2956 fi
2957 ac_cv_prog_CC="cc"
2958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2959 break 2
2960 fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 if test $ac_prog_rejected = yes; then
2966 # We found a bogon in the path, so make sure we never use it.
2967 set dummy $ac_cv_prog_CC
2968 shift
2969 if test $# != 0; then
2970 # We chose a different compiler from the bogus one.
2971 # However, it has the same basename, so the bogon will be chosen
2972 # first if we set CC to just the basename; use the full file name.
2973 shift
2974 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2975 fi
2976 fi
2977 fi
2978 fi
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982 printf "%s\n" "$CC" >&6; }
2983 else
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 printf "%s\n" "no" >&6; }
2986 fi
2987
2988
2989 fi
2990 if test -z "$CC"; then
2991 if test -n "$ac_tool_prefix"; then
2992 for ac_prog in cl.exe
2993 do
2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 printf %s "checking for $ac_word... " >&6; }
2998 if test ${ac_cv_prog_CC+y}
2999 then :
3000 printf %s "(cached) " >&6
3001 else $as_nop
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 case $as_dir in #(((
3010 '') as_dir=./ ;;
3011 */) ;;
3012 *) as_dir=$as_dir/ ;;
3013 esac
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3018 break 2
3019 fi
3020 done
3021 done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 CC=$ac_cv_prog_CC
3027 if test -n "$CC"; then
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 printf "%s\n" "$CC" >&6; }
3030 else
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 printf "%s\n" "no" >&6; }
3033 fi
3034
3035
3036 test -n "$CC" && break
3037 done
3038 fi
3039 if test -z "$CC"; then
3040 ac_ct_CC=$CC
3041 for ac_prog in cl.exe
3042 do
3043 # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 printf %s "checking for $ac_word... " >&6; }
3047 if test ${ac_cv_prog_ac_ct_CC+y}
3048 then :
3049 printf %s "(cached) " >&6
3050 else $as_nop
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 case $as_dir in #(((
3059 '') as_dir=./ ;;
3060 */) ;;
3061 *) as_dir=$as_dir/ ;;
3062 esac
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_ac_ct_CC="$ac_prog"
3066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3076 if test -n "$ac_ct_CC"; then
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3078 printf "%s\n" "$ac_ct_CC" >&6; }
3079 else
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 printf "%s\n" "no" >&6; }
3082 fi
3083
3084
3085 test -n "$ac_ct_CC" && break
3086 done
3087
3088 if test "x$ac_ct_CC" = x; then
3089 CC=""
3090 else
3091 case $cross_compiling:$ac_tool_warned in
3092 yes:)
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3094 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3095 ac_tool_warned=yes ;;
3096 esac
3097 CC=$ac_ct_CC
3098 fi
3099 fi
3100
3101 fi
3102 if test -z "$CC"; then
3103 if test -n "$ac_tool_prefix"; then
3104 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3105 set dummy ${ac_tool_prefix}clang; ac_word=$2
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 printf %s "checking for $ac_word... " >&6; }
3108 if test ${ac_cv_prog_CC+y}
3109 then :
3110 printf %s "(cached) " >&6
3111 else $as_nop
3112 if test -n "$CC"; then
3113 ac_cv_prog_CC="$CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 case $as_dir in #(((
3120 '') as_dir=./ ;;
3121 */) ;;
3122 *) as_dir=$as_dir/ ;;
3123 esac
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_CC="${ac_tool_prefix}clang"
3127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 CC=$ac_cv_prog_CC
3137 if test -n "$CC"; then
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 printf "%s\n" "$CC" >&6; }
3140 else
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 printf "%s\n" "no" >&6; }
3143 fi
3144
3145
3146 fi
3147 if test -z "$ac_cv_prog_CC"; then
3148 ac_ct_CC=$CC
3149 # Extract the first word of "clang", so it can be a program name with args.
3150 set dummy clang; ac_word=$2
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 printf %s "checking for $ac_word... " >&6; }
3153 if test ${ac_cv_prog_ac_ct_CC+y}
3154 then :
3155 printf %s "(cached) " >&6
3156 else $as_nop
3157 if test -n "$ac_ct_CC"; then
3158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163 IFS=$as_save_IFS
3164 case $as_dir in #(((
3165 '') as_dir=./ ;;
3166 */) ;;
3167 *) as_dir=$as_dir/ ;;
3168 esac
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_CC="clang"
3172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182 if test -n "$ac_ct_CC"; then
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3184 printf "%s\n" "$ac_ct_CC" >&6; }
3185 else
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 printf "%s\n" "no" >&6; }
3188 fi
3189
3190 if test "x$ac_ct_CC" = x; then
3191 CC=""
3192 else
3193 case $cross_compiling:$ac_tool_warned in
3194 yes:)
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3198 esac
3199 CC=$ac_ct_CC
3200 fi
3201 else
3202 CC="$ac_cv_prog_CC"
3203 fi
3204
3205 fi
3206
3207
3208 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "no acceptable C compiler found in \$PATH
3211 See \`config.log' for more details" "$LINENO" 5; }
3212
3213 # Provide some information about the compiler.
3214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3215 set X $ac_compile
3216 ac_compiler=$2
3217 for ac_option in --version -v -V -qversion -version; do
3218 { { ac_try="$ac_compiler $ac_option >&5"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 printf "%s\n" "$ac_try_echo"; } >&5
3225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3226 ac_status=$?
3227 if test -s conftest.err; then
3228 sed '10a\
3229 ... rest of stderr output deleted ...
3230 10q' conftest.err >conftest.er1
3231 cat conftest.er1 >&5
3232 fi
3233 rm -f conftest.er1 conftest.err
3234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3236 done
3237
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3240
3241 int
3242 main (void)
3243 {
3244
3245 ;
3246 return 0;
3247 }
3248 _ACEOF
3249 ac_clean_files_save=$ac_clean_files
3250 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3251 # Try to create an executable without -o first, disregard a.out.
3252 # It will help us diagnose broken compilers, and finding out an intuition
3253 # of exeext.
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255 printf %s "checking whether the C compiler works... " >&6; }
3256 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257
3258 # The possible output files:
3259 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260
3261 ac_rmfiles=
3262 for ac_file in $ac_files
3263 do
3264 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267 esac
3268 done
3269 rm -f $ac_rmfiles
3270
3271 if { { ac_try="$ac_link_default"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 printf "%s\n" "$ac_try_echo"; } >&5
3278 (eval "$ac_link_default") 2>&5
3279 ac_status=$?
3280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3282 then :
3283 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3284 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3285 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3286 # so that the user can short-circuit this test for compilers unknown to
3287 # Autoconf.
3288 for ac_file in $ac_files ''
3289 do
3290 test -f "$ac_file" || continue
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3293 ;;
3294 [ab].out )
3295 # We found the default executable, but exeext='' is most
3296 # certainly right.
3297 break;;
3298 *.* )
3299 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3300 then :; else
3301 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302 fi
3303 # We set ac_cv_exeext here because the later test for it is not
3304 # safe: cross compilers may not add the suffix if given an `-o'
3305 # argument, so we may need to know it at that point already.
3306 # Even if this section looks crufty: it has the advantage of
3307 # actually working.
3308 break;;
3309 * )
3310 break;;
3311 esac
3312 done
3313 test "$ac_cv_exeext" = no && ac_cv_exeext=
3314
3315 else $as_nop
3316 ac_file=''
3317 fi
3318 if test -z "$ac_file"
3319 then :
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 printf "%s\n" "no" >&6; }
3322 printf "%s\n" "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error 77 "C compiler cannot create executables
3328 See \`config.log' for more details" "$LINENO" 5; }
3329 else $as_nop
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 printf "%s\n" "yes" >&6; }
3332 fi
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3334 printf %s "checking for C compiler default output file name... " >&6; }
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3336 printf "%s\n" "$ac_file" >&6; }
3337 ac_exeext=$ac_cv_exeext
3338
3339 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3340 ac_clean_files=$ac_clean_files_save
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3342 printf %s "checking for suffix of executables... " >&6; }
3343 if { { ac_try="$ac_link"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 printf "%s\n" "$ac_try_echo"; } >&5
3350 (eval "$ac_link") 2>&5
3351 ac_status=$?
3352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }
3354 then :
3355 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3356 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3357 # work properly (i.e., refer to `conftest.exe'), while it won't with
3358 # `rm'.
3359 for ac_file in conftest.exe conftest conftest.*; do
3360 test -f "$ac_file" || continue
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3364 break;;
3365 * ) break;;
3366 esac
3367 done
3368 else $as_nop
3369 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3372 See \`config.log' for more details" "$LINENO" 5; }
3373 fi
3374 rm -f conftest conftest$ac_cv_exeext
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3376 printf "%s\n" "$ac_cv_exeext" >&6; }
3377
3378 rm -f conftest.$ac_ext
3379 EXEEXT=$ac_cv_exeext
3380 ac_exeext=$EXEEXT
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383 #include <stdio.h>
3384 int
3385 main (void)
3386 {
3387 FILE *f = fopen ("conftest.out", "w");
3388 return ferror (f) || fclose (f) != 0;
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 ac_clean_files="$ac_clean_files conftest.out"
3395 # Check that the compiler produces executables we can run. If not, either
3396 # the compiler is broken, or we cross compile.
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3398 printf %s "checking whether we are cross compiling... " >&6; }
3399 if test "$cross_compiling" != yes; then
3400 { { ac_try="$ac_link"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 printf "%s\n" "$ac_try_echo"; } >&5
3407 (eval "$ac_link") 2>&5
3408 ac_status=$?
3409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }
3411 if { ac_try='./conftest$ac_cv_exeext'
3412 { { case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 printf "%s\n" "$ac_try_echo"; } >&5
3418 (eval "$ac_try") 2>&5
3419 ac_status=$?
3420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }; }; then
3422 cross_compiling=no
3423 else
3424 if test "$cross_compiling" = maybe; then
3425 cross_compiling=yes
3426 else
3427 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3429 as_fn_error 77 "cannot run C compiled programs.
3430 If you meant to cross compile, use \`--host'.
3431 See \`config.log' for more details" "$LINENO" 5; }
3432 fi
3433 fi
3434 fi
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3436 printf "%s\n" "$cross_compiling" >&6; }
3437
3438 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3439 ac_clean_files=$ac_clean_files_save
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3441 printf %s "checking for suffix of object files... " >&6; }
3442 if test ${ac_cv_objext+y}
3443 then :
3444 printf %s "(cached) " >&6
3445 else $as_nop
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main (void)
3451 {
3452
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest.o conftest.obj
3458 if { { ac_try="$ac_compile"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 printf "%s\n" "$ac_try_echo"; } >&5
3465 (eval "$ac_compile") 2>&5
3466 ac_status=$?
3467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3469 then :
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477 done
3478 else $as_nop
3479 printf "%s\n" "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details" "$LINENO" 5; }
3486 fi
3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3488 fi
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3490 printf "%s\n" "$ac_cv_objext" >&6; }
3491 OBJEXT=$ac_cv_objext
3492 ac_objext=$OBJEXT
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3494 printf %s "checking whether the compiler supports GNU C... " >&6; }
3495 if test ${ac_cv_c_compiler_gnu+y}
3496 then :
3497 printf %s "(cached) " >&6
3498 else $as_nop
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501
3502 int
3503 main (void)
3504 {
3505 #ifndef __GNUC__
3506 choke me
3507 #endif
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"
3514 then :
3515 ac_compiler_gnu=yes
3516 else $as_nop
3517 ac_compiler_gnu=no
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3521
3522 fi
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3524 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526
3527 if test $ac_compiler_gnu = yes; then
3528 GCC=yes
3529 else
3530 GCC=
3531 fi
3532 ac_test_CFLAGS=${CFLAGS+y}
3533 ac_save_CFLAGS=$CFLAGS
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3535 printf %s "checking whether $CC accepts -g... " >&6; }
3536 if test ${ac_cv_prog_cc_g+y}
3537 then :
3538 printf %s "(cached) " >&6
3539 else $as_nop
3540 ac_save_c_werror_flag=$ac_c_werror_flag
3541 ac_c_werror_flag=yes
3542 ac_cv_prog_cc_g=no
3543 CFLAGS="-g"
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main (void)
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"
3556 then :
3557 ac_cv_prog_cc_g=yes
3558 else $as_nop
3559 CFLAGS=""
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main (void)
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"
3572 then :
3573
3574 else $as_nop
3575 ac_c_werror_flag=$ac_save_c_werror_flag
3576 CFLAGS="-g"
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579
3580 int
3581 main (void)
3582 {
3583
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 if ac_fn_c_try_compile "$LINENO"
3589 then :
3590 ac_cv_prog_cc_g=yes
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3597 ac_c_werror_flag=$ac_save_c_werror_flag
3598 fi
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3600 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3601 if test $ac_test_CFLAGS; then
3602 CFLAGS=$ac_save_CFLAGS
3603 elif test $ac_cv_prog_cc_g = yes; then
3604 if test "$GCC" = yes; then
3605 CFLAGS="-g -O2"
3606 else
3607 CFLAGS="-g"
3608 fi
3609 else
3610 if test "$GCC" = yes; then
3611 CFLAGS="-O2"
3612 else
3613 CFLAGS=
3614 fi
3615 fi
3616 ac_prog_cc_stdc=no
3617 if test x$ac_prog_cc_stdc = xno
3618 then :
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3620 printf %s "checking for $CC option to enable C11 features... " >&6; }
3621 if test ${ac_cv_prog_cc_c11+y}
3622 then :
3623 printf %s "(cached) " >&6
3624 else $as_nop
3625 ac_cv_prog_cc_c11=no
3626 ac_save_CC=$CC
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 $ac_c_conftest_c11_program
3630 _ACEOF
3631 for ac_arg in '' -std=gnu11
3632 do
3633 CC="$ac_save_CC $ac_arg"
3634 if ac_fn_c_try_compile "$LINENO"
3635 then :
3636 ac_cv_prog_cc_c11=$ac_arg
3637 fi
3638 rm -f core conftest.err conftest.$ac_objext conftest.beam
3639 test "x$ac_cv_prog_cc_c11" != "xno" && break
3640 done
3641 rm -f conftest.$ac_ext
3642 CC=$ac_save_CC
3643 fi
3644
3645 if test "x$ac_cv_prog_cc_c11" = xno
3646 then :
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3648 printf "%s\n" "unsupported" >&6; }
3649 else $as_nop
3650 if test "x$ac_cv_prog_cc_c11" = x
3651 then :
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3653 printf "%s\n" "none needed" >&6; }
3654 else $as_nop
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3656 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3657 CC="$CC $ac_cv_prog_cc_c11"
3658 fi
3659 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3660 ac_prog_cc_stdc=c11
3661 fi
3662 fi
3663 if test x$ac_prog_cc_stdc = xno
3664 then :
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3666 printf %s "checking for $CC option to enable C99 features... " >&6; }
3667 if test ${ac_cv_prog_cc_c99+y}
3668 then :
3669 printf %s "(cached) " >&6
3670 else $as_nop
3671 ac_cv_prog_cc_c99=no
3672 ac_save_CC=$CC
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675 $ac_c_conftest_c99_program
3676 _ACEOF
3677 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3678 do
3679 CC="$ac_save_CC $ac_arg"
3680 if ac_fn_c_try_compile "$LINENO"
3681 then :
3682 ac_cv_prog_cc_c99=$ac_arg
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext conftest.beam
3685 test "x$ac_cv_prog_cc_c99" != "xno" && break
3686 done
3687 rm -f conftest.$ac_ext
3688 CC=$ac_save_CC
3689 fi
3690
3691 if test "x$ac_cv_prog_cc_c99" = xno
3692 then :
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 printf "%s\n" "unsupported" >&6; }
3695 else $as_nop
3696 if test "x$ac_cv_prog_cc_c99" = x
3697 then :
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3699 printf "%s\n" "none needed" >&6; }
3700 else $as_nop
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3702 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3703 CC="$CC $ac_cv_prog_cc_c99"
3704 fi
3705 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3706 ac_prog_cc_stdc=c99
3707 fi
3708 fi
3709 if test x$ac_prog_cc_stdc = xno
3710 then :
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3712 printf %s "checking for $CC option to enable C89 features... " >&6; }
3713 if test ${ac_cv_prog_cc_c89+y}
3714 then :
3715 printf %s "(cached) " >&6
3716 else $as_nop
3717 ac_cv_prog_cc_c89=no
3718 ac_save_CC=$CC
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721 $ac_c_conftest_c89_program
3722 _ACEOF
3723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3724 do
3725 CC="$ac_save_CC $ac_arg"
3726 if ac_fn_c_try_compile "$LINENO"
3727 then :
3728 ac_cv_prog_cc_c89=$ac_arg
3729 fi
3730 rm -f core conftest.err conftest.$ac_objext conftest.beam
3731 test "x$ac_cv_prog_cc_c89" != "xno" && break
3732 done
3733 rm -f conftest.$ac_ext
3734 CC=$ac_save_CC
3735 fi
3736
3737 if test "x$ac_cv_prog_cc_c89" = xno
3738 then :
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 printf "%s\n" "unsupported" >&6; }
3741 else $as_nop
3742 if test "x$ac_cv_prog_cc_c89" = x
3743 then :
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3745 printf "%s\n" "none needed" >&6; }
3746 else $as_nop
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3748 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3749 CC="$CC $ac_cv_prog_cc_c89"
3750 fi
3751 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3752 ac_prog_cc_stdc=c89
3753 fi
3754 fi
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761
3762
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3769 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3770 if test ${am_cv_prog_cc_c_o+y}
3771 then :
3772 printf %s "(cached) " >&6
3773 else $as_nop
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776
3777 int
3778 main (void)
3779 {
3780
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 # Make sure it works both with $CC and with simple cc.
3786 # Following AC_PROG_CC_C_O, we do the test twice because some
3787 # compilers refuse to overwrite an existing .o file with -o,
3788 # though they will create one.
3789 am_cv_prog_cc_c_o=yes
3790 for am_i in 1 2; do
3791 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3792 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } \
3796 && test -f conftest2.$ac_objext; then
3797 : OK
3798 else
3799 am_cv_prog_cc_c_o=no
3800 break
3801 fi
3802 done
3803 rm -f core conftest*
3804 unset am_i
3805 fi
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3807 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3808 if test "$am_cv_prog_cc_c_o" != yes; then
3809 # Losing compiler, so override with the script.
3810 # FIXME: It is wrong to rewrite CC.
3811 # But if we don't then we get into trouble of one sort or another.
3812 # A longer-term fix would be to have automake use am__CC in this case,
3813 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3814 CC="$am_aux_dir/compile $CC"
3815 fi
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821
3822
3823
3824 ac_header= ac_cache=
3825 for ac_item in $ac_header_c_list
3826 do
3827 if test $ac_cache; then
3828 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3829 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3830 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3831 fi
3832 ac_header= ac_cache=
3833 elif test $ac_header; then
3834 ac_cache=$ac_item
3835 else
3836 ac_header=$ac_item
3837 fi
3838 done
3839
3840
3841
3842
3843
3844
3845
3846
3847 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3848 then :
3849
3850 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3851
3852 fi
3853
3854
3855
3856
3857
3858
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3860 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3861 if test ${ac_cv_safe_to_define___extensions__+y}
3862 then :
3863 printf %s "(cached) " >&6
3864 else $as_nop
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867
3868 # define __EXTENSIONS__ 1
3869 $ac_includes_default
3870 int
3871 main (void)
3872 {
3873
3874 ;
3875 return 0;
3876 }
3877 _ACEOF
3878 if ac_fn_c_try_compile "$LINENO"
3879 then :
3880 ac_cv_safe_to_define___extensions__=yes
3881 else $as_nop
3882 ac_cv_safe_to_define___extensions__=no
3883 fi
3884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3885 fi
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3887 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3888
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3890 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3891 if test ${ac_cv_should_define__xopen_source+y}
3892 then :
3893 printf %s "(cached) " >&6
3894 else $as_nop
3895 ac_cv_should_define__xopen_source=no
3896 if test $ac_cv_header_wchar_h = yes
3897 then :
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900
3901 #include <wchar.h>
3902 mbstate_t x;
3903 int
3904 main (void)
3905 {
3906
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_c_try_compile "$LINENO"
3912 then :
3913
3914 else $as_nop
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917
3918 #define _XOPEN_SOURCE 500
3919 #include <wchar.h>
3920 mbstate_t x;
3921 int
3922 main (void)
3923 {
3924
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"
3930 then :
3931 ac_cv_should_define__xopen_source=yes
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3936 fi
3937 fi
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3939 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3940
3941 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3942
3943 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3944
3945 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3946
3947 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3948
3949 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3950
3951 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3952
3953 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3954
3955 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3956
3957 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3958
3959 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3960
3961 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3962
3963 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3964
3965 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3966
3967 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3968
3969 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3970
3971 if test $ac_cv_header_minix_config_h = yes
3972 then :
3973 MINIX=yes
3974 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3975
3976 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3977
3978 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3979
3980 else $as_nop
3981 MINIX=
3982 fi
3983 if test $ac_cv_safe_to_define___extensions__ = yes
3984 then :
3985 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3986
3987 fi
3988 if test $ac_cv_should_define__xopen_source = yes
3989 then :
3990 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3991
3992 fi
3993
3994
3995 LIBXSLT_MAJOR_VERSION=1
3996 LIBXSLT_MINOR_VERSION=1
3997 LIBXSLT_MICRO_VERSION=45
3998 LIBEXSLT_MAJOR_VERSION=0
3999 LIBEXSLT_MINOR_VERSION=8
4000 LIBEXSLT_MICRO_VERSION=25
4001 LIBXML_REQUIRED_VERSION=2.15.1
4002
4003
4004 LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION
4005 LIBXSLT_VERSION_INFO=`expr $LIBXSLT_MAJOR_VERSION + $LIBXSLT_MINOR_VERSION`:$LIBXSLT_MICRO_VERSION:$LIBXSLT_MINOR_VERSION
4006
4007 LIBXSLT_VERSION_NUMBER=`expr $LIBXSLT_MAJOR_VERSION \* 10000 + $LIBXSLT_MINOR_VERSION \* 100 + $LIBXSLT_MICRO_VERSION`
4008 LIBXSLT_MAJOR_MINOR_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION
4009
4010 if test -d .git ; then
4011 extra=`git describe | sed 's+LIBXSLT[0-9.]*-++'`
4012 echo extra=$extra
4013 if test "$extra" != ""
4014 then
4015 LIBXSLT_VERSION_EXTRA="-GIT$extra"
4016 LIBEXSLT_VERSION_EXTRA="-GIT$extra"
4017 fi
4018 fi
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030 LIBEXSLT_VERSION=$LIBEXSLT_MAJOR_VERSION.$LIBEXSLT_MINOR_VERSION.$LIBEXSLT_MICRO_VERSION
4031 LIBEXSLT_VERSION_INFO=`expr $LIBEXSLT_MAJOR_VERSION + $LIBEXSLT_MINOR_VERSION`:$LIBEXSLT_MICRO_VERSION:$LIBEXSLT_MINOR_VERSION
4032
4033 LIBEXSLT_VERSION_NUMBER=`expr $LIBEXSLT_MAJOR_VERSION \* 10000 + $LIBEXSLT_MINOR_VERSION \* 100 + $LIBEXSLT_MICRO_VERSION`
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043 am__api_version='1.16'
4044
4045
4046 # Find a good install program. We prefer a C program (faster),
4047 # so one script is as good as another. But avoid the broken or
4048 # incompatible versions:
4049 # SysV /etc/install, /usr/sbin/install
4050 # SunOS /usr/etc/install
4051 # IRIX /sbin/install
4052 # AIX /bin/install
4053 # AmigaOS /C/install, which installs bootblocks on floppy discs
4054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4057 # OS/2's system install, which has a completely different semantic
4058 # ./install, which can be erroneously created by make from ./install.sh.
4059 # Reject install programs that cannot install multiple files.
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4061 printf %s "checking for a BSD-compatible install... " >&6; }
4062 if test -z "$INSTALL"; then
4063 if test ${ac_cv_path_install+y}
4064 then :
4065 printf %s "(cached) " >&6
4066 else $as_nop
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070 IFS=$as_save_IFS
4071 case $as_dir in #(((
4072 '') as_dir=./ ;;
4073 */) ;;
4074 *) as_dir=$as_dir/ ;;
4075 esac
4076 # Account for fact that we put trailing slashes in our PATH walk.
4077 case $as_dir in #((
4078 ./ | /[cC]/* | \
4079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4080 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4081 /usr/ucb/* ) ;;
4082 *)
4083 # OSF1 and SCO ODT 3.0 have their own names for install.
4084 # Don't use installbsd from OSF since it installs stuff as root
4085 # by default.
4086 for ac_prog in ginstall scoinst install; do
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4089 if test $ac_prog = install &&
4090 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4091 # AIX install. It has an incompatible calling convention.
4092 :
4093 elif test $ac_prog = install &&
4094 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4095 # program-specific install script used by HP pwplus--don't use.
4096 :
4097 else
4098 rm -rf conftest.one conftest.two conftest.dir
4099 echo one > conftest.one
4100 echo two > conftest.two
4101 mkdir conftest.dir
4102 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4103 test -s conftest.one && test -s conftest.two &&
4104 test -s conftest.dir/conftest.one &&
4105 test -s conftest.dir/conftest.two
4106 then
4107 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4108 break 3
4109 fi
4110 fi
4111 fi
4112 done
4113 done
4114 ;;
4115 esac
4116
4117 done
4118 IFS=$as_save_IFS
4119
4120 rm -rf conftest.one conftest.two conftest.dir
4121
4122 fi
4123 if test ${ac_cv_path_install+y}; then
4124 INSTALL=$ac_cv_path_install
4125 else
4126 # As a last resort, use the slow shell script. Don't cache a
4127 # value for INSTALL within a source directory, because that will
4128 # break other packages using the cache if that directory is
4129 # removed, or if the value is a relative name.
4130 INSTALL=$ac_install_sh
4131 fi
4132 fi
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4134 printf "%s\n" "$INSTALL" >&6; }
4135
4136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4137 # It thinks the first close brace ends the variable substitution.
4138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4139
4140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4141
4142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4143
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4145 printf %s "checking whether build environment is sane... " >&6; }
4146 # Reject unsafe characters in $srcdir or the absolute working directory
4147 # name. Accept space and tab only in the latter.
4148 am_lf='
4149 '
4150 case `pwd` in
4151 *[\\\"\#\$\&\'\`$am_lf]*)
4152 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4153 esac
4154 case $srcdir in
4155 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4156 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4157 esac
4158
4159 # Do 'set' in a subshell so we don't clobber the current shell's
4160 # arguments. Must try -L first in case configure is actually a
4161 # symlink; some systems play weird games with the mod time of symlinks
4162 # (eg FreeBSD returns the mod time of the symlink's containing
4163 # directory).
4164 if (
4165 am_has_slept=no
4166 for am_try in 1 2; do
4167 echo "timestamp, slept: $am_has_slept" > conftest.file
4168 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4169 if test "$*" = "X"; then
4170 # -L didn't work.
4171 set X `ls -t "$srcdir/configure" conftest.file`
4172 fi
4173 if test "$*" != "X $srcdir/configure conftest.file" \
4174 && test "$*" != "X conftest.file $srcdir/configure"; then
4175
4176 # If neither matched, then we have a broken ls. This can happen
4177 # if, for instance, CONFIG_SHELL is bash and it inherits a
4178 # broken ls alias from the environment. This has actually
4179 # happened. Such a system could not be considered "sane".
4180 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4181 alias in your environment" "$LINENO" 5
4182 fi
4183 if test "$2" = conftest.file || test $am_try -eq 2; then
4184 break
4185 fi
4186 # Just in case.
4187 sleep 1
4188 am_has_slept=yes
4189 done
4190 test "$2" = conftest.file
4191 )
4192 then
4193 # Ok.
4194 :
4195 else
4196 as_fn_error $? "newly created file is older than distributed files!
4197 Check your system clock" "$LINENO" 5
4198 fi
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 printf "%s\n" "yes" >&6; }
4201 # If we didn't sleep, we still need to ensure time stamps of config.status and
4202 # generated files are strictly newer.
4203 am_sleep_pid=
4204 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4205 ( sleep 1 ) &
4206 am_sleep_pid=$!
4207 fi
4208
4209 rm -f conftest.file
4210
4211 test "$program_prefix" != NONE &&
4212 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4213 # Use a double $ so make ignores it.
4214 test "$program_suffix" != NONE &&
4215 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4216 # Double any \ or $.
4217 # By default was `s,x,x', remove it if useless.
4218 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4219 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4220
4221
4222 if test x"${MISSING+set}" != xset; then
4223 MISSING="\${SHELL} '$am_aux_dir/missing'"
4224 fi
4225 # Use eval to expand $SHELL
4226 if eval "$MISSING --is-lightweight"; then
4227 am_missing_run="$MISSING "
4228 else
4229 am_missing_run=
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4231 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4232 fi
4233
4234 if test x"${install_sh+set}" != xset; then
4235 case $am_aux_dir in
4236 *\ * | *\ *)
4237 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4238 *)
4239 install_sh="\${SHELL} $am_aux_dir/install-sh"
4240 esac
4241 fi
4242
4243 # Installed binaries are usually stripped using 'strip' when the user
4244 # run "make install-strip". However 'strip' might not be the right
4245 # tool to use in cross-compilation environments, therefore Automake
4246 # will honor the 'STRIP' environment variable to overrule this program.
4247 if test "$cross_compiling" != no; then
4248 if test -n "$ac_tool_prefix"; then
4249 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4250 set dummy ${ac_tool_prefix}strip; ac_word=$2
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 printf %s "checking for $ac_word... " >&6; }
4253 if test ${ac_cv_prog_STRIP+y}
4254 then :
4255 printf %s "(cached) " >&6
4256 else $as_nop
4257 if test -n "$STRIP"; then
4258 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263 IFS=$as_save_IFS
4264 case $as_dir in #(((
4265 '') as_dir=./ ;;
4266 */) ;;
4267 *) as_dir=$as_dir/ ;;
4268 esac
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275 done
4276 done
4277 IFS=$as_save_IFS
4278
4279 fi
4280 fi
4281 STRIP=$ac_cv_prog_STRIP
4282 if test -n "$STRIP"; then
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4284 printf "%s\n" "$STRIP" >&6; }
4285 else
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 printf "%s\n" "no" >&6; }
4288 fi
4289
4290
4291 fi
4292 if test -z "$ac_cv_prog_STRIP"; then
4293 ac_ct_STRIP=$STRIP
4294 # Extract the first word of "strip", so it can be a program name with args.
4295 set dummy strip; 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_ac_ct_STRIP+y}
4299 then :
4300 printf %s "(cached) " >&6
4301 else $as_nop
4302 if test -n "$ac_ct_STRIP"; then
4303 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
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 fi
4326 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4327 if test -n "$ac_ct_STRIP"; then
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4329 printf "%s\n" "$ac_ct_STRIP" >&6; }
4330 else
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 printf "%s\n" "no" >&6; }
4333 fi
4334
4335 if test "x$ac_ct_STRIP" = x; then
4336 STRIP=":"
4337 else
4338 case $cross_compiling:$ac_tool_warned in
4339 yes:)
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342 ac_tool_warned=yes ;;
4343 esac
4344 STRIP=$ac_ct_STRIP
4345 fi
4346 else
4347 STRIP="$ac_cv_prog_STRIP"
4348 fi
4349
4350 fi
4351 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4352
4353
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4355 printf %s "checking for a race-free mkdir -p... " >&6; }
4356 if test -z "$MKDIR_P"; then
4357 if test ${ac_cv_path_mkdir+y}
4358 then :
4359 printf %s "(cached) " >&6
4360 else $as_nop
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4363 do
4364 IFS=$as_save_IFS
4365 case $as_dir in #(((
4366 '') as_dir=./ ;;
4367 */) ;;
4368 *) as_dir=$as_dir/ ;;
4369 esac
4370 for ac_prog in mkdir gmkdir; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4373 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4374 'mkdir ('*'coreutils) '* | \
4375 'BusyBox '* | \
4376 'mkdir (fileutils) '4.1*)
4377 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4378 break 3;;
4379 esac
4380 done
4381 done
4382 done
4383 IFS=$as_save_IFS
4384
4385 fi
4386
4387 test -d ./--version && rmdir ./--version
4388 if test ${ac_cv_path_mkdir+y}; then
4389 MKDIR_P="$ac_cv_path_mkdir -p"
4390 else
4391 # As a last resort, use the slow shell script. Don't cache a
4392 # value for MKDIR_P within a source directory, because that will
4393 # break other packages using the cache if that directory is
4394 # removed, or if the value is a relative name.
4395 MKDIR_P="$ac_install_sh -d"
4396 fi
4397 fi
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4399 printf "%s\n" "$MKDIR_P" >&6; }
4400
4401 for ac_prog in gawk mawk nawk awk
4402 do
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 printf %s "checking for $ac_word... " >&6; }
4407 if test ${ac_cv_prog_AWK+y}
4408 then :
4409 printf %s "(cached) " >&6
4410 else $as_nop
4411 if test -n "$AWK"; then
4412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417 IFS=$as_save_IFS
4418 case $as_dir in #(((
4419 '') as_dir=./ ;;
4420 */) ;;
4421 *) as_dir=$as_dir/ ;;
4422 esac
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_AWK="$ac_prog"
4426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 AWK=$ac_cv_prog_AWK
4436 if test -n "$AWK"; then
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4438 printf "%s\n" "$AWK" >&6; }
4439 else
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 printf "%s\n" "no" >&6; }
4442 fi
4443
4444
4445 test -n "$AWK" && break
4446 done
4447
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4449 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4450 set x ${MAKE-make}
4451 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4452 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4453 then :
4454 printf %s "(cached) " >&6
4455 else $as_nop
4456 cat >conftest.make <<\_ACEOF
4457 SHELL = /bin/sh
4458 all:
4459 @echo '@@@%%%=$(MAKE)=@@@%%%'
4460 _ACEOF
4461 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4462 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4463 *@@@%%%=?*=@@@%%%*)
4464 eval ac_cv_prog_make_${ac_make}_set=yes;;
4465 *)
4466 eval ac_cv_prog_make_${ac_make}_set=no;;
4467 esac
4468 rm -f conftest.make
4469 fi
4470 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 printf "%s\n" "yes" >&6; }
4473 SET_MAKE=
4474 else
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 printf "%s\n" "no" >&6; }
4477 SET_MAKE="MAKE=${MAKE-make}"
4478 fi
4479
4480 rm -rf .tst 2>/dev/null
4481 mkdir .tst 2>/dev/null
4482 if test -d .tst; then
4483 am__leading_dot=.
4484 else
4485 am__leading_dot=_
4486 fi
4487 rmdir .tst 2>/dev/null
4488
4489 DEPDIR="${am__leading_dot}deps"
4490
4491 ac_config_commands="$ac_config_commands depfiles"
4492
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4494 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4495 cat > confinc.mk << 'END'
4496 am__doit:
4497 @echo this is the am__doit target >confinc.out
4498 .PHONY: am__doit
4499 END
4500 am__include="#"
4501 am__quote=
4502 # BSD make does it like this.
4503 echo '.include "confinc.mk" # ignored' > confmf.BSD
4504 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4505 echo 'include confinc.mk # ignored' > confmf.GNU
4506 _am_result=no
4507 for s in GNU BSD; do
4508 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4509 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }
4513 case $?:`cat confinc.out 2>/dev/null` in #(
4514 '0:this is the am__doit target') :
4515 case $s in #(
4516 BSD) :
4517 am__include='.include' am__quote='"' ;; #(
4518 *) :
4519 am__include='include' am__quote='' ;;
4520 esac ;; #(
4521 *) :
4522 ;;
4523 esac
4524 if test "$am__include" != "#"; then
4525 _am_result="yes ($s style)"
4526 break
4527 fi
4528 done
4529 rm -f confinc.* confmf.*
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4531 printf "%s\n" "${_am_result}" >&6; }
4532
4533 # Check whether --enable-dependency-tracking was given.
4534 if test ${enable_dependency_tracking+y}
4535 then :
4536 enableval=$enable_dependency_tracking;
4537 fi
4538
4539 if test "x$enable_dependency_tracking" != xno; then
4540 am_depcomp="$ac_aux_dir/depcomp"
4541 AMDEPBACKSLASH='\'
4542 am__nodep='_no'
4543 fi
4544 if test "x$enable_dependency_tracking" != xno; then
4545 AMDEP_TRUE=
4546 AMDEP_FALSE='#'
4547 else
4548 AMDEP_TRUE='#'
4549 AMDEP_FALSE=
4550 fi
4551
4552
4553 # Check whether --enable-silent-rules was given.
4554 if test ${enable_silent_rules+y}
4555 then :
4556 enableval=$enable_silent_rules;
4557 fi
4558
4559 case $enable_silent_rules in # (((
4560 yes) AM_DEFAULT_VERBOSITY=0;;
4561 no) AM_DEFAULT_VERBOSITY=1;;
4562 *) AM_DEFAULT_VERBOSITY=1;;
4563 esac
4564 am_make=${MAKE-make}
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4566 printf %s "checking whether $am_make supports nested variables... " >&6; }
4567 if test ${am_cv_make_support_nested_variables+y}
4568 then :
4569 printf %s "(cached) " >&6
4570 else $as_nop
4571 if printf "%s\n" 'TRUE=$(BAR$(V))
4572 BAR0=false
4573 BAR1=true
4574 V=1
4575 am__doit:
4576 @$(TRUE)
4577 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4578 am_cv_make_support_nested_variables=yes
4579 else
4580 am_cv_make_support_nested_variables=no
4581 fi
4582 fi
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4584 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4585 if test $am_cv_make_support_nested_variables = yes; then
4586 AM_V='$(V)'
4587 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4588 else
4589 AM_V=$AM_DEFAULT_VERBOSITY
4590 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4591 fi
4592 AM_BACKSLASH='\'
4593
4594 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4595 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4596 # is not polluted with repeated "-I."
4597 am__isrc=' -I$(srcdir)'
4598 # test to see if srcdir already configured
4599 if test -f $srcdir/config.status; then
4600 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4601 fi
4602 fi
4603
4604 # test whether we have cygpath
4605 if test -z "$CYGPATH_W"; then
4606 if (cygpath --version) >/dev/null 2>/dev/null; then
4607 CYGPATH_W='cygpath -w'
4608 else
4609 CYGPATH_W=echo
4610 fi
4611 fi
4612
4613
4614 # Define the identity of the package.
4615 PACKAGE='libxslt'
4616 VERSION='1.1.45'
4617
4618
4619 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4620
4621
4622 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4623
4624 # Some tools Automake needs.
4625
4626 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4627
4628
4629 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4630
4631
4632 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4633
4634
4635 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4636
4637
4638 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4639
4640 # For better backward compatibility. To be removed once Automake 1.9.x
4641 # dies out for good. For more background, see:
4642 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4643 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4644 mkdir_p='$(MKDIR_P)'
4645
4646 # We need awk for the "check" target (and possibly the TAP driver). The
4647 # system "awk" is bad on some platforms.
4648 # Always define AMTAR for backward compatibility. Yes, it's still used
4649 # in the wild :-( We should find a proper way to deprecate it ...
4650 AMTAR='$${TAR-tar}'
4651
4652
4653 # We'll loop over all known methods to create a tar archive until one works.
4654 _am_tools='gnutar pax cpio none'
4655
4656 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4657
4658
4659
4660
4661
4662 depcc="$CC" am_compiler_list=
4663
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4665 printf %s "checking dependency style of $depcc... " >&6; }
4666 if test ${am_cv_CC_dependencies_compiler_type+y}
4667 then :
4668 printf %s "(cached) " >&6
4669 else $as_nop
4670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4671 # We make a subdir and do the tests there. Otherwise we can end up
4672 # making bogus files that we don't know about and never remove. For
4673 # instance it was reported that on HP-UX the gcc test will end up
4674 # making a dummy file named 'D' -- because '-MD' means "put the output
4675 # in D".
4676 rm -rf conftest.dir
4677 mkdir conftest.dir
4678 # Copy depcomp to subdir because otherwise we won't find it if we're
4679 # using a relative directory.
4680 cp "$am_depcomp" conftest.dir
4681 cd conftest.dir
4682 # We will build objects and dependencies in a subdirectory because
4683 # it helps to detect inapplicable dependency modes. For instance
4684 # both Tru64's cc and ICC support -MD to output dependencies as a
4685 # side effect of compilation, but ICC will put the dependencies in
4686 # the current directory while Tru64 will put them in the object
4687 # directory.
4688 mkdir sub
4689
4690 am_cv_CC_dependencies_compiler_type=none
4691 if test "$am_compiler_list" = ""; then
4692 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4693 fi
4694 am__universal=false
4695 case " $depcc " in #(
4696 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4697 esac
4698
4699 for depmode in $am_compiler_list; do
4700 # Setup a source with many dependencies, because some compilers
4701 # like to wrap large dependency lists on column 80 (with \), and
4702 # we should not choose a depcomp mode which is confused by this.
4703 #
4704 # We need to recreate these files for each test, as the compiler may
4705 # overwrite some of them when testing with obscure command lines.
4706 # This happens at least with the AIX C compiler.
4707 : > sub/conftest.c
4708 for i in 1 2 3 4 5 6; do
4709 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4710 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4711 # Solaris 10 /bin/sh.
4712 echo '/* dummy */' > sub/conftst$i.h
4713 done
4714 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4715
4716 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4717 # mode. It turns out that the SunPro C++ compiler does not properly
4718 # handle '-M -o', and we need to detect this. Also, some Intel
4719 # versions had trouble with output in subdirs.
4720 am__obj=sub/conftest.${OBJEXT-o}
4721 am__minus_obj="-o $am__obj"
4722 case $depmode in
4723 gcc)
4724 # This depmode causes a compiler race in universal mode.
4725 test "$am__universal" = false || continue
4726 ;;
4727 nosideeffect)
4728 # After this tag, mechanisms are not by side-effect, so they'll
4729 # only be used when explicitly requested.
4730 if test "x$enable_dependency_tracking" = xyes; then
4731 continue
4732 else
4733 break
4734 fi
4735 ;;
4736 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4737 # This compiler won't grok '-c -o', but also, the minuso test has
4738 # not run yet. These depmodes are late enough in the game, and
4739 # so weak that their functioning should not be impacted.
4740 am__obj=conftest.${OBJEXT-o}
4741 am__minus_obj=
4742 ;;
4743 none) break ;;
4744 esac
4745 if depmode=$depmode \
4746 source=sub/conftest.c object=$am__obj \
4747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4748 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4749 >/dev/null 2>conftest.err &&
4750 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4751 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4752 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4753 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4754 # icc doesn't choke on unknown options, it will just issue warnings
4755 # or remarks (even with -Werror). So we grep stderr for any message
4756 # that says an option was ignored or not supported.
4757 # When given -MP, icc 7.0 and 7.1 complain thusly:
4758 # icc: Command line warning: ignoring option '-M'; no argument required
4759 # The diagnosis changed in icc 8.0:
4760 # icc: Command line remark: option '-MP' not supported
4761 if (grep 'ignoring option' conftest.err ||
4762 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4763 am_cv_CC_dependencies_compiler_type=$depmode
4764 break
4765 fi
4766 fi
4767 done
4768
4769 cd ..
4770 rm -rf conftest.dir
4771 else
4772 am_cv_CC_dependencies_compiler_type=none
4773 fi
4774
4775 fi
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4777 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4778 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4779
4780 if
4781 test "x$enable_dependency_tracking" != xno \
4782 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4783 am__fastdepCC_TRUE=
4784 am__fastdepCC_FALSE='#'
4785 else
4786 am__fastdepCC_TRUE='#'
4787 am__fastdepCC_FALSE=
4788 fi
4789
4790
4791 # Variables for tags utilities; see am/tags.am
4792 if test -z "$CTAGS"; then
4793 CTAGS=ctags
4794 fi
4795
4796 if test -z "$ETAGS"; then
4797 ETAGS=etags
4798 fi
4799
4800 if test -z "$CSCOPE"; then
4801 CSCOPE=cscope
4802 fi
4803
4804
4805
4806 # POSIX will say in a future version that running "rm -f" with no argument
4807 # is OK; and we want to be able to make that assumption in our Makefile
4808 # recipes. So use an aggressive probe to check that the usage we want is
4809 # actually supported "in the wild" to an acceptable degree.
4810 # See automake bug#10828.
4811 # To make any issue more visible, cause the running configure to be aborted
4812 # by default if the 'rm' program in use doesn't match our expectations; the
4813 # user can still override this though.
4814 if rm -f && rm -fr && rm -rf; then : OK; else
4815 cat >&2 <<'END'
4816 Oops!
4817
4818 Your 'rm' program seems unable to run without file operands specified
4819 on the command line, even when the '-f' option is present. This is contrary
4820 to the behaviour of most rm programs out there, and not conforming with
4821 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4822
4823 Please tell [email protected] about your system, including the value
4824 of your $PATH and any error possibly output before this message. This
4825 can help us improve future automake versions.
4826
4827 END
4828 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4829 echo 'Configuration will proceed anyway, since you have set the' >&2
4830 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4831 echo >&2
4832 else
4833 cat >&2 <<'END'
4834 Aborting the configuration process, to ensure you take notice of the issue.
4835
4836 You can download and install GNU coreutils to get an 'rm' implementation
4837 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4838
4839 If you want to complete the configuration process using your problematic
4840 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4841 to "yes", and re-run configure.
4842
4843 END
4844 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4845 fi
4846 fi
4847
4848
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4850 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4851 # Check whether --enable-maintainer-mode was given.
4852 if test ${enable_maintainer_mode+y}
4853 then :
4854 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4855 else $as_nop
4856 USE_MAINTAINER_MODE=yes
4857 fi
4858
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4860 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4861 if test $USE_MAINTAINER_MODE = yes; then
4862 MAINTAINER_MODE_TRUE=
4863 MAINTAINER_MODE_FALSE='#'
4864 else
4865 MAINTAINER_MODE_TRUE='#'
4866 MAINTAINER_MODE_FALSE=
4867 fi
4868
4869 MAINT=$MAINTAINER_MODE_TRUE
4870
4871
4872 # Check whether --enable-silent-rules was given.
4873 if test ${enable_silent_rules+y}
4874 then :
4875 enableval=$enable_silent_rules;
4876 fi
4877
4878 case $enable_silent_rules in # (((
4879 yes) AM_DEFAULT_VERBOSITY=0;;
4880 no) AM_DEFAULT_VERBOSITY=1;;
4881 *) AM_DEFAULT_VERBOSITY=0;;
4882 esac
4883 am_make=${MAKE-make}
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4885 printf %s "checking whether $am_make supports nested variables... " >&6; }
4886 if test ${am_cv_make_support_nested_variables+y}
4887 then :
4888 printf %s "(cached) " >&6
4889 else $as_nop
4890 if printf "%s\n" 'TRUE=$(BAR$(V))
4891 BAR0=false
4892 BAR1=true
4893 V=1
4894 am__doit:
4895 @$(TRUE)
4896 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4897 am_cv_make_support_nested_variables=yes
4898 else
4899 am_cv_make_support_nested_variables=no
4900 fi
4901 fi
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4903 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4904 if test $am_cv_make_support_nested_variables = yes; then
4905 AM_V='$(V)'
4906 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4907 else
4908 AM_V=$AM_DEFAULT_VERBOSITY
4909 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4910 fi
4911 AM_BACKSLASH='\'
4912
4913
4914
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 if test -n "$ac_tool_prefix"; then
4921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4922 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 printf %s "checking for $ac_word... " >&6; }
4925 if test ${ac_cv_prog_CC+y}
4926 then :
4927 printf %s "(cached) " >&6
4928 else $as_nop
4929 if test -n "$CC"; then
4930 ac_cv_prog_CC="$CC" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935 IFS=$as_save_IFS
4936 case $as_dir in #(((
4937 '') as_dir=./ ;;
4938 */) ;;
4939 *) as_dir=$as_dir/ ;;
4940 esac
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 CC=$ac_cv_prog_CC
4954 if test -n "$CC"; then
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4956 printf "%s\n" "$CC" >&6; }
4957 else
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 printf "%s\n" "no" >&6; }
4960 fi
4961
4962
4963 fi
4964 if test -z "$ac_cv_prog_CC"; then
4965 ac_ct_CC=$CC
4966 # Extract the first word of "gcc", so it can be a program name with args.
4967 set dummy gcc; ac_word=$2
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 printf %s "checking for $ac_word... " >&6; }
4970 if test ${ac_cv_prog_ac_ct_CC+y}
4971 then :
4972 printf %s "(cached) " >&6
4973 else $as_nop
4974 if test -n "$ac_ct_CC"; then
4975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980 IFS=$as_save_IFS
4981 case $as_dir in #(((
4982 '') as_dir=./ ;;
4983 */) ;;
4984 *) as_dir=$as_dir/ ;;
4985 esac
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_ac_ct_CC="gcc"
4989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4990 break 2
4991 fi
4992 done
4993 done
4994 IFS=$as_save_IFS
4995
4996 fi
4997 fi
4998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4999 if test -n "$ac_ct_CC"; then
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5001 printf "%s\n" "$ac_ct_CC" >&6; }
5002 else
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 printf "%s\n" "no" >&6; }
5005 fi
5006
5007 if test "x$ac_ct_CC" = x; then
5008 CC=""
5009 else
5010 case $cross_compiling:$ac_tool_warned in
5011 yes:)
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016 CC=$ac_ct_CC
5017 fi
5018 else
5019 CC="$ac_cv_prog_CC"
5020 fi
5021
5022 if test -z "$CC"; then
5023 if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5025 set dummy ${ac_tool_prefix}cc; ac_word=$2
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 printf %s "checking for $ac_word... " >&6; }
5028 if test ${ac_cv_prog_CC+y}
5029 then :
5030 printf %s "(cached) " >&6
5031 else $as_nop
5032 if test -n "$CC"; then
5033 ac_cv_prog_CC="$CC" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038 IFS=$as_save_IFS
5039 case $as_dir in #(((
5040 '') as_dir=./ ;;
5041 */) ;;
5042 *) as_dir=$as_dir/ ;;
5043 esac
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_CC="${ac_tool_prefix}cc"
5047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 CC=$ac_cv_prog_CC
5057 if test -n "$CC"; then
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5059 printf "%s\n" "$CC" >&6; }
5060 else
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 printf "%s\n" "no" >&6; }
5063 fi
5064
5065
5066 fi
5067 fi
5068 if test -z "$CC"; then
5069 # Extract the first word of "cc", so it can be a program name with args.
5070 set dummy cc; ac_word=$2
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 printf %s "checking for $ac_word... " >&6; }
5073 if test ${ac_cv_prog_CC+y}
5074 then :
5075 printf %s "(cached) " >&6
5076 else $as_nop
5077 if test -n "$CC"; then
5078 ac_cv_prog_CC="$CC" # Let the user override the test.
5079 else
5080 ac_prog_rejected=no
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084 IFS=$as_save_IFS
5085 case $as_dir in #(((
5086 '') as_dir=./ ;;
5087 */) ;;
5088 *) as_dir=$as_dir/ ;;
5089 esac
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5092 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5093 ac_prog_rejected=yes
5094 continue
5095 fi
5096 ac_cv_prog_CC="cc"
5097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5098 break 2
5099 fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104 if test $ac_prog_rejected = yes; then
5105 # We found a bogon in the path, so make sure we never use it.
5106 set dummy $ac_cv_prog_CC
5107 shift
5108 if test $# != 0; then
5109 # We chose a different compiler from the bogus one.
5110 # However, it has the same basename, so the bogon will be chosen
5111 # first if we set CC to just the basename; use the full file name.
5112 shift
5113 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5114 fi
5115 fi
5116 fi
5117 fi
5118 CC=$ac_cv_prog_CC
5119 if test -n "$CC"; then
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5121 printf "%s\n" "$CC" >&6; }
5122 else
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 printf "%s\n" "no" >&6; }
5125 fi
5126
5127
5128 fi
5129 if test -z "$CC"; then
5130 if test -n "$ac_tool_prefix"; then
5131 for ac_prog in cl.exe
5132 do
5133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 printf %s "checking for $ac_word... " >&6; }
5137 if test ${ac_cv_prog_CC+y}
5138 then :
5139 printf %s "(cached) " >&6
5140 else $as_nop
5141 if test -n "$CC"; then
5142 ac_cv_prog_CC="$CC" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147 IFS=$as_save_IFS
5148 case $as_dir in #(((
5149 '') as_dir=./ ;;
5150 */) ;;
5151 *) as_dir=$as_dir/ ;;
5152 esac
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 CC=$ac_cv_prog_CC
5166 if test -n "$CC"; then
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5168 printf "%s\n" "$CC" >&6; }
5169 else
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 printf "%s\n" "no" >&6; }
5172 fi
5173
5174
5175 test -n "$CC" && break
5176 done
5177 fi
5178 if test -z "$CC"; then
5179 ac_ct_CC=$CC
5180 for ac_prog in cl.exe
5181 do
5182 # Extract the first word of "$ac_prog", so it can be a program name with args.
5183 set dummy $ac_prog; ac_word=$2
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 printf %s "checking for $ac_word... " >&6; }
5186 if test ${ac_cv_prog_ac_ct_CC+y}
5187 then :
5188 printf %s "(cached) " >&6
5189 else $as_nop
5190 if test -n "$ac_ct_CC"; then
5191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196 IFS=$as_save_IFS
5197 case $as_dir in #(((
5198 '') as_dir=./ ;;
5199 */) ;;
5200 *) as_dir=$as_dir/ ;;
5201 esac
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_CC="$ac_prog"
5205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208 done
5209 done
5210 IFS=$as_save_IFS
5211
5212 fi
5213 fi
5214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5215 if test -n "$ac_ct_CC"; then
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5217 printf "%s\n" "$ac_ct_CC" >&6; }
5218 else
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 printf "%s\n" "no" >&6; }
5221 fi
5222
5223
5224 test -n "$ac_ct_CC" && break
5225 done
5226
5227 if test "x$ac_ct_CC" = x; then
5228 CC=""
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231 yes:)
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234 ac_tool_warned=yes ;;
5235 esac
5236 CC=$ac_ct_CC
5237 fi
5238 fi
5239
5240 fi
5241 if test -z "$CC"; then
5242 if test -n "$ac_tool_prefix"; then
5243 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5244 set dummy ${ac_tool_prefix}clang; ac_word=$2
5245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 printf %s "checking for $ac_word... " >&6; }
5247 if test ${ac_cv_prog_CC+y}
5248 then :
5249 printf %s "(cached) " >&6
5250 else $as_nop
5251 if test -n "$CC"; then
5252 ac_cv_prog_CC="$CC" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257 IFS=$as_save_IFS
5258 case $as_dir in #(((
5259 '') as_dir=./ ;;
5260 */) ;;
5261 *) as_dir=$as_dir/ ;;
5262 esac
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5265 ac_cv_prog_CC="${ac_tool_prefix}clang"
5266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269 done
5270 done
5271 IFS=$as_save_IFS
5272
5273 fi
5274 fi
5275 CC=$ac_cv_prog_CC
5276 if test -n "$CC"; then
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5278 printf "%s\n" "$CC" >&6; }
5279 else
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 printf "%s\n" "no" >&6; }
5282 fi
5283
5284
5285 fi
5286 if test -z "$ac_cv_prog_CC"; then
5287 ac_ct_CC=$CC
5288 # Extract the first word of "clang", so it can be a program name with args.
5289 set dummy clang; ac_word=$2
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 printf %s "checking for $ac_word... " >&6; }
5292 if test ${ac_cv_prog_ac_ct_CC+y}
5293 then :
5294 printf %s "(cached) " >&6
5295 else $as_nop
5296 if test -n "$ac_ct_CC"; then
5297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302 IFS=$as_save_IFS
5303 case $as_dir in #(((
5304 '') as_dir=./ ;;
5305 */) ;;
5306 *) as_dir=$as_dir/ ;;
5307 esac
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_ac_ct_CC="clang"
5311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314 done
5315 done
5316 IFS=$as_save_IFS
5317
5318 fi
5319 fi
5320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5321 if test -n "$ac_ct_CC"; then
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5323 printf "%s\n" "$ac_ct_CC" >&6; }
5324 else
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 printf "%s\n" "no" >&6; }
5327 fi
5328
5329 if test "x$ac_ct_CC" = x; then
5330 CC=""
5331 else
5332 case $cross_compiling:$ac_tool_warned in
5333 yes:)
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336 ac_tool_warned=yes ;;
5337 esac
5338 CC=$ac_ct_CC
5339 fi
5340 else
5341 CC="$ac_cv_prog_CC"
5342 fi
5343
5344 fi
5345
5346
5347 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5348 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5349 as_fn_error $? "no acceptable C compiler found in \$PATH
5350 See \`config.log' for more details" "$LINENO" 5; }
5351
5352 # Provide some information about the compiler.
5353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5354 set X $ac_compile
5355 ac_compiler=$2
5356 for ac_option in --version -v -V -qversion -version; do
5357 { { ac_try="$ac_compiler $ac_option >&5"
5358 case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361 esac
5362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5363 printf "%s\n" "$ac_try_echo"; } >&5
5364 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5365 ac_status=$?
5366 if test -s conftest.err; then
5367 sed '10a\
5368 ... rest of stderr output deleted ...
5369 10q' conftest.err >conftest.er1
5370 cat conftest.er1 >&5
5371 fi
5372 rm -f conftest.er1 conftest.err
5373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5374 test $ac_status = 0; }
5375 done
5376
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5378 printf %s "checking whether the compiler supports GNU C... " >&6; }
5379 if test ${ac_cv_c_compiler_gnu+y}
5380 then :
5381 printf %s "(cached) " >&6
5382 else $as_nop
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385
5386 int
5387 main (void)
5388 {
5389 #ifndef __GNUC__
5390 choke me
5391 #endif
5392
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 if ac_fn_c_try_compile "$LINENO"
5398 then :
5399 ac_compiler_gnu=yes
5400 else $as_nop
5401 ac_compiler_gnu=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5405
5406 fi
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5408 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
5411 if test $ac_compiler_gnu = yes; then
5412 GCC=yes
5413 else
5414 GCC=
5415 fi
5416 ac_test_CFLAGS=${CFLAGS+y}
5417 ac_save_CFLAGS=$CFLAGS
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5419 printf %s "checking whether $CC accepts -g... " >&6; }
5420 if test ${ac_cv_prog_cc_g+y}
5421 then :
5422 printf %s "(cached) " >&6
5423 else $as_nop
5424 ac_save_c_werror_flag=$ac_c_werror_flag
5425 ac_c_werror_flag=yes
5426 ac_cv_prog_cc_g=no
5427 CFLAGS="-g"
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430
5431 int
5432 main (void)
5433 {
5434
5435 ;
5436 return 0;
5437 }
5438 _ACEOF
5439 if ac_fn_c_try_compile "$LINENO"
5440 then :
5441 ac_cv_prog_cc_g=yes
5442 else $as_nop
5443 CFLAGS=""
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446
5447 int
5448 main (void)
5449 {
5450
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"
5456 then :
5457
5458 else $as_nop
5459 ac_c_werror_flag=$ac_save_c_werror_flag
5460 CFLAGS="-g"
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463
5464 int
5465 main (void)
5466 {
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"
5473 then :
5474 ac_cv_prog_cc_g=yes
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5481 ac_c_werror_flag=$ac_save_c_werror_flag
5482 fi
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5484 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5485 if test $ac_test_CFLAGS; then
5486 CFLAGS=$ac_save_CFLAGS
5487 elif test $ac_cv_prog_cc_g = yes; then
5488 if test "$GCC" = yes; then
5489 CFLAGS="-g -O2"
5490 else
5491 CFLAGS="-g"
5492 fi
5493 else
5494 if test "$GCC" = yes; then
5495 CFLAGS="-O2"
5496 else
5497 CFLAGS=
5498 fi
5499 fi
5500 ac_prog_cc_stdc=no
5501 if test x$ac_prog_cc_stdc = xno
5502 then :
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5504 printf %s "checking for $CC option to enable C11 features... " >&6; }
5505 if test ${ac_cv_prog_cc_c11+y}
5506 then :
5507 printf %s "(cached) " >&6
5508 else $as_nop
5509 ac_cv_prog_cc_c11=no
5510 ac_save_CC=$CC
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513 $ac_c_conftest_c11_program
5514 _ACEOF
5515 for ac_arg in '' -std=gnu11
5516 do
5517 CC="$ac_save_CC $ac_arg"
5518 if ac_fn_c_try_compile "$LINENO"
5519 then :
5520 ac_cv_prog_cc_c11=$ac_arg
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.beam
5523 test "x$ac_cv_prog_cc_c11" != "xno" && break
5524 done
5525 rm -f conftest.$ac_ext
5526 CC=$ac_save_CC
5527 fi
5528
5529 if test "x$ac_cv_prog_cc_c11" = xno
5530 then :
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5532 printf "%s\n" "unsupported" >&6; }
5533 else $as_nop
5534 if test "x$ac_cv_prog_cc_c11" = x
5535 then :
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5537 printf "%s\n" "none needed" >&6; }
5538 else $as_nop
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5540 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5541 CC="$CC $ac_cv_prog_cc_c11"
5542 fi
5543 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5544 ac_prog_cc_stdc=c11
5545 fi
5546 fi
5547 if test x$ac_prog_cc_stdc = xno
5548 then :
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5550 printf %s "checking for $CC option to enable C99 features... " >&6; }
5551 if test ${ac_cv_prog_cc_c99+y}
5552 then :
5553 printf %s "(cached) " >&6
5554 else $as_nop
5555 ac_cv_prog_cc_c99=no
5556 ac_save_CC=$CC
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 $ac_c_conftest_c99_program
5560 _ACEOF
5561 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5562 do
5563 CC="$ac_save_CC $ac_arg"
5564 if ac_fn_c_try_compile "$LINENO"
5565 then :
5566 ac_cv_prog_cc_c99=$ac_arg
5567 fi
5568 rm -f core conftest.err conftest.$ac_objext conftest.beam
5569 test "x$ac_cv_prog_cc_c99" != "xno" && break
5570 done
5571 rm -f conftest.$ac_ext
5572 CC=$ac_save_CC
5573 fi
5574
5575 if test "x$ac_cv_prog_cc_c99" = xno
5576 then :
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5578 printf "%s\n" "unsupported" >&6; }
5579 else $as_nop
5580 if test "x$ac_cv_prog_cc_c99" = x
5581 then :
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5583 printf "%s\n" "none needed" >&6; }
5584 else $as_nop
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5586 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5587 CC="$CC $ac_cv_prog_cc_c99"
5588 fi
5589 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5590 ac_prog_cc_stdc=c99
5591 fi
5592 fi
5593 if test x$ac_prog_cc_stdc = xno
5594 then :
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5596 printf %s "checking for $CC option to enable C89 features... " >&6; }
5597 if test ${ac_cv_prog_cc_c89+y}
5598 then :
5599 printf %s "(cached) " >&6
5600 else $as_nop
5601 ac_cv_prog_cc_c89=no
5602 ac_save_CC=$CC
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 $ac_c_conftest_c89_program
5606 _ACEOF
5607 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5608 do
5609 CC="$ac_save_CC $ac_arg"
5610 if ac_fn_c_try_compile "$LINENO"
5611 then :
5612 ac_cv_prog_cc_c89=$ac_arg
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.beam
5615 test "x$ac_cv_prog_cc_c89" != "xno" && break
5616 done
5617 rm -f conftest.$ac_ext
5618 CC=$ac_save_CC
5619 fi
5620
5621 if test "x$ac_cv_prog_cc_c89" = xno
5622 then :
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5624 printf "%s\n" "unsupported" >&6; }
5625 else $as_nop
5626 if test "x$ac_cv_prog_cc_c89" = x
5627 then :
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5629 printf "%s\n" "none needed" >&6; }
5630 else $as_nop
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5632 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5633 CC="$CC $ac_cv_prog_cc_c89"
5634 fi
5635 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5636 ac_prog_cc_stdc=c89
5637 fi
5638 fi
5639
5640 ac_ext=c
5641 ac_cpp='$CPP $CPPFLAGS'
5642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5645
5646
5647 ac_ext=c
5648 ac_cpp='$CPP $CPPFLAGS'
5649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5653 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5654 if test ${am_cv_prog_cc_c_o+y}
5655 then :
5656 printf %s "(cached) " >&6
5657 else $as_nop
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660
5661 int
5662 main (void)
5663 {
5664
5665 ;
5666 return 0;
5667 }
5668 _ACEOF
5669 # Make sure it works both with $CC and with simple cc.
5670 # Following AC_PROG_CC_C_O, we do the test twice because some
5671 # compilers refuse to overwrite an existing .o file with -o,
5672 # though they will create one.
5673 am_cv_prog_cc_c_o=yes
5674 for am_i in 1 2; do
5675 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5676 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } \
5680 && test -f conftest2.$ac_objext; then
5681 : OK
5682 else
5683 am_cv_prog_cc_c_o=no
5684 break
5685 fi
5686 done
5687 rm -f core conftest*
5688 unset am_i
5689 fi
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5691 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5692 if test "$am_cv_prog_cc_c_o" != yes; then
5693 # Losing compiler, so override with the script.
5694 # FIXME: It is wrong to rewrite CC.
5695 # But if we don't then we get into trouble of one sort or another.
5696 # A longer-term fix would be to have automake use am__CC in this case,
5697 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5698 CC="$am_aux_dir/compile $CC"
5699 fi
5700 ac_ext=c
5701 ac_cpp='$CPP $CPPFLAGS'
5702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5705
5706
5707
5708 ac_ext=c
5709 ac_cpp='$CPP $CPPFLAGS'
5710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5714 printf %s "checking how to run the C preprocessor... " >&6; }
5715 # On Suns, sometimes $CPP names a directory.
5716 if test -n "$CPP" && test -d "$CPP"; then
5717 CPP=
5718 fi
5719 if test -z "$CPP"; then
5720 if test ${ac_cv_prog_CPP+y}
5721 then :
5722 printf %s "(cached) " >&6
5723 else $as_nop
5724 # Double quotes because $CC needs to be expanded
5725 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5726 do
5727 ac_preproc_ok=false
5728 for ac_c_preproc_warn_flag in '' yes
5729 do
5730 # Use a header file that comes with gcc, so configuring glibc
5731 # with a fresh cross-compiler works.
5732 # On the NeXT, cc -E runs the code through the compiler's parser,
5733 # not just through cpp. "Syntax error" is here to catch this case.
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #include <limits.h>
5737 Syntax error
5738 _ACEOF
5739 if ac_fn_c_try_cpp "$LINENO"
5740 then :
5741
5742 else $as_nop
5743 # Broken: fails on valid input.
5744 continue
5745 fi
5746 rm -f conftest.err conftest.i conftest.$ac_ext
5747
5748 # OK, works on sane cases. Now check whether nonexistent headers
5749 # can be detected and how.
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #include <ac_nonexistent.h>
5753 _ACEOF
5754 if ac_fn_c_try_cpp "$LINENO"
5755 then :
5756 # Broken: success on invalid input.
5757 continue
5758 else $as_nop
5759 # Passes both tests.
5760 ac_preproc_ok=:
5761 break
5762 fi
5763 rm -f conftest.err conftest.i conftest.$ac_ext
5764
5765 done
5766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5767 rm -f conftest.i conftest.err conftest.$ac_ext
5768 if $ac_preproc_ok
5769 then :
5770 break
5771 fi
5772
5773 done
5774 ac_cv_prog_CPP=$CPP
5775
5776 fi
5777 CPP=$ac_cv_prog_CPP
5778 else
5779 ac_cv_prog_CPP=$CPP
5780 fi
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5782 printf "%s\n" "$CPP" >&6; }
5783 ac_preproc_ok=false
5784 for ac_c_preproc_warn_flag in '' yes
5785 do
5786 # Use a header file that comes with gcc, so configuring glibc
5787 # with a fresh cross-compiler works.
5788 # On the NeXT, cc -E runs the code through the compiler's parser,
5789 # not just through cpp. "Syntax error" is here to catch this case.
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <limits.h>
5793 Syntax error
5794 _ACEOF
5795 if ac_fn_c_try_cpp "$LINENO"
5796 then :
5797
5798 else $as_nop
5799 # Broken: fails on valid input.
5800 continue
5801 fi
5802 rm -f conftest.err conftest.i conftest.$ac_ext
5803
5804 # OK, works on sane cases. Now check whether nonexistent headers
5805 # can be detected and how.
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5808 #include <ac_nonexistent.h>
5809 _ACEOF
5810 if ac_fn_c_try_cpp "$LINENO"
5811 then :
5812 # Broken: success on invalid input.
5813 continue
5814 else $as_nop
5815 # Passes both tests.
5816 ac_preproc_ok=:
5817 break
5818 fi
5819 rm -f conftest.err conftest.i conftest.$ac_ext
5820
5821 done
5822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5823 rm -f conftest.i conftest.err conftest.$ac_ext
5824 if $ac_preproc_ok
5825 then :
5826
5827 else $as_nop
5828 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5829 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5830 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5831 See \`config.log' for more details" "$LINENO" 5; }
5832 fi
5833
5834 ac_ext=c
5835 ac_cpp='$CPP $CPPFLAGS'
5836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5839
5840 # Extract the first word of "xmllint", so it can be a program name with args.
5841 set dummy xmllint; ac_word=$2
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 printf %s "checking for $ac_word... " >&6; }
5844 if test ${ac_cv_path_XMLLINT+y}
5845 then :
5846 printf %s "(cached) " >&6
5847 else $as_nop
5848 case $XMLLINT in
5849 [\\/]* | ?:[\\/]*)
5850 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
5851 ;;
5852 *)
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856 IFS=$as_save_IFS
5857 case $as_dir in #(((
5858 '') as_dir=./ ;;
5859 */) ;;
5860 *) as_dir=$as_dir/ ;;
5861 esac
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5864 ac_cv_path_XMLLINT="$as_dir$ac_word$ac_exec_ext"
5865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
5873 ;;
5874 esac
5875 fi
5876 XMLLINT=$ac_cv_path_XMLLINT
5877 if test -n "$XMLLINT"; then
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
5879 printf "%s\n" "$XMLLINT" >&6; }
5880 else
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 printf "%s\n" "no" >&6; }
5883 fi
5884
5885
5886 # Extract the first word of "xsltproc", so it can be a program name with args.
5887 set dummy xsltproc; ac_word=$2
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 printf %s "checking for $ac_word... " >&6; }
5890 if test ${ac_cv_path_XSLTPROC+y}
5891 then :
5892 printf %s "(cached) " >&6
5893 else $as_nop
5894 case $XSLTPROC in
5895 [\\/]* | ?:[\\/]*)
5896 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
5897 ;;
5898 *)
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902 IFS=$as_save_IFS
5903 case $as_dir in #(((
5904 '') as_dir=./ ;;
5905 */) ;;
5906 *) as_dir=$as_dir/ ;;
5907 esac
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5910 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
5911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914 done
5915 done
5916 IFS=$as_save_IFS
5917
5918 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
5919 ;;
5920 esac
5921 fi
5922 XSLTPROC=$ac_cv_path_XSLTPROC
5923 if test -n "$XSLTPROC"; then
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
5925 printf "%s\n" "$XSLTPROC" >&6; }
5926 else
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 printf "%s\n" "no" >&6; }
5929 fi
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5940 if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5942 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 printf %s "checking for $ac_word... " >&6; }
5945 if test ${ac_cv_path_PKG_CONFIG+y}
5946 then :
5947 printf %s "(cached) " >&6
5948 else $as_nop
5949 case $PKG_CONFIG in
5950 [\\/]* | ?:[\\/]*)
5951 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5952 ;;
5953 *)
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 case $as_dir in #(((
5959 '') as_dir=./ ;;
5960 */) ;;
5961 *) as_dir=$as_dir/ ;;
5962 esac
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5965 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 ;;
5974 esac
5975 fi
5976 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5977 if test -n "$PKG_CONFIG"; then
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5979 printf "%s\n" "$PKG_CONFIG" >&6; }
5980 else
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 printf "%s\n" "no" >&6; }
5983 fi
5984
5985
5986 fi
5987 if test -z "$ac_cv_path_PKG_CONFIG"; then
5988 ac_pt_PKG_CONFIG=$PKG_CONFIG
5989 # Extract the first word of "pkg-config", so it can be a program name with args.
5990 set dummy pkg-config; ac_word=$2
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 printf %s "checking for $ac_word... " >&6; }
5993 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5994 then :
5995 printf %s "(cached) " >&6
5996 else $as_nop
5997 case $ac_pt_PKG_CONFIG in
5998 [\\/]* | ?:[\\/]*)
5999 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6000 ;;
6001 *)
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005 IFS=$as_save_IFS
6006 case $as_dir in #(((
6007 '') as_dir=./ ;;
6008 */) ;;
6009 *) as_dir=$as_dir/ ;;
6010 esac
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6013 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 ;;
6022 esac
6023 fi
6024 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6025 if test -n "$ac_pt_PKG_CONFIG"; then
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6027 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6028 else
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 printf "%s\n" "no" >&6; }
6031 fi
6032
6033 if test "x$ac_pt_PKG_CONFIG" = x; then
6034 PKG_CONFIG=""
6035 else
6036 case $cross_compiling:$ac_tool_warned in
6037 yes:)
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6039 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6040 ac_tool_warned=yes ;;
6041 esac
6042 PKG_CONFIG=$ac_pt_PKG_CONFIG
6043 fi
6044 else
6045 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6046 fi
6047
6048 fi
6049 if test -n "$PKG_CONFIG"; then
6050 _pkg_min_version=0.9.0
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6052 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6053 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6055 printf "%s\n" "yes" >&6; }
6056 else
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 printf "%s\n" "no" >&6; }
6059 PKG_CONFIG=""
6060 fi
6061 fi
6062
6063 case `pwd` in
6064 *\ * | *\ *)
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6066 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6067 esac
6068
6069
6070
6071 macro_version='2.4.7'
6072 macro_revision='2.4.7'
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 ltmain=$ac_aux_dir/ltmain.sh
6088
6089 # Backslashify metacharacters that are still active within
6090 # double-quoted strings.
6091 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6092
6093 # Same as above, but do not quote variable references.
6094 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6095
6096 # Sed substitution to delay expansion of an escaped shell variable in a
6097 # double_quote_subst'ed string.
6098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6099
6100 # Sed substitution to delay expansion of an escaped single quote.
6101 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6102
6103 # Sed substitution to avoid accidental globbing in evaled expressions
6104 no_glob_subst='s/\*/\\\*/g'
6105
6106 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6107 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6108 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6109
6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6111 printf %s "checking how to print strings... " >&6; }
6112 # Test print first, because it will be a builtin if present.
6113 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6114 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6115 ECHO='print -r --'
6116 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6117 ECHO='printf %s\n'
6118 else
6119 # Use this function as a fallback that always works.
6120 func_fallback_echo ()
6121 {
6122 eval 'cat <<_LTECHO_EOF
6123 $1
6124 _LTECHO_EOF'
6125 }
6126 ECHO='func_fallback_echo'
6127 fi
6128
6129 # func_echo_all arg...
6130 # Invoke $ECHO with all args, space-separated.
6131 func_echo_all ()
6132 {
6133 $ECHO ""
6134 }
6135
6136 case $ECHO in
6137 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6138 printf "%s\n" "printf" >&6; } ;;
6139 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6140 printf "%s\n" "print -r" >&6; } ;;
6141 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6142 printf "%s\n" "cat" >&6; } ;;
6143 esac
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6159 printf %s "checking for a sed that does not truncate output... " >&6; }
6160 if test ${ac_cv_path_SED+y}
6161 then :
6162 printf %s "(cached) " >&6
6163 else $as_nop
6164 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6165 for ac_i in 1 2 3 4 5 6 7; do
6166 ac_script="$ac_script$as_nl$ac_script"
6167 done
6168 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6169 { ac_script=; unset ac_script;}
6170 if test -z "$SED"; then
6171 ac_path_SED_found=false
6172 # Loop through the user's path and test for each of PROGNAME-LIST
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 case $as_dir in #(((
6178 '') as_dir=./ ;;
6179 */) ;;
6180 *) as_dir=$as_dir/ ;;
6181 esac
6182 for ac_prog in sed gsed
6183 do
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6186 as_fn_executable_p "$ac_path_SED" || continue
6187 # Check for GNU ac_path_SED and select it if it is found.
6188 # Check for GNU $ac_path_SED
6189 case `"$ac_path_SED" --version 2>&1` in
6190 *GNU*)
6191 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6192 *)
6193 ac_count=0
6194 printf %s 0123456789 >"conftest.in"
6195 while :
6196 do
6197 cat "conftest.in" "conftest.in" >"conftest.tmp"
6198 mv "conftest.tmp" "conftest.in"
6199 cp "conftest.in" "conftest.nl"
6200 printf "%s\n" '' >> "conftest.nl"
6201 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6203 as_fn_arith $ac_count + 1 && ac_count=$as_val
6204 if test $ac_count -gt ${ac_path_SED_max-0}; then
6205 # Best one so far, save it but keep looking for a better one
6206 ac_cv_path_SED="$ac_path_SED"
6207 ac_path_SED_max=$ac_count
6208 fi
6209 # 10*(2^10) chars as input seems more than enough
6210 test $ac_count -gt 10 && break
6211 done
6212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6213 esac
6214
6215 $ac_path_SED_found && break 3
6216 done
6217 done
6218 done
6219 IFS=$as_save_IFS
6220 if test -z "$ac_cv_path_SED"; then
6221 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6222 fi
6223 else
6224 ac_cv_path_SED=$SED
6225 fi
6226
6227 fi
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6229 printf "%s\n" "$ac_cv_path_SED" >&6; }
6230 SED="$ac_cv_path_SED"
6231 rm -f conftest.sed
6232
6233 test -z "$SED" && SED=sed
6234 Xsed="$SED -e 1s/^X//"
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6247 printf %s "checking for grep that handles long lines and -e... " >&6; }
6248 if test ${ac_cv_path_GREP+y}
6249 then :
6250 printf %s "(cached) " >&6
6251 else $as_nop
6252 if test -z "$GREP"; then
6253 ac_path_GREP_found=false
6254 # Loop through the user's path and test for each of PROGNAME-LIST
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6257 do
6258 IFS=$as_save_IFS
6259 case $as_dir in #(((
6260 '') as_dir=./ ;;
6261 */) ;;
6262 *) as_dir=$as_dir/ ;;
6263 esac
6264 for ac_prog in grep ggrep
6265 do
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6268 as_fn_executable_p "$ac_path_GREP" || continue
6269 # Check for GNU ac_path_GREP and select it if it is found.
6270 # Check for GNU $ac_path_GREP
6271 case `"$ac_path_GREP" --version 2>&1` in
6272 *GNU*)
6273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6274 *)
6275 ac_count=0
6276 printf %s 0123456789 >"conftest.in"
6277 while :
6278 do
6279 cat "conftest.in" "conftest.in" >"conftest.tmp"
6280 mv "conftest.tmp" "conftest.in"
6281 cp "conftest.in" "conftest.nl"
6282 printf "%s\n" 'GREP' >> "conftest.nl"
6283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6285 as_fn_arith $ac_count + 1 && ac_count=$as_val
6286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6287 # Best one so far, save it but keep looking for a better one
6288 ac_cv_path_GREP="$ac_path_GREP"
6289 ac_path_GREP_max=$ac_count
6290 fi
6291 # 10*(2^10) chars as input seems more than enough
6292 test $ac_count -gt 10 && break
6293 done
6294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6295 esac
6296
6297 $ac_path_GREP_found && break 3
6298 done
6299 done
6300 done
6301 IFS=$as_save_IFS
6302 if test -z "$ac_cv_path_GREP"; then
6303 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6304 fi
6305 else
6306 ac_cv_path_GREP=$GREP
6307 fi
6308
6309 fi
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6311 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6312 GREP="$ac_cv_path_GREP"
6313
6314
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6316 printf %s "checking for egrep... " >&6; }
6317 if test ${ac_cv_path_EGREP+y}
6318 then :
6319 printf %s "(cached) " >&6
6320 else $as_nop
6321 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6322 then ac_cv_path_EGREP="$GREP -E"
6323 else
6324 if test -z "$EGREP"; then
6325 ac_path_EGREP_found=false
6326 # Loop through the user's path and test for each of PROGNAME-LIST
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6329 do
6330 IFS=$as_save_IFS
6331 case $as_dir in #(((
6332 '') as_dir=./ ;;
6333 */) ;;
6334 *) as_dir=$as_dir/ ;;
6335 esac
6336 for ac_prog in egrep
6337 do
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6340 as_fn_executable_p "$ac_path_EGREP" || continue
6341 # Check for GNU ac_path_EGREP and select it if it is found.
6342 # Check for GNU $ac_path_EGREP
6343 case `"$ac_path_EGREP" --version 2>&1` in
6344 *GNU*)
6345 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6346 *)
6347 ac_count=0
6348 printf %s 0123456789 >"conftest.in"
6349 while :
6350 do
6351 cat "conftest.in" "conftest.in" >"conftest.tmp"
6352 mv "conftest.tmp" "conftest.in"
6353 cp "conftest.in" "conftest.nl"
6354 printf "%s\n" 'EGREP' >> "conftest.nl"
6355 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6357 as_fn_arith $ac_count + 1 && ac_count=$as_val
6358 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6359 # Best one so far, save it but keep looking for a better one
6360 ac_cv_path_EGREP="$ac_path_EGREP"
6361 ac_path_EGREP_max=$ac_count
6362 fi
6363 # 10*(2^10) chars as input seems more than enough
6364 test $ac_count -gt 10 && break
6365 done
6366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6367 esac
6368
6369 $ac_path_EGREP_found && break 3
6370 done
6371 done
6372 done
6373 IFS=$as_save_IFS
6374 if test -z "$ac_cv_path_EGREP"; then
6375 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6376 fi
6377 else
6378 ac_cv_path_EGREP=$EGREP
6379 fi
6380
6381 fi
6382 fi
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6384 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6385 EGREP="$ac_cv_path_EGREP"
6386
6387
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6389 printf %s "checking for fgrep... " >&6; }
6390 if test ${ac_cv_path_FGREP+y}
6391 then :
6392 printf %s "(cached) " >&6
6393 else $as_nop
6394 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6395 then ac_cv_path_FGREP="$GREP -F"
6396 else
6397 if test -z "$FGREP"; then
6398 ac_path_FGREP_found=false
6399 # Loop through the user's path and test for each of PROGNAME-LIST
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6402 do
6403 IFS=$as_save_IFS
6404 case $as_dir in #(((
6405 '') as_dir=./ ;;
6406 */) ;;
6407 *) as_dir=$as_dir/ ;;
6408 esac
6409 for ac_prog in fgrep
6410 do
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6413 as_fn_executable_p "$ac_path_FGREP" || continue
6414 # Check for GNU ac_path_FGREP and select it if it is found.
6415 # Check for GNU $ac_path_FGREP
6416 case `"$ac_path_FGREP" --version 2>&1` in
6417 *GNU*)
6418 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6419 *)
6420 ac_count=0
6421 printf %s 0123456789 >"conftest.in"
6422 while :
6423 do
6424 cat "conftest.in" "conftest.in" >"conftest.tmp"
6425 mv "conftest.tmp" "conftest.in"
6426 cp "conftest.in" "conftest.nl"
6427 printf "%s\n" 'FGREP' >> "conftest.nl"
6428 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6430 as_fn_arith $ac_count + 1 && ac_count=$as_val
6431 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6432 # Best one so far, save it but keep looking for a better one
6433 ac_cv_path_FGREP="$ac_path_FGREP"
6434 ac_path_FGREP_max=$ac_count
6435 fi
6436 # 10*(2^10) chars as input seems more than enough
6437 test $ac_count -gt 10 && break
6438 done
6439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6440 esac
6441
6442 $ac_path_FGREP_found && break 3
6443 done
6444 done
6445 done
6446 IFS=$as_save_IFS
6447 if test -z "$ac_cv_path_FGREP"; then
6448 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6449 fi
6450 else
6451 ac_cv_path_FGREP=$FGREP
6452 fi
6453
6454 fi
6455 fi
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6457 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6458 FGREP="$ac_cv_path_FGREP"
6459
6460
6461 test -z "$GREP" && GREP=grep
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 # Check whether --with-gnu-ld was given.
6482 if test ${with_gnu_ld+y}
6483 then :
6484 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6485 else $as_nop
6486 with_gnu_ld=no
6487 fi
6488
6489 ac_prog=ld
6490 if test yes = "$GCC"; then
6491 # Check if gcc -print-prog-name=ld gives a path.
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6493 printf %s "checking for ld used by $CC... " >&6; }
6494 case $host in
6495 *-*-mingw*)
6496 # gcc leaves a trailing carriage return, which upsets mingw
6497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6498 *)
6499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6500 esac
6501 case $ac_prog in
6502 # Accept absolute paths.
6503 [\\/]* | ?:[\\/]*)
6504 re_direlt='/[^/][^/]*/\.\./'
6505 # Canonicalize the pathname of ld
6506 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6507 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6508 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6509 done
6510 test -z "$LD" && LD=$ac_prog
6511 ;;
6512 "")
6513 # If it fails, then pretend we aren't using GCC.
6514 ac_prog=ld
6515 ;;
6516 *)
6517 # If it is relative, then search for the first ld in PATH.
6518 with_gnu_ld=unknown
6519 ;;
6520 esac
6521 elif test yes = "$with_gnu_ld"; then
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6523 printf %s "checking for GNU ld... " >&6; }
6524 else
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6526 printf %s "checking for non-GNU ld... " >&6; }
6527 fi
6528 if test ${lt_cv_path_LD+y}
6529 then :
6530 printf %s "(cached) " >&6
6531 else $as_nop
6532 if test -z "$LD"; then
6533 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6534 for ac_dir in $PATH; do
6535 IFS=$lt_save_ifs
6536 test -z "$ac_dir" && ac_dir=.
6537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6538 lt_cv_path_LD=$ac_dir/$ac_prog
6539 # Check to see if the program is GNU ld. I'd rather use --version,
6540 # but apparently some variants of GNU ld only accept -v.
6541 # Break only if it was the GNU/non-GNU ld that we prefer.
6542 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6543 *GNU* | *'with BFD'*)
6544 test no != "$with_gnu_ld" && break
6545 ;;
6546 *)
6547 test yes != "$with_gnu_ld" && break
6548 ;;
6549 esac
6550 fi
6551 done
6552 IFS=$lt_save_ifs
6553 else
6554 lt_cv_path_LD=$LD # Let the user override the test with a path.
6555 fi
6556 fi
6557
6558 LD=$lt_cv_path_LD
6559 if test -n "$LD"; then
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6561 printf "%s\n" "$LD" >&6; }
6562 else
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 printf "%s\n" "no" >&6; }
6565 fi
6566 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6568 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6569 if test ${lt_cv_prog_gnu_ld+y}
6570 then :
6571 printf %s "(cached) " >&6
6572 else $as_nop
6573 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6574 case `$LD -v 2>&1 </dev/null` in
6575 *GNU* | *'with BFD'*)
6576 lt_cv_prog_gnu_ld=yes
6577 ;;
6578 *)
6579 lt_cv_prog_gnu_ld=no
6580 ;;
6581 esac
6582 fi
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6584 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6585 with_gnu_ld=$lt_cv_prog_gnu_ld
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6596 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6597 if test ${lt_cv_path_NM+y}
6598 then :
6599 printf %s "(cached) " >&6
6600 else $as_nop
6601 if test -n "$NM"; then
6602 # Let the user override the test.
6603 lt_cv_path_NM=$NM
6604 else
6605 lt_nm_to_check=${ac_tool_prefix}nm
6606 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6607 lt_nm_to_check="$lt_nm_to_check nm"
6608 fi
6609 for lt_tmp_nm in $lt_nm_to_check; do
6610 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6611 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6612 IFS=$lt_save_ifs
6613 test -z "$ac_dir" && ac_dir=.
6614 tmp_nm=$ac_dir/$lt_tmp_nm
6615 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6616 # Check to see if the nm accepts a BSD-compat flag.
6617 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6618 # nm: unknown option "B" ignored
6619 # Tru64's nm complains that /dev/null is an invalid object file
6620 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6621 case $build_os in
6622 mingw*) lt_bad_file=conftest.nm/nofile ;;
6623 *) lt_bad_file=/dev/null ;;
6624 esac
6625 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6626 *$lt_bad_file* | *'Invalid file or object type'*)
6627 lt_cv_path_NM="$tmp_nm -B"
6628 break 2
6629 ;;
6630 *)
6631 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6632 */dev/null*)
6633 lt_cv_path_NM="$tmp_nm -p"
6634 break 2
6635 ;;
6636 *)
6637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6638 continue # so that we can try to find one that supports BSD flags
6639 ;;
6640 esac
6641 ;;
6642 esac
6643 fi
6644 done
6645 IFS=$lt_save_ifs
6646 done
6647 : ${lt_cv_path_NM=no}
6648 fi
6649 fi
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6651 printf "%s\n" "$lt_cv_path_NM" >&6; }
6652 if test no != "$lt_cv_path_NM"; then
6653 NM=$lt_cv_path_NM
6654 else
6655 # Didn't find any BSD compatible name lister, look for dumpbin.
6656 if test -n "$DUMPBIN"; then :
6657 # Let the user override the test.
6658 else
6659 if test -n "$ac_tool_prefix"; then
6660 for ac_prog in dumpbin "link -dump"
6661 do
6662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6663 set dummy $ac_tool_prefix$ac_prog; 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_DUMPBIN+y}
6667 then :
6668 printf %s "(cached) " >&6
6669 else $as_nop
6670 if test -n "$DUMPBIN"; then
6671 ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_DUMPBIN="$ac_tool_prefix$ac_prog"
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 fi
6694 DUMPBIN=$ac_cv_prog_DUMPBIN
6695 if test -n "$DUMPBIN"; then
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6697 printf "%s\n" "$DUMPBIN" >&6; }
6698 else
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 printf "%s\n" "no" >&6; }
6701 fi
6702
6703
6704 test -n "$DUMPBIN" && break
6705 done
6706 fi
6707 if test -z "$DUMPBIN"; then
6708 ac_ct_DUMPBIN=$DUMPBIN
6709 for ac_prog in dumpbin "link -dump"
6710 do
6711 # Extract the first word of "$ac_prog", so it can be a program name with args.
6712 set dummy $ac_prog; ac_word=$2
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 printf %s "checking for $ac_word... " >&6; }
6715 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else $as_nop
6719 if test -n "$ac_ct_DUMPBIN"; then
6720 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 case $as_dir in #(((
6727 '') as_dir=./ ;;
6728 */) ;;
6729 *) as_dir=$as_dir/ ;;
6730 esac
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6744 if test -n "$ac_ct_DUMPBIN"; then
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6746 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6747 else
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 printf "%s\n" "no" >&6; }
6750 fi
6751
6752
6753 test -n "$ac_ct_DUMPBIN" && break
6754 done
6755
6756 if test "x$ac_ct_DUMPBIN" = x; then
6757 DUMPBIN=":"
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765 DUMPBIN=$ac_ct_DUMPBIN
6766 fi
6767 fi
6768
6769 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6770 *COFF*)
6771 DUMPBIN="$DUMPBIN -symbols -headers"
6772 ;;
6773 *)
6774 DUMPBIN=:
6775 ;;
6776 esac
6777 fi
6778
6779 if test : != "$DUMPBIN"; then
6780 NM=$DUMPBIN
6781 fi
6782 fi
6783 test -z "$NM" && NM=nm
6784
6785
6786
6787
6788
6789
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6791 printf %s "checking the name lister ($NM) interface... " >&6; }
6792 if test ${lt_cv_nm_interface+y}
6793 then :
6794 printf %s "(cached) " >&6
6795 else $as_nop
6796 lt_cv_nm_interface="BSD nm"
6797 echo "int some_variable = 0;" > conftest.$ac_ext
6798 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6799 (eval "$ac_compile" 2>conftest.err)
6800 cat conftest.err >&5
6801 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6802 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6803 cat conftest.err >&5
6804 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6805 cat conftest.out >&5
6806 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6807 lt_cv_nm_interface="MS dumpbin"
6808 fi
6809 rm -f conftest*
6810 fi
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6812 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6813
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6815 printf %s "checking whether ln -s works... " >&6; }
6816 LN_S=$as_ln_s
6817 if test "$LN_S" = "ln -s"; then
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6819 printf "%s\n" "yes" >&6; }
6820 else
6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6822 printf "%s\n" "no, using $LN_S" >&6; }
6823 fi
6824
6825 # find the maximum length of command line arguments
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6827 printf %s "checking the maximum length of command line arguments... " >&6; }
6828 if test ${lt_cv_sys_max_cmd_len+y}
6829 then :
6830 printf %s "(cached) " >&6
6831 else $as_nop
6832 i=0
6833 teststring=ABCD
6834
6835 case $build_os in
6836 msdosdjgpp*)
6837 # On DJGPP, this test can blow up pretty badly due to problems in libc
6838 # (any single argument exceeding 2000 bytes causes a buffer overrun
6839 # during glob expansion). Even if it were fixed, the result of this
6840 # check would be larger than it should be.
6841 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6842 ;;
6843
6844 gnu*)
6845 # Under GNU Hurd, this test is not required because there is
6846 # no limit to the length of command line arguments.
6847 # Libtool will interpret -1 as no limit whatsoever
6848 lt_cv_sys_max_cmd_len=-1;
6849 ;;
6850
6851 cygwin* | mingw* | cegcc*)
6852 # On Win9x/ME, this test blows up -- it succeeds, but takes
6853 # about 5 minutes as the teststring grows exponentially.
6854 # Worse, since 9x/ME are not pre-emptively multitasking,
6855 # you end up with a "frozen" computer, even though with patience
6856 # the test eventually succeeds (with a max line length of 256k).
6857 # Instead, let's just punt: use the minimum linelength reported by
6858 # all of the supported platforms: 8192 (on NT/2K/XP).
6859 lt_cv_sys_max_cmd_len=8192;
6860 ;;
6861
6862 mint*)
6863 # On MiNT this can take a long time and run out of memory.
6864 lt_cv_sys_max_cmd_len=8192;
6865 ;;
6866
6867 amigaos*)
6868 # On AmigaOS with pdksh, this test takes hours, literally.
6869 # So we just punt and use a minimum line length of 8192.
6870 lt_cv_sys_max_cmd_len=8192;
6871 ;;
6872
6873 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6874 # This has been around since 386BSD, at least. Likely further.
6875 if test -x /sbin/sysctl; then
6876 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6877 elif test -x /usr/sbin/sysctl; then
6878 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6879 else
6880 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6881 fi
6882 # And add a safety zone
6883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6885 ;;
6886
6887 interix*)
6888 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6889 lt_cv_sys_max_cmd_len=196608
6890 ;;
6891
6892 os2*)
6893 # The test takes a long time on OS/2.
6894 lt_cv_sys_max_cmd_len=8192
6895 ;;
6896
6897 osf*)
6898 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6899 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6900 # nice to cause kernel panics so lets avoid the loop below.
6901 # First set a reasonable default.
6902 lt_cv_sys_max_cmd_len=16384
6903 #
6904 if test -x /sbin/sysconfig; then
6905 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6906 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6907 esac
6908 fi
6909 ;;
6910 sco3.2v5*)
6911 lt_cv_sys_max_cmd_len=102400
6912 ;;
6913 sysv5* | sco5v6* | sysv4.2uw2*)
6914 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6915 if test -n "$kargmax"; then
6916 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6917 else
6918 lt_cv_sys_max_cmd_len=32768
6919 fi
6920 ;;
6921 *)
6922 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6923 if test -n "$lt_cv_sys_max_cmd_len" && \
6924 test undefined != "$lt_cv_sys_max_cmd_len"; then
6925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6927 else
6928 # Make teststring a little bigger before we do anything with it.
6929 # a 1K string should be a reasonable start.
6930 for i in 1 2 3 4 5 6 7 8; do
6931 teststring=$teststring$teststring
6932 done
6933 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6934 # If test is not a shell built-in, we'll probably end up computing a
6935 # maximum length that is only half of the actual maximum length, but
6936 # we can't tell.
6937 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6938 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6939 test 17 != "$i" # 1/2 MB should be enough
6940 do
6941 i=`expr $i + 1`
6942 teststring=$teststring$teststring
6943 done
6944 # Only check the string length outside the loop.
6945 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6946 teststring=
6947 # Add a significant safety factor because C++ compilers can tack on
6948 # massive amounts of additional arguments before passing them to the
6949 # linker. It appears as though 1/2 is a usable value.
6950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6951 fi
6952 ;;
6953 esac
6954
6955 fi
6956
6957 if test -n "$lt_cv_sys_max_cmd_len"; then
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6959 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6960 else
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6962 printf "%s\n" "none" >&6; }
6963 fi
6964 max_cmd_len=$lt_cv_sys_max_cmd_len
6965
6966
6967
6968
6969
6970
6971 : ${CP="cp -f"}
6972 : ${MV="mv -f"}
6973 : ${RM="rm -f"}
6974
6975 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6976 lt_unset=unset
6977 else
6978 lt_unset=false
6979 fi
6980
6981
6982
6983
6984
6985 # test EBCDIC or ASCII
6986 case `echo X|tr X '\101'` in
6987 A) # ASCII based system
6988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6989 lt_SP2NL='tr \040 \012'
6990 lt_NL2SP='tr \015\012 \040\040'
6991 ;;
6992 *) # EBCDIC based system
6993 lt_SP2NL='tr \100 \n'
6994 lt_NL2SP='tr \r\n \100\100'
6995 ;;
6996 esac
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7007 printf %s "checking how to convert $build file names to $host format... " >&6; }
7008 if test ${lt_cv_to_host_file_cmd+y}
7009 then :
7010 printf %s "(cached) " >&6
7011 else $as_nop
7012 case $host in
7013 *-*-mingw* )
7014 case $build in
7015 *-*-mingw* ) # actually msys
7016 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7017 ;;
7018 *-*-cygwin* )
7019 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7020 ;;
7021 * ) # otherwise, assume *nix
7022 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7023 ;;
7024 esac
7025 ;;
7026 *-*-cygwin* )
7027 case $build in
7028 *-*-mingw* ) # actually msys
7029 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7030 ;;
7031 *-*-cygwin* )
7032 lt_cv_to_host_file_cmd=func_convert_file_noop
7033 ;;
7034 * ) # otherwise, assume *nix
7035 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7036 ;;
7037 esac
7038 ;;
7039 * ) # unhandled hosts (and "normal" native builds)
7040 lt_cv_to_host_file_cmd=func_convert_file_noop
7041 ;;
7042 esac
7043
7044 fi
7045
7046 to_host_file_cmd=$lt_cv_to_host_file_cmd
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7048 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7049
7050
7051
7052
7053
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7055 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7056 if test ${lt_cv_to_tool_file_cmd+y}
7057 then :
7058 printf %s "(cached) " >&6
7059 else $as_nop
7060 #assume ordinary cross tools, or native build.
7061 lt_cv_to_tool_file_cmd=func_convert_file_noop
7062 case $host in
7063 *-*-mingw* )
7064 case $build in
7065 *-*-mingw* ) # actually msys
7066 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7067 ;;
7068 esac
7069 ;;
7070 esac
7071
7072 fi
7073
7074 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7076 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7077
7078
7079
7080
7081
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7083 printf %s "checking for $LD option to reload object files... " >&6; }
7084 if test ${lt_cv_ld_reload_flag+y}
7085 then :
7086 printf %s "(cached) " >&6
7087 else $as_nop
7088 lt_cv_ld_reload_flag='-r'
7089 fi
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7091 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7092 reload_flag=$lt_cv_ld_reload_flag
7093 case $reload_flag in
7094 "" | " "*) ;;
7095 *) reload_flag=" $reload_flag" ;;
7096 esac
7097 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7098 case $host_os in
7099 cygwin* | mingw* | pw32* | cegcc*)
7100 if test yes != "$GCC"; then
7101 reload_cmds=false
7102 fi
7103 ;;
7104 darwin*)
7105 if test yes = "$GCC"; then
7106 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7107 else
7108 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7109 fi
7110 ;;
7111 esac
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}file; ac_word=$2
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 printf %s "checking for $ac_word... " >&6; }
7126 if test ${ac_cv_prog_FILECMD+y}
7127 then :
7128 printf %s "(cached) " >&6
7129 else $as_nop
7130 if test -n "$FILECMD"; then
7131 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136 IFS=$as_save_IFS
7137 case $as_dir in #(((
7138 '') as_dir=./ ;;
7139 */) ;;
7140 *) as_dir=$as_dir/ ;;
7141 esac
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 FILECMD=$ac_cv_prog_FILECMD
7155 if test -n "$FILECMD"; then
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7157 printf "%s\n" "$FILECMD" >&6; }
7158 else
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 printf "%s\n" "no" >&6; }
7161 fi
7162
7163
7164 fi
7165 if test -z "$ac_cv_prog_FILECMD"; then
7166 ac_ct_FILECMD=$FILECMD
7167 # Extract the first word of "file", so it can be a program name with args.
7168 set dummy file; ac_word=$2
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 printf %s "checking for $ac_word... " >&6; }
7171 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7172 then :
7173 printf %s "(cached) " >&6
7174 else $as_nop
7175 if test -n "$ac_ct_FILECMD"; then
7176 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181 IFS=$as_save_IFS
7182 case $as_dir in #(((
7183 '') as_dir=./ ;;
7184 */) ;;
7185 *) as_dir=$as_dir/ ;;
7186 esac
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_ac_ct_FILECMD="file"
7190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197 fi
7198 fi
7199 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7200 if test -n "$ac_ct_FILECMD"; then
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7202 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7203 else
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 printf "%s\n" "no" >&6; }
7206 fi
7207
7208 if test "x$ac_ct_FILECMD" = x; then
7209 FILECMD=":"
7210 else
7211 case $cross_compiling:$ac_tool_warned in
7212 yes:)
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7214 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7215 ac_tool_warned=yes ;;
7216 esac
7217 FILECMD=$ac_ct_FILECMD
7218 fi
7219 else
7220 FILECMD="$ac_cv_prog_FILECMD"
7221 fi
7222
7223
7224
7225
7226
7227
7228
7229 if test -n "$ac_tool_prefix"; then
7230 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 printf %s "checking for $ac_word... " >&6; }
7234 if test ${ac_cv_prog_OBJDUMP+y}
7235 then :
7236 printf %s "(cached) " >&6
7237 else $as_nop
7238 if test -n "$OBJDUMP"; then
7239 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244 IFS=$as_save_IFS
7245 case $as_dir in #(((
7246 '') as_dir=./ ;;
7247 */) ;;
7248 *) as_dir=$as_dir/ ;;
7249 esac
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 OBJDUMP=$ac_cv_prog_OBJDUMP
7263 if test -n "$OBJDUMP"; then
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7265 printf "%s\n" "$OBJDUMP" >&6; }
7266 else
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 printf "%s\n" "no" >&6; }
7269 fi
7270
7271
7272 fi
7273 if test -z "$ac_cv_prog_OBJDUMP"; then
7274 ac_ct_OBJDUMP=$OBJDUMP
7275 # Extract the first word of "objdump", so it can be a program name with args.
7276 set dummy objdump; ac_word=$2
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 printf %s "checking for $ac_word... " >&6; }
7279 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7280 then :
7281 printf %s "(cached) " >&6
7282 else $as_nop
7283 if test -n "$ac_ct_OBJDUMP"; then
7284 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289 IFS=$as_save_IFS
7290 case $as_dir in #(((
7291 '') as_dir=./ ;;
7292 */) ;;
7293 *) as_dir=$as_dir/ ;;
7294 esac
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7297 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7308 if test -n "$ac_ct_OBJDUMP"; then
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7310 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7311 else
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 printf "%s\n" "no" >&6; }
7314 fi
7315
7316 if test "x$ac_ct_OBJDUMP" = x; then
7317 OBJDUMP="false"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325 OBJDUMP=$ac_ct_OBJDUMP
7326 fi
7327 else
7328 OBJDUMP="$ac_cv_prog_OBJDUMP"
7329 fi
7330
7331 test -z "$OBJDUMP" && OBJDUMP=objdump
7332
7333
7334
7335
7336
7337
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7339 printf %s "checking how to recognize dependent libraries... " >&6; }
7340 if test ${lt_cv_deplibs_check_method+y}
7341 then :
7342 printf %s "(cached) " >&6
7343 else $as_nop
7344 lt_cv_file_magic_cmd='$MAGIC_CMD'
7345 lt_cv_file_magic_test_file=
7346 lt_cv_deplibs_check_method='unknown'
7347 # Need to set the preceding variable on all platforms that support
7348 # interlibrary dependencies.
7349 # 'none' -- dependencies not supported.
7350 # 'unknown' -- same as none, but documents that we really don't know.
7351 # 'pass_all' -- all dependencies passed with no checks.
7352 # 'test_compile' -- check by making test program.
7353 # 'file_magic [[regex]]' -- check by looking for files in library path
7354 # that responds to the $file_magic_cmd with a given extended regex.
7355 # If you have 'file' or equivalent on your system and you're not sure
7356 # whether 'pass_all' will *always* work, you probably want this one.
7357
7358 case $host_os in
7359 aix[4-9]*)
7360 lt_cv_deplibs_check_method=pass_all
7361 ;;
7362
7363 beos*)
7364 lt_cv_deplibs_check_method=pass_all
7365 ;;
7366
7367 bsdi[45]*)
7368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7369 lt_cv_file_magic_cmd='$FILECMD -L'
7370 lt_cv_file_magic_test_file=/shlib/libc.so
7371 ;;
7372
7373 cygwin*)
7374 # func_win32_libid is a shell function defined in ltmain.sh
7375 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7376 lt_cv_file_magic_cmd='func_win32_libid'
7377 ;;
7378
7379 mingw* | pw32*)
7380 # Base MSYS/MinGW do not provide the 'file' command needed by
7381 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7382 # unless we find 'file', for example because we are cross-compiling.
7383 if ( file / ) >/dev/null 2>&1; then
7384 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7385 lt_cv_file_magic_cmd='func_win32_libid'
7386 else
7387 # Keep this pattern in sync with the one in func_win32_libid.
7388 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7389 lt_cv_file_magic_cmd='$OBJDUMP -f'
7390 fi
7391 ;;
7392
7393 cegcc*)
7394 # use the weaker test based on 'objdump'. See mingw*.
7395 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7396 lt_cv_file_magic_cmd='$OBJDUMP -f'
7397 ;;
7398
7399 darwin* | rhapsody*)
7400 lt_cv_deplibs_check_method=pass_all
7401 ;;
7402
7403 freebsd* | dragonfly* | midnightbsd*)
7404 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7405 case $host_cpu in
7406 i*86 )
7407 # Not sure whether the presence of OpenBSD here was a mistake.
7408 # Let's accept both of them until this is cleared up.
7409 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7410 lt_cv_file_magic_cmd=$FILECMD
7411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7412 ;;
7413 esac
7414 else
7415 lt_cv_deplibs_check_method=pass_all
7416 fi
7417 ;;
7418
7419 haiku*)
7420 lt_cv_deplibs_check_method=pass_all
7421 ;;
7422
7423 hpux10.20* | hpux11*)
7424 lt_cv_file_magic_cmd=$FILECMD
7425 case $host_cpu in
7426 ia64*)
7427 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7428 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7429 ;;
7430 hppa*64*)
7431 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]'
7432 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7433 ;;
7434 *)
7435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7436 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7437 ;;
7438 esac
7439 ;;
7440
7441 interix[3-9]*)
7442 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7444 ;;
7445
7446 irix5* | irix6* | nonstopux*)
7447 case $LD in
7448 *-32|*"-32 ") libmagic=32-bit;;
7449 *-n32|*"-n32 ") libmagic=N32;;
7450 *-64|*"-64 ") libmagic=64-bit;;
7451 *) libmagic=never-match;;
7452 esac
7453 lt_cv_deplibs_check_method=pass_all
7454 ;;
7455
7456 # This must be glibc/ELF.
7457 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7458 lt_cv_deplibs_check_method=pass_all
7459 ;;
7460
7461 netbsd* | netbsdelf*-gnu)
7462 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7464 else
7465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7466 fi
7467 ;;
7468
7469 newos6*)
7470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7471 lt_cv_file_magic_cmd=$FILECMD
7472 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7473 ;;
7474
7475 *nto* | *qnx*)
7476 lt_cv_deplibs_check_method=pass_all
7477 ;;
7478
7479 openbsd* | bitrig*)
7480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7482 else
7483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7484 fi
7485 ;;
7486
7487 osf3* | osf4* | osf5*)
7488 lt_cv_deplibs_check_method=pass_all
7489 ;;
7490
7491 rdos*)
7492 lt_cv_deplibs_check_method=pass_all
7493 ;;
7494
7495 solaris*)
7496 lt_cv_deplibs_check_method=pass_all
7497 ;;
7498
7499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7500 lt_cv_deplibs_check_method=pass_all
7501 ;;
7502
7503 sysv4 | sysv4.3*)
7504 case $host_vendor in
7505 motorola)
7506 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]'
7507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7508 ;;
7509 ncr)
7510 lt_cv_deplibs_check_method=pass_all
7511 ;;
7512 sequent)
7513 lt_cv_file_magic_cmd='/bin/file'
7514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7515 ;;
7516 sni)
7517 lt_cv_file_magic_cmd='/bin/file'
7518 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7519 lt_cv_file_magic_test_file=/lib/libc.so
7520 ;;
7521 siemens)
7522 lt_cv_deplibs_check_method=pass_all
7523 ;;
7524 pc)
7525 lt_cv_deplibs_check_method=pass_all
7526 ;;
7527 esac
7528 ;;
7529
7530 tpf*)
7531 lt_cv_deplibs_check_method=pass_all
7532 ;;
7533 os2*)
7534 lt_cv_deplibs_check_method=pass_all
7535 ;;
7536 esac
7537
7538 fi
7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7540 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7541
7542 file_magic_glob=
7543 want_nocaseglob=no
7544 if test "$build" = "$host"; then
7545 case $host_os in
7546 mingw* | pw32*)
7547 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7548 want_nocaseglob=yes
7549 else
7550 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7551 fi
7552 ;;
7553 esac
7554 fi
7555
7556 file_magic_cmd=$lt_cv_file_magic_cmd
7557 deplibs_check_method=$lt_cv_deplibs_check_method
7558 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 printf %s "checking for $ac_word... " >&6; }
7586 if test ${ac_cv_prog_DLLTOOL+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else $as_nop
7590 if test -n "$DLLTOOL"; then
7591 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596 IFS=$as_save_IFS
7597 case $as_dir in #(((
7598 '') as_dir=./ ;;
7599 */) ;;
7600 *) as_dir=$as_dir/ ;;
7601 esac
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 DLLTOOL=$ac_cv_prog_DLLTOOL
7615 if test -n "$DLLTOOL"; then
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7617 printf "%s\n" "$DLLTOOL" >&6; }
7618 else
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 printf "%s\n" "no" >&6; }
7621 fi
7622
7623
7624 fi
7625 if test -z "$ac_cv_prog_DLLTOOL"; then
7626 ac_ct_DLLTOOL=$DLLTOOL
7627 # Extract the first word of "dlltool", so it can be a program name with args.
7628 set dummy dlltool; ac_word=$2
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 printf %s "checking for $ac_word... " >&6; }
7631 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7632 then :
7633 printf %s "(cached) " >&6
7634 else $as_nop
7635 if test -n "$ac_ct_DLLTOOL"; then
7636 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641 IFS=$as_save_IFS
7642 case $as_dir in #(((
7643 '') as_dir=./ ;;
7644 */) ;;
7645 *) as_dir=$as_dir/ ;;
7646 esac
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7649 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7651 break 2
7652 fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657 fi
7658 fi
7659 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7660 if test -n "$ac_ct_DLLTOOL"; then
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7662 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7663 else
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 printf "%s\n" "no" >&6; }
7666 fi
7667
7668 if test "x$ac_ct_DLLTOOL" = x; then
7669 DLLTOOL="false"
7670 else
7671 case $cross_compiling:$ac_tool_warned in
7672 yes:)
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7675 ac_tool_warned=yes ;;
7676 esac
7677 DLLTOOL=$ac_ct_DLLTOOL
7678 fi
7679 else
7680 DLLTOOL="$ac_cv_prog_DLLTOOL"
7681 fi
7682
7683 test -z "$DLLTOOL" && DLLTOOL=dlltool
7684
7685
7686
7687
7688
7689
7690
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7692 printf %s "checking how to associate runtime and link libraries... " >&6; }
7693 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7694 then :
7695 printf %s "(cached) " >&6
7696 else $as_nop
7697 lt_cv_sharedlib_from_linklib_cmd='unknown'
7698
7699 case $host_os in
7700 cygwin* | mingw* | pw32* | cegcc*)
7701 # two different shell functions defined in ltmain.sh;
7702 # decide which one to use based on capabilities of $DLLTOOL
7703 case `$DLLTOOL --help 2>&1` in
7704 *--identify-strict*)
7705 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7706 ;;
7707 *)
7708 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7709 ;;
7710 esac
7711 ;;
7712 *)
7713 # fallback: assume linklib IS sharedlib
7714 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7715 ;;
7716 esac
7717
7718 fi
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7720 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7721 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7722 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7723
7724
7725
7726
7727
7728
7729
7730 if test -n "$ac_tool_prefix"; then
7731 for ac_prog in ar
7732 do
7733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 printf %s "checking for $ac_word... " >&6; }
7737 if test ${ac_cv_prog_AR+y}
7738 then :
7739 printf %s "(cached) " >&6
7740 else $as_nop
7741 if test -n "$AR"; then
7742 ac_cv_prog_AR="$AR" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747 IFS=$as_save_IFS
7748 case $as_dir in #(((
7749 '') as_dir=./ ;;
7750 */) ;;
7751 *) as_dir=$as_dir/ ;;
7752 esac
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7755 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 AR=$ac_cv_prog_AR
7766 if test -n "$AR"; then
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7768 printf "%s\n" "$AR" >&6; }
7769 else
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 printf "%s\n" "no" >&6; }
7772 fi
7773
7774
7775 test -n "$AR" && break
7776 done
7777 fi
7778 if test -z "$AR"; then
7779 ac_ct_AR=$AR
7780 for ac_prog in ar
7781 do
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 printf %s "checking for $ac_word... " >&6; }
7786 if test ${ac_cv_prog_ac_ct_AR+y}
7787 then :
7788 printf %s "(cached) " >&6
7789 else $as_nop
7790 if test -n "$ac_ct_AR"; then
7791 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796 IFS=$as_save_IFS
7797 case $as_dir in #(((
7798 '') as_dir=./ ;;
7799 */) ;;
7800 *) as_dir=$as_dir/ ;;
7801 esac
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7804 ac_cv_prog_ac_ct_AR="$ac_prog"
7805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7806 break 2
7807 fi
7808 done
7809 done
7810 IFS=$as_save_IFS
7811
7812 fi
7813 fi
7814 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7815 if test -n "$ac_ct_AR"; then
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7817 printf "%s\n" "$ac_ct_AR" >&6; }
7818 else
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 printf "%s\n" "no" >&6; }
7821 fi
7822
7823
7824 test -n "$ac_ct_AR" && break
7825 done
7826
7827 if test "x$ac_ct_AR" = x; then
7828 AR="false"
7829 else
7830 case $cross_compiling:$ac_tool_warned in
7831 yes:)
7832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834 ac_tool_warned=yes ;;
7835 esac
7836 AR=$ac_ct_AR
7837 fi
7838 fi
7839
7840 : ${AR=ar}
7841
7842
7843
7844
7845
7846
7847 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7848 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7849 # higher priority because thats what people were doing historically (setting
7850 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7851 # variable obsoleted/removed.
7852
7853 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7854 lt_ar_flags=$AR_FLAGS
7855
7856
7857
7858
7859
7860
7861 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7862 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7863
7864
7865
7866
7867
7868
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7870 printf %s "checking for archiver @FILE support... " >&6; }
7871 if test ${lt_cv_ar_at_file+y}
7872 then :
7873 printf %s "(cached) " >&6
7874 else $as_nop
7875 lt_cv_ar_at_file=no
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878
7879 int
7880 main (void)
7881 {
7882
7883 ;
7884 return 0;
7885 }
7886 _ACEOF
7887 if ac_fn_c_try_compile "$LINENO"
7888 then :
7889 echo conftest.$ac_objext > conftest.lst
7890 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7892 (eval $lt_ar_try) 2>&5
7893 ac_status=$?
7894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; }
7896 if test 0 -eq "$ac_status"; then
7897 # Ensure the archiver fails upon bogus file names.
7898 rm -f conftest.$ac_objext libconftest.a
7899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7900 (eval $lt_ar_try) 2>&5
7901 ac_status=$?
7902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903 test $ac_status = 0; }
7904 if test 0 -ne "$ac_status"; then
7905 lt_cv_ar_at_file=@
7906 fi
7907 fi
7908 rm -f conftest.* libconftest.a
7909
7910 fi
7911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7912
7913 fi
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7915 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7916
7917 if test no = "$lt_cv_ar_at_file"; then
7918 archiver_list_spec=
7919 else
7920 archiver_list_spec=$lt_cv_ar_at_file
7921 fi
7922
7923
7924
7925
7926
7927
7928
7929 if test -n "$ac_tool_prefix"; then
7930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7931 set dummy ${ac_tool_prefix}strip; ac_word=$2
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 printf %s "checking for $ac_word... " >&6; }
7934 if test ${ac_cv_prog_STRIP+y}
7935 then :
7936 printf %s "(cached) " >&6
7937 else $as_nop
7938 if test -n "$STRIP"; then
7939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944 IFS=$as_save_IFS
7945 case $as_dir in #(((
7946 '') as_dir=./ ;;
7947 */) ;;
7948 *) as_dir=$as_dir/ ;;
7949 esac
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956 done
7957 done
7958 IFS=$as_save_IFS
7959
7960 fi
7961 fi
7962 STRIP=$ac_cv_prog_STRIP
7963 if test -n "$STRIP"; then
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7965 printf "%s\n" "$STRIP" >&6; }
7966 else
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 printf "%s\n" "no" >&6; }
7969 fi
7970
7971
7972 fi
7973 if test -z "$ac_cv_prog_STRIP"; then
7974 ac_ct_STRIP=$STRIP
7975 # Extract the first word of "strip", so it can be a program name with args.
7976 set dummy strip; ac_word=$2
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 printf %s "checking for $ac_word... " >&6; }
7979 if test ${ac_cv_prog_ac_ct_STRIP+y}
7980 then :
7981 printf %s "(cached) " >&6
7982 else $as_nop
7983 if test -n "$ac_ct_STRIP"; then
7984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989 IFS=$as_save_IFS
7990 case $as_dir in #(((
7991 '') as_dir=./ ;;
7992 */) ;;
7993 *) as_dir=$as_dir/ ;;
7994 esac
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_ac_ct_STRIP="strip"
7998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001 done
8002 done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8008 if test -n "$ac_ct_STRIP"; then
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8010 printf "%s\n" "$ac_ct_STRIP" >&6; }
8011 else
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 printf "%s\n" "no" >&6; }
8014 fi
8015
8016 if test "x$ac_ct_STRIP" = x; then
8017 STRIP=":"
8018 else
8019 case $cross_compiling:$ac_tool_warned in
8020 yes:)
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023 ac_tool_warned=yes ;;
8024 esac
8025 STRIP=$ac_ct_STRIP
8026 fi
8027 else
8028 STRIP="$ac_cv_prog_STRIP"
8029 fi
8030
8031 test -z "$STRIP" && STRIP=:
8032
8033
8034
8035
8036
8037
8038 if test -n "$ac_tool_prefix"; then
8039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 printf %s "checking for $ac_word... " >&6; }
8043 if test ${ac_cv_prog_RANLIB+y}
8044 then :
8045 printf %s "(cached) " >&6
8046 else $as_nop
8047 if test -n "$RANLIB"; then
8048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053 IFS=$as_save_IFS
8054 case $as_dir in #(((
8055 '') as_dir=./ ;;
8056 */) ;;
8057 *) as_dir=$as_dir/ ;;
8058 esac
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 fi
8070 fi
8071 RANLIB=$ac_cv_prog_RANLIB
8072 if test -n "$RANLIB"; then
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8074 printf "%s\n" "$RANLIB" >&6; }
8075 else
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 printf "%s\n" "no" >&6; }
8078 fi
8079
8080
8081 fi
8082 if test -z "$ac_cv_prog_RANLIB"; then
8083 ac_ct_RANLIB=$RANLIB
8084 # Extract the first word of "ranlib", so it can be a program name with args.
8085 set dummy ranlib; ac_word=$2
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 printf %s "checking for $ac_word... " >&6; }
8088 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8089 then :
8090 printf %s "(cached) " >&6
8091 else $as_nop
8092 if test -n "$ac_ct_RANLIB"; then
8093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098 IFS=$as_save_IFS
8099 case $as_dir in #(((
8100 '') as_dir=./ ;;
8101 */) ;;
8102 *) as_dir=$as_dir/ ;;
8103 esac
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8106 ac_cv_prog_ac_ct_RANLIB="ranlib"
8107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8108 break 2
8109 fi
8110 done
8111 done
8112 IFS=$as_save_IFS
8113
8114 fi
8115 fi
8116 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8117 if test -n "$ac_ct_RANLIB"; then
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8119 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8120 else
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 printf "%s\n" "no" >&6; }
8123 fi
8124
8125 if test "x$ac_ct_RANLIB" = x; then
8126 RANLIB=":"
8127 else
8128 case $cross_compiling:$ac_tool_warned in
8129 yes:)
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8133 esac
8134 RANLIB=$ac_ct_RANLIB
8135 fi
8136 else
8137 RANLIB="$ac_cv_prog_RANLIB"
8138 fi
8139
8140 test -z "$RANLIB" && RANLIB=:
8141
8142
8143
8144
8145
8146
8147 # Determine commands to create old-style static archives.
8148 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8149 old_postinstall_cmds='chmod 644 $oldlib'
8150 old_postuninstall_cmds=
8151
8152 if test -n "$RANLIB"; then
8153 case $host_os in
8154 bitrig* | openbsd*)
8155 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8156 ;;
8157 *)
8158 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8159 ;;
8160 esac
8161 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8162 fi
8163
8164 case $host_os in
8165 darwin*)
8166 lock_old_archive_extraction=yes ;;
8167 *)
8168 lock_old_archive_extraction=no ;;
8169 esac
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 # If no C compiler was specified, use CC.
8210 LTCC=${LTCC-"$CC"}
8211
8212 # If no C compiler flags were specified, use CFLAGS.
8213 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8214
8215 # Allow CC to be a program name with arguments.
8216 compiler=$CC
8217
8218
8219 # Check for command to grab the raw symbol name followed by C symbol from nm.
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8221 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8222 if test ${lt_cv_sys_global_symbol_pipe+y}
8223 then :
8224 printf %s "(cached) " >&6
8225 else $as_nop
8226
8227 # These are sane defaults that work on at least a few old systems.
8228 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8229
8230 # Character class describing NM global symbol codes.
8231 symcode='[BCDEGRST]'
8232
8233 # Regexp to match symbols that can be accessed directly from C.
8234 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8235
8236 # Define system-specific variables.
8237 case $host_os in
8238 aix*)
8239 symcode='[BCDT]'
8240 ;;
8241 cygwin* | mingw* | pw32* | cegcc*)
8242 symcode='[ABCDGISTW]'
8243 ;;
8244 hpux*)
8245 if test ia64 = "$host_cpu"; then
8246 symcode='[ABCDEGRST]'
8247 fi
8248 ;;
8249 irix* | nonstopux*)
8250 symcode='[BCDEGRST]'
8251 ;;
8252 osf*)
8253 symcode='[BCDEGQRST]'
8254 ;;
8255 solaris*)
8256 symcode='[BDRT]'
8257 ;;
8258 sco3.2v5*)
8259 symcode='[DT]'
8260 ;;
8261 sysv4.2uw2*)
8262 symcode='[DT]'
8263 ;;
8264 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8265 symcode='[ABDT]'
8266 ;;
8267 sysv4)
8268 symcode='[DFNSTU]'
8269 ;;
8270 esac
8271
8272 # If we're using GNU nm, then use its standard symbol codes.
8273 case `$NM -V 2>&1` in
8274 *GNU* | *'with BFD'*)
8275 symcode='[ABCDGIRSTW]' ;;
8276 esac
8277
8278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8279 # Gets list of data symbols to import.
8280 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8281 # Adjust the below global symbol transforms to fixup imported variables.
8282 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8283 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8284 lt_c_name_lib_hook="\
8285 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8286 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8287 else
8288 # Disable hooks by default.
8289 lt_cv_sys_global_symbol_to_import=
8290 lt_cdecl_hook=
8291 lt_c_name_hook=
8292 lt_c_name_lib_hook=
8293 fi
8294
8295 # Transform an extracted symbol line into a proper C declaration.
8296 # Some systems (esp. on ia64) link data and code symbols differently,
8297 # so use this general approach.
8298 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8299 $lt_cdecl_hook\
8300 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8301 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8302
8303 # Transform an extracted symbol line into symbol name and symbol address
8304 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8305 $lt_c_name_hook\
8306 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8307 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8308
8309 # Transform an extracted symbol line into symbol name with lib prefix and
8310 # symbol address.
8311 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8312 $lt_c_name_lib_hook\
8313 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8314 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8315 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8316
8317 # Handle CRLF in mingw tool chain
8318 opt_cr=
8319 case $build_os in
8320 mingw*)
8321 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8322 ;;
8323 esac
8324
8325 # Try without a prefix underscore, then with it.
8326 for ac_symprfx in "" "_"; do
8327
8328 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8329 symxfrm="\\1 $ac_symprfx\\2 \\2"
8330
8331 # Write the raw and C identifiers.
8332 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8333 # Fake it for dumpbin and say T for any non-static function,
8334 # D for any global variable and I for any imported variable.
8335 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8336 # which start with @ or ?.
8337 lt_cv_sys_global_symbol_pipe="$AWK '"\
8338 " {last_section=section; section=\$ 3};"\
8339 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8340 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8341 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8342 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8343 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8344 " \$ 0!~/External *\|/{next};"\
8345 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8346 " {if(hide[section]) next};"\
8347 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8348 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8349 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8350 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8351 " ' prfx=^$ac_symprfx"
8352 else
8353 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8354 fi
8355 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8356
8357 # Check to see that the pipe works correctly.
8358 pipe_works=no
8359
8360 rm -f conftest*
8361 cat > conftest.$ac_ext <<_LT_EOF
8362 #ifdef __cplusplus
8363 extern "C" {
8364 #endif
8365 char nm_test_var;
8366 void nm_test_func(void);
8367 void nm_test_func(void){}
8368 #ifdef __cplusplus
8369 }
8370 #endif
8371 int main(){nm_test_var='a';nm_test_func();return(0);}
8372 _LT_EOF
8373
8374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8375 (eval $ac_compile) 2>&5
8376 ac_status=$?
8377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8378 test $ac_status = 0; }; then
8379 # Now try to grab the symbols.
8380 nlist=conftest.nm
8381 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8382 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8383 # Try sorting and uniquifying the output.
8384 if sort "$nlist" | uniq > "$nlist"T; then
8385 mv -f "$nlist"T "$nlist"
8386 else
8387 rm -f "$nlist"T
8388 fi
8389
8390 # Make sure that we snagged all the symbols we need.
8391 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8392 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8393 cat <<_LT_EOF > conftest.$ac_ext
8394 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8395 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8396 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8397 relocations are performed -- see ld's documentation on pseudo-relocs. */
8398 # define LT_DLSYM_CONST
8399 #elif defined __osf__
8400 /* This system does not cope well with relocations in const data. */
8401 # define LT_DLSYM_CONST
8402 #else
8403 # define LT_DLSYM_CONST const
8404 #endif
8405
8406 #ifdef __cplusplus
8407 extern "C" {
8408 #endif
8409
8410 _LT_EOF
8411 # Now generate the symbol file.
8412 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8413
8414 cat <<_LT_EOF >> conftest.$ac_ext
8415
8416 /* The mapping between symbol names and symbols. */
8417 LT_DLSYM_CONST struct {
8418 const char *name;
8419 void *address;
8420 }
8421 lt__PROGRAM__LTX_preloaded_symbols[] =
8422 {
8423 { "@PROGRAM@", (void *) 0 },
8424 _LT_EOF
8425 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8426 cat <<\_LT_EOF >> conftest.$ac_ext
8427 {0, (void *) 0}
8428 };
8429
8430 /* This works around a problem in FreeBSD linker */
8431 #ifdef FREEBSD_WORKAROUND
8432 static const void *lt_preloaded_setup() {
8433 return lt__PROGRAM__LTX_preloaded_symbols;
8434 }
8435 #endif
8436
8437 #ifdef __cplusplus
8438 }
8439 #endif
8440 _LT_EOF
8441 # Now try linking the two files.
8442 mv conftest.$ac_objext conftstm.$ac_objext
8443 lt_globsym_save_LIBS=$LIBS
8444 lt_globsym_save_CFLAGS=$CFLAGS
8445 LIBS=conftstm.$ac_objext
8446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8448 (eval $ac_link) 2>&5
8449 ac_status=$?
8450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8451 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8452 pipe_works=yes
8453 fi
8454 LIBS=$lt_globsym_save_LIBS
8455 CFLAGS=$lt_globsym_save_CFLAGS
8456 else
8457 echo "cannot find nm_test_func in $nlist" >&5
8458 fi
8459 else
8460 echo "cannot find nm_test_var in $nlist" >&5
8461 fi
8462 else
8463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8464 fi
8465 else
8466 echo "$progname: failed program was:" >&5
8467 cat conftest.$ac_ext >&5
8468 fi
8469 rm -rf conftest* conftst*
8470
8471 # Do not use the global_symbol_pipe unless it works.
8472 if test yes = "$pipe_works"; then
8473 break
8474 else
8475 lt_cv_sys_global_symbol_pipe=
8476 fi
8477 done
8478
8479 fi
8480
8481 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8482 lt_cv_sys_global_symbol_to_cdecl=
8483 fi
8484 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8486 printf "%s\n" "failed" >&6; }
8487 else
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8489 printf "%s\n" "ok" >&6; }
8490 fi
8491
8492 # Response file support.
8493 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8494 nm_file_list_spec='@'
8495 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8496 nm_file_list_spec='@'
8497 fi
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8536 printf %s "checking for sysroot... " >&6; }
8537
8538 # Check whether --with-sysroot was given.
8539 if test ${with_sysroot+y}
8540 then :
8541 withval=$with_sysroot;
8542 else $as_nop
8543 with_sysroot=no
8544 fi
8545
8546
8547 lt_sysroot=
8548 case $with_sysroot in #(
8549 yes)
8550 if test yes = "$GCC"; then
8551 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8552 fi
8553 ;; #(
8554 /*)
8555 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8556 ;; #(
8557 no|'')
8558 ;; #(
8559 *)
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8561 printf "%s\n" "$with_sysroot" >&6; }
8562 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8563 ;;
8564 esac
8565
8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8567 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8568
8569
8570
8571
8572
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8574 printf %s "checking for a working dd... " >&6; }
8575 if test ${ac_cv_path_lt_DD+y}
8576 then :
8577 printf %s "(cached) " >&6
8578 else $as_nop
8579 printf 0123456789abcdef0123456789abcdef >conftest.i
8580 cat conftest.i conftest.i >conftest2.i
8581 : ${lt_DD:=$DD}
8582 if test -z "$lt_DD"; then
8583 ac_path_lt_DD_found=false
8584 # Loop through the user's path and test for each of PROGNAME-LIST
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588 IFS=$as_save_IFS
8589 case $as_dir in #(((
8590 '') as_dir=./ ;;
8591 */) ;;
8592 *) as_dir=$as_dir/ ;;
8593 esac
8594 for ac_prog in dd
8595 do
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8598 as_fn_executable_p "$ac_path_lt_DD" || continue
8599 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8600 cmp -s conftest.i conftest.out \
8601 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8602 fi
8603 $ac_path_lt_DD_found && break 3
8604 done
8605 done
8606 done
8607 IFS=$as_save_IFS
8608 if test -z "$ac_cv_path_lt_DD"; then
8609 :
8610 fi
8611 else
8612 ac_cv_path_lt_DD=$lt_DD
8613 fi
8614
8615 rm -f conftest.i conftest2.i conftest.out
8616 fi
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8618 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8619
8620
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8622 printf %s "checking how to truncate binary pipes... " >&6; }
8623 if test ${lt_cv_truncate_bin+y}
8624 then :
8625 printf %s "(cached) " >&6
8626 else $as_nop
8627 printf 0123456789abcdef0123456789abcdef >conftest.i
8628 cat conftest.i conftest.i >conftest2.i
8629 lt_cv_truncate_bin=
8630 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8631 cmp -s conftest.i conftest.out \
8632 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8633 fi
8634 rm -f conftest.i conftest2.i conftest.out
8635 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8636 fi
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8638 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8639
8640
8641
8642
8643
8644
8645
8646 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8647 func_cc_basename ()
8648 {
8649 for cc_temp in $*""; do
8650 case $cc_temp in
8651 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8652 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8653 \-*) ;;
8654 *) break;;
8655 esac
8656 done
8657 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8658 }
8659
8660 # Check whether --enable-libtool-lock was given.
8661 if test ${enable_libtool_lock+y}
8662 then :
8663 enableval=$enable_libtool_lock;
8664 fi
8665
8666 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8667
8668 # Some flags need to be propagated to the compiler or linker for good
8669 # libtool support.
8670 case $host in
8671 ia64-*-hpux*)
8672 # Find out what ABI is being produced by ac_compile, and set mode
8673 # options accordingly.
8674 echo 'int i;' > conftest.$ac_ext
8675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8676 (eval $ac_compile) 2>&5
8677 ac_status=$?
8678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8679 test $ac_status = 0; }; then
8680 case `$FILECMD conftest.$ac_objext` in
8681 *ELF-32*)
8682 HPUX_IA64_MODE=32
8683 ;;
8684 *ELF-64*)
8685 HPUX_IA64_MODE=64
8686 ;;
8687 esac
8688 fi
8689 rm -rf conftest*
8690 ;;
8691 *-*-irix6*)
8692 # Find out what ABI is being produced by ac_compile, and set linker
8693 # options accordingly.
8694 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8696 (eval $ac_compile) 2>&5
8697 ac_status=$?
8698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8699 test $ac_status = 0; }; then
8700 if test yes = "$lt_cv_prog_gnu_ld"; then
8701 case `$FILECMD conftest.$ac_objext` in
8702 *32-bit*)
8703 LD="${LD-ld} -melf32bsmip"
8704 ;;
8705 *N32*)
8706 LD="${LD-ld} -melf32bmipn32"
8707 ;;
8708 *64-bit*)
8709 LD="${LD-ld} -melf64bmip"
8710 ;;
8711 esac
8712 else
8713 case `$FILECMD conftest.$ac_objext` in
8714 *32-bit*)
8715 LD="${LD-ld} -32"
8716 ;;
8717 *N32*)
8718 LD="${LD-ld} -n32"
8719 ;;
8720 *64-bit*)
8721 LD="${LD-ld} -64"
8722 ;;
8723 esac
8724 fi
8725 fi
8726 rm -rf conftest*
8727 ;;
8728
8729 mips64*-*linux*)
8730 # Find out what ABI is being produced by ac_compile, and set linker
8731 # options accordingly.
8732 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8734 (eval $ac_compile) 2>&5
8735 ac_status=$?
8736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8737 test $ac_status = 0; }; then
8738 emul=elf
8739 case `$FILECMD conftest.$ac_objext` in
8740 *32-bit*)
8741 emul="${emul}32"
8742 ;;
8743 *64-bit*)
8744 emul="${emul}64"
8745 ;;
8746 esac
8747 case `$FILECMD conftest.$ac_objext` in
8748 *MSB*)
8749 emul="${emul}btsmip"
8750 ;;
8751 *LSB*)
8752 emul="${emul}ltsmip"
8753 ;;
8754 esac
8755 case `$FILECMD conftest.$ac_objext` in
8756 *N32*)
8757 emul="${emul}n32"
8758 ;;
8759 esac
8760 LD="${LD-ld} -m $emul"
8761 fi
8762 rm -rf conftest*
8763 ;;
8764
8765 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8766 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8767 # Find out what ABI is being produced by ac_compile, and set linker
8768 # options accordingly. Note that the listed cases only cover the
8769 # situations where additional linker options are needed (such as when
8770 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8771 # vice versa); the common cases where no linker options are needed do
8772 # not appear in the list.
8773 echo 'int i;' > conftest.$ac_ext
8774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8775 (eval $ac_compile) 2>&5
8776 ac_status=$?
8777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8778 test $ac_status = 0; }; then
8779 case `$FILECMD conftest.o` in
8780 *32-bit*)
8781 case $host in
8782 x86_64-*kfreebsd*-gnu)
8783 LD="${LD-ld} -m elf_i386_fbsd"
8784 ;;
8785 x86_64-*linux*)
8786 case `$FILECMD conftest.o` in
8787 *x86-64*)
8788 LD="${LD-ld} -m elf32_x86_64"
8789 ;;
8790 *)
8791 LD="${LD-ld} -m elf_i386"
8792 ;;
8793 esac
8794 ;;
8795 powerpc64le-*linux*)
8796 LD="${LD-ld} -m elf32lppclinux"
8797 ;;
8798 powerpc64-*linux*)
8799 LD="${LD-ld} -m elf32ppclinux"
8800 ;;
8801 s390x-*linux*)
8802 LD="${LD-ld} -m elf_s390"
8803 ;;
8804 sparc64-*linux*)
8805 LD="${LD-ld} -m elf32_sparc"
8806 ;;
8807 esac
8808 ;;
8809 *64-bit*)
8810 case $host in
8811 x86_64-*kfreebsd*-gnu)
8812 LD="${LD-ld} -m elf_x86_64_fbsd"
8813 ;;
8814 x86_64-*linux*)
8815 LD="${LD-ld} -m elf_x86_64"
8816 ;;
8817 powerpcle-*linux*)
8818 LD="${LD-ld} -m elf64lppc"
8819 ;;
8820 powerpc-*linux*)
8821 LD="${LD-ld} -m elf64ppc"
8822 ;;
8823 s390*-*linux*|s390*-*tpf*)
8824 LD="${LD-ld} -m elf64_s390"
8825 ;;
8826 sparc*-*linux*)
8827 LD="${LD-ld} -m elf64_sparc"
8828 ;;
8829 esac
8830 ;;
8831 esac
8832 fi
8833 rm -rf conftest*
8834 ;;
8835
8836 *-*-sco3.2v5*)
8837 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8838 SAVE_CFLAGS=$CFLAGS
8839 CFLAGS="$CFLAGS -belf"
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8841 printf %s "checking whether the C compiler needs -belf... " >&6; }
8842 if test ${lt_cv_cc_needs_belf+y}
8843 then :
8844 printf %s "(cached) " >&6
8845 else $as_nop
8846 ac_ext=c
8847 ac_cpp='$CPP $CPPFLAGS'
8848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8851
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854
8855 int
8856 main (void)
8857 {
8858
8859 ;
8860 return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"
8864 then :
8865 lt_cv_cc_needs_belf=yes
8866 else $as_nop
8867 lt_cv_cc_needs_belf=no
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8870 conftest$ac_exeext conftest.$ac_ext
8871 ac_ext=c
8872 ac_cpp='$CPP $CPPFLAGS'
8873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8876
8877 fi
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8879 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8880 if test yes != "$lt_cv_cc_needs_belf"; then
8881 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8882 CFLAGS=$SAVE_CFLAGS
8883 fi
8884 ;;
8885 *-*solaris*)
8886 # Find out what ABI is being produced by ac_compile, and set linker
8887 # options accordingly.
8888 echo 'int i;' > conftest.$ac_ext
8889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8890 (eval $ac_compile) 2>&5
8891 ac_status=$?
8892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8893 test $ac_status = 0; }; then
8894 case `$FILECMD conftest.o` in
8895 *64-bit*)
8896 case $lt_cv_prog_gnu_ld in
8897 yes*)
8898 case $host in
8899 i?86-*-solaris*|x86_64-*-solaris*)
8900 LD="${LD-ld} -m elf_x86_64"
8901 ;;
8902 sparc*-*-solaris*)
8903 LD="${LD-ld} -m elf64_sparc"
8904 ;;
8905 esac
8906 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8907 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8908 LD=${LD-ld}_sol2
8909 fi
8910 ;;
8911 *)
8912 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8913 LD="${LD-ld} -64"
8914 fi
8915 ;;
8916 esac
8917 ;;
8918 esac
8919 fi
8920 rm -rf conftest*
8921 ;;
8922 esac
8923
8924 need_locks=$enable_libtool_lock
8925
8926 if test -n "$ac_tool_prefix"; then
8927 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8928 set dummy ${ac_tool_prefix}mt; ac_word=$2
8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 printf %s "checking for $ac_word... " >&6; }
8931 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8932 then :
8933 printf %s "(cached) " >&6
8934 else $as_nop
8935 if test -n "$MANIFEST_TOOL"; then
8936 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8937 else
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 for as_dir in $PATH
8940 do
8941 IFS=$as_save_IFS
8942 case $as_dir in #(((
8943 '') as_dir=./ ;;
8944 */) ;;
8945 *) as_dir=$as_dir/ ;;
8946 esac
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8949 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8951 break 2
8952 fi
8953 done
8954 done
8955 IFS=$as_save_IFS
8956
8957 fi
8958 fi
8959 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8960 if test -n "$MANIFEST_TOOL"; then
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8962 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8963 else
8964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 printf "%s\n" "no" >&6; }
8966 fi
8967
8968
8969 fi
8970 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8971 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8972 # Extract the first word of "mt", so it can be a program name with args.
8973 set dummy mt; ac_word=$2
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8975 printf %s "checking for $ac_word... " >&6; }
8976 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8977 then :
8978 printf %s "(cached) " >&6
8979 else $as_nop
8980 if test -n "$ac_ct_MANIFEST_TOOL"; then
8981 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8982 else
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8985 do
8986 IFS=$as_save_IFS
8987 case $as_dir in #(((
8988 '') as_dir=./ ;;
8989 */) ;;
8990 *) as_dir=$as_dir/ ;;
8991 esac
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8994 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8996 break 2
8997 fi
8998 done
8999 done
9000 IFS=$as_save_IFS
9001
9002 fi
9003 fi
9004 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9005 if test -n "$ac_ct_MANIFEST_TOOL"; then
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9007 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9008 else
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 printf "%s\n" "no" >&6; }
9011 fi
9012
9013 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9014 MANIFEST_TOOL=":"
9015 else
9016 case $cross_compiling:$ac_tool_warned in
9017 yes:)
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9019 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9020 ac_tool_warned=yes ;;
9021 esac
9022 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9023 fi
9024 else
9025 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9026 fi
9027
9028 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9030 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9031 if test ${lt_cv_path_mainfest_tool+y}
9032 then :
9033 printf %s "(cached) " >&6
9034 else $as_nop
9035 lt_cv_path_mainfest_tool=no
9036 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9037 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9038 cat conftest.err >&5
9039 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9040 lt_cv_path_mainfest_tool=yes
9041 fi
9042 rm -f conftest*
9043 fi
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9045 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9046 if test yes != "$lt_cv_path_mainfest_tool"; then
9047 MANIFEST_TOOL=:
9048 fi
9049
9050
9051
9052
9053
9054
9055 case $host_os in
9056 rhapsody* | darwin*)
9057 if test -n "$ac_tool_prefix"; then
9058 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9059 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9061 printf %s "checking for $ac_word... " >&6; }
9062 if test ${ac_cv_prog_DSYMUTIL+y}
9063 then :
9064 printf %s "(cached) " >&6
9065 else $as_nop
9066 if test -n "$DSYMUTIL"; then
9067 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9068 else
9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 for as_dir in $PATH
9071 do
9072 IFS=$as_save_IFS
9073 case $as_dir in #(((
9074 '') as_dir=./ ;;
9075 */) ;;
9076 *) as_dir=$as_dir/ ;;
9077 esac
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9080 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9082 break 2
9083 fi
9084 done
9085 done
9086 IFS=$as_save_IFS
9087
9088 fi
9089 fi
9090 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9091 if test -n "$DSYMUTIL"; then
9092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9093 printf "%s\n" "$DSYMUTIL" >&6; }
9094 else
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 printf "%s\n" "no" >&6; }
9097 fi
9098
9099
9100 fi
9101 if test -z "$ac_cv_prog_DSYMUTIL"; then
9102 ac_ct_DSYMUTIL=$DSYMUTIL
9103 # Extract the first word of "dsymutil", so it can be a program name with args.
9104 set dummy dsymutil; ac_word=$2
9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 printf %s "checking for $ac_word... " >&6; }
9107 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9108 then :
9109 printf %s "(cached) " >&6
9110 else $as_nop
9111 if test -n "$ac_ct_DSYMUTIL"; then
9112 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9113 else
9114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 for as_dir in $PATH
9116 do
9117 IFS=$as_save_IFS
9118 case $as_dir in #(((
9119 '') as_dir=./ ;;
9120 */) ;;
9121 *) as_dir=$as_dir/ ;;
9122 esac
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9125 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129 done
9130 done
9131 IFS=$as_save_IFS
9132
9133 fi
9134 fi
9135 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9136 if test -n "$ac_ct_DSYMUTIL"; then
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9138 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9139 else
9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 printf "%s\n" "no" >&6; }
9142 fi
9143
9144 if test "x$ac_ct_DSYMUTIL" = x; then
9145 DSYMUTIL=":"
9146 else
9147 case $cross_compiling:$ac_tool_warned in
9148 yes:)
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9150 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9151 ac_tool_warned=yes ;;
9152 esac
9153 DSYMUTIL=$ac_ct_DSYMUTIL
9154 fi
9155 else
9156 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9157 fi
9158
9159 if test -n "$ac_tool_prefix"; then
9160 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9161 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 printf %s "checking for $ac_word... " >&6; }
9164 if test ${ac_cv_prog_NMEDIT+y}
9165 then :
9166 printf %s "(cached) " >&6
9167 else $as_nop
9168 if test -n "$NMEDIT"; then
9169 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9170 else
9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172 for as_dir in $PATH
9173 do
9174 IFS=$as_save_IFS
9175 case $as_dir in #(((
9176 '') as_dir=./ ;;
9177 */) ;;
9178 *) as_dir=$as_dir/ ;;
9179 esac
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9182 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9184 break 2
9185 fi
9186 done
9187 done
9188 IFS=$as_save_IFS
9189
9190 fi
9191 fi
9192 NMEDIT=$ac_cv_prog_NMEDIT
9193 if test -n "$NMEDIT"; then
9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9195 printf "%s\n" "$NMEDIT" >&6; }
9196 else
9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198 printf "%s\n" "no" >&6; }
9199 fi
9200
9201
9202 fi
9203 if test -z "$ac_cv_prog_NMEDIT"; then
9204 ac_ct_NMEDIT=$NMEDIT
9205 # Extract the first word of "nmedit", so it can be a program name with args.
9206 set dummy nmedit; ac_word=$2
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208 printf %s "checking for $ac_word... " >&6; }
9209 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9210 then :
9211 printf %s "(cached) " >&6
9212 else $as_nop
9213 if test -n "$ac_ct_NMEDIT"; then
9214 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9215 else
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $PATH
9218 do
9219 IFS=$as_save_IFS
9220 case $as_dir in #(((
9221 '') as_dir=./ ;;
9222 */) ;;
9223 *) as_dir=$as_dir/ ;;
9224 esac
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231 done
9232 done
9233 IFS=$as_save_IFS
9234
9235 fi
9236 fi
9237 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9238 if test -n "$ac_ct_NMEDIT"; then
9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9240 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9241 else
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 printf "%s\n" "no" >&6; }
9244 fi
9245
9246 if test "x$ac_ct_NMEDIT" = x; then
9247 NMEDIT=":"
9248 else
9249 case $cross_compiling:$ac_tool_warned in
9250 yes:)
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9252 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9253 ac_tool_warned=yes ;;
9254 esac
9255 NMEDIT=$ac_ct_NMEDIT
9256 fi
9257 else
9258 NMEDIT="$ac_cv_prog_NMEDIT"
9259 fi
9260
9261 if test -n "$ac_tool_prefix"; then
9262 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9263 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265 printf %s "checking for $ac_word... " >&6; }
9266 if test ${ac_cv_prog_LIPO+y}
9267 then :
9268 printf %s "(cached) " >&6
9269 else $as_nop
9270 if test -n "$LIPO"; then
9271 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9272 else
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9275 do
9276 IFS=$as_save_IFS
9277 case $as_dir in #(((
9278 '') as_dir=./ ;;
9279 */) ;;
9280 *) as_dir=$as_dir/ ;;
9281 esac
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9284 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9286 break 2
9287 fi
9288 done
9289 done
9290 IFS=$as_save_IFS
9291
9292 fi
9293 fi
9294 LIPO=$ac_cv_prog_LIPO
9295 if test -n "$LIPO"; then
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9297 printf "%s\n" "$LIPO" >&6; }
9298 else
9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 printf "%s\n" "no" >&6; }
9301 fi
9302
9303
9304 fi
9305 if test -z "$ac_cv_prog_LIPO"; then
9306 ac_ct_LIPO=$LIPO
9307 # Extract the first word of "lipo", so it can be a program name with args.
9308 set dummy lipo; ac_word=$2
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310 printf %s "checking for $ac_word... " >&6; }
9311 if test ${ac_cv_prog_ac_ct_LIPO+y}
9312 then :
9313 printf %s "(cached) " >&6
9314 else $as_nop
9315 if test -n "$ac_ct_LIPO"; then
9316 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9317 else
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in $PATH
9320 do
9321 IFS=$as_save_IFS
9322 case $as_dir in #(((
9323 '') as_dir=./ ;;
9324 */) ;;
9325 *) as_dir=$as_dir/ ;;
9326 esac
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9329 ac_cv_prog_ac_ct_LIPO="lipo"
9330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9331 break 2
9332 fi
9333 done
9334 done
9335 IFS=$as_save_IFS
9336
9337 fi
9338 fi
9339 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9340 if test -n "$ac_ct_LIPO"; then
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9342 printf "%s\n" "$ac_ct_LIPO" >&6; }
9343 else
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 printf "%s\n" "no" >&6; }
9346 fi
9347
9348 if test "x$ac_ct_LIPO" = x; then
9349 LIPO=":"
9350 else
9351 case $cross_compiling:$ac_tool_warned in
9352 yes:)
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9354 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9355 ac_tool_warned=yes ;;
9356 esac
9357 LIPO=$ac_ct_LIPO
9358 fi
9359 else
9360 LIPO="$ac_cv_prog_LIPO"
9361 fi
9362
9363 if test -n "$ac_tool_prefix"; then
9364 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9365 set dummy ${ac_tool_prefix}otool; ac_word=$2
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 printf %s "checking for $ac_word... " >&6; }
9368 if test ${ac_cv_prog_OTOOL+y}
9369 then :
9370 printf %s "(cached) " >&6
9371 else $as_nop
9372 if test -n "$OTOOL"; then
9373 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9374 else
9375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376 for as_dir in $PATH
9377 do
9378 IFS=$as_save_IFS
9379 case $as_dir in #(((
9380 '') as_dir=./ ;;
9381 */) ;;
9382 *) as_dir=$as_dir/ ;;
9383 esac
9384 for ac_exec_ext in '' $ac_executable_extensions; do
9385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9386 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9388 break 2
9389 fi
9390 done
9391 done
9392 IFS=$as_save_IFS
9393
9394 fi
9395 fi
9396 OTOOL=$ac_cv_prog_OTOOL
9397 if test -n "$OTOOL"; then
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9399 printf "%s\n" "$OTOOL" >&6; }
9400 else
9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9402 printf "%s\n" "no" >&6; }
9403 fi
9404
9405
9406 fi
9407 if test -z "$ac_cv_prog_OTOOL"; then
9408 ac_ct_OTOOL=$OTOOL
9409 # Extract the first word of "otool", so it can be a program name with args.
9410 set dummy otool; ac_word=$2
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412 printf %s "checking for $ac_word... " >&6; }
9413 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9414 then :
9415 printf %s "(cached) " >&6
9416 else $as_nop
9417 if test -n "$ac_ct_OTOOL"; then
9418 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9419 else
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9422 do
9423 IFS=$as_save_IFS
9424 case $as_dir in #(((
9425 '') as_dir=./ ;;
9426 */) ;;
9427 *) as_dir=$as_dir/ ;;
9428 esac
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9431 ac_cv_prog_ac_ct_OTOOL="otool"
9432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9433 break 2
9434 fi
9435 done
9436 done
9437 IFS=$as_save_IFS
9438
9439 fi
9440 fi
9441 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9442 if test -n "$ac_ct_OTOOL"; then
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9444 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9445 else
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 printf "%s\n" "no" >&6; }
9448 fi
9449
9450 if test "x$ac_ct_OTOOL" = x; then
9451 OTOOL=":"
9452 else
9453 case $cross_compiling:$ac_tool_warned in
9454 yes:)
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9456 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9457 ac_tool_warned=yes ;;
9458 esac
9459 OTOOL=$ac_ct_OTOOL
9460 fi
9461 else
9462 OTOOL="$ac_cv_prog_OTOOL"
9463 fi
9464
9465 if test -n "$ac_tool_prefix"; then
9466 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9467 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 printf %s "checking for $ac_word... " >&6; }
9470 if test ${ac_cv_prog_OTOOL64+y}
9471 then :
9472 printf %s "(cached) " >&6
9473 else $as_nop
9474 if test -n "$OTOOL64"; then
9475 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9476 else
9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9479 do
9480 IFS=$as_save_IFS
9481 case $as_dir in #(((
9482 '') as_dir=./ ;;
9483 */) ;;
9484 *) as_dir=$as_dir/ ;;
9485 esac
9486 for ac_exec_ext in '' $ac_executable_extensions; do
9487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9488 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9490 break 2
9491 fi
9492 done
9493 done
9494 IFS=$as_save_IFS
9495
9496 fi
9497 fi
9498 OTOOL64=$ac_cv_prog_OTOOL64
9499 if test -n "$OTOOL64"; then
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9501 printf "%s\n" "$OTOOL64" >&6; }
9502 else
9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 printf "%s\n" "no" >&6; }
9505 fi
9506
9507
9508 fi
9509 if test -z "$ac_cv_prog_OTOOL64"; then
9510 ac_ct_OTOOL64=$OTOOL64
9511 # Extract the first word of "otool64", so it can be a program name with args.
9512 set dummy otool64; ac_word=$2
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514 printf %s "checking for $ac_word... " >&6; }
9515 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9516 then :
9517 printf %s "(cached) " >&6
9518 else $as_nop
9519 if test -n "$ac_ct_OTOOL64"; then
9520 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9521 else
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9524 do
9525 IFS=$as_save_IFS
9526 case $as_dir in #(((
9527 '') as_dir=./ ;;
9528 */) ;;
9529 *) as_dir=$as_dir/ ;;
9530 esac
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9533 ac_cv_prog_ac_ct_OTOOL64="otool64"
9534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9535 break 2
9536 fi
9537 done
9538 done
9539 IFS=$as_save_IFS
9540
9541 fi
9542 fi
9543 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9544 if test -n "$ac_ct_OTOOL64"; then
9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9546 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9547 else
9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 printf "%s\n" "no" >&6; }
9550 fi
9551
9552 if test "x$ac_ct_OTOOL64" = x; then
9553 OTOOL64=":"
9554 else
9555 case $cross_compiling:$ac_tool_warned in
9556 yes:)
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9558 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9559 ac_tool_warned=yes ;;
9560 esac
9561 OTOOL64=$ac_ct_OTOOL64
9562 fi
9563 else
9564 OTOOL64="$ac_cv_prog_OTOOL64"
9565 fi
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9594 printf %s "checking for -single_module linker flag... " >&6; }
9595 if test ${lt_cv_apple_cc_single_mod+y}
9596 then :
9597 printf %s "(cached) " >&6
9598 else $as_nop
9599 lt_cv_apple_cc_single_mod=no
9600 if test -z "$LT_MULTI_MODULE"; then
9601 # By default we will add the -single_module flag. You can override
9602 # by either setting the environment variable LT_MULTI_MODULE
9603 # non-empty at configure time, or by adding -multi_module to the
9604 # link flags.
9605 rm -rf libconftest.dylib*
9606 echo "int foo(void){return 1;}" > conftest.c
9607 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9608 -dynamiclib -Wl,-single_module conftest.c" >&5
9609 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9610 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9611 _lt_result=$?
9612 # If there is a non-empty error log, and "single_module"
9613 # appears in it, assume the flag caused a linker warning
9614 if test -s conftest.err && $GREP single_module conftest.err; then
9615 cat conftest.err >&5
9616 # Otherwise, if the output was created with a 0 exit code from
9617 # the compiler, it worked.
9618 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9619 lt_cv_apple_cc_single_mod=yes
9620 else
9621 cat conftest.err >&5
9622 fi
9623 rm -rf libconftest.dylib*
9624 rm -f conftest.*
9625 fi
9626 fi
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9628 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9629
9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9631 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9632 if test ${lt_cv_ld_exported_symbols_list+y}
9633 then :
9634 printf %s "(cached) " >&6
9635 else $as_nop
9636 lt_cv_ld_exported_symbols_list=no
9637 save_LDFLAGS=$LDFLAGS
9638 echo "_main" > conftest.sym
9639 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642
9643 int
9644 main (void)
9645 {
9646
9647 ;
9648 return 0;
9649 }
9650 _ACEOF
9651 if ac_fn_c_try_link "$LINENO"
9652 then :
9653 lt_cv_ld_exported_symbols_list=yes
9654 else $as_nop
9655 lt_cv_ld_exported_symbols_list=no
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LDFLAGS=$save_LDFLAGS
9660
9661 fi
9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9663 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9664
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9666 printf %s "checking for -force_load linker flag... " >&6; }
9667 if test ${lt_cv_ld_force_load+y}
9668 then :
9669 printf %s "(cached) " >&6
9670 else $as_nop
9671 lt_cv_ld_force_load=no
9672 cat > conftest.c << _LT_EOF
9673 int forced_loaded() { return 2;}
9674 _LT_EOF
9675 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9676 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9677 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9678 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9679 echo "$RANLIB libconftest.a" >&5
9680 $RANLIB libconftest.a 2>&5
9681 cat > conftest.c << _LT_EOF
9682 int main() { return 0;}
9683 _LT_EOF
9684 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9685 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9686 _lt_result=$?
9687 if test -s conftest.err && $GREP force_load conftest.err; then
9688 cat conftest.err >&5
9689 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9690 lt_cv_ld_force_load=yes
9691 else
9692 cat conftest.err >&5
9693 fi
9694 rm -f conftest.err libconftest.a conftest conftest.c
9695 rm -rf conftest.dSYM
9696
9697 fi
9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9699 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9700 case $host_os in
9701 rhapsody* | darwin1.[012])
9702 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9703 darwin1.*)
9704 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9705 darwin*)
9706 case $MACOSX_DEPLOYMENT_TARGET,$host in
9707 10.[012],*|,*powerpc*-darwin[5-8]*)
9708 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9709 *)
9710 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9711 esac
9712 ;;
9713 esac
9714 if test yes = "$lt_cv_apple_cc_single_mod"; then
9715 _lt_dar_single_mod='$single_module'
9716 fi
9717 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9718 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9719 else
9720 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9721 fi
9722 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9723 _lt_dsymutil='~$DSYMUTIL $lib || :'
9724 else
9725 _lt_dsymutil=
9726 fi
9727 ;;
9728 esac
9729
9730 # func_munge_path_list VARIABLE PATH
9731 # -----------------------------------
9732 # VARIABLE is name of variable containing _space_ separated list of
9733 # directories to be munged by the contents of PATH, which is string
9734 # having a format:
9735 # "DIR[:DIR]:"
9736 # string "DIR[ DIR]" will be prepended to VARIABLE
9737 # ":DIR[:DIR]"
9738 # string "DIR[ DIR]" will be appended to VARIABLE
9739 # "DIRP[:DIRP]::[DIRA:]DIRA"
9740 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9741 # "DIRA[ DIRA]" will be appended to VARIABLE
9742 # "DIR[:DIR]"
9743 # VARIABLE will be replaced by "DIR[ DIR]"
9744 func_munge_path_list ()
9745 {
9746 case x$2 in
9747 x)
9748 ;;
9749 *:)
9750 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9751 ;;
9752 x:*)
9753 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9754 ;;
9755 *::*)
9756 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9757 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9758 ;;
9759 *)
9760 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9761 ;;
9762 esac
9763 }
9764
9765 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9766 "
9767 if test "x$ac_cv_header_dlfcn_h" = xyes
9768 then :
9769 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9770
9771 fi
9772
9773
9774
9775
9776
9777 # Set options
9778 # Check whether --enable-static was given.
9779 if test ${enable_static+y}
9780 then :
9781 enableval=$enable_static; p=${PACKAGE-default}
9782 case $enableval in
9783 yes) enable_static=yes ;;
9784 no) enable_static=no ;;
9785 *)
9786 enable_static=no
9787 # Look at the argument we got. We use all the common list separators.
9788 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9789 for pkg in $enableval; do
9790 IFS=$lt_save_ifs
9791 if test "X$pkg" = "X$p"; then
9792 enable_static=yes
9793 fi
9794 done
9795 IFS=$lt_save_ifs
9796 ;;
9797 esac
9798 else $as_nop
9799 enable_static=no
9800 fi
9801
9802
9803
9804
9805
9806
9807
9808 enable_win32_dll=yes
9809
9810 case $host in
9811 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9812 if test -n "$ac_tool_prefix"; then
9813 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9814 set dummy ${ac_tool_prefix}as; ac_word=$2
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 printf %s "checking for $ac_word... " >&6; }
9817 if test ${ac_cv_prog_AS+y}
9818 then :
9819 printf %s "(cached) " >&6
9820 else $as_nop
9821 if test -n "$AS"; then
9822 ac_cv_prog_AS="$AS" # Let the user override the test.
9823 else
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9826 do
9827 IFS=$as_save_IFS
9828 case $as_dir in #(((
9829 '') as_dir=./ ;;
9830 */) ;;
9831 *) as_dir=$as_dir/ ;;
9832 esac
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9835 ac_cv_prog_AS="${ac_tool_prefix}as"
9836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9837 break 2
9838 fi
9839 done
9840 done
9841 IFS=$as_save_IFS
9842
9843 fi
9844 fi
9845 AS=$ac_cv_prog_AS
9846 if test -n "$AS"; then
9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9848 printf "%s\n" "$AS" >&6; }
9849 else
9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 printf "%s\n" "no" >&6; }
9852 fi
9853
9854
9855 fi
9856 if test -z "$ac_cv_prog_AS"; then
9857 ac_ct_AS=$AS
9858 # Extract the first word of "as", so it can be a program name with args.
9859 set dummy as; ac_word=$2
9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 printf %s "checking for $ac_word... " >&6; }
9862 if test ${ac_cv_prog_ac_ct_AS+y}
9863 then :
9864 printf %s "(cached) " >&6
9865 else $as_nop
9866 if test -n "$ac_ct_AS"; then
9867 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9868 else
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9871 do
9872 IFS=$as_save_IFS
9873 case $as_dir in #(((
9874 '') as_dir=./ ;;
9875 */) ;;
9876 *) as_dir=$as_dir/ ;;
9877 esac
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9880 ac_cv_prog_ac_ct_AS="as"
9881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9882 break 2
9883 fi
9884 done
9885 done
9886 IFS=$as_save_IFS
9887
9888 fi
9889 fi
9890 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9891 if test -n "$ac_ct_AS"; then
9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9893 printf "%s\n" "$ac_ct_AS" >&6; }
9894 else
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 printf "%s\n" "no" >&6; }
9897 fi
9898
9899 if test "x$ac_ct_AS" = x; then
9900 AS="false"
9901 else
9902 case $cross_compiling:$ac_tool_warned in
9903 yes:)
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9906 ac_tool_warned=yes ;;
9907 esac
9908 AS=$ac_ct_AS
9909 fi
9910 else
9911 AS="$ac_cv_prog_AS"
9912 fi
9913
9914 if test -n "$ac_tool_prefix"; then
9915 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9916 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 printf %s "checking for $ac_word... " >&6; }
9919 if test ${ac_cv_prog_DLLTOOL+y}
9920 then :
9921 printf %s "(cached) " >&6
9922 else $as_nop
9923 if test -n "$DLLTOOL"; then
9924 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9925 else
9926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 for as_dir in $PATH
9928 do
9929 IFS=$as_save_IFS
9930 case $as_dir in #(((
9931 '') as_dir=./ ;;
9932 */) ;;
9933 *) as_dir=$as_dir/ ;;
9934 esac
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9937 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9939 break 2
9940 fi
9941 done
9942 done
9943 IFS=$as_save_IFS
9944
9945 fi
9946 fi
9947 DLLTOOL=$ac_cv_prog_DLLTOOL
9948 if test -n "$DLLTOOL"; then
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9950 printf "%s\n" "$DLLTOOL" >&6; }
9951 else
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 printf "%s\n" "no" >&6; }
9954 fi
9955
9956
9957 fi
9958 if test -z "$ac_cv_prog_DLLTOOL"; then
9959 ac_ct_DLLTOOL=$DLLTOOL
9960 # Extract the first word of "dlltool", so it can be a program name with args.
9961 set dummy dlltool; ac_word=$2
9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963 printf %s "checking for $ac_word... " >&6; }
9964 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9965 then :
9966 printf %s "(cached) " >&6
9967 else $as_nop
9968 if test -n "$ac_ct_DLLTOOL"; then
9969 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9970 else
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9973 do
9974 IFS=$as_save_IFS
9975 case $as_dir in #(((
9976 '') as_dir=./ ;;
9977 */) ;;
9978 *) as_dir=$as_dir/ ;;
9979 esac
9980 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9982 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9984 break 2
9985 fi
9986 done
9987 done
9988 IFS=$as_save_IFS
9989
9990 fi
9991 fi
9992 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9993 if test -n "$ac_ct_DLLTOOL"; then
9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9995 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9996 else
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 printf "%s\n" "no" >&6; }
9999 fi
10000
10001 if test "x$ac_ct_DLLTOOL" = x; then
10002 DLLTOOL="false"
10003 else
10004 case $cross_compiling:$ac_tool_warned in
10005 yes:)
10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10007 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10008 ac_tool_warned=yes ;;
10009 esac
10010 DLLTOOL=$ac_ct_DLLTOOL
10011 fi
10012 else
10013 DLLTOOL="$ac_cv_prog_DLLTOOL"
10014 fi
10015
10016 if test -n "$ac_tool_prefix"; then
10017 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10018 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 printf %s "checking for $ac_word... " >&6; }
10021 if test ${ac_cv_prog_OBJDUMP+y}
10022 then :
10023 printf %s "(cached) " >&6
10024 else $as_nop
10025 if test -n "$OBJDUMP"; then
10026 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10027 else
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10030 do
10031 IFS=$as_save_IFS
10032 case $as_dir in #(((
10033 '') as_dir=./ ;;
10034 */) ;;
10035 *) as_dir=$as_dir/ ;;
10036 esac
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10039 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043 done
10044 done
10045 IFS=$as_save_IFS
10046
10047 fi
10048 fi
10049 OBJDUMP=$ac_cv_prog_OBJDUMP
10050 if test -n "$OBJDUMP"; then
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10052 printf "%s\n" "$OBJDUMP" >&6; }
10053 else
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 printf "%s\n" "no" >&6; }
10056 fi
10057
10058
10059 fi
10060 if test -z "$ac_cv_prog_OBJDUMP"; then
10061 ac_ct_OBJDUMP=$OBJDUMP
10062 # Extract the first word of "objdump", so it can be a program name with args.
10063 set dummy objdump; ac_word=$2
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065 printf %s "checking for $ac_word... " >&6; }
10066 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10067 then :
10068 printf %s "(cached) " >&6
10069 else $as_nop
10070 if test -n "$ac_ct_OBJDUMP"; then
10071 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10072 else
10073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in $PATH
10075 do
10076 IFS=$as_save_IFS
10077 case $as_dir in #(((
10078 '') as_dir=./ ;;
10079 */) ;;
10080 *) as_dir=$as_dir/ ;;
10081 esac
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10084 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088 done
10089 done
10090 IFS=$as_save_IFS
10091
10092 fi
10093 fi
10094 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10095 if test -n "$ac_ct_OBJDUMP"; then
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10097 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10098 else
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 printf "%s\n" "no" >&6; }
10101 fi
10102
10103 if test "x$ac_ct_OBJDUMP" = x; then
10104 OBJDUMP="false"
10105 else
10106 case $cross_compiling:$ac_tool_warned in
10107 yes:)
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110 ac_tool_warned=yes ;;
10111 esac
10112 OBJDUMP=$ac_ct_OBJDUMP
10113 fi
10114 else
10115 OBJDUMP="$ac_cv_prog_OBJDUMP"
10116 fi
10117
10118 ;;
10119 esac
10120
10121 test -z "$AS" && AS=as
10122
10123
10124
10125
10126
10127 test -z "$DLLTOOL" && DLLTOOL=dlltool
10128
10129
10130
10131
10132
10133 test -z "$OBJDUMP" && OBJDUMP=objdump
10134
10135
10136
10137
10138
10139
10140
10141 enable_dlopen=no
10142
10143
10144
10145 # Check whether --enable-shared was given.
10146 if test ${enable_shared+y}
10147 then :
10148 enableval=$enable_shared; p=${PACKAGE-default}
10149 case $enableval in
10150 yes) enable_shared=yes ;;
10151 no) enable_shared=no ;;
10152 *)
10153 enable_shared=no
10154 # Look at the argument we got. We use all the common list separators.
10155 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10156 for pkg in $enableval; do
10157 IFS=$lt_save_ifs
10158 if test "X$pkg" = "X$p"; then
10159 enable_shared=yes
10160 fi
10161 done
10162 IFS=$lt_save_ifs
10163 ;;
10164 esac
10165 else $as_nop
10166 enable_shared=yes
10167 fi
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179 # Check whether --with-pic was given.
10180 if test ${with_pic+y}
10181 then :
10182 withval=$with_pic; lt_p=${PACKAGE-default}
10183 case $withval in
10184 yes|no) pic_mode=$withval ;;
10185 *)
10186 pic_mode=default
10187 # Look at the argument we got. We use all the common list separators.
10188 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10189 for lt_pkg in $withval; do
10190 IFS=$lt_save_ifs
10191 if test "X$lt_pkg" = "X$lt_p"; then
10192 pic_mode=yes
10193 fi
10194 done
10195 IFS=$lt_save_ifs
10196 ;;
10197 esac
10198 else $as_nop
10199 pic_mode=default
10200 fi
10201
10202
10203
10204
10205
10206
10207
10208
10209 # Check whether --enable-fast-install was given.
10210 if test ${enable_fast_install+y}
10211 then :
10212 enableval=$enable_fast_install; p=${PACKAGE-default}
10213 case $enableval in
10214 yes) enable_fast_install=yes ;;
10215 no) enable_fast_install=no ;;
10216 *)
10217 enable_fast_install=no
10218 # Look at the argument we got. We use all the common list separators.
10219 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10220 for pkg in $enableval; do
10221 IFS=$lt_save_ifs
10222 if test "X$pkg" = "X$p"; then
10223 enable_fast_install=yes
10224 fi
10225 done
10226 IFS=$lt_save_ifs
10227 ;;
10228 esac
10229 else $as_nop
10230 enable_fast_install=yes
10231 fi
10232
10233
10234
10235
10236
10237
10238
10239
10240 shared_archive_member_spec=
10241 case $host,$enable_shared in
10242 power*-*-aix[5-9]*,yes)
10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10244 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10245
10246 # Check whether --with-aix-soname was given.
10247 if test ${with_aix_soname+y}
10248 then :
10249 withval=$with_aix_soname; case $withval in
10250 aix|svr4|both)
10251 ;;
10252 *)
10253 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10254 ;;
10255 esac
10256 lt_cv_with_aix_soname=$with_aix_soname
10257 else $as_nop
10258 if test ${lt_cv_with_aix_soname+y}
10259 then :
10260 printf %s "(cached) " >&6
10261 else $as_nop
10262 lt_cv_with_aix_soname=aix
10263 fi
10264
10265 with_aix_soname=$lt_cv_with_aix_soname
10266 fi
10267
10268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10269 printf "%s\n" "$with_aix_soname" >&6; }
10270 if test aix != "$with_aix_soname"; then
10271 # For the AIX way of multilib, we name the shared archive member
10272 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10273 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10274 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10275 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10276 if test 64 = "${OBJECT_MODE-32}"; then
10277 shared_archive_member_spec=shr_64
10278 else
10279 shared_archive_member_spec=shr
10280 fi
10281 fi
10282 ;;
10283 *)
10284 with_aix_soname=aix
10285 ;;
10286 esac
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297 # This can be used to rebuild libtool when needed
10298 LIBTOOL_DEPS=$ltmain
10299
10300 # Always use our own libtool.
10301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332 test -z "$LN_S" && LN_S="ln -s"
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347 if test -n "${ZSH_VERSION+set}"; then
10348 setopt NO_GLOB_SUBST
10349 fi
10350
10351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10352 printf %s "checking for objdir... " >&6; }
10353 if test ${lt_cv_objdir+y}
10354 then :
10355 printf %s "(cached) " >&6
10356 else $as_nop
10357 rm -f .libs 2>/dev/null
10358 mkdir .libs 2>/dev/null
10359 if test -d .libs; then
10360 lt_cv_objdir=.libs
10361 else
10362 # MS-DOS does not allow filenames that begin with a dot.
10363 lt_cv_objdir=_libs
10364 fi
10365 rmdir .libs 2>/dev/null
10366 fi
10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10368 printf "%s\n" "$lt_cv_objdir" >&6; }
10369 objdir=$lt_cv_objdir
10370
10371
10372
10373
10374
10375 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10376
10377
10378
10379
10380 case $host_os in
10381 aix3*)
10382 # AIX sometimes has problems with the GCC collect2 program. For some
10383 # reason, if we set the COLLECT_NAMES environment variable, the problems
10384 # vanish in a puff of smoke.
10385 if test set != "${COLLECT_NAMES+set}"; then
10386 COLLECT_NAMES=
10387 export COLLECT_NAMES
10388 fi
10389 ;;
10390 esac
10391
10392 # Global variables:
10393 ofile=libtool
10394 can_build_shared=yes
10395
10396 # All known linkers require a '.a' archive for static linking (except MSVC and
10397 # ICC, which need '.lib').
10398 libext=a
10399
10400 with_gnu_ld=$lt_cv_prog_gnu_ld
10401
10402 old_CC=$CC
10403 old_CFLAGS=$CFLAGS
10404
10405 # Set sane defaults for various variables
10406 test -z "$CC" && CC=cc
10407 test -z "$LTCC" && LTCC=$CC
10408 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10409 test -z "$LD" && LD=ld
10410 test -z "$ac_objext" && ac_objext=o
10411
10412 func_cc_basename $compiler
10413 cc_basename=$func_cc_basename_result
10414
10415
10416 # Only perform the check for file, if the check method requires it
10417 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10418 case $deplibs_check_method in
10419 file_magic*)
10420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10422 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10423 if test ${lt_cv_path_MAGIC_CMD+y}
10424 then :
10425 printf %s "(cached) " >&6
10426 else $as_nop
10427 case $MAGIC_CMD in
10428 [\\/*] | ?:[\\/]*)
10429 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10430 ;;
10431 *)
10432 lt_save_MAGIC_CMD=$MAGIC_CMD
10433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10435 for ac_dir in $ac_dummy; do
10436 IFS=$lt_save_ifs
10437 test -z "$ac_dir" && ac_dir=.
10438 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10439 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10440 if test -n "$file_magic_test_file"; then
10441 case $deplibs_check_method in
10442 "file_magic "*)
10443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10444 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10446 $EGREP "$file_magic_regex" > /dev/null; then
10447 :
10448 else
10449 cat <<_LT_EOF 1>&2
10450
10451 *** Warning: the command libtool uses to detect shared libraries,
10452 *** $file_magic_cmd, produces output that libtool cannot recognize.
10453 *** The result is that libtool may fail to recognize shared libraries
10454 *** as such. This will affect the creation of libtool libraries that
10455 *** depend on shared libraries, but programs linked with such libtool
10456 *** libraries will work regardless of this problem. Nevertheless, you
10457 *** may want to report the problem to your system manager and/or to
10458 *** [email protected]
10459
10460 _LT_EOF
10461 fi ;;
10462 esac
10463 fi
10464 break
10465 fi
10466 done
10467 IFS=$lt_save_ifs
10468 MAGIC_CMD=$lt_save_MAGIC_CMD
10469 ;;
10470 esac
10471 fi
10472
10473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10474 if test -n "$MAGIC_CMD"; then
10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10476 printf "%s\n" "$MAGIC_CMD" >&6; }
10477 else
10478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 printf "%s\n" "no" >&6; }
10480 fi
10481
10482
10483
10484
10485
10486 if test -z "$lt_cv_path_MAGIC_CMD"; then
10487 if test -n "$ac_tool_prefix"; then
10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10489 printf %s "checking for file... " >&6; }
10490 if test ${lt_cv_path_MAGIC_CMD+y}
10491 then :
10492 printf %s "(cached) " >&6
10493 else $as_nop
10494 case $MAGIC_CMD in
10495 [\\/*] | ?:[\\/]*)
10496 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10497 ;;
10498 *)
10499 lt_save_MAGIC_CMD=$MAGIC_CMD
10500 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10502 for ac_dir in $ac_dummy; do
10503 IFS=$lt_save_ifs
10504 test -z "$ac_dir" && ac_dir=.
10505 if test -f "$ac_dir/file"; then
10506 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10507 if test -n "$file_magic_test_file"; then
10508 case $deplibs_check_method in
10509 "file_magic "*)
10510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10511 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10513 $EGREP "$file_magic_regex" > /dev/null; then
10514 :
10515 else
10516 cat <<_LT_EOF 1>&2
10517
10518 *** Warning: the command libtool uses to detect shared libraries,
10519 *** $file_magic_cmd, produces output that libtool cannot recognize.
10520 *** The result is that libtool may fail to recognize shared libraries
10521 *** as such. This will affect the creation of libtool libraries that
10522 *** depend on shared libraries, but programs linked with such libtool
10523 *** libraries will work regardless of this problem. Nevertheless, you
10524 *** may want to report the problem to your system manager and/or to
10525 *** [email protected]
10526
10527 _LT_EOF
10528 fi ;;
10529 esac
10530 fi
10531 break
10532 fi
10533 done
10534 IFS=$lt_save_ifs
10535 MAGIC_CMD=$lt_save_MAGIC_CMD
10536 ;;
10537 esac
10538 fi
10539
10540 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10541 if test -n "$MAGIC_CMD"; then
10542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10543 printf "%s\n" "$MAGIC_CMD" >&6; }
10544 else
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 printf "%s\n" "no" >&6; }
10547 fi
10548
10549
10550 else
10551 MAGIC_CMD=:
10552 fi
10553 fi
10554
10555 fi
10556 ;;
10557 esac
10558
10559 # Use C for the default configuration in the libtool script
10560
10561 lt_save_CC=$CC
10562 ac_ext=c
10563 ac_cpp='$CPP $CPPFLAGS'
10564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10567
10568
10569 # Source file extension for C test sources.
10570 ac_ext=c
10571
10572 # Object file extension for compiled C test sources.
10573 objext=o
10574 objext=$objext
10575
10576 # Code to be used in simple compile tests
10577 lt_simple_compile_test_code="int some_variable = 0;"
10578
10579 # Code to be used in simple link tests
10580 lt_simple_link_test_code='int main(){return(0);}'
10581
10582
10583
10584
10585
10586
10587
10588 # If no C compiler was specified, use CC.
10589 LTCC=${LTCC-"$CC"}
10590
10591 # If no C compiler flags were specified, use CFLAGS.
10592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10593
10594 # Allow CC to be a program name with arguments.
10595 compiler=$CC
10596
10597 # Save the default compiler, since it gets overwritten when the other
10598 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10599 compiler_DEFAULT=$CC
10600
10601 # save warnings/boilerplate of simple test code
10602 ac_outfile=conftest.$ac_objext
10603 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10604 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10605 _lt_compiler_boilerplate=`cat conftest.err`
10606 $RM conftest*
10607
10608 ac_outfile=conftest.$ac_objext
10609 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10610 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10611 _lt_linker_boilerplate=`cat conftest.err`
10612 $RM -r conftest*
10613
10614
10615 ## CAVEAT EMPTOR:
10616 ## There is no encapsulation within the following macros, do not change
10617 ## the running order or otherwise move them around unless you know exactly
10618 ## what you are doing...
10619 if test -n "$compiler"; then
10620
10621 lt_prog_compiler_no_builtin_flag=
10622
10623 if test yes = "$GCC"; then
10624 case $cc_basename in
10625 nvcc*)
10626 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10627 *)
10628 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10629 esac
10630
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10632 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10633 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10634 then :
10635 printf %s "(cached) " >&6
10636 else $as_nop
10637 lt_cv_prog_compiler_rtti_exceptions=no
10638 ac_outfile=conftest.$ac_objext
10639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10640 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10641 # Insert the option either (1) after the last *FLAGS variable, or
10642 # (2) before a word containing "conftest.", or (3) at the end.
10643 # Note that $ac_compile itself does not contain backslashes and begins
10644 # with a dollar sign (not a hyphen), so the echo should work correctly.
10645 # The option is referenced via a variable to avoid confusing sed.
10646 lt_compile=`echo "$ac_compile" | $SED \
10647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10649 -e 's:$: $lt_compiler_flag:'`
10650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10651 (eval "$lt_compile" 2>conftest.err)
10652 ac_status=$?
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 if (exit $ac_status) && test -s "$ac_outfile"; then
10656 # The compiler can only warn and ignore the option if not recognized
10657 # So say no if there are warnings other than the usual output.
10658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10660 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10661 lt_cv_prog_compiler_rtti_exceptions=yes
10662 fi
10663 fi
10664 $RM conftest*
10665
10666 fi
10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10668 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10669
10670 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10671 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10672 else
10673 :
10674 fi
10675
10676 fi
10677
10678
10679
10680
10681
10682
10683 lt_prog_compiler_wl=
10684 lt_prog_compiler_pic=
10685 lt_prog_compiler_static=
10686
10687
10688 if test yes = "$GCC"; then
10689 lt_prog_compiler_wl='-Wl,'
10690 lt_prog_compiler_static='-static'
10691
10692 case $host_os in
10693 aix*)
10694 # All AIX code is PIC.
10695 if test ia64 = "$host_cpu"; then
10696 # AIX 5 now supports IA64 processor
10697 lt_prog_compiler_static='-Bstatic'
10698 fi
10699 lt_prog_compiler_pic='-fPIC'
10700 ;;
10701
10702 amigaos*)
10703 case $host_cpu in
10704 powerpc)
10705 # see comment about AmigaOS4 .so support
10706 lt_prog_compiler_pic='-fPIC'
10707 ;;
10708 m68k)
10709 # FIXME: we need at least 68020 code to build shared libraries, but
10710 # adding the '-m68020' flag to GCC prevents building anything better,
10711 # like '-m68040'.
10712 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10713 ;;
10714 esac
10715 ;;
10716
10717 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10718 # PIC is the default for these OSes.
10719 ;;
10720
10721 mingw* | cygwin* | pw32* | os2* | cegcc*)
10722 # This hack is so that the source file can tell whether it is being
10723 # built for inclusion in a dll (and should export symbols for example).
10724 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10725 # (--disable-auto-import) libraries
10726 lt_prog_compiler_pic='-DDLL_EXPORT'
10727 case $host_os in
10728 os2*)
10729 lt_prog_compiler_static='$wl-static'
10730 ;;
10731 esac
10732 ;;
10733
10734 darwin* | rhapsody*)
10735 # PIC is the default on this platform
10736 # Common symbols not allowed in MH_DYLIB files
10737 lt_prog_compiler_pic='-fno-common'
10738 ;;
10739
10740 haiku*)
10741 # PIC is the default for Haiku.
10742 # The "-static" flag exists, but is broken.
10743 lt_prog_compiler_static=
10744 ;;
10745
10746 hpux*)
10747 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10748 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10749 # sets the default TLS model and affects inlining.
10750 case $host_cpu in
10751 hppa*64*)
10752 # +Z the default
10753 ;;
10754 *)
10755 lt_prog_compiler_pic='-fPIC'
10756 ;;
10757 esac
10758 ;;
10759
10760 interix[3-9]*)
10761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10762 # Instead, we relocate shared libraries at runtime.
10763 ;;
10764
10765 msdosdjgpp*)
10766 # Just because we use GCC doesn't mean we suddenly get shared libraries
10767 # on systems that don't support them.
10768 lt_prog_compiler_can_build_shared=no
10769 enable_shared=no
10770 ;;
10771
10772 *nto* | *qnx*)
10773 # QNX uses GNU C++, but need to define -shared option too, otherwise
10774 # it will coredump.
10775 lt_prog_compiler_pic='-fPIC -shared'
10776 ;;
10777
10778 sysv4*MP*)
10779 if test -d /usr/nec; then
10780 lt_prog_compiler_pic=-Kconform_pic
10781 fi
10782 ;;
10783
10784 *)
10785 lt_prog_compiler_pic='-fPIC'
10786 ;;
10787 esac
10788
10789 case $cc_basename in
10790 nvcc*) # Cuda Compiler Driver 2.2
10791 lt_prog_compiler_wl='-Xlinker '
10792 if test -n "$lt_prog_compiler_pic"; then
10793 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10794 fi
10795 ;;
10796 esac
10797 else
10798 # PORTME Check for flag to pass linker flags through the system compiler.
10799 case $host_os in
10800 aix*)
10801 lt_prog_compiler_wl='-Wl,'
10802 if test ia64 = "$host_cpu"; then
10803 # AIX 5 now supports IA64 processor
10804 lt_prog_compiler_static='-Bstatic'
10805 else
10806 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10807 fi
10808 ;;
10809
10810 darwin* | rhapsody*)
10811 # PIC is the default on this platform
10812 # Common symbols not allowed in MH_DYLIB files
10813 lt_prog_compiler_pic='-fno-common'
10814 case $cc_basename in
10815 nagfor*)
10816 # NAG Fortran compiler
10817 lt_prog_compiler_wl='-Wl,-Wl,,'
10818 lt_prog_compiler_pic='-PIC'
10819 lt_prog_compiler_static='-Bstatic'
10820 ;;
10821 esac
10822 ;;
10823
10824 mingw* | cygwin* | pw32* | os2* | cegcc*)
10825 # This hack is so that the source file can tell whether it is being
10826 # built for inclusion in a dll (and should export symbols for example).
10827 lt_prog_compiler_pic='-DDLL_EXPORT'
10828 case $host_os in
10829 os2*)
10830 lt_prog_compiler_static='$wl-static'
10831 ;;
10832 esac
10833 ;;
10834
10835 hpux9* | hpux10* | hpux11*)
10836 lt_prog_compiler_wl='-Wl,'
10837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10838 # not for PA HP-UX.
10839 case $host_cpu in
10840 hppa*64*|ia64*)
10841 # +Z the default
10842 ;;
10843 *)
10844 lt_prog_compiler_pic='+Z'
10845 ;;
10846 esac
10847 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10848 lt_prog_compiler_static='$wl-a ${wl}archive'
10849 ;;
10850
10851 irix5* | irix6* | nonstopux*)
10852 lt_prog_compiler_wl='-Wl,'
10853 # PIC (with -KPIC) is the default.
10854 lt_prog_compiler_static='-non_shared'
10855 ;;
10856
10857 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10858 case $cc_basename in
10859 # old Intel for x86_64, which still supported -KPIC.
10860 ecc*)
10861 lt_prog_compiler_wl='-Wl,'
10862 lt_prog_compiler_pic='-KPIC'
10863 lt_prog_compiler_static='-static'
10864 ;;
10865 # flang / f18. f95 an alias for gfortran or flang on Debian
10866 flang* | f18* | f95*)
10867 lt_prog_compiler_wl='-Wl,'
10868 lt_prog_compiler_pic='-fPIC'
10869 lt_prog_compiler_static='-static'
10870 ;;
10871 # icc used to be incompatible with GCC.
10872 # ICC 10 doesn't accept -KPIC any more.
10873 icc* | ifort*)
10874 lt_prog_compiler_wl='-Wl,'
10875 lt_prog_compiler_pic='-fPIC'
10876 lt_prog_compiler_static='-static'
10877 ;;
10878 # Lahey Fortran 8.1.
10879 lf95*)
10880 lt_prog_compiler_wl='-Wl,'
10881 lt_prog_compiler_pic='--shared'
10882 lt_prog_compiler_static='--static'
10883 ;;
10884 nagfor*)
10885 # NAG Fortran compiler
10886 lt_prog_compiler_wl='-Wl,-Wl,,'
10887 lt_prog_compiler_pic='-PIC'
10888 lt_prog_compiler_static='-Bstatic'
10889 ;;
10890 tcc*)
10891 # Fabrice Bellard et al's Tiny C Compiler
10892 lt_prog_compiler_wl='-Wl,'
10893 lt_prog_compiler_pic='-fPIC'
10894 lt_prog_compiler_static='-static'
10895 ;;
10896 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10897 # Portland Group compilers (*not* the Pentium gcc compiler,
10898 # which looks to be a dead project)
10899 lt_prog_compiler_wl='-Wl,'
10900 lt_prog_compiler_pic='-fpic'
10901 lt_prog_compiler_static='-Bstatic'
10902 ;;
10903 ccc*)
10904 lt_prog_compiler_wl='-Wl,'
10905 # All Alpha code is PIC.
10906 lt_prog_compiler_static='-non_shared'
10907 ;;
10908 xl* | bgxl* | bgf* | mpixl*)
10909 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10910 lt_prog_compiler_wl='-Wl,'
10911 lt_prog_compiler_pic='-qpic'
10912 lt_prog_compiler_static='-qstaticlink'
10913 ;;
10914 *)
10915 case `$CC -V 2>&1 | $SED 5q` in
10916 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10917 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10918 lt_prog_compiler_pic='-KPIC'
10919 lt_prog_compiler_static='-Bstatic'
10920 lt_prog_compiler_wl=''
10921 ;;
10922 *Sun\ F* | *Sun*Fortran*)
10923 lt_prog_compiler_pic='-KPIC'
10924 lt_prog_compiler_static='-Bstatic'
10925 lt_prog_compiler_wl='-Qoption ld '
10926 ;;
10927 *Sun\ C*)
10928 # Sun C 5.9
10929 lt_prog_compiler_pic='-KPIC'
10930 lt_prog_compiler_static='-Bstatic'
10931 lt_prog_compiler_wl='-Wl,'
10932 ;;
10933 *Intel*\ [CF]*Compiler*)
10934 lt_prog_compiler_wl='-Wl,'
10935 lt_prog_compiler_pic='-fPIC'
10936 lt_prog_compiler_static='-static'
10937 ;;
10938 *Portland\ Group*)
10939 lt_prog_compiler_wl='-Wl,'
10940 lt_prog_compiler_pic='-fpic'
10941 lt_prog_compiler_static='-Bstatic'
10942 ;;
10943 esac
10944 ;;
10945 esac
10946 ;;
10947
10948 newsos6)
10949 lt_prog_compiler_pic='-KPIC'
10950 lt_prog_compiler_static='-Bstatic'
10951 ;;
10952
10953 *nto* | *qnx*)
10954 # QNX uses GNU C++, but need to define -shared option too, otherwise
10955 # it will coredump.
10956 lt_prog_compiler_pic='-fPIC -shared'
10957 ;;
10958
10959 osf3* | osf4* | osf5*)
10960 lt_prog_compiler_wl='-Wl,'
10961 # All OSF/1 code is PIC.
10962 lt_prog_compiler_static='-non_shared'
10963 ;;
10964
10965 rdos*)
10966 lt_prog_compiler_static='-non_shared'
10967 ;;
10968
10969 solaris*)
10970 lt_prog_compiler_pic='-KPIC'
10971 lt_prog_compiler_static='-Bstatic'
10972 case $cc_basename in
10973 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10974 lt_prog_compiler_wl='-Qoption ld ';;
10975 *)
10976 lt_prog_compiler_wl='-Wl,';;
10977 esac
10978 ;;
10979
10980 sunos4*)
10981 lt_prog_compiler_wl='-Qoption ld '
10982 lt_prog_compiler_pic='-PIC'
10983 lt_prog_compiler_static='-Bstatic'
10984 ;;
10985
10986 sysv4 | sysv4.2uw2* | sysv4.3*)
10987 lt_prog_compiler_wl='-Wl,'
10988 lt_prog_compiler_pic='-KPIC'
10989 lt_prog_compiler_static='-Bstatic'
10990 ;;
10991
10992 sysv4*MP*)
10993 if test -d /usr/nec; then
10994 lt_prog_compiler_pic='-Kconform_pic'
10995 lt_prog_compiler_static='-Bstatic'
10996 fi
10997 ;;
10998
10999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11000 lt_prog_compiler_wl='-Wl,'
11001 lt_prog_compiler_pic='-KPIC'
11002 lt_prog_compiler_static='-Bstatic'
11003 ;;
11004
11005 unicos*)
11006 lt_prog_compiler_wl='-Wl,'
11007 lt_prog_compiler_can_build_shared=no
11008 ;;
11009
11010 uts4*)
11011 lt_prog_compiler_pic='-pic'
11012 lt_prog_compiler_static='-Bstatic'
11013 ;;
11014
11015 *)
11016 lt_prog_compiler_can_build_shared=no
11017 ;;
11018 esac
11019 fi
11020
11021 case $host_os in
11022 # For platforms that do not support PIC, -DPIC is meaningless:
11023 *djgpp*)
11024 lt_prog_compiler_pic=
11025 ;;
11026 *)
11027 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11028 ;;
11029 esac
11030
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11032 printf %s "checking for $compiler option to produce PIC... " >&6; }
11033 if test ${lt_cv_prog_compiler_pic+y}
11034 then :
11035 printf %s "(cached) " >&6
11036 else $as_nop
11037 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11038 fi
11039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11040 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11041 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11042
11043 #
11044 # Check to make sure the PIC flag actually works.
11045 #
11046 if test -n "$lt_prog_compiler_pic"; then
11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11048 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11049 if test ${lt_cv_prog_compiler_pic_works+y}
11050 then :
11051 printf %s "(cached) " >&6
11052 else $as_nop
11053 lt_cv_prog_compiler_pic_works=no
11054 ac_outfile=conftest.$ac_objext
11055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11056 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11057 # Insert the option either (1) after the last *FLAGS variable, or
11058 # (2) before a word containing "conftest.", or (3) at the end.
11059 # Note that $ac_compile itself does not contain backslashes and begins
11060 # with a dollar sign (not a hyphen), so the echo should work correctly.
11061 # The option is referenced via a variable to avoid confusing sed.
11062 lt_compile=`echo "$ac_compile" | $SED \
11063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11065 -e 's:$: $lt_compiler_flag:'`
11066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11067 (eval "$lt_compile" 2>conftest.err)
11068 ac_status=$?
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 if (exit $ac_status) && test -s "$ac_outfile"; then
11072 # The compiler can only warn and ignore the option if not recognized
11073 # So say no if there are warnings other than the usual output.
11074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11077 lt_cv_prog_compiler_pic_works=yes
11078 fi
11079 fi
11080 $RM conftest*
11081
11082 fi
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11084 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11085
11086 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11087 case $lt_prog_compiler_pic in
11088 "" | " "*) ;;
11089 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11090 esac
11091 else
11092 lt_prog_compiler_pic=
11093 lt_prog_compiler_can_build_shared=no
11094 fi
11095
11096 fi
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108 #
11109 # Check to make sure the static flag actually works.
11110 #
11111 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11113 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11114 if test ${lt_cv_prog_compiler_static_works+y}
11115 then :
11116 printf %s "(cached) " >&6
11117 else $as_nop
11118 lt_cv_prog_compiler_static_works=no
11119 save_LDFLAGS=$LDFLAGS
11120 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11121 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11123 # The linker can only warn and ignore the option if not recognized
11124 # So say no if there are warnings
11125 if test -s conftest.err; then
11126 # Append any errors to the config.log.
11127 cat conftest.err 1>&5
11128 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11130 if diff conftest.exp conftest.er2 >/dev/null; then
11131 lt_cv_prog_compiler_static_works=yes
11132 fi
11133 else
11134 lt_cv_prog_compiler_static_works=yes
11135 fi
11136 fi
11137 $RM -r conftest*
11138 LDFLAGS=$save_LDFLAGS
11139
11140 fi
11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11142 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11143
11144 if test yes = "$lt_cv_prog_compiler_static_works"; then
11145 :
11146 else
11147 lt_prog_compiler_static=
11148 fi
11149
11150
11151
11152
11153
11154
11155
11156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11157 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11158 if test ${lt_cv_prog_compiler_c_o+y}
11159 then :
11160 printf %s "(cached) " >&6
11161 else $as_nop
11162 lt_cv_prog_compiler_c_o=no
11163 $RM -r conftest 2>/dev/null
11164 mkdir conftest
11165 cd conftest
11166 mkdir out
11167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11168
11169 lt_compiler_flag="-o out/conftest2.$ac_objext"
11170 # Insert the option either (1) after the last *FLAGS variable, or
11171 # (2) before a word containing "conftest.", or (3) at the end.
11172 # Note that $ac_compile itself does not contain backslashes and begins
11173 # with a dollar sign (not a hyphen), so the echo should work correctly.
11174 lt_compile=`echo "$ac_compile" | $SED \
11175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11177 -e 's:$: $lt_compiler_flag:'`
11178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11179 (eval "$lt_compile" 2>out/conftest.err)
11180 ac_status=$?
11181 cat out/conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11184 then
11185 # The compiler can only warn and ignore the option if not recognized
11186 # So say no if there are warnings
11187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11190 lt_cv_prog_compiler_c_o=yes
11191 fi
11192 fi
11193 chmod u+w . 2>&5
11194 $RM conftest*
11195 # SGI C++ compiler will create directory out/ii_files/ for
11196 # template instantiation
11197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11198 $RM out/* && rmdir out
11199 cd ..
11200 $RM -r conftest
11201 $RM conftest*
11202
11203 fi
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11205 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11206
11207
11208
11209
11210
11211
11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11213 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11214 if test ${lt_cv_prog_compiler_c_o+y}
11215 then :
11216 printf %s "(cached) " >&6
11217 else $as_nop
11218 lt_cv_prog_compiler_c_o=no
11219 $RM -r conftest 2>/dev/null
11220 mkdir conftest
11221 cd conftest
11222 mkdir out
11223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11224
11225 lt_compiler_flag="-o out/conftest2.$ac_objext"
11226 # Insert the option either (1) after the last *FLAGS variable, or
11227 # (2) before a word containing "conftest.", or (3) at the end.
11228 # Note that $ac_compile itself does not contain backslashes and begins
11229 # with a dollar sign (not a hyphen), so the echo should work correctly.
11230 lt_compile=`echo "$ac_compile" | $SED \
11231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11233 -e 's:$: $lt_compiler_flag:'`
11234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11235 (eval "$lt_compile" 2>out/conftest.err)
11236 ac_status=$?
11237 cat out/conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11240 then
11241 # The compiler can only warn and ignore the option if not recognized
11242 # So say no if there are warnings
11243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11246 lt_cv_prog_compiler_c_o=yes
11247 fi
11248 fi
11249 chmod u+w . 2>&5
11250 $RM conftest*
11251 # SGI C++ compiler will create directory out/ii_files/ for
11252 # template instantiation
11253 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11254 $RM out/* && rmdir out
11255 cd ..
11256 $RM -r conftest
11257 $RM conftest*
11258
11259 fi
11260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11261 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11262
11263
11264
11265
11266 hard_links=nottested
11267 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11268 # do not overwrite the value of need_locks provided by the user
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11270 printf %s "checking if we can lock with hard links... " >&6; }
11271 hard_links=yes
11272 $RM conftest*
11273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11274 touch conftest.a
11275 ln conftest.a conftest.b 2>&5 || hard_links=no
11276 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11278 printf "%s\n" "$hard_links" >&6; }
11279 if test no = "$hard_links"; then
11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11281 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11282 need_locks=warn
11283 fi
11284 else
11285 need_locks=no
11286 fi
11287
11288
11289
11290
11291
11292
11293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11294 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11295
11296 runpath_var=
11297 allow_undefined_flag=
11298 always_export_symbols=no
11299 archive_cmds=
11300 archive_expsym_cmds=
11301 compiler_needs_object=no
11302 enable_shared_with_static_runtimes=no
11303 export_dynamic_flag_spec=
11304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11305 hardcode_automatic=no
11306 hardcode_direct=no
11307 hardcode_direct_absolute=no
11308 hardcode_libdir_flag_spec=
11309 hardcode_libdir_separator=
11310 hardcode_minus_L=no
11311 hardcode_shlibpath_var=unsupported
11312 inherit_rpath=no
11313 link_all_deplibs=unknown
11314 module_cmds=
11315 module_expsym_cmds=
11316 old_archive_from_new_cmds=
11317 old_archive_from_expsyms_cmds=
11318 thread_safe_flag_spec=
11319 whole_archive_flag_spec=
11320 # include_expsyms should be a list of space-separated symbols to be *always*
11321 # included in the symbol list
11322 include_expsyms=
11323 # exclude_expsyms can be an extended regexp of symbols to exclude
11324 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11325 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11326 # as well as any symbol that contains 'd'.
11327 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11328 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11329 # platforms (ab)use it in PIC code, but their linkers get confused if
11330 # the symbol is explicitly referenced. Since portable code cannot
11331 # rely on this symbol name, it's probably fine to never include it in
11332 # preloaded symbol tables.
11333 # Exclude shared library initialization/finalization symbols.
11334 extract_expsyms_cmds=
11335
11336 case $host_os in
11337 cygwin* | mingw* | pw32* | cegcc*)
11338 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11339 # When not using gcc, we currently assume that we are using
11340 # Microsoft Visual C++ or Intel C++ Compiler.
11341 if test yes != "$GCC"; then
11342 with_gnu_ld=no
11343 fi
11344 ;;
11345 interix*)
11346 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11347 with_gnu_ld=yes
11348 ;;
11349 openbsd* | bitrig*)
11350 with_gnu_ld=no
11351 ;;
11352 linux* | k*bsd*-gnu | gnu*)
11353 link_all_deplibs=no
11354 ;;
11355 esac
11356
11357 ld_shlibs=yes
11358
11359 # On some targets, GNU ld is compatible enough with the native linker
11360 # that we're better off using the native interface for both.
11361 lt_use_gnu_ld_interface=no
11362 if test yes = "$with_gnu_ld"; then
11363 case $host_os in
11364 aix*)
11365 # The AIX port of GNU ld has always aspired to compatibility
11366 # with the native linker. However, as the warning in the GNU ld
11367 # block says, versions before 2.19.5* couldn't really create working
11368 # shared libraries, regardless of the interface used.
11369 case `$LD -v 2>&1` in
11370 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11371 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11372 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11373 *)
11374 lt_use_gnu_ld_interface=yes
11375 ;;
11376 esac
11377 ;;
11378 *)
11379 lt_use_gnu_ld_interface=yes
11380 ;;
11381 esac
11382 fi
11383
11384 if test yes = "$lt_use_gnu_ld_interface"; then
11385 # If archive_cmds runs LD, not CC, wlarc should be empty
11386 wlarc='$wl'
11387
11388 # Set some defaults for GNU ld with shared library support. These
11389 # are reset later if shared libraries are not supported. Putting them
11390 # here allows them to be overridden if necessary.
11391 runpath_var=LD_RUN_PATH
11392 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11393 export_dynamic_flag_spec='$wl--export-dynamic'
11394 # ancient GNU ld didn't support --whole-archive et. al.
11395 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11396 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11397 else
11398 whole_archive_flag_spec=
11399 fi
11400 supports_anon_versioning=no
11401 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11402 *GNU\ gold*) supports_anon_versioning=yes ;;
11403 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11404 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11405 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11406 *\ 2.11.*) ;; # other 2.11 versions
11407 *) supports_anon_versioning=yes ;;
11408 esac
11409
11410 # See if GNU ld supports shared libraries.
11411 case $host_os in
11412 aix[3-9]*)
11413 # On AIX/PPC, the GNU linker is very broken
11414 if test ia64 != "$host_cpu"; then
11415 ld_shlibs=no
11416 cat <<_LT_EOF 1>&2
11417
11418 *** Warning: the GNU linker, at least up to release 2.19, is reported
11419 *** to be unable to reliably create shared libraries on AIX.
11420 *** Therefore, libtool is disabling shared libraries support. If you
11421 *** really care for shared libraries, you may want to install binutils
11422 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11423 *** You will then need to restart the configuration process.
11424
11425 _LT_EOF
11426 fi
11427 ;;
11428
11429 amigaos*)
11430 case $host_cpu in
11431 powerpc)
11432 # see comment about AmigaOS4 .so support
11433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11434 archive_expsym_cmds=''
11435 ;;
11436 m68k)
11437 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)'
11438 hardcode_libdir_flag_spec='-L$libdir'
11439 hardcode_minus_L=yes
11440 ;;
11441 esac
11442 ;;
11443
11444 beos*)
11445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11446 allow_undefined_flag=unsupported
11447 # Joseph Beckenbach <[email protected]> says some releases of gcc
11448 # support --undefined. This deserves some investigation. FIXME
11449 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11450 else
11451 ld_shlibs=no
11452 fi
11453 ;;
11454
11455 cygwin* | mingw* | pw32* | cegcc*)
11456 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11457 # as there is no search path for DLLs.
11458 hardcode_libdir_flag_spec='-L$libdir'
11459 export_dynamic_flag_spec='$wl--export-all-symbols'
11460 allow_undefined_flag=unsupported
11461 always_export_symbols=no
11462 enable_shared_with_static_runtimes=yes
11463 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'
11464 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11465
11466 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11468 # If the export-symbols file already is a .def file, use it as
11469 # is; otherwise, prepend EXPORTS...
11470 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11471 cp $export_symbols $output_objdir/$soname.def;
11472 else
11473 echo EXPORTS > $output_objdir/$soname.def;
11474 cat $export_symbols >> $output_objdir/$soname.def;
11475 fi~
11476 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11477 else
11478 ld_shlibs=no
11479 fi
11480 ;;
11481
11482 haiku*)
11483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11484 link_all_deplibs=yes
11485 ;;
11486
11487 os2*)
11488 hardcode_libdir_flag_spec='-L$libdir'
11489 hardcode_minus_L=yes
11490 allow_undefined_flag=unsupported
11491 shrext_cmds=.dll
11492 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11493 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11494 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11495 $ECHO EXPORTS >> $output_objdir/$libname.def~
11496 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11497 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11498 emximp -o $lib $output_objdir/$libname.def'
11499 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11500 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11501 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11502 $ECHO EXPORTS >> $output_objdir/$libname.def~
11503 prefix_cmds="$SED"~
11504 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11505 prefix_cmds="$prefix_cmds -e 1d";
11506 fi~
11507 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11508 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11509 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11510 emximp -o $lib $output_objdir/$libname.def'
11511 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11512 enable_shared_with_static_runtimes=yes
11513 file_list_spec='@'
11514 ;;
11515
11516 interix[3-9]*)
11517 hardcode_direct=no
11518 hardcode_shlibpath_var=no
11519 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11520 export_dynamic_flag_spec='$wl-E'
11521 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11522 # Instead, shared libraries are loaded at an image base (0x10000000 by
11523 # default) and relocated if they conflict, which is a slow very memory
11524 # consuming and fragmenting process. To avoid this, we pick a random,
11525 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11526 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11528 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'
11529 ;;
11530
11531 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11532 tmp_diet=no
11533 if test linux-dietlibc = "$host_os"; then
11534 case $cc_basename in
11535 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11536 esac
11537 fi
11538 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11539 && test no = "$tmp_diet"
11540 then
11541 tmp_addflag=' $pic_flag'
11542 tmp_sharedflag='-shared'
11543 case $cc_basename,$host_cpu in
11544 pgcc*) # Portland Group C compiler
11545 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'
11546 tmp_addflag=' $pic_flag'
11547 ;;
11548 pgf77* | pgf90* | pgf95* | pgfortran*)
11549 # Portland Group f77 and f90 compilers
11550 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'
11551 tmp_addflag=' $pic_flag -Mnomain' ;;
11552 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11553 tmp_addflag=' -i_dynamic' ;;
11554 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11555 tmp_addflag=' -i_dynamic -nofor_main' ;;
11556 ifc* | ifort*) # Intel Fortran compiler
11557 tmp_addflag=' -nofor_main' ;;
11558 lf95*) # Lahey Fortran 8.1
11559 whole_archive_flag_spec=
11560 tmp_sharedflag='--shared' ;;
11561 nagfor*) # NAGFOR 5.3
11562 tmp_sharedflag='-Wl,-shared' ;;
11563 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11564 tmp_sharedflag='-qmkshrobj'
11565 tmp_addflag= ;;
11566 nvcc*) # Cuda Compiler Driver 2.2
11567 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'
11568 compiler_needs_object=yes
11569 ;;
11570 esac
11571 case `$CC -V 2>&1 | $SED 5q` in
11572 *Sun\ C*) # Sun C 5.9
11573 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'
11574 compiler_needs_object=yes
11575 tmp_sharedflag='-G' ;;
11576 *Sun\ F*) # Sun Fortran 8.3
11577 tmp_sharedflag='-G' ;;
11578 esac
11579 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11580
11581 if test yes = "$supports_anon_versioning"; then
11582 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11583 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11584 echo "local: *; };" >> $output_objdir/$libname.ver~
11585 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11586 fi
11587
11588 case $cc_basename in
11589 tcc*)
11590 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11591 export_dynamic_flag_spec='-rdynamic'
11592 ;;
11593 xlf* | bgf* | bgxlf* | mpixlf*)
11594 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11595 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11596 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11597 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11598 if test yes = "$supports_anon_versioning"; then
11599 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11600 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11601 echo "local: *; };" >> $output_objdir/$libname.ver~
11602 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11603 fi
11604 ;;
11605 esac
11606 else
11607 ld_shlibs=no
11608 fi
11609 ;;
11610
11611 netbsd* | netbsdelf*-gnu)
11612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11613 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11614 wlarc=
11615 else
11616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11617 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11618 fi
11619 ;;
11620
11621 solaris*)
11622 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11623 ld_shlibs=no
11624 cat <<_LT_EOF 1>&2
11625
11626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11627 *** create shared libraries on Solaris systems. Therefore, libtool
11628 *** is disabling shared libraries support. We urge you to upgrade GNU
11629 *** binutils to release 2.9.1 or newer. Another option is to modify
11630 *** your PATH or compiler configuration so that the native linker is
11631 *** used, and then restart.
11632
11633 _LT_EOF
11634 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11635 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11636 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11637 else
11638 ld_shlibs=no
11639 fi
11640 ;;
11641
11642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11643 case `$LD -v 2>&1` in
11644 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11645 ld_shlibs=no
11646 cat <<_LT_EOF 1>&2
11647
11648 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11649 *** reliably create shared libraries on SCO systems. Therefore, libtool
11650 *** is disabling shared libraries support. We urge you to upgrade GNU
11651 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11652 *** your PATH or compiler configuration so that the native linker is
11653 *** used, and then restart.
11654
11655 _LT_EOF
11656 ;;
11657 *)
11658 # For security reasons, it is highly recommended that you always
11659 # use absolute paths for naming shared libraries, and exclude the
11660 # DT_RUNPATH tag from executables and libraries. But doing so
11661 # requires that you compile everything twice, which is a pain.
11662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11663 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11666 else
11667 ld_shlibs=no
11668 fi
11669 ;;
11670 esac
11671 ;;
11672
11673 sunos4*)
11674 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11675 wlarc=
11676 hardcode_direct=yes
11677 hardcode_shlibpath_var=no
11678 ;;
11679
11680 *)
11681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11683 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11684 else
11685 ld_shlibs=no
11686 fi
11687 ;;
11688 esac
11689
11690 if test no = "$ld_shlibs"; then
11691 runpath_var=
11692 hardcode_libdir_flag_spec=
11693 export_dynamic_flag_spec=
11694 whole_archive_flag_spec=
11695 fi
11696 else
11697 # PORTME fill in a description of your system's linker (not GNU ld)
11698 case $host_os in
11699 aix3*)
11700 allow_undefined_flag=unsupported
11701 always_export_symbols=yes
11702 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'
11703 # Note: this linker hardcodes the directories in LIBPATH if there
11704 # are no directories specified by -L.
11705 hardcode_minus_L=yes
11706 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11707 # Neither direct hardcoding nor static linking is supported with a
11708 # broken collect2.
11709 hardcode_direct=unsupported
11710 fi
11711 ;;
11712
11713 aix[4-9]*)
11714 if test ia64 = "$host_cpu"; then
11715 # On IA64, the linker does run time linking by default, so we don't
11716 # have to do anything special.
11717 aix_use_runtimelinking=no
11718 exp_sym_flag='-Bexport'
11719 no_entry_flag=
11720 else
11721 # If we're using GNU nm, then we don't want the "-C" option.
11722 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11723 # Without the "-l" option, or with the "-B" option, AIX nm treats
11724 # weak defined symbols like other global defined symbols, whereas
11725 # GNU nm marks them as "W".
11726 # While the 'weak' keyword is ignored in the Export File, we need
11727 # it in the Import File for the 'aix-soname' feature, so we have
11728 # to replace the "-B" option with "-P" for AIX nm.
11729 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11730 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'
11731 else
11732 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'
11733 fi
11734 aix_use_runtimelinking=no
11735
11736 # Test if we are trying to use run time linking or normal
11737 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11738 # have runtime linking enabled, and use it for executables.
11739 # For shared libraries, we enable/disable runtime linking
11740 # depending on the kind of the shared library created -
11741 # when "with_aix_soname,aix_use_runtimelinking" is:
11742 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11743 # "aix,yes" lib.so shared, rtl:yes, for executables
11744 # lib.a static archive
11745 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11746 # lib.a(lib.so.V) shared, rtl:no, for executables
11747 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11748 # lib.a(lib.so.V) shared, rtl:no
11749 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11750 # lib.a static archive
11751 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11752 for ld_flag in $LDFLAGS; do
11753 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11754 aix_use_runtimelinking=yes
11755 break
11756 fi
11757 done
11758 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11759 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11760 # so we don't have lib.a shared libs to link our executables.
11761 # We have to force runtime linking in this case.
11762 aix_use_runtimelinking=yes
11763 LDFLAGS="$LDFLAGS -Wl,-brtl"
11764 fi
11765 ;;
11766 esac
11767
11768 exp_sym_flag='-bexport'
11769 no_entry_flag='-bnoentry'
11770 fi
11771
11772 # When large executables or shared objects are built, AIX ld can
11773 # have problems creating the table of contents. If linking a library
11774 # or program results in "error TOC overflow" add -mminimal-toc to
11775 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11776 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11777
11778 archive_cmds=''
11779 hardcode_direct=yes
11780 hardcode_direct_absolute=yes
11781 hardcode_libdir_separator=':'
11782 link_all_deplibs=yes
11783 file_list_spec='$wl-f,'
11784 case $with_aix_soname,$aix_use_runtimelinking in
11785 aix,*) ;; # traditional, no import file
11786 svr4,* | *,yes) # use import file
11787 # The Import File defines what to hardcode.
11788 hardcode_direct=no
11789 hardcode_direct_absolute=no
11790 ;;
11791 esac
11792
11793 if test yes = "$GCC"; then
11794 case $host_os in aix4.[012]|aix4.[012].*)
11795 # We only want to do this on AIX 4.2 and lower, the check
11796 # below for broken collect2 doesn't work under 4.3+
11797 collect2name=`$CC -print-prog-name=collect2`
11798 if test -f "$collect2name" &&
11799 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11800 then
11801 # We have reworked collect2
11802 :
11803 else
11804 # We have old collect2
11805 hardcode_direct=unsupported
11806 # It fails to find uninstalled libraries when the uninstalled
11807 # path is not listed in the libpath. Setting hardcode_minus_L
11808 # to unsupported forces relinking
11809 hardcode_minus_L=yes
11810 hardcode_libdir_flag_spec='-L$libdir'
11811 hardcode_libdir_separator=
11812 fi
11813 ;;
11814 esac
11815 shared_flag='-shared'
11816 if test yes = "$aix_use_runtimelinking"; then
11817 shared_flag="$shared_flag "'$wl-G'
11818 fi
11819 # Need to ensure runtime linking is disabled for the traditional
11820 # shared library, or the linker may eventually find shared libraries
11821 # /with/ Import File - we do not want to mix them.
11822 shared_flag_aix='-shared'
11823 shared_flag_svr4='-shared $wl-G'
11824 else
11825 # not using gcc
11826 if test ia64 = "$host_cpu"; then
11827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11828 # chokes on -Wl,-G. The following line is correct:
11829 shared_flag='-G'
11830 else
11831 if test yes = "$aix_use_runtimelinking"; then
11832 shared_flag='$wl-G'
11833 else
11834 shared_flag='$wl-bM:SRE'
11835 fi
11836 shared_flag_aix='$wl-bM:SRE'
11837 shared_flag_svr4='$wl-G'
11838 fi
11839 fi
11840
11841 export_dynamic_flag_spec='$wl-bexpall'
11842 # It seems that -bexpall does not export symbols beginning with
11843 # underscore (_), so it is better to generate a list of symbols to export.
11844 always_export_symbols=yes
11845 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11846 # Warning - without using the other runtime loading flags (-brtl),
11847 # -berok will link without error, but may produce a broken library.
11848 allow_undefined_flag='-berok'
11849 # Determine the default libpath from the value encoded in an
11850 # empty executable.
11851 if test set = "${lt_cv_aix_libpath+set}"; then
11852 aix_libpath=$lt_cv_aix_libpath
11853 else
11854 if test ${lt_cv_aix_libpath_+y}
11855 then :
11856 printf %s "(cached) " >&6
11857 else $as_nop
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860
11861 int
11862 main (void)
11863 {
11864
11865 ;
11866 return 0;
11867 }
11868 _ACEOF
11869 if ac_fn_c_try_link "$LINENO"
11870 then :
11871
11872 lt_aix_libpath_sed='
11873 /Import File Strings/,/^$/ {
11874 /^0/ {
11875 s/^0 *\([^ ]*\) *$/\1/
11876 p
11877 }
11878 }'
11879 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11880 # Check for a 64-bit object if we didn't find anything.
11881 if test -z "$lt_cv_aix_libpath_"; then
11882 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11883 fi
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11886 conftest$ac_exeext conftest.$ac_ext
11887 if test -z "$lt_cv_aix_libpath_"; then
11888 lt_cv_aix_libpath_=/usr/lib:/lib
11889 fi
11890
11891 fi
11892
11893 aix_libpath=$lt_cv_aix_libpath_
11894 fi
11895
11896 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11897 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
11898 else
11899 if test ia64 = "$host_cpu"; then
11900 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11901 allow_undefined_flag="-z nodefs"
11902 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"
11903 else
11904 # Determine the default libpath from the value encoded in an
11905 # empty executable.
11906 if test set = "${lt_cv_aix_libpath+set}"; then
11907 aix_libpath=$lt_cv_aix_libpath
11908 else
11909 if test ${lt_cv_aix_libpath_+y}
11910 then :
11911 printf %s "(cached) " >&6
11912 else $as_nop
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915
11916 int
11917 main (void)
11918 {
11919
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_link "$LINENO"
11925 then :
11926
11927 lt_aix_libpath_sed='
11928 /Import File Strings/,/^$/ {
11929 /^0/ {
11930 s/^0 *\([^ ]*\) *$/\1/
11931 p
11932 }
11933 }'
11934 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11935 # Check for a 64-bit object if we didn't find anything.
11936 if test -z "$lt_cv_aix_libpath_"; then
11937 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11938 fi
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11941 conftest$ac_exeext conftest.$ac_ext
11942 if test -z "$lt_cv_aix_libpath_"; then
11943 lt_cv_aix_libpath_=/usr/lib:/lib
11944 fi
11945
11946 fi
11947
11948 aix_libpath=$lt_cv_aix_libpath_
11949 fi
11950
11951 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11952 # Warning - without using the other run time loading flags,
11953 # -berok will link without error, but may produce a broken library.
11954 no_undefined_flag=' $wl-bernotok'
11955 allow_undefined_flag=' $wl-berok'
11956 if test yes = "$with_gnu_ld"; then
11957 # We only use this code for GNU lds that support --whole-archive.
11958 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11959 else
11960 # Exported symbols can be pulled into shared objects from archives
11961 whole_archive_flag_spec='$convenience'
11962 fi
11963 archive_cmds_need_lc=yes
11964 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11965 # -brtl affects multiple linker settings, -berok does not and is overridden later
11966 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11967 if test svr4 != "$with_aix_soname"; then
11968 # This is similar to how AIX traditionally builds its shared libraries.
11969 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'
11970 fi
11971 if test aix != "$with_aix_soname"; then
11972 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'
11973 else
11974 # used by -dlpreopen to get the symbols
11975 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11976 fi
11977 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11978 fi
11979 fi
11980 ;;
11981
11982 amigaos*)
11983 case $host_cpu in
11984 powerpc)
11985 # see comment about AmigaOS4 .so support
11986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11987 archive_expsym_cmds=''
11988 ;;
11989 m68k)
11990 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)'
11991 hardcode_libdir_flag_spec='-L$libdir'
11992 hardcode_minus_L=yes
11993 ;;
11994 esac
11995 ;;
11996
11997 bsdi[45]*)
11998 export_dynamic_flag_spec=-rdynamic
11999 ;;
12000
12001 cygwin* | mingw* | pw32* | cegcc*)
12002 # When not using gcc, we currently assume that we are using
12003 # Microsoft Visual C++ or Intel C++ Compiler.
12004 # hardcode_libdir_flag_spec is actually meaningless, as there is
12005 # no search path for DLLs.
12006 case $cc_basename in
12007 cl* | icl*)
12008 # Native MSVC or ICC
12009 hardcode_libdir_flag_spec=' '
12010 allow_undefined_flag=unsupported
12011 always_export_symbols=yes
12012 file_list_spec='@'
12013 # Tell ltmain to make .lib files, not .a files.
12014 libext=lib
12015 # Tell ltmain to make .dll files, not .so files.
12016 shrext_cmds=.dll
12017 # FIXME: Setting linknames here is a bad hack.
12018 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12019 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12020 cp "$export_symbols" "$output_objdir/$soname.def";
12021 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12022 else
12023 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12024 fi~
12025 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12026 linknames='
12027 # The linker will not automatically build a static lib if we build a DLL.
12028 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12029 enable_shared_with_static_runtimes=yes
12030 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12032 # Don't use ranlib
12033 old_postinstall_cmds='chmod 644 $oldlib'
12034 postlink_cmds='lt_outputfile="@OUTPUT@"~
12035 lt_tool_outputfile="@TOOL_OUTPUT@"~
12036 case $lt_outputfile in
12037 *.exe|*.EXE) ;;
12038 *)
12039 lt_outputfile=$lt_outputfile.exe
12040 lt_tool_outputfile=$lt_tool_outputfile.exe
12041 ;;
12042 esac~
12043 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12044 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12045 $RM "$lt_outputfile.manifest";
12046 fi'
12047 ;;
12048 *)
12049 # Assume MSVC and ICC wrapper
12050 hardcode_libdir_flag_spec=' '
12051 allow_undefined_flag=unsupported
12052 # Tell ltmain to make .lib files, not .a files.
12053 libext=lib
12054 # Tell ltmain to make .dll files, not .so files.
12055 shrext_cmds=.dll
12056 # FIXME: Setting linknames here is a bad hack.
12057 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12058 # The linker will automatically build a .lib file if we build a DLL.
12059 old_archive_from_new_cmds='true'
12060 # FIXME: Should let the user specify the lib program.
12061 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12062 enable_shared_with_static_runtimes=yes
12063 ;;
12064 esac
12065 ;;
12066
12067 darwin* | rhapsody*)
12068
12069
12070 archive_cmds_need_lc=no
12071 hardcode_direct=no
12072 hardcode_automatic=yes
12073 hardcode_shlibpath_var=unsupported
12074 if test yes = "$lt_cv_ld_force_load"; then
12075 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\"`'
12076
12077 else
12078 whole_archive_flag_spec=''
12079 fi
12080 link_all_deplibs=yes
12081 allow_undefined_flag=$_lt_dar_allow_undefined
12082 case $cc_basename in
12083 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12084 *) _lt_dar_can_shared=$GCC ;;
12085 esac
12086 if test yes = "$_lt_dar_can_shared"; then
12087 output_verbose_link_cmd=func_echo_all
12088 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12089 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12090 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"
12091 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"
12092
12093 else
12094 ld_shlibs=no
12095 fi
12096
12097 ;;
12098
12099 dgux*)
12100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12101 hardcode_libdir_flag_spec='-L$libdir'
12102 hardcode_shlibpath_var=no
12103 ;;
12104
12105 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12106 # support. Future versions do this automatically, but an explicit c++rt0.o
12107 # does not break anything, and helps significantly (at the cost of a little
12108 # extra space).
12109 freebsd2.2*)
12110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12111 hardcode_libdir_flag_spec='-R$libdir'
12112 hardcode_direct=yes
12113 hardcode_shlibpath_var=no
12114 ;;
12115
12116 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12117 freebsd2.*)
12118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12119 hardcode_direct=yes
12120 hardcode_minus_L=yes
12121 hardcode_shlibpath_var=no
12122 ;;
12123
12124 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12125 freebsd* | dragonfly* | midnightbsd*)
12126 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12127 hardcode_libdir_flag_spec='-R$libdir'
12128 hardcode_direct=yes
12129 hardcode_shlibpath_var=no
12130 ;;
12131
12132 hpux9*)
12133 if test yes = "$GCC"; then
12134 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'
12135 else
12136 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'
12137 fi
12138 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12139 hardcode_libdir_separator=:
12140 hardcode_direct=yes
12141
12142 # hardcode_minus_L: Not really in the search PATH,
12143 # but as the default location of the library.
12144 hardcode_minus_L=yes
12145 export_dynamic_flag_spec='$wl-E'
12146 ;;
12147
12148 hpux10*)
12149 if test yes,no = "$GCC,$with_gnu_ld"; then
12150 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12151 else
12152 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12153 fi
12154 if test no = "$with_gnu_ld"; then
12155 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12156 hardcode_libdir_separator=:
12157 hardcode_direct=yes
12158 hardcode_direct_absolute=yes
12159 export_dynamic_flag_spec='$wl-E'
12160 # hardcode_minus_L: Not really in the search PATH,
12161 # but as the default location of the library.
12162 hardcode_minus_L=yes
12163 fi
12164 ;;
12165
12166 hpux11*)
12167 if test yes,no = "$GCC,$with_gnu_ld"; then
12168 case $host_cpu in
12169 hppa*64*)
12170 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12171 ;;
12172 ia64*)
12173 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12174 ;;
12175 *)
12176 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12177 ;;
12178 esac
12179 else
12180 case $host_cpu in
12181 hppa*64*)
12182 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12183 ;;
12184 ia64*)
12185 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12186 ;;
12187 *)
12188
12189 # Older versions of the 11.00 compiler do not understand -b yet
12190 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12192 printf %s "checking if $CC understands -b... " >&6; }
12193 if test ${lt_cv_prog_compiler__b+y}
12194 then :
12195 printf %s "(cached) " >&6
12196 else $as_nop
12197 lt_cv_prog_compiler__b=no
12198 save_LDFLAGS=$LDFLAGS
12199 LDFLAGS="$LDFLAGS -b"
12200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12202 # The linker can only warn and ignore the option if not recognized
12203 # So say no if there are warnings
12204 if test -s conftest.err; then
12205 # Append any errors to the config.log.
12206 cat conftest.err 1>&5
12207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12209 if diff conftest.exp conftest.er2 >/dev/null; then
12210 lt_cv_prog_compiler__b=yes
12211 fi
12212 else
12213 lt_cv_prog_compiler__b=yes
12214 fi
12215 fi
12216 $RM -r conftest*
12217 LDFLAGS=$save_LDFLAGS
12218
12219 fi
12220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12221 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12222
12223 if test yes = "$lt_cv_prog_compiler__b"; then
12224 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12225 else
12226 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12227 fi
12228
12229 ;;
12230 esac
12231 fi
12232 if test no = "$with_gnu_ld"; then
12233 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12234 hardcode_libdir_separator=:
12235
12236 case $host_cpu in
12237 hppa*64*|ia64*)
12238 hardcode_direct=no
12239 hardcode_shlibpath_var=no
12240 ;;
12241 *)
12242 hardcode_direct=yes
12243 hardcode_direct_absolute=yes
12244 export_dynamic_flag_spec='$wl-E'
12245
12246 # hardcode_minus_L: Not really in the search PATH,
12247 # but as the default location of the library.
12248 hardcode_minus_L=yes
12249 ;;
12250 esac
12251 fi
12252 ;;
12253
12254 irix5* | irix6* | nonstopux*)
12255 if test yes = "$GCC"; then
12256 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'
12257 # Try to use the -exported_symbol ld option, if it does not
12258 # work, assume that -exports_file does not work either and
12259 # implicitly export all symbols.
12260 # This should be the same for all languages, so no per-tag cache variable.
12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12262 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12263 if test ${lt_cv_irix_exported_symbol+y}
12264 then :
12265 printf %s "(cached) " >&6
12266 else $as_nop
12267 save_LDFLAGS=$LDFLAGS
12268 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271 int foo (void) { return 0; }
12272 _ACEOF
12273 if ac_fn_c_try_link "$LINENO"
12274 then :
12275 lt_cv_irix_exported_symbol=yes
12276 else $as_nop
12277 lt_cv_irix_exported_symbol=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LDFLAGS=$save_LDFLAGS
12282 fi
12283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12284 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12285 if test yes = "$lt_cv_irix_exported_symbol"; then
12286 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'
12287 fi
12288 link_all_deplibs=no
12289 else
12290 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'
12291 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'
12292 fi
12293 archive_cmds_need_lc='no'
12294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12295 hardcode_libdir_separator=:
12296 inherit_rpath=yes
12297 link_all_deplibs=yes
12298 ;;
12299
12300 linux*)
12301 case $cc_basename in
12302 tcc*)
12303 # Fabrice Bellard et al's Tiny C Compiler
12304 ld_shlibs=yes
12305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12306 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12307 ;;
12308 esac
12309 ;;
12310
12311 netbsd* | netbsdelf*-gnu)
12312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12314 else
12315 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12316 fi
12317 hardcode_libdir_flag_spec='-R$libdir'
12318 hardcode_direct=yes
12319 hardcode_shlibpath_var=no
12320 ;;
12321
12322 newsos6)
12323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12324 hardcode_direct=yes
12325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12326 hardcode_libdir_separator=:
12327 hardcode_shlibpath_var=no
12328 ;;
12329
12330 *nto* | *qnx*)
12331 ;;
12332
12333 openbsd* | bitrig*)
12334 if test -f /usr/libexec/ld.so; then
12335 hardcode_direct=yes
12336 hardcode_shlibpath_var=no
12337 hardcode_direct_absolute=yes
12338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12340 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12341 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12342 export_dynamic_flag_spec='$wl-E'
12343 else
12344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12345 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12346 fi
12347 else
12348 ld_shlibs=no
12349 fi
12350 ;;
12351
12352 os2*)
12353 hardcode_libdir_flag_spec='-L$libdir'
12354 hardcode_minus_L=yes
12355 allow_undefined_flag=unsupported
12356 shrext_cmds=.dll
12357 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12358 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12359 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12360 $ECHO EXPORTS >> $output_objdir/$libname.def~
12361 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12362 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12363 emximp -o $lib $output_objdir/$libname.def'
12364 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12365 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12366 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12367 $ECHO EXPORTS >> $output_objdir/$libname.def~
12368 prefix_cmds="$SED"~
12369 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12370 prefix_cmds="$prefix_cmds -e 1d";
12371 fi~
12372 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12373 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12374 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12375 emximp -o $lib $output_objdir/$libname.def'
12376 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12377 enable_shared_with_static_runtimes=yes
12378 file_list_spec='@'
12379 ;;
12380
12381 osf3*)
12382 if test yes = "$GCC"; then
12383 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12384 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'
12385 else
12386 allow_undefined_flag=' -expect_unresolved \*'
12387 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'
12388 fi
12389 archive_cmds_need_lc='no'
12390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12391 hardcode_libdir_separator=:
12392 ;;
12393
12394 osf4* | osf5*) # as osf3* with the addition of -msym flag
12395 if test yes = "$GCC"; then
12396 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12397 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'
12398 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12399 else
12400 allow_undefined_flag=' -expect_unresolved \*'
12401 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'
12402 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~
12403 $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'
12404
12405 # Both c and cxx compiler support -rpath directly
12406 hardcode_libdir_flag_spec='-rpath $libdir'
12407 fi
12408 archive_cmds_need_lc='no'
12409 hardcode_libdir_separator=:
12410 ;;
12411
12412 solaris*)
12413 no_undefined_flag=' -z defs'
12414 if test yes = "$GCC"; then
12415 wlarc='$wl'
12416 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12418 $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'
12419 else
12420 case `$CC -V 2>&1` in
12421 *"Compilers 5.0"*)
12422 wlarc=''
12423 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12424 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12425 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12426 ;;
12427 *)
12428 wlarc='$wl'
12429 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12430 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12431 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12432 ;;
12433 esac
12434 fi
12435 hardcode_libdir_flag_spec='-R$libdir'
12436 hardcode_shlibpath_var=no
12437 case $host_os in
12438 solaris2.[0-5] | solaris2.[0-5].*) ;;
12439 *)
12440 # The compiler driver will combine and reorder linker options,
12441 # but understands '-z linker_flag'. GCC discards it without '$wl',
12442 # but is careful enough not to reorder.
12443 # Supported since Solaris 2.6 (maybe 2.5.1?)
12444 if test yes = "$GCC"; then
12445 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12446 else
12447 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12448 fi
12449 ;;
12450 esac
12451 link_all_deplibs=yes
12452 ;;
12453
12454 sunos4*)
12455 if test sequent = "$host_vendor"; then
12456 # Use $CC to link under sequent, because it throws in some extra .o
12457 # files that make .init and .fini sections work.
12458 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12459 else
12460 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12461 fi
12462 hardcode_libdir_flag_spec='-L$libdir'
12463 hardcode_direct=yes
12464 hardcode_minus_L=yes
12465 hardcode_shlibpath_var=no
12466 ;;
12467
12468 sysv4)
12469 case $host_vendor in
12470 sni)
12471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12472 hardcode_direct=yes # is this really true???
12473 ;;
12474 siemens)
12475 ## LD is ld it makes a PLAMLIB
12476 ## CC just makes a GrossModule.
12477 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12478 reload_cmds='$CC -r -o $output$reload_objs'
12479 hardcode_direct=no
12480 ;;
12481 motorola)
12482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12483 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12484 ;;
12485 esac
12486 runpath_var='LD_RUN_PATH'
12487 hardcode_shlibpath_var=no
12488 ;;
12489
12490 sysv4.3*)
12491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12492 hardcode_shlibpath_var=no
12493 export_dynamic_flag_spec='-Bexport'
12494 ;;
12495
12496 sysv4*MP*)
12497 if test -d /usr/nec; then
12498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12499 hardcode_shlibpath_var=no
12500 runpath_var=LD_RUN_PATH
12501 hardcode_runpath_var=yes
12502 ld_shlibs=yes
12503 fi
12504 ;;
12505
12506 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12507 no_undefined_flag='$wl-z,text'
12508 archive_cmds_need_lc=no
12509 hardcode_shlibpath_var=no
12510 runpath_var='LD_RUN_PATH'
12511
12512 if test yes = "$GCC"; then
12513 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12514 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12515 else
12516 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12517 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12518 fi
12519 ;;
12520
12521 sysv5* | sco3.2v5* | sco5v6*)
12522 # Note: We CANNOT use -z defs as we might desire, because we do not
12523 # link with -lc, and that would cause any symbols used from libc to
12524 # always be unresolved, which means just about no library would
12525 # ever link correctly. If we're not using GNU ld we use -z text
12526 # though, which does catch some bad symbols but isn't as heavy-handed
12527 # as -z defs.
12528 no_undefined_flag='$wl-z,text'
12529 allow_undefined_flag='$wl-z,nodefs'
12530 archive_cmds_need_lc=no
12531 hardcode_shlibpath_var=no
12532 hardcode_libdir_flag_spec='$wl-R,$libdir'
12533 hardcode_libdir_separator=':'
12534 link_all_deplibs=yes
12535 export_dynamic_flag_spec='$wl-Bexport'
12536 runpath_var='LD_RUN_PATH'
12537
12538 if test yes = "$GCC"; then
12539 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12540 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12541 else
12542 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12543 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12544 fi
12545 ;;
12546
12547 uts4*)
12548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12549 hardcode_libdir_flag_spec='-L$libdir'
12550 hardcode_shlibpath_var=no
12551 ;;
12552
12553 *)
12554 ld_shlibs=no
12555 ;;
12556 esac
12557
12558 if test sni = "$host_vendor"; then
12559 case $host in
12560 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12561 export_dynamic_flag_spec='$wl-Blargedynsym'
12562 ;;
12563 esac
12564 fi
12565 fi
12566
12567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12568 printf "%s\n" "$ld_shlibs" >&6; }
12569 test no = "$ld_shlibs" && can_build_shared=no
12570
12571 with_gnu_ld=$with_gnu_ld
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587 #
12588 # Do we need to explicitly link libc?
12589 #
12590 case "x$archive_cmds_need_lc" in
12591 x|xyes)
12592 # Assume -lc should be added
12593 archive_cmds_need_lc=yes
12594
12595 if test yes,yes = "$GCC,$enable_shared"; then
12596 case $archive_cmds in
12597 *'~'*)
12598 # FIXME: we may have to deal with multi-command sequences.
12599 ;;
12600 '$CC '*)
12601 # Test whether the compiler implicitly links with -lc since on some
12602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12603 # to ld, don't add -lc before -lgcc.
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12605 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12606 if test ${lt_cv_archive_cmds_need_lc+y}
12607 then :
12608 printf %s "(cached) " >&6
12609 else $as_nop
12610 $RM conftest*
12611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12612
12613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12614 (eval $ac_compile) 2>&5
12615 ac_status=$?
12616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12617 test $ac_status = 0; } 2>conftest.err; then
12618 soname=conftest
12619 lib=conftest
12620 libobjs=conftest.$ac_objext
12621 deplibs=
12622 wl=$lt_prog_compiler_wl
12623 pic_flag=$lt_prog_compiler_pic
12624 compiler_flags=-v
12625 linker_flags=-v
12626 verstring=
12627 output_objdir=.
12628 libname=conftest
12629 lt_save_allow_undefined_flag=$allow_undefined_flag
12630 allow_undefined_flag=
12631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12632 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12633 ac_status=$?
12634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12635 test $ac_status = 0; }
12636 then
12637 lt_cv_archive_cmds_need_lc=no
12638 else
12639 lt_cv_archive_cmds_need_lc=yes
12640 fi
12641 allow_undefined_flag=$lt_save_allow_undefined_flag
12642 else
12643 cat conftest.err 1>&5
12644 fi
12645 $RM conftest*
12646
12647 fi
12648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12649 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12650 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12651 ;;
12652 esac
12653 fi
12654 ;;
12655 esac
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12809 printf %s "checking dynamic linker characteristics... " >&6; }
12810
12811 if test yes = "$GCC"; then
12812 case $host_os in
12813 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12814 *) lt_awk_arg='/^libraries:/' ;;
12815 esac
12816 case $host_os in
12817 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12818 *) lt_sed_strip_eq='s|=/|/|g' ;;
12819 esac
12820 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12821 case $lt_search_path_spec in
12822 *\;*)
12823 # if the path contains ";" then we assume it to be the separator
12824 # otherwise default to the standard path separator (i.e. ":") - it is
12825 # assumed that no part of a normal pathname contains ";" but that should
12826 # okay in the real world where ";" in dirpaths is itself problematic.
12827 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12828 ;;
12829 *)
12830 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12831 ;;
12832 esac
12833 # Ok, now we have the path, separated by spaces, we can step through it
12834 # and add multilib dir if necessary...
12835 lt_tmp_lt_search_path_spec=
12836 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12837 # ...but if some path component already ends with the multilib dir we assume
12838 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12839 case "$lt_multi_os_dir; $lt_search_path_spec " in
12840 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12841 lt_multi_os_dir=
12842 ;;
12843 esac
12844 for lt_sys_path in $lt_search_path_spec; do
12845 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12846 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12847 elif test -n "$lt_multi_os_dir"; then
12848 test -d "$lt_sys_path" && \
12849 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12850 fi
12851 done
12852 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12853 BEGIN {RS = " "; FS = "/|\n";} {
12854 lt_foo = "";
12855 lt_count = 0;
12856 for (lt_i = NF; lt_i > 0; lt_i--) {
12857 if ($lt_i != "" && $lt_i != ".") {
12858 if ($lt_i == "..") {
12859 lt_count++;
12860 } else {
12861 if (lt_count == 0) {
12862 lt_foo = "/" $lt_i lt_foo;
12863 } else {
12864 lt_count--;
12865 }
12866 }
12867 }
12868 }
12869 if (lt_foo != "") { lt_freq[lt_foo]++; }
12870 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12871 }'`
12872 # AWK program above erroneously prepends '/' to C:/dos/paths
12873 # for these hosts.
12874 case $host_os in
12875 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12876 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12877 esac
12878 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12879 else
12880 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12881 fi
12882 library_names_spec=
12883 libname_spec='lib$name'
12884 soname_spec=
12885 shrext_cmds=.so
12886 postinstall_cmds=
12887 postuninstall_cmds=
12888 finish_cmds=
12889 finish_eval=
12890 shlibpath_var=
12891 shlibpath_overrides_runpath=unknown
12892 version_type=none
12893 dynamic_linker="$host_os ld.so"
12894 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12895 need_lib_prefix=unknown
12896 hardcode_into_libs=no
12897
12898 # when you set need_version to no, make sure it does not cause -set_version
12899 # flags to be left without arguments
12900 need_version=unknown
12901
12902
12903
12904 case $host_os in
12905 aix3*)
12906 version_type=linux # correct to gnu/linux during the next big refactor
12907 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12908 shlibpath_var=LIBPATH
12909
12910 # AIX 3 has no versioning support, so we append a major version to the name.
12911 soname_spec='$libname$release$shared_ext$major'
12912 ;;
12913
12914 aix[4-9]*)
12915 version_type=linux # correct to gnu/linux during the next big refactor
12916 need_lib_prefix=no
12917 need_version=no
12918 hardcode_into_libs=yes
12919 if test ia64 = "$host_cpu"; then
12920 # AIX 5 supports IA64
12921 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 else
12924 # With GCC up to 2.95.x, collect2 would create an import file
12925 # for dependence libraries. The import file would start with
12926 # the line '#! .'. This would cause the generated library to
12927 # depend on '.', always an invalid library. This was fixed in
12928 # development snapshots of GCC prior to 3.0.
12929 case $host_os in
12930 aix4 | aix4.[01] | aix4.[01].*)
12931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12932 echo ' yes '
12933 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12934 :
12935 else
12936 can_build_shared=no
12937 fi
12938 ;;
12939 esac
12940 # Using Import Files as archive members, it is possible to support
12941 # filename-based versioning of shared library archives on AIX. While
12942 # this would work for both with and without runtime linking, it will
12943 # prevent static linking of such archives. So we do filename-based
12944 # shared library versioning with .so extension only, which is used
12945 # when both runtime linking and shared linking is enabled.
12946 # Unfortunately, runtime linking may impact performance, so we do
12947 # not want this to be the default eventually. Also, we use the
12948 # versioned .so libs for executables only if there is the -brtl
12949 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12950 # To allow for filename-based versioning support, we need to create
12951 # libNAME.so.V as an archive file, containing:
12952 # *) an Import File, referring to the versioned filename of the
12953 # archive as well as the shared archive member, telling the
12954 # bitwidth (32 or 64) of that shared object, and providing the
12955 # list of exported symbols of that shared object, eventually
12956 # decorated with the 'weak' keyword
12957 # *) the shared object with the F_LOADONLY flag set, to really avoid
12958 # it being seen by the linker.
12959 # At run time we better use the real file rather than another symlink,
12960 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12961
12962 case $with_aix_soname,$aix_use_runtimelinking in
12963 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12964 # soname into executable. Probably we can add versioning support to
12965 # collect2, so additional links can be useful in future.
12966 aix,yes) # traditional libtool
12967 dynamic_linker='AIX unversionable lib.so'
12968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12969 # instead of lib<name>.a to let people know that these are not
12970 # typical AIX shared libraries.
12971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12972 ;;
12973 aix,no) # traditional AIX only
12974 dynamic_linker='AIX lib.a(lib.so.V)'
12975 # We preserve .a as extension for shared libraries through AIX4.2
12976 # and later when we are not doing run time linking.
12977 library_names_spec='$libname$release.a $libname.a'
12978 soname_spec='$libname$release$shared_ext$major'
12979 ;;
12980 svr4,*) # full svr4 only
12981 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12982 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12983 # We do not specify a path in Import Files, so LIBPATH fires.
12984 shlibpath_overrides_runpath=yes
12985 ;;
12986 *,yes) # both, prefer svr4
12987 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12988 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12989 # unpreferred sharedlib libNAME.a needs extra handling
12990 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"'
12991 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"'
12992 # We do not specify a path in Import Files, so LIBPATH fires.
12993 shlibpath_overrides_runpath=yes
12994 ;;
12995 *,no) # both, prefer aix
12996 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12997 library_names_spec='$libname$release.a $libname.a'
12998 soname_spec='$libname$release$shared_ext$major'
12999 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13000 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)'
13001 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"'
13002 ;;
13003 esac
13004 shlibpath_var=LIBPATH
13005 fi
13006 ;;
13007
13008 amigaos*)
13009 case $host_cpu in
13010 powerpc)
13011 # Since July 2007 AmigaOS4 officially supports .so libraries.
13012 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13014 ;;
13015 m68k)
13016 library_names_spec='$libname.ixlibrary $libname.a'
13017 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13018 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'
13019 ;;
13020 esac
13021 ;;
13022
13023 beos*)
13024 library_names_spec='$libname$shared_ext'
13025 dynamic_linker="$host_os ld.so"
13026 shlibpath_var=LIBRARY_PATH
13027 ;;
13028
13029 bsdi[45]*)
13030 version_type=linux # correct to gnu/linux during the next big refactor
13031 need_version=no
13032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13033 soname_spec='$libname$release$shared_ext$major'
13034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13035 shlibpath_var=LD_LIBRARY_PATH
13036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13038 # the default ld.so.conf also contains /usr/contrib/lib and
13039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13040 # libtool to hard-code these into programs
13041 ;;
13042
13043 cygwin* | mingw* | pw32* | cegcc*)
13044 version_type=windows
13045 shrext_cmds=.dll
13046 need_version=no
13047 need_lib_prefix=no
13048
13049 case $GCC,$cc_basename in
13050 yes,*)
13051 # gcc
13052 library_names_spec='$libname.dll.a'
13053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13054 postinstall_cmds='base_file=`basename \$file`~
13055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13056 dldir=$destdir/`dirname \$dlpath`~
13057 test -d \$dldir || mkdir -p \$dldir~
13058 $install_prog $dir/$dlname \$dldir/$dlname~
13059 chmod a+x \$dldir/$dlname~
13060 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13061 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13062 fi'
13063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13064 dlpath=$dir/\$dldll~
13065 $RM \$dlpath'
13066 shlibpath_overrides_runpath=yes
13067
13068 case $host_os in
13069 cygwin*)
13070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13071 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13072
13073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13074 ;;
13075 mingw* | cegcc*)
13076 # MinGW DLLs use traditional 'lib' prefix
13077 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13078 ;;
13079 pw32*)
13080 # pw32 DLLs use 'pw' prefix rather than 'lib'
13081 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13082 ;;
13083 esac
13084 dynamic_linker='Win32 ld.exe'
13085 ;;
13086
13087 *,cl* | *,icl*)
13088 # Native MSVC or ICC
13089 libname_spec='$name'
13090 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13091 library_names_spec='$libname.dll.lib'
13092
13093 case $build_os in
13094 mingw*)
13095 sys_lib_search_path_spec=
13096 lt_save_ifs=$IFS
13097 IFS=';'
13098 for lt_path in $LIB
13099 do
13100 IFS=$lt_save_ifs
13101 # Let DOS variable expansion print the short 8.3 style file name.
13102 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13103 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13104 done
13105 IFS=$lt_save_ifs
13106 # Convert to MSYS style.
13107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13108 ;;
13109 cygwin*)
13110 # Convert to unix form, then to dos form, then back to unix form
13111 # but this time dos style (no spaces!) so that the unix form looks
13112 # like /cygdrive/c/PROGRA~1:/cygdr...
13113 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13114 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13115 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13116 ;;
13117 *)
13118 sys_lib_search_path_spec=$LIB
13119 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13120 # It is most probably a Windows format PATH.
13121 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13122 else
13123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13124 fi
13125 # FIXME: find the short name or the path components, as spaces are
13126 # common. (e.g. "Program Files" -> "PROGRA~1")
13127 ;;
13128 esac
13129
13130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13131 postinstall_cmds='base_file=`basename \$file`~
13132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13133 dldir=$destdir/`dirname \$dlpath`~
13134 test -d \$dldir || mkdir -p \$dldir~
13135 $install_prog $dir/$dlname \$dldir/$dlname'
13136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13137 dlpath=$dir/\$dldll~
13138 $RM \$dlpath'
13139 shlibpath_overrides_runpath=yes
13140 dynamic_linker='Win32 link.exe'
13141 ;;
13142
13143 *)
13144 # Assume MSVC and ICC wrapper
13145 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13146 dynamic_linker='Win32 ld.exe'
13147 ;;
13148 esac
13149 # FIXME: first we should search . and the directory the executable is in
13150 shlibpath_var=PATH
13151 ;;
13152
13153 darwin* | rhapsody*)
13154 dynamic_linker="$host_os dyld"
13155 version_type=darwin
13156 need_lib_prefix=no
13157 need_version=no
13158 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13159 soname_spec='$libname$release$major$shared_ext'
13160 shlibpath_overrides_runpath=yes
13161 shlibpath_var=DYLD_LIBRARY_PATH
13162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13163
13164 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13166 ;;
13167
13168 dgux*)
13169 version_type=linux # correct to gnu/linux during the next big refactor
13170 need_lib_prefix=no
13171 need_version=no
13172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13173 soname_spec='$libname$release$shared_ext$major'
13174 shlibpath_var=LD_LIBRARY_PATH
13175 ;;
13176
13177 freebsd* | dragonfly* | midnightbsd*)
13178 # DragonFly does not have aout. When/if they implement a new
13179 # versioning mechanism, adjust this.
13180 if test -x /usr/bin/objformat; then
13181 objformat=`/usr/bin/objformat`
13182 else
13183 case $host_os in
13184 freebsd[23].*) objformat=aout ;;
13185 *) objformat=elf ;;
13186 esac
13187 fi
13188 version_type=freebsd-$objformat
13189 case $version_type in
13190 freebsd-elf*)
13191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13192 soname_spec='$libname$release$shared_ext$major'
13193 need_version=no
13194 need_lib_prefix=no
13195 ;;
13196 freebsd-*)
13197 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13198 need_version=yes
13199 ;;
13200 esac
13201 shlibpath_var=LD_LIBRARY_PATH
13202 case $host_os in
13203 freebsd2.*)
13204 shlibpath_overrides_runpath=yes
13205 ;;
13206 freebsd3.[01]* | freebsdelf3.[01]*)
13207 shlibpath_overrides_runpath=yes
13208 hardcode_into_libs=yes
13209 ;;
13210 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13211 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13212 shlibpath_overrides_runpath=no
13213 hardcode_into_libs=yes
13214 ;;
13215 *) # from 4.6 on, and DragonFly
13216 shlibpath_overrides_runpath=yes
13217 hardcode_into_libs=yes
13218 ;;
13219 esac
13220 ;;
13221
13222 haiku*)
13223 version_type=linux # correct to gnu/linux during the next big refactor
13224 need_lib_prefix=no
13225 need_version=no
13226 dynamic_linker="$host_os runtime_loader"
13227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13228 soname_spec='$libname$release$shared_ext$major'
13229 shlibpath_var=LIBRARY_PATH
13230 shlibpath_overrides_runpath=no
13231 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13232 hardcode_into_libs=yes
13233 ;;
13234
13235 hpux9* | hpux10* | hpux11*)
13236 # Give a soname corresponding to the major version so that dld.sl refuses to
13237 # link against other versions.
13238 version_type=sunos
13239 need_lib_prefix=no
13240 need_version=no
13241 case $host_cpu in
13242 ia64*)
13243 shrext_cmds='.so'
13244 hardcode_into_libs=yes
13245 dynamic_linker="$host_os dld.so"
13246 shlibpath_var=LD_LIBRARY_PATH
13247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13249 soname_spec='$libname$release$shared_ext$major'
13250 if test 32 = "$HPUX_IA64_MODE"; then
13251 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13252 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13253 else
13254 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13255 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13256 fi
13257 ;;
13258 hppa*64*)
13259 shrext_cmds='.sl'
13260 hardcode_into_libs=yes
13261 dynamic_linker="$host_os dld.sl"
13262 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13265 soname_spec='$libname$release$shared_ext$major'
13266 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13268 ;;
13269 *)
13270 shrext_cmds='.sl'
13271 dynamic_linker="$host_os dld.sl"
13272 shlibpath_var=SHLIB_PATH
13273 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13275 soname_spec='$libname$release$shared_ext$major'
13276 ;;
13277 esac
13278 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13279 postinstall_cmds='chmod 555 $lib'
13280 # or fails outright, so override atomically:
13281 install_override_mode=555
13282 ;;
13283
13284 interix[3-9]*)
13285 version_type=linux # correct to gnu/linux during the next big refactor
13286 need_lib_prefix=no
13287 need_version=no
13288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13289 soname_spec='$libname$release$shared_ext$major'
13290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=no
13293 hardcode_into_libs=yes
13294 ;;
13295
13296 irix5* | irix6* | nonstopux*)
13297 case $host_os in
13298 nonstopux*) version_type=nonstopux ;;
13299 *)
13300 if test yes = "$lt_cv_prog_gnu_ld"; then
13301 version_type=linux # correct to gnu/linux during the next big refactor
13302 else
13303 version_type=irix
13304 fi ;;
13305 esac
13306 need_lib_prefix=no
13307 need_version=no
13308 soname_spec='$libname$release$shared_ext$major'
13309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13310 case $host_os in
13311 irix5* | nonstopux*)
13312 libsuff= shlibsuff=
13313 ;;
13314 *)
13315 case $LD in # libtool.m4 will add one of these switches to LD
13316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13317 libsuff= shlibsuff= libmagic=32-bit;;
13318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13319 libsuff=32 shlibsuff=N32 libmagic=N32;;
13320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13321 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13322 *) libsuff= shlibsuff= libmagic=never-match;;
13323 esac
13324 ;;
13325 esac
13326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13327 shlibpath_overrides_runpath=no
13328 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13329 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13330 hardcode_into_libs=yes
13331 ;;
13332
13333 # No shared lib support for Linux oldld, aout, or coff.
13334 linux*oldld* | linux*aout* | linux*coff*)
13335 dynamic_linker=no
13336 ;;
13337
13338 linux*android*)
13339 version_type=none # Android doesn't support versioned libraries.
13340 need_lib_prefix=no
13341 need_version=no
13342 library_names_spec='$libname$release$shared_ext'
13343 soname_spec='$libname$release$shared_ext'
13344 finish_cmds=
13345 shlibpath_var=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath=yes
13347
13348 # This implies no fast_install, which is unacceptable.
13349 # Some rework will be needed to allow for fast_install
13350 # before this can be enabled.
13351 hardcode_into_libs=yes
13352
13353 dynamic_linker='Android linker'
13354 # Don't embed -rpath directories since the linker doesn't support them.
13355 hardcode_libdir_flag_spec='-L$libdir'
13356 ;;
13357
13358 # This must be glibc/ELF.
13359 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13360 version_type=linux # correct to gnu/linux during the next big refactor
13361 need_lib_prefix=no
13362 need_version=no
13363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13364 soname_spec='$libname$release$shared_ext$major'
13365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13366 shlibpath_var=LD_LIBRARY_PATH
13367 shlibpath_overrides_runpath=no
13368
13369 # Some binutils ld are patched to set DT_RUNPATH
13370 if test ${lt_cv_shlibpath_overrides_runpath+y}
13371 then :
13372 printf %s "(cached) " >&6
13373 else $as_nop
13374 lt_cv_shlibpath_overrides_runpath=no
13375 save_LDFLAGS=$LDFLAGS
13376 save_libdir=$libdir
13377 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13378 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381
13382 int
13383 main (void)
13384 {
13385
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_link "$LINENO"
13391 then :
13392 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13393 then :
13394 lt_cv_shlibpath_overrides_runpath=yes
13395 fi
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LDFLAGS=$save_LDFLAGS
13400 libdir=$save_libdir
13401
13402 fi
13403
13404 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13405
13406 # This implies no fast_install, which is unacceptable.
13407 # Some rework will be needed to allow for fast_install
13408 # before this can be enabled.
13409 hardcode_into_libs=yes
13410
13411 # Ideally, we could use ldconfig to report *all* directores which are
13412 # searched for libraries, however this is still not possible. Aside from not
13413 # being certain /sbin/ldconfig is available, command
13414 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13415 # even though it is searched at run-time. Try to do the best guess by
13416 # appending ld.so.conf contents (and includes) to the search path.
13417 if test -f /etc/ld.so.conf; then
13418 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' ' '`
13419 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13420 fi
13421
13422 # We used to test for /lib/ld.so.1 and disable shared libraries on
13423 # powerpc, because MkLinux only supported shared libraries with the
13424 # GNU dynamic linker. Since this was broken with cross compilers,
13425 # most powerpc-linux boxes support dynamic linking these days and
13426 # people can always --disable-shared, the test was removed, and we
13427 # assume the GNU/Linux dynamic linker is in use.
13428 dynamic_linker='GNU/Linux ld.so'
13429 ;;
13430
13431 netbsdelf*-gnu)
13432 version_type=linux
13433 need_lib_prefix=no
13434 need_version=no
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13436 soname_spec='${libname}${release}${shared_ext}$major'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 shlibpath_overrides_runpath=no
13439 hardcode_into_libs=yes
13440 dynamic_linker='NetBSD ld.elf_so'
13441 ;;
13442
13443 netbsd*)
13444 version_type=sunos
13445 need_lib_prefix=no
13446 need_version=no
13447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13448 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13450 dynamic_linker='NetBSD (a.out) ld.so'
13451 else
13452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13453 soname_spec='$libname$release$shared_ext$major'
13454 dynamic_linker='NetBSD ld.elf_so'
13455 fi
13456 shlibpath_var=LD_LIBRARY_PATH
13457 shlibpath_overrides_runpath=yes
13458 hardcode_into_libs=yes
13459 ;;
13460
13461 newsos6)
13462 version_type=linux # correct to gnu/linux during the next big refactor
13463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13464 shlibpath_var=LD_LIBRARY_PATH
13465 shlibpath_overrides_runpath=yes
13466 ;;
13467
13468 *nto* | *qnx*)
13469 version_type=qnx
13470 need_lib_prefix=no
13471 need_version=no
13472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13473 soname_spec='$libname$release$shared_ext$major'
13474 shlibpath_var=LD_LIBRARY_PATH
13475 shlibpath_overrides_runpath=no
13476 hardcode_into_libs=yes
13477 dynamic_linker='ldqnx.so'
13478 ;;
13479
13480 openbsd* | bitrig*)
13481 version_type=sunos
13482 sys_lib_dlsearch_path_spec=/usr/lib
13483 need_lib_prefix=no
13484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13485 need_version=no
13486 else
13487 need_version=yes
13488 fi
13489 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13491 shlibpath_var=LD_LIBRARY_PATH
13492 shlibpath_overrides_runpath=yes
13493 ;;
13494
13495 os2*)
13496 libname_spec='$name'
13497 version_type=windows
13498 shrext_cmds=.dll
13499 need_version=no
13500 need_lib_prefix=no
13501 # OS/2 can only load a DLL with a base name of 8 characters or less.
13502 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13503 v=$($ECHO $release$versuffix | tr -d .-);
13504 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13505 $ECHO $n$v`$shared_ext'
13506 library_names_spec='${libname}_dll.$libext'
13507 dynamic_linker='OS/2 ld.exe'
13508 shlibpath_var=BEGINLIBPATH
13509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13511 postinstall_cmds='base_file=`basename \$file`~
13512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13513 dldir=$destdir/`dirname \$dlpath`~
13514 test -d \$dldir || mkdir -p \$dldir~
13515 $install_prog $dir/$dlname \$dldir/$dlname~
13516 chmod a+x \$dldir/$dlname~
13517 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13518 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13519 fi'
13520 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13521 dlpath=$dir/\$dldll~
13522 $RM \$dlpath'
13523 ;;
13524
13525 osf3* | osf4* | osf5*)
13526 version_type=osf
13527 need_lib_prefix=no
13528 need_version=no
13529 soname_spec='$libname$release$shared_ext$major'
13530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13531 shlibpath_var=LD_LIBRARY_PATH
13532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13534 ;;
13535
13536 rdos*)
13537 dynamic_linker=no
13538 ;;
13539
13540 solaris*)
13541 version_type=linux # correct to gnu/linux during the next big refactor
13542 need_lib_prefix=no
13543 need_version=no
13544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13545 soname_spec='$libname$release$shared_ext$major'
13546 shlibpath_var=LD_LIBRARY_PATH
13547 shlibpath_overrides_runpath=yes
13548 hardcode_into_libs=yes
13549 # ldd complains unless libraries are executable
13550 postinstall_cmds='chmod +x $lib'
13551 ;;
13552
13553 sunos4*)
13554 version_type=sunos
13555 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13557 shlibpath_var=LD_LIBRARY_PATH
13558 shlibpath_overrides_runpath=yes
13559 if test yes = "$with_gnu_ld"; then
13560 need_lib_prefix=no
13561 fi
13562 need_version=yes
13563 ;;
13564
13565 sysv4 | sysv4.3*)
13566 version_type=linux # correct to gnu/linux during the next big refactor
13567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13568 soname_spec='$libname$release$shared_ext$major'
13569 shlibpath_var=LD_LIBRARY_PATH
13570 case $host_vendor in
13571 sni)
13572 shlibpath_overrides_runpath=no
13573 need_lib_prefix=no
13574 runpath_var=LD_RUN_PATH
13575 ;;
13576 siemens)
13577 need_lib_prefix=no
13578 ;;
13579 motorola)
13580 need_lib_prefix=no
13581 need_version=no
13582 shlibpath_overrides_runpath=no
13583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13584 ;;
13585 esac
13586 ;;
13587
13588 sysv4*MP*)
13589 if test -d /usr/nec; then
13590 version_type=linux # correct to gnu/linux during the next big refactor
13591 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13592 soname_spec='$libname$shared_ext.$major'
13593 shlibpath_var=LD_LIBRARY_PATH
13594 fi
13595 ;;
13596
13597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13598 version_type=sco
13599 need_lib_prefix=no
13600 need_version=no
13601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13602 soname_spec='$libname$release$shared_ext$major'
13603 shlibpath_var=LD_LIBRARY_PATH
13604 shlibpath_overrides_runpath=yes
13605 hardcode_into_libs=yes
13606 if test yes = "$with_gnu_ld"; then
13607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13608 else
13609 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13610 case $host_os in
13611 sco3.2v5*)
13612 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13613 ;;
13614 esac
13615 fi
13616 sys_lib_dlsearch_path_spec='/usr/lib'
13617 ;;
13618
13619 tpf*)
13620 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13621 version_type=linux # correct to gnu/linux during the next big refactor
13622 need_lib_prefix=no
13623 need_version=no
13624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13625 shlibpath_var=LD_LIBRARY_PATH
13626 shlibpath_overrides_runpath=no
13627 hardcode_into_libs=yes
13628 ;;
13629
13630 uts4*)
13631 version_type=linux # correct to gnu/linux during the next big refactor
13632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13633 soname_spec='$libname$release$shared_ext$major'
13634 shlibpath_var=LD_LIBRARY_PATH
13635 ;;
13636
13637 *)
13638 dynamic_linker=no
13639 ;;
13640 esac
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13642 printf "%s\n" "$dynamic_linker" >&6; }
13643 test no = "$dynamic_linker" && can_build_shared=no
13644
13645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13646 if test yes = "$GCC"; then
13647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13648 fi
13649
13650 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13651 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13652 fi
13653
13654 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13655 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13656 fi
13657
13658 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13659 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13660
13661 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13662 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13663
13664 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13665 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13764 printf %s "checking how to hardcode library paths into programs... " >&6; }
13765 hardcode_action=
13766 if test -n "$hardcode_libdir_flag_spec" ||
13767 test -n "$runpath_var" ||
13768 test yes = "$hardcode_automatic"; then
13769
13770 # We can hardcode non-existent directories.
13771 if test no != "$hardcode_direct" &&
13772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13773 # have to relink, otherwise we might link with an installed library
13774 # when we should be linking with a yet-to-be-installed one
13775 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13776 test no != "$hardcode_minus_L"; then
13777 # Linking always hardcodes the temporary library directory.
13778 hardcode_action=relink
13779 else
13780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13781 hardcode_action=immediate
13782 fi
13783 else
13784 # We cannot hardcode anything, or else we can only hardcode existing
13785 # directories.
13786 hardcode_action=unsupported
13787 fi
13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13789 printf "%s\n" "$hardcode_action" >&6; }
13790
13791 if test relink = "$hardcode_action" ||
13792 test yes = "$inherit_rpath"; then
13793 # Fast installation is not supported
13794 enable_fast_install=no
13795 elif test yes = "$shlibpath_overrides_runpath" ||
13796 test no = "$enable_shared"; then
13797 # Fast installation is not necessary
13798 enable_fast_install=needless
13799 fi
13800
13801
13802
13803
13804
13805
13806 if test yes != "$enable_dlopen"; then
13807 enable_dlopen=unknown
13808 enable_dlopen_self=unknown
13809 enable_dlopen_self_static=unknown
13810 else
13811 lt_cv_dlopen=no
13812 lt_cv_dlopen_libs=
13813
13814 case $host_os in
13815 beos*)
13816 lt_cv_dlopen=load_add_on
13817 lt_cv_dlopen_libs=
13818 lt_cv_dlopen_self=yes
13819 ;;
13820
13821 mingw* | pw32* | cegcc*)
13822 lt_cv_dlopen=LoadLibrary
13823 lt_cv_dlopen_libs=
13824 ;;
13825
13826 cygwin*)
13827 lt_cv_dlopen=dlopen
13828 lt_cv_dlopen_libs=
13829 ;;
13830
13831 darwin*)
13832 # if libdl is installed we need to link against it
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13834 printf %s "checking for dlopen in -ldl... " >&6; }
13835 if test ${ac_cv_lib_dl_dlopen+y}
13836 then :
13837 printf %s "(cached) " >&6
13838 else $as_nop
13839 ac_check_lib_save_LIBS=$LIBS
13840 LIBS="-ldl $LIBS"
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843
13844 /* Override any GCC internal prototype to avoid an error.
13845 Use char because int might match the return type of a GCC
13846 builtin and then its argument prototype would still apply. */
13847 char dlopen ();
13848 int
13849 main (void)
13850 {
13851 return dlopen ();
13852 ;
13853 return 0;
13854 }
13855 _ACEOF
13856 if ac_fn_c_try_link "$LINENO"
13857 then :
13858 ac_cv_lib_dl_dlopen=yes
13859 else $as_nop
13860 ac_cv_lib_dl_dlopen=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13865 fi
13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13867 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13868 if test "x$ac_cv_lib_dl_dlopen" = xyes
13869 then :
13870 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13871 else $as_nop
13872
13873 lt_cv_dlopen=dyld
13874 lt_cv_dlopen_libs=
13875 lt_cv_dlopen_self=yes
13876
13877 fi
13878
13879 ;;
13880
13881 tpf*)
13882 # Don't try to run any link tests for TPF. We know it's impossible
13883 # because TPF is a cross-compiler, and we know how we open DSOs.
13884 lt_cv_dlopen=dlopen
13885 lt_cv_dlopen_libs=
13886 lt_cv_dlopen_self=no
13887 ;;
13888
13889 *)
13890 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13891 if test "x$ac_cv_func_shl_load" = xyes
13892 then :
13893 lt_cv_dlopen=shl_load
13894 else $as_nop
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13896 printf %s "checking for shl_load in -ldld... " >&6; }
13897 if test ${ac_cv_lib_dld_shl_load+y}
13898 then :
13899 printf %s "(cached) " >&6
13900 else $as_nop
13901 ac_check_lib_save_LIBS=$LIBS
13902 LIBS="-ldld $LIBS"
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905
13906 /* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
13909 char shl_load ();
13910 int
13911 main (void)
13912 {
13913 return shl_load ();
13914 ;
13915 return 0;
13916 }
13917 _ACEOF
13918 if ac_fn_c_try_link "$LINENO"
13919 then :
13920 ac_cv_lib_dld_shl_load=yes
13921 else $as_nop
13922 ac_cv_lib_dld_shl_load=no
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13927 fi
13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13929 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13930 if test "x$ac_cv_lib_dld_shl_load" = xyes
13931 then :
13932 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13933 else $as_nop
13934 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13935 if test "x$ac_cv_func_dlopen" = xyes
13936 then :
13937 lt_cv_dlopen=dlopen
13938 else $as_nop
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13940 printf %s "checking for dlopen in -ldl... " >&6; }
13941 if test ${ac_cv_lib_dl_dlopen+y}
13942 then :
13943 printf %s "(cached) " >&6
13944 else $as_nop
13945 ac_check_lib_save_LIBS=$LIBS
13946 LIBS="-ldl $LIBS"
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13949
13950 /* Override any GCC internal prototype to avoid an error.
13951 Use char because int might match the return type of a GCC
13952 builtin and then its argument prototype would still apply. */
13953 char dlopen ();
13954 int
13955 main (void)
13956 {
13957 return dlopen ();
13958 ;
13959 return 0;
13960 }
13961 _ACEOF
13962 if ac_fn_c_try_link "$LINENO"
13963 then :
13964 ac_cv_lib_dl_dlopen=yes
13965 else $as_nop
13966 ac_cv_lib_dl_dlopen=no
13967 fi
13968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13969 conftest$ac_exeext conftest.$ac_ext
13970 LIBS=$ac_check_lib_save_LIBS
13971 fi
13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13973 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13974 if test "x$ac_cv_lib_dl_dlopen" = xyes
13975 then :
13976 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13977 else $as_nop
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13979 printf %s "checking for dlopen in -lsvld... " >&6; }
13980 if test ${ac_cv_lib_svld_dlopen+y}
13981 then :
13982 printf %s "(cached) " >&6
13983 else $as_nop
13984 ac_check_lib_save_LIBS=$LIBS
13985 LIBS="-lsvld $LIBS"
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13988
13989 /* Override any GCC internal prototype to avoid an error.
13990 Use char because int might match the return type of a GCC
13991 builtin and then its argument prototype would still apply. */
13992 char dlopen ();
13993 int
13994 main (void)
13995 {
13996 return dlopen ();
13997 ;
13998 return 0;
13999 }
14000 _ACEOF
14001 if ac_fn_c_try_link "$LINENO"
14002 then :
14003 ac_cv_lib_svld_dlopen=yes
14004 else $as_nop
14005 ac_cv_lib_svld_dlopen=no
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14008 conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14010 fi
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14012 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14013 if test "x$ac_cv_lib_svld_dlopen" = xyes
14014 then :
14015 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14016 else $as_nop
14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14018 printf %s "checking for dld_link in -ldld... " >&6; }
14019 if test ${ac_cv_lib_dld_dld_link+y}
14020 then :
14021 printf %s "(cached) " >&6
14022 else $as_nop
14023 ac_check_lib_save_LIBS=$LIBS
14024 LIBS="-ldld $LIBS"
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14031 char dld_link ();
14032 int
14033 main (void)
14034 {
14035 return dld_link ();
14036 ;
14037 return 0;
14038 }
14039 _ACEOF
14040 if ac_fn_c_try_link "$LINENO"
14041 then :
14042 ac_cv_lib_dld_dld_link=yes
14043 else $as_nop
14044 ac_cv_lib_dld_dld_link=no
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14047 conftest$ac_exeext conftest.$ac_ext
14048 LIBS=$ac_check_lib_save_LIBS
14049 fi
14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14051 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14052 if test "x$ac_cv_lib_dld_dld_link" = xyes
14053 then :
14054 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14055 fi
14056
14057
14058 fi
14059
14060
14061 fi
14062
14063
14064 fi
14065
14066
14067 fi
14068
14069
14070 fi
14071
14072 ;;
14073 esac
14074
14075 if test no = "$lt_cv_dlopen"; then
14076 enable_dlopen=no
14077 else
14078 enable_dlopen=yes
14079 fi
14080
14081 case $lt_cv_dlopen in
14082 dlopen)
14083 save_CPPFLAGS=$CPPFLAGS
14084 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14085
14086 save_LDFLAGS=$LDFLAGS
14087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14088
14089 save_LIBS=$LIBS
14090 LIBS="$lt_cv_dlopen_libs $LIBS"
14091
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14093 printf %s "checking whether a program can dlopen itself... " >&6; }
14094 if test ${lt_cv_dlopen_self+y}
14095 then :
14096 printf %s "(cached) " >&6
14097 else $as_nop
14098 if test yes = "$cross_compiling"; then :
14099 lt_cv_dlopen_self=cross
14100 else
14101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14102 lt_status=$lt_dlunknown
14103 cat > conftest.$ac_ext <<_LT_EOF
14104 #line $LINENO "configure"
14105 #include "confdefs.h"
14106
14107 #if HAVE_DLFCN_H
14108 #include <dlfcn.h>
14109 #endif
14110
14111 #include <stdio.h>
14112
14113 #ifdef RTLD_GLOBAL
14114 # define LT_DLGLOBAL RTLD_GLOBAL
14115 #else
14116 # ifdef DL_GLOBAL
14117 # define LT_DLGLOBAL DL_GLOBAL
14118 # else
14119 # define LT_DLGLOBAL 0
14120 # endif
14121 #endif
14122
14123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14124 find out it does not work in some platform. */
14125 #ifndef LT_DLLAZY_OR_NOW
14126 # ifdef RTLD_LAZY
14127 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14128 # else
14129 # ifdef DL_LAZY
14130 # define LT_DLLAZY_OR_NOW DL_LAZY
14131 # else
14132 # ifdef RTLD_NOW
14133 # define LT_DLLAZY_OR_NOW RTLD_NOW
14134 # else
14135 # ifdef DL_NOW
14136 # define LT_DLLAZY_OR_NOW DL_NOW
14137 # else
14138 # define LT_DLLAZY_OR_NOW 0
14139 # endif
14140 # endif
14141 # endif
14142 # endif
14143 #endif
14144
14145 /* When -fvisibility=hidden is used, assume the code has been annotated
14146 correspondingly for the symbols needed. */
14147 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14148 int fnord () __attribute__((visibility("default")));
14149 #endif
14150
14151 int fnord () { return 42; }
14152 int main ()
14153 {
14154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14155 int status = $lt_dlunknown;
14156
14157 if (self)
14158 {
14159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14160 else
14161 {
14162 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14163 else puts (dlerror ());
14164 }
14165 /* dlclose (self); */
14166 }
14167 else
14168 puts (dlerror ());
14169
14170 return status;
14171 }
14172 _LT_EOF
14173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14174 (eval $ac_link) 2>&5
14175 ac_status=$?
14176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14177 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14178 (./conftest; exit; ) >&5 2>/dev/null
14179 lt_status=$?
14180 case x$lt_status in
14181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14183 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14184 esac
14185 else :
14186 # compilation failed
14187 lt_cv_dlopen_self=no
14188 fi
14189 fi
14190 rm -fr conftest*
14191
14192
14193 fi
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14195 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14196
14197 if test yes = "$lt_cv_dlopen_self"; then
14198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14200 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14201 if test ${lt_cv_dlopen_self_static+y}
14202 then :
14203 printf %s "(cached) " >&6
14204 else $as_nop
14205 if test yes = "$cross_compiling"; then :
14206 lt_cv_dlopen_self_static=cross
14207 else
14208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14209 lt_status=$lt_dlunknown
14210 cat > conftest.$ac_ext <<_LT_EOF
14211 #line $LINENO "configure"
14212 #include "confdefs.h"
14213
14214 #if HAVE_DLFCN_H
14215 #include <dlfcn.h>
14216 #endif
14217
14218 #include <stdio.h>
14219
14220 #ifdef RTLD_GLOBAL
14221 # define LT_DLGLOBAL RTLD_GLOBAL
14222 #else
14223 # ifdef DL_GLOBAL
14224 # define LT_DLGLOBAL DL_GLOBAL
14225 # else
14226 # define LT_DLGLOBAL 0
14227 # endif
14228 #endif
14229
14230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14231 find out it does not work in some platform. */
14232 #ifndef LT_DLLAZY_OR_NOW
14233 # ifdef RTLD_LAZY
14234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14235 # else
14236 # ifdef DL_LAZY
14237 # define LT_DLLAZY_OR_NOW DL_LAZY
14238 # else
14239 # ifdef RTLD_NOW
14240 # define LT_DLLAZY_OR_NOW RTLD_NOW
14241 # else
14242 # ifdef DL_NOW
14243 # define LT_DLLAZY_OR_NOW DL_NOW
14244 # else
14245 # define LT_DLLAZY_OR_NOW 0
14246 # endif
14247 # endif
14248 # endif
14249 # endif
14250 #endif
14251
14252 /* When -fvisibility=hidden is used, assume the code has been annotated
14253 correspondingly for the symbols needed. */
14254 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14255 int fnord () __attribute__((visibility("default")));
14256 #endif
14257
14258 int fnord () { return 42; }
14259 int main ()
14260 {
14261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14262 int status = $lt_dlunknown;
14263
14264 if (self)
14265 {
14266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14267 else
14268 {
14269 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14270 else puts (dlerror ());
14271 }
14272 /* dlclose (self); */
14273 }
14274 else
14275 puts (dlerror ());
14276
14277 return status;
14278 }
14279 _LT_EOF
14280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14281 (eval $ac_link) 2>&5
14282 ac_status=$?
14283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14284 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14285 (./conftest; exit; ) >&5 2>/dev/null
14286 lt_status=$?
14287 case x$lt_status in
14288 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14289 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14290 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14291 esac
14292 else :
14293 # compilation failed
14294 lt_cv_dlopen_self_static=no
14295 fi
14296 fi
14297 rm -fr conftest*
14298
14299
14300 fi
14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14302 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14303 fi
14304
14305 CPPFLAGS=$save_CPPFLAGS
14306 LDFLAGS=$save_LDFLAGS
14307 LIBS=$save_LIBS
14308 ;;
14309 esac
14310
14311 case $lt_cv_dlopen_self in
14312 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14313 *) enable_dlopen_self=unknown ;;
14314 esac
14315
14316 case $lt_cv_dlopen_self_static in
14317 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14318 *) enable_dlopen_self_static=unknown ;;
14319 esac
14320 fi
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338 striplib=
14339 old_striplib=
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14341 printf %s "checking whether stripping libraries is possible... " >&6; }
14342 if test -z "$STRIP"; then
14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14344 printf "%s\n" "no" >&6; }
14345 else
14346 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14347 old_striplib="$STRIP --strip-debug"
14348 striplib="$STRIP --strip-unneeded"
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14350 printf "%s\n" "yes" >&6; }
14351 else
14352 case $host_os in
14353 darwin*)
14354 # FIXME - insert some real tests, host_os isn't really good enough
14355 striplib="$STRIP -x"
14356 old_striplib="$STRIP -S"
14357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14358 printf "%s\n" "yes" >&6; }
14359 ;;
14360 freebsd*)
14361 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14362 old_striplib="$STRIP --strip-debug"
14363 striplib="$STRIP --strip-unneeded"
14364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14365 printf "%s\n" "yes" >&6; }
14366 else
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 printf "%s\n" "no" >&6; }
14369 fi
14370 ;;
14371 *)
14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14373 printf "%s\n" "no" >&6; }
14374 ;;
14375 esac
14376 fi
14377 fi
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390 # Report what library types will actually be built
14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14392 printf %s "checking if libtool supports shared libraries... " >&6; }
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14394 printf "%s\n" "$can_build_shared" >&6; }
14395
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14397 printf %s "checking whether to build shared libraries... " >&6; }
14398 test no = "$can_build_shared" && enable_shared=no
14399
14400 # On AIX, shared libraries and static libraries use the same namespace, and
14401 # are all built from PIC.
14402 case $host_os in
14403 aix3*)
14404 test yes = "$enable_shared" && enable_static=no
14405 if test -n "$RANLIB"; then
14406 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14407 postinstall_cmds='$RANLIB $lib'
14408 fi
14409 ;;
14410
14411 aix[4-9]*)
14412 if test ia64 != "$host_cpu"; then
14413 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14414 yes,aix,yes) ;; # shared object as lib.so file only
14415 yes,svr4,*) ;; # shared object as lib.so archive member only
14416 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14417 esac
14418 fi
14419 ;;
14420 esac
14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14422 printf "%s\n" "$enable_shared" >&6; }
14423
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14425 printf %s "checking whether to build static libraries... " >&6; }
14426 # Make sure either enable_shared or enable_static is yes.
14427 test yes = "$enable_shared" || enable_static=yes
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14429 printf "%s\n" "$enable_static" >&6; }
14430
14431
14432
14433
14434 fi
14435 ac_ext=c
14436 ac_cpp='$CPP $CPPFLAGS'
14437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14440
14441 CC=$lt_save_CC
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457 ac_config_commands="$ac_config_commands libtool"
14458
14459
14460
14461
14462 # Only expand once:
14463
14464
14465 LIBM=
14466 case $host in
14467 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14468 # These system don't have libm, or don't need it
14469 ;;
14470 *-ncr-sysv4.3*)
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14472 printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
14473 if test ${ac_cv_lib_mw__mwvalidcheckl+y}
14474 then :
14475 printf %s "(cached) " >&6
14476 else $as_nop
14477 ac_check_lib_save_LIBS=$LIBS
14478 LIBS="-lmw $LIBS"
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481
14482 /* Override any GCC internal prototype to avoid an error.
14483 Use char because int might match the return type of a GCC
14484 builtin and then its argument prototype would still apply. */
14485 char _mwvalidcheckl ();
14486 int
14487 main (void)
14488 {
14489 return _mwvalidcheckl ();
14490 ;
14491 return 0;
14492 }
14493 _ACEOF
14494 if ac_fn_c_try_link "$LINENO"
14495 then :
14496 ac_cv_lib_mw__mwvalidcheckl=yes
14497 else $as_nop
14498 ac_cv_lib_mw__mwvalidcheckl=no
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LIBS=$ac_check_lib_save_LIBS
14503 fi
14504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14505 printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14506 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
14507 then :
14508 LIBM=-lmw
14509 fi
14510
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14512 printf %s "checking for cos in -lm... " >&6; }
14513 if test ${ac_cv_lib_m_cos+y}
14514 then :
14515 printf %s "(cached) " >&6
14516 else $as_nop
14517 ac_check_lib_save_LIBS=$LIBS
14518 LIBS="-lm $LIBS"
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14521
14522 /* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14525 char cos ();
14526 int
14527 main (void)
14528 {
14529 return cos ();
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 if ac_fn_c_try_link "$LINENO"
14535 then :
14536 ac_cv_lib_m_cos=yes
14537 else $as_nop
14538 ac_cv_lib_m_cos=no
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14541 conftest$ac_exeext conftest.$ac_ext
14542 LIBS=$ac_check_lib_save_LIBS
14543 fi
14544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14545 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
14546 if test "x$ac_cv_lib_m_cos" = xyes
14547 then :
14548 LIBM="$LIBM -lm"
14549 fi
14550
14551 ;;
14552 *)
14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14554 printf %s "checking for cos in -lm... " >&6; }
14555 if test ${ac_cv_lib_m_cos+y}
14556 then :
14557 printf %s "(cached) " >&6
14558 else $as_nop
14559 ac_check_lib_save_LIBS=$LIBS
14560 LIBS="-lm $LIBS"
14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14563
14564 /* Override any GCC internal prototype to avoid an error.
14565 Use char because int might match the return type of a GCC
14566 builtin and then its argument prototype would still apply. */
14567 char cos ();
14568 int
14569 main (void)
14570 {
14571 return cos ();
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_c_try_link "$LINENO"
14577 then :
14578 ac_cv_lib_m_cos=yes
14579 else $as_nop
14580 ac_cv_lib_m_cos=no
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14583 conftest$ac_exeext conftest.$ac_ext
14584 LIBS=$ac_check_lib_save_LIBS
14585 fi
14586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14587 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
14588 if test "x$ac_cv_lib_m_cos" = xyes
14589 then :
14590 LIBM=-lm
14591 fi
14592
14593 ;;
14594 esac
14595
14596
14597
14598
14599 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14600 if test "x$ac_cv_header_sys_types_h" = xyes
14601 then :
14602 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
14603
14604 fi
14605 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14606 if test "x$ac_cv_header_sys_time_h" = xyes
14607 then :
14608 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14609
14610 fi
14611 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14612 if test "x$ac_cv_header_unistd_h" = xyes
14613 then :
14614 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14615
14616 fi
14617
14618
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to pass version script to the linker ($LD)" >&5
14620 printf %s "checking how to pass version script to the linker ($LD)... " >&6; }
14621 VERSION_SCRIPT_FLAGS=none
14622 if $LD --help 2>&1 | grep "version-script" >/dev/null 2>/dev/null; then
14623 VERSION_SCRIPT_FLAGS=''
14624
14625
14626
14627
14628 for flag in -Wl,--undefined-version; do
14629 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
14630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14631 printf %s "checking whether the linker accepts $flag... " >&6; }
14632 if eval test \${$as_CACHEVAR+y}
14633 then :
14634 printf %s "(cached) " >&6
14635 else $as_nop
14636
14637 ax_check_save_flags=$LDFLAGS
14638 LDFLAGS="$LDFLAGS $flag"
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14641
14642 int
14643 main (void)
14644 {
14645
14646 ;
14647 return 0;
14648 }
14649 _ACEOF
14650 if ac_fn_c_try_link "$LINENO"
14651 then :
14652 eval "$as_CACHEVAR=yes"
14653 else $as_nop
14654 eval "$as_CACHEVAR=no"
14655 fi
14656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14657 conftest$ac_exeext conftest.$ac_ext
14658 LDFLAGS=$ax_check_save_flags
14659 fi
14660 eval ac_res=\$$as_CACHEVAR
14661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14662 printf "%s\n" "$ac_res" >&6; }
14663 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14664 then :
14665
14666 if test ${VERSION_SCRIPT_FLAGS+y}
14667 then :
14668
14669 case " $VERSION_SCRIPT_FLAGS " in #(
14670 *" $flag "*) :
14671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : VERSION_SCRIPT_FLAGS already contains \$flag"; } >&5
14672 (: VERSION_SCRIPT_FLAGS already contains $flag) 2>&5
14673 ac_status=$?
14674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14675 test $ac_status = 0; } ;; #(
14676 *) :
14677
14678 as_fn_append VERSION_SCRIPT_FLAGS " $flag"
14679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : VERSION_SCRIPT_FLAGS=\"\$VERSION_SCRIPT_FLAGS\""; } >&5
14680 (: VERSION_SCRIPT_FLAGS="$VERSION_SCRIPT_FLAGS") 2>&5
14681 ac_status=$?
14682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683 test $ac_status = 0; }
14684 ;;
14685 esac
14686
14687 else $as_nop
14688
14689 VERSION_SCRIPT_FLAGS=$flag
14690 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : VERSION_SCRIPT_FLAGS=\"\$VERSION_SCRIPT_FLAGS\""; } >&5
14691 (: VERSION_SCRIPT_FLAGS="$VERSION_SCRIPT_FLAGS") 2>&5
14692 ac_status=$?
14693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14694 test $ac_status = 0; }
14695
14696 fi
14697
14698 else $as_nop
14699 :
14700 fi
14701
14702 done
14703
14704
14705 if test ${VERSION_SCRIPT_FLAGS+y}
14706 then :
14707
14708 case " $VERSION_SCRIPT_FLAGS " in #(
14709 *" -Wl,--version-script= "*) :
14710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : VERSION_SCRIPT_FLAGS already contains -Wl,--version-script="; } >&5
14711 (: VERSION_SCRIPT_FLAGS already contains -Wl,--version-script=) 2>&5
14712 ac_status=$?
14713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14714 test $ac_status = 0; } ;; #(
14715 *) :
14716
14717 as_fn_append VERSION_SCRIPT_FLAGS " -Wl,--version-script="
14718 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : VERSION_SCRIPT_FLAGS=\"\$VERSION_SCRIPT_FLAGS\""; } >&5
14719 (: VERSION_SCRIPT_FLAGS="$VERSION_SCRIPT_FLAGS") 2>&5
14720 ac_status=$?
14721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14722 test $ac_status = 0; }
14723 ;;
14724 esac
14725
14726 else $as_nop
14727
14728 VERSION_SCRIPT_FLAGS=-Wl,--version-script=
14729 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : VERSION_SCRIPT_FLAGS=\"\$VERSION_SCRIPT_FLAGS\""; } >&5
14730 (: VERSION_SCRIPT_FLAGS="$VERSION_SCRIPT_FLAGS") 2>&5
14731 ac_status=$?
14732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14733 test $ac_status = 0; }
14734
14735 fi
14736
14737 elif $LD --help 2>&1 | grep "M mapfile" >/dev/null 2>/dev/null; then
14738 VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
14739 fi
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VERSION_SCRIPT_FLAGS" >&5
14741 printf "%s\n" "$VERSION_SCRIPT_FLAGS" >&6; }
14742
14743 if test "$VERSION_SCRIPT_FLAGS" != none; then
14744 USE_VERSION_SCRIPT_TRUE=
14745 USE_VERSION_SCRIPT_FALSE='#'
14746 else
14747 USE_VERSION_SCRIPT_TRUE='#'
14748 USE_VERSION_SCRIPT_FALSE=
14749 fi
14750
14751
14752 case $host in
14753 *-mingw*) ;;
14754 *)
14755 WITH_THREADS=0
14756 THREAD_LIBS=""
14757 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14758 if test "x$ac_cv_header_pthread_h" = xyes
14759 then :
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
14761 printf %s "checking for pthread_join in -lpthread... " >&6; }
14762 if test ${ac_cv_lib_pthread_pthread_join+y}
14763 then :
14764 printf %s "(cached) " >&6
14765 else $as_nop
14766 ac_check_lib_save_LIBS=$LIBS
14767 LIBS="-lpthread $LIBS"
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770
14771 /* Override any GCC internal prototype to avoid an error.
14772 Use char because int might match the return type of a GCC
14773 builtin and then its argument prototype would still apply. */
14774 char pthread_join ();
14775 int
14776 main (void)
14777 {
14778 return pthread_join ();
14779 ;
14780 return 0;
14781 }
14782 _ACEOF
14783 if ac_fn_c_try_link "$LINENO"
14784 then :
14785 ac_cv_lib_pthread_pthread_join=yes
14786 else $as_nop
14787 ac_cv_lib_pthread_pthread_join=no
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14790 conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14792 fi
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
14794 printf "%s\n" "$ac_cv_lib_pthread_pthread_join" >&6; }
14795 if test "x$ac_cv_lib_pthread_pthread_join" = xyes
14796 then :
14797
14798
14799 printf "%s\n" "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
14800
14801
14802 printf "%s\n" "#define HAVE_PTHREAD_H /**/" >>confdefs.h
14803
14804 WITH_THREADS="1"
14805 THREAD_LIBS="-lpthread"
14806 fi
14807
14808 fi
14809
14810 ;;
14811 esac
14812
14813
14814
14815
14816
14817 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14818 if test "x$ac_cv_header_locale_h" = xyes
14819 then :
14820 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
14821
14822 fi
14823 ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
14824 if test "x$ac_cv_header_xlocale_h" = xyes
14825 then :
14826 printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
14827
14828 fi
14829
14830 ac_fn_c_check_func "$LINENO" "strxfrm_l" "ac_cv_func_strxfrm_l"
14831 if test "x$ac_cv_func_strxfrm_l" = xyes
14832 then :
14833 printf "%s\n" "#define HAVE_STRXFRM_L 1" >>confdefs.h
14834
14835 fi
14836
14837
14838
14839 ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14840 if test "x$ac_cv_header_sys_timeb_h" = xyes
14841 then :
14842 printf "%s\n" "#define HAVE_SYS_TIMEB_H 1" >>confdefs.h
14843
14844 fi
14845 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
14846 if test "x$ac_cv_header_sys_stat_h" = xyes
14847 then :
14848 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
14849
14850 fi
14851 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14852 if test "x$ac_cv_header_sys_select_h" = xyes
14853 then :
14854 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
14855
14856 fi
14857
14858 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
14859 if test "x$ac_cv_func_stat" = xyes
14860 then :
14861 printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
14862
14863 fi
14864 ac_fn_c_check_func "$LINENO" "_stat" "ac_cv_func__stat"
14865 if test "x$ac_cv_func__stat" = xyes
14866 then :
14867 printf "%s\n" "#define HAVE__STAT 1" >>confdefs.h
14868
14869 fi
14870
14871
14872 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14873 if test "x$ac_cv_func_gettimeofday" = xyes
14874 then :
14875 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
14876
14877 fi
14878
14879 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14880 if test "x$ac_cv_func_localtime_r" = xyes
14881 then :
14882 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14883
14884 fi
14885 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14886 if test "x$ac_cv_func_gmtime_r" = xyes
14887 then :
14888 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
14889
14890 fi
14891 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
14892 if test "x$ac_cv_func_ftime" = xyes
14893 then :
14894 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
14895
14896 fi
14897
14898
14899
14900 for ac_func in snprintf vsnprintf
14901 do :
14902 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
14903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14904 if eval test \"x\$"$as_ac_var"\" = x"yes"
14905 then :
14906 cat >>confdefs.h <<_ACEOF
14907 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
14908 _ACEOF
14909
14910 else $as_nop
14911 NEED_TRIO=1
14912 fi
14913
14914 done
14915
14916
14917 for ac_func in clock_gettime
14918 do :
14919 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14920 if test "x$ac_cv_func_clock_gettime" = xyes
14921 then :
14922 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14923
14924 else $as_nop
14925
14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
14927 printf %s "checking for clock_gettime in -lrt... " >&6; }
14928 if test ${ac_cv_lib_rt_clock_gettime+y}
14929 then :
14930 printf %s "(cached) " >&6
14931 else $as_nop
14932 ac_check_lib_save_LIBS=$LIBS
14933 LIBS="-lrt $LIBS"
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936
14937 /* Override any GCC internal prototype to avoid an error.
14938 Use char because int might match the return type of a GCC
14939 builtin and then its argument prototype would still apply. */
14940 char clock_gettime ();
14941 int
14942 main (void)
14943 {
14944 return clock_gettime ();
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"
14950 then :
14951 ac_cv_lib_rt_clock_gettime=yes
14952 else $as_nop
14953 ac_cv_lib_rt_clock_gettime=no
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14956 conftest$ac_exeext conftest.$ac_ext
14957 LIBS=$ac_check_lib_save_LIBS
14958 fi
14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
14960 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
14961 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
14962 then :
14963
14964 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14965
14966 EXTRA_LIBS="$EXTRA_LIBS -lrt"
14967
14968 fi
14969
14970
14971 fi
14972
14973 done
14974
14975
14976 if test "${NEED_TRIO}" = "1" ; then
14977 echo Reusing trio library for string functions
14978 WITH_TRIO=1
14979 else
14980 WITH_TRIO=0
14981 fi
14982
14983
14984
14985
14986
14987 # Extract the first word of "perl", so it can be a program name with args.
14988 set dummy perl; ac_word=$2
14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14990 printf %s "checking for $ac_word... " >&6; }
14991 if test ${ac_cv_prog_PERL+y}
14992 then :
14993 printf %s "(cached) " >&6
14994 else $as_nop
14995 if test -n "$PERL"; then
14996 ac_cv_prog_PERL="$PERL" # Let the user override the test.
14997 else
14998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14999 for as_dir in $PATH
15000 do
15001 IFS=$as_save_IFS
15002 case $as_dir in #(((
15003 '') as_dir=./ ;;
15004 */) ;;
15005 *) as_dir=$as_dir/ ;;
15006 esac
15007 for ac_exec_ext in '' $ac_executable_extensions; do
15008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15009 ac_cv_prog_PERL="perl"
15010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15011 break 2
15012 fi
15013 done
15014 done
15015 IFS=$as_save_IFS
15016
15017 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
15018 fi
15019 fi
15020 PERL=$ac_cv_prog_PERL
15021 if test -n "$PERL"; then
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15023 printf "%s\n" "$PERL" >&6; }
15024 else
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15026 printf "%s\n" "no" >&6; }
15027 fi
15028
15029
15030 if test "$PERL" != "false"; then
15031 WITH_PERL_TRUE=
15032 WITH_PERL_FALSE='#'
15033 else
15034 WITH_PERL_TRUE='#'
15035 WITH_PERL_FALSE=
15036 fi
15037
15038
15039
15040
15041 # Check whether --with-python was given.
15042 if test ${with_python+y}
15043 then :
15044 withval=$with_python;
15045 fi
15046
15047
15048 if test "x$with_python" != "xno"
15049 then :
15050
15051
15052
15053
15054
15055
15056
15057 # Find any Python interpreter.
15058 if test -z "$PYTHON"; then
15059 for ac_prog in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
15060 do
15061 # Extract the first word of "$ac_prog", so it can be a program name with args.
15062 set dummy $ac_prog; ac_word=$2
15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15064 printf %s "checking for $ac_word... " >&6; }
15065 if test ${ac_cv_path_PYTHON+y}
15066 then :
15067 printf %s "(cached) " >&6
15068 else $as_nop
15069 case $PYTHON in
15070 [\\/]* | ?:[\\/]*)
15071 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15072 ;;
15073 *)
15074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075 for as_dir in $PATH
15076 do
15077 IFS=$as_save_IFS
15078 case $as_dir in #(((
15079 '') as_dir=./ ;;
15080 */) ;;
15081 *) as_dir=$as_dir/ ;;
15082 esac
15083 for ac_exec_ext in '' $ac_executable_extensions; do
15084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15085 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
15086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15087 break 2
15088 fi
15089 done
15090 done
15091 IFS=$as_save_IFS
15092
15093 ;;
15094 esac
15095 fi
15096 PYTHON=$ac_cv_path_PYTHON
15097 if test -n "$PYTHON"; then
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15099 printf "%s\n" "$PYTHON" >&6; }
15100 else
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 printf "%s\n" "no" >&6; }
15103 fi
15104
15105
15106 test -n "$PYTHON" && break
15107 done
15108 test -n "$PYTHON" || PYTHON=":"
15109
15110 fi
15111 am_display_PYTHON=python
15112
15113
15114 if test "$PYTHON" = :; then
15115 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
15116 else
15117
15118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
15119 printf %s "checking for $am_display_PYTHON version... " >&6; }
15120 if test ${am_cv_python_version+y}
15121 then :
15122 printf %s "(cached) " >&6
15123 else $as_nop
15124 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
15125 fi
15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
15127 printf "%s\n" "$am_cv_python_version" >&6; }
15128 PYTHON_VERSION=$am_cv_python_version
15129
15130
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
15132 printf %s "checking for $am_display_PYTHON platform... " >&6; }
15133 if test ${am_cv_python_platform+y}
15134 then :
15135 printf %s "(cached) " >&6
15136 else $as_nop
15137 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
15138 fi
15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
15140 printf "%s\n" "$am_cv_python_platform" >&6; }
15141 PYTHON_PLATFORM=$am_cv_python_platform
15142
15143
15144 if test "x$prefix" = xNONE; then
15145 am__usable_prefix=$ac_default_prefix
15146 else
15147 am__usable_prefix=$prefix
15148 fi
15149
15150 # Allow user to request using sys.* values from Python,
15151 # instead of the GNU $prefix values.
15152
15153 # Check whether --with-python-sys-prefix was given.
15154 if test ${with_python_sys_prefix+y}
15155 then :
15156 withval=$with_python_sys_prefix; am_use_python_sys=:
15157 else $as_nop
15158 am_use_python_sys=false
15159 fi
15160
15161
15162 # Allow user to override whatever the default Python prefix is.
15163
15164 # Check whether --with-python_prefix was given.
15165 if test ${with_python_prefix+y}
15166 then :
15167 withval=$with_python_prefix; am_python_prefix_subst=$withval
15168 am_cv_python_prefix=$withval
15169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
15170 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
15172 printf "%s\n" "$am_cv_python_prefix" >&6; }
15173 else $as_nop
15174
15175 if $am_use_python_sys; then
15176 # using python sys.prefix value, not GNU
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
15178 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
15179 if test ${am_cv_python_prefix+y}
15180 then :
15181 printf %s "(cached) " >&6
15182 else $as_nop
15183 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
15184 fi
15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
15186 printf "%s\n" "$am_cv_python_prefix" >&6; }
15187
15188 case $am_cv_python_prefix in
15189 $am__usable_prefix*)
15190 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
15191 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
15192 ;;
15193 *)
15194 am_python_prefix_subst=$am_cv_python_prefix
15195 ;;
15196 esac
15197 else # using GNU prefix value, not python sys.prefix
15198 am_python_prefix_subst='${prefix}'
15199 am_python_prefix=$am_python_prefix_subst
15200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
15201 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
15202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
15203 printf "%s\n" "$am_python_prefix" >&6; }
15204 fi
15205 fi
15206
15207 # Substituting python_prefix_subst value.
15208 PYTHON_PREFIX=$am_python_prefix_subst
15209
15210
15211 # emacs-page Now do it all over again for Python exec_prefix, but with yet
15212 # another conditional: fall back to regular prefix if that was specified.
15213
15214 # Check whether --with-python_exec_prefix was given.
15215 if test ${with_python_exec_prefix+y}
15216 then :
15217 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
15218 am_cv_python_exec_prefix=$withval
15219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
15220 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
15222 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
15223 else $as_nop
15224
15225 # no explicit --with-python_exec_prefix, but if
15226 # --with-python_prefix was given, use its value for python_exec_prefix too.
15227 if test -n "$with_python_prefix"
15228 then :
15229 am_python_exec_prefix_subst=$with_python_prefix
15230 am_cv_python_exec_prefix=$with_python_prefix
15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
15232 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
15234 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
15235 else $as_nop
15236
15237 # Set am__usable_exec_prefix whether using GNU or Python values,
15238 # since we use that variable for pyexecdir.
15239 if test "x$exec_prefix" = xNONE; then
15240 am__usable_exec_prefix=$am__usable_prefix
15241 else
15242 am__usable_exec_prefix=$exec_prefix
15243 fi
15244 #
15245 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
15247 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
15248 if test ${am_cv_python_exec_prefix+y}
15249 then :
15250 printf %s "(cached) " >&6
15251 else $as_nop
15252 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
15253 fi
15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
15255 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
15256 case $am_cv_python_exec_prefix in
15257 $am__usable_exec_prefix*)
15258 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
15259 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
15260 ;;
15261 *)
15262 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
15263 ;;
15264 esac
15265 else # using GNU $exec_prefix, not python sys.exec_prefix
15266 am_python_exec_prefix_subst='${exec_prefix}'
15267 am_python_exec_prefix=$am_python_exec_prefix_subst
15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
15269 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
15270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
15271 printf "%s\n" "$am_python_exec_prefix" >&6; }
15272 fi
15273 fi
15274 fi
15275
15276 # Substituting python_exec_prefix_subst.
15277 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
15278
15279
15280 # Factor out some code duplication into this shell variable.
15281 am_python_setup_sysconfig="\
15282 import sys
15283 # Prefer sysconfig over distutils.sysconfig, for better compatibility
15284 # with python 3.x. See automake bug#10227.
15285 try:
15286 import sysconfig
15287 except ImportError:
15288 can_use_sysconfig = 0
15289 else:
15290 can_use_sysconfig = 1
15291 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
15292 # <https://github.com/pypa/virtualenv/issues/118>
15293 try:
15294 from platform import python_implementation
15295 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
15296 can_use_sysconfig = 0
15297 except ImportError:
15298 pass"
15299
15300
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
15302 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
15303 if test ${am_cv_python_pythondir+y}
15304 then :
15305 printf %s "(cached) " >&6
15306 else $as_nop
15307 if test "x$am_cv_python_prefix" = x; then
15308 am_py_prefix=$am__usable_prefix
15309 else
15310 am_py_prefix=$am_cv_python_prefix
15311 fi
15312 am_cv_python_pythondir=`$PYTHON -c "
15313 $am_python_setup_sysconfig
15314 if can_use_sysconfig:
15315 if hasattr(sysconfig, 'get_default_scheme'):
15316 scheme = sysconfig.get_default_scheme()
15317 else:
15318 scheme = sysconfig._get_default_scheme()
15319 if scheme == 'posix_local':
15320 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
15321 scheme = 'posix_prefix'
15322 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
15323 else:
15324 from distutils import sysconfig
15325 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
15326 sys.stdout.write(sitedir)"`
15327 #
15328 case $am_cv_python_pythondir in
15329 $am_py_prefix*)
15330 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
15331 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
15332 ;;
15333 *)
15334 case $am_py_prefix in
15335 /usr|/System*) ;;
15336 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
15337 ;;
15338 esac
15339 ;;
15340 esac
15341
15342 fi
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
15344 printf "%s\n" "$am_cv_python_pythondir" >&6; }
15345 pythondir=$am_cv_python_pythondir
15346
15347
15348 pkgpythondir=\${pythondir}/$PACKAGE
15349
15350
15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
15352 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
15353 if test ${am_cv_python_pyexecdir+y}
15354 then :
15355 printf %s "(cached) " >&6
15356 else $as_nop
15357 if test "x$am_cv_python_exec_prefix" = x; then
15358 am_py_exec_prefix=$am__usable_exec_prefix
15359 else
15360 am_py_exec_prefix=$am_cv_python_exec_prefix
15361 fi
15362 am_cv_python_pyexecdir=`$PYTHON -c "
15363 $am_python_setup_sysconfig
15364 if can_use_sysconfig:
15365 if hasattr(sysconfig, 'get_default_scheme'):
15366 scheme = sysconfig.get_default_scheme()
15367 else:
15368 scheme = sysconfig._get_default_scheme()
15369 if scheme == 'posix_local':
15370 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
15371 scheme = 'posix_prefix'
15372 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
15373 else:
15374 from distutils import sysconfig
15375 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
15376 sys.stdout.write(sitedir)"`
15377 #
15378 case $am_cv_python_pyexecdir in
15379 $am_py_exec_prefix*)
15380 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15381 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
15382 ;;
15383 *)
15384 case $am_py_exec_prefix in
15385 /usr|/System*) ;;
15386 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
15387 ;;
15388 esac
15389 ;;
15390 esac
15391
15392 fi
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15394 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
15395 pyexecdir=$am_cv_python_pyexecdir
15396
15397
15398 pkgpyexecdir=\${pyexecdir}/$PACKAGE
15399
15400
15401
15402 fi
15403
15404
15405 pkg_failed=no
15406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python-${PYTHON_VERSION}" >&5
15407 printf %s "checking for python-${PYTHON_VERSION}... " >&6; }
15408
15409 if test -n "$PYTHON_CFLAGS"; then
15410 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
15411 elif test -n "$PKG_CONFIG"; then
15412 if test -n "$PKG_CONFIG" && \
15413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\${PYTHON_VERSION}\""; } >&5
15414 ($PKG_CONFIG --exists --print-errors "python-${PYTHON_VERSION}") 2>&5
15415 ac_status=$?
15416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15417 test $ac_status = 0; }; then
15418 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-${PYTHON_VERSION}" 2>/dev/null`
15419 test "x$?" != "x0" && pkg_failed=yes
15420 else
15421 pkg_failed=yes
15422 fi
15423 else
15424 pkg_failed=untried
15425 fi
15426 if test -n "$PYTHON_LIBS"; then
15427 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
15428 elif test -n "$PKG_CONFIG"; then
15429 if test -n "$PKG_CONFIG" && \
15430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\${PYTHON_VERSION}\""; } >&5
15431 ($PKG_CONFIG --exists --print-errors "python-${PYTHON_VERSION}") 2>&5
15432 ac_status=$?
15433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15434 test $ac_status = 0; }; then
15435 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-${PYTHON_VERSION}" 2>/dev/null`
15436 test "x$?" != "x0" && pkg_failed=yes
15437 else
15438 pkg_failed=yes
15439 fi
15440 else
15441 pkg_failed=untried
15442 fi
15443
15444
15445
15446 if test $pkg_failed = yes; then
15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15448 printf "%s\n" "no" >&6; }
15449
15450 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15451 _pkg_short_errors_supported=yes
15452 else
15453 _pkg_short_errors_supported=no
15454 fi
15455 if test $_pkg_short_errors_supported = yes; then
15456 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-${PYTHON_VERSION}" 2>&1`
15457 else
15458 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-${PYTHON_VERSION}" 2>&1`
15459 fi
15460 # Put the nasty error message in config.log where it belongs
15461 echo "$PYTHON_PKG_ERRORS" >&5
15462
15463 as_fn_error $? "Package requirements (python-${PYTHON_VERSION}) were not met:
15464
15465 $PYTHON_PKG_ERRORS
15466
15467 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15468 installed software in a non-standard prefix.
15469
15470 Alternatively, you may set the environment variables PYTHON_CFLAGS
15471 and PYTHON_LIBS to avoid the need to call pkg-config.
15472 See the pkg-config man page for more details." "$LINENO" 5
15473 elif test $pkg_failed = untried; then
15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15475 printf "%s\n" "no" >&6; }
15476 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15477 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15478 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15479 is in your PATH or set the PKG_CONFIG environment variable to the full
15480 path to pkg-config.
15481
15482 Alternatively, you may set the environment variables PYTHON_CFLAGS
15483 and PYTHON_LIBS to avoid the need to call pkg-config.
15484 See the pkg-config man page for more details.
15485
15486 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15487 See \`config.log' for more details" "$LINENO" 5; }
15488 else
15489 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
15490 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15492 printf "%s\n" "yes" >&6; }
15493
15494 fi
15495 case "$host" in
15496 *-*-cygwin* | *-*-mingw* | *-*-msys* )
15497 PYTHON_LDFLAGS="-no-undefined -shrext .pyd"
15498 ;;
15499 esac
15500
15501 fi
15502
15503 if test "x$with_python" != "xno"; then
15504 WITH_PYTHON_TRUE=
15505 WITH_PYTHON_FALSE='#'
15506 else
15507 WITH_PYTHON_TRUE='#'
15508 WITH_PYTHON_FALSE=
15509 fi
15510
15511
15512
15513 # Check whether --with-crypto was given.
15514 if test ${with_crypto+y}
15515 then :
15516 withval=$with_crypto;
15517 fi
15518
15519 WITH_CRYPTO=0
15520 CRYPTO_TESTDIR=
15521 if test "$with_crypto" != "yes" ; then
15522 LIBGCRYPT_CFLAGS=""
15523 LIBGCRYPT_LIBS=""
15524 else
15525 echo Enabling crypto support
15526 case $host in
15527 *-mingw*)
15528 WITH_CRYPTO=1
15529 CRYPTO_TESTDIR=crypto
15530 ;;
15531 *)
15532 if test -n "$ac_tool_prefix"; then
15533 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
15534 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
15535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15536 printf %s "checking for $ac_word... " >&6; }
15537 if test ${ac_cv_path_LIBGCRYPT_CONFIG+y}
15538 then :
15539 printf %s "(cached) " >&6
15540 else $as_nop
15541 case $LIBGCRYPT_CONFIG in
15542 [\\/]* | ?:[\\/]*)
15543 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
15544 ;;
15545 *)
15546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15547 for as_dir in $PATH
15548 do
15549 IFS=$as_save_IFS
15550 case $as_dir in #(((
15551 '') as_dir=./ ;;
15552 */) ;;
15553 *) as_dir=$as_dir/ ;;
15554 esac
15555 for ac_exec_ext in '' $ac_executable_extensions; do
15556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15557 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
15558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15559 break 2
15560 fi
15561 done
15562 done
15563 IFS=$as_save_IFS
15564
15565 ;;
15566 esac
15567 fi
15568 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
15569 if test -n "$LIBGCRYPT_CONFIG"; then
15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
15571 printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; }
15572 else
15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574 printf "%s\n" "no" >&6; }
15575 fi
15576
15577
15578 fi
15579 if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
15580 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
15581 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
15582 set dummy libgcrypt-config; ac_word=$2
15583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15584 printf %s "checking for $ac_word... " >&6; }
15585 if test ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+y}
15586 then :
15587 printf %s "(cached) " >&6
15588 else $as_nop
15589 case $ac_pt_LIBGCRYPT_CONFIG in
15590 [\\/]* | ?:[\\/]*)
15591 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
15592 ;;
15593 *)
15594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595 for as_dir in $PATH
15596 do
15597 IFS=$as_save_IFS
15598 case $as_dir in #(((
15599 '') as_dir=./ ;;
15600 */) ;;
15601 *) as_dir=$as_dir/ ;;
15602 esac
15603 for ac_exec_ext in '' $ac_executable_extensions; do
15604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15605 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
15606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15607 break 2
15608 fi
15609 done
15610 done
15611 IFS=$as_save_IFS
15612
15613 ;;
15614 esac
15615 fi
15616 ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
15617 if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
15618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
15619 printf "%s\n" "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
15620 else
15621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622 printf "%s\n" "no" >&6; }
15623 fi
15624
15625 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
15626 LIBGCRYPT_CONFIG="no"
15627 else
15628 case $cross_compiling:$ac_tool_warned in
15629 yes:)
15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15631 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15632 ac_tool_warned=yes ;;
15633 esac
15634 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
15635 fi
15636 else
15637 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
15638 fi
15639
15640 if test "$LIBGCRYPT_CONFIG" != "no" ; then
15641 LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version`
15642 if test `echo $LIBGCRYPT_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -lt `echo "1.1.42" | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
15643 then
15644 LIBGCRYPT_CFLAGS=""
15645 LIBGCRYPT_LIBS=""
15646 echo 'gcrypt library version < 1.1.42 - Crypto extensions will not be available.'
15647 else
15648 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`
15649 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`
15650
15651 printf "%s\n" "#define HAVE_GCRYPT 1" >>confdefs.h
15652
15653 echo 'Crypto extensions will be available.'
15654 WITH_CRYPTO=1
15655 CRYPTO_TESTDIR=crypto
15656 fi
15657 else
15658
15659 pkg_failed=no
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgcrypt >= 1.1.42" >&5
15661 printf %s "checking for libgcrypt >= 1.1.42... " >&6; }
15662
15663 if test -n "$LIBGCRYPT_CFLAGS"; then
15664 pkg_cv_LIBGCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
15665 elif test -n "$PKG_CONFIG"; then
15666 if test -n "$PKG_CONFIG" && \
15667 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt >= 1.1.42\""; } >&5
15668 ($PKG_CONFIG --exists --print-errors "libgcrypt >= 1.1.42") 2>&5
15669 ac_status=$?
15670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15671 test $ac_status = 0; }; then
15672 pkg_cv_LIBGCRYPT_CFLAGS=`$PKG_CONFIG --cflags "libgcrypt >= 1.1.42" 2>/dev/null`
15673 test "x$?" != "x0" && pkg_failed=yes
15674 else
15675 pkg_failed=yes
15676 fi
15677 else
15678 pkg_failed=untried
15679 fi
15680 if test -n "$LIBGCRYPT_LIBS"; then
15681 pkg_cv_LIBGCRYPT_LIBS="$LIBGCRYPT_LIBS"
15682 elif test -n "$PKG_CONFIG"; then
15683 if test -n "$PKG_CONFIG" && \
15684 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgcrypt >= 1.1.42\""; } >&5
15685 ($PKG_CONFIG --exists --print-errors "libgcrypt >= 1.1.42") 2>&5
15686 ac_status=$?
15687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15688 test $ac_status = 0; }; then
15689 pkg_cv_LIBGCRYPT_LIBS=`$PKG_CONFIG --libs "libgcrypt >= 1.1.42" 2>/dev/null`
15690 test "x$?" != "x0" && pkg_failed=yes
15691 else
15692 pkg_failed=yes
15693 fi
15694 else
15695 pkg_failed=untried
15696 fi
15697
15698
15699
15700 if test $pkg_failed = yes; then
15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15702 printf "%s\n" "no" >&6; }
15703
15704 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15705 _pkg_short_errors_supported=yes
15706 else
15707 _pkg_short_errors_supported=no
15708 fi
15709 if test $_pkg_short_errors_supported = yes; then
15710 LIBGCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgcrypt >= 1.1.42" 2>&1`
15711 else
15712 LIBGCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgcrypt >= 1.1.42" 2>&1`
15713 fi
15714 # Put the nasty error message in config.log where it belongs
15715 echo "$LIBGCRYPT_PKG_ERRORS" >&5
15716
15717
15718 LIBGCRYPT_CFLAGS=""
15719 LIBGCRYPT_LIBS=""
15720 echo 'Crypto extensions will not be available. Install libgcrypt >= 1.1.42 and reconfigure to make available.'
15721
15722 elif test $pkg_failed = untried; then
15723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724 printf "%s\n" "no" >&6; }
15725
15726 LIBGCRYPT_CFLAGS=""
15727 LIBGCRYPT_LIBS=""
15728 echo 'Crypto extensions will not be available. Install libgcrypt >= 1.1.42 and reconfigure to make available.'
15729
15730 else
15731 LIBGCRYPT_CFLAGS=$pkg_cv_LIBGCRYPT_CFLAGS
15732 LIBGCRYPT_LIBS=$pkg_cv_LIBGCRYPT_LIBS
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15734 printf "%s\n" "yes" >&6; }
15735
15736
15737 printf "%s\n" "#define HAVE_GCRYPT 1" >>confdefs.h
15738
15739 echo 'Crypto extensions will be available.'
15740 WITH_CRYPTO=1
15741 CRYPTO_TESTDIR=crypt
15742
15743 fi
15744 fi
15745 esac
15746 fi
15747
15748
15749
15750
15751
15752
15753 # Check whether --with-debug was given.
15754 if test ${with_debug+y}
15755 then :
15756 withval=$with_debug;
15757 fi
15758
15759 if test "$with_debug" != "yes" ; then
15760 WITH_XSLT_DEBUG=0
15761 else
15762 echo Enabling debug support
15763 WITH_XSLT_DEBUG=1
15764 fi
15765
15766
15767
15768 # Check whether --with-debugger was given.
15769 if test ${with_debugger+y}
15770 then :
15771 withval=$with_debugger;
15772 fi
15773
15774 if test "$with_debugger" != "yes" ; then
15775 WITH_DEBUGGER=0
15776 else
15777 echo Enabling debugger
15778 WITH_DEBUGGER=1
15779
15780 printf "%s\n" "#define WITH_DEBUGGER /**/" >>confdefs.h
15781
15782 fi
15783
15784
15785
15786 # Check whether --with-profiler was given.
15787 if test ${with_profiler+y}
15788 then :
15789 withval=$with_profiler;
15790 fi
15791
15792 if test "$with_profiler" = "no" ; then
15793 echo Disabling profiler
15794 WITH_PROFILER=0
15795 else
15796 echo Enabling profiler
15797 WITH_PROFILER=1
15798
15799 printf "%s\n" "#define WITH_PROFILER /**/" >>confdefs.h
15800
15801 fi
15802
15803
15804
15805 LIBXML_CONFIG_PREFIX=""
15806 LIBXML_SRC=""
15807
15808
15809 # Check whether --with-libxml-prefix was given.
15810 if test ${with_libxml_prefix+y}
15811 then :
15812 withval=$with_libxml_prefix; LIBXML_CONFIG_PREFIX=$withval
15813
15814 fi
15815
15816
15817
15818 # Check whether --with-libxml-include-prefix was given.
15819 if test ${with_libxml_include_prefix+y}
15820 then :
15821 withval=$with_libxml_include_prefix; LIBXML_CFLAGS="-I$withval"
15822
15823 fi
15824
15825
15826
15827 # Check whether --with-libxml-libs-prefix was given.
15828 if test ${with_libxml_libs_prefix+y}
15829 then :
15830 withval=$with_libxml_libs_prefix; LIBXML_LIBS="-L$withval"
15831
15832 fi
15833
15834
15835
15836 # Check whether --with-libxml-src was given.
15837 if test ${with_libxml_src+y}
15838 then :
15839 withval=$with_libxml_src; LIBXML_SRC="$withval"
15840
15841 fi
15842
15843
15844
15845
15846
15847 if test "x$LIBXML_CONFIG_PREFIX" != "x"
15848 then
15849 if test -n "$ac_tool_prefix"; then
15850 # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
15851 set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
15852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15853 printf %s "checking for $ac_word... " >&6; }
15854 if test ${ac_cv_path_XML_CONFIG+y}
15855 then :
15856 printf %s "(cached) " >&6
15857 else $as_nop
15858 case $XML_CONFIG in
15859 [\\/]* | ?:[\\/]*)
15860 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
15861 ;;
15862 *)
15863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15864 for as_dir in ${LIBXML_CONFIG_PREFIX}/bin
15865 do
15866 IFS=$as_save_IFS
15867 case $as_dir in #(((
15868 '') as_dir=./ ;;
15869 */) ;;
15870 *) as_dir=$as_dir/ ;;
15871 esac
15872 for ac_exec_ext in '' $ac_executable_extensions; do
15873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15874 ac_cv_path_XML_CONFIG="$as_dir$ac_word$ac_exec_ext"
15875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15876 break 2
15877 fi
15878 done
15879 done
15880 IFS=$as_save_IFS
15881
15882 ;;
15883 esac
15884 fi
15885 XML_CONFIG=$ac_cv_path_XML_CONFIG
15886 if test -n "$XML_CONFIG"; then
15887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
15888 printf "%s\n" "$XML_CONFIG" >&6; }
15889 else
15890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15891 printf "%s\n" "no" >&6; }
15892 fi
15893
15894
15895 fi
15896 if test -z "$ac_cv_path_XML_CONFIG"; then
15897 ac_pt_XML_CONFIG=$XML_CONFIG
15898 # Extract the first word of "xml2-config", so it can be a program name with args.
15899 set dummy xml2-config; ac_word=$2
15900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15901 printf %s "checking for $ac_word... " >&6; }
15902 if test ${ac_cv_path_ac_pt_XML_CONFIG+y}
15903 then :
15904 printf %s "(cached) " >&6
15905 else $as_nop
15906 case $ac_pt_XML_CONFIG in
15907 [\\/]* | ?:[\\/]*)
15908 ac_cv_path_ac_pt_XML_CONFIG="$ac_pt_XML_CONFIG" # Let the user override the test with a path.
15909 ;;
15910 *)
15911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912 for as_dir in ${LIBXML_CONFIG_PREFIX}/bin
15913 do
15914 IFS=$as_save_IFS
15915 case $as_dir in #(((
15916 '') as_dir=./ ;;
15917 */) ;;
15918 *) as_dir=$as_dir/ ;;
15919 esac
15920 for ac_exec_ext in '' $ac_executable_extensions; do
15921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15922 ac_cv_path_ac_pt_XML_CONFIG="$as_dir$ac_word$ac_exec_ext"
15923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15924 break 2
15925 fi
15926 done
15927 done
15928 IFS=$as_save_IFS
15929
15930 ;;
15931 esac
15932 fi
15933 ac_pt_XML_CONFIG=$ac_cv_path_ac_pt_XML_CONFIG
15934 if test -n "$ac_pt_XML_CONFIG"; then
15935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_XML_CONFIG" >&5
15936 printf "%s\n" "$ac_pt_XML_CONFIG" >&6; }
15937 else
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939 printf "%s\n" "no" >&6; }
15940 fi
15941
15942 if test "x$ac_pt_XML_CONFIG" = x; then
15943 XML_CONFIG="false"
15944 else
15945 case $cross_compiling:$ac_tool_warned in
15946 yes:)
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15948 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15949 ac_tool_warned=yes ;;
15950 esac
15951 XML_CONFIG=$ac_pt_XML_CONFIG
15952 fi
15953 else
15954 XML_CONFIG="$ac_cv_path_XML_CONFIG"
15955 fi
15956
15957 else
15958 if test -n "$ac_tool_prefix"; then
15959 # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
15960 set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15962 printf %s "checking for $ac_word... " >&6; }
15963 if test ${ac_cv_path_XML_CONFIG+y}
15964 then :
15965 printf %s "(cached) " >&6
15966 else $as_nop
15967 case $XML_CONFIG in
15968 [\\/]* | ?:[\\/]*)
15969 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
15970 ;;
15971 *)
15972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15973 for as_dir in $PATH
15974 do
15975 IFS=$as_save_IFS
15976 case $as_dir in #(((
15977 '') as_dir=./ ;;
15978 */) ;;
15979 *) as_dir=$as_dir/ ;;
15980 esac
15981 for ac_exec_ext in '' $ac_executable_extensions; do
15982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15983 ac_cv_path_XML_CONFIG="$as_dir$ac_word$ac_exec_ext"
15984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15985 break 2
15986 fi
15987 done
15988 done
15989 IFS=$as_save_IFS
15990
15991 ;;
15992 esac
15993 fi
15994 XML_CONFIG=$ac_cv_path_XML_CONFIG
15995 if test -n "$XML_CONFIG"; then
15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5
15997 printf "%s\n" "$XML_CONFIG" >&6; }
15998 else
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16000 printf "%s\n" "no" >&6; }
16001 fi
16002
16003
16004 fi
16005 if test -z "$ac_cv_path_XML_CONFIG"; then
16006 ac_pt_XML_CONFIG=$XML_CONFIG
16007 # Extract the first word of "xml2-config", so it can be a program name with args.
16008 set dummy xml2-config; ac_word=$2
16009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16010 printf %s "checking for $ac_word... " >&6; }
16011 if test ${ac_cv_path_ac_pt_XML_CONFIG+y}
16012 then :
16013 printf %s "(cached) " >&6
16014 else $as_nop
16015 case $ac_pt_XML_CONFIG in
16016 [\\/]* | ?:[\\/]*)
16017 ac_cv_path_ac_pt_XML_CONFIG="$ac_pt_XML_CONFIG" # Let the user override the test with a path.
16018 ;;
16019 *)
16020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16021 for as_dir in $PATH
16022 do
16023 IFS=$as_save_IFS
16024 case $as_dir in #(((
16025 '') as_dir=./ ;;
16026 */) ;;
16027 *) as_dir=$as_dir/ ;;
16028 esac
16029 for ac_exec_ext in '' $ac_executable_extensions; do
16030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16031 ac_cv_path_ac_pt_XML_CONFIG="$as_dir$ac_word$ac_exec_ext"
16032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16033 break 2
16034 fi
16035 done
16036 done
16037 IFS=$as_save_IFS
16038
16039 ;;
16040 esac
16041 fi
16042 ac_pt_XML_CONFIG=$ac_cv_path_ac_pt_XML_CONFIG
16043 if test -n "$ac_pt_XML_CONFIG"; then
16044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_XML_CONFIG" >&5
16045 printf "%s\n" "$ac_pt_XML_CONFIG" >&6; }
16046 else
16047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048 printf "%s\n" "no" >&6; }
16049 fi
16050
16051 if test "x$ac_pt_XML_CONFIG" = x; then
16052 XML_CONFIG="false"
16053 else
16054 case $cross_compiling:$ac_tool_warned in
16055 yes:)
16056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16057 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16058 ac_tool_warned=yes ;;
16059 esac
16060 XML_CONFIG=$ac_pt_XML_CONFIG
16061 fi
16062 else
16063 XML_CONFIG="$ac_cv_path_XML_CONFIG"
16064 fi
16065
16066 fi
16067
16068 if test "${GCC}" != "yes" ; then
16069 case "${host}" in
16070 *-*-hpux* )
16071 AM_CFLAGS="${AM_CFLAGS} -Wp,-H30000"
16072 ;;
16073 *-dec-osf* )
16074 AM_CFLAGS="${AM_CFLAGS} -ieee"
16075 ;;
16076 esac
16077 else
16078 AM_CFLAGS="${AM_CFLAGS} -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
16079 case "${host}" in
16080 alpha*-*-linux* )
16081 AM_CFLAGS="${AM_CFLAGS} -mieee"
16082 ;;
16083 alpha*-*-osf* )
16084 AM_CFLAGS="${AM_CFLAGS} -mieee"
16085 ;;
16086 esac
16087 fi
16088
16089
16090 build_shared_libs="yes"
16091 build_static_libs="yes"
16092 xml_config_dynamic=
16093
16094 if test "$enable_shared" = "no"; then
16095 build_shared_libs="no"
16096 fi
16097
16098 if test "$enable_static" = "no"; then
16099 build_static_libs="no"
16100 fi
16101
16102 if test "$build_shared_libs" = "no" && test "$build_static_libs" = "no"; then
16103 build_static_libs="yes"
16104 fi
16105
16106
16107 if test "x$LIBXML_SRC" != "x"; then
16108 CWD=`pwd`
16109 if cd $LIBXML_SRC; then
16110 LIBXML_SRC=`pwd`
16111 XML_CONFIG="${LIBXML_SRC}/xml2-config"
16112 LIBXML_CFLAGS="-I${LIBXML_SRC}/include"
16113 if test "$build_static_libs" = "no"; then
16114 if $XML_CONFIG --help | grep -q '\--dynamic'; then
16115 xml_config_dynamic=--dynamic
16116 fi
16117 fi
16118 LIBXML_LIBS="-L${LIBXML_SRC} `$XML_CONFIG --libs $xml_config_dynamic`"
16119 cd $CWD
16120 else
16121 as_fn_error $? "libxml source dir not found (${LIBXML_SRC}), typo?" "$LINENO" 5
16122 fi
16123 fi
16124
16125
16126 if test "x$LIBXML_CONFIG_PREFIX" = "x" && test "x$LIBXML_LIBS" = "x"; then
16127 if test "$build_shared_libs" = "yes"; then
16128
16129 pkg_failed=no
16130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= $LIBXML_REQUIRED_VERSION" >&5
16131 printf %s "checking for libxml-2.0 >= $LIBXML_REQUIRED_VERSION... " >&6; }
16132
16133 if test -n "$LIBXML_CFLAGS"; then
16134 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
16135 elif test -n "$PKG_CONFIG"; then
16136 if test -n "$PKG_CONFIG" && \
16137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED_VERSION\""; } >&5
16138 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED_VERSION") 2>&5
16139 ac_status=$?
16140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16141 test $ac_status = 0; }; then
16142 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_REQUIRED_VERSION" 2>/dev/null`
16143 test "x$?" != "x0" && pkg_failed=yes
16144 else
16145 pkg_failed=yes
16146 fi
16147 else
16148 pkg_failed=untried
16149 fi
16150 if test -n "$LIBXML_LIBS"; then
16151 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
16152 elif test -n "$PKG_CONFIG"; then
16153 if test -n "$PKG_CONFIG" && \
16154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED_VERSION\""; } >&5
16155 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED_VERSION") 2>&5
16156 ac_status=$?
16157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16158 test $ac_status = 0; }; then
16159 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_REQUIRED_VERSION" 2>/dev/null`
16160 test "x$?" != "x0" && pkg_failed=yes
16161 else
16162 pkg_failed=yes
16163 fi
16164 else
16165 pkg_failed=untried
16166 fi
16167
16168
16169
16170 if test $pkg_failed = yes; then
16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16172 printf "%s\n" "no" >&6; }
16173
16174 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16175 _pkg_short_errors_supported=yes
16176 else
16177 _pkg_short_errors_supported=no
16178 fi
16179 if test $_pkg_short_errors_supported = yes; then
16180 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_REQUIRED_VERSION" 2>&1`
16181 else
16182 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_REQUIRED_VERSION" 2>&1`
16183 fi
16184 # Put the nasty error message in config.log where it belongs
16185 echo "$LIBXML_PKG_ERRORS" >&5
16186
16187
16188 elif test $pkg_failed = untried; then
16189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190 printf "%s\n" "no" >&6; }
16191
16192 else
16193 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
16194 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
16195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16196 printf "%s\n" "yes" >&6; }
16197
16198 fi
16199 else
16200 _save_PKG_CONFIG=$PKG_CONFIG
16201 PKG_CONFIG="$PKG_CONFIG --static"
16202
16203 pkg_failed=no
16204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= $LIBXML_REQUIRED_VERSION" >&5
16205 printf %s "checking for libxml-2.0 >= $LIBXML_REQUIRED_VERSION... " >&6; }
16206
16207 if test -n "$LIBXML_CFLAGS"; then
16208 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
16209 elif test -n "$PKG_CONFIG"; then
16210 if test -n "$PKG_CONFIG" && \
16211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED_VERSION\""; } >&5
16212 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED_VERSION") 2>&5
16213 ac_status=$?
16214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16215 test $ac_status = 0; }; then
16216 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_REQUIRED_VERSION" 2>/dev/null`
16217 test "x$?" != "x0" && pkg_failed=yes
16218 else
16219 pkg_failed=yes
16220 fi
16221 else
16222 pkg_failed=untried
16223 fi
16224 if test -n "$LIBXML_LIBS"; then
16225 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
16226 elif test -n "$PKG_CONFIG"; then
16227 if test -n "$PKG_CONFIG" && \
16228 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED_VERSION\""; } >&5
16229 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED_VERSION") 2>&5
16230 ac_status=$?
16231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16232 test $ac_status = 0; }; then
16233 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_REQUIRED_VERSION" 2>/dev/null`
16234 test "x$?" != "x0" && pkg_failed=yes
16235 else
16236 pkg_failed=yes
16237 fi
16238 else
16239 pkg_failed=untried
16240 fi
16241
16242
16243
16244 if test $pkg_failed = yes; then
16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16246 printf "%s\n" "no" >&6; }
16247
16248 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16249 _pkg_short_errors_supported=yes
16250 else
16251 _pkg_short_errors_supported=no
16252 fi
16253 if test $_pkg_short_errors_supported = yes; then
16254 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_REQUIRED_VERSION" 2>&1`
16255 else
16256 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_REQUIRED_VERSION" 2>&1`
16257 fi
16258 # Put the nasty error message in config.log where it belongs
16259 echo "$LIBXML_PKG_ERRORS" >&5
16260
16261
16262 elif test $pkg_failed = untried; then
16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16264 printf "%s\n" "no" >&6; }
16265
16266 else
16267 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
16268 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
16269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16270 printf "%s\n" "yes" >&6; }
16271
16272 fi
16273 PKG_CONFIG=$_save_PKG_CONFIG
16274 fi
16275 fi
16276
16277
16278 if test "x$LIBXML_LIBS" = "x" && ${XML_CONFIG} --libs > /dev/null 2>&1
16279 then
16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml libraries >= $LIBXML_REQUIRED_VERSION" >&5
16281 printf %s "checking for libxml libraries >= $LIBXML_REQUIRED_VERSION... " >&6; }
16282 XMLVERS=`$XML_CONFIG --version`
16283 if test `echo $XMLVERS | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -ge `echo $LIBXML_REQUIRED_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`; then
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLVERS found" >&5
16285 printf "%s\n" "$XMLVERS found" >&6; }
16286 else
16287 as_fn_error $? "Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" "$LINENO" 5
16288 fi
16289
16290 if test "$build_static_libs" = "no"; then
16291 if $XML_CONFIG --help | grep -q '\--dynamic'; then
16292 xml_config_dynamic=--dynamic
16293 fi
16294 fi
16295 LIBXML_LIBS="`$XML_CONFIG --libs $xml_config_dynamic`"
16296 LIBXML_CFLAGS="`$XML_CONFIG --cflags`"
16297 fi
16298
16299 if test "x$LIBXML_LIBS" = "x"
16300 then
16301 as_fn_error $? "Could not find libxml2 anywhere." "$LINENO" 5
16302 fi
16303
16304 AM_CFLAGS="$AM_CFLAGS $LIBXML_CFLAGS"
16305
16306
16307
16308 # Check whether --with-plugins was given.
16309 if test ${with_plugins+y}
16310 then :
16311 withval=$with_plugins;
16312 fi
16313
16314 if test "$with_plugins" = ""
16315 then
16316 with_plugins=no
16317 fi
16318
16319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether shared libraries will be built (required for plugins)" >&5
16320 printf %s "checking whether shared libraries will be built (required for plugins)... " >&6; }
16321 if test "$build_shared_libs" = "no" && test "$with_plugins" = "yes"; then
16322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 printf "%s\n" "no" >&6; }
16324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling plugin support." >&5
16325 printf "%s\n" "$as_me: WARNING: Disabling plugin support." >&2;}
16326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Plugins require that shared libraries be built." >&5
16327 printf "%s\n" "$as_me: WARNING: Plugins require that shared libraries be built." >&2;}
16328 with_plugins=no
16329 else
16330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16331 printf "%s\n" "yes" >&6; }
16332 fi
16333
16334 if test "$with_plugins" = "yes" ; then
16335 WITH_MODULES=1
16336
16337 case "$host" in
16338 *-*-cygwin* | *-*-mingw* | *-*-msys* )
16339
16340 printf "%s\n" "#define MODULE_EXTENSION \".dll\"" >>confdefs.h
16341
16342 ;;
16343 *)
16344
16345 printf "%s\n" "#define MODULE_EXTENSION \".so\"" >>confdefs.h
16346
16347 ;;
16348 esac
16349
16350 case "$host" in
16351 *-*-mingw*)
16352 ;;
16353 *)
16354 _libs=$LIBS
16355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16356 printf %s "checking for library containing dlopen... " >&6; }
16357 if test ${ac_cv_search_dlopen+y}
16358 then :
16359 printf %s "(cached) " >&6
16360 else $as_nop
16361 ac_func_search_save_LIBS=$LIBS
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16364
16365 /* Override any GCC internal prototype to avoid an error.
16366 Use char because int might match the return type of a GCC
16367 builtin and then its argument prototype would still apply. */
16368 char dlopen ();
16369 int
16370 main (void)
16371 {
16372 return dlopen ();
16373 ;
16374 return 0;
16375 }
16376 _ACEOF
16377 for ac_lib in '' dl
16378 do
16379 if test -z "$ac_lib"; then
16380 ac_res="none required"
16381 else
16382 ac_res=-l$ac_lib
16383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16384 fi
16385 if ac_fn_c_try_link "$LINENO"
16386 then :
16387 ac_cv_search_dlopen=$ac_res
16388 fi
16389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16390 conftest$ac_exeext
16391 if test ${ac_cv_search_dlopen+y}
16392 then :
16393 break
16394 fi
16395 done
16396 if test ${ac_cv_search_dlopen+y}
16397 then :
16398
16399 else $as_nop
16400 ac_cv_search_dlopen=no
16401 fi
16402 rm conftest.$ac_ext
16403 LIBS=$ac_func_search_save_LIBS
16404 fi
16405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16406 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
16407 ac_res=$ac_cv_search_dlopen
16408 if test "$ac_res" != no
16409 then :
16410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16411
16412 WITH_MODULES=1
16413 if test "$ac_cv_search_dlopen" != "none required"; then
16414 MODULE_LIBS=$ac_cv_search_dlopen
16415 fi
16416 else $as_nop
16417
16418 as_fn_error $? "dlopen or equivalent not found" "$LINENO" 5
16419
16420 fi
16421
16422 LIBS=$_libs
16423 ;;
16424 esac
16425
16426 expanded_libdir=$(
16427 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16428 test "x$exec_prefix" = xNONE && exec_prefix="$prefix"
16429 while test "$libdir_old" != "$libdir"; do
16430 libdir_old="$libdir"
16431 eval libdir="$libdir"
16432 done
16433 echo "$libdir"
16434 )
16435 LIBXSLT_DEFAULT_PLUGINS_PATH="$expanded_libdir/libxslt-plugins"
16436
16437 else
16438 WITH_MODULES="0"
16439 fi
16440
16441
16442 if test "$WITH_MODULES" = "1"; then
16443 WITH_MODULES_TRUE=
16444 WITH_MODULES_FALSE='#'
16445 else
16446 WITH_MODULES_TRUE='#'
16447 WITH_MODULES_FALSE=
16448 fi
16449
16450
16451
16452
16453
16454
16455 XSLT_LIBDIR='-L${libdir}'
16456 XSLT_INCLUDEDIR='-I${includedir}'
16457 XSLT_LIBS="-lxslt $LIBXML_LIBS"
16458 XSLT_PRIVATE_LIBS="$MODULE_LIBS $LIBM"
16459
16460
16461
16462
16463
16464 LIBXSLT_CFLAGS=""
16465 LIBEXSLT_CFLAGS=""
16466 case ${host} in
16467 *-*-mingw* | *-*-cygwin* | *-*-msvc* )
16468 # If the host is Windows, and shared libraries are disabled, we
16469 # need to add -DLIBXML_STATIC to AM_CFLAGS in order for linking to
16470 # work properly (without it, xmlexports.h would force the use of
16471 # DLL imports, which obviously aren't present in a static
16472 # library).
16473 if test "x$enable_shared" = "xno"; then
16474 LIBXSLT_CFLAGS="$LIBXSLT_CFLAGS -DLIBXSLT_STATIC"
16475 LIBEXSLT_CFLAGS="$LIBEXSLT_CFLAGS -DLIBEXSLT_STATIC"
16476 AM_CFLAGS="$AM_CFLAGS -DLIBXSLT_STATIC -DLIBEXSLT_STATIC"
16477 fi
16478 ;;
16479 esac
16480
16481
16482
16483
16484
16485 EXSLT_LIBDIR='-L${libdir}'
16486 EXSLT_INCLUDEDIR='-I${includedir}'
16487 EXSLT_PRIVATE_LIBS="$XSLT_PRIVATE_LIBS $LIBGCRYPT_LIBS"
16488
16489
16490
16491
16492
16493
16494 RELDATE=`date +'%a %b %e %Y'`
16495
16496
16497
16498 ac_config_files="$ac_config_files Makefile libxslt.pc libexslt.pc libxslt-config.cmake libxslt/Makefile libxslt/xsltconfig.h libexslt/Makefile libexslt/exsltconfig.h xsltproc/Makefile python/Makefile python/setup.py python/tests/Makefile tests/Makefile tests/xmlspec/Makefile tests/multiple/Makefile tests/xinclude/Makefile tests/XSLTMark/Makefile tests/docbook/Makefile tests/fuzz/Makefile doc/Makefile doc/devhelp/Makefile doc/EXSLT/devhelp/Makefile"
16499
16500 ac_config_files="$ac_config_files xslt-config"
16501
16502
16503 cat >confcache <<\_ACEOF
16504 # This file is a shell script that caches the results of configure
16505 # tests run on this system so they can be shared between configure
16506 # scripts and configure runs, see configure's option --config-cache.
16507 # It is not useful on other systems. If it contains results you don't
16508 # want to keep, you may remove or edit it.
16509 #
16510 # config.status only pays attention to the cache file if you give it
16511 # the --recheck option to rerun configure.
16512 #
16513 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16514 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16515 # following values.
16516
16517 _ACEOF
16518
16519 # The following way of writing the cache mishandles newlines in values,
16520 # but we know of no workaround that is simple, portable, and efficient.
16521 # So, we kill variables containing newlines.
16522 # Ultrix sh set writes to stderr and can't be redirected directly,
16523 # and sets the high bit in the cache file unless we assign to the vars.
16524 (
16525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16526 eval ac_val=\$$ac_var
16527 case $ac_val in #(
16528 *${as_nl}*)
16529 case $ac_var in #(
16530 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16531 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16532 esac
16533 case $ac_var in #(
16534 _ | IFS | as_nl) ;; #(
16535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16536 *) { eval $ac_var=; unset $ac_var;} ;;
16537 esac ;;
16538 esac
16539 done
16540
16541 (set) 2>&1 |
16542 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16543 *${as_nl}ac_space=\ *)
16544 # `set' does not quote correctly, so add quotes: double-quote
16545 # substitution turns \\\\ into \\, and sed turns \\ into \.
16546 sed -n \
16547 "s/'/'\\\\''/g;
16548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16549 ;; #(
16550 *)
16551 # `set' quotes correctly as required by POSIX, so do not add quotes.
16552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16553 ;;
16554 esac |
16555 sort
16556 ) |
16557 sed '
16558 /^ac_cv_env_/b end
16559 t clear
16560 :clear
16561 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16562 t end
16563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16564 :end' >>confcache
16565 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16566 if test -w "$cache_file"; then
16567 if test "x$cache_file" != "x/dev/null"; then
16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16569 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16570 if test ! -f "$cache_file" || test -h "$cache_file"; then
16571 cat confcache >"$cache_file"
16572 else
16573 case $cache_file in #(
16574 */* | ?:*)
16575 mv -f confcache "$cache_file"$$ &&
16576 mv -f "$cache_file"$$ "$cache_file" ;; #(
16577 *)
16578 mv -f confcache "$cache_file" ;;
16579 esac
16580 fi
16581 fi
16582 else
16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16584 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16585 fi
16586 fi
16587 rm -f confcache
16588
16589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16590 # Let make expand exec_prefix.
16591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16592
16593 DEFS=-DHAVE_CONFIG_H
16594
16595 ac_libobjs=
16596 ac_ltlibobjs=
16597 U=
16598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16599 # 1. Remove the extension, and $U if already installed.
16600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16601 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16603 # will be set to the directory where LIBOBJS objects are built.
16604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16606 done
16607 LIBOBJS=$ac_libobjs
16608
16609 LTLIBOBJS=$ac_ltlibobjs
16610
16611
16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16613 printf %s "checking that generated files are newer than configure... " >&6; }
16614 if test -n "$am_sleep_pid"; then
16615 # Hide warnings about reused PIDs.
16616 wait $am_sleep_pid 2>/dev/null
16617 fi
16618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16619 printf "%s\n" "done" >&6; }
16620 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16621 as_fn_error $? "conditional \"AMDEP\" was never defined.
16622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16623 fi
16624 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16625 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16627 fi
16628 if test -n "$EXEEXT"; then
16629 am__EXEEXT_TRUE=
16630 am__EXEEXT_FALSE='#'
16631 else
16632 am__EXEEXT_TRUE='#'
16633 am__EXEEXT_FALSE=
16634 fi
16635
16636 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16637 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16639 fi
16640 if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
16641 as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
16642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16643 fi
16644 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
16645 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
16646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16647 fi
16648 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
16649 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
16650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16651 fi
16652 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
16653 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
16654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16655 fi
16656
16657 : "${CONFIG_STATUS=./config.status}"
16658 ac_write_fail=0
16659 ac_clean_files_save=$ac_clean_files
16660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16662 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16663 as_write_fail=0
16664 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16665 #! $SHELL
16666 # Generated by $as_me.
16667 # Run this file to recreate the current configuration.
16668 # Compiler output produced by configure, useful for debugging
16669 # configure, is in config.log if it exists.
16670
16671 debug=false
16672 ac_cs_recheck=false
16673 ac_cs_silent=false
16674
16675 SHELL=\${CONFIG_SHELL-$SHELL}
16676 export SHELL
16677 _ASEOF
16678 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16679 ## -------------------- ##
16680 ## M4sh Initialization. ##
16681 ## -------------------- ##
16682
16683 # Be more Bourne compatible
16684 DUALCASE=1; export DUALCASE # for MKS sh
16685 as_nop=:
16686 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16687 then :
16688 emulate sh
16689 NULLCMD=:
16690 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16691 # is contrary to our usage. Disable this feature.
16692 alias -g '${1+"$@"}'='"$@"'
16693 setopt NO_GLOB_SUBST
16694 else $as_nop
16695 case `(set -o) 2>/dev/null` in #(
16696 *posix*) :
16697 set -o posix ;; #(
16698 *) :
16699 ;;
16700 esac
16701 fi
16702
16703
16704
16705 # Reset variables that may have inherited troublesome values from
16706 # the environment.
16707
16708 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16709 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16710 # side effect of setting IFS to empty, thus disabling word splitting.)
16711 # Quoting is to prevent editors from complaining about space-tab.
16712 as_nl='
16713 '
16714 export as_nl
16715 IFS=" "" $as_nl"
16716
16717 PS1='$ '
16718 PS2='> '
16719 PS4='+ '
16720
16721 # Ensure predictable behavior from utilities with locale-dependent output.
16722 LC_ALL=C
16723 export LC_ALL
16724 LANGUAGE=C
16725 export LANGUAGE
16726
16727 # We cannot yet rely on "unset" to work, but we need these variables
16728 # to be unset--not just set to an empty or harmless value--now, to
16729 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16730 # also avoids known problems related to "unset" and subshell syntax
16731 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16732 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16733 do eval test \${$as_var+y} \
16734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16735 done
16736
16737 # Ensure that fds 0, 1, and 2 are open.
16738 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16739 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16740 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16741
16742 # The user is always right.
16743 if ${PATH_SEPARATOR+false} :; then
16744 PATH_SEPARATOR=:
16745 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16746 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16747 PATH_SEPARATOR=';'
16748 }
16749 fi
16750
16751
16752 # Find who we are. Look in the path if we contain no directory separator.
16753 as_myself=
16754 case $0 in #((
16755 *[\\/]* ) as_myself=$0 ;;
16756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16757 for as_dir in $PATH
16758 do
16759 IFS=$as_save_IFS
16760 case $as_dir in #(((
16761 '') as_dir=./ ;;
16762 */) ;;
16763 *) as_dir=$as_dir/ ;;
16764 esac
16765 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16766 done
16767 IFS=$as_save_IFS
16768
16769 ;;
16770 esac
16771 # We did not find ourselves, most probably we were run as `sh COMMAND'
16772 # in which case we are not to be found in the path.
16773 if test "x$as_myself" = x; then
16774 as_myself=$0
16775 fi
16776 if test ! -f "$as_myself"; then
16777 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16778 exit 1
16779 fi
16780
16781
16782
16783 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16784 # ----------------------------------------
16785 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16786 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16787 # script with STATUS, using 1 if that was 0.
16788 as_fn_error ()
16789 {
16790 as_status=$1; test $as_status -eq 0 && as_status=1
16791 if test "$4"; then
16792 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16794 fi
16795 printf "%s\n" "$as_me: error: $2" >&2
16796 as_fn_exit $as_status
16797 } # as_fn_error
16798
16799
16800
16801 # as_fn_set_status STATUS
16802 # -----------------------
16803 # Set $? to STATUS, without forking.
16804 as_fn_set_status ()
16805 {
16806 return $1
16807 } # as_fn_set_status
16808
16809 # as_fn_exit STATUS
16810 # -----------------
16811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16812 as_fn_exit ()
16813 {
16814 set +e
16815 as_fn_set_status $1
16816 exit $1
16817 } # as_fn_exit
16818
16819 # as_fn_unset VAR
16820 # ---------------
16821 # Portably unset VAR.
16822 as_fn_unset ()
16823 {
16824 { eval $1=; unset $1;}
16825 }
16826 as_unset=as_fn_unset
16827
16828 # as_fn_append VAR VALUE
16829 # ----------------------
16830 # Append the text in VALUE to the end of the definition contained in VAR. Take
16831 # advantage of any shell optimizations that allow amortized linear growth over
16832 # repeated appends, instead of the typical quadratic growth present in naive
16833 # implementations.
16834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16835 then :
16836 eval 'as_fn_append ()
16837 {
16838 eval $1+=\$2
16839 }'
16840 else $as_nop
16841 as_fn_append ()
16842 {
16843 eval $1=\$$1\$2
16844 }
16845 fi # as_fn_append
16846
16847 # as_fn_arith ARG...
16848 # ------------------
16849 # Perform arithmetic evaluation on the ARGs, and store the result in the
16850 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16851 # must be portable across $(()) and expr.
16852 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16853 then :
16854 eval 'as_fn_arith ()
16855 {
16856 as_val=$(( $* ))
16857 }'
16858 else $as_nop
16859 as_fn_arith ()
16860 {
16861 as_val=`expr "$@" || test $? -eq 1`
16862 }
16863 fi # as_fn_arith
16864
16865
16866 if expr a : '\(a\)' >/dev/null 2>&1 &&
16867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16868 as_expr=expr
16869 else
16870 as_expr=false
16871 fi
16872
16873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16874 as_basename=basename
16875 else
16876 as_basename=false
16877 fi
16878
16879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16880 as_dirname=dirname
16881 else
16882 as_dirname=false
16883 fi
16884
16885 as_me=`$as_basename -- "$0" ||
16886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16887 X"$0" : 'X\(//\)$' \| \
16888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16889 printf "%s\n" X/"$0" |
16890 sed '/^.*\/\([^/][^/]*\)\/*$/{
16891 s//\1/
16892 q
16893 }
16894 /^X\/\(\/\/\)$/{
16895 s//\1/
16896 q
16897 }
16898 /^X\/\(\/\).*/{
16899 s//\1/
16900 q
16901 }
16902 s/.*/./; q'`
16903
16904 # Avoid depending upon Character Ranges.
16905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16908 as_cr_digits='0123456789'
16909 as_cr_alnum=$as_cr_Letters$as_cr_digits
16910
16911
16912 # Determine whether it's possible to make 'echo' print without a newline.
16913 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16914 # for compatibility with existing Makefiles.
16915 ECHO_C= ECHO_N= ECHO_T=
16916 case `echo -n x` in #(((((
16917 -n*)
16918 case `echo 'xy\c'` in
16919 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16920 xy) ECHO_C='\c';;
16921 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16922 ECHO_T=' ';;
16923 esac;;
16924 *)
16925 ECHO_N='-n';;
16926 esac
16927
16928 # For backward compatibility with old third-party macros, we provide
16929 # the shell variables $as_echo and $as_echo_n. New code should use
16930 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16931 as_echo='printf %s\n'
16932 as_echo_n='printf %s'
16933
16934 rm -f conf$$ conf$$.exe conf$$.file
16935 if test -d conf$$.dir; then
16936 rm -f conf$$.dir/conf$$.file
16937 else
16938 rm -f conf$$.dir
16939 mkdir conf$$.dir 2>/dev/null
16940 fi
16941 if (echo >conf$$.file) 2>/dev/null; then
16942 if ln -s conf$$.file conf$$ 2>/dev/null; then
16943 as_ln_s='ln -s'
16944 # ... but there are two gotchas:
16945 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16946 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16947 # In both cases, we have to default to `cp -pR'.
16948 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16949 as_ln_s='cp -pR'
16950 elif ln conf$$.file conf$$ 2>/dev/null; then
16951 as_ln_s=ln
16952 else
16953 as_ln_s='cp -pR'
16954 fi
16955 else
16956 as_ln_s='cp -pR'
16957 fi
16958 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16959 rmdir conf$$.dir 2>/dev/null
16960
16961
16962 # as_fn_mkdir_p
16963 # -------------
16964 # Create "$as_dir" as a directory, including parents if necessary.
16965 as_fn_mkdir_p ()
16966 {
16967
16968 case $as_dir in #(
16969 -*) as_dir=./$as_dir;;
16970 esac
16971 test -d "$as_dir" || eval $as_mkdir_p || {
16972 as_dirs=
16973 while :; do
16974 case $as_dir in #(
16975 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16976 *) as_qdir=$as_dir;;
16977 esac
16978 as_dirs="'$as_qdir' $as_dirs"
16979 as_dir=`$as_dirname -- "$as_dir" ||
16980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16981 X"$as_dir" : 'X\(//\)[^/]' \| \
16982 X"$as_dir" : 'X\(//\)$' \| \
16983 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16984 printf "%s\n" X"$as_dir" |
16985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16986 s//\1/
16987 q
16988 }
16989 /^X\(\/\/\)[^/].*/{
16990 s//\1/
16991 q
16992 }
16993 /^X\(\/\/\)$/{
16994 s//\1/
16995 q
16996 }
16997 /^X\(\/\).*/{
16998 s//\1/
16999 q
17000 }
17001 s/.*/./; q'`
17002 test -d "$as_dir" && break
17003 done
17004 test -z "$as_dirs" || eval "mkdir $as_dirs"
17005 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17006
17007
17008 } # as_fn_mkdir_p
17009 if mkdir -p . 2>/dev/null; then
17010 as_mkdir_p='mkdir -p "$as_dir"'
17011 else
17012 test -d ./-p && rmdir ./-p
17013 as_mkdir_p=false
17014 fi
17015
17016
17017 # as_fn_executable_p FILE
17018 # -----------------------
17019 # Test if FILE is an executable regular file.
17020 as_fn_executable_p ()
17021 {
17022 test -f "$1" && test -x "$1"
17023 } # as_fn_executable_p
17024 as_test_x='test -x'
17025 as_executable_p=as_fn_executable_p
17026
17027 # Sed expression to map a string onto a valid CPP name.
17028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17029
17030 # Sed expression to map a string onto a valid variable name.
17031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17032
17033
17034 exec 6>&1
17035 ## ----------------------------------- ##
17036 ## Main body of $CONFIG_STATUS script. ##
17037 ## ----------------------------------- ##
17038 _ASEOF
17039 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17040
17041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17042 # Save the log message, to keep $0 and so on meaningful, and to
17043 # report actual input values of CONFIG_FILES etc. instead of their
17044 # values after options handling.
17045 ac_log="
17046 This file was extended by libxslt $as_me 1.1.45, which was
17047 generated by GNU Autoconf 2.71. Invocation command line was
17048
17049 CONFIG_FILES = $CONFIG_FILES
17050 CONFIG_HEADERS = $CONFIG_HEADERS
17051 CONFIG_LINKS = $CONFIG_LINKS
17052 CONFIG_COMMANDS = $CONFIG_COMMANDS
17053 $ $0 $@
17054
17055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17056 "
17057
17058 _ACEOF
17059
17060 case $ac_config_files in *"
17061 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17062 esac
17063
17064 case $ac_config_headers in *"
17065 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17066 esac
17067
17068
17069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17070 # Files that config.status was made for.
17071 config_files="$ac_config_files"
17072 config_headers="$ac_config_headers"
17073 config_commands="$ac_config_commands"
17074
17075 _ACEOF
17076
17077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17078 ac_cs_usage="\
17079 \`$as_me' instantiates files and other configuration actions
17080 from templates according to the current configuration. Unless the files
17081 and actions are specified as TAGs, all are instantiated by default.
17082
17083 Usage: $0 [OPTION]... [TAG]...
17084
17085 -h, --help print this help, then exit
17086 -V, --version print version number and configuration settings, then exit
17087 --config print configuration, then exit
17088 -q, --quiet, --silent
17089 do not print progress messages
17090 -d, --debug don't remove temporary files
17091 --recheck update $as_me by reconfiguring in the same conditions
17092 --file=FILE[:TEMPLATE]
17093 instantiate the configuration file FILE
17094 --header=FILE[:TEMPLATE]
17095 instantiate the configuration header FILE
17096
17097 Configuration files:
17098 $config_files
17099
17100 Configuration headers:
17101 $config_headers
17102
17103 Configuration commands:
17104 $config_commands
17105
17106 Report bugs to the package provider."
17107
17108 _ACEOF
17109 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17110 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17112 ac_cs_config='$ac_cs_config_escaped'
17113 ac_cs_version="\\
17114 libxslt config.status 1.1.45
17115 configured by $0, generated by GNU Autoconf 2.71,
17116 with options \\"\$ac_cs_config\\"
17117
17118 Copyright (C) 2021 Free Software Foundation, Inc.
17119 This config.status script is free software; the Free Software Foundation
17120 gives unlimited permission to copy, distribute and modify it."
17121
17122 ac_pwd='$ac_pwd'
17123 srcdir='$srcdir'
17124 INSTALL='$INSTALL'
17125 MKDIR_P='$MKDIR_P'
17126 AWK='$AWK'
17127 test -n "\$AWK" || AWK=awk
17128 _ACEOF
17129
17130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17131 # The default lists apply if the user does not specify any file.
17132 ac_need_defaults=:
17133 while test $# != 0
17134 do
17135 case $1 in
17136 --*=?*)
17137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17138 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17139 ac_shift=:
17140 ;;
17141 --*=)
17142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17143 ac_optarg=
17144 ac_shift=:
17145 ;;
17146 *)
17147 ac_option=$1
17148 ac_optarg=$2
17149 ac_shift=shift
17150 ;;
17151 esac
17152
17153 case $ac_option in
17154 # Handling of the options.
17155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17156 ac_cs_recheck=: ;;
17157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17158 printf "%s\n" "$ac_cs_version"; exit ;;
17159 --config | --confi | --conf | --con | --co | --c )
17160 printf "%s\n" "$ac_cs_config"; exit ;;
17161 --debug | --debu | --deb | --de | --d | -d )
17162 debug=: ;;
17163 --file | --fil | --fi | --f )
17164 $ac_shift
17165 case $ac_optarg in
17166 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17167 '') as_fn_error $? "missing file argument" ;;
17168 esac
17169 as_fn_append CONFIG_FILES " '$ac_optarg'"
17170 ac_need_defaults=false;;
17171 --header | --heade | --head | --hea )
17172 $ac_shift
17173 case $ac_optarg in
17174 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17175 esac
17176 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17177 ac_need_defaults=false;;
17178 --he | --h)
17179 # Conflict between --help and --header
17180 as_fn_error $? "ambiguous option: \`$1'
17181 Try \`$0 --help' for more information.";;
17182 --help | --hel | -h )
17183 printf "%s\n" "$ac_cs_usage"; exit ;;
17184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17186 ac_cs_silent=: ;;
17187
17188 # This is an error.
17189 -*) as_fn_error $? "unrecognized option: \`$1'
17190 Try \`$0 --help' for more information." ;;
17191
17192 *) as_fn_append ac_config_targets " $1"
17193 ac_need_defaults=false ;;
17194
17195 esac
17196 shift
17197 done
17198
17199 ac_configure_extra_args=
17200
17201 if $ac_cs_silent; then
17202 exec 6>/dev/null
17203 ac_configure_extra_args="$ac_configure_extra_args --silent"
17204 fi
17205
17206 _ACEOF
17207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17208 if \$ac_cs_recheck; then
17209 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17210 shift
17211 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17212 CONFIG_SHELL='$SHELL'
17213 export CONFIG_SHELL
17214 exec "\$@"
17215 fi
17216
17217 _ACEOF
17218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17219 exec 5>>config.log
17220 {
17221 echo
17222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17223 ## Running $as_me. ##
17224 _ASBOX
17225 printf "%s\n" "$ac_log"
17226 } >&5
17227
17228 _ACEOF
17229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17230 #
17231 # INIT-COMMANDS
17232 #
17233 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17234
17235
17236 # The HP-UX ksh and POSIX shell print the target directory to stdout
17237 # if CDPATH is set.
17238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17239
17240 sed_quote_subst='$sed_quote_subst'
17241 double_quote_subst='$double_quote_subst'
17242 delay_variable_subst='$delay_variable_subst'
17243 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17244 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17245 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17246 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17247 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17248 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17249 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17250 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17251 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17252 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17253 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17254 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17255 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17256 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17257 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17258 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17259 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17260 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17261 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17262 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17263 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17264 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17265 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17266 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17267 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17268 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17269 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17270 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17271 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17272 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17273 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17274 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17275 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17276 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17277 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17278 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17279 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17280 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17281 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17282 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17283 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17284 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17285 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17286 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17287 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17288 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17289 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17290 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17291 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17292 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17293 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17294 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17295 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17296 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17297 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17298 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17299 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17300 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17301 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17302 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17303 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17304 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"`'
17305 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17306 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17307 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17308 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17309 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17310 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17311 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17312 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17313 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17314 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17315 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17316 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17317 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17318 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17319 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17320 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17321 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17322 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17323 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17324 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17325 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17326 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17327 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17328 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17329 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17330 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17331 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17332 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17333 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17334 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17335 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17336 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17337 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17338 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17339 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17340 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17341 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17342 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17343 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17344 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17345 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17346 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17347 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17348 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17349 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17350 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17351 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17352 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17353 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17354 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17355 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17356 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17357 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17358 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17359 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17360 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17361 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17362 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17363 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17364 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17365 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17366 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17367 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17368 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17369 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17370 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17371 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17372 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17373 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17374 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17375 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17376 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17377 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17378 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17379 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17380 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17381
17382 LTCC='$LTCC'
17383 LTCFLAGS='$LTCFLAGS'
17384 compiler='$compiler_DEFAULT'
17385
17386 # A function that is used when there is no print builtin or printf.
17387 func_fallback_echo ()
17388 {
17389 eval 'cat <<_LTECHO_EOF
17390 \$1
17391 _LTECHO_EOF'
17392 }
17393
17394 # Quote evaled strings.
17395 for var in AS \
17396 DLLTOOL \
17397 OBJDUMP \
17398 SHELL \
17399 ECHO \
17400 PATH_SEPARATOR \
17401 SED \
17402 GREP \
17403 EGREP \
17404 FGREP \
17405 LD \
17406 NM \
17407 LN_S \
17408 lt_SP2NL \
17409 lt_NL2SP \
17410 reload_flag \
17411 FILECMD \
17412 deplibs_check_method \
17413 file_magic_cmd \
17414 file_magic_glob \
17415 want_nocaseglob \
17416 sharedlib_from_linklib_cmd \
17417 AR \
17418 archiver_list_spec \
17419 STRIP \
17420 RANLIB \
17421 CC \
17422 CFLAGS \
17423 compiler \
17424 lt_cv_sys_global_symbol_pipe \
17425 lt_cv_sys_global_symbol_to_cdecl \
17426 lt_cv_sys_global_symbol_to_import \
17427 lt_cv_sys_global_symbol_to_c_name_address \
17428 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17429 lt_cv_nm_interface \
17430 nm_file_list_spec \
17431 lt_cv_truncate_bin \
17432 lt_prog_compiler_no_builtin_flag \
17433 lt_prog_compiler_pic \
17434 lt_prog_compiler_wl \
17435 lt_prog_compiler_static \
17436 lt_cv_prog_compiler_c_o \
17437 need_locks \
17438 MANIFEST_TOOL \
17439 DSYMUTIL \
17440 NMEDIT \
17441 LIPO \
17442 OTOOL \
17443 OTOOL64 \
17444 shrext_cmds \
17445 export_dynamic_flag_spec \
17446 whole_archive_flag_spec \
17447 compiler_needs_object \
17448 with_gnu_ld \
17449 allow_undefined_flag \
17450 no_undefined_flag \
17451 hardcode_libdir_flag_spec \
17452 hardcode_libdir_separator \
17453 exclude_expsyms \
17454 include_expsyms \
17455 file_list_spec \
17456 variables_saved_for_relink \
17457 libname_spec \
17458 library_names_spec \
17459 soname_spec \
17460 install_override_mode \
17461 finish_eval \
17462 old_striplib \
17463 striplib; do
17464 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17465 *[\\\\\\\`\\"\\\$]*)
17466 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17467 ;;
17468 *)
17469 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17470 ;;
17471 esac
17472 done
17473
17474 # Double-quote double-evaled strings.
17475 for var in reload_cmds \
17476 old_postinstall_cmds \
17477 old_postuninstall_cmds \
17478 old_archive_cmds \
17479 extract_expsyms_cmds \
17480 old_archive_from_new_cmds \
17481 old_archive_from_expsyms_cmds \
17482 archive_cmds \
17483 archive_expsym_cmds \
17484 module_cmds \
17485 module_expsym_cmds \
17486 export_symbols_cmds \
17487 prelink_cmds \
17488 postlink_cmds \
17489 postinstall_cmds \
17490 postuninstall_cmds \
17491 finish_cmds \
17492 sys_lib_search_path_spec \
17493 configure_time_dlsearch_path \
17494 configure_time_lt_sys_library_path; do
17495 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17496 *[\\\\\\\`\\"\\\$]*)
17497 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17498 ;;
17499 *)
17500 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17501 ;;
17502 esac
17503 done
17504
17505 ac_aux_dir='$ac_aux_dir'
17506
17507 # See if we are running on zsh, and set the options that allow our
17508 # commands through without removal of \ escapes INIT.
17509 if test -n "\${ZSH_VERSION+set}"; then
17510 setopt NO_GLOB_SUBST
17511 fi
17512
17513
17514 PACKAGE='$PACKAGE'
17515 VERSION='$VERSION'
17516 RM='$RM'
17517 ofile='$ofile'
17518
17519
17520
17521
17522 _ACEOF
17523
17524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17525
17526 # Handling of arguments.
17527 for ac_config_target in $ac_config_targets
17528 do
17529 case $ac_config_target in
17530 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17531 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17532 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17533 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17534 "libxslt.pc") CONFIG_FILES="$CONFIG_FILES libxslt.pc" ;;
17535 "libexslt.pc") CONFIG_FILES="$CONFIG_FILES libexslt.pc" ;;
17536 "libxslt-config.cmake") CONFIG_FILES="$CONFIG_FILES libxslt-config.cmake" ;;
17537 "libxslt/Makefile") CONFIG_FILES="$CONFIG_FILES libxslt/Makefile" ;;
17538 "libxslt/xsltconfig.h") CONFIG_FILES="$CONFIG_FILES libxslt/xsltconfig.h" ;;
17539 "libexslt/Makefile") CONFIG_FILES="$CONFIG_FILES libexslt/Makefile" ;;
17540 "libexslt/exsltconfig.h") CONFIG_FILES="$CONFIG_FILES libexslt/exsltconfig.h" ;;
17541 "xsltproc/Makefile") CONFIG_FILES="$CONFIG_FILES xsltproc/Makefile" ;;
17542 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
17543 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
17544 "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
17545 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17546 "tests/xmlspec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/xmlspec/Makefile" ;;
17547 "tests/multiple/Makefile") CONFIG_FILES="$CONFIG_FILES tests/multiple/Makefile" ;;
17548 "tests/xinclude/Makefile") CONFIG_FILES="$CONFIG_FILES tests/xinclude/Makefile" ;;
17549 "tests/XSLTMark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/XSLTMark/Makefile" ;;
17550 "tests/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docbook/Makefile" ;;
17551 "tests/fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fuzz/Makefile" ;;
17552 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17553 "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
17554 "doc/EXSLT/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/EXSLT/devhelp/Makefile" ;;
17555 "xslt-config") CONFIG_FILES="$CONFIG_FILES xslt-config" ;;
17556
17557 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17558 esac
17559 done
17560
17561
17562 # If the user did not use the arguments to specify the items to instantiate,
17563 # then the envvar interface is used. Set only those that are not.
17564 # We use the long form for the default assignment because of an extremely
17565 # bizarre bug on SunOS 4.1.3.
17566 if $ac_need_defaults; then
17567 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17568 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17569 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17570 fi
17571
17572 # Have a temporary directory for convenience. Make it in the build tree
17573 # simply because there is no reason against having it here, and in addition,
17574 # creating and moving files from /tmp can sometimes cause problems.
17575 # Hook for its removal unless debugging.
17576 # Note that there is a small window in which the directory will not be cleaned:
17577 # after its creation but before its name has been assigned to `$tmp'.
17578 $debug ||
17579 {
17580 tmp= ac_tmp=
17581 trap 'exit_status=$?
17582 : "${ac_tmp:=$tmp}"
17583 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17584 ' 0
17585 trap 'as_fn_exit 1' 1 2 13 15
17586 }
17587 # Create a (secure) tmp directory for tmp files.
17588
17589 {
17590 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17591 test -d "$tmp"
17592 } ||
17593 {
17594 tmp=./conf$$-$RANDOM
17595 (umask 077 && mkdir "$tmp")
17596 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17597 ac_tmp=$tmp
17598
17599 # Set up the scripts for CONFIG_FILES section.
17600 # No need to generate them if there are no CONFIG_FILES.
17601 # This happens for instance with `./config.status config.h'.
17602 if test -n "$CONFIG_FILES"; then
17603
17604
17605 ac_cr=`echo X | tr X '\015'`
17606 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17607 # But we know of no other shell where ac_cr would be empty at this
17608 # point, so we can use a bashism as a fallback.
17609 if test "x$ac_cr" = x; then
17610 eval ac_cr=\$\'\\r\'
17611 fi
17612 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17613 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17614 ac_cs_awk_cr='\\r'
17615 else
17616 ac_cs_awk_cr=$ac_cr
17617 fi
17618
17619 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17620 _ACEOF
17621
17622
17623 {
17624 echo "cat >conf$$subs.awk <<_ACEOF" &&
17625 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17626 echo "_ACEOF"
17627 } >conf$$subs.sh ||
17628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17629 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17630 ac_delim='%!_!# '
17631 for ac_last_try in false false false false false :; do
17632 . ./conf$$subs.sh ||
17633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17634
17635 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17636 if test $ac_delim_n = $ac_delim_num; then
17637 break
17638 elif $ac_last_try; then
17639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17640 else
17641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17642 fi
17643 done
17644 rm -f conf$$subs.sh
17645
17646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17647 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17648 _ACEOF
17649 sed -n '
17650 h
17651 s/^/S["/; s/!.*/"]=/
17652 p
17653 g
17654 s/^[^!]*!//
17655 :repl
17656 t repl
17657 s/'"$ac_delim"'$//
17658 t delim
17659 :nl
17660 h
17661 s/\(.\{148\}\)..*/\1/
17662 t more1
17663 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17664 p
17665 n
17666 b repl
17667 :more1
17668 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17669 p
17670 g
17671 s/.\{148\}//
17672 t nl
17673 :delim
17674 h
17675 s/\(.\{148\}\)..*/\1/
17676 t more2
17677 s/["\\]/\\&/g; s/^/"/; s/$/"/
17678 p
17679 b
17680 :more2
17681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17682 p
17683 g
17684 s/.\{148\}//
17685 t delim
17686 ' <conf$$subs.awk | sed '
17687 /^[^""]/{
17688 N
17689 s/\n//
17690 }
17691 ' >>$CONFIG_STATUS || ac_write_fail=1
17692 rm -f conf$$subs.awk
17693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17694 _ACAWK
17695 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17696 for (key in S) S_is_set[key] = 1
17697 FS = ""
17698
17699 }
17700 {
17701 line = $ 0
17702 nfields = split(line, field, "@")
17703 substed = 0
17704 len = length(field[1])
17705 for (i = 2; i < nfields; i++) {
17706 key = field[i]
17707 keylen = length(key)
17708 if (S_is_set[key]) {
17709 value = S[key]
17710 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17711 len += length(value) + length(field[++i])
17712 substed = 1
17713 } else
17714 len += 1 + keylen
17715 }
17716
17717 print line
17718 }
17719
17720 _ACAWK
17721 _ACEOF
17722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17723 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17724 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17725 else
17726 cat
17727 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17728 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17729 _ACEOF
17730
17731 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17732 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17733 # trailing colons and then remove the whole line if VPATH becomes empty
17734 # (actually we leave an empty line to preserve line numbers).
17735 if test "x$srcdir" = x.; then
17736 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17737 h
17738 s///
17739 s/^/:/
17740 s/[ ]*$/:/
17741 s/:\$(srcdir):/:/g
17742 s/:\${srcdir}:/:/g
17743 s/:@srcdir@:/:/g
17744 s/^:*//
17745 s/:*$//
17746 x
17747 s/\(=[ ]*\).*/\1/
17748 G
17749 s/\n//
17750 s/^[^=]*=[ ]*$//
17751 }'
17752 fi
17753
17754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17755 fi # test -n "$CONFIG_FILES"
17756
17757 # Set up the scripts for CONFIG_HEADERS section.
17758 # No need to generate them if there are no CONFIG_HEADERS.
17759 # This happens for instance with `./config.status Makefile'.
17760 if test -n "$CONFIG_HEADERS"; then
17761 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17762 BEGIN {
17763 _ACEOF
17764
17765 # Transform confdefs.h into an awk script `defines.awk', embedded as
17766 # here-document in config.status, that substitutes the proper values into
17767 # config.h.in to produce config.h.
17768
17769 # Create a delimiter string that does not exist in confdefs.h, to ease
17770 # handling of long lines.
17771 ac_delim='%!_!# '
17772 for ac_last_try in false false :; do
17773 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17774 if test -z "$ac_tt"; then
17775 break
17776 elif $ac_last_try; then
17777 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17778 else
17779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17780 fi
17781 done
17782
17783 # For the awk script, D is an array of macro values keyed by name,
17784 # likewise P contains macro parameters if any. Preserve backslash
17785 # newline sequences.
17786
17787 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17788 sed -n '
17789 s/.\{148\}/&'"$ac_delim"'/g
17790 t rset
17791 :rset
17792 s/^[ ]*#[ ]*define[ ][ ]*/ /
17793 t def
17794 d
17795 :def
17796 s/\\$//
17797 t bsnl
17798 s/["\\]/\\&/g
17799 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17800 D["\1"]=" \3"/p
17801 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17802 d
17803 :bsnl
17804 s/["\\]/\\&/g
17805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17806 D["\1"]=" \3\\\\\\n"\\/p
17807 t cont
17808 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17809 t cont
17810 d
17811 :cont
17812 n
17813 s/.\{148\}/&'"$ac_delim"'/g
17814 t clear
17815 :clear
17816 s/\\$//
17817 t bsnlc
17818 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17819 d
17820 :bsnlc
17821 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17822 b cont
17823 ' <confdefs.h | sed '
17824 s/'"$ac_delim"'/"\\\
17825 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17826
17827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17828 for (key in D) D_is_set[key] = 1
17829 FS = ""
17830 }
17831 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17832 line = \$ 0
17833 split(line, arg, " ")
17834 if (arg[1] == "#") {
17835 defundef = arg[2]
17836 mac1 = arg[3]
17837 } else {
17838 defundef = substr(arg[1], 2)
17839 mac1 = arg[2]
17840 }
17841 split(mac1, mac2, "(") #)
17842 macro = mac2[1]
17843 prefix = substr(line, 1, index(line, defundef) - 1)
17844 if (D_is_set[macro]) {
17845 # Preserve the white space surrounding the "#".
17846 print prefix "define", macro P[macro] D[macro]
17847 next
17848 } else {
17849 # Replace #undef with comments. This is necessary, for example,
17850 # in the case of _POSIX_SOURCE, which is predefined and required
17851 # on some systems where configure will not decide to define it.
17852 if (defundef == "undef") {
17853 print "/*", prefix defundef, macro, "*/"
17854 next
17855 }
17856 }
17857 }
17858 { print }
17859 _ACAWK
17860 _ACEOF
17861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17862 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17863 fi # test -n "$CONFIG_HEADERS"
17864
17865
17866 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17867 shift
17868 for ac_tag
17869 do
17870 case $ac_tag in
17871 :[FHLC]) ac_mode=$ac_tag; continue;;
17872 esac
17873 case $ac_mode$ac_tag in
17874 :[FHL]*:*);;
17875 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17876 :[FH]-) ac_tag=-:-;;
17877 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17878 esac
17879 ac_save_IFS=$IFS
17880 IFS=:
17881 set x $ac_tag
17882 IFS=$ac_save_IFS
17883 shift
17884 ac_file=$1
17885 shift
17886
17887 case $ac_mode in
17888 :L) ac_source=$1;;
17889 :[FH])
17890 ac_file_inputs=
17891 for ac_f
17892 do
17893 case $ac_f in
17894 -) ac_f="$ac_tmp/stdin";;
17895 *) # Look for the file first in the build tree, then in the source tree
17896 # (if the path is not absolute). The absolute path cannot be DOS-style,
17897 # because $ac_f cannot contain `:'.
17898 test -f "$ac_f" ||
17899 case $ac_f in
17900 [\\/$]*) false;;
17901 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17902 esac ||
17903 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17904 esac
17905 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17906 as_fn_append ac_file_inputs " '$ac_f'"
17907 done
17908
17909 # Let's still pretend it is `configure' which instantiates (i.e., don't
17910 # use $as_me), people would be surprised to read:
17911 # /* config.h. Generated by config.status. */
17912 configure_input='Generated from '`
17913 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17914 `' by configure.'
17915 if test x"$ac_file" != x-; then
17916 configure_input="$ac_file. $configure_input"
17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17918 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17919 fi
17920 # Neutralize special characters interpreted by sed in replacement strings.
17921 case $configure_input in #(
17922 *\&* | *\|* | *\\* )
17923 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17924 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17925 *) ac_sed_conf_input=$configure_input;;
17926 esac
17927
17928 case $ac_tag in
17929 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17931 esac
17932 ;;
17933 esac
17934
17935 ac_dir=`$as_dirname -- "$ac_file" ||
17936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17937 X"$ac_file" : 'X\(//\)[^/]' \| \
17938 X"$ac_file" : 'X\(//\)$' \| \
17939 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17940 printf "%s\n" X"$ac_file" |
17941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17942 s//\1/
17943 q
17944 }
17945 /^X\(\/\/\)[^/].*/{
17946 s//\1/
17947 q
17948 }
17949 /^X\(\/\/\)$/{
17950 s//\1/
17951 q
17952 }
17953 /^X\(\/\).*/{
17954 s//\1/
17955 q
17956 }
17957 s/.*/./; q'`
17958 as_dir="$ac_dir"; as_fn_mkdir_p
17959 ac_builddir=.
17960
17961 case "$ac_dir" in
17962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17963 *)
17964 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17965 # A ".." for each directory in $ac_dir_suffix.
17966 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17967 case $ac_top_builddir_sub in
17968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17970 esac ;;
17971 esac
17972 ac_abs_top_builddir=$ac_pwd
17973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17974 # for backward compatibility:
17975 ac_top_builddir=$ac_top_build_prefix
17976
17977 case $srcdir in
17978 .) # We are building in place.
17979 ac_srcdir=.
17980 ac_top_srcdir=$ac_top_builddir_sub
17981 ac_abs_top_srcdir=$ac_pwd ;;
17982 [\\/]* | ?:[\\/]* ) # Absolute name.
17983 ac_srcdir=$srcdir$ac_dir_suffix;
17984 ac_top_srcdir=$srcdir
17985 ac_abs_top_srcdir=$srcdir ;;
17986 *) # Relative name.
17987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17988 ac_top_srcdir=$ac_top_build_prefix$srcdir
17989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17990 esac
17991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17992
17993
17994 case $ac_mode in
17995 :F)
17996 #
17997 # CONFIG_FILE
17998 #
17999
18000 case $INSTALL in
18001 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18002 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18003 esac
18004 ac_MKDIR_P=$MKDIR_P
18005 case $MKDIR_P in
18006 [\\/$]* | ?:[\\/]* ) ;;
18007 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18008 esac
18009 _ACEOF
18010
18011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18012 # If the template does not know about datarootdir, expand it.
18013 # FIXME: This hack should be removed a few years after 2.60.
18014 ac_datarootdir_hack=; ac_datarootdir_seen=
18015 ac_sed_dataroot='
18016 /datarootdir/ {
18017 p
18018 q
18019 }
18020 /@datadir@/p
18021 /@docdir@/p
18022 /@infodir@/p
18023 /@localedir@/p
18024 /@mandir@/p'
18025 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18026 *datarootdir*) ac_datarootdir_seen=yes;;
18027 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18029 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18030 _ACEOF
18031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18032 ac_datarootdir_hack='
18033 s&@datadir@&$datadir&g
18034 s&@docdir@&$docdir&g
18035 s&@infodir@&$infodir&g
18036 s&@localedir@&$localedir&g
18037 s&@mandir@&$mandir&g
18038 s&\\\${datarootdir}&$datarootdir&g' ;;
18039 esac
18040 _ACEOF
18041
18042 # Neutralize VPATH when `$srcdir' = `.'.
18043 # Shell code in configure.ac might set extrasub.
18044 # FIXME: do we really want to maintain this feature?
18045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18046 ac_sed_extra="$ac_vpsub
18047 $extrasub
18048 _ACEOF
18049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18050 :t
18051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18052 s|@configure_input@|$ac_sed_conf_input|;t t
18053 s&@top_builddir@&$ac_top_builddir_sub&;t t
18054 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18055 s&@srcdir@&$ac_srcdir&;t t
18056 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18057 s&@top_srcdir@&$ac_top_srcdir&;t t
18058 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18059 s&@builddir@&$ac_builddir&;t t
18060 s&@abs_builddir@&$ac_abs_builddir&;t t
18061 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18062 s&@INSTALL@&$ac_INSTALL&;t t
18063 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18064 $ac_datarootdir_hack
18065 "
18066 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18067 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18068
18069 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18070 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18072 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18074 which seems to be undefined. Please make sure it is defined" >&5
18075 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18076 which seems to be undefined. Please make sure it is defined" >&2;}
18077
18078 rm -f "$ac_tmp/stdin"
18079 case $ac_file in
18080 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18081 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18082 esac \
18083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18084 ;;
18085 :H)
18086 #
18087 # CONFIG_HEADER
18088 #
18089 if test x"$ac_file" != x-; then
18090 {
18091 printf "%s\n" "/* $configure_input */" >&1 \
18092 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18093 } >"$ac_tmp/config.h" \
18094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18095 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18097 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18098 else
18099 rm -f "$ac_file"
18100 mv "$ac_tmp/config.h" "$ac_file" \
18101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18102 fi
18103 else
18104 printf "%s\n" "/* $configure_input */" >&1 \
18105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18106 || as_fn_error $? "could not create -" "$LINENO" 5
18107 fi
18108 # Compute "$ac_file"'s index in $config_headers.
18109 _am_arg="$ac_file"
18110 _am_stamp_count=1
18111 for _am_header in $config_headers :; do
18112 case $_am_header in
18113 $_am_arg | $_am_arg:* )
18114 break ;;
18115 * )
18116 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18117 esac
18118 done
18119 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18120 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18121 X"$_am_arg" : 'X\(//\)[^/]' \| \
18122 X"$_am_arg" : 'X\(//\)$' \| \
18123 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18124 printf "%s\n" X"$_am_arg" |
18125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18126 s//\1/
18127 q
18128 }
18129 /^X\(\/\/\)[^/].*/{
18130 s//\1/
18131 q
18132 }
18133 /^X\(\/\/\)$/{
18134 s//\1/
18135 q
18136 }
18137 /^X\(\/\).*/{
18138 s//\1/
18139 q
18140 }
18141 s/.*/./; q'`/stamp-h$_am_stamp_count
18142 ;;
18143
18144 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18145 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18146 ;;
18147 esac
18148
18149
18150 case $ac_file$ac_mode in
18151 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18152 # Older Autoconf quotes --file arguments for eval, but not when files
18153 # are listed without --file. Let's play safe and only enable the eval
18154 # if we detect the quoting.
18155 # TODO: see whether this extra hack can be removed once we start
18156 # requiring Autoconf 2.70 or later.
18157 case $CONFIG_FILES in #(
18158 *\'*) :
18159 eval set x "$CONFIG_FILES" ;; #(
18160 *) :
18161 set x $CONFIG_FILES ;; #(
18162 *) :
18163 ;;
18164 esac
18165 shift
18166 # Used to flag and report bootstrapping failures.
18167 am_rc=0
18168 for am_mf
18169 do
18170 # Strip MF so we end up with the name of the file.
18171 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
18172 # Check whether this is an Automake generated Makefile which includes
18173 # dependency-tracking related rules and includes.
18174 # Grep'ing the whole file directly is not great: AIX grep has a line
18175 # limit of 2048, but all sed's we know have understand at least 4000.
18176 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18177 || continue
18178 am_dirpart=`$as_dirname -- "$am_mf" ||
18179 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18180 X"$am_mf" : 'X\(//\)[^/]' \| \
18181 X"$am_mf" : 'X\(//\)$' \| \
18182 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18183 printf "%s\n" X"$am_mf" |
18184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18185 s//\1/
18186 q
18187 }
18188 /^X\(\/\/\)[^/].*/{
18189 s//\1/
18190 q
18191 }
18192 /^X\(\/\/\)$/{
18193 s//\1/
18194 q
18195 }
18196 /^X\(\/\).*/{
18197 s//\1/
18198 q
18199 }
18200 s/.*/./; q'`
18201 am_filepart=`$as_basename -- "$am_mf" ||
18202 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18203 X"$am_mf" : 'X\(//\)$' \| \
18204 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18205 printf "%s\n" X/"$am_mf" |
18206 sed '/^.*\/\([^/][^/]*\)\/*$/{
18207 s//\1/
18208 q
18209 }
18210 /^X\/\(\/\/\)$/{
18211 s//\1/
18212 q
18213 }
18214 /^X\/\(\/\).*/{
18215 s//\1/
18216 q
18217 }
18218 s/.*/./; q'`
18219 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18220 && sed -e '/# am--include-marker/d' "$am_filepart" \
18221 | $MAKE -f - am--depfiles" >&5
18222 (cd "$am_dirpart" \
18223 && sed -e '/# am--include-marker/d' "$am_filepart" \
18224 | $MAKE -f - am--depfiles) >&5 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } || am_rc=$?
18228 done
18229 if test $am_rc -ne 0; then
18230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18231 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18232 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18233 for automatic dependency tracking. If GNU make was not used, consider
18234 re-running the configure script with MAKE=\"gmake\" (or whatever is
18235 necessary). You can also try re-running configure with the
18236 '--disable-dependency-tracking' option to at least be able to build
18237 the package (albeit without support for automatic dependency tracking).
18238 See \`config.log' for more details" "$LINENO" 5; }
18239 fi
18240 { am_dirpart=; unset am_dirpart;}
18241 { am_filepart=; unset am_filepart;}
18242 { am_mf=; unset am_mf;}
18243 { am_rc=; unset am_rc;}
18244 rm -f conftest-deps.mk
18245 }
18246 ;;
18247 "libtool":C)
18248
18249 # See if we are running on zsh, and set the options that allow our
18250 # commands through without removal of \ escapes.
18251 if test -n "${ZSH_VERSION+set}"; then
18252 setopt NO_GLOB_SUBST
18253 fi
18254
18255 cfgfile=${ofile}T
18256 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18257 $RM "$cfgfile"
18258
18259 cat <<_LT_EOF >> "$cfgfile"
18260 #! $SHELL
18261 # Generated automatically by $as_me ($PACKAGE) $VERSION
18262 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18263
18264 # Provide generalized library-building support services.
18265 # Written by Gordon Matzigkeit, 1996
18266
18267 # Copyright (C) 2014 Free Software Foundation, Inc.
18268 # This is free software; see the source for copying conditions. There is NO
18269 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18270
18271 # GNU Libtool is free software; you can redistribute it and/or modify
18272 # it under the terms of the GNU General Public License as published by
18273 # the Free Software Foundation; either version 2 of of the License, or
18274 # (at your option) any later version.
18275 #
18276 # As a special exception to the GNU General Public License, if you
18277 # distribute this file as part of a program or library that is built
18278 # using GNU Libtool, you may include this file under the same
18279 # distribution terms that you use for the rest of that program.
18280 #
18281 # GNU Libtool is distributed in the hope that it will be useful, but
18282 # WITHOUT ANY WARRANTY; without even the implied warranty of
18283 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18284 # GNU General Public License for more details.
18285 #
18286 # You should have received a copy of the GNU General Public License
18287 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18288
18289
18290 # The names of the tagged configurations supported by this script.
18291 available_tags=''
18292
18293 # Configured defaults for sys_lib_dlsearch_path munging.
18294 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18295
18296 # ### BEGIN LIBTOOL CONFIG
18297
18298 # Which release of libtool.m4 was used?
18299 macro_version=$macro_version
18300 macro_revision=$macro_revision
18301
18302 # Whether or not to build static libraries.
18303 build_old_libs=$enable_static
18304
18305 # Assembler program.
18306 AS=$lt_AS
18307
18308 # DLL creation program.
18309 DLLTOOL=$lt_DLLTOOL
18310
18311 # Object dumper program.
18312 OBJDUMP=$lt_OBJDUMP
18313
18314 # Whether or not to build shared libraries.
18315 build_libtool_libs=$enable_shared
18316
18317 # What type of objects to build.
18318 pic_mode=$pic_mode
18319
18320 # Whether or not to optimize for fast installation.
18321 fast_install=$enable_fast_install
18322
18323 # Shared archive member basename,for filename based shared library versioning on AIX.
18324 shared_archive_member_spec=$shared_archive_member_spec
18325
18326 # Shell to use when invoking shell scripts.
18327 SHELL=$lt_SHELL
18328
18329 # An echo program that protects backslashes.
18330 ECHO=$lt_ECHO
18331
18332 # The PATH separator for the build system.
18333 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18334
18335 # The host system.
18336 host_alias=$host_alias
18337 host=$host
18338 host_os=$host_os
18339
18340 # The build system.
18341 build_alias=$build_alias
18342 build=$build
18343 build_os=$build_os
18344
18345 # A sed program that does not truncate output.
18346 SED=$lt_SED
18347
18348 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18349 Xsed="\$SED -e 1s/^X//"
18350
18351 # A grep program that handles long lines.
18352 GREP=$lt_GREP
18353
18354 # An ERE matcher.
18355 EGREP=$lt_EGREP
18356
18357 # A literal string matcher.
18358 FGREP=$lt_FGREP
18359
18360 # A BSD- or MS-compatible name lister.
18361 NM=$lt_NM
18362
18363 # Whether we need soft or hard links.
18364 LN_S=$lt_LN_S
18365
18366 # What is the maximum length of a command?
18367 max_cmd_len=$max_cmd_len
18368
18369 # Object file suffix (normally "o").
18370 objext=$ac_objext
18371
18372 # Executable file suffix (normally "").
18373 exeext=$exeext
18374
18375 # whether the shell understands "unset".
18376 lt_unset=$lt_unset
18377
18378 # turn spaces into newlines.
18379 SP2NL=$lt_lt_SP2NL
18380
18381 # turn newlines into spaces.
18382 NL2SP=$lt_lt_NL2SP
18383
18384 # convert \$build file names to \$host format.
18385 to_host_file_cmd=$lt_cv_to_host_file_cmd
18386
18387 # convert \$build files to toolchain format.
18388 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18389
18390 # A file(cmd) program that detects file types.
18391 FILECMD=$lt_FILECMD
18392
18393 # Method to check whether dependent libraries are shared objects.
18394 deplibs_check_method=$lt_deplibs_check_method
18395
18396 # Command to use when deplibs_check_method = "file_magic".
18397 file_magic_cmd=$lt_file_magic_cmd
18398
18399 # How to find potential files when deplibs_check_method = "file_magic".
18400 file_magic_glob=$lt_file_magic_glob
18401
18402 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18403 want_nocaseglob=$lt_want_nocaseglob
18404
18405 # Command to associate shared and link libraries.
18406 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18407
18408 # The archiver.
18409 AR=$lt_AR
18410
18411 # Flags to create an archive (by configure).
18412 lt_ar_flags=$lt_ar_flags
18413
18414 # Flags to create an archive.
18415 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18416
18417 # How to feed a file listing to the archiver.
18418 archiver_list_spec=$lt_archiver_list_spec
18419
18420 # A symbol stripping program.
18421 STRIP=$lt_STRIP
18422
18423 # Commands used to install an old-style archive.
18424 RANLIB=$lt_RANLIB
18425 old_postinstall_cmds=$lt_old_postinstall_cmds
18426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18427
18428 # Whether to use a lock for old archive extraction.
18429 lock_old_archive_extraction=$lock_old_archive_extraction
18430
18431 # A C compiler.
18432 LTCC=$lt_CC
18433
18434 # LTCC compiler flags.
18435 LTCFLAGS=$lt_CFLAGS
18436
18437 # Take the output of nm and produce a listing of raw symbols and C names.
18438 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18439
18440 # Transform the output of nm in a proper C declaration.
18441 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18442
18443 # Transform the output of nm into a list of symbols to manually relocate.
18444 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18445
18446 # Transform the output of nm in a C name address pair.
18447 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18448
18449 # Transform the output of nm in a C name address pair when lib prefix is needed.
18450 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18451
18452 # The name lister interface.
18453 nm_interface=$lt_lt_cv_nm_interface
18454
18455 # Specify filename containing input files for \$NM.
18456 nm_file_list_spec=$lt_nm_file_list_spec
18457
18458 # The root where to search for dependent libraries,and where our libraries should be installed.
18459 lt_sysroot=$lt_sysroot
18460
18461 # Command to truncate a binary pipe.
18462 lt_truncate_bin=$lt_lt_cv_truncate_bin
18463
18464 # The name of the directory that contains temporary libtool files.
18465 objdir=$objdir
18466
18467 # Used to examine libraries when file_magic_cmd begins with "file".
18468 MAGIC_CMD=$MAGIC_CMD
18469
18470 # Must we lock files when doing compilation?
18471 need_locks=$lt_need_locks
18472
18473 # Manifest tool.
18474 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18475
18476 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18477 DSYMUTIL=$lt_DSYMUTIL
18478
18479 # Tool to change global to local symbols on Mac OS X.
18480 NMEDIT=$lt_NMEDIT
18481
18482 # Tool to manipulate fat objects and archives on Mac OS X.
18483 LIPO=$lt_LIPO
18484
18485 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18486 OTOOL=$lt_OTOOL
18487
18488 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18489 OTOOL64=$lt_OTOOL64
18490
18491 # Old archive suffix (normally "a").
18492 libext=$libext
18493
18494 # Shared library suffix (normally ".so").
18495 shrext_cmds=$lt_shrext_cmds
18496
18497 # The commands to extract the exported symbol list from a shared archive.
18498 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18499
18500 # Variables whose values should be saved in libtool wrapper scripts and
18501 # restored at link time.
18502 variables_saved_for_relink=$lt_variables_saved_for_relink
18503
18504 # Do we need the "lib" prefix for modules?
18505 need_lib_prefix=$need_lib_prefix
18506
18507 # Do we need a version for libraries?
18508 need_version=$need_version
18509
18510 # Library versioning type.
18511 version_type=$version_type
18512
18513 # Shared library runtime path variable.
18514 runpath_var=$runpath_var
18515
18516 # Shared library path variable.
18517 shlibpath_var=$shlibpath_var
18518
18519 # Is shlibpath searched before the hard-coded library search path?
18520 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18521
18522 # Format of library name prefix.
18523 libname_spec=$lt_libname_spec
18524
18525 # List of archive names. First name is the real one, the rest are links.
18526 # The last name is the one that the linker finds with -lNAME
18527 library_names_spec=$lt_library_names_spec
18528
18529 # The coded name of the library, if different from the real name.
18530 soname_spec=$lt_soname_spec
18531
18532 # Permission mode override for installation of shared libraries.
18533 install_override_mode=$lt_install_override_mode
18534
18535 # Command to use after installation of a shared archive.
18536 postinstall_cmds=$lt_postinstall_cmds
18537
18538 # Command to use after uninstallation of a shared archive.
18539 postuninstall_cmds=$lt_postuninstall_cmds
18540
18541 # Commands used to finish a libtool library installation in a directory.
18542 finish_cmds=$lt_finish_cmds
18543
18544 # As "finish_cmds", except a single script fragment to be evaled but
18545 # not shown.
18546 finish_eval=$lt_finish_eval
18547
18548 # Whether we should hardcode library paths into libraries.
18549 hardcode_into_libs=$hardcode_into_libs
18550
18551 # Compile-time system search path for libraries.
18552 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18553
18554 # Detected run-time system search path for libraries.
18555 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18556
18557 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18558 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18559
18560 # Whether dlopen is supported.
18561 dlopen_support=$enable_dlopen
18562
18563 # Whether dlopen of programs is supported.
18564 dlopen_self=$enable_dlopen_self
18565
18566 # Whether dlopen of statically linked programs is supported.
18567 dlopen_self_static=$enable_dlopen_self_static
18568
18569 # Commands to strip libraries.
18570 old_striplib=$lt_old_striplib
18571 striplib=$lt_striplib
18572
18573
18574 # The linker used to build libraries.
18575 LD=$lt_LD
18576
18577 # How to create reloadable object files.
18578 reload_flag=$lt_reload_flag
18579 reload_cmds=$lt_reload_cmds
18580
18581 # Commands used to build an old-style archive.
18582 old_archive_cmds=$lt_old_archive_cmds
18583
18584 # A language specific compiler.
18585 CC=$lt_compiler
18586
18587 # Is the compiler the GNU compiler?
18588 with_gcc=$GCC
18589
18590 # Compiler flag to turn off builtin functions.
18591 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18592
18593 # Additional compiler flags for building library objects.
18594 pic_flag=$lt_lt_prog_compiler_pic
18595
18596 # How to pass a linker flag through the compiler.
18597 wl=$lt_lt_prog_compiler_wl
18598
18599 # Compiler flag to prevent dynamic linking.
18600 link_static_flag=$lt_lt_prog_compiler_static
18601
18602 # Does compiler simultaneously support -c and -o options?
18603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18604
18605 # Whether or not to add -lc for building shared libraries.
18606 build_libtool_need_lc=$archive_cmds_need_lc
18607
18608 # Whether or not to disallow shared libs when runtime libs are static.
18609 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18610
18611 # Compiler flag to allow reflexive dlopens.
18612 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18613
18614 # Compiler flag to generate shared objects directly from archives.
18615 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18616
18617 # Whether the compiler copes with passing no objects directly.
18618 compiler_needs_object=$lt_compiler_needs_object
18619
18620 # Create an old-style archive from a shared archive.
18621 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18622
18623 # Create a temporary old-style archive to link instead of a shared archive.
18624 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18625
18626 # Commands used to build a shared archive.
18627 archive_cmds=$lt_archive_cmds
18628 archive_expsym_cmds=$lt_archive_expsym_cmds
18629
18630 # Commands used to build a loadable module if different from building
18631 # a shared archive.
18632 module_cmds=$lt_module_cmds
18633 module_expsym_cmds=$lt_module_expsym_cmds
18634
18635 # Whether we are building with GNU ld or not.
18636 with_gnu_ld=$lt_with_gnu_ld
18637
18638 # Flag that allows shared libraries with undefined symbols to be built.
18639 allow_undefined_flag=$lt_allow_undefined_flag
18640
18641 # Flag that enforces no undefined symbols.
18642 no_undefined_flag=$lt_no_undefined_flag
18643
18644 # Flag to hardcode \$libdir into a binary during linking.
18645 # This must work even if \$libdir does not exist
18646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18647
18648 # Whether we need a single "-rpath" flag with a separated argument.
18649 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18650
18651 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18652 # DIR into the resulting binary.
18653 hardcode_direct=$hardcode_direct
18654
18655 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18656 # DIR into the resulting binary and the resulting library dependency is
18657 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18658 # library is relocated.
18659 hardcode_direct_absolute=$hardcode_direct_absolute
18660
18661 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18662 # into the resulting binary.
18663 hardcode_minus_L=$hardcode_minus_L
18664
18665 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18666 # into the resulting binary.
18667 hardcode_shlibpath_var=$hardcode_shlibpath_var
18668
18669 # Set to "yes" if building a shared library automatically hardcodes DIR
18670 # into the library and all subsequent libraries and executables linked
18671 # against it.
18672 hardcode_automatic=$hardcode_automatic
18673
18674 # Set to yes if linker adds runtime paths of dependent libraries
18675 # to runtime path list.
18676 inherit_rpath=$inherit_rpath
18677
18678 # Whether libtool must link a program against all its dependency libraries.
18679 link_all_deplibs=$link_all_deplibs
18680
18681 # Set to "yes" if exported symbols are required.
18682 always_export_symbols=$always_export_symbols
18683
18684 # The commands to list exported symbols.
18685 export_symbols_cmds=$lt_export_symbols_cmds
18686
18687 # Symbols that should not be listed in the preloaded symbols.
18688 exclude_expsyms=$lt_exclude_expsyms
18689
18690 # Symbols that must always be exported.
18691 include_expsyms=$lt_include_expsyms
18692
18693 # Commands necessary for linking programs (against libraries) with templates.
18694 prelink_cmds=$lt_prelink_cmds
18695
18696 # Commands necessary for finishing linking programs.
18697 postlink_cmds=$lt_postlink_cmds
18698
18699 # Specify filename containing input files.
18700 file_list_spec=$lt_file_list_spec
18701
18702 # How to hardcode a shared library path into an executable.
18703 hardcode_action=$hardcode_action
18704
18705 # ### END LIBTOOL CONFIG
18706
18707 _LT_EOF
18708
18709 cat <<'_LT_EOF' >> "$cfgfile"
18710
18711 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18712
18713 # func_munge_path_list VARIABLE PATH
18714 # -----------------------------------
18715 # VARIABLE is name of variable containing _space_ separated list of
18716 # directories to be munged by the contents of PATH, which is string
18717 # having a format:
18718 # "DIR[:DIR]:"
18719 # string "DIR[ DIR]" will be prepended to VARIABLE
18720 # ":DIR[:DIR]"
18721 # string "DIR[ DIR]" will be appended to VARIABLE
18722 # "DIRP[:DIRP]::[DIRA:]DIRA"
18723 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18724 # "DIRA[ DIRA]" will be appended to VARIABLE
18725 # "DIR[:DIR]"
18726 # VARIABLE will be replaced by "DIR[ DIR]"
18727 func_munge_path_list ()
18728 {
18729 case x$2 in
18730 x)
18731 ;;
18732 *:)
18733 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18734 ;;
18735 x:*)
18736 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18737 ;;
18738 *::*)
18739 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18740 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18741 ;;
18742 *)
18743 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18744 ;;
18745 esac
18746 }
18747
18748
18749 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18750 func_cc_basename ()
18751 {
18752 for cc_temp in $*""; do
18753 case $cc_temp in
18754 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18755 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18756 \-*) ;;
18757 *) break;;
18758 esac
18759 done
18760 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18761 }
18762
18763
18764 # ### END FUNCTIONS SHARED WITH CONFIGURE
18765
18766 _LT_EOF
18767
18768 case $host_os in
18769 aix3*)
18770 cat <<\_LT_EOF >> "$cfgfile"
18771 # AIX sometimes has problems with the GCC collect2 program. For some
18772 # reason, if we set the COLLECT_NAMES environment variable, the problems
18773 # vanish in a puff of smoke.
18774 if test set != "${COLLECT_NAMES+set}"; then
18775 COLLECT_NAMES=
18776 export COLLECT_NAMES
18777 fi
18778 _LT_EOF
18779 ;;
18780 esac
18781
18782
18783
18784 ltmain=$ac_aux_dir/ltmain.sh
18785
18786
18787 # We use sed instead of cat because bash on DJGPP gets confused if
18788 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18789 # text mode, it properly converts lines to CR/LF. This bash problem
18790 # is reportedly fixed, but why not run on old versions too?
18791 $SED '$q' "$ltmain" >> "$cfgfile" \
18792 || (rm -f "$cfgfile"; exit 1)
18793
18794 mv -f "$cfgfile" "$ofile" ||
18795 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18796 chmod +x "$ofile"
18797
18798 ;;
18799 "xslt-config":F) chmod +x xslt-config ;;
18800
18801 esac
18802 done # for ac_tag
18803
18804
18805 as_fn_exit 0
18806 _ACEOF
18807 ac_clean_files=$ac_clean_files_save
18808
18809 test $ac_write_fail = 0 ||
18810 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18811
18812
18813 # configure is writing to config.log, and then calls config.status.
18814 # config.status does its own redirection, appending to config.log.
18815 # Unfortunately, on DOS this fails, as config.log is still kept open
18816 # by configure, so config.status won't be able to write to it; its
18817 # output is simply discarded. So we exec the FD to /dev/null,
18818 # effectively closing config.log, so it can be properly (re)opened and
18819 # appended to by config.status. When coming back to configure, we
18820 # need to make the FD available again.
18821 if test "$no_create" != yes; then
18822 ac_cs_success=:
18823 ac_config_status_args=
18824 test "$silent" = yes &&
18825 ac_config_status_args="$ac_config_status_args --quiet"
18826 exec 5>/dev/null
18827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18828 exec 5>>config.log
18829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18830 # would make configure fail if this is the last instruction.
18831 $ac_cs_success || as_fn_exit 1
18832 fi
18833 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18835 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18836 fi
18837
18838