VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.2/configure@ 58072

最後變更 在這個檔案從58072是 58072,由 vboxsync 提交於 9 年 前

libxml 2.9.2 unmodified

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:executable 設為 *
檔案大小: 500.6 KB
 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; 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.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $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$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="entities.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636PYTHON_TESTS
637RELDATE
638RDL_LIBS
639M_LIBS
640PYTHON_SITE_PACKAGES
641PYTHON_INCLUDES
642PYTHON_VERSION
643HAVE_ISINF
644HAVE_ISNAN
645XML_INCLUDEDIR
646ICONV_LIBS
647XML_LIBTOOLLIBS
648XML_LIBS
649XML_LIBDIR
650XML_CFLAGS
651CYGWIN_EXTRA_PYTHON_LIBADD
652CYGWIN_EXTRA_LDFLAGS
653WIN32_EXTRA_PYTHON_LIBADD
654WIN32_EXTRA_LDFLAGS
655WIN32_EXTRA_LIBADD
656WITH_RUN_DEBUG
657WITH_MEM_DEBUG
658TEST_DEBUG
659DEBUG_OBJ
660WITH_DEBUG
661TEST_REGEXPS
662WITH_REGEXPS
663TEST_SCHEMAS
664WITH_SCHEMAS
665WITH_ISO8859X
666ICU_LIBS
667WITH_ICU
668WITH_ICONV
669WITH_OUTPUT
670TEST_XPATH
671XPATH_OBJ
672WITH_XPATH
673TEST_SCHEMATRON
674WITH_SCHEMATRON
675TEST_XINCLUDE
676XINCLUDE_OBJ
677WITH_XINCLUDE
678TEST_C14N
679C14N_OBJ
680WITH_C14N
681TEST_XPTR
682XPTR_OBJ
683WITH_XPTR
684DOCB_OBJ
685WITH_DOCB
686TEST_CATALOG
687CATALOG_OBJ
688WITH_CATALOG
689TEST_VTIME
690TEST_VALID
691WITH_VALID
692TEST_PHTML
693TEST_HTML
694HTML_OBJ
695WITH_HTML
696TEST_PUSH
697WITH_PUSH
698TEST_SAX
699WITH_SAX1_SOURCES_FALSE
700WITH_SAX1_SOURCES_TRUE
701WITH_SAX1
702TEST_PATTERN
703WITH_PATTERN
704WITH_WRITER
705READER_TEST
706WITH_READER
707WITH_LEGACY
708HTTP_OBJ
709WITH_HTTP
710FTP_OBJ
711WITH_FTP
712WITH_TREE
713THREADS_W32_FALSE
714THREADS_W32_TRUE
715WITH_THREAD_ALLOC
716TEST_THREADS
717THREAD_CFLAGS
718WITH_THREADS
719BASE_THREAD_LIBS
720THREAD_LIBS
721WITH_TRIO
722WITH_TRIO_SOURCES_FALSE
723WITH_TRIO_SOURCES_TRUE
724STATIC_BINARIES
725TEST_MODULES
726MODULE_EXTENSION
727MODULE_PLATFORM_LIBS
728WITH_MODULES
729PYTHON_LIBS
730PYTHON_SUBDIR
731pythondir
732WITH_PYTHON_FALSE
733WITH_PYTHON_TRUE
734PYTHON
735WITH_LZMA
736LZMA_LIBS
737LZMA_CFLAGS
738WITH_ZLIB
739Z_LIBS
740Z_CFLAGS
741REBUILD_DOCS_FALSE
742REBUILD_DOCS_TRUE
743HTML_DIR
744USE_VERSION_SCRIPT_FALSE
745USE_VERSION_SCRIPT_TRUE
746VERSION_SCRIPT_FLAGS
747OTOOL64
748OTOOL
749LIPO
750NMEDIT
751DSYMUTIL
752MANIFEST_TOOL
753RANLIB
754ac_ct_AR
755AR
756DLLTOOL
757OBJDUMP
758NM
759ac_ct_DUMPBIN
760DUMPBIN
761LD
762FGREP
763EGREP
764GREP
765SED
766LIBTOOL
767PKG_CONFIG_LIBDIR
768PKG_CONFIG_PATH
769PKG_CONFIG
770XSLTPROC
771XMLLINT
772WGET
773PERL
774TAR
775MV
776CPP
777LN_S
778am__fastdepCC_FALSE
779am__fastdepCC_TRUE
780CCDEPMODE
781am__nodep
782AMDEPBACKSLASH
783AMDEP_FALSE
784AMDEP_TRUE
785am__quote
786am__include
787DEPDIR
788OBJEXT
789EXEEXT
790ac_ct_CC
791CPPFLAGS
792LDFLAGS
793CFLAGS
794CC
795AM_BACKSLASH
796AM_DEFAULT_VERBOSITY
797AM_DEFAULT_V
798AM_V
799am__untar
800am__tar
801AMTAR
802am__leading_dot
803SET_MAKE
804AWK
805mkdir_p
806MKDIR_P
807INSTALL_STRIP_PROGRAM
808STRIP
809install_sh
810MAKEINFO
811AUTOHEADER
812AUTOMAKE
813AUTOCONF
814ACLOCAL
815VERSION
816PACKAGE
817CYGPATH_W
818am__isrc
819INSTALL_DATA
820INSTALL_SCRIPT
821INSTALL_PROGRAM
822LIBXML_VERSION_EXTRA
823LIBXML_VERSION_NUMBER
824LIBXML_VERSION_INFO
825LIBXML_VERSION
826LIBXML_MICRO_VERSION
827LIBXML_MINOR_VERSION
828LIBXML_MAJOR_VERSION
829host_os
830host_vendor
831host_cpu
832host
833build_os
834build_vendor
835build_cpu
836build
837target_alias
838host_alias
839build_alias
840LIBS
841ECHO_T
842ECHO_N
843ECHO_C
844DEFS
845mandir
846localedir
847libdir
848psdir
849pdfdir
850dvidir
851htmldir
852infodir
853docdir
854oldincludedir
855includedir
856localstatedir
857sharedstatedir
858sysconfdir
859datadir
860datarootdir
861libexecdir
862sbindir
863bindir
864program_transform_name
865prefix
866exec_prefix
867PACKAGE_URL
868PACKAGE_BUGREPORT
869PACKAGE_STRING
870PACKAGE_VERSION
871PACKAGE_TARNAME
872PACKAGE_NAME
873PATH_SEPARATOR
874SHELL'
875ac_subst_files=''
876ac_user_opts='
877enable_option_checking
878enable_silent_rules
879enable_dependency_tracking
880enable_shared
881enable_static
882with_pic
883enable_fast_install
884with_gnu_ld
885with_sysroot
886enable_libtool_lock
887with_c14n
888with_catalog
889with_debug
890with_docbook
891with_fexceptions
892with_ftp
893with_history
894with_html
895with_html_dir
896with_html_subdir
897with_http
898with_iconv
899with_icu
900with_iso8859x
901with_legacy
902with_mem_debug
903with_minimum
904with_output
905with_pattern
906with_push
907with_python
908with_python_install_dir
909with_reader
910with_readline
911with_regexps
912with_run_debug
913with_sax1
914with_schemas
915with_schematron
916with_threads
917with_thread_alloc
918with_tree
919with_valid
920with_writer
921with_xinclude
922with_xpath
923with_xptr
924with_modules
925with_zlib
926with_lzma
927with_coverage
928enable_rebuild_docs
929enable_ipv6
930'
931 ac_precious_vars='build_alias
932host_alias
933target_alias
934CC
935CFLAGS
936LDFLAGS
937LIBS
938CPPFLAGS
939CPP
940PKG_CONFIG
941PKG_CONFIG_PATH
942PKG_CONFIG_LIBDIR
943LZMA_CFLAGS
944LZMA_LIBS'
945
946
947# Initialize some variables set by options.
948ac_init_help=
949ac_init_version=false
950ac_unrecognized_opts=
951ac_unrecognized_sep=
952# The variables have the same names as the options, with
953# dashes changed to underlines.
954cache_file=/dev/null
955exec_prefix=NONE
956no_create=
957no_recursion=
958prefix=NONE
959program_prefix=NONE
960program_suffix=NONE
961program_transform_name=s,x,x,
962silent=
963site=
964srcdir=
965verbose=
966x_includes=NONE
967x_libraries=NONE
968
969# Installation directory options.
970# These are left unexpanded so users can "make install exec_prefix=/foo"
971# and all the variables that are supposed to be based on exec_prefix
972# by default will actually change.
973# Use braces instead of parens because sh, perl, etc. also accept them.
974# (The list follows the same order as the GNU Coding Standards.)
975bindir='${exec_prefix}/bin'
976sbindir='${exec_prefix}/sbin'
977libexecdir='${exec_prefix}/libexec'
978datarootdir='${prefix}/share'
979datadir='${datarootdir}'
980sysconfdir='${prefix}/etc'
981sharedstatedir='${prefix}/com'
982localstatedir='${prefix}/var'
983includedir='${prefix}/include'
984oldincludedir='/usr/include'
985docdir='${datarootdir}/doc/${PACKAGE}'
986infodir='${datarootdir}/info'
987htmldir='${docdir}'
988dvidir='${docdir}'
989pdfdir='${docdir}'
990psdir='${docdir}'
991libdir='${exec_prefix}/lib'
992localedir='${datarootdir}/locale'
993mandir='${datarootdir}/man'
994
995ac_prev=
996ac_dashdash=
997for ac_option
998do
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1004 fi
1005
1006 case $ac_option in
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *=) ac_optarg= ;;
1009 *) ac_optarg=yes ;;
1010 esac
1011
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014 case $ac_dashdash$ac_option in
1015 --)
1016 ac_dashdash=yes ;;
1017
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1022
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1027
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1034
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1037
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1042
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1049
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059"enable_$ac_useropt"
1060"*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=no ;;
1065
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1070
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1075
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085"enable_$ac_useropt"
1086"*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1100
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1104
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1111
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1116
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1122
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1129
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1134
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1139
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1146
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1151
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1158
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1163
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1167
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1171
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1175
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1184
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1189
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1196
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1203
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1220
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1225
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1230
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1234
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1240
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1251
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1256
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1261
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1268
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1273
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1276
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1279
1280 -with-* | --with-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"with_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=\$ac_optarg ;;
1295
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error $? "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1304 *"
1305"with_$ac_useropt"
1306"*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=no ;;
1311
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1315
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1322
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1329
1330 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331Try \`$0 --help' for more information"
1332 ;;
1333
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340 esac
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1343
1344 *)
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350 ;;
1351
1352 esac
1353done
1354
1355if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error $? "missing argument to $ac_option"
1358fi
1359
1360if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1362 no) ;;
1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 esac
1366fi
1367
1368# Check all directory arguments for consistency.
1369for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1373do
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1376 case $ac_val in
1377 */ )
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1380 esac
1381 # Be sure to have absolute directory names.
1382 case $ac_val in
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 esac
1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387done
1388
1389# There might be people who depend on the old broken behavior: `$host'
1390# used to hold the argument of --host etc.
1391# FIXME: To remove some day.
1392build=$build_alias
1393host=$host_alias
1394target=$target_alias
1395
1396# FIXME: To remove some day.
1397if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 elif test "x$build_alias" != "x$host_alias"; then
1401 cross_compiling=yes
1402 fi
1403fi
1404
1405ac_tool_prefix=
1406test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408test "$silent" = yes && exec 6>/dev/null
1409
1410
1411ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412ac_ls_di=`ls -di .` &&
1413ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error $? "working directory cannot be determined"
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\).*/{
1442 s//\1/
1443 q
1444 }
1445 s/.*/./; q'`
1446 srcdir=$ac_confdir
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 srcdir=..
1449 fi
1450else
1451 ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456fi
1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460 pwd)`
1461# When building in place, set srcdir=.
1462if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 srcdir=.
1464fi
1465# Remove unnecessary trailing slashes from srcdir.
1466# Double slashes in file names in object file debugging info
1467# mess up M-x gdb in Emacs.
1468case $srcdir in
1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470esac
1471for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476done
1477
1478#
1479# Report the --help message.
1480#
1481if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1484 cat <<_ACEOF
1485\`configure' configures this package to adapt to many kinds of systems.
1486
1487Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490VAR=VALUE. See below for descriptions of some of the useful variables.
1491
1492Defaults for the options are specified in brackets.
1493
1494Configuration:
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking ...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504
1505Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 [PREFIX]
1510
1511By default, \`make install' will install all the files in
1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514for instance \`--prefix=\$HOME'.
1515
1516For better control, use the options below.
1517
1518Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1538_ACEOF
1539
1540 cat <<\_ACEOF
1541
1542Program names:
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546
1547System types:
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
1551fi
1552
1553if test -n "$ac_init_help"; then
1554
1555 cat <<\_ACEOF
1556
1557Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-silent-rules less verbose build output (undo: "make V=1")
1562 --disable-silent-rules verbose build output (undo: "make V=0")
1563 --enable-dependency-tracking
1564 do not reject slow dependency extractors
1565 --disable-dependency-tracking
1566 speeds up one-time build
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-static[=PKGS] build static libraries [default=yes]
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572 --enable-rebuild-docs[=yes/no] rebuild some generated docs [default=no]
1573 --enable-ipv6[=yes/no] enables compilation of IPv6 code [default=yes]
1574
1575Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1579 both]
1580 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1581 --with-sysroot=DIR Search for dependent libraries within DIR
1582 (or the compiler's sysroot if not specified).
1583 --with-c14n add the Canonicalization support (on)
1584 --with-catalog add the Catalog support (on)
1585 --with-debug add the debugging module (on)
1586 --with-docbook add Docbook SGML support (on)
1587 --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)
1588 --with-ftp add the FTP support (on)
1589 --with-history add history support to xmllint shell(off)
1590 --with-html add the HTML support (on)
1591 --with-html-dir=path path to base html directory, default
1592 $datadir/doc/html
1593 --with-html-subdir=path directory used under html-dir, default
1594 $PACKAGE-$VERSION/html
1595 --with-http add the HTTP support (on)
1596 --with-iconv[=DIR] add ICONV support (on)
1597 --with-icu add ICU support (off)
1598 --with-iso8859x add ISO8859X support if no iconv (on)
1599 --with-legacy add deprecated APIs for compatibility (on)
1600 --with-mem-debug add the memory debugging module (off)
1601 --with-minimum build a minimally sized library (off)
1602 --with-output add the serialization support (on)
1603 --with-pattern add the xmlPattern selection interface (on)
1604 --with-push add the PUSH parser interfaces (on)
1605 --with-python[=DIR] build Python bindings if found
1606 --with-python-install-dir=DIR
1607 install Python bindings in DIR
1608 --with-reader add the xmlReader parsing interface (on)
1609 --with-readline=DIR use readline in DIR
1610 --with-regexps add Regular Expressions support (on)
1611 --with-run-debug add the runtime debugging module (off)
1612 --with-sax1 add the older SAX1 interface (on)
1613 --with-schemas add Relax-NG and Schemas support (on)
1614 --with-schematron add Schematron support (on)
1615 --with-threads add multithread support(on)
1616 --with-thread-alloc add per-thread memory(off)
1617 --with-tree add the DOM like tree manipulation APIs (on)
1618 --with-valid add the DTD validation support (on)
1619 --with-writer add the xmlWriter saving interface (on)
1620 --with-xinclude add the XInclude support (on)
1621 --with-xpath add the XPATH support (on)
1622 --with-xptr add the XPointer support (on)
1623 --with-modules add the dynamic modules support (on)
1624 --with-zlib[=DIR] use libz in DIR
1625 --with-lzma[=DIR] use liblzma in DIR
1626 --with-coverage build for code coverage with GCC (off)
1627
1628Some influential environment variables:
1629 CC C compiler command
1630 CFLAGS C compiler flags
1631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1632 nonstandard directory <lib dir>
1633 LIBS libraries to pass to the linker, e.g. -l<library>
1634 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1635 you have headers in a nonstandard directory <include dir>
1636 CPP C preprocessor
1637 PKG_CONFIG path to pkg-config utility
1638 PKG_CONFIG_PATH
1639 directories to add to pkg-config's search path
1640 PKG_CONFIG_LIBDIR
1641 path overriding pkg-config's built-in search path
1642 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1643 LZMA_LIBS linker flags for LZMA, overriding pkg-config
1644
1645Use these variables to override the choices made by `configure' or to help
1646it to find libraries and programs with nonstandard names/locations.
1647
1648Report bugs to the package provider.
1649_ACEOF
1650ac_status=$?
1651fi
1652
1653if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 continue
1659 ac_builddir=.
1660
1661case "$ac_dir" in
1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663*)
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 esac ;;
1671esac
1672ac_abs_top_builddir=$ac_pwd
1673ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674# for backward compatibility:
1675ac_top_builddir=$ac_top_build_prefix
1676
1677case $srcdir in
1678 .) # We are building in place.
1679 ac_srcdir=.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1686 *) # Relative name.
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690esac
1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1699 echo &&
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1701 else
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 fi || ac_status=$?
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1705 done
1706fi
1707
1708test -n "$ac_init_help" && exit $ac_status
1709if $ac_init_version; then
1710 cat <<\_ACEOF
1711configure
1712generated by GNU Autoconf 2.69
1713
1714Copyright (C) 2012 Free Software Foundation, Inc.
1715This configure script is free software; the Free Software Foundation
1716gives unlimited permission to copy, distribute and modify it.
1717_ACEOF
1718 exit
1719fi
1720
1721## ------------------------ ##
1722## Autoconf initialization. ##
1723## ------------------------ ##
1724
1725# ac_fn_c_try_compile LINENO
1726# --------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_compile ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_compile
1762
1763# ac_fn_c_try_cpp LINENO
1764# ----------------------
1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_cpp ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 }; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794fi
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1797
1798} # ac_fn_c_try_cpp
1799
1800# ac_fn_c_try_link LINENO
1801# -----------------------
1802# Try to link conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_c_try_link ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext conftest$ac_exeext
1807 if { { ac_try="$ac_link"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest$ac_exeext && {
1826 test "$cross_compiling" = yes ||
1827 test -x conftest$ac_exeext
1828 }; then :
1829 ac_retval=0
1830else
1831 $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835fi
1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838 # interfere with the next link command; also delete a directory that is
1839 # left behind by Apple's compiler. We do this before executing the actions.
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1843
1844} # ac_fn_c_try_link
1845
1846# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847# -------------------------------------------------------
1848# Tests whether HEADER exists and can be compiled using the include files in
1849# INCLUDES, setting the cache variable VAR accordingly.
1850ac_fn_c_check_header_compile ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h. */
1860$4
1861#include <$2>
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
1864 eval "$3=yes"
1865else
1866 eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869fi
1870eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875} # ac_fn_c_check_header_compile
1876
1877# ac_fn_c_try_run LINENO
1878# ----------------------
1879# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880# that executables *can* be run.
1881ac_fn_c_try_run ()
1882{
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_link"
1885case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1895 { { case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_try") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; }; }; then :
1905 ac_retval=0
1906else
1907 $as_echo "$as_me: program exited with status $ac_status" >&5
1908 $as_echo "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=$ac_status
1912fi
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917} # ac_fn_c_try_run
1918
1919# ac_fn_c_check_func LINENO FUNC VAR
1920# ----------------------------------
1921# Tests whether FUNC exists, setting the cache variable VAR accordingly
1922ac_fn_c_check_func ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926$as_echo_n "checking for $2... " >&6; }
1927if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1929else
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h. */
1932/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1934#define $2 innocuous_$2
1935
1936/* System header to define __stub macros and hopefully few prototypes,
1937 which can conflict with char $2 (); below.
1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939 <limits.h> exists even on freestanding compilers. */
1940
1941#ifdef __STDC__
1942# include <limits.h>
1943#else
1944# include <assert.h>
1945#endif
1946
1947#undef $2
1948
1949/* Override any GCC internal prototype to avoid an error.
1950 Use char because int might match the return type of a GCC
1951 builtin and then its argument prototype would still apply. */
1952#ifdef __cplusplus
1953extern "C"
1954#endif
1955char $2 ();
1956/* The GNU C library defines this for functions which it implements
1957 to always fail with ENOSYS. Some functions are actually named
1958 something starting with __ and the normal name is an alias. */
1959#if defined __stub_$2 || defined __stub___$2
1960choke me
1961#endif
1962
1963int
1964main ()
1965{
1966return $2 ();
1967 ;
1968 return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_link "$LINENO"; then :
1972 eval "$3=yes"
1973else
1974 eval "$3=no"
1975fi
1976rm -f core conftest.err conftest.$ac_objext \
1977 conftest$ac_exeext conftest.$ac_ext
1978fi
1979eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984} # ac_fn_c_check_func
1985
1986# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1987# -------------------------------------------------------
1988# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1989# the include files in INCLUDES and setting the cache variable VAR
1990# accordingly.
1991ac_fn_c_check_header_mongrel ()
1992{
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if eval \${$3+:} false; then :
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996$as_echo_n "checking for $2... " >&6; }
1997if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999fi
2000eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003else
2004 # Is the header compilable?
2005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2006$as_echo_n "checking $2 usability... " >&6; }
2007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009$4
2010#include <$2>
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_header_compiler=yes
2014else
2015 ac_header_compiler=no
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2019$as_echo "$ac_header_compiler" >&6; }
2020
2021# Is the header present?
2022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2023$as_echo_n "checking $2 presence... " >&6; }
2024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h. */
2026#include <$2>
2027_ACEOF
2028if ac_fn_c_try_cpp "$LINENO"; then :
2029 ac_header_preproc=yes
2030else
2031 ac_header_preproc=no
2032fi
2033rm -f conftest.err conftest.i conftest.$ac_ext
2034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2035$as_echo "$ac_header_preproc" >&6; }
2036
2037# So? What about this header?
2038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2039 yes:no: )
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2041$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 ;;
2045 no:yes:* )
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2047$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2049$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2051$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2053$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2055$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 ;;
2057esac
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
2060if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062else
2063 eval "$3=\$ac_header_compiler"
2064fi
2065eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
2068fi
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071} # ac_fn_c_check_header_mongrel
2072
2073# ac_fn_c_find_uintX_t LINENO BITS VAR
2074# ------------------------------------
2075# Finds an unsigned integer type with width BITS, setting cache variable VAR
2076# accordingly.
2077ac_fn_c_find_uintX_t ()
2078{
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2081$as_echo_n "checking for uint$2_t... " >&6; }
2082if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2084else
2085 eval "$3=no"
2086 # Order is important - never check a type that is potentially smaller
2087 # than half of the expected target width.
2088 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2089 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$ac_includes_default
2093int
2094main ()
2095{
2096static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2097test_array [0] = 0;
2098return test_array [0];
2099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 case $ac_type in #(
2106 uint$2_t) :
2107 eval "$3=yes" ;; #(
2108 *) :
2109 eval "$3=\$ac_type" ;;
2110esac
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 if eval test \"x\$"$3"\" = x"no"; then :
2114
2115else
2116 break
2117fi
2118 done
2119fi
2120eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125} # ac_fn_c_find_uintX_t
2126cat >config.log <<_ACEOF
2127This file contains any messages produced by compilers while
2128running configure, to aid debugging if configure makes a mistake.
2129
2130It was created by $as_me, which was
2131generated by GNU Autoconf 2.69. Invocation command line was
2132
2133 $ $0 $@
2134
2135_ACEOF
2136exec 5>>config.log
2137{
2138cat <<_ASUNAME
2139## --------- ##
2140## Platform. ##
2141## --------- ##
2142
2143hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2144uname -m = `(uname -m) 2>/dev/null || echo unknown`
2145uname -r = `(uname -r) 2>/dev/null || echo unknown`
2146uname -s = `(uname -s) 2>/dev/null || echo unknown`
2147uname -v = `(uname -v) 2>/dev/null || echo unknown`
2148
2149/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2150/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2151
2152/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2153/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2154/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2155/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2156/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2157/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2158/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2159
2160_ASUNAME
2161
2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH
2164do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 $as_echo "PATH: $as_dir"
2168 done
2169IFS=$as_save_IFS
2170
2171} >&5
2172
2173cat >&5 <<_ACEOF
2174
2175
2176## ----------- ##
2177## Core tests. ##
2178## ----------- ##
2179
2180_ACEOF
2181
2182
2183# Keep a trace of the command line.
2184# Strip out --no-create and --no-recursion so they do not pile up.
2185# Strip out --silent because we don't want to record it for future runs.
2186# Also quote any args containing shell meta-characters.
2187# Make two passes to allow for proper duplicate-argument suppression.
2188ac_configure_args=
2189ac_configure_args0=
2190ac_configure_args1=
2191ac_must_keep_next=false
2192for ac_pass in 1 2
2193do
2194 for ac_arg
2195 do
2196 case $ac_arg in
2197 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2199 | -silent | --silent | --silen | --sile | --sil)
2200 continue ;;
2201 *\'*)
2202 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 esac
2204 case $ac_pass in
2205 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2206 2)
2207 as_fn_append ac_configure_args1 " '$ac_arg'"
2208 if test $ac_must_keep_next = true; then
2209 ac_must_keep_next=false # Got value, back to normal.
2210 else
2211 case $ac_arg in
2212 *=* | --config-cache | -C | -disable-* | --disable-* \
2213 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2214 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2215 | -with-* | --with-* | -without-* | --without-* | --x)
2216 case "$ac_configure_args0 " in
2217 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2218 esac
2219 ;;
2220 -* ) ac_must_keep_next=true ;;
2221 esac
2222 fi
2223 as_fn_append ac_configure_args " '$ac_arg'"
2224 ;;
2225 esac
2226 done
2227done
2228{ ac_configure_args0=; unset ac_configure_args0;}
2229{ ac_configure_args1=; unset ac_configure_args1;}
2230
2231# When interrupted or exit'd, cleanup temporary files, and complete
2232# config.log. We remove comments because anyway the quotes in there
2233# would cause problems or look ugly.
2234# WARNING: Use '\'' to represent an apostrophe within the trap.
2235# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2236trap 'exit_status=$?
2237 # Save into config.log some information that might help in debugging.
2238 {
2239 echo
2240
2241 $as_echo "## ---------------- ##
2242## Cache variables. ##
2243## ---------------- ##"
2244 echo
2245 # The following way of writing the cache mishandles newlines in values,
2246(
2247 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2248 eval ac_val=\$$ac_var
2249 case $ac_val in #(
2250 *${as_nl}*)
2251 case $ac_var in #(
2252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2253$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2254 esac
2255 case $ac_var in #(
2256 _ | IFS | as_nl) ;; #(
2257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2258 *) { eval $ac_var=; unset $ac_var;} ;;
2259 esac ;;
2260 esac
2261 done
2262 (set) 2>&1 |
2263 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2264 *${as_nl}ac_space=\ *)
2265 sed -n \
2266 "s/'\''/'\''\\\\'\'''\''/g;
2267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2268 ;; #(
2269 *)
2270 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2271 ;;
2272 esac |
2273 sort
2274)
2275 echo
2276
2277 $as_echo "## ----------------- ##
2278## Output variables. ##
2279## ----------------- ##"
2280 echo
2281 for ac_var in $ac_subst_vars
2282 do
2283 eval ac_val=\$$ac_var
2284 case $ac_val in
2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 esac
2287 $as_echo "$ac_var='\''$ac_val'\''"
2288 done | sort
2289 echo
2290
2291 if test -n "$ac_subst_files"; then
2292 $as_echo "## ------------------- ##
2293## File substitutions. ##
2294## ------------------- ##"
2295 echo
2296 for ac_var in $ac_subst_files
2297 do
2298 eval ac_val=\$$ac_var
2299 case $ac_val in
2300 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301 esac
2302 $as_echo "$ac_var='\''$ac_val'\''"
2303 done | sort
2304 echo
2305 fi
2306
2307 if test -s confdefs.h; then
2308 $as_echo "## ----------- ##
2309## confdefs.h. ##
2310## ----------- ##"
2311 echo
2312 cat confdefs.h
2313 echo
2314 fi
2315 test "$ac_signal" != 0 &&
2316 $as_echo "$as_me: caught signal $ac_signal"
2317 $as_echo "$as_me: exit $exit_status"
2318 } >&5
2319 rm -f core *.core core.conftest.* &&
2320 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2321 exit $exit_status
2322' 0
2323for ac_signal in 1 2 13 15; do
2324 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2325done
2326ac_signal=0
2327
2328# confdefs.h avoids OS command line length limits that DEFS can exceed.
2329rm -f -r conftest* confdefs.h
2330
2331$as_echo "/* confdefs.h */" > confdefs.h
2332
2333# Predefined preprocessor variables.
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_NAME "$PACKAGE_NAME"
2337_ACEOF
2338
2339cat >>confdefs.h <<_ACEOF
2340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2341_ACEOF
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_VERSION "$PACKAGE_VERSION"
2345_ACEOF
2346
2347cat >>confdefs.h <<_ACEOF
2348#define PACKAGE_STRING "$PACKAGE_STRING"
2349_ACEOF
2350
2351cat >>confdefs.h <<_ACEOF
2352#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2353_ACEOF
2354
2355cat >>confdefs.h <<_ACEOF
2356#define PACKAGE_URL "$PACKAGE_URL"
2357_ACEOF
2358
2359
2360# Let the site file select an alternate cache file if it wants to.
2361# Prefer an explicitly selected file to automatically selected ones.
2362ac_site_file1=NONE
2363ac_site_file2=NONE
2364if test -n "$CONFIG_SITE"; then
2365 # We do not want a PATH search for config.site.
2366 case $CONFIG_SITE in #((
2367 -*) ac_site_file1=./$CONFIG_SITE;;
2368 */*) ac_site_file1=$CONFIG_SITE;;
2369 *) ac_site_file1=./$CONFIG_SITE;;
2370 esac
2371elif test "x$prefix" != xNONE; then
2372 ac_site_file1=$prefix/share/config.site
2373 ac_site_file2=$prefix/etc/config.site
2374else
2375 ac_site_file1=$ac_default_prefix/share/config.site
2376 ac_site_file2=$ac_default_prefix/etc/config.site
2377fi
2378for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2379do
2380 test "x$ac_site_file" = xNONE && continue
2381 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2383$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2384 sed 's/^/| /' "$ac_site_file" >&5
2385 . "$ac_site_file" \
2386 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388as_fn_error $? "failed to load site script $ac_site_file
2389See \`config.log' for more details" "$LINENO" 5; }
2390 fi
2391done
2392
2393if test -r "$cache_file"; then
2394 # Some versions of bash will fail to source /dev/null (special files
2395 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2396 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2398$as_echo "$as_me: loading cache $cache_file" >&6;}
2399 case $cache_file in
2400 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2401 *) . "./$cache_file";;
2402 esac
2403 fi
2404else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2406$as_echo "$as_me: creating cache $cache_file" >&6;}
2407 >$cache_file
2408fi
2409
2410# Check that the precious variables saved in the cache have kept the same
2411# value.
2412ac_cache_corrupted=false
2413for ac_var in $ac_precious_vars; do
2414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2415 eval ac_new_set=\$ac_env_${ac_var}_set
2416 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2417 eval ac_new_val=\$ac_env_${ac_var}_value
2418 case $ac_old_set,$ac_new_set in
2419 set,)
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2421$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2422 ac_cache_corrupted=: ;;
2423 ,set)
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2425$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2426 ac_cache_corrupted=: ;;
2427 ,);;
2428 *)
2429 if test "x$ac_old_val" != "x$ac_new_val"; then
2430 # differences in whitespace do not lead to failure.
2431 ac_old_val_w=`echo x $ac_old_val`
2432 ac_new_val_w=`echo x $ac_new_val`
2433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2435$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2436 ac_cache_corrupted=:
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2439$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2440 eval $ac_var=\$ac_old_val
2441 fi
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2443$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2445$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2446 fi;;
2447 esac
2448 # Pass precious variables to config.status.
2449 if test "$ac_new_set" = set; then
2450 case $ac_new_val in
2451 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 *) ac_arg=$ac_var=$ac_new_val ;;
2453 esac
2454 case " $ac_configure_args " in
2455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2456 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2457 esac
2458 fi
2459done
2460if $ac_cache_corrupted; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2464$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2465 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2466fi
2467## -------------------- ##
2468## Main body of script. ##
2469## -------------------- ##
2470
2471ac_ext=c
2472ac_cpp='$CPP $CPPFLAGS'
2473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476
2477
2478
2479ac_config_headers="$ac_config_headers config.h"
2480
2481
2482ac_aux_dir=
2483for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2484 if test -f "$ac_dir/install-sh"; then
2485 ac_aux_dir=$ac_dir
2486 ac_install_sh="$ac_aux_dir/install-sh -c"
2487 break
2488 elif test -f "$ac_dir/install.sh"; then
2489 ac_aux_dir=$ac_dir
2490 ac_install_sh="$ac_aux_dir/install.sh -c"
2491 break
2492 elif test -f "$ac_dir/shtool"; then
2493 ac_aux_dir=$ac_dir
2494 ac_install_sh="$ac_aux_dir/shtool install -c"
2495 break
2496 fi
2497done
2498if test -z "$ac_aux_dir"; then
2499 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2500fi
2501
2502# These three variables are undocumented and unsupported,
2503# and are intended to be withdrawn in a future Autoconf release.
2504# They can cause serious problems if a builder's source tree is in a directory
2505# whose full name contains unusual characters.
2506ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2507ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2508ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2509
2510
2511# Make sure we can run config.sub.
2512$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2513 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2514
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2516$as_echo_n "checking build system type... " >&6; }
2517if ${ac_cv_build+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519else
2520 ac_build_alias=$build_alias
2521test "x$ac_build_alias" = x &&
2522 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2523test "x$ac_build_alias" = x &&
2524 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2525ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2527
2528fi
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2530$as_echo "$ac_cv_build" >&6; }
2531case $ac_cv_build in
2532*-*-*) ;;
2533*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2534esac
2535build=$ac_cv_build
2536ac_save_IFS=$IFS; IFS='-'
2537set x $ac_cv_build
2538shift
2539build_cpu=$1
2540build_vendor=$2
2541shift; shift
2542# Remember, the first character of IFS is used to create $*,
2543# except with old shells:
2544build_os=$*
2545IFS=$ac_save_IFS
2546case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2547
2548
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2550$as_echo_n "checking host system type... " >&6; }
2551if ${ac_cv_host+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553else
2554 if test "x$host_alias" = x; then
2555 ac_cv_host=$ac_cv_build
2556else
2557 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2559fi
2560
2561fi
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2563$as_echo "$ac_cv_host" >&6; }
2564case $ac_cv_host in
2565*-*-*) ;;
2566*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2567esac
2568host=$ac_cv_host
2569ac_save_IFS=$IFS; IFS='-'
2570set x $ac_cv_host
2571shift
2572host_cpu=$1
2573host_vendor=$2
2574shift; shift
2575# Remember, the first character of IFS is used to create $*,
2576# except with old shells:
2577host_os=$*
2578IFS=$ac_save_IFS
2579case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2580
2581
2582
2583LIBXML_MAJOR_VERSION=2
2584LIBXML_MINOR_VERSION=9
2585LIBXML_MICRO_VERSION=2
2586LIBXML_MICRO_VERSION_SUFFIX=
2587LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2588LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2589
2590LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2591
2592if test -f CVS/Entries ; then
2593 extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
2594 echo extra=$extra
2595 if test "$extra" != ""
2596 then
2597 LIBXML_VERSION_EXTRA="-CVS$extra"
2598 fi
2599else if test -d .svn ; then
2600 extra=`svn info | grep Revision | sed 's+Revision: ++'`
2601 echo extra=$extra
2602 if test "$extra" != ""
2603 then
2604 LIBXML_VERSION_EXTRA="-SVN$extra"
2605 fi
2606else if test -d .git ; then
2607 extra=`git describe 2>/dev/null | sed 's+LIBXML[0-9.]*-++'`
2608 echo extra=$extra
2609 if test "$extra" != ""
2610 then
2611 LIBXML_VERSION_EXTRA="-GIT$extra"
2612 fi
2613fi
2614fi
2615fi
2616
2617
2618
2619
2620
2621
2622
2623
2624VERSION=${LIBXML_VERSION}
2625
2626am__api_version='1.13'
2627
2628# Find a good install program. We prefer a C program (faster),
2629# so one script is as good as another. But avoid the broken or
2630# incompatible versions:
2631# SysV /etc/install, /usr/sbin/install
2632# SunOS /usr/etc/install
2633# IRIX /sbin/install
2634# AIX /bin/install
2635# AmigaOS /C/install, which installs bootblocks on floppy discs
2636# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2637# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2638# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2639# OS/2's system install, which has a completely different semantic
2640# ./install, which can be erroneously created by make from ./install.sh.
2641# Reject install programs that cannot install multiple files.
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2643$as_echo_n "checking for a BSD-compatible install... " >&6; }
2644if test -z "$INSTALL"; then
2645if ${ac_cv_path_install+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 # Account for people who put trailing slashes in PATH elements.
2654case $as_dir/ in #((
2655 ./ | .// | /[cC]/* | \
2656 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2657 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2658 /usr/ucb/* ) ;;
2659 *)
2660 # OSF1 and SCO ODT 3.0 have their own names for install.
2661 # Don't use installbsd from OSF since it installs stuff as root
2662 # by default.
2663 for ac_prog in ginstall scoinst install; do
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2666 if test $ac_prog = install &&
2667 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2668 # AIX install. It has an incompatible calling convention.
2669 :
2670 elif test $ac_prog = install &&
2671 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2672 # program-specific install script used by HP pwplus--don't use.
2673 :
2674 else
2675 rm -rf conftest.one conftest.two conftest.dir
2676 echo one > conftest.one
2677 echo two > conftest.two
2678 mkdir conftest.dir
2679 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2680 test -s conftest.one && test -s conftest.two &&
2681 test -s conftest.dir/conftest.one &&
2682 test -s conftest.dir/conftest.two
2683 then
2684 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2685 break 3
2686 fi
2687 fi
2688 fi
2689 done
2690 done
2691 ;;
2692esac
2693
2694 done
2695IFS=$as_save_IFS
2696
2697rm -rf conftest.one conftest.two conftest.dir
2698
2699fi
2700 if test "${ac_cv_path_install+set}" = set; then
2701 INSTALL=$ac_cv_path_install
2702 else
2703 # As a last resort, use the slow shell script. Don't cache a
2704 # value for INSTALL within a source directory, because that will
2705 # break other packages using the cache if that directory is
2706 # removed, or if the value is a relative name.
2707 INSTALL=$ac_install_sh
2708 fi
2709fi
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2711$as_echo "$INSTALL" >&6; }
2712
2713# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2714# It thinks the first close brace ends the variable substitution.
2715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2716
2717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2718
2719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2720
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2722$as_echo_n "checking whether build environment is sane... " >&6; }
2723# Reject unsafe characters in $srcdir or the absolute working directory
2724# name. Accept space and tab only in the latter.
2725am_lf='
2726'
2727case `pwd` in
2728 *[\\\"\#\$\&\'\`$am_lf]*)
2729 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2730esac
2731case $srcdir in
2732 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2733 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2734esac
2735
2736# Do 'set' in a subshell so we don't clobber the current shell's
2737# arguments. Must try -L first in case configure is actually a
2738# symlink; some systems play weird games with the mod time of symlinks
2739# (eg FreeBSD returns the mod time of the symlink's containing
2740# directory).
2741if (
2742 am_has_slept=no
2743 for am_try in 1 2; do
2744 echo "timestamp, slept: $am_has_slept" > conftest.file
2745 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2746 if test "$*" = "X"; then
2747 # -L didn't work.
2748 set X `ls -t "$srcdir/configure" conftest.file`
2749 fi
2750 if test "$*" != "X $srcdir/configure conftest.file" \
2751 && test "$*" != "X conftest.file $srcdir/configure"; then
2752
2753 # If neither matched, then we have a broken ls. This can happen
2754 # if, for instance, CONFIG_SHELL is bash and it inherits a
2755 # broken ls alias from the environment. This has actually
2756 # happened. Such a system could not be considered "sane".
2757 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2758 alias in your environment" "$LINENO" 5
2759 fi
2760 if test "$2" = conftest.file || test $am_try -eq 2; then
2761 break
2762 fi
2763 # Just in case.
2764 sleep 1
2765 am_has_slept=yes
2766 done
2767 test "$2" = conftest.file
2768 )
2769then
2770 # Ok.
2771 :
2772else
2773 as_fn_error $? "newly created file is older than distributed files!
2774Check your system clock" "$LINENO" 5
2775fi
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777$as_echo "yes" >&6; }
2778# If we didn't sleep, we still need to ensure time stamps of config.status and
2779# generated files are strictly newer.
2780am_sleep_pid=
2781if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2782 ( sleep 1 ) &
2783 am_sleep_pid=$!
2784fi
2785
2786rm -f conftest.file
2787
2788test "$program_prefix" != NONE &&
2789 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2790# Use a double $ so make ignores it.
2791test "$program_suffix" != NONE &&
2792 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2793# Double any \ or $.
2794# By default was `s,x,x', remove it if useless.
2795ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2796program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2797
2798# expand $ac_aux_dir to an absolute path
2799am_aux_dir=`cd $ac_aux_dir && pwd`
2800
2801if test x"${MISSING+set}" != xset; then
2802 case $am_aux_dir in
2803 *\ * | *\ *)
2804 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2805 *)
2806 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2807 esac
2808fi
2809# Use eval to expand $SHELL
2810if eval "$MISSING --is-lightweight"; then
2811 am_missing_run="$MISSING "
2812else
2813 am_missing_run=
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2815$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2816fi
2817
2818if test x"${install_sh}" != xset; then
2819 case $am_aux_dir in
2820 *\ * | *\ *)
2821 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2822 *)
2823 install_sh="\${SHELL} $am_aux_dir/install-sh"
2824 esac
2825fi
2826
2827# Installed binaries are usually stripped using 'strip' when the user
2828# run "make install-strip". However 'strip' might not be the right
2829# tool to use in cross-compilation environments, therefore Automake
2830# will honor the 'STRIP' environment variable to overrule this program.
2831if test "$cross_compiling" != no; then
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2834set dummy ${ac_tool_prefix}strip; ac_word=$2
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
2837if ${ac_cv_prog_STRIP+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839else
2840 if test -n "$STRIP"; then
2841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854done
2855 done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860STRIP=$ac_cv_prog_STRIP
2861if test -n "$STRIP"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2863$as_echo "$STRIP" >&6; }
2864else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
2867fi
2868
2869
2870fi
2871if test -z "$ac_cv_prog_STRIP"; then
2872 ac_ct_STRIP=$STRIP
2873 # Extract the first word of "strip", so it can be a program name with args.
2874set dummy strip; ac_word=$2
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876$as_echo_n "checking for $ac_word... " >&6; }
2877if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879else
2880 if test -n "$ac_ct_STRIP"; then
2881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_STRIP="strip"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894done
2895 done
2896IFS=$as_save_IFS
2897
2898fi
2899fi
2900ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2901if test -n "$ac_ct_STRIP"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2903$as_echo "$ac_ct_STRIP" >&6; }
2904else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906$as_echo "no" >&6; }
2907fi
2908
2909 if test "x$ac_ct_STRIP" = x; then
2910 STRIP=":"
2911 else
2912 case $cross_compiling:$ac_tool_warned in
2913yes:)
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916ac_tool_warned=yes ;;
2917esac
2918 STRIP=$ac_ct_STRIP
2919 fi
2920else
2921 STRIP="$ac_cv_prog_STRIP"
2922fi
2923
2924fi
2925INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2926
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2928$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2929if test -z "$MKDIR_P"; then
2930 if ${ac_cv_path_mkdir+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2935do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_prog in mkdir gmkdir; do
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2941 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2942 'mkdir (GNU coreutils) '* | \
2943 'mkdir (coreutils) '* | \
2944 'mkdir (fileutils) '4.1*)
2945 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2946 break 3;;
2947 esac
2948 done
2949 done
2950 done
2951IFS=$as_save_IFS
2952
2953fi
2954
2955 test -d ./--version && rmdir ./--version
2956 if test "${ac_cv_path_mkdir+set}" = set; then
2957 MKDIR_P="$ac_cv_path_mkdir -p"
2958 else
2959 # As a last resort, use the slow shell script. Don't cache a
2960 # value for MKDIR_P within a source directory, because that will
2961 # break other packages using the cache if that directory is
2962 # removed, or if the value is a relative name.
2963 MKDIR_P="$ac_install_sh -d"
2964 fi
2965fi
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2967$as_echo "$MKDIR_P" >&6; }
2968
2969for ac_prog in gawk mawk nawk awk
2970do
2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2972set dummy $ac_prog; ac_word=$2
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974$as_echo_n "checking for $ac_word... " >&6; }
2975if ${ac_cv_prog_AWK+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977else
2978 if test -n "$AWK"; then
2979 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2980else
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_AWK="$ac_prog"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992done
2993 done
2994IFS=$as_save_IFS
2995
2996fi
2997fi
2998AWK=$ac_cv_prog_AWK
2999if test -n "$AWK"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3001$as_echo "$AWK" >&6; }
3002else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004$as_echo "no" >&6; }
3005fi
3006
3007
3008 test -n "$AWK" && break
3009done
3010
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3012$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3013set x ${MAKE-make}
3014ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3015if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017else
3018 cat >conftest.make <<\_ACEOF
3019SHELL = /bin/sh
3020all:
3021 @echo '@@@%%%=$(MAKE)=@@@%%%'
3022_ACEOF
3023# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3024case `${MAKE-make} -f conftest.make 2>/dev/null` in
3025 *@@@%%%=?*=@@@%%%*)
3026 eval ac_cv_prog_make_${ac_make}_set=yes;;
3027 *)
3028 eval ac_cv_prog_make_${ac_make}_set=no;;
3029esac
3030rm -f conftest.make
3031fi
3032if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034$as_echo "yes" >&6; }
3035 SET_MAKE=
3036else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039 SET_MAKE="MAKE=${MAKE-make}"
3040fi
3041
3042rm -rf .tst 2>/dev/null
3043mkdir .tst 2>/dev/null
3044if test -d .tst; then
3045 am__leading_dot=.
3046else
3047 am__leading_dot=_
3048fi
3049rmdir .tst 2>/dev/null
3050
3051# Check whether --enable-silent-rules was given.
3052if test "${enable_silent_rules+set}" = set; then :
3053 enableval=$enable_silent_rules;
3054fi
3055
3056case $enable_silent_rules in # (((
3057 yes) AM_DEFAULT_VERBOSITY=0;;
3058 no) AM_DEFAULT_VERBOSITY=1;;
3059 *) AM_DEFAULT_VERBOSITY=1;;
3060esac
3061am_make=${MAKE-make}
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3063$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3064if ${am_cv_make_support_nested_variables+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066else
3067 if $as_echo 'TRUE=$(BAR$(V))
3068BAR0=false
3069BAR1=true
3070V=1
3071am__doit:
3072 @$(TRUE)
3073.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3074 am_cv_make_support_nested_variables=yes
3075else
3076 am_cv_make_support_nested_variables=no
3077fi
3078fi
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3080$as_echo "$am_cv_make_support_nested_variables" >&6; }
3081if test $am_cv_make_support_nested_variables = yes; then
3082 AM_V='$(V)'
3083 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3084else
3085 AM_V=$AM_DEFAULT_VERBOSITY
3086 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3087fi
3088AM_BACKSLASH='\'
3089
3090if test "`cd $srcdir && pwd`" != "`pwd`"; then
3091 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3092 # is not polluted with repeated "-I."
3093 am__isrc=' -I$(srcdir)'
3094 # test to see if srcdir already configured
3095 if test -f $srcdir/config.status; then
3096 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3097 fi
3098fi
3099
3100# test whether we have cygpath
3101if test -z "$CYGPATH_W"; then
3102 if (cygpath --version) >/dev/null 2>/dev/null; then
3103 CYGPATH_W='cygpath -w'
3104 else
3105 CYGPATH_W=echo
3106 fi
3107fi
3108
3109
3110# Define the identity of the package.
3111
3112 PACKAGE=libxml2
3113 VERSION=$VERSION
3114
3115
3116cat >>confdefs.h <<_ACEOF
3117#define PACKAGE "$PACKAGE"
3118_ACEOF
3119
3120
3121cat >>confdefs.h <<_ACEOF
3122#define VERSION "$VERSION"
3123_ACEOF
3124
3125# Some tools Automake needs.
3126
3127ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3128
3129
3130AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3131
3132
3133AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3134
3135
3136AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3137
3138
3139MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3140
3141# For better backward compatibility. To be removed once Automake 1.9.x
3142# dies out for good. For more background, see:
3143# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3144# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3145mkdir_p='$(MKDIR_P)'
3146
3147# We need awk for the "check" target. The system "awk" is bad on
3148# some platforms.
3149# Always define AMTAR for backward compatibility. Yes, it's still used
3150# in the wild :-( We should find a proper way to deprecate it ...
3151AMTAR='$${TAR-tar}'
3152
3153
3154# We'll loop over all known methods to create a tar archive until one works.
3155_am_tools='gnutar pax cpio none'
3156
3157am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3158
3159
3160
3161
3162
3163
3164
3165# Support silent build rules, requires at least automake-1.11. Disable
3166# by either passing --disable-silent-rules to configure or passing V=1
3167# to make
3168# Check whether --enable-silent-rules was given.
3169if test "${enable_silent_rules+set}" = set; then :
3170 enableval=$enable_silent_rules;
3171fi
3172
3173case $enable_silent_rules in # (((
3174 yes) AM_DEFAULT_VERBOSITY=0;;
3175 no) AM_DEFAULT_VERBOSITY=1;;
3176 *) AM_DEFAULT_VERBOSITY=0;;
3177esac
3178am_make=${MAKE-make}
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3180$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3181if ${am_cv_make_support_nested_variables+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183else
3184 if $as_echo 'TRUE=$(BAR$(V))
3185BAR0=false
3186BAR1=true
3187V=1
3188am__doit:
3189 @$(TRUE)
3190.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3191 am_cv_make_support_nested_variables=yes
3192else
3193 am_cv_make_support_nested_variables=no
3194fi
3195fi
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3197$as_echo "$am_cv_make_support_nested_variables" >&6; }
3198if test $am_cv_make_support_nested_variables = yes; then
3199 AM_V='$(V)'
3200 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3201else
3202 AM_V=$AM_DEFAULT_VERBOSITY
3203 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3204fi
3205AM_BACKSLASH='\'
3206
3207
3208ac_ext=c
3209ac_cpp='$CPP $CPPFLAGS'
3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3215set dummy ${ac_tool_prefix}gcc; ac_word=$2
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235done
3236 done
3237IFS=$as_save_IFS
3238
3239fi
3240fi
3241CC=$ac_cv_prog_CC
3242if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244$as_echo "$CC" >&6; }
3245else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248fi
3249
3250
3251fi
3252if test -z "$ac_cv_prog_CC"; then
3253 ac_ct_CC=$CC
3254 # Extract the first word of "gcc", so it can be a program name with args.
3255set dummy gcc; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if ${ac_cv_prog_ac_ct_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260else
3261 if test -n "$ac_ct_CC"; then
3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_ac_ct_CC="gcc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275done
3276 done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281ac_ct_CC=$ac_cv_prog_ac_ct_CC
3282if test -n "$ac_ct_CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3284$as_echo "$ac_ct_CC" >&6; }
3285else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290 if test "x$ac_ct_CC" = x; then
3291 CC=""
3292 else
3293 case $cross_compiling:$ac_tool_warned in
3294yes:)
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297ac_tool_warned=yes ;;
3298esac
3299 CC=$ac_ct_CC
3300 fi
3301else
3302 CC="$ac_cv_prog_CC"
3303fi
3304
3305if test -z "$CC"; then
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3308set dummy ${ac_tool_prefix}cc; ac_word=$2
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310$as_echo_n "checking for $ac_word... " >&6; }
3311if ${ac_cv_prog_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313else
3314 if test -n "$CC"; then
3315 ac_cv_prog_CC="$CC" # Let the user override the test.
3316else
3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH
3319do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_CC="${ac_tool_prefix}cc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328done
3329 done
3330IFS=$as_save_IFS
3331
3332fi
3333fi
3334CC=$ac_cv_prog_CC
3335if test -n "$CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337$as_echo "$CC" >&6; }
3338else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340$as_echo "no" >&6; }
3341fi
3342
3343
3344 fi
3345fi
3346if test -z "$CC"; then
3347 # Extract the first word of "cc", so it can be a program name with args.
3348set dummy cc; ac_word=$2
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350$as_echo_n "checking for $ac_word... " >&6; }
3351if ${ac_cv_prog_CC+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353else
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3356else
3357 ac_prog_rejected=no
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3366 ac_prog_rejected=yes
3367 continue
3368 fi
3369 ac_cv_prog_CC="cc"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373done
3374 done
3375IFS=$as_save_IFS
3376
3377if test $ac_prog_rejected = yes; then
3378 # We found a bogon in the path, so make sure we never use it.
3379 set dummy $ac_cv_prog_CC
3380 shift
3381 if test $# != 0; then
3382 # We chose a different compiler from the bogus one.
3383 # However, it has the same basename, so the bogon will be chosen
3384 # first if we set CC to just the basename; use the full file name.
3385 shift
3386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3387 fi
3388fi
3389fi
3390fi
3391CC=$ac_cv_prog_CC
3392if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394$as_echo "$CC" >&6; }
3395else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401fi
3402if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3404 for ac_prog in cl.exe
3405 do
3406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409$as_echo_n "checking for $ac_word... " >&6; }
3410if ${ac_cv_prog_CC+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412else
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3415else
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427done
3428 done
3429IFS=$as_save_IFS
3430
3431fi
3432fi
3433CC=$ac_cv_prog_CC
3434if test -n "$CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436$as_echo "$CC" >&6; }
3437else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439$as_echo "no" >&6; }
3440fi
3441
3442
3443 test -n "$CC" && break
3444 done
3445fi
3446if test -z "$CC"; then
3447 ac_ct_CC=$CC
3448 for ac_prog in cl.exe
3449do
3450 # Extract the first word of "$ac_prog", so it can be a program name with args.
3451set dummy $ac_prog; ac_word=$2
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453$as_echo_n "checking for $ac_word... " >&6; }
3454if ${ac_cv_prog_ac_ct_CC+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456else
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459else
3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461for as_dir in $PATH
3462do
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_ac_ct_CC="$ac_prog"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471done
3472 done
3473IFS=$as_save_IFS
3474
3475fi
3476fi
3477ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478if test -n "$ac_ct_CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480$as_echo "$ac_ct_CC" >&6; }
3481else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483$as_echo "no" >&6; }
3484fi
3485
3486
3487 test -n "$ac_ct_CC" && break
3488done
3489
3490 if test "x$ac_ct_CC" = x; then
3491 CC=""
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494yes:)
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497ac_tool_warned=yes ;;
3498esac
3499 CC=$ac_ct_CC
3500 fi
3501fi
3502
3503fi
3504
3505
3506test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508as_fn_error $? "no acceptable C compiler found in \$PATH
3509See \`config.log' for more details" "$LINENO" 5; }
3510
3511# Provide some information about the compiler.
3512$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3513set X $ac_compile
3514ac_compiler=$2
3515for ac_option in --version -v -V -qversion; do
3516 { { ac_try="$ac_compiler $ac_option >&5"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522$as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3524 ac_status=$?
3525 if test -s conftest.err; then
3526 sed '10a\
3527... rest of stderr output deleted ...
3528 10q' conftest.err >conftest.er1
3529 cat conftest.er1 >&5
3530 fi
3531 rm -f conftest.er1 conftest.err
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }
3534done
3535
3536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h. */
3538
3539int
3540main ()
3541{
3542
3543 ;
3544 return 0;
3545}
3546_ACEOF
3547ac_clean_files_save=$ac_clean_files
3548ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3549# Try to create an executable without -o first, disregard a.out.
3550# It will help us diagnose broken compilers, and finding out an intuition
3551# of exeext.
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3553$as_echo_n "checking whether the C compiler works... " >&6; }
3554ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3555
3556# The possible output files:
3557ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3558
3559ac_rmfiles=
3560for ac_file in $ac_files
3561do
3562 case $ac_file in
3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3564 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3565 esac
3566done
3567rm -f $ac_rmfiles
3568
3569if { { ac_try="$ac_link_default"
3570case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575$as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_link_default") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3581# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3582# in a Makefile. We should not override ac_cv_exeext if it was cached,
3583# so that the user can short-circuit this test for compilers unknown to
3584# Autoconf.
3585for ac_file in $ac_files ''
3586do
3587 test -f "$ac_file" || continue
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3590 ;;
3591 [ab].out )
3592 # We found the default executable, but exeext='' is most
3593 # certainly right.
3594 break;;
3595 *.* )
3596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3597 then :; else
3598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 fi
3600 # We set ac_cv_exeext here because the later test for it is not
3601 # safe: cross compilers may not add the suffix if given an `-o'
3602 # argument, so we may need to know it at that point already.
3603 # Even if this section looks crufty: it has the advantage of
3604 # actually working.
3605 break;;
3606 * )
3607 break;;
3608 esac
3609done
3610test "$ac_cv_exeext" = no && ac_cv_exeext=
3611
3612else
3613 ac_file=''
3614fi
3615if test -z "$ac_file"; then :
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617$as_echo "no" >&6; }
3618$as_echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623as_fn_error 77 "C compiler cannot create executables
3624See \`config.log' for more details" "$LINENO" 5; }
3625else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627$as_echo "yes" >&6; }
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3630$as_echo_n "checking for C compiler default output file name... " >&6; }
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3632$as_echo "$ac_file" >&6; }
3633ac_exeext=$ac_cv_exeext
3634
3635rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3636ac_clean_files=$ac_clean_files_save
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3638$as_echo_n "checking for suffix of executables... " >&6; }
3639if { { ac_try="$ac_link"
3640case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643esac
3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645$as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3651# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3652# work properly (i.e., refer to `conftest.exe'), while it won't with
3653# `rm'.
3654for ac_file in conftest.exe conftest conftest.*; do
3655 test -f "$ac_file" || continue
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3659 break;;
3660 * ) break;;
3661 esac
3662done
3663else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3667See \`config.log' for more details" "$LINENO" 5; }
3668fi
3669rm -f conftest conftest$ac_cv_exeext
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3671$as_echo "$ac_cv_exeext" >&6; }
3672
3673rm -f conftest.$ac_ext
3674EXEEXT=$ac_cv_exeext
3675ac_exeext=$EXEEXT
3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h. */
3678#include <stdio.h>
3679int
3680main ()
3681{
3682FILE *f = fopen ("conftest.out", "w");
3683 return ferror (f) || fclose (f) != 0;
3684
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689ac_clean_files="$ac_clean_files conftest.out"
3690# Check that the compiler produces executables we can run. If not, either
3691# the compiler is broken, or we cross compile.
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3693$as_echo_n "checking whether we are cross compiling... " >&6; }
3694if test "$cross_compiling" != yes; then
3695 { { ac_try="$ac_link"
3696case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699esac
3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701$as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_link") 2>&5
3703 ac_status=$?
3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }
3706 if { ac_try='./conftest$ac_cv_exeext'
3707 { { case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710esac
3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712$as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_try") 2>&5
3714 ac_status=$?
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }; }; then
3717 cross_compiling=no
3718 else
3719 if test "$cross_compiling" = maybe; then
3720 cross_compiling=yes
3721 else
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724as_fn_error $? "cannot run C compiled programs.
3725If you meant to cross compile, use \`--host'.
3726See \`config.log' for more details" "$LINENO" 5; }
3727 fi
3728 fi
3729fi
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3731$as_echo "$cross_compiling" >&6; }
3732
3733rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3734ac_clean_files=$ac_clean_files_save
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3736$as_echo_n "checking for suffix of object files... " >&6; }
3737if ${ac_cv_objext+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739else
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741/* end confdefs.h. */
3742
3743int
3744main ()
3745{
3746
3747 ;
3748 return 0;
3749}
3750_ACEOF
3751rm -f conftest.o conftest.obj
3752if { { ac_try="$ac_compile"
3753case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756esac
3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758$as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_compile") 2>&5
3760 ac_status=$?
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; then :
3763 for ac_file in conftest.o conftest.obj conftest.*; do
3764 test -f "$ac_file" || continue;
3765 case $ac_file in
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3768 break;;
3769 esac
3770done
3771else
3772 $as_echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777as_fn_error $? "cannot compute suffix of object files: cannot compile
3778See \`config.log' for more details" "$LINENO" 5; }
3779fi
3780rm -f conftest.$ac_cv_objext conftest.$ac_ext
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3783$as_echo "$ac_cv_objext" >&6; }
3784OBJEXT=$ac_cv_objext
3785ac_objext=$OBJEXT
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3787$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3788if ${ac_cv_c_compiler_gnu+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790else
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h. */
3793
3794int
3795main ()
3796{
3797#ifndef __GNUC__
3798 choke me
3799#endif
3800
3801 ;
3802 return 0;
3803}
3804_ACEOF
3805if ac_fn_c_try_compile "$LINENO"; then :
3806 ac_compiler_gnu=yes
3807else
3808 ac_compiler_gnu=no
3809fi
3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811ac_cv_c_compiler_gnu=$ac_compiler_gnu
3812
3813fi
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3815$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3816if test $ac_compiler_gnu = yes; then
3817 GCC=yes
3818else
3819 GCC=
3820fi
3821ac_test_CFLAGS=${CFLAGS+set}
3822ac_save_CFLAGS=$CFLAGS
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3824$as_echo_n "checking whether $CC accepts -g... " >&6; }
3825if ${ac_cv_prog_cc_g+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827else
3828 ac_save_c_werror_flag=$ac_c_werror_flag
3829 ac_c_werror_flag=yes
3830 ac_cv_prog_cc_g=no
3831 CFLAGS="-g"
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h. */
3834
3835int
3836main ()
3837{
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_g=yes
3845else
3846 CFLAGS=""
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h. */
3849
3850int
3851main ()
3852{
3853
3854 ;
3855 return 0;
3856}
3857_ACEOF
3858if ac_fn_c_try_compile "$LINENO"; then :
3859
3860else
3861 ac_c_werror_flag=$ac_save_c_werror_flag
3862 CFLAGS="-g"
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h. */
3865
3866int
3867main ()
3868{
3869
3870 ;
3871 return 0;
3872}
3873_ACEOF
3874if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_g=yes
3876fi
3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878fi
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880fi
3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_c_werror_flag=$ac_save_c_werror_flag
3883fi
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3885$as_echo "$ac_cv_prog_cc_g" >&6; }
3886if test "$ac_test_CFLAGS" = set; then
3887 CFLAGS=$ac_save_CFLAGS
3888elif test $ac_cv_prog_cc_g = yes; then
3889 if test "$GCC" = yes; then
3890 CFLAGS="-g -O2"
3891 else
3892 CFLAGS="-g"
3893 fi
3894else
3895 if test "$GCC" = yes; then
3896 CFLAGS="-O2"
3897 else
3898 CFLAGS=
3899 fi
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3902$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3903if ${ac_cv_prog_cc_c89+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905else
3906 ac_cv_prog_cc_c89=no
3907ac_save_CC=$CC
3908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h. */
3910#include <stdarg.h>
3911#include <stdio.h>
3912struct stat;
3913/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3914struct buf { int x; };
3915FILE * (*rcsopen) (struct buf *, struct stat *, int);
3916static char *e (p, i)
3917 char **p;
3918 int i;
3919{
3920 return p[i];
3921}
3922static char *f (char * (*g) (char **, int), char **p, ...)
3923{
3924 char *s;
3925 va_list v;
3926 va_start (v,p);
3927 s = g (p, va_arg (v,int));
3928 va_end (v);
3929 return s;
3930}
3931
3932/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3933 function prototypes and stuff, but not '\xHH' hex character constants.
3934 These don't provoke an error unfortunately, instead are silently treated
3935 as 'x'. The following induces an error, until -std is added to get
3936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3937 array size at least. It's necessary to write '\x00'==0 to get something
3938 that's true only with -std. */
3939int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3940
3941/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3942 inside strings and character constants. */
3943#define FOO(x) 'x'
3944int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3945
3946int test (int i, double x);
3947struct s1 {int (*f) (int a);};
3948struct s2 {int (*f) (double a);};
3949int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3950int argc;
3951char **argv;
3952int
3953main ()
3954{
3955return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3956 ;
3957 return 0;
3958}
3959_ACEOF
3960for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3962do
3963 CC="$ac_save_CC $ac_arg"
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965 ac_cv_prog_cc_c89=$ac_arg
3966fi
3967rm -f core conftest.err conftest.$ac_objext
3968 test "x$ac_cv_prog_cc_c89" != "xno" && break
3969done
3970rm -f conftest.$ac_ext
3971CC=$ac_save_CC
3972
3973fi
3974# AC_CACHE_VAL
3975case "x$ac_cv_prog_cc_c89" in
3976 x)
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3978$as_echo "none needed" >&6; } ;;
3979 xno)
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3981$as_echo "unsupported" >&6; } ;;
3982 *)
3983 CC="$CC $ac_cv_prog_cc_c89"
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3985$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3986esac
3987if test "x$ac_cv_prog_cc_c89" != xno; then :
3988
3989fi
3990
3991ac_ext=c
3992ac_cpp='$CPP $CPPFLAGS'
3993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996DEPDIR="${am__leading_dot}deps"
3997
3998ac_config_commands="$ac_config_commands depfiles"
3999
4000
4001am_make=${MAKE-make}
4002cat > confinc << 'END'
4003am__doit:
4004 @echo this is the am__doit target
4005.PHONY: am__doit
4006END
4007# If we don't find an include directive, just comment out the code.
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4009$as_echo_n "checking for style of include used by $am_make... " >&6; }
4010am__include="#"
4011am__quote=
4012_am_result=none
4013# First try GNU make style include.
4014echo "include confinc" > confmf
4015# Ignore all kinds of additional output from 'make'.
4016case `$am_make -s -f confmf 2> /dev/null` in #(
4017*the\ am__doit\ target*)
4018 am__include=include
4019 am__quote=
4020 _am_result=GNU
4021 ;;
4022esac
4023# Now try BSD make style include.
4024if test "$am__include" = "#"; then
4025 echo '.include "confinc"' > confmf
4026 case `$am_make -s -f confmf 2> /dev/null` in #(
4027 *the\ am__doit\ target*)
4028 am__include=.include
4029 am__quote="\""
4030 _am_result=BSD
4031 ;;
4032 esac
4033fi
4034
4035
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4037$as_echo "$_am_result" >&6; }
4038rm -f confinc confmf
4039
4040# Check whether --enable-dependency-tracking was given.
4041if test "${enable_dependency_tracking+set}" = set; then :
4042 enableval=$enable_dependency_tracking;
4043fi
4044
4045if test "x$enable_dependency_tracking" != xno; then
4046 am_depcomp="$ac_aux_dir/depcomp"
4047 AMDEPBACKSLASH='\'
4048 am__nodep='_no'
4049fi
4050 if test "x$enable_dependency_tracking" != xno; then
4051 AMDEP_TRUE=
4052 AMDEP_FALSE='#'
4053else
4054 AMDEP_TRUE='#'
4055 AMDEP_FALSE=
4056fi
4057
4058
4059
4060depcc="$CC" am_compiler_list=
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4063$as_echo_n "checking dependency style of $depcc... " >&6; }
4064if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066else
4067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4068 # We make a subdir and do the tests there. Otherwise we can end up
4069 # making bogus files that we don't know about and never remove. For
4070 # instance it was reported that on HP-UX the gcc test will end up
4071 # making a dummy file named 'D' -- because '-MD' means "put the output
4072 # in D".
4073 rm -rf conftest.dir
4074 mkdir conftest.dir
4075 # Copy depcomp to subdir because otherwise we won't find it if we're
4076 # using a relative directory.
4077 cp "$am_depcomp" conftest.dir
4078 cd conftest.dir
4079 # We will build objects and dependencies in a subdirectory because
4080 # it helps to detect inapplicable dependency modes. For instance
4081 # both Tru64's cc and ICC support -MD to output dependencies as a
4082 # side effect of compilation, but ICC will put the dependencies in
4083 # the current directory while Tru64 will put them in the object
4084 # directory.
4085 mkdir sub
4086
4087 am_cv_CC_dependencies_compiler_type=none
4088 if test "$am_compiler_list" = ""; then
4089 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4090 fi
4091 am__universal=false
4092 case " $depcc " in #(
4093 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4094 esac
4095
4096 for depmode in $am_compiler_list; do
4097 # Setup a source with many dependencies, because some compilers
4098 # like to wrap large dependency lists on column 80 (with \), and
4099 # we should not choose a depcomp mode which is confused by this.
4100 #
4101 # We need to recreate these files for each test, as the compiler may
4102 # overwrite some of them when testing with obscure command lines.
4103 # This happens at least with the AIX C compiler.
4104 : > sub/conftest.c
4105 for i in 1 2 3 4 5 6; do
4106 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4107 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4108 # Solaris 10 /bin/sh.
4109 echo '/* dummy */' > sub/conftst$i.h
4110 done
4111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4112
4113 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4114 # mode. It turns out that the SunPro C++ compiler does not properly
4115 # handle '-M -o', and we need to detect this. Also, some Intel
4116 # versions had trouble with output in subdirs.
4117 am__obj=sub/conftest.${OBJEXT-o}
4118 am__minus_obj="-o $am__obj"
4119 case $depmode in
4120 gcc)
4121 # This depmode causes a compiler race in universal mode.
4122 test "$am__universal" = false || continue
4123 ;;
4124 nosideeffect)
4125 # After this tag, mechanisms are not by side-effect, so they'll
4126 # only be used when explicitly requested.
4127 if test "x$enable_dependency_tracking" = xyes; then
4128 continue
4129 else
4130 break
4131 fi
4132 ;;
4133 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4134 # This compiler won't grok '-c -o', but also, the minuso test has
4135 # not run yet. These depmodes are late enough in the game, and
4136 # so weak that their functioning should not be impacted.
4137 am__obj=conftest.${OBJEXT-o}
4138 am__minus_obj=
4139 ;;
4140 none) break ;;
4141 esac
4142 if depmode=$depmode \
4143 source=sub/conftest.c object=$am__obj \
4144 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4145 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4146 >/dev/null 2>conftest.err &&
4147 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4149 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4151 # icc doesn't choke on unknown options, it will just issue warnings
4152 # or remarks (even with -Werror). So we grep stderr for any message
4153 # that says an option was ignored or not supported.
4154 # When given -MP, icc 7.0 and 7.1 complain thusly:
4155 # icc: Command line warning: ignoring option '-M'; no argument required
4156 # The diagnosis changed in icc 8.0:
4157 # icc: Command line remark: option '-MP' not supported
4158 if (grep 'ignoring option' conftest.err ||
4159 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4160 am_cv_CC_dependencies_compiler_type=$depmode
4161 break
4162 fi
4163 fi
4164 done
4165
4166 cd ..
4167 rm -rf conftest.dir
4168else
4169 am_cv_CC_dependencies_compiler_type=none
4170fi
4171
4172fi
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4174$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4175CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4176
4177 if
4178 test "x$enable_dependency_tracking" != xno \
4179 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4180 am__fastdepCC_TRUE=
4181 am__fastdepCC_FALSE='#'
4182else
4183 am__fastdepCC_TRUE='#'
4184 am__fastdepCC_FALSE=
4185fi
4186
4187
4188
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4190$as_echo_n "checking whether ln -s works... " >&6; }
4191LN_S=$as_ln_s
4192if test "$LN_S" = "ln -s"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4194$as_echo "yes" >&6; }
4195else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4197$as_echo "no, using $LN_S" >&6; }
4198fi
4199
4200
4201ac_ext=c
4202ac_cpp='$CPP $CPPFLAGS'
4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4207$as_echo_n "checking how to run the C preprocessor... " >&6; }
4208# On Suns, sometimes $CPP names a directory.
4209if test -n "$CPP" && test -d "$CPP"; then
4210 CPP=
4211fi
4212if test -z "$CPP"; then
4213 if ${ac_cv_prog_CPP+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215else
4216 # Double quotes because CPP needs to be expanded
4217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4218 do
4219 ac_preproc_ok=false
4220for ac_c_preproc_warn_flag in '' yes
4221do
4222 # Use a header file that comes with gcc, so configuring glibc
4223 # with a fresh cross-compiler works.
4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h. */
4230#ifdef __STDC__
4231# include <limits.h>
4232#else
4233# include <assert.h>
4234#endif
4235 Syntax error
4236_ACEOF
4237if ac_fn_c_try_cpp "$LINENO"; then :
4238
4239else
4240 # Broken: fails on valid input.
4241continue
4242fi
4243rm -f conftest.err conftest.i conftest.$ac_ext
4244
4245 # OK, works on sane cases. Now check whether nonexistent headers
4246 # can be detected and how.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248/* end confdefs.h. */
4249#include <ac_nonexistent.h>
4250_ACEOF
4251if ac_fn_c_try_cpp "$LINENO"; then :
4252 # Broken: success on invalid input.
4253continue
4254else
4255 # Passes both tests.
4256ac_preproc_ok=:
4257break
4258fi
4259rm -f conftest.err conftest.i conftest.$ac_ext
4260
4261done
4262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263rm -f conftest.i conftest.err conftest.$ac_ext
4264if $ac_preproc_ok; then :
4265 break
4266fi
4267
4268 done
4269 ac_cv_prog_CPP=$CPP
4270
4271fi
4272 CPP=$ac_cv_prog_CPP
4273else
4274 ac_cv_prog_CPP=$CPP
4275fi
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4277$as_echo "$CPP" >&6; }
4278ac_preproc_ok=false
4279for ac_c_preproc_warn_flag in '' yes
4280do
4281 # Use a header file that comes with gcc, so configuring glibc
4282 # with a fresh cross-compiler works.
4283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 # <limits.h> exists even on freestanding compilers.
4285 # On the NeXT, cc -E runs the code through the compiler's parser,
4286 # not just through cpp. "Syntax error" is here to catch this case.
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h. */
4289#ifdef __STDC__
4290# include <limits.h>
4291#else
4292# include <assert.h>
4293#endif
4294 Syntax error
4295_ACEOF
4296if ac_fn_c_try_cpp "$LINENO"; then :
4297
4298else
4299 # Broken: fails on valid input.
4300continue
4301fi
4302rm -f conftest.err conftest.i conftest.$ac_ext
4303
4304 # OK, works on sane cases. Now check whether nonexistent headers
4305 # can be detected and how.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307/* end confdefs.h. */
4308#include <ac_nonexistent.h>
4309_ACEOF
4310if ac_fn_c_try_cpp "$LINENO"; then :
4311 # Broken: success on invalid input.
4312continue
4313else
4314 # Passes both tests.
4315ac_preproc_ok=:
4316break
4317fi
4318rm -f conftest.err conftest.i conftest.$ac_ext
4319
4320done
4321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4322rm -f conftest.i conftest.err conftest.$ac_ext
4323if $ac_preproc_ok; then :
4324
4325else
4326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4329See \`config.log' for more details" "$LINENO" 5; }
4330fi
4331
4332ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338# Extract the first word of "mv", so it can be a program name with args.
4339set dummy mv; ac_word=$2
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341$as_echo_n "checking for $ac_word... " >&6; }
4342if ${ac_cv_path_MV+:} false; then :
4343 $as_echo_n "(cached) " >&6
4344else
4345 case $MV in
4346 [\\/]* | ?:[\\/]*)
4347 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4348 ;;
4349 *)
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4360 fi
4361done
4362 done
4363IFS=$as_save_IFS
4364
4365 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4366 ;;
4367esac
4368fi
4369MV=$ac_cv_path_MV
4370if test -n "$MV"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4372$as_echo "$MV" >&6; }
4373else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375$as_echo "no" >&6; }
4376fi
4377
4378
4379# Extract the first word of "tar", so it can be a program name with args.
4380set dummy tar; ac_word=$2
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382$as_echo_n "checking for $ac_word... " >&6; }
4383if ${ac_cv_path_TAR+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385else
4386 case $TAR in
4387 [\\/]* | ?:[\\/]*)
4388 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4389 ;;
4390 *)
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402done
4403 done
4404IFS=$as_save_IFS
4405
4406 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4407 ;;
4408esac
4409fi
4410TAR=$ac_cv_path_TAR
4411if test -n "$TAR"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4413$as_echo "$TAR" >&6; }
4414else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416$as_echo "no" >&6; }
4417fi
4418
4419
4420# Extract the first word of "perl", so it can be a program name with args.
4421set dummy perl; ac_word=$2
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423$as_echo_n "checking for $ac_word... " >&6; }
4424if ${ac_cv_path_PERL+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426else
4427 case $PERL in
4428 [\\/]* | ?:[\\/]*)
4429 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4430 ;;
4431 *)
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443done
4444 done
4445IFS=$as_save_IFS
4446
4447 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4448 ;;
4449esac
4450fi
4451PERL=$ac_cv_path_PERL
4452if test -n "$PERL"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4454$as_echo "$PERL" >&6; }
4455else
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457$as_echo "no" >&6; }
4458fi
4459
4460
4461# Extract the first word of "wget", so it can be a program name with args.
4462set dummy wget; ac_word=$2
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464$as_echo_n "checking for $ac_word... " >&6; }
4465if ${ac_cv_path_WGET+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467else
4468 case $WGET in
4469 [\\/]* | ?:[\\/]*)
4470 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4471 ;;
4472 *)
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484done
4485 done
4486IFS=$as_save_IFS
4487
4488 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4489 ;;
4490esac
4491fi
4492WGET=$ac_cv_path_WGET
4493if test -n "$WGET"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4495$as_echo "$WGET" >&6; }
4496else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498$as_echo "no" >&6; }
4499fi
4500
4501
4502# Extract the first word of "xmllint", so it can be a program name with args.
4503set dummy xmllint; ac_word=$2
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505$as_echo_n "checking for $ac_word... " >&6; }
4506if ${ac_cv_path_XMLLINT+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508else
4509 case $XMLLINT in
4510 [\\/]* | ?:[\\/]*)
4511 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4512 ;;
4513 *)
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525done
4526 done
4527IFS=$as_save_IFS
4528
4529 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4530 ;;
4531esac
4532fi
4533XMLLINT=$ac_cv_path_XMLLINT
4534if test -n "$XMLLINT"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4536$as_echo "$XMLLINT" >&6; }
4537else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539$as_echo "no" >&6; }
4540fi
4541
4542
4543# Extract the first word of "xsltproc", so it can be a program name with args.
4544set dummy xsltproc; ac_word=$2
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546$as_echo_n "checking for $ac_word... " >&6; }
4547if ${ac_cv_path_XSLTPROC+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549else
4550 case $XSLTPROC in
4551 [\\/]* | ?:[\\/]*)
4552 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4553 ;;
4554 *)
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566done
4567 done
4568IFS=$as_save_IFS
4569
4570 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4571 ;;
4572esac
4573fi
4574XSLTPROC=$ac_cv_path_XSLTPROC
4575if test -n "$XSLTPROC"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4577$as_echo "$XSLTPROC" >&6; }
4578else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580$as_echo "no" >&6; }
4581fi
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4594set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596$as_echo_n "checking for $ac_word... " >&6; }
4597if ${ac_cv_path_PKG_CONFIG+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599else
4600 case $PKG_CONFIG in
4601 [\\/]* | ?:[\\/]*)
4602 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4603 ;;
4604 *)
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616done
4617 done
4618IFS=$as_save_IFS
4619
4620 ;;
4621esac
4622fi
4623PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4624if test -n "$PKG_CONFIG"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4626$as_echo "$PKG_CONFIG" >&6; }
4627else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629$as_echo "no" >&6; }
4630fi
4631
4632
4633fi
4634if test -z "$ac_cv_path_PKG_CONFIG"; then
4635 ac_pt_PKG_CONFIG=$PKG_CONFIG
4636 # Extract the first word of "pkg-config", so it can be a program name with args.
4637set dummy pkg-config; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
4640if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642else
4643 case $ac_pt_PKG_CONFIG in
4644 [\\/]* | ?:[\\/]*)
4645 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4646 ;;
4647 *)
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659done
4660 done
4661IFS=$as_save_IFS
4662
4663 ;;
4664esac
4665fi
4666ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4667if test -n "$ac_pt_PKG_CONFIG"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4669$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4670else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672$as_echo "no" >&6; }
4673fi
4674
4675 if test "x$ac_pt_PKG_CONFIG" = x; then
4676 PKG_CONFIG=""
4677 else
4678 case $cross_compiling:$ac_tool_warned in
4679yes:)
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682ac_tool_warned=yes ;;
4683esac
4684 PKG_CONFIG=$ac_pt_PKG_CONFIG
4685 fi
4686else
4687 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4688fi
4689
4690fi
4691if test -n "$PKG_CONFIG"; then
4692 _pkg_min_version=0.9.0
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4694$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4695 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4697$as_echo "yes" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700$as_echo "no" >&6; }
4701 PKG_CONFIG=""
4702 fi
4703fi
4704
4705case `pwd` in
4706 *\ * | *\ *)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4708$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4709esac
4710
4711
4712
4713macro_version='2.4.2'
4714macro_revision='1.3337'
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728ltmain="$ac_aux_dir/ltmain.sh"
4729
4730# Backslashify metacharacters that are still active within
4731# double-quoted strings.
4732sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4733
4734# Same as above, but do not quote variable references.
4735double_quote_subst='s/\(["`\\]\)/\\\1/g'
4736
4737# Sed substitution to delay expansion of an escaped shell variable in a
4738# double_quote_subst'ed string.
4739delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4740
4741# Sed substitution to delay expansion of an escaped single quote.
4742delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4743
4744# Sed substitution to avoid accidental globbing in evaled expressions
4745no_glob_subst='s/\*/\\\*/g'
4746
4747ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4750
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752$as_echo_n "checking how to print strings... " >&6; }
4753# Test print first, because it will be a builtin if present.
4754if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4756 ECHO='print -r --'
4757elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4758 ECHO='printf %s\n'
4759else
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4762 {
4763 eval 'cat <<_LTECHO_EOF
4764$1
4765_LTECHO_EOF'
4766 }
4767 ECHO='func_fallback_echo'
4768fi
4769
4770# func_echo_all arg...
4771# Invoke $ECHO with all args, space-separated.
4772func_echo_all ()
4773{
4774 $ECHO ""
4775}
4776
4777case "$ECHO" in
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779$as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781$as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783$as_echo "cat" >&6; } ;;
4784esac
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801if ${ac_cv_path_SED+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803else
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4807 done
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in sed gsed; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_SED" || continue
4822# Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824case `"$ac_path_SED" --version 2>&1` in
4825*GNU*)
4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4827*)
4828 ac_count=0
4829 $as_echo_n 0123456789 >"conftest.in"
4830 while :
4831 do
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED="$ac_path_SED"
4842 ac_path_SED_max=$ac_count
4843 fi
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4846 done
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848esac
4849
4850 $ac_path_SED_found && break 3
4851 done
4852 done
4853 done
4854IFS=$as_save_IFS
4855 if test -z "$ac_cv_path_SED"; then
4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4857 fi
4858else
4859 ac_cv_path_SED=$SED
4860fi
4861
4862fi
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864$as_echo "$ac_cv_path_SED" >&6; }
4865 SED="$ac_cv_path_SED"
4866 rm -f conftest.sed
4867
4868test -z "$SED" && SED=sed
4869Xsed="$SED -e 1s/^X//"
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4882$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4883if ${ac_cv_path_GREP+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885else
4886 if test -z "$GREP"; then
4887 ac_path_GREP_found=false
4888 # Loop through the user's path and test for each of PROGNAME-LIST
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4891do
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_prog in grep ggrep; do
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4897 as_fn_executable_p "$ac_path_GREP" || continue
4898# Check for GNU ac_path_GREP and select it if it is found.
4899 # Check for GNU $ac_path_GREP
4900case `"$ac_path_GREP" --version 2>&1` in
4901*GNU*)
4902 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4903*)
4904 ac_count=0
4905 $as_echo_n 0123456789 >"conftest.in"
4906 while :
4907 do
4908 cat "conftest.in" "conftest.in" >"conftest.tmp"
4909 mv "conftest.tmp" "conftest.in"
4910 cp "conftest.in" "conftest.nl"
4911 $as_echo 'GREP' >> "conftest.nl"
4912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4914 as_fn_arith $ac_count + 1 && ac_count=$as_val
4915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4916 # Best one so far, save it but keep looking for a better one
4917 ac_cv_path_GREP="$ac_path_GREP"
4918 ac_path_GREP_max=$ac_count
4919 fi
4920 # 10*(2^10) chars as input seems more than enough
4921 test $ac_count -gt 10 && break
4922 done
4923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4924esac
4925
4926 $ac_path_GREP_found && break 3
4927 done
4928 done
4929 done
4930IFS=$as_save_IFS
4931 if test -z "$ac_cv_path_GREP"; then
4932 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4933 fi
4934else
4935 ac_cv_path_GREP=$GREP
4936fi
4937
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4940$as_echo "$ac_cv_path_GREP" >&6; }
4941 GREP="$ac_cv_path_GREP"
4942
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4945$as_echo_n "checking for egrep... " >&6; }
4946if ${ac_cv_path_EGREP+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948else
4949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4950 then ac_cv_path_EGREP="$GREP -E"
4951 else
4952 if test -z "$EGREP"; then
4953 ac_path_EGREP_found=false
4954 # Loop through the user's path and test for each of PROGNAME-LIST
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_prog in egrep; do
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4963 as_fn_executable_p "$ac_path_EGREP" || continue
4964# Check for GNU ac_path_EGREP and select it if it is found.
4965 # Check for GNU $ac_path_EGREP
4966case `"$ac_path_EGREP" --version 2>&1` in
4967*GNU*)
4968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4969*)
4970 ac_count=0
4971 $as_echo_n 0123456789 >"conftest.in"
4972 while :
4973 do
4974 cat "conftest.in" "conftest.in" >"conftest.tmp"
4975 mv "conftest.tmp" "conftest.in"
4976 cp "conftest.in" "conftest.nl"
4977 $as_echo 'EGREP' >> "conftest.nl"
4978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980 as_fn_arith $ac_count + 1 && ac_count=$as_val
4981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4982 # Best one so far, save it but keep looking for a better one
4983 ac_cv_path_EGREP="$ac_path_EGREP"
4984 ac_path_EGREP_max=$ac_count
4985 fi
4986 # 10*(2^10) chars as input seems more than enough
4987 test $ac_count -gt 10 && break
4988 done
4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4990esac
4991
4992 $ac_path_EGREP_found && break 3
4993 done
4994 done
4995 done
4996IFS=$as_save_IFS
4997 if test -z "$ac_cv_path_EGREP"; then
4998 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4999 fi
5000else
5001 ac_cv_path_EGREP=$EGREP
5002fi
5003
5004 fi
5005fi
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5007$as_echo "$ac_cv_path_EGREP" >&6; }
5008 EGREP="$ac_cv_path_EGREP"
5009
5010
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5012$as_echo_n "checking for fgrep... " >&6; }
5013if ${ac_cv_path_FGREP+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015else
5016 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5017 then ac_cv_path_FGREP="$GREP -F"
5018 else
5019 if test -z "$FGREP"; then
5020 ac_path_FGREP_found=false
5021 # Loop through the user's path and test for each of PROGNAME-LIST
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5024do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_prog in fgrep; do
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5030 as_fn_executable_p "$ac_path_FGREP" || continue
5031# Check for GNU ac_path_FGREP and select it if it is found.
5032 # Check for GNU $ac_path_FGREP
5033case `"$ac_path_FGREP" --version 2>&1` in
5034*GNU*)
5035 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5036*)
5037 ac_count=0
5038 $as_echo_n 0123456789 >"conftest.in"
5039 while :
5040 do
5041 cat "conftest.in" "conftest.in" >"conftest.tmp"
5042 mv "conftest.tmp" "conftest.in"
5043 cp "conftest.in" "conftest.nl"
5044 $as_echo 'FGREP' >> "conftest.nl"
5045 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047 as_fn_arith $ac_count + 1 && ac_count=$as_val
5048 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5049 # Best one so far, save it but keep looking for a better one
5050 ac_cv_path_FGREP="$ac_path_FGREP"
5051 ac_path_FGREP_max=$ac_count
5052 fi
5053 # 10*(2^10) chars as input seems more than enough
5054 test $ac_count -gt 10 && break
5055 done
5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057esac
5058
5059 $ac_path_FGREP_found && break 3
5060 done
5061 done
5062 done
5063IFS=$as_save_IFS
5064 if test -z "$ac_cv_path_FGREP"; then
5065 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5066 fi
5067else
5068 ac_cv_path_FGREP=$FGREP
5069fi
5070
5071 fi
5072fi
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5074$as_echo "$ac_cv_path_FGREP" >&6; }
5075 FGREP="$ac_cv_path_FGREP"
5076
5077
5078test -z "$GREP" && GREP=grep
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098# Check whether --with-gnu-ld was given.
5099if test "${with_gnu_ld+set}" = set; then :
5100 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5101else
5102 with_gnu_ld=no
5103fi
5104
5105ac_prog=ld
5106if test "$GCC" = yes; then
5107 # Check if gcc -print-prog-name=ld gives a path.
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5109$as_echo_n "checking for ld used by $CC... " >&6; }
5110 case $host in
5111 *-*-mingw*)
5112 # gcc leaves a trailing carriage return which upsets mingw
5113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5114 *)
5115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5116 esac
5117 case $ac_prog in
5118 # Accept absolute paths.
5119 [\\/]* | ?:[\\/]*)
5120 re_direlt='/[^/][^/]*/\.\./'
5121 # Canonicalize the pathname of ld
5122 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5123 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5124 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5125 done
5126 test -z "$LD" && LD="$ac_prog"
5127 ;;
5128 "")
5129 # If it fails, then pretend we aren't using GCC.
5130 ac_prog=ld
5131 ;;
5132 *)
5133 # If it is relative, then search for the first ld in PATH.
5134 with_gnu_ld=unknown
5135 ;;
5136 esac
5137elif test "$with_gnu_ld" = yes; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5139$as_echo_n "checking for GNU ld... " >&6; }
5140else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5142$as_echo_n "checking for non-GNU ld... " >&6; }
5143fi
5144if ${lt_cv_path_LD+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146else
5147 if test -z "$LD"; then
5148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5149 for ac_dir in $PATH; do
5150 IFS="$lt_save_ifs"
5151 test -z "$ac_dir" && ac_dir=.
5152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5153 lt_cv_path_LD="$ac_dir/$ac_prog"
5154 # Check to see if the program is GNU ld. I'd rather use --version,
5155 # but apparently some variants of GNU ld only accept -v.
5156 # Break only if it was the GNU/non-GNU ld that we prefer.
5157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5158 *GNU* | *'with BFD'*)
5159 test "$with_gnu_ld" != no && break
5160 ;;
5161 *)
5162 test "$with_gnu_ld" != yes && break
5163 ;;
5164 esac
5165 fi
5166 done
5167 IFS="$lt_save_ifs"
5168else
5169 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5170fi
5171fi
5172
5173LD="$lt_cv_path_LD"
5174if test -n "$LD"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5176$as_echo "$LD" >&6; }
5177else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
5180fi
5181test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5183$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5184if ${lt_cv_prog_gnu_ld+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186else
5187 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5188case `$LD -v 2>&1 </dev/null` in
5189*GNU* | *'with BFD'*)
5190 lt_cv_prog_gnu_ld=yes
5191 ;;
5192*)
5193 lt_cv_prog_gnu_ld=no
5194 ;;
5195esac
5196fi
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5198$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5199with_gnu_ld=$lt_cv_prog_gnu_ld
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5210$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5211if ${lt_cv_path_NM+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213else
5214 if test -n "$NM"; then
5215 # Let the user override the test.
5216 lt_cv_path_NM="$NM"
5217else
5218 lt_nm_to_check="${ac_tool_prefix}nm"
5219 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5220 lt_nm_to_check="$lt_nm_to_check nm"
5221 fi
5222 for lt_tmp_nm in $lt_nm_to_check; do
5223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5224 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5225 IFS="$lt_save_ifs"
5226 test -z "$ac_dir" && ac_dir=.
5227 tmp_nm="$ac_dir/$lt_tmp_nm"
5228 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5229 # Check to see if the nm accepts a BSD-compat flag.
5230 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5231 # nm: unknown option "B" ignored
5232 # Tru64's nm complains that /dev/null is an invalid object file
5233 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5234 */dev/null* | *'Invalid file or object type'*)
5235 lt_cv_path_NM="$tmp_nm -B"
5236 break
5237 ;;
5238 *)
5239 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5240 */dev/null*)
5241 lt_cv_path_NM="$tmp_nm -p"
5242 break
5243 ;;
5244 *)
5245 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5246 continue # so that we can try to find one that supports BSD flags
5247 ;;
5248 esac
5249 ;;
5250 esac
5251 fi
5252 done
5253 IFS="$lt_save_ifs"
5254 done
5255 : ${lt_cv_path_NM=no}
5256fi
5257fi
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5259$as_echo "$lt_cv_path_NM" >&6; }
5260if test "$lt_cv_path_NM" != "no"; then
5261 NM="$lt_cv_path_NM"
5262else
5263 # Didn't find any BSD compatible name lister, look for dumpbin.
5264 if test -n "$DUMPBIN"; then :
5265 # Let the user override the test.
5266 else
5267 if test -n "$ac_tool_prefix"; then
5268 for ac_prog in dumpbin "link -dump"
5269 do
5270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5271set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273$as_echo_n "checking for $ac_word... " >&6; }
5274if ${ac_cv_prog_DUMPBIN+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276else
5277 if test -n "$DUMPBIN"; then
5278 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5279else
5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH
5282do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291done
5292 done
5293IFS=$as_save_IFS
5294
5295fi
5296fi
5297DUMPBIN=$ac_cv_prog_DUMPBIN
5298if test -n "$DUMPBIN"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5300$as_echo "$DUMPBIN" >&6; }
5301else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304fi
5305
5306
5307 test -n "$DUMPBIN" && break
5308 done
5309fi
5310if test -z "$DUMPBIN"; then
5311 ac_ct_DUMPBIN=$DUMPBIN
5312 for ac_prog in dumpbin "link -dump"
5313do
5314 # Extract the first word of "$ac_prog", so it can be a program name with args.
5315set dummy $ac_prog; ac_word=$2
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317$as_echo_n "checking for $ac_word... " >&6; }
5318if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320else
5321 if test -n "$ac_ct_DUMPBIN"; then
5322 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5323else
5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335done
5336 done
5337IFS=$as_save_IFS
5338
5339fi
5340fi
5341ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5342if test -n "$ac_ct_DUMPBIN"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5344$as_echo "$ac_ct_DUMPBIN" >&6; }
5345else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347$as_echo "no" >&6; }
5348fi
5349
5350
5351 test -n "$ac_ct_DUMPBIN" && break
5352done
5353
5354 if test "x$ac_ct_DUMPBIN" = x; then
5355 DUMPBIN=":"
5356 else
5357 case $cross_compiling:$ac_tool_warned in
5358yes:)
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361ac_tool_warned=yes ;;
5362esac
5363 DUMPBIN=$ac_ct_DUMPBIN
5364 fi
5365fi
5366
5367 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5368 *COFF*)
5369 DUMPBIN="$DUMPBIN -symbols"
5370 ;;
5371 *)
5372 DUMPBIN=:
5373 ;;
5374 esac
5375 fi
5376
5377 if test "$DUMPBIN" != ":"; then
5378 NM="$DUMPBIN"
5379 fi
5380fi
5381test -z "$NM" && NM=nm
5382
5383
5384
5385
5386
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5389$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5390if ${lt_cv_nm_interface+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392else
5393 lt_cv_nm_interface="BSD nm"
5394 echo "int some_variable = 0;" > conftest.$ac_ext
5395 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5396 (eval "$ac_compile" 2>conftest.err)
5397 cat conftest.err >&5
5398 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5399 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5400 cat conftest.err >&5
5401 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5402 cat conftest.out >&5
5403 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5404 lt_cv_nm_interface="MS dumpbin"
5405 fi
5406 rm -f conftest*
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5409$as_echo "$lt_cv_nm_interface" >&6; }
5410
5411# find the maximum length of command line arguments
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5413$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5414if ${lt_cv_sys_max_cmd_len+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416else
5417 i=0
5418 teststring="ABCD"
5419
5420 case $build_os in
5421 msdosdjgpp*)
5422 # On DJGPP, this test can blow up pretty badly due to problems in libc
5423 # (any single argument exceeding 2000 bytes causes a buffer overrun
5424 # during glob expansion). Even if it were fixed, the result of this
5425 # check would be larger than it should be.
5426 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5427 ;;
5428
5429 gnu*)
5430 # Under GNU Hurd, this test is not required because there is
5431 # no limit to the length of command line arguments.
5432 # Libtool will interpret -1 as no limit whatsoever
5433 lt_cv_sys_max_cmd_len=-1;
5434 ;;
5435
5436 cygwin* | mingw* | cegcc*)
5437 # On Win9x/ME, this test blows up -- it succeeds, but takes
5438 # about 5 minutes as the teststring grows exponentially.
5439 # Worse, since 9x/ME are not pre-emptively multitasking,
5440 # you end up with a "frozen" computer, even though with patience
5441 # the test eventually succeeds (with a max line length of 256k).
5442 # Instead, let's just punt: use the minimum linelength reported by
5443 # all of the supported platforms: 8192 (on NT/2K/XP).
5444 lt_cv_sys_max_cmd_len=8192;
5445 ;;
5446
5447 mint*)
5448 # On MiNT this can take a long time and run out of memory.
5449 lt_cv_sys_max_cmd_len=8192;
5450 ;;
5451
5452 amigaos*)
5453 # On AmigaOS with pdksh, this test takes hours, literally.
5454 # So we just punt and use a minimum line length of 8192.
5455 lt_cv_sys_max_cmd_len=8192;
5456 ;;
5457
5458 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5459 # This has been around since 386BSD, at least. Likely further.
5460 if test -x /sbin/sysctl; then
5461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5462 elif test -x /usr/sbin/sysctl; then
5463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5464 else
5465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5466 fi
5467 # And add a safety zone
5468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5470 ;;
5471
5472 interix*)
5473 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5474 lt_cv_sys_max_cmd_len=196608
5475 ;;
5476
5477 os2*)
5478 # The test takes a long time on OS/2.
5479 lt_cv_sys_max_cmd_len=8192
5480 ;;
5481
5482 osf*)
5483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5485 # nice to cause kernel panics so lets avoid the loop below.
5486 # First set a reasonable default.
5487 lt_cv_sys_max_cmd_len=16384
5488 #
5489 if test -x /sbin/sysconfig; then
5490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5491 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5492 esac
5493 fi
5494 ;;
5495 sco3.2v5*)
5496 lt_cv_sys_max_cmd_len=102400
5497 ;;
5498 sysv5* | sco5v6* | sysv4.2uw2*)
5499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5500 if test -n "$kargmax"; then
5501 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5502 else
5503 lt_cv_sys_max_cmd_len=32768
5504 fi
5505 ;;
5506 *)
5507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5508 if test -n "$lt_cv_sys_max_cmd_len"; then
5509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5511 else
5512 # Make teststring a little bigger before we do anything with it.
5513 # a 1K string should be a reasonable start.
5514 for i in 1 2 3 4 5 6 7 8 ; do
5515 teststring=$teststring$teststring
5516 done
5517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5518 # If test is not a shell built-in, we'll probably end up computing a
5519 # maximum length that is only half of the actual maximum length, but
5520 # we can't tell.
5521 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5522 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5523 test $i != 17 # 1/2 MB should be enough
5524 do
5525 i=`expr $i + 1`
5526 teststring=$teststring$teststring
5527 done
5528 # Only check the string length outside the loop.
5529 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5530 teststring=
5531 # Add a significant safety factor because C++ compilers can tack on
5532 # massive amounts of additional arguments before passing them to the
5533 # linker. It appears as though 1/2 is a usable value.
5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5535 fi
5536 ;;
5537 esac
5538
5539fi
5540
5541if test -n $lt_cv_sys_max_cmd_len ; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5543$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5544else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5546$as_echo "none" >&6; }
5547fi
5548max_cmd_len=$lt_cv_sys_max_cmd_len
5549
5550
5551
5552
5553
5554
5555: ${CP="cp -f"}
5556: ${MV="mv -f"}
5557: ${RM="rm -f"}
5558
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5560$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5561# Try some XSI features
5562xsi_shell=no
5563( _lt_dummy="a/b/c"
5564 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5565 = c,a/b,b/c, \
5566 && eval 'test $(( 1 + 1 )) -eq 2 \
5567 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5568 && xsi_shell=yes
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5570$as_echo "$xsi_shell" >&6; }
5571
5572
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5574$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5575lt_shell_append=no
5576( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5577 >/dev/null 2>&1 \
5578 && lt_shell_append=yes
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5580$as_echo "$lt_shell_append" >&6; }
5581
5582
5583if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5584 lt_unset=unset
5585else
5586 lt_unset=false
5587fi
5588
5589
5590
5591
5592
5593# test EBCDIC or ASCII
5594case `echo X|tr X '\101'` in
5595 A) # ASCII based system
5596 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5597 lt_SP2NL='tr \040 \012'
5598 lt_NL2SP='tr \015\012 \040\040'
5599 ;;
5600 *) # EBCDIC based system
5601 lt_SP2NL='tr \100 \n'
5602 lt_NL2SP='tr \r\n \100\100'
5603 ;;
5604esac
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5615$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5616if ${lt_cv_to_host_file_cmd+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618else
5619 case $host in
5620 *-*-mingw* )
5621 case $build in
5622 *-*-mingw* ) # actually msys
5623 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5624 ;;
5625 *-*-cygwin* )
5626 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5627 ;;
5628 * ) # otherwise, assume *nix
5629 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5630 ;;
5631 esac
5632 ;;
5633 *-*-cygwin* )
5634 case $build in
5635 *-*-mingw* ) # actually msys
5636 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5637 ;;
5638 *-*-cygwin* )
5639 lt_cv_to_host_file_cmd=func_convert_file_noop
5640 ;;
5641 * ) # otherwise, assume *nix
5642 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5643 ;;
5644 esac
5645 ;;
5646 * ) # unhandled hosts (and "normal" native builds)
5647 lt_cv_to_host_file_cmd=func_convert_file_noop
5648 ;;
5649esac
5650
5651fi
5652
5653to_host_file_cmd=$lt_cv_to_host_file_cmd
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5655$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5656
5657
5658
5659
5660
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5662$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5663if ${lt_cv_to_tool_file_cmd+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665else
5666 #assume ordinary cross tools, or native build.
5667lt_cv_to_tool_file_cmd=func_convert_file_noop
5668case $host in
5669 *-*-mingw* )
5670 case $build in
5671 *-*-mingw* ) # actually msys
5672 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5673 ;;
5674 esac
5675 ;;
5676esac
5677
5678fi
5679
5680to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5682$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5683
5684
5685
5686
5687
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5689$as_echo_n "checking for $LD option to reload object files... " >&6; }
5690if ${lt_cv_ld_reload_flag+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692else
5693 lt_cv_ld_reload_flag='-r'
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5696$as_echo "$lt_cv_ld_reload_flag" >&6; }
5697reload_flag=$lt_cv_ld_reload_flag
5698case $reload_flag in
5699"" | " "*) ;;
5700*) reload_flag=" $reload_flag" ;;
5701esac
5702reload_cmds='$LD$reload_flag -o $output$reload_objs'
5703case $host_os in
5704 cygwin* | mingw* | pw32* | cegcc*)
5705 if test "$GCC" != yes; then
5706 reload_cmds=false
5707 fi
5708 ;;
5709 darwin*)
5710 if test "$GCC" = yes; then
5711 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5712 else
5713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5714 fi
5715 ;;
5716esac
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5728set dummy ${ac_tool_prefix}objdump; ac_word=$2
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730$as_echo_n "checking for $ac_word... " >&6; }
5731if ${ac_cv_prog_OBJDUMP+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733else
5734 if test -n "$OBJDUMP"; then
5735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748done
5749 done
5750IFS=$as_save_IFS
5751
5752fi
5753fi
5754OBJDUMP=$ac_cv_prog_OBJDUMP
5755if test -n "$OBJDUMP"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5757$as_echo "$OBJDUMP" >&6; }
5758else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760$as_echo "no" >&6; }
5761fi
5762
5763
5764fi
5765if test -z "$ac_cv_prog_OBJDUMP"; then
5766 ac_ct_OBJDUMP=$OBJDUMP
5767 # Extract the first word of "objdump", so it can be a program name with args.
5768set dummy objdump; ac_word=$2
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770$as_echo_n "checking for $ac_word... " >&6; }
5771if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773else
5774 if test -n "$ac_ct_OBJDUMP"; then
5775 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788done
5789 done
5790IFS=$as_save_IFS
5791
5792fi
5793fi
5794ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5795if test -n "$ac_ct_OBJDUMP"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5797$as_echo "$ac_ct_OBJDUMP" >&6; }
5798else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801fi
5802
5803 if test "x$ac_ct_OBJDUMP" = x; then
5804 OBJDUMP="false"
5805 else
5806 case $cross_compiling:$ac_tool_warned in
5807yes:)
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810ac_tool_warned=yes ;;
5811esac
5812 OBJDUMP=$ac_ct_OBJDUMP
5813 fi
5814else
5815 OBJDUMP="$ac_cv_prog_OBJDUMP"
5816fi
5817
5818test -z "$OBJDUMP" && OBJDUMP=objdump
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5829$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5830if ${lt_cv_deplibs_check_method+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832else
5833 lt_cv_file_magic_cmd='$MAGIC_CMD'
5834lt_cv_file_magic_test_file=
5835lt_cv_deplibs_check_method='unknown'
5836# Need to set the preceding variable on all platforms that support
5837# interlibrary dependencies.
5838# 'none' -- dependencies not supported.
5839# `unknown' -- same as none, but documents that we really don't know.
5840# 'pass_all' -- all dependencies passed with no checks.
5841# 'test_compile' -- check by making test program.
5842# 'file_magic [[regex]]' -- check by looking for files in library path
5843# which responds to the $file_magic_cmd with a given extended regex.
5844# If you have `file' or equivalent on your system and you're not sure
5845# whether `pass_all' will *always* work, you probably want this one.
5846
5847case $host_os in
5848aix[4-9]*)
5849 lt_cv_deplibs_check_method=pass_all
5850 ;;
5851
5852beos*)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855
5856bsdi[45]*)
5857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5858 lt_cv_file_magic_cmd='/usr/bin/file -L'
5859 lt_cv_file_magic_test_file=/shlib/libc.so
5860 ;;
5861
5862cygwin*)
5863 # func_win32_libid is a shell function defined in ltmain.sh
5864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5865 lt_cv_file_magic_cmd='func_win32_libid'
5866 ;;
5867
5868mingw* | pw32*)
5869 # Base MSYS/MinGW do not provide the 'file' command needed by
5870 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5871 # unless we find 'file', for example because we are cross-compiling.
5872 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5873 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5874 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5875 lt_cv_file_magic_cmd='func_win32_libid'
5876 else
5877 # Keep this pattern in sync with the one in func_win32_libid.
5878 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5879 lt_cv_file_magic_cmd='$OBJDUMP -f'
5880 fi
5881 ;;
5882
5883cegcc*)
5884 # use the weaker test based on 'objdump'. See mingw*.
5885 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5886 lt_cv_file_magic_cmd='$OBJDUMP -f'
5887 ;;
5888
5889darwin* | rhapsody*)
5890 lt_cv_deplibs_check_method=pass_all
5891 ;;
5892
5893freebsd* | dragonfly*)
5894 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5895 case $host_cpu in
5896 i*86 )
5897 # Not sure whether the presence of OpenBSD here was a mistake.
5898 # Let's accept both of them until this is cleared up.
5899 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5900 lt_cv_file_magic_cmd=/usr/bin/file
5901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5902 ;;
5903 esac
5904 else
5905 lt_cv_deplibs_check_method=pass_all
5906 fi
5907 ;;
5908
5909gnu*)
5910 lt_cv_deplibs_check_method=pass_all
5911 ;;
5912
5913haiku*)
5914 lt_cv_deplibs_check_method=pass_all
5915 ;;
5916
5917hpux10.20* | hpux11*)
5918 lt_cv_file_magic_cmd=/usr/bin/file
5919 case $host_cpu in
5920 ia64*)
5921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5922 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5923 ;;
5924 hppa*64*)
5925 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]'
5926 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5927 ;;
5928 *)
5929 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5930 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5931 ;;
5932 esac
5933 ;;
5934
5935interix[3-9]*)
5936 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5938 ;;
5939
5940irix5* | irix6* | nonstopux*)
5941 case $LD in
5942 *-32|*"-32 ") libmagic=32-bit;;
5943 *-n32|*"-n32 ") libmagic=N32;;
5944 *-64|*"-64 ") libmagic=64-bit;;
5945 *) libmagic=never-match;;
5946 esac
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
5949
5950# This must be glibc/ELF.
5951linux* | k*bsd*-gnu | kopensolaris*-gnu)
5952 lt_cv_deplibs_check_method=pass_all
5953 ;;
5954
5955netbsd*)
5956 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5958 else
5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5960 fi
5961 ;;
5962
5963newos6*)
5964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5965 lt_cv_file_magic_cmd=/usr/bin/file
5966 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5967 ;;
5968
5969*nto* | *qnx*)
5970 lt_cv_deplibs_check_method=pass_all
5971 ;;
5972
5973openbsd*)
5974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5976 else
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5978 fi
5979 ;;
5980
5981osf3* | osf4* | osf5*)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984
5985rdos*)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
5988
5989solaris*)
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992
5993sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996
5997sysv4 | sysv4.3*)
5998 case $host_vendor in
5999 motorola)
6000 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]'
6001 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6002 ;;
6003 ncr)
6004 lt_cv_deplibs_check_method=pass_all
6005 ;;
6006 sequent)
6007 lt_cv_file_magic_cmd='/bin/file'
6008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6009 ;;
6010 sni)
6011 lt_cv_file_magic_cmd='/bin/file'
6012 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6013 lt_cv_file_magic_test_file=/lib/libc.so
6014 ;;
6015 siemens)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018 pc)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021 esac
6022 ;;
6023
6024tpf*)
6025 lt_cv_deplibs_check_method=pass_all
6026 ;;
6027esac
6028
6029fi
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6031$as_echo "$lt_cv_deplibs_check_method" >&6; }
6032
6033file_magic_glob=
6034want_nocaseglob=no
6035if test "$build" = "$host"; then
6036 case $host_os in
6037 mingw* | pw32*)
6038 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6039 want_nocaseglob=yes
6040 else
6041 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6042 fi
6043 ;;
6044 esac
6045fi
6046
6047file_magic_cmd=$lt_cv_file_magic_cmd
6048deplibs_check_method=$lt_cv_deplibs_check_method
6049test -z "$deplibs_check_method" && deplibs_check_method=unknown
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6074set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076$as_echo_n "checking for $ac_word... " >&6; }
6077if ${ac_cv_prog_DLLTOOL+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079else
6080 if test -n "$DLLTOOL"; then
6081 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094done
6095 done
6096IFS=$as_save_IFS
6097
6098fi
6099fi
6100DLLTOOL=$ac_cv_prog_DLLTOOL
6101if test -n "$DLLTOOL"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6103$as_echo "$DLLTOOL" >&6; }
6104else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106$as_echo "no" >&6; }
6107fi
6108
6109
6110fi
6111if test -z "$ac_cv_prog_DLLTOOL"; then
6112 ac_ct_DLLTOOL=$DLLTOOL
6113 # Extract the first word of "dlltool", so it can be a program name with args.
6114set dummy dlltool; ac_word=$2
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116$as_echo_n "checking for $ac_word... " >&6; }
6117if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119else
6120 if test -n "$ac_ct_DLLTOOL"; then
6121 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134done
6135 done
6136IFS=$as_save_IFS
6137
6138fi
6139fi
6140ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6141if test -n "$ac_ct_DLLTOOL"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6143$as_echo "$ac_ct_DLLTOOL" >&6; }
6144else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146$as_echo "no" >&6; }
6147fi
6148
6149 if test "x$ac_ct_DLLTOOL" = x; then
6150 DLLTOOL="false"
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153yes:)
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156ac_tool_warned=yes ;;
6157esac
6158 DLLTOOL=$ac_ct_DLLTOOL
6159 fi
6160else
6161 DLLTOOL="$ac_cv_prog_DLLTOOL"
6162fi
6163
6164test -z "$DLLTOOL" && DLLTOOL=dlltool
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6176$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6177if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179else
6180 lt_cv_sharedlib_from_linklib_cmd='unknown'
6181
6182case $host_os in
6183cygwin* | mingw* | pw32* | cegcc*)
6184 # two different shell functions defined in ltmain.sh
6185 # decide which to use based on capabilities of $DLLTOOL
6186 case `$DLLTOOL --help 2>&1` in
6187 *--identify-strict*)
6188 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6189 ;;
6190 *)
6191 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6192 ;;
6193 esac
6194 ;;
6195*)
6196 # fallback: assume linklib IS sharedlib
6197 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6198 ;;
6199esac
6200
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6203$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6204sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6205test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6206
6207
6208
6209
6210
6211
6212
6213
6214if test -n "$ac_tool_prefix"; then
6215 for ac_prog in ar
6216 do
6217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220$as_echo_n "checking for $ac_word... " >&6; }
6221if ${ac_cv_prog_AR+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223else
6224 if test -n "$AR"; then
6225 ac_cv_prog_AR="$AR" # Let the user override the test.
6226else
6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6237 fi
6238done
6239 done
6240IFS=$as_save_IFS
6241
6242fi
6243fi
6244AR=$ac_cv_prog_AR
6245if test -n "$AR"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6247$as_echo "$AR" >&6; }
6248else
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250$as_echo "no" >&6; }
6251fi
6252
6253
6254 test -n "$AR" && break
6255 done
6256fi
6257if test -z "$AR"; then
6258 ac_ct_AR=$AR
6259 for ac_prog in ar
6260do
6261 # Extract the first word of "$ac_prog", so it can be a program name with args.
6262set dummy $ac_prog; ac_word=$2
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264$as_echo_n "checking for $ac_word... " >&6; }
6265if ${ac_cv_prog_ac_ct_AR+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267else
6268 if test -n "$ac_ct_AR"; then
6269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6270else
6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278 ac_cv_prog_ac_ct_AR="$ac_prog"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282done
6283 done
6284IFS=$as_save_IFS
6285
6286fi
6287fi
6288ac_ct_AR=$ac_cv_prog_ac_ct_AR
6289if test -n "$ac_ct_AR"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6291$as_echo "$ac_ct_AR" >&6; }
6292else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294$as_echo "no" >&6; }
6295fi
6296
6297
6298 test -n "$ac_ct_AR" && break
6299done
6300
6301 if test "x$ac_ct_AR" = x; then
6302 AR="false"
6303 else
6304 case $cross_compiling:$ac_tool_warned in
6305yes:)
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6308ac_tool_warned=yes ;;
6309esac
6310 AR=$ac_ct_AR
6311 fi
6312fi
6313
6314: ${AR=ar}
6315: ${AR_FLAGS=cru}
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6328$as_echo_n "checking for archiver @FILE support... " >&6; }
6329if ${lt_cv_ar_at_file+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331else
6332 lt_cv_ar_at_file=no
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339
6340 ;
6341 return 0;
6342}
6343_ACEOF
6344if ac_fn_c_try_compile "$LINENO"; then :
6345 echo conftest.$ac_objext > conftest.lst
6346 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6348 (eval $lt_ar_try) 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }
6352 if test "$ac_status" -eq 0; then
6353 # Ensure the archiver fails upon bogus file names.
6354 rm -f conftest.$ac_objext libconftest.a
6355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6356 (eval $lt_ar_try) 2>&5
6357 ac_status=$?
6358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6359 test $ac_status = 0; }
6360 if test "$ac_status" -ne 0; then
6361 lt_cv_ar_at_file=@
6362 fi
6363 fi
6364 rm -f conftest.* libconftest.a
6365
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6371$as_echo "$lt_cv_ar_at_file" >&6; }
6372
6373if test "x$lt_cv_ar_at_file" = xno; then
6374 archiver_list_spec=
6375else
6376 archiver_list_spec=$lt_cv_ar_at_file
6377fi
6378
6379
6380
6381
6382
6383
6384
6385if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6387set dummy ${ac_tool_prefix}strip; ac_word=$2
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
6390if ${ac_cv_prog_STRIP+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392else
6393 if test -n "$STRIP"; then
6394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6395else
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408 done
6409IFS=$as_save_IFS
6410
6411fi
6412fi
6413STRIP=$ac_cv_prog_STRIP
6414if test -n "$STRIP"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6416$as_echo "$STRIP" >&6; }
6417else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419$as_echo "no" >&6; }
6420fi
6421
6422
6423fi
6424if test -z "$ac_cv_prog_STRIP"; then
6425 ac_ct_STRIP=$STRIP
6426 # Extract the first word of "strip", so it can be a program name with args.
6427set dummy strip; ac_word=$2
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429$as_echo_n "checking for $ac_word... " >&6; }
6430if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432else
6433 if test -n "$ac_ct_STRIP"; then
6434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6435else
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443 ac_cv_prog_ac_ct_STRIP="strip"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447done
6448 done
6449IFS=$as_save_IFS
6450
6451fi
6452fi
6453ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6454if test -n "$ac_ct_STRIP"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6456$as_echo "$ac_ct_STRIP" >&6; }
6457else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459$as_echo "no" >&6; }
6460fi
6461
6462 if test "x$ac_ct_STRIP" = x; then
6463 STRIP=":"
6464 else
6465 case $cross_compiling:$ac_tool_warned in
6466yes:)
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469ac_tool_warned=yes ;;
6470esac
6471 STRIP=$ac_ct_STRIP
6472 fi
6473else
6474 STRIP="$ac_cv_prog_STRIP"
6475fi
6476
6477test -z "$STRIP" && STRIP=:
6478
6479
6480
6481
6482
6483
6484if test -n "$ac_tool_prefix"; then
6485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6486set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488$as_echo_n "checking for $ac_word... " >&6; }
6489if ${ac_cv_prog_RANLIB+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491else
6492 if test -n "$RANLIB"; then
6493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506done
6507 done
6508IFS=$as_save_IFS
6509
6510fi
6511fi
6512RANLIB=$ac_cv_prog_RANLIB
6513if test -n "$RANLIB"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6515$as_echo "$RANLIB" >&6; }
6516else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518$as_echo "no" >&6; }
6519fi
6520
6521
6522fi
6523if test -z "$ac_cv_prog_RANLIB"; then
6524 ac_ct_RANLIB=$RANLIB
6525 # Extract the first word of "ranlib", so it can be a program name with args.
6526set dummy ranlib; ac_word=$2
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528$as_echo_n "checking for $ac_word... " >&6; }
6529if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531else
6532 if test -n "$ac_ct_RANLIB"; then
6533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_ac_ct_RANLIB="ranlib"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546done
6547 done
6548IFS=$as_save_IFS
6549
6550fi
6551fi
6552ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6553if test -n "$ac_ct_RANLIB"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6555$as_echo "$ac_ct_RANLIB" >&6; }
6556else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558$as_echo "no" >&6; }
6559fi
6560
6561 if test "x$ac_ct_RANLIB" = x; then
6562 RANLIB=":"
6563 else
6564 case $cross_compiling:$ac_tool_warned in
6565yes:)
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568ac_tool_warned=yes ;;
6569esac
6570 RANLIB=$ac_ct_RANLIB
6571 fi
6572else
6573 RANLIB="$ac_cv_prog_RANLIB"
6574fi
6575
6576test -z "$RANLIB" && RANLIB=:
6577
6578
6579
6580
6581
6582
6583# Determine commands to create old-style static archives.
6584old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6585old_postinstall_cmds='chmod 644 $oldlib'
6586old_postuninstall_cmds=
6587
6588if test -n "$RANLIB"; then
6589 case $host_os in
6590 openbsd*)
6591 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6592 ;;
6593 *)
6594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6595 ;;
6596 esac
6597 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6598fi
6599
6600case $host_os in
6601 darwin*)
6602 lock_old_archive_extraction=yes ;;
6603 *)
6604 lock_old_archive_extraction=no ;;
6605esac
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645# If no C compiler was specified, use CC.
6646LTCC=${LTCC-"$CC"}
6647
6648# If no C compiler flags were specified, use CFLAGS.
6649LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6650
6651# Allow CC to be a program name with arguments.
6652compiler=$CC
6653
6654
6655# Check for command to grab the raw symbol name followed by C symbol from nm.
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6657$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6658if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660else
6661
6662# These are sane defaults that work on at least a few old systems.
6663# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6664
6665# Character class describing NM global symbol codes.
6666symcode='[BCDEGRST]'
6667
6668# Regexp to match symbols that can be accessed directly from C.
6669sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6670
6671# Define system-specific variables.
6672case $host_os in
6673aix*)
6674 symcode='[BCDT]'
6675 ;;
6676cygwin* | mingw* | pw32* | cegcc*)
6677 symcode='[ABCDGISTW]'
6678 ;;
6679hpux*)
6680 if test "$host_cpu" = ia64; then
6681 symcode='[ABCDEGRST]'
6682 fi
6683 ;;
6684irix* | nonstopux*)
6685 symcode='[BCDEGRST]'
6686 ;;
6687osf*)
6688 symcode='[BCDEGQRST]'
6689 ;;
6690solaris*)
6691 symcode='[BDRT]'
6692 ;;
6693sco3.2v5*)
6694 symcode='[DT]'
6695 ;;
6696sysv4.2uw2*)
6697 symcode='[DT]'
6698 ;;
6699sysv5* | sco5v6* | unixware* | OpenUNIX*)
6700 symcode='[ABDT]'
6701 ;;
6702sysv4)
6703 symcode='[DFNSTU]'
6704 ;;
6705esac
6706
6707# If we're using GNU nm, then use its standard symbol codes.
6708case `$NM -V 2>&1` in
6709*GNU* | *'with BFD'*)
6710 symcode='[ABCDGIRSTW]' ;;
6711esac
6712
6713# Transform an extracted symbol line into a proper C declaration.
6714# Some systems (esp. on ia64) link data and code symbols differently,
6715# so use this general approach.
6716lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6717
6718# Transform an extracted symbol line into symbol name and symbol address
6719lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6720lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6721
6722# Handle CRLF in mingw tool chain
6723opt_cr=
6724case $build_os in
6725mingw*)
6726 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6727 ;;
6728esac
6729
6730# Try without a prefix underscore, then with it.
6731for ac_symprfx in "" "_"; do
6732
6733 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6734 symxfrm="\\1 $ac_symprfx\\2 \\2"
6735
6736 # Write the raw and C identifiers.
6737 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6738 # Fake it for dumpbin and say T for any non-static function
6739 # and D for any global variable.
6740 # Also find C++ and __fastcall symbols from MSVC++,
6741 # which start with @ or ?.
6742 lt_cv_sys_global_symbol_pipe="$AWK '"\
6743" {last_section=section; section=\$ 3};"\
6744" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6745" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6746" \$ 0!~/External *\|/{next};"\
6747" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6748" {if(hide[section]) next};"\
6749" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6750" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6751" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6752" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6753" ' prfx=^$ac_symprfx"
6754 else
6755 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6756 fi
6757 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6758
6759 # Check to see that the pipe works correctly.
6760 pipe_works=no
6761
6762 rm -f conftest*
6763 cat > conftest.$ac_ext <<_LT_EOF
6764#ifdef __cplusplus
6765extern "C" {
6766#endif
6767char nm_test_var;
6768void nm_test_func(void);
6769void nm_test_func(void){}
6770#ifdef __cplusplus
6771}
6772#endif
6773int main(){nm_test_var='a';nm_test_func();return(0);}
6774_LT_EOF
6775
6776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777 (eval $ac_compile) 2>&5
6778 ac_status=$?
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; }; then
6781 # Now try to grab the symbols.
6782 nlist=conftest.nm
6783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6784 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6785 ac_status=$?
6786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787 test $ac_status = 0; } && test -s "$nlist"; then
6788 # Try sorting and uniquifying the output.
6789 if sort "$nlist" | uniq > "$nlist"T; then
6790 mv -f "$nlist"T "$nlist"
6791 else
6792 rm -f "$nlist"T
6793 fi
6794
6795 # Make sure that we snagged all the symbols we need.
6796 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6797 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6798 cat <<_LT_EOF > conftest.$ac_ext
6799/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6800#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6801/* DATA imports from DLLs on WIN32 con't be const, because runtime
6802 relocations are performed -- see ld's documentation on pseudo-relocs. */
6803# define LT_DLSYM_CONST
6804#elif defined(__osf__)
6805/* This system does not cope well with relocations in const data. */
6806# define LT_DLSYM_CONST
6807#else
6808# define LT_DLSYM_CONST const
6809#endif
6810
6811#ifdef __cplusplus
6812extern "C" {
6813#endif
6814
6815_LT_EOF
6816 # Now generate the symbol file.
6817 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6818
6819 cat <<_LT_EOF >> conftest.$ac_ext
6820
6821/* The mapping between symbol names and symbols. */
6822LT_DLSYM_CONST struct {
6823 const char *name;
6824 void *address;
6825}
6826lt__PROGRAM__LTX_preloaded_symbols[] =
6827{
6828 { "@PROGRAM@", (void *) 0 },
6829_LT_EOF
6830 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6831 cat <<\_LT_EOF >> conftest.$ac_ext
6832 {0, (void *) 0}
6833};
6834
6835/* This works around a problem in FreeBSD linker */
6836#ifdef FREEBSD_WORKAROUND
6837static const void *lt_preloaded_setup() {
6838 return lt__PROGRAM__LTX_preloaded_symbols;
6839}
6840#endif
6841
6842#ifdef __cplusplus
6843}
6844#endif
6845_LT_EOF
6846 # Now try linking the two files.
6847 mv conftest.$ac_objext conftstm.$ac_objext
6848 lt_globsym_save_LIBS=$LIBS
6849 lt_globsym_save_CFLAGS=$CFLAGS
6850 LIBS="conftstm.$ac_objext"
6851 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6853 (eval $ac_link) 2>&5
6854 ac_status=$?
6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6857 pipe_works=yes
6858 fi
6859 LIBS=$lt_globsym_save_LIBS
6860 CFLAGS=$lt_globsym_save_CFLAGS
6861 else
6862 echo "cannot find nm_test_func in $nlist" >&5
6863 fi
6864 else
6865 echo "cannot find nm_test_var in $nlist" >&5
6866 fi
6867 else
6868 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6869 fi
6870 else
6871 echo "$progname: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6873 fi
6874 rm -rf conftest* conftst*
6875
6876 # Do not use the global_symbol_pipe unless it works.
6877 if test "$pipe_works" = yes; then
6878 break
6879 else
6880 lt_cv_sys_global_symbol_pipe=
6881 fi
6882done
6883
6884fi
6885
6886if test -z "$lt_cv_sys_global_symbol_pipe"; then
6887 lt_cv_sys_global_symbol_to_cdecl=
6888fi
6889if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6891$as_echo "failed" >&6; }
6892else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6894$as_echo "ok" >&6; }
6895fi
6896
6897# Response file support.
6898if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6899 nm_file_list_spec='@'
6900elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6901 nm_file_list_spec='@'
6902fi
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6931$as_echo_n "checking for sysroot... " >&6; }
6932
6933# Check whether --with-sysroot was given.
6934if test "${with_sysroot+set}" = set; then :
6935 withval=$with_sysroot;
6936else
6937 with_sysroot=no
6938fi
6939
6940
6941lt_sysroot=
6942case ${with_sysroot} in #(
6943 yes)
6944 if test "$GCC" = yes; then
6945 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6946 fi
6947 ;; #(
6948 /*)
6949 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6950 ;; #(
6951 no|'')
6952 ;; #(
6953 *)
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6955$as_echo "${with_sysroot}" >&6; }
6956 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6957 ;;
6958esac
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6961$as_echo "${lt_sysroot:-no}" >&6; }
6962
6963
6964
6965
6966
6967# Check whether --enable-libtool-lock was given.
6968if test "${enable_libtool_lock+set}" = set; then :
6969 enableval=$enable_libtool_lock;
6970fi
6971
6972test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6973
6974# Some flags need to be propagated to the compiler or linker for good
6975# libtool support.
6976case $host in
6977ia64-*-hpux*)
6978 # Find out which ABI we are using.
6979 echo 'int i;' > conftest.$ac_ext
6980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6981 (eval $ac_compile) 2>&5
6982 ac_status=$?
6983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984 test $ac_status = 0; }; then
6985 case `/usr/bin/file conftest.$ac_objext` in
6986 *ELF-32*)
6987 HPUX_IA64_MODE="32"
6988 ;;
6989 *ELF-64*)
6990 HPUX_IA64_MODE="64"
6991 ;;
6992 esac
6993 fi
6994 rm -rf conftest*
6995 ;;
6996*-*-irix6*)
6997 # Find out which ABI we are using.
6998 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000 (eval $ac_compile) 2>&5
7001 ac_status=$?
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; }; then
7004 if test "$lt_cv_prog_gnu_ld" = yes; then
7005 case `/usr/bin/file conftest.$ac_objext` in
7006 *32-bit*)
7007 LD="${LD-ld} -melf32bsmip"
7008 ;;
7009 *N32*)
7010 LD="${LD-ld} -melf32bmipn32"
7011 ;;
7012 *64-bit*)
7013 LD="${LD-ld} -melf64bmip"
7014 ;;
7015 esac
7016 else
7017 case `/usr/bin/file conftest.$ac_objext` in
7018 *32-bit*)
7019 LD="${LD-ld} -32"
7020 ;;
7021 *N32*)
7022 LD="${LD-ld} -n32"
7023 ;;
7024 *64-bit*)
7025 LD="${LD-ld} -64"
7026 ;;
7027 esac
7028 fi
7029 fi
7030 rm -rf conftest*
7031 ;;
7032
7033x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7034s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7035 # Find out which ABI we are using.
7036 echo 'int i;' > conftest.$ac_ext
7037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7038 (eval $ac_compile) 2>&5
7039 ac_status=$?
7040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 test $ac_status = 0; }; then
7042 case `/usr/bin/file conftest.o` in
7043 *32-bit*)
7044 case $host in
7045 x86_64-*kfreebsd*-gnu)
7046 LD="${LD-ld} -m elf_i386_fbsd"
7047 ;;
7048 x86_64-*linux*)
7049 LD="${LD-ld} -m elf_i386"
7050 ;;
7051 powerpc64le-*linux*)
7052 LD="${LD-ld} -m elf32lppclinux"
7053 ;;
7054 powerpc64-*linux*)
7055 LD="${LD-ld} -m elf32ppclinux"
7056 ;;
7057 s390x-*linux*)
7058 LD="${LD-ld} -m elf_s390"
7059 ;;
7060 sparc64-*linux*)
7061 LD="${LD-ld} -m elf32_sparc"
7062 ;;
7063 esac
7064 ;;
7065 *64-bit*)
7066 case $host in
7067 x86_64-*kfreebsd*-gnu)
7068 LD="${LD-ld} -m elf_x86_64_fbsd"
7069 ;;
7070 x86_64-*linux*)
7071 LD="${LD-ld} -m elf_x86_64"
7072 ;;
7073 powerpcle-*linux*)
7074 LD="${LD-ld} -m elf64lppc"
7075 ;;
7076 powerpc-*linux*)
7077 LD="${LD-ld} -m elf64ppc"
7078 ;;
7079 s390*-*linux*|s390*-*tpf*)
7080 LD="${LD-ld} -m elf64_s390"
7081 ;;
7082 sparc*-*linux*)
7083 LD="${LD-ld} -m elf64_sparc"
7084 ;;
7085 esac
7086 ;;
7087 esac
7088 fi
7089 rm -rf conftest*
7090 ;;
7091
7092*-*-sco3.2v5*)
7093 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7094 SAVE_CFLAGS="$CFLAGS"
7095 CFLAGS="$CFLAGS -belf"
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7097$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7098if ${lt_cv_cc_needs_belf+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100else
7101 ac_ext=c
7102ac_cpp='$CPP $CPPFLAGS'
7103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105ac_compiler_gnu=$ac_cv_c_compiler_gnu
7106
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h. */
7109
7110int
7111main ()
7112{
7113
7114 ;
7115 return 0;
7116}
7117_ACEOF
7118if ac_fn_c_try_link "$LINENO"; then :
7119 lt_cv_cc_needs_belf=yes
7120else
7121 lt_cv_cc_needs_belf=no
7122fi
7123rm -f core conftest.err conftest.$ac_objext \
7124 conftest$ac_exeext conftest.$ac_ext
7125 ac_ext=c
7126ac_cpp='$CPP $CPPFLAGS'
7127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7133$as_echo "$lt_cv_cc_needs_belf" >&6; }
7134 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7135 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7136 CFLAGS="$SAVE_CFLAGS"
7137 fi
7138 ;;
7139*-*solaris*)
7140 # Find out which ABI we are using.
7141 echo 'int i;' > conftest.$ac_ext
7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7143 (eval $ac_compile) 2>&5
7144 ac_status=$?
7145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7146 test $ac_status = 0; }; then
7147 case `/usr/bin/file conftest.o` in
7148 *64-bit*)
7149 case $lt_cv_prog_gnu_ld in
7150 yes*)
7151 case $host in
7152 i?86-*-solaris*)
7153 LD="${LD-ld} -m elf_x86_64"
7154 ;;
7155 sparc*-*-solaris*)
7156 LD="${LD-ld} -m elf64_sparc"
7157 ;;
7158 esac
7159 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7160 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7161 LD="${LD-ld}_sol2"
7162 fi
7163 ;;
7164 *)
7165 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7166 LD="${LD-ld} -64"
7167 fi
7168 ;;
7169 esac
7170 ;;
7171 esac
7172 fi
7173 rm -rf conftest*
7174 ;;
7175esac
7176
7177need_locks="$enable_libtool_lock"
7178
7179if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7181set dummy ${ac_tool_prefix}mt; ac_word=$2
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183$as_echo_n "checking for $ac_word... " >&6; }
7184if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186else
7187 if test -n "$MANIFEST_TOOL"; then
7188 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7189else
7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201done
7202 done
7203IFS=$as_save_IFS
7204
7205fi
7206fi
7207MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7208if test -n "$MANIFEST_TOOL"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7210$as_echo "$MANIFEST_TOOL" >&6; }
7211else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213$as_echo "no" >&6; }
7214fi
7215
7216
7217fi
7218if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7219 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7220 # Extract the first word of "mt", so it can be a program name with args.
7221set dummy mt; ac_word=$2
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223$as_echo_n "checking for $ac_word... " >&6; }
7224if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226else
7227 if test -n "$ac_ct_MANIFEST_TOOL"; then
7228 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241done
7242 done
7243IFS=$as_save_IFS
7244
7245fi
7246fi
7247ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7248if test -n "$ac_ct_MANIFEST_TOOL"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7250$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7251else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254fi
7255
7256 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7257 MANIFEST_TOOL=":"
7258 else
7259 case $cross_compiling:$ac_tool_warned in
7260yes:)
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263ac_tool_warned=yes ;;
7264esac
7265 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7266 fi
7267else
7268 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7269fi
7270
7271test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7273$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7274if ${lt_cv_path_mainfest_tool+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276else
7277 lt_cv_path_mainfest_tool=no
7278 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7279 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7280 cat conftest.err >&5
7281 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7282 lt_cv_path_mainfest_tool=yes
7283 fi
7284 rm -f conftest*
7285fi
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7287$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7288if test "x$lt_cv_path_mainfest_tool" != xyes; then
7289 MANIFEST_TOOL=:
7290fi
7291
7292
7293
7294
7295
7296
7297 case $host_os in
7298 rhapsody* | darwin*)
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7301set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if ${ac_cv_prog_DSYMUTIL+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306else
7307 if test -n "$DSYMUTIL"; then
7308 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322 done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327DSYMUTIL=$ac_cv_prog_DSYMUTIL
7328if test -n "$DSYMUTIL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7330$as_echo "$DSYMUTIL" >&6; }
7331else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336
7337fi
7338if test -z "$ac_cv_prog_DSYMUTIL"; then
7339 ac_ct_DSYMUTIL=$DSYMUTIL
7340 # Extract the first word of "dsymutil", so it can be a program name with args.
7341set dummy dsymutil; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346else
7347 if test -n "$ac_ct_DSYMUTIL"; then
7348 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362 done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7368if test -n "$ac_ct_DSYMUTIL"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7370$as_echo "$ac_ct_DSYMUTIL" >&6; }
7371else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376 if test "x$ac_ct_DSYMUTIL" = x; then
7377 DSYMUTIL=":"
7378 else
7379 case $cross_compiling:$ac_tool_warned in
7380yes:)
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383ac_tool_warned=yes ;;
7384esac
7385 DSYMUTIL=$ac_ct_DSYMUTIL
7386 fi
7387else
7388 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7389fi
7390
7391 if test -n "$ac_tool_prefix"; then
7392 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7393set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395$as_echo_n "checking for $ac_word... " >&6; }
7396if ${ac_cv_prog_NMEDIT+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398else
7399 if test -n "$NMEDIT"; then
7400 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7401else
7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413done
7414 done
7415IFS=$as_save_IFS
7416
7417fi
7418fi
7419NMEDIT=$ac_cv_prog_NMEDIT
7420if test -n "$NMEDIT"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7422$as_echo "$NMEDIT" >&6; }
7423else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425$as_echo "no" >&6; }
7426fi
7427
7428
7429fi
7430if test -z "$ac_cv_prog_NMEDIT"; then
7431 ac_ct_NMEDIT=$NMEDIT
7432 # Extract the first word of "nmedit", so it can be a program name with args.
7433set dummy nmedit; ac_word=$2
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435$as_echo_n "checking for $ac_word... " >&6; }
7436if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438else
7439 if test -n "$ac_ct_NMEDIT"; then
7440 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7441else
7442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454 done
7455IFS=$as_save_IFS
7456
7457fi
7458fi
7459ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7460if test -n "$ac_ct_NMEDIT"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7462$as_echo "$ac_ct_NMEDIT" >&6; }
7463else
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465$as_echo "no" >&6; }
7466fi
7467
7468 if test "x$ac_ct_NMEDIT" = x; then
7469 NMEDIT=":"
7470 else
7471 case $cross_compiling:$ac_tool_warned in
7472yes:)
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475ac_tool_warned=yes ;;
7476esac
7477 NMEDIT=$ac_ct_NMEDIT
7478 fi
7479else
7480 NMEDIT="$ac_cv_prog_NMEDIT"
7481fi
7482
7483 if test -n "$ac_tool_prefix"; then
7484 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7485set dummy ${ac_tool_prefix}lipo; ac_word=$2
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487$as_echo_n "checking for $ac_word... " >&6; }
7488if ${ac_cv_prog_LIPO+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490else
7491 if test -n "$LIPO"; then
7492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506 done
7507IFS=$as_save_IFS
7508
7509fi
7510fi
7511LIPO=$ac_cv_prog_LIPO
7512if test -n "$LIPO"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7514$as_echo "$LIPO" >&6; }
7515else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517$as_echo "no" >&6; }
7518fi
7519
7520
7521fi
7522if test -z "$ac_cv_prog_LIPO"; then
7523 ac_ct_LIPO=$LIPO
7524 # Extract the first word of "lipo", so it can be a program name with args.
7525set dummy lipo; ac_word=$2
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527$as_echo_n "checking for $ac_word... " >&6; }
7528if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530else
7531 if test -n "$ac_ct_LIPO"; then
7532 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_ac_ct_LIPO="lipo"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546 done
7547IFS=$as_save_IFS
7548
7549fi
7550fi
7551ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7552if test -n "$ac_ct_LIPO"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7554$as_echo "$ac_ct_LIPO" >&6; }
7555else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557$as_echo "no" >&6; }
7558fi
7559
7560 if test "x$ac_ct_LIPO" = x; then
7561 LIPO=":"
7562 else
7563 case $cross_compiling:$ac_tool_warned in
7564yes:)
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567ac_tool_warned=yes ;;
7568esac
7569 LIPO=$ac_ct_LIPO
7570 fi
7571else
7572 LIPO="$ac_cv_prog_LIPO"
7573fi
7574
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7577set dummy ${ac_tool_prefix}otool; ac_word=$2
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if ${ac_cv_prog_OTOOL+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582else
7583 if test -n "$OTOOL"; then
7584 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597done
7598 done
7599IFS=$as_save_IFS
7600
7601fi
7602fi
7603OTOOL=$ac_cv_prog_OTOOL
7604if test -n "$OTOOL"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7606$as_echo "$OTOOL" >&6; }
7607else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
7610fi
7611
7612
7613fi
7614if test -z "$ac_cv_prog_OTOOL"; then
7615 ac_ct_OTOOL=$OTOOL
7616 # Extract the first word of "otool", so it can be a program name with args.
7617set dummy otool; ac_word=$2
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619$as_echo_n "checking for $ac_word... " >&6; }
7620if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622else
7623 if test -n "$ac_ct_OTOOL"; then
7624 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7625else
7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_ac_ct_OTOOL="otool"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637done
7638 done
7639IFS=$as_save_IFS
7640
7641fi
7642fi
7643ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7644if test -n "$ac_ct_OTOOL"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7646$as_echo "$ac_ct_OTOOL" >&6; }
7647else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649$as_echo "no" >&6; }
7650fi
7651
7652 if test "x$ac_ct_OTOOL" = x; then
7653 OTOOL=":"
7654 else
7655 case $cross_compiling:$ac_tool_warned in
7656yes:)
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659ac_tool_warned=yes ;;
7660esac
7661 OTOOL=$ac_ct_OTOOL
7662 fi
7663else
7664 OTOOL="$ac_cv_prog_OTOOL"
7665fi
7666
7667 if test -n "$ac_tool_prefix"; then
7668 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7669set dummy ${ac_tool_prefix}otool64; ac_word=$2
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671$as_echo_n "checking for $ac_word... " >&6; }
7672if ${ac_cv_prog_OTOOL64+:} false; then :
7673 $as_echo_n "(cached) " >&6
7674else
7675 if test -n "$OTOOL64"; then
7676 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7677else
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7688 fi
7689done
7690 done
7691IFS=$as_save_IFS
7692
7693fi
7694fi
7695OTOOL64=$ac_cv_prog_OTOOL64
7696if test -n "$OTOOL64"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7698$as_echo "$OTOOL64" >&6; }
7699else
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
7702fi
7703
7704
7705fi
7706if test -z "$ac_cv_prog_OTOOL64"; then
7707 ac_ct_OTOOL64=$OTOOL64
7708 # Extract the first word of "otool64", so it can be a program name with args.
7709set dummy otool64; ac_word=$2
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711$as_echo_n "checking for $ac_word... " >&6; }
7712if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7713 $as_echo_n "(cached) " >&6
7714else
7715 if test -n "$ac_ct_OTOOL64"; then
7716 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7717else
7718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_ac_ct_OTOOL64="otool64"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 break 2
7728 fi
7729done
7730 done
7731IFS=$as_save_IFS
7732
7733fi
7734fi
7735ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7736if test -n "$ac_ct_OTOOL64"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7738$as_echo "$ac_ct_OTOOL64" >&6; }
7739else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741$as_echo "no" >&6; }
7742fi
7743
7744 if test "x$ac_ct_OTOOL64" = x; then
7745 OTOOL64=":"
7746 else
7747 case $cross_compiling:$ac_tool_warned in
7748yes:)
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751ac_tool_warned=yes ;;
7752esac
7753 OTOOL64=$ac_ct_OTOOL64
7754 fi
7755else
7756 OTOOL64="$ac_cv_prog_OTOOL64"
7757fi
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7786$as_echo_n "checking for -single_module linker flag... " >&6; }
7787if ${lt_cv_apple_cc_single_mod+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789else
7790 lt_cv_apple_cc_single_mod=no
7791 if test -z "${LT_MULTI_MODULE}"; then
7792 # By default we will add the -single_module flag. You can override
7793 # by either setting the environment variable LT_MULTI_MODULE
7794 # non-empty at configure time, or by adding -multi_module to the
7795 # link flags.
7796 rm -rf libconftest.dylib*
7797 echo "int foo(void){return 1;}" > conftest.c
7798 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7799-dynamiclib -Wl,-single_module conftest.c" >&5
7800 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7801 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7802 _lt_result=$?
7803 # If there is a non-empty error log, and "single_module"
7804 # appears in it, assume the flag caused a linker warning
7805 if test -s conftest.err && $GREP single_module conftest.err; then
7806 cat conftest.err >&5
7807 # Otherwise, if the output was created with a 0 exit code from
7808 # the compiler, it worked.
7809 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7810 lt_cv_apple_cc_single_mod=yes
7811 else
7812 cat conftest.err >&5
7813 fi
7814 rm -rf libconftest.dylib*
7815 rm -f conftest.*
7816 fi
7817fi
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7819$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7820
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7822$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7823if ${lt_cv_ld_exported_symbols_list+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825else
7826 lt_cv_ld_exported_symbols_list=no
7827 save_LDFLAGS=$LDFLAGS
7828 echo "_main" > conftest.sym
7829 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h. */
7832
7833int
7834main ()
7835{
7836
7837 ;
7838 return 0;
7839}
7840_ACEOF
7841if ac_fn_c_try_link "$LINENO"; then :
7842 lt_cv_ld_exported_symbols_list=yes
7843else
7844 lt_cv_ld_exported_symbols_list=no
7845fi
7846rm -f core conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 LDFLAGS="$save_LDFLAGS"
7849
7850fi
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7852$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7855$as_echo_n "checking for -force_load linker flag... " >&6; }
7856if ${lt_cv_ld_force_load+:} false; then :
7857 $as_echo_n "(cached) " >&6
7858else
7859 lt_cv_ld_force_load=no
7860 cat > conftest.c << _LT_EOF
7861int forced_loaded() { return 2;}
7862_LT_EOF
7863 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7864 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7865 echo "$AR cru libconftest.a conftest.o" >&5
7866 $AR cru libconftest.a conftest.o 2>&5
7867 echo "$RANLIB libconftest.a" >&5
7868 $RANLIB libconftest.a 2>&5
7869 cat > conftest.c << _LT_EOF
7870int main() { return 0;}
7871_LT_EOF
7872 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7873 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7874 _lt_result=$?
7875 if test -s conftest.err && $GREP force_load conftest.err; then
7876 cat conftest.err >&5
7877 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7878 lt_cv_ld_force_load=yes
7879 else
7880 cat conftest.err >&5
7881 fi
7882 rm -f conftest.err libconftest.a conftest conftest.c
7883 rm -rf conftest.dSYM
7884
7885fi
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7887$as_echo "$lt_cv_ld_force_load" >&6; }
7888 case $host_os in
7889 rhapsody* | darwin1.[012])
7890 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7891 darwin1.*)
7892 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7893 darwin*) # darwin 5.x on
7894 # if running on 10.5 or later, the deployment target defaults
7895 # to the OS version, if on x86, and 10.4, the deployment
7896 # target defaults to 10.4. Don't you love it?
7897 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7898 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7899 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7900 10.[012]*)
7901 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7902 10.*)
7903 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7904 esac
7905 ;;
7906 esac
7907 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7908 _lt_dar_single_mod='$single_module'
7909 fi
7910 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7911 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7912 else
7913 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7914 fi
7915 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7916 _lt_dsymutil='~$DSYMUTIL $lib || :'
7917 else
7918 _lt_dsymutil=
7919 fi
7920 ;;
7921 esac
7922
7923
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7925$as_echo_n "checking for ANSI C header files... " >&6; }
7926if ${ac_cv_header_stdc+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h. */
7931#include <stdlib.h>
7932#include <stdarg.h>
7933#include <string.h>
7934#include <float.h>
7935
7936int
7937main ()
7938{
7939
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944if ac_fn_c_try_compile "$LINENO"; then :
7945 ac_cv_header_stdc=yes
7946else
7947 ac_cv_header_stdc=no
7948fi
7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950
7951if test $ac_cv_header_stdc = yes; then
7952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h. */
7955#include <string.h>
7956
7957_ACEOF
7958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7959 $EGREP "memchr" >/dev/null 2>&1; then :
7960
7961else
7962 ac_cv_header_stdc=no
7963fi
7964rm -f conftest*
7965
7966fi
7967
7968if test $ac_cv_header_stdc = yes; then
7969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971/* end confdefs.h. */
7972#include <stdlib.h>
7973
7974_ACEOF
7975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7976 $EGREP "free" >/dev/null 2>&1; then :
7977
7978else
7979 ac_cv_header_stdc=no
7980fi
7981rm -f conftest*
7982
7983fi
7984
7985if test $ac_cv_header_stdc = yes; then
7986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7987 if test "$cross_compiling" = yes; then :
7988 :
7989else
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991/* end confdefs.h. */
7992#include <ctype.h>
7993#include <stdlib.h>
7994#if ((' ' & 0x0FF) == 0x020)
7995# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7996# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7997#else
7998# define ISLOWER(c) \
7999 (('a' <= (c) && (c) <= 'i') \
8000 || ('j' <= (c) && (c) <= 'r') \
8001 || ('s' <= (c) && (c) <= 'z'))
8002# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8003#endif
8004
8005#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8006int
8007main ()
8008{
8009 int i;
8010 for (i = 0; i < 256; i++)
8011 if (XOR (islower (i), ISLOWER (i))
8012 || toupper (i) != TOUPPER (i))
8013 return 2;
8014 return 0;
8015}
8016_ACEOF
8017if ac_fn_c_try_run "$LINENO"; then :
8018
8019else
8020 ac_cv_header_stdc=no
8021fi
8022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8023 conftest.$ac_objext conftest.beam conftest.$ac_ext
8024fi
8025
8026fi
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8029$as_echo "$ac_cv_header_stdc" >&6; }
8030if test $ac_cv_header_stdc = yes; then
8031
8032$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8033
8034fi
8035
8036# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8037for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8038 inttypes.h stdint.h unistd.h
8039do :
8040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8041ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8042"
8043if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8044 cat >>confdefs.h <<_ACEOF
8045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046_ACEOF
8047
8048fi
8049
8050done
8051
8052
8053for ac_header in dlfcn.h
8054do :
8055 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8056"
8057if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8058 cat >>confdefs.h <<_ACEOF
8059#define HAVE_DLFCN_H 1
8060_ACEOF
8061
8062fi
8063
8064done
8065
8066
8067
8068
8069
8070# Set options
8071
8072
8073
8074 enable_dlopen=no
8075
8076
8077 enable_win32_dll=no
8078
8079
8080 # Check whether --enable-shared was given.
8081if test "${enable_shared+set}" = set; then :
8082 enableval=$enable_shared; p=${PACKAGE-default}
8083 case $enableval in
8084 yes) enable_shared=yes ;;
8085 no) enable_shared=no ;;
8086 *)
8087 enable_shared=no
8088 # Look at the argument we got. We use all the common list separators.
8089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8090 for pkg in $enableval; do
8091 IFS="$lt_save_ifs"
8092 if test "X$pkg" = "X$p"; then
8093 enable_shared=yes
8094 fi
8095 done
8096 IFS="$lt_save_ifs"
8097 ;;
8098 esac
8099else
8100 enable_shared=yes
8101fi
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111 # Check whether --enable-static was given.
8112if test "${enable_static+set}" = set; then :
8113 enableval=$enable_static; p=${PACKAGE-default}
8114 case $enableval in
8115 yes) enable_static=yes ;;
8116 no) enable_static=no ;;
8117 *)
8118 enable_static=no
8119 # Look at the argument we got. We use all the common list separators.
8120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8121 for pkg in $enableval; do
8122 IFS="$lt_save_ifs"
8123 if test "X$pkg" = "X$p"; then
8124 enable_static=yes
8125 fi
8126 done
8127 IFS="$lt_save_ifs"
8128 ;;
8129 esac
8130else
8131 enable_static=yes
8132fi
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143# Check whether --with-pic was given.
8144if test "${with_pic+set}" = set; then :
8145 withval=$with_pic; lt_p=${PACKAGE-default}
8146 case $withval in
8147 yes|no) pic_mode=$withval ;;
8148 *)
8149 pic_mode=default
8150 # Look at the argument we got. We use all the common list separators.
8151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8152 for lt_pkg in $withval; do
8153 IFS="$lt_save_ifs"
8154 if test "X$lt_pkg" = "X$lt_p"; then
8155 pic_mode=yes
8156 fi
8157 done
8158 IFS="$lt_save_ifs"
8159 ;;
8160 esac
8161else
8162 pic_mode=default
8163fi
8164
8165
8166test -z "$pic_mode" && pic_mode=default
8167
8168
8169
8170
8171
8172
8173
8174 # Check whether --enable-fast-install was given.
8175if test "${enable_fast_install+set}" = set; then :
8176 enableval=$enable_fast_install; p=${PACKAGE-default}
8177 case $enableval in
8178 yes) enable_fast_install=yes ;;
8179 no) enable_fast_install=no ;;
8180 *)
8181 enable_fast_install=no
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8185 IFS="$lt_save_ifs"
8186 if test "X$pkg" = "X$p"; then
8187 enable_fast_install=yes
8188 fi
8189 done
8190 IFS="$lt_save_ifs"
8191 ;;
8192 esac
8193else
8194 enable_fast_install=yes
8195fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207# This can be used to rebuild libtool when needed
8208LIBTOOL_DEPS="$ltmain"
8209
8210# Always use our own libtool.
8211LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242test -z "$LN_S" && LN_S="ln -s"
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257if test -n "${ZSH_VERSION+set}" ; then
8258 setopt NO_GLOB_SUBST
8259fi
8260
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8262$as_echo_n "checking for objdir... " >&6; }
8263if ${lt_cv_objdir+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265else
8266 rm -f .libs 2>/dev/null
8267mkdir .libs 2>/dev/null
8268if test -d .libs; then
8269 lt_cv_objdir=.libs
8270else
8271 # MS-DOS does not allow filenames that begin with a dot.
8272 lt_cv_objdir=_libs
8273fi
8274rmdir .libs 2>/dev/null
8275fi
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8277$as_echo "$lt_cv_objdir" >&6; }
8278objdir=$lt_cv_objdir
8279
8280
8281
8282
8283
8284cat >>confdefs.h <<_ACEOF
8285#define LT_OBJDIR "$lt_cv_objdir/"
8286_ACEOF
8287
8288
8289
8290
8291case $host_os in
8292aix3*)
8293 # AIX sometimes has problems with the GCC collect2 program. For some
8294 # reason, if we set the COLLECT_NAMES environment variable, the problems
8295 # vanish in a puff of smoke.
8296 if test "X${COLLECT_NAMES+set}" != Xset; then
8297 COLLECT_NAMES=
8298 export COLLECT_NAMES
8299 fi
8300 ;;
8301esac
8302
8303# Global variables:
8304ofile=libtool
8305can_build_shared=yes
8306
8307# All known linkers require a `.a' archive for static linking (except MSVC,
8308# which needs '.lib').
8309libext=a
8310
8311with_gnu_ld="$lt_cv_prog_gnu_ld"
8312
8313old_CC="$CC"
8314old_CFLAGS="$CFLAGS"
8315
8316# Set sane defaults for various variables
8317test -z "$CC" && CC=cc
8318test -z "$LTCC" && LTCC=$CC
8319test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8320test -z "$LD" && LD=ld
8321test -z "$ac_objext" && ac_objext=o
8322
8323for cc_temp in $compiler""; do
8324 case $cc_temp in
8325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8327 \-*) ;;
8328 *) break;;
8329 esac
8330done
8331cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8332
8333
8334# Only perform the check for file, if the check method requires it
8335test -z "$MAGIC_CMD" && MAGIC_CMD=file
8336case $deplibs_check_method in
8337file_magic*)
8338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8340$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8341if ${lt_cv_path_MAGIC_CMD+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343else
8344 case $MAGIC_CMD in
8345[\\/*] | ?:[\\/]*)
8346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8347 ;;
8348*)
8349 lt_save_MAGIC_CMD="$MAGIC_CMD"
8350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8352 for ac_dir in $ac_dummy; do
8353 IFS="$lt_save_ifs"
8354 test -z "$ac_dir" && ac_dir=.
8355 if test -f $ac_dir/${ac_tool_prefix}file; then
8356 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8357 if test -n "$file_magic_test_file"; then
8358 case $deplibs_check_method in
8359 "file_magic "*)
8360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8363 $EGREP "$file_magic_regex" > /dev/null; then
8364 :
8365 else
8366 cat <<_LT_EOF 1>&2
8367
8368*** Warning: the command libtool uses to detect shared libraries,
8369*** $file_magic_cmd, produces output that libtool cannot recognize.
8370*** The result is that libtool may fail to recognize shared libraries
8371*** as such. This will affect the creation of libtool libraries that
8372*** depend on shared libraries, but programs linked with such libtool
8373*** libraries will work regardless of this problem. Nevertheless, you
8374*** may want to report the problem to your system manager and/or to
8375*** [email protected]
8376
8377_LT_EOF
8378 fi ;;
8379 esac
8380 fi
8381 break
8382 fi
8383 done
8384 IFS="$lt_save_ifs"
8385 MAGIC_CMD="$lt_save_MAGIC_CMD"
8386 ;;
8387esac
8388fi
8389
8390MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8391if test -n "$MAGIC_CMD"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8393$as_echo "$MAGIC_CMD" >&6; }
8394else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
8398
8399
8400
8401
8402
8403if test -z "$lt_cv_path_MAGIC_CMD"; then
8404 if test -n "$ac_tool_prefix"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8406$as_echo_n "checking for file... " >&6; }
8407if ${lt_cv_path_MAGIC_CMD+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409else
8410 case $MAGIC_CMD in
8411[\\/*] | ?:[\\/]*)
8412 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8413 ;;
8414*)
8415 lt_save_MAGIC_CMD="$MAGIC_CMD"
8416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8417 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8418 for ac_dir in $ac_dummy; do
8419 IFS="$lt_save_ifs"
8420 test -z "$ac_dir" && ac_dir=.
8421 if test -f $ac_dir/file; then
8422 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8423 if test -n "$file_magic_test_file"; then
8424 case $deplibs_check_method in
8425 "file_magic "*)
8426 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8428 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8429 $EGREP "$file_magic_regex" > /dev/null; then
8430 :
8431 else
8432 cat <<_LT_EOF 1>&2
8433
8434*** Warning: the command libtool uses to detect shared libraries,
8435*** $file_magic_cmd, produces output that libtool cannot recognize.
8436*** The result is that libtool may fail to recognize shared libraries
8437*** as such. This will affect the creation of libtool libraries that
8438*** depend on shared libraries, but programs linked with such libtool
8439*** libraries will work regardless of this problem. Nevertheless, you
8440*** may want to report the problem to your system manager and/or to
8441*** [email protected]
8442
8443_LT_EOF
8444 fi ;;
8445 esac
8446 fi
8447 break
8448 fi
8449 done
8450 IFS="$lt_save_ifs"
8451 MAGIC_CMD="$lt_save_MAGIC_CMD"
8452 ;;
8453esac
8454fi
8455
8456MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8457if test -n "$MAGIC_CMD"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8459$as_echo "$MAGIC_CMD" >&6; }
8460else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462$as_echo "no" >&6; }
8463fi
8464
8465
8466 else
8467 MAGIC_CMD=:
8468 fi
8469fi
8470
8471 fi
8472 ;;
8473esac
8474
8475# Use C for the default configuration in the libtool script
8476
8477lt_save_CC="$CC"
8478ac_ext=c
8479ac_cpp='$CPP $CPPFLAGS'
8480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8482ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483
8484
8485# Source file extension for C test sources.
8486ac_ext=c
8487
8488# Object file extension for compiled C test sources.
8489objext=o
8490objext=$objext
8491
8492# Code to be used in simple compile tests
8493lt_simple_compile_test_code="int some_variable = 0;"
8494
8495# Code to be used in simple link tests
8496lt_simple_link_test_code='int main(){return(0);}'
8497
8498
8499
8500
8501
8502
8503
8504# If no C compiler was specified, use CC.
8505LTCC=${LTCC-"$CC"}
8506
8507# If no C compiler flags were specified, use CFLAGS.
8508LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8509
8510# Allow CC to be a program name with arguments.
8511compiler=$CC
8512
8513# Save the default compiler, since it gets overwritten when the other
8514# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8515compiler_DEFAULT=$CC
8516
8517# save warnings/boilerplate of simple test code
8518ac_outfile=conftest.$ac_objext
8519echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8520eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8521_lt_compiler_boilerplate=`cat conftest.err`
8522$RM conftest*
8523
8524ac_outfile=conftest.$ac_objext
8525echo "$lt_simple_link_test_code" >conftest.$ac_ext
8526eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8527_lt_linker_boilerplate=`cat conftest.err`
8528$RM -r conftest*
8529
8530
8531## CAVEAT EMPTOR:
8532## There is no encapsulation within the following macros, do not change
8533## the running order or otherwise move them around unless you know exactly
8534## what you are doing...
8535if test -n "$compiler"; then
8536
8537lt_prog_compiler_no_builtin_flag=
8538
8539if test "$GCC" = yes; then
8540 case $cc_basename in
8541 nvcc*)
8542 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8543 *)
8544 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8545 esac
8546
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8548$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8549if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551else
8552 lt_cv_prog_compiler_rtti_exceptions=no
8553 ac_outfile=conftest.$ac_objext
8554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8555 lt_compiler_flag="-fno-rtti -fno-exceptions"
8556 # Insert the option either (1) after the last *FLAGS variable, or
8557 # (2) before a word containing "conftest.", or (3) at the end.
8558 # Note that $ac_compile itself does not contain backslashes and begins
8559 # with a dollar sign (not a hyphen), so the echo should work correctly.
8560 # The option is referenced via a variable to avoid confusing sed.
8561 lt_compile=`echo "$ac_compile" | $SED \
8562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8564 -e 's:$: $lt_compiler_flag:'`
8565 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8566 (eval "$lt_compile" 2>conftest.err)
8567 ac_status=$?
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 if (exit $ac_status) && test -s "$ac_outfile"; then
8571 # The compiler can only warn and ignore the option if not recognized
8572 # So say no if there are warnings other than the usual output.
8573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8575 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8576 lt_cv_prog_compiler_rtti_exceptions=yes
8577 fi
8578 fi
8579 $RM conftest*
8580
8581fi
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8583$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8584
8585if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8586 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8587else
8588 :
8589fi
8590
8591fi
8592
8593
8594
8595
8596
8597
8598 lt_prog_compiler_wl=
8599lt_prog_compiler_pic=
8600lt_prog_compiler_static=
8601
8602
8603 if test "$GCC" = yes; then
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_static='-static'
8606
8607 case $host_os in
8608 aix*)
8609 # All AIX code is PIC.
8610 if test "$host_cpu" = ia64; then
8611 # AIX 5 now supports IA64 processor
8612 lt_prog_compiler_static='-Bstatic'
8613 fi
8614 ;;
8615
8616 amigaos*)
8617 case $host_cpu in
8618 powerpc)
8619 # see comment about AmigaOS4 .so support
8620 lt_prog_compiler_pic='-fPIC'
8621 ;;
8622 m68k)
8623 # FIXME: we need at least 68020 code to build shared libraries, but
8624 # adding the `-m68020' flag to GCC prevents building anything better,
8625 # like `-m68040'.
8626 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8627 ;;
8628 esac
8629 ;;
8630
8631 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8632 # PIC is the default for these OSes.
8633 ;;
8634
8635 mingw* | cygwin* | pw32* | os2* | cegcc*)
8636 # This hack is so that the source file can tell whether it is being
8637 # built for inclusion in a dll (and should export symbols for example).
8638 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8639 # (--disable-auto-import) libraries
8640 lt_prog_compiler_pic='-DDLL_EXPORT'
8641 ;;
8642
8643 darwin* | rhapsody*)
8644 # PIC is the default on this platform
8645 # Common symbols not allowed in MH_DYLIB files
8646 lt_prog_compiler_pic='-fno-common'
8647 ;;
8648
8649 haiku*)
8650 # PIC is the default for Haiku.
8651 # The "-static" flag exists, but is broken.
8652 lt_prog_compiler_static=
8653 ;;
8654
8655 hpux*)
8656 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8657 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8658 # sets the default TLS model and affects inlining.
8659 case $host_cpu in
8660 hppa*64*)
8661 # +Z the default
8662 ;;
8663 *)
8664 lt_prog_compiler_pic='-fPIC'
8665 ;;
8666 esac
8667 ;;
8668
8669 interix[3-9]*)
8670 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8671 # Instead, we relocate shared libraries at runtime.
8672 ;;
8673
8674 msdosdjgpp*)
8675 # Just because we use GCC doesn't mean we suddenly get shared libraries
8676 # on systems that don't support them.
8677 lt_prog_compiler_can_build_shared=no
8678 enable_shared=no
8679 ;;
8680
8681 *nto* | *qnx*)
8682 # QNX uses GNU C++, but need to define -shared option too, otherwise
8683 # it will coredump.
8684 lt_prog_compiler_pic='-fPIC -shared'
8685 ;;
8686
8687 sysv4*MP*)
8688 if test -d /usr/nec; then
8689 lt_prog_compiler_pic=-Kconform_pic
8690 fi
8691 ;;
8692
8693 *)
8694 lt_prog_compiler_pic='-fPIC'
8695 ;;
8696 esac
8697
8698 case $cc_basename in
8699 nvcc*) # Cuda Compiler Driver 2.2
8700 lt_prog_compiler_wl='-Xlinker '
8701 if test -n "$lt_prog_compiler_pic"; then
8702 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8703 fi
8704 ;;
8705 esac
8706 else
8707 # PORTME Check for flag to pass linker flags through the system compiler.
8708 case $host_os in
8709 aix*)
8710 lt_prog_compiler_wl='-Wl,'
8711 if test "$host_cpu" = ia64; then
8712 # AIX 5 now supports IA64 processor
8713 lt_prog_compiler_static='-Bstatic'
8714 else
8715 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8716 fi
8717 ;;
8718
8719 mingw* | cygwin* | pw32* | os2* | cegcc*)
8720 # This hack is so that the source file can tell whether it is being
8721 # built for inclusion in a dll (and should export symbols for example).
8722 lt_prog_compiler_pic='-DDLL_EXPORT'
8723 ;;
8724
8725 hpux9* | hpux10* | hpux11*)
8726 lt_prog_compiler_wl='-Wl,'
8727 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8728 # not for PA HP-UX.
8729 case $host_cpu in
8730 hppa*64*|ia64*)
8731 # +Z the default
8732 ;;
8733 *)
8734 lt_prog_compiler_pic='+Z'
8735 ;;
8736 esac
8737 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8738 lt_prog_compiler_static='${wl}-a ${wl}archive'
8739 ;;
8740
8741 irix5* | irix6* | nonstopux*)
8742 lt_prog_compiler_wl='-Wl,'
8743 # PIC (with -KPIC) is the default.
8744 lt_prog_compiler_static='-non_shared'
8745 ;;
8746
8747 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8748 case $cc_basename in
8749 # old Intel for x86_64 which still supported -KPIC.
8750 ecc*)
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_pic='-KPIC'
8753 lt_prog_compiler_static='-static'
8754 ;;
8755 # icc used to be incompatible with GCC.
8756 # ICC 10 doesn't accept -KPIC any more.
8757 icc* | ifort*)
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-fPIC'
8760 lt_prog_compiler_static='-static'
8761 ;;
8762 # Lahey Fortran 8.1.
8763 lf95*)
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='--shared'
8766 lt_prog_compiler_static='--static'
8767 ;;
8768 nagfor*)
8769 # NAG Fortran compiler
8770 lt_prog_compiler_wl='-Wl,-Wl,,'
8771 lt_prog_compiler_pic='-PIC'
8772 lt_prog_compiler_static='-Bstatic'
8773 ;;
8774 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8775 # Portland Group compilers (*not* the Pentium gcc compiler,
8776 # which looks to be a dead project)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-fpic'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781 ccc*)
8782 lt_prog_compiler_wl='-Wl,'
8783 # All Alpha code is PIC.
8784 lt_prog_compiler_static='-non_shared'
8785 ;;
8786 xl* | bgxl* | bgf* | mpixl*)
8787 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-qpic'
8790 lt_prog_compiler_static='-qstaticlink'
8791 ;;
8792 *)
8793 case `$CC -V 2>&1 | sed 5q` in
8794 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8795 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 lt_prog_compiler_wl=''
8799 ;;
8800 *Sun\ F* | *Sun*Fortran*)
8801 lt_prog_compiler_pic='-KPIC'
8802 lt_prog_compiler_static='-Bstatic'
8803 lt_prog_compiler_wl='-Qoption ld '
8804 ;;
8805 *Sun\ C*)
8806 # Sun C 5.9
8807 lt_prog_compiler_pic='-KPIC'
8808 lt_prog_compiler_static='-Bstatic'
8809 lt_prog_compiler_wl='-Wl,'
8810 ;;
8811 *Intel*\ [CF]*Compiler*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-fPIC'
8814 lt_prog_compiler_static='-static'
8815 ;;
8816 *Portland\ Group*)
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_pic='-fpic'
8819 lt_prog_compiler_static='-Bstatic'
8820 ;;
8821 esac
8822 ;;
8823 esac
8824 ;;
8825
8826 newsos6)
8827 lt_prog_compiler_pic='-KPIC'
8828 lt_prog_compiler_static='-Bstatic'
8829 ;;
8830
8831 *nto* | *qnx*)
8832 # QNX uses GNU C++, but need to define -shared option too, otherwise
8833 # it will coredump.
8834 lt_prog_compiler_pic='-fPIC -shared'
8835 ;;
8836
8837 osf3* | osf4* | osf5*)
8838 lt_prog_compiler_wl='-Wl,'
8839 # All OSF/1 code is PIC.
8840 lt_prog_compiler_static='-non_shared'
8841 ;;
8842
8843 rdos*)
8844 lt_prog_compiler_static='-non_shared'
8845 ;;
8846
8847 solaris*)
8848 lt_prog_compiler_pic='-KPIC'
8849 lt_prog_compiler_static='-Bstatic'
8850 case $cc_basename in
8851 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8852 lt_prog_compiler_wl='-Qoption ld ';;
8853 *)
8854 lt_prog_compiler_wl='-Wl,';;
8855 esac
8856 ;;
8857
8858 sunos4*)
8859 lt_prog_compiler_wl='-Qoption ld '
8860 lt_prog_compiler_pic='-PIC'
8861 lt_prog_compiler_static='-Bstatic'
8862 ;;
8863
8864 sysv4 | sysv4.2uw2* | sysv4.3*)
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 ;;
8869
8870 sysv4*MP*)
8871 if test -d /usr/nec ;then
8872 lt_prog_compiler_pic='-Kconform_pic'
8873 lt_prog_compiler_static='-Bstatic'
8874 fi
8875 ;;
8876
8877 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8878 lt_prog_compiler_wl='-Wl,'
8879 lt_prog_compiler_pic='-KPIC'
8880 lt_prog_compiler_static='-Bstatic'
8881 ;;
8882
8883 unicos*)
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_can_build_shared=no
8886 ;;
8887
8888 uts4*)
8889 lt_prog_compiler_pic='-pic'
8890 lt_prog_compiler_static='-Bstatic'
8891 ;;
8892
8893 *)
8894 lt_prog_compiler_can_build_shared=no
8895 ;;
8896 esac
8897 fi
8898
8899case $host_os in
8900 # For platforms which do not support PIC, -DPIC is meaningless:
8901 *djgpp*)
8902 lt_prog_compiler_pic=
8903 ;;
8904 *)
8905 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8906 ;;
8907esac
8908
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8910$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8911if ${lt_cv_prog_compiler_pic+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913else
8914 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8915fi
8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8917$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8918lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8919
8920#
8921# Check to make sure the PIC flag actually works.
8922#
8923if test -n "$lt_prog_compiler_pic"; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8925$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8926if ${lt_cv_prog_compiler_pic_works+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928else
8929 lt_cv_prog_compiler_pic_works=no
8930 ac_outfile=conftest.$ac_objext
8931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8932 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8933 # Insert the option either (1) after the last *FLAGS variable, or
8934 # (2) before a word containing "conftest.", or (3) at the end.
8935 # Note that $ac_compile itself does not contain backslashes and begins
8936 # with a dollar sign (not a hyphen), so the echo should work correctly.
8937 # The option is referenced via a variable to avoid confusing sed.
8938 lt_compile=`echo "$ac_compile" | $SED \
8939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8941 -e 's:$: $lt_compiler_flag:'`
8942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8943 (eval "$lt_compile" 2>conftest.err)
8944 ac_status=$?
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 if (exit $ac_status) && test -s "$ac_outfile"; then
8948 # The compiler can only warn and ignore the option if not recognized
8949 # So say no if there are warnings other than the usual output.
8950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8953 lt_cv_prog_compiler_pic_works=yes
8954 fi
8955 fi
8956 $RM conftest*
8957
8958fi
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8960$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8961
8962if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8963 case $lt_prog_compiler_pic in
8964 "" | " "*) ;;
8965 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8966 esac
8967else
8968 lt_prog_compiler_pic=
8969 lt_prog_compiler_can_build_shared=no
8970fi
8971
8972fi
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984#
8985# Check to make sure the static flag actually works.
8986#
8987wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8989$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8990if ${lt_cv_prog_compiler_static_works+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992else
8993 lt_cv_prog_compiler_static_works=no
8994 save_LDFLAGS="$LDFLAGS"
8995 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8996 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8997 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8998 # The linker can only warn and ignore the option if not recognized
8999 # So say no if there are warnings
9000 if test -s conftest.err; then
9001 # Append any errors to the config.log.
9002 cat conftest.err 1>&5
9003 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9005 if diff conftest.exp conftest.er2 >/dev/null; then
9006 lt_cv_prog_compiler_static_works=yes
9007 fi
9008 else
9009 lt_cv_prog_compiler_static_works=yes
9010 fi
9011 fi
9012 $RM -r conftest*
9013 LDFLAGS="$save_LDFLAGS"
9014
9015fi
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9017$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9018
9019if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9020 :
9021else
9022 lt_prog_compiler_static=
9023fi
9024
9025
9026
9027
9028
9029
9030
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9032$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9033if ${lt_cv_prog_compiler_c_o+:} false; then :
9034 $as_echo_n "(cached) " >&6
9035else
9036 lt_cv_prog_compiler_c_o=no
9037 $RM -r conftest 2>/dev/null
9038 mkdir conftest
9039 cd conftest
9040 mkdir out
9041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9042
9043 lt_compiler_flag="-o out/conftest2.$ac_objext"
9044 # Insert the option either (1) after the last *FLAGS variable, or
9045 # (2) before a word containing "conftest.", or (3) at the end.
9046 # Note that $ac_compile itself does not contain backslashes and begins
9047 # with a dollar sign (not a hyphen), so the echo should work correctly.
9048 lt_compile=`echo "$ac_compile" | $SED \
9049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9051 -e 's:$: $lt_compiler_flag:'`
9052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9053 (eval "$lt_compile" 2>out/conftest.err)
9054 ac_status=$?
9055 cat out/conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9058 then
9059 # The compiler can only warn and ignore the option if not recognized
9060 # So say no if there are warnings
9061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9064 lt_cv_prog_compiler_c_o=yes
9065 fi
9066 fi
9067 chmod u+w . 2>&5
9068 $RM conftest*
9069 # SGI C++ compiler will create directory out/ii_files/ for
9070 # template instantiation
9071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9072 $RM out/* && rmdir out
9073 cd ..
9074 $RM -r conftest
9075 $RM conftest*
9076
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9079$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9080
9081
9082
9083
9084
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9088if ${lt_cv_prog_compiler_c_o+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090else
9091 lt_cv_prog_compiler_c_o=no
9092 $RM -r conftest 2>/dev/null
9093 mkdir conftest
9094 cd conftest
9095 mkdir out
9096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097
9098 lt_compiler_flag="-o out/conftest2.$ac_objext"
9099 # Insert the option either (1) after the last *FLAGS variable, or
9100 # (2) before a word containing "conftest.", or (3) at the end.
9101 # Note that $ac_compile itself does not contain backslashes and begins
9102 # with a dollar sign (not a hyphen), so the echo should work correctly.
9103 lt_compile=`echo "$ac_compile" | $SED \
9104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9106 -e 's:$: $lt_compiler_flag:'`
9107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9108 (eval "$lt_compile" 2>out/conftest.err)
9109 ac_status=$?
9110 cat out/conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9113 then
9114 # The compiler can only warn and ignore the option if not recognized
9115 # So say no if there are warnings
9116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9119 lt_cv_prog_compiler_c_o=yes
9120 fi
9121 fi
9122 chmod u+w . 2>&5
9123 $RM conftest*
9124 # SGI C++ compiler will create directory out/ii_files/ for
9125 # template instantiation
9126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9127 $RM out/* && rmdir out
9128 cd ..
9129 $RM -r conftest
9130 $RM conftest*
9131
9132fi
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9134$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9135
9136
9137
9138
9139hard_links="nottested"
9140if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9141 # do not overwrite the value of need_locks provided by the user
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9143$as_echo_n "checking if we can lock with hard links... " >&6; }
9144 hard_links=yes
9145 $RM conftest*
9146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9147 touch conftest.a
9148 ln conftest.a conftest.b 2>&5 || hard_links=no
9149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9151$as_echo "$hard_links" >&6; }
9152 if test "$hard_links" = no; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9154$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9155 need_locks=warn
9156 fi
9157else
9158 need_locks=no
9159fi
9160
9161
9162
9163
9164
9165
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9167$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9168
9169 runpath_var=
9170 allow_undefined_flag=
9171 always_export_symbols=no
9172 archive_cmds=
9173 archive_expsym_cmds=
9174 compiler_needs_object=no
9175 enable_shared_with_static_runtimes=no
9176 export_dynamic_flag_spec=
9177 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9178 hardcode_automatic=no
9179 hardcode_direct=no
9180 hardcode_direct_absolute=no
9181 hardcode_libdir_flag_spec=
9182 hardcode_libdir_separator=
9183 hardcode_minus_L=no
9184 hardcode_shlibpath_var=unsupported
9185 inherit_rpath=no
9186 link_all_deplibs=unknown
9187 module_cmds=
9188 module_expsym_cmds=
9189 old_archive_from_new_cmds=
9190 old_archive_from_expsyms_cmds=
9191 thread_safe_flag_spec=
9192 whole_archive_flag_spec=
9193 # include_expsyms should be a list of space-separated symbols to be *always*
9194 # included in the symbol list
9195 include_expsyms=
9196 # exclude_expsyms can be an extended regexp of symbols to exclude
9197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9199 # as well as any symbol that contains `d'.
9200 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9202 # platforms (ab)use it in PIC code, but their linkers get confused if
9203 # the symbol is explicitly referenced. Since portable code cannot
9204 # rely on this symbol name, it's probably fine to never include it in
9205 # preloaded symbol tables.
9206 # Exclude shared library initialization/finalization symbols.
9207 extract_expsyms_cmds=
9208
9209 case $host_os in
9210 cygwin* | mingw* | pw32* | cegcc*)
9211 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9212 # When not using gcc, we currently assume that we are using
9213 # Microsoft Visual C++.
9214 if test "$GCC" != yes; then
9215 with_gnu_ld=no
9216 fi
9217 ;;
9218 interix*)
9219 # we just hope/assume this is gcc and not c89 (= MSVC++)
9220 with_gnu_ld=yes
9221 ;;
9222 openbsd*)
9223 with_gnu_ld=no
9224 ;;
9225 esac
9226
9227 ld_shlibs=yes
9228
9229 # On some targets, GNU ld is compatible enough with the native linker
9230 # that we're better off using the native interface for both.
9231 lt_use_gnu_ld_interface=no
9232 if test "$with_gnu_ld" = yes; then
9233 case $host_os in
9234 aix*)
9235 # The AIX port of GNU ld has always aspired to compatibility
9236 # with the native linker. However, as the warning in the GNU ld
9237 # block says, versions before 2.19.5* couldn't really create working
9238 # shared libraries, regardless of the interface used.
9239 case `$LD -v 2>&1` in
9240 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9241 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9242 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9243 *)
9244 lt_use_gnu_ld_interface=yes
9245 ;;
9246 esac
9247 ;;
9248 *)
9249 lt_use_gnu_ld_interface=yes
9250 ;;
9251 esac
9252 fi
9253
9254 if test "$lt_use_gnu_ld_interface" = yes; then
9255 # If archive_cmds runs LD, not CC, wlarc should be empty
9256 wlarc='${wl}'
9257
9258 # Set some defaults for GNU ld with shared library support. These
9259 # are reset later if shared libraries are not supported. Putting them
9260 # here allows them to be overridden if necessary.
9261 runpath_var=LD_RUN_PATH
9262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263 export_dynamic_flag_spec='${wl}--export-dynamic'
9264 # ancient GNU ld didn't support --whole-archive et. al.
9265 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9266 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9267 else
9268 whole_archive_flag_spec=
9269 fi
9270 supports_anon_versioning=no
9271 case `$LD -v 2>&1` in
9272 *GNU\ gold*) supports_anon_versioning=yes ;;
9273 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9274 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9275 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9276 *\ 2.11.*) ;; # other 2.11 versions
9277 *) supports_anon_versioning=yes ;;
9278 esac
9279
9280 # See if GNU ld supports shared libraries.
9281 case $host_os in
9282 aix[3-9]*)
9283 # On AIX/PPC, the GNU linker is very broken
9284 if test "$host_cpu" != ia64; then
9285 ld_shlibs=no
9286 cat <<_LT_EOF 1>&2
9287
9288*** Warning: the GNU linker, at least up to release 2.19, is reported
9289*** to be unable to reliably create shared libraries on AIX.
9290*** Therefore, libtool is disabling shared libraries support. If you
9291*** really care for shared libraries, you may want to install binutils
9292*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9293*** You will then need to restart the configuration process.
9294
9295_LT_EOF
9296 fi
9297 ;;
9298
9299 amigaos*)
9300 case $host_cpu in
9301 powerpc)
9302 # see comment about AmigaOS4 .so support
9303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9304 archive_expsym_cmds=''
9305 ;;
9306 m68k)
9307 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)'
9308 hardcode_libdir_flag_spec='-L$libdir'
9309 hardcode_minus_L=yes
9310 ;;
9311 esac
9312 ;;
9313
9314 beos*)
9315 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9316 allow_undefined_flag=unsupported
9317 # Joseph Beckenbach <[email protected]> says some releases of gcc
9318 # support --undefined. This deserves some investigation. FIXME
9319 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320 else
9321 ld_shlibs=no
9322 fi
9323 ;;
9324
9325 cygwin* | mingw* | pw32* | cegcc*)
9326 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9327 # as there is no search path for DLLs.
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 export_dynamic_flag_spec='${wl}--export-all-symbols'
9330 allow_undefined_flag=unsupported
9331 always_export_symbols=no
9332 enable_shared_with_static_runtimes=yes
9333 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'
9334 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9335
9336 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9338 # If the export-symbols file already is a .def file (1st line
9339 # is EXPORTS), use it as is; otherwise, prepend...
9340 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9341 cp $export_symbols $output_objdir/$soname.def;
9342 else
9343 echo EXPORTS > $output_objdir/$soname.def;
9344 cat $export_symbols >> $output_objdir/$soname.def;
9345 fi~
9346 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9347 else
9348 ld_shlibs=no
9349 fi
9350 ;;
9351
9352 haiku*)
9353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354 link_all_deplibs=yes
9355 ;;
9356
9357 interix[3-9]*)
9358 hardcode_direct=no
9359 hardcode_shlibpath_var=no
9360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9361 export_dynamic_flag_spec='${wl}-E'
9362 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9363 # Instead, shared libraries are loaded at an image base (0x10000000 by
9364 # default) and relocated if they conflict, which is a slow very memory
9365 # consuming and fragmenting process. To avoid this, we pick a random,
9366 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9367 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9369 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'
9370 ;;
9371
9372 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9373 tmp_diet=no
9374 if test "$host_os" = linux-dietlibc; then
9375 case $cc_basename in
9376 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9377 esac
9378 fi
9379 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9380 && test "$tmp_diet" = no
9381 then
9382 tmp_addflag=' $pic_flag'
9383 tmp_sharedflag='-shared'
9384 case $cc_basename,$host_cpu in
9385 pgcc*) # Portland Group C compiler
9386 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'
9387 tmp_addflag=' $pic_flag'
9388 ;;
9389 pgf77* | pgf90* | pgf95* | pgfortran*)
9390 # Portland Group f77 and f90 compilers
9391 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'
9392 tmp_addflag=' $pic_flag -Mnomain' ;;
9393 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9394 tmp_addflag=' -i_dynamic' ;;
9395 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9396 tmp_addflag=' -i_dynamic -nofor_main' ;;
9397 ifc* | ifort*) # Intel Fortran compiler
9398 tmp_addflag=' -nofor_main' ;;
9399 lf95*) # Lahey Fortran 8.1
9400 whole_archive_flag_spec=
9401 tmp_sharedflag='--shared' ;;
9402 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9403 tmp_sharedflag='-qmkshrobj'
9404 tmp_addflag= ;;
9405 nvcc*) # Cuda Compiler Driver 2.2
9406 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'
9407 compiler_needs_object=yes
9408 ;;
9409 esac
9410 case `$CC -V 2>&1 | sed 5q` in
9411 *Sun\ C*) # Sun C 5.9
9412 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'
9413 compiler_needs_object=yes
9414 tmp_sharedflag='-G' ;;
9415 *Sun\ F*) # Sun Fortran 8.3
9416 tmp_sharedflag='-G' ;;
9417 esac
9418 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419
9420 if test "x$supports_anon_versioning" = xyes; then
9421 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9423 echo "local: *; };" >> $output_objdir/$libname.ver~
9424 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9425 fi
9426
9427 case $cc_basename in
9428 xlf* | bgf* | bgxlf* | mpixlf*)
9429 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9430 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9432 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9433 if test "x$supports_anon_versioning" = xyes; then
9434 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9435 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9436 echo "local: *; };" >> $output_objdir/$libname.ver~
9437 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9438 fi
9439 ;;
9440 esac
9441 else
9442 ld_shlibs=no
9443 fi
9444 ;;
9445
9446 netbsd*)
9447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9448 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9449 wlarc=
9450 else
9451 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9453 fi
9454 ;;
9455
9456 solaris*)
9457 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9458 ld_shlibs=no
9459 cat <<_LT_EOF 1>&2
9460
9461*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9462*** create shared libraries on Solaris systems. Therefore, libtool
9463*** is disabling shared libraries support. We urge you to upgrade GNU
9464*** binutils to release 2.9.1 or newer. Another option is to modify
9465*** your PATH or compiler configuration so that the native linker is
9466*** used, and then restart.
9467
9468_LT_EOF
9469 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9472 else
9473 ld_shlibs=no
9474 fi
9475 ;;
9476
9477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9478 case `$LD -v 2>&1` in
9479 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9480 ld_shlibs=no
9481 cat <<_LT_EOF 1>&2
9482
9483*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9484*** reliably create shared libraries on SCO systems. Therefore, libtool
9485*** is disabling shared libraries support. We urge you to upgrade GNU
9486*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9487*** your PATH or compiler configuration so that the native linker is
9488*** used, and then restart.
9489
9490_LT_EOF
9491 ;;
9492 *)
9493 # For security reasons, it is highly recommended that you always
9494 # use absolute paths for naming shared libraries, and exclude the
9495 # DT_RUNPATH tag from executables and libraries. But doing so
9496 # requires that you compile everything twice, which is a pain.
9497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9500 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9501 else
9502 ld_shlibs=no
9503 fi
9504 ;;
9505 esac
9506 ;;
9507
9508 sunos4*)
9509 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9510 wlarc=
9511 hardcode_direct=yes
9512 hardcode_shlibpath_var=no
9513 ;;
9514
9515 *)
9516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9519 else
9520 ld_shlibs=no
9521 fi
9522 ;;
9523 esac
9524
9525 if test "$ld_shlibs" = no; then
9526 runpath_var=
9527 hardcode_libdir_flag_spec=
9528 export_dynamic_flag_spec=
9529 whole_archive_flag_spec=
9530 fi
9531 else
9532 # PORTME fill in a description of your system's linker (not GNU ld)
9533 case $host_os in
9534 aix3*)
9535 allow_undefined_flag=unsupported
9536 always_export_symbols=yes
9537 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'
9538 # Note: this linker hardcodes the directories in LIBPATH if there
9539 # are no directories specified by -L.
9540 hardcode_minus_L=yes
9541 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9542 # Neither direct hardcoding nor static linking is supported with a
9543 # broken collect2.
9544 hardcode_direct=unsupported
9545 fi
9546 ;;
9547
9548 aix[4-9]*)
9549 if test "$host_cpu" = ia64; then
9550 # On IA64, the linker does run time linking by default, so we don't
9551 # have to do anything special.
9552 aix_use_runtimelinking=no
9553 exp_sym_flag='-Bexport'
9554 no_entry_flag=""
9555 else
9556 # If we're using GNU nm, then we don't want the "-C" option.
9557 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9558 # Also, AIX nm treats weak defined symbols like other global
9559 # defined symbols, whereas GNU nm marks them as "W".
9560 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9561 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9562 else
9563 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9564 fi
9565 aix_use_runtimelinking=no
9566
9567 # Test if we are trying to use run time linking or normal
9568 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9569 # need to do runtime linking.
9570 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9571 for ld_flag in $LDFLAGS; do
9572 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9573 aix_use_runtimelinking=yes
9574 break
9575 fi
9576 done
9577 ;;
9578 esac
9579
9580 exp_sym_flag='-bexport'
9581 no_entry_flag='-bnoentry'
9582 fi
9583
9584 # When large executables or shared objects are built, AIX ld can
9585 # have problems creating the table of contents. If linking a library
9586 # or program results in "error TOC overflow" add -mminimal-toc to
9587 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9588 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9589
9590 archive_cmds=''
9591 hardcode_direct=yes
9592 hardcode_direct_absolute=yes
9593 hardcode_libdir_separator=':'
9594 link_all_deplibs=yes
9595 file_list_spec='${wl}-f,'
9596
9597 if test "$GCC" = yes; then
9598 case $host_os in aix4.[012]|aix4.[012].*)
9599 # We only want to do this on AIX 4.2 and lower, the check
9600 # below for broken collect2 doesn't work under 4.3+
9601 collect2name=`${CC} -print-prog-name=collect2`
9602 if test -f "$collect2name" &&
9603 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9604 then
9605 # We have reworked collect2
9606 :
9607 else
9608 # We have old collect2
9609 hardcode_direct=unsupported
9610 # It fails to find uninstalled libraries when the uninstalled
9611 # path is not listed in the libpath. Setting hardcode_minus_L
9612 # to unsupported forces relinking
9613 hardcode_minus_L=yes
9614 hardcode_libdir_flag_spec='-L$libdir'
9615 hardcode_libdir_separator=
9616 fi
9617 ;;
9618 esac
9619 shared_flag='-shared'
9620 if test "$aix_use_runtimelinking" = yes; then
9621 shared_flag="$shared_flag "'${wl}-G'
9622 fi
9623 else
9624 # not using gcc
9625 if test "$host_cpu" = ia64; then
9626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9627 # chokes on -Wl,-G. The following line is correct:
9628 shared_flag='-G'
9629 else
9630 if test "$aix_use_runtimelinking" = yes; then
9631 shared_flag='${wl}-G'
9632 else
9633 shared_flag='${wl}-bM:SRE'
9634 fi
9635 fi
9636 fi
9637
9638 export_dynamic_flag_spec='${wl}-bexpall'
9639 # It seems that -bexpall does not export symbols beginning with
9640 # underscore (_), so it is better to generate a list of symbols to export.
9641 always_export_symbols=yes
9642 if test "$aix_use_runtimelinking" = yes; then
9643 # Warning - without using the other runtime loading flags (-brtl),
9644 # -berok will link without error, but may produce a broken library.
9645 allow_undefined_flag='-berok'
9646 # Determine the default libpath from the value encoded in an
9647 # empty executable.
9648 if test "${lt_cv_aix_libpath+set}" = set; then
9649 aix_libpath=$lt_cv_aix_libpath
9650else
9651 if ${lt_cv_aix_libpath_+:} false; then :
9652 $as_echo_n "(cached) " >&6
9653else
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655/* end confdefs.h. */
9656
9657int
9658main ()
9659{
9660
9661 ;
9662 return 0;
9663}
9664_ACEOF
9665if ac_fn_c_try_link "$LINENO"; then :
9666
9667 lt_aix_libpath_sed='
9668 /Import File Strings/,/^$/ {
9669 /^0/ {
9670 s/^0 *\([^ ]*\) *$/\1/
9671 p
9672 }
9673 }'
9674 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675 # Check for a 64-bit object if we didn't find anything.
9676 if test -z "$lt_cv_aix_libpath_"; then
9677 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678 fi
9679fi
9680rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 if test -z "$lt_cv_aix_libpath_"; then
9683 lt_cv_aix_libpath_="/usr/lib:/lib"
9684 fi
9685
9686fi
9687
9688 aix_libpath=$lt_cv_aix_libpath_
9689fi
9690
9691 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9692 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9693 else
9694 if test "$host_cpu" = ia64; then
9695 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9696 allow_undefined_flag="-z nodefs"
9697 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"
9698 else
9699 # Determine the default libpath from the value encoded in an
9700 # empty executable.
9701 if test "${lt_cv_aix_libpath+set}" = set; then
9702 aix_libpath=$lt_cv_aix_libpath
9703else
9704 if ${lt_cv_aix_libpath_+:} false; then :
9705 $as_echo_n "(cached) " >&6
9706else
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h. */
9709
9710int
9711main ()
9712{
9713
9714 ;
9715 return 0;
9716}
9717_ACEOF
9718if ac_fn_c_try_link "$LINENO"; then :
9719
9720 lt_aix_libpath_sed='
9721 /Import File Strings/,/^$/ {
9722 /^0/ {
9723 s/^0 *\([^ ]*\) *$/\1/
9724 p
9725 }
9726 }'
9727 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728 # Check for a 64-bit object if we didn't find anything.
9729 if test -z "$lt_cv_aix_libpath_"; then
9730 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731 fi
9732fi
9733rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 if test -z "$lt_cv_aix_libpath_"; then
9736 lt_cv_aix_libpath_="/usr/lib:/lib"
9737 fi
9738
9739fi
9740
9741 aix_libpath=$lt_cv_aix_libpath_
9742fi
9743
9744 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9745 # Warning - without using the other run time loading flags,
9746 # -berok will link without error, but may produce a broken library.
9747 no_undefined_flag=' ${wl}-bernotok'
9748 allow_undefined_flag=' ${wl}-berok'
9749 if test "$with_gnu_ld" = yes; then
9750 # We only use this code for GNU lds that support --whole-archive.
9751 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9752 else
9753 # Exported symbols can be pulled into shared objects from archives
9754 whole_archive_flag_spec='$convenience'
9755 fi
9756 archive_cmds_need_lc=yes
9757 # This is similar to how AIX traditionally builds its shared libraries.
9758 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9759 fi
9760 fi
9761 ;;
9762
9763 amigaos*)
9764 case $host_cpu in
9765 powerpc)
9766 # see comment about AmigaOS4 .so support
9767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9768 archive_expsym_cmds=''
9769 ;;
9770 m68k)
9771 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)'
9772 hardcode_libdir_flag_spec='-L$libdir'
9773 hardcode_minus_L=yes
9774 ;;
9775 esac
9776 ;;
9777
9778 bsdi[45]*)
9779 export_dynamic_flag_spec=-rdynamic
9780 ;;
9781
9782 cygwin* | mingw* | pw32* | cegcc*)
9783 # When not using gcc, we currently assume that we are using
9784 # Microsoft Visual C++.
9785 # hardcode_libdir_flag_spec is actually meaningless, as there is
9786 # no search path for DLLs.
9787 case $cc_basename in
9788 cl*)
9789 # Native MSVC
9790 hardcode_libdir_flag_spec=' '
9791 allow_undefined_flag=unsupported
9792 always_export_symbols=yes
9793 file_list_spec='@'
9794 # Tell ltmain to make .lib files, not .a files.
9795 libext=lib
9796 # Tell ltmain to make .dll files, not .so files.
9797 shrext_cmds=".dll"
9798 # FIXME: Setting linknames here is a bad hack.
9799 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9800 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9801 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9802 else
9803 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9804 fi~
9805 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9806 linknames='
9807 # The linker will not automatically build a static lib if we build a DLL.
9808 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9809 enable_shared_with_static_runtimes=yes
9810 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9812 # Don't use ranlib
9813 old_postinstall_cmds='chmod 644 $oldlib'
9814 postlink_cmds='lt_outputfile="@OUTPUT@"~
9815 lt_tool_outputfile="@TOOL_OUTPUT@"~
9816 case $lt_outputfile in
9817 *.exe|*.EXE) ;;
9818 *)
9819 lt_outputfile="$lt_outputfile.exe"
9820 lt_tool_outputfile="$lt_tool_outputfile.exe"
9821 ;;
9822 esac~
9823 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9824 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9825 $RM "$lt_outputfile.manifest";
9826 fi'
9827 ;;
9828 *)
9829 # Assume MSVC wrapper
9830 hardcode_libdir_flag_spec=' '
9831 allow_undefined_flag=unsupported
9832 # Tell ltmain to make .lib files, not .a files.
9833 libext=lib
9834 # Tell ltmain to make .dll files, not .so files.
9835 shrext_cmds=".dll"
9836 # FIXME: Setting linknames here is a bad hack.
9837 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9838 # The linker will automatically build a .lib file if we build a DLL.
9839 old_archive_from_new_cmds='true'
9840 # FIXME: Should let the user specify the lib program.
9841 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9842 enable_shared_with_static_runtimes=yes
9843 ;;
9844 esac
9845 ;;
9846
9847 darwin* | rhapsody*)
9848
9849
9850 archive_cmds_need_lc=no
9851 hardcode_direct=no
9852 hardcode_automatic=yes
9853 hardcode_shlibpath_var=unsupported
9854 if test "$lt_cv_ld_force_load" = "yes"; then
9855 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\"`'
9856
9857 else
9858 whole_archive_flag_spec=''
9859 fi
9860 link_all_deplibs=yes
9861 allow_undefined_flag="$_lt_dar_allow_undefined"
9862 case $cc_basename in
9863 ifort*) _lt_dar_can_shared=yes ;;
9864 *) _lt_dar_can_shared=$GCC ;;
9865 esac
9866 if test "$_lt_dar_can_shared" = "yes"; then
9867 output_verbose_link_cmd=func_echo_all
9868 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9869 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9870 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}"
9871 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}"
9872
9873 else
9874 ld_shlibs=no
9875 fi
9876
9877 ;;
9878
9879 dgux*)
9880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_libdir_flag_spec='-L$libdir'
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9886 # support. Future versions do this automatically, but an explicit c++rt0.o
9887 # does not break anything, and helps significantly (at the cost of a little
9888 # extra space).
9889 freebsd2.2*)
9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9891 hardcode_libdir_flag_spec='-R$libdir'
9892 hardcode_direct=yes
9893 hardcode_shlibpath_var=no
9894 ;;
9895
9896 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9897 freebsd2.*)
9898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9899 hardcode_direct=yes
9900 hardcode_minus_L=yes
9901 hardcode_shlibpath_var=no
9902 ;;
9903
9904 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9905 freebsd* | dragonfly*)
9906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9907 hardcode_libdir_flag_spec='-R$libdir'
9908 hardcode_direct=yes
9909 hardcode_shlibpath_var=no
9910 ;;
9911
9912 hpux9*)
9913 if test "$GCC" = yes; then
9914 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9915 else
9916 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9917 fi
9918 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9919 hardcode_libdir_separator=:
9920 hardcode_direct=yes
9921
9922 # hardcode_minus_L: Not really in the search PATH,
9923 # but as the default location of the library.
9924 hardcode_minus_L=yes
9925 export_dynamic_flag_spec='${wl}-E'
9926 ;;
9927
9928 hpux10*)
9929 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9930 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9931 else
9932 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9933 fi
9934 if test "$with_gnu_ld" = no; then
9935 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9936 hardcode_libdir_separator=:
9937 hardcode_direct=yes
9938 hardcode_direct_absolute=yes
9939 export_dynamic_flag_spec='${wl}-E'
9940 # hardcode_minus_L: Not really in the search PATH,
9941 # but as the default location of the library.
9942 hardcode_minus_L=yes
9943 fi
9944 ;;
9945
9946 hpux11*)
9947 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9948 case $host_cpu in
9949 hppa*64*)
9950 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9951 ;;
9952 ia64*)
9953 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9954 ;;
9955 *)
9956 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9957 ;;
9958 esac
9959 else
9960 case $host_cpu in
9961 hppa*64*)
9962 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9963 ;;
9964 ia64*)
9965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9966 ;;
9967 *)
9968
9969 # Older versions of the 11.00 compiler do not understand -b yet
9970 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9972$as_echo_n "checking if $CC understands -b... " >&6; }
9973if ${lt_cv_prog_compiler__b+:} false; then :
9974 $as_echo_n "(cached) " >&6
9975else
9976 lt_cv_prog_compiler__b=no
9977 save_LDFLAGS="$LDFLAGS"
9978 LDFLAGS="$LDFLAGS -b"
9979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9981 # The linker can only warn and ignore the option if not recognized
9982 # So say no if there are warnings
9983 if test -s conftest.err; then
9984 # Append any errors to the config.log.
9985 cat conftest.err 1>&5
9986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9988 if diff conftest.exp conftest.er2 >/dev/null; then
9989 lt_cv_prog_compiler__b=yes
9990 fi
9991 else
9992 lt_cv_prog_compiler__b=yes
9993 fi
9994 fi
9995 $RM -r conftest*
9996 LDFLAGS="$save_LDFLAGS"
9997
9998fi
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10000$as_echo "$lt_cv_prog_compiler__b" >&6; }
10001
10002if test x"$lt_cv_prog_compiler__b" = xyes; then
10003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10004else
10005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10006fi
10007
10008 ;;
10009 esac
10010 fi
10011 if test "$with_gnu_ld" = no; then
10012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10013 hardcode_libdir_separator=:
10014
10015 case $host_cpu in
10016 hppa*64*|ia64*)
10017 hardcode_direct=no
10018 hardcode_shlibpath_var=no
10019 ;;
10020 *)
10021 hardcode_direct=yes
10022 hardcode_direct_absolute=yes
10023 export_dynamic_flag_spec='${wl}-E'
10024
10025 # hardcode_minus_L: Not really in the search PATH,
10026 # but as the default location of the library.
10027 hardcode_minus_L=yes
10028 ;;
10029 esac
10030 fi
10031 ;;
10032
10033 irix5* | irix6* | nonstopux*)
10034 if test "$GCC" = yes; then
10035 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'
10036 # Try to use the -exported_symbol ld option, if it does not
10037 # work, assume that -exports_file does not work either and
10038 # implicitly export all symbols.
10039 # This should be the same for all languages, so no per-tag cache variable.
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10041$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10042if ${lt_cv_irix_exported_symbol+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044else
10045 save_LDFLAGS="$LDFLAGS"
10046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048/* end confdefs.h. */
10049int foo (void) { return 0; }
10050_ACEOF
10051if ac_fn_c_try_link "$LINENO"; then :
10052 lt_cv_irix_exported_symbol=yes
10053else
10054 lt_cv_irix_exported_symbol=no
10055fi
10056rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 LDFLAGS="$save_LDFLAGS"
10059fi
10060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10061$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10062 if test "$lt_cv_irix_exported_symbol" = yes; then
10063 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'
10064 fi
10065 else
10066 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'
10067 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'
10068 fi
10069 archive_cmds_need_lc='no'
10070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10071 hardcode_libdir_separator=:
10072 inherit_rpath=yes
10073 link_all_deplibs=yes
10074 ;;
10075
10076 netbsd*)
10077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10079 else
10080 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10081 fi
10082 hardcode_libdir_flag_spec='-R$libdir'
10083 hardcode_direct=yes
10084 hardcode_shlibpath_var=no
10085 ;;
10086
10087 newsos6)
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_direct=yes
10090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091 hardcode_libdir_separator=:
10092 hardcode_shlibpath_var=no
10093 ;;
10094
10095 *nto* | *qnx*)
10096 ;;
10097
10098 openbsd*)
10099 if test -f /usr/libexec/ld.so; then
10100 hardcode_direct=yes
10101 hardcode_shlibpath_var=no
10102 hardcode_direct_absolute=yes
10103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10107 export_dynamic_flag_spec='${wl}-E'
10108 else
10109 case $host_os in
10110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_libdir_flag_spec='-R$libdir'
10113 ;;
10114 *)
10115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10117 ;;
10118 esac
10119 fi
10120 else
10121 ld_shlibs=no
10122 fi
10123 ;;
10124
10125 os2*)
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_minus_L=yes
10128 allow_undefined_flag=unsupported
10129 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10131 ;;
10132
10133 osf3*)
10134 if test "$GCC" = yes; then
10135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10136 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'
10137 else
10138 allow_undefined_flag=' -expect_unresolved \*'
10139 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'
10140 fi
10141 archive_cmds_need_lc='no'
10142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143 hardcode_libdir_separator=:
10144 ;;
10145
10146 osf4* | osf5*) # as osf3* with the addition of -msym flag
10147 if test "$GCC" = yes; then
10148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10149 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'
10150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10151 else
10152 allow_undefined_flag=' -expect_unresolved \*'
10153 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'
10154 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~
10155 $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'
10156
10157 # Both c and cxx compiler support -rpath directly
10158 hardcode_libdir_flag_spec='-rpath $libdir'
10159 fi
10160 archive_cmds_need_lc='no'
10161 hardcode_libdir_separator=:
10162 ;;
10163
10164 solaris*)
10165 no_undefined_flag=' -z defs'
10166 if test "$GCC" = yes; then
10167 wlarc='${wl}'
10168 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10170 $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'
10171 else
10172 case `$CC -V 2>&1` in
10173 *"Compilers 5.0"*)
10174 wlarc=''
10175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10178 ;;
10179 *)
10180 wlarc='${wl}'
10181 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10183 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10184 ;;
10185 esac
10186 fi
10187 hardcode_libdir_flag_spec='-R$libdir'
10188 hardcode_shlibpath_var=no
10189 case $host_os in
10190 solaris2.[0-5] | solaris2.[0-5].*) ;;
10191 *)
10192 # The compiler driver will combine and reorder linker options,
10193 # but understands `-z linker_flag'. GCC discards it without `$wl',
10194 # but is careful enough not to reorder.
10195 # Supported since Solaris 2.6 (maybe 2.5.1?)
10196 if test "$GCC" = yes; then
10197 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10198 else
10199 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10200 fi
10201 ;;
10202 esac
10203 link_all_deplibs=yes
10204 ;;
10205
10206 sunos4*)
10207 if test "x$host_vendor" = xsequent; then
10208 # Use $CC to link under sequent, because it throws in some extra .o
10209 # files that make .init and .fini sections work.
10210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10211 else
10212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10213 fi
10214 hardcode_libdir_flag_spec='-L$libdir'
10215 hardcode_direct=yes
10216 hardcode_minus_L=yes
10217 hardcode_shlibpath_var=no
10218 ;;
10219
10220 sysv4)
10221 case $host_vendor in
10222 sni)
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_direct=yes # is this really true???
10225 ;;
10226 siemens)
10227 ## LD is ld it makes a PLAMLIB
10228 ## CC just makes a GrossModule.
10229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10230 reload_cmds='$CC -r -o $output$reload_objs'
10231 hardcode_direct=no
10232 ;;
10233 motorola)
10234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10236 ;;
10237 esac
10238 runpath_var='LD_RUN_PATH'
10239 hardcode_shlibpath_var=no
10240 ;;
10241
10242 sysv4.3*)
10243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244 hardcode_shlibpath_var=no
10245 export_dynamic_flag_spec='-Bexport'
10246 ;;
10247
10248 sysv4*MP*)
10249 if test -d /usr/nec; then
10250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10251 hardcode_shlibpath_var=no
10252 runpath_var=LD_RUN_PATH
10253 hardcode_runpath_var=yes
10254 ld_shlibs=yes
10255 fi
10256 ;;
10257
10258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10259 no_undefined_flag='${wl}-z,text'
10260 archive_cmds_need_lc=no
10261 hardcode_shlibpath_var=no
10262 runpath_var='LD_RUN_PATH'
10263
10264 if test "$GCC" = yes; then
10265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 else
10268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 fi
10271 ;;
10272
10273 sysv5* | sco3.2v5* | sco5v6*)
10274 # Note: We can NOT use -z defs as we might desire, because we do not
10275 # link with -lc, and that would cause any symbols used from libc to
10276 # always be unresolved, which means just about no library would
10277 # ever link correctly. If we're not using GNU ld we use -z text
10278 # though, which does catch some bad symbols but isn't as heavy-handed
10279 # as -z defs.
10280 no_undefined_flag='${wl}-z,text'
10281 allow_undefined_flag='${wl}-z,nodefs'
10282 archive_cmds_need_lc=no
10283 hardcode_shlibpath_var=no
10284 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10285 hardcode_libdir_separator=':'
10286 link_all_deplibs=yes
10287 export_dynamic_flag_spec='${wl}-Bexport'
10288 runpath_var='LD_RUN_PATH'
10289
10290 if test "$GCC" = yes; then
10291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293 else
10294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 fi
10297 ;;
10298
10299 uts4*)
10300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_libdir_flag_spec='-L$libdir'
10302 hardcode_shlibpath_var=no
10303 ;;
10304
10305 *)
10306 ld_shlibs=no
10307 ;;
10308 esac
10309
10310 if test x$host_vendor = xsni; then
10311 case $host in
10312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10313 export_dynamic_flag_spec='${wl}-Blargedynsym'
10314 ;;
10315 esac
10316 fi
10317 fi
10318
10319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10320$as_echo "$ld_shlibs" >&6; }
10321test "$ld_shlibs" = no && can_build_shared=no
10322
10323with_gnu_ld=$with_gnu_ld
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339#
10340# Do we need to explicitly link libc?
10341#
10342case "x$archive_cmds_need_lc" in
10343x|xyes)
10344 # Assume -lc should be added
10345 archive_cmds_need_lc=yes
10346
10347 if test "$enable_shared" = yes && test "$GCC" = yes; then
10348 case $archive_cmds in
10349 *'~'*)
10350 # FIXME: we may have to deal with multi-command sequences.
10351 ;;
10352 '$CC '*)
10353 # Test whether the compiler implicitly links with -lc since on some
10354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10355 # to ld, don't add -lc before -lgcc.
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10357$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10358if ${lt_cv_archive_cmds_need_lc+:} false; then :
10359 $as_echo_n "(cached) " >&6
10360else
10361 $RM conftest*
10362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10363
10364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10365 (eval $ac_compile) 2>&5
10366 ac_status=$?
10367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368 test $ac_status = 0; } 2>conftest.err; then
10369 soname=conftest
10370 lib=conftest
10371 libobjs=conftest.$ac_objext
10372 deplibs=
10373 wl=$lt_prog_compiler_wl
10374 pic_flag=$lt_prog_compiler_pic
10375 compiler_flags=-v
10376 linker_flags=-v
10377 verstring=
10378 output_objdir=.
10379 libname=conftest
10380 lt_save_allow_undefined_flag=$allow_undefined_flag
10381 allow_undefined_flag=
10382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10384 ac_status=$?
10385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10386 test $ac_status = 0; }
10387 then
10388 lt_cv_archive_cmds_need_lc=no
10389 else
10390 lt_cv_archive_cmds_need_lc=yes
10391 fi
10392 allow_undefined_flag=$lt_save_allow_undefined_flag
10393 else
10394 cat conftest.err 1>&5
10395 fi
10396 $RM conftest*
10397
10398fi
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10400$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10401 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10402 ;;
10403 esac
10404 fi
10405 ;;
10406esac
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10560$as_echo_n "checking dynamic linker characteristics... " >&6; }
10561
10562if test "$GCC" = yes; then
10563 case $host_os in
10564 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10565 *) lt_awk_arg="/^libraries:/" ;;
10566 esac
10567 case $host_os in
10568 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10569 *) lt_sed_strip_eq="s,=/,/,g" ;;
10570 esac
10571 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10572 case $lt_search_path_spec in
10573 *\;*)
10574 # if the path contains ";" then we assume it to be the separator
10575 # otherwise default to the standard path separator (i.e. ":") - it is
10576 # assumed that no part of a normal pathname contains ";" but that should
10577 # okay in the real world where ";" in dirpaths is itself problematic.
10578 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10579 ;;
10580 *)
10581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10582 ;;
10583 esac
10584 # Ok, now we have the path, separated by spaces, we can step through it
10585 # and add multilib dir if necessary.
10586 lt_tmp_lt_search_path_spec=
10587 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10588 for lt_sys_path in $lt_search_path_spec; do
10589 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10590 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10591 else
10592 test -d "$lt_sys_path" && \
10593 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10594 fi
10595 done
10596 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10597BEGIN {RS=" "; FS="/|\n";} {
10598 lt_foo="";
10599 lt_count=0;
10600 for (lt_i = NF; lt_i > 0; lt_i--) {
10601 if ($lt_i != "" && $lt_i != ".") {
10602 if ($lt_i == "..") {
10603 lt_count++;
10604 } else {
10605 if (lt_count == 0) {
10606 lt_foo="/" $lt_i lt_foo;
10607 } else {
10608 lt_count--;
10609 }
10610 }
10611 }
10612 }
10613 if (lt_foo != "") { lt_freq[lt_foo]++; }
10614 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10615}'`
10616 # AWK program above erroneously prepends '/' to C:/dos/paths
10617 # for these hosts.
10618 case $host_os in
10619 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10620 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10621 esac
10622 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10623else
10624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10625fi
10626library_names_spec=
10627libname_spec='lib$name'
10628soname_spec=
10629shrext_cmds=".so"
10630postinstall_cmds=
10631postuninstall_cmds=
10632finish_cmds=
10633finish_eval=
10634shlibpath_var=
10635shlibpath_overrides_runpath=unknown
10636version_type=none
10637dynamic_linker="$host_os ld.so"
10638sys_lib_dlsearch_path_spec="/lib /usr/lib"
10639need_lib_prefix=unknown
10640hardcode_into_libs=no
10641
10642# when you set need_version to no, make sure it does not cause -set_version
10643# flags to be left without arguments
10644need_version=unknown
10645
10646case $host_os in
10647aix3*)
10648 version_type=linux # correct to gnu/linux during the next big refactor
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10650 shlibpath_var=LIBPATH
10651
10652 # AIX 3 has no versioning support, so we append a major version to the name.
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 ;;
10655
10656aix[4-9]*)
10657 version_type=linux # correct to gnu/linux during the next big refactor
10658 need_lib_prefix=no
10659 need_version=no
10660 hardcode_into_libs=yes
10661 if test "$host_cpu" = ia64; then
10662 # AIX 5 supports IA64
10663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 else
10666 # With GCC up to 2.95.x, collect2 would create an import file
10667 # for dependence libraries. The import file would start with
10668 # the line `#! .'. This would cause the generated library to
10669 # depend on `.', always an invalid library. This was fixed in
10670 # development snapshots of GCC prior to 3.0.
10671 case $host_os in
10672 aix4 | aix4.[01] | aix4.[01].*)
10673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10674 echo ' yes '
10675 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10676 :
10677 else
10678 can_build_shared=no
10679 fi
10680 ;;
10681 esac
10682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10683 # soname into executable. Probably we can add versioning support to
10684 # collect2, so additional links can be useful in future.
10685 if test "$aix_use_runtimelinking" = yes; then
10686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10687 # instead of lib<name>.a to let people know that these are not
10688 # typical AIX shared libraries.
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 else
10691 # We preserve .a as extension for shared libraries through AIX4.2
10692 # and later when we are not doing run time linking.
10693 library_names_spec='${libname}${release}.a $libname.a'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 fi
10696 shlibpath_var=LIBPATH
10697 fi
10698 ;;
10699
10700amigaos*)
10701 case $host_cpu in
10702 powerpc)
10703 # Since July 2007 AmigaOS4 officially supports .so libraries.
10704 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 ;;
10707 m68k)
10708 library_names_spec='$libname.ixlibrary $libname.a'
10709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10710 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10711 ;;
10712 esac
10713 ;;
10714
10715beos*)
10716 library_names_spec='${libname}${shared_ext}'
10717 dynamic_linker="$host_os ld.so"
10718 shlibpath_var=LIBRARY_PATH
10719 ;;
10720
10721bsdi[45]*)
10722 version_type=linux # correct to gnu/linux during the next big refactor
10723 need_version=no
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10730 # the default ld.so.conf also contains /usr/contrib/lib and
10731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10732 # libtool to hard-code these into programs
10733 ;;
10734
10735cygwin* | mingw* | pw32* | cegcc*)
10736 version_type=windows
10737 shrext_cmds=".dll"
10738 need_version=no
10739 need_lib_prefix=no
10740
10741 case $GCC,$cc_basename in
10742 yes,*)
10743 # gcc
10744 library_names_spec='$libname.dll.a'
10745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10746 postinstall_cmds='base_file=`basename \${file}`~
10747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10748 dldir=$destdir/`dirname \$dlpath`~
10749 test -d \$dldir || mkdir -p \$dldir~
10750 $install_prog $dir/$dlname \$dldir/$dlname~
10751 chmod a+x \$dldir/$dlname~
10752 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10753 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10754 fi'
10755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10756 dlpath=$dir/\$dldll~
10757 $RM \$dlpath'
10758 shlibpath_overrides_runpath=yes
10759
10760 case $host_os in
10761 cygwin*)
10762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10764
10765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10766 ;;
10767 mingw* | cegcc*)
10768 # MinGW DLLs use traditional 'lib' prefix
10769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10770 ;;
10771 pw32*)
10772 # pw32 DLLs use 'pw' prefix rather than 'lib'
10773 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10774 ;;
10775 esac
10776 dynamic_linker='Win32 ld.exe'
10777 ;;
10778
10779 *,cl*)
10780 # Native MSVC
10781 libname_spec='$name'
10782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10783 library_names_spec='${libname}.dll.lib'
10784
10785 case $build_os in
10786 mingw*)
10787 sys_lib_search_path_spec=
10788 lt_save_ifs=$IFS
10789 IFS=';'
10790 for lt_path in $LIB
10791 do
10792 IFS=$lt_save_ifs
10793 # Let DOS variable expansion print the short 8.3 style file name.
10794 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10795 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10796 done
10797 IFS=$lt_save_ifs
10798 # Convert to MSYS style.
10799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10800 ;;
10801 cygwin*)
10802 # Convert to unix form, then to dos form, then back to unix form
10803 # but this time dos style (no spaces!) so that the unix form looks
10804 # like /cygdrive/c/PROGRA~1:/cygdr...
10805 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10806 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10807 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10808 ;;
10809 *)
10810 sys_lib_search_path_spec="$LIB"
10811 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10812 # It is most probably a Windows format PATH.
10813 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10814 else
10815 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10816 fi
10817 # FIXME: find the short name or the path components, as spaces are
10818 # common. (e.g. "Program Files" -> "PROGRA~1")
10819 ;;
10820 esac
10821
10822 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10823 postinstall_cmds='base_file=`basename \${file}`~
10824 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10825 dldir=$destdir/`dirname \$dlpath`~
10826 test -d \$dldir || mkdir -p \$dldir~
10827 $install_prog $dir/$dlname \$dldir/$dlname'
10828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10829 dlpath=$dir/\$dldll~
10830 $RM \$dlpath'
10831 shlibpath_overrides_runpath=yes
10832 dynamic_linker='Win32 link.exe'
10833 ;;
10834
10835 *)
10836 # Assume MSVC wrapper
10837 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10838 dynamic_linker='Win32 ld.exe'
10839 ;;
10840 esac
10841 # FIXME: first we should search . and the directory the executable is in
10842 shlibpath_var=PATH
10843 ;;
10844
10845darwin* | rhapsody*)
10846 dynamic_linker="$host_os dyld"
10847 version_type=darwin
10848 need_lib_prefix=no
10849 need_version=no
10850 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10851 soname_spec='${libname}${release}${major}$shared_ext'
10852 shlibpath_overrides_runpath=yes
10853 shlibpath_var=DYLD_LIBRARY_PATH
10854 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10855
10856 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10857 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10858 ;;
10859
10860dgux*)
10861 version_type=linux # correct to gnu/linux during the next big refactor
10862 need_lib_prefix=no
10863 need_version=no
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10865 soname_spec='${libname}${release}${shared_ext}$major'
10866 shlibpath_var=LD_LIBRARY_PATH
10867 ;;
10868
10869freebsd* | dragonfly*)
10870 # DragonFly does not have aout. When/if they implement a new
10871 # versioning mechanism, adjust this.
10872 if test -x /usr/bin/objformat; then
10873 objformat=`/usr/bin/objformat`
10874 else
10875 case $host_os in
10876 freebsd[23].*) objformat=aout ;;
10877 *) objformat=elf ;;
10878 esac
10879 fi
10880 version_type=freebsd-$objformat
10881 case $version_type in
10882 freebsd-elf*)
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10884 need_version=no
10885 need_lib_prefix=no
10886 ;;
10887 freebsd-*)
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10889 need_version=yes
10890 ;;
10891 esac
10892 shlibpath_var=LD_LIBRARY_PATH
10893 case $host_os in
10894 freebsd2.*)
10895 shlibpath_overrides_runpath=yes
10896 ;;
10897 freebsd3.[01]* | freebsdelf3.[01]*)
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10900 ;;
10901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10905 ;;
10906 *) # from 4.6 on, and DragonFly
10907 shlibpath_overrides_runpath=yes
10908 hardcode_into_libs=yes
10909 ;;
10910 esac
10911 ;;
10912
10913gnu*)
10914 version_type=linux # correct to gnu/linux during the next big refactor
10915 need_lib_prefix=no
10916 need_version=no
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath=no
10921 hardcode_into_libs=yes
10922 ;;
10923
10924haiku*)
10925 version_type=linux # correct to gnu/linux during the next big refactor
10926 need_lib_prefix=no
10927 need_version=no
10928 dynamic_linker="$host_os runtime_loader"
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 shlibpath_var=LIBRARY_PATH
10932 shlibpath_overrides_runpath=yes
10933 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10934 hardcode_into_libs=yes
10935 ;;
10936
10937hpux9* | hpux10* | hpux11*)
10938 # Give a soname corresponding to the major version so that dld.sl refuses to
10939 # link against other versions.
10940 version_type=sunos
10941 need_lib_prefix=no
10942 need_version=no
10943 case $host_cpu in
10944 ia64*)
10945 shrext_cmds='.so'
10946 hardcode_into_libs=yes
10947 dynamic_linker="$host_os dld.so"
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 if test "X$HPUX_IA64_MODE" = X32; then
10953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10954 else
10955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10956 fi
10957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10958 ;;
10959 hppa*64*)
10960 shrext_cmds='.sl'
10961 hardcode_into_libs=yes
10962 dynamic_linker="$host_os dld.sl"
10963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10969 ;;
10970 *)
10971 shrext_cmds='.sl'
10972 dynamic_linker="$host_os dld.sl"
10973 shlibpath_var=SHLIB_PATH
10974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 ;;
10978 esac
10979 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10980 postinstall_cmds='chmod 555 $lib'
10981 # or fails outright, so override atomically:
10982 install_override_mode=555
10983 ;;
10984
10985interix[3-9]*)
10986 version_type=linux # correct to gnu/linux during the next big refactor
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=no
10994 hardcode_into_libs=yes
10995 ;;
10996
10997irix5* | irix6* | nonstopux*)
10998 case $host_os in
10999 nonstopux*) version_type=nonstopux ;;
11000 *)
11001 if test "$lt_cv_prog_gnu_ld" = yes; then
11002 version_type=linux # correct to gnu/linux during the next big refactor
11003 else
11004 version_type=irix
11005 fi ;;
11006 esac
11007 need_lib_prefix=no
11008 need_version=no
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11011 case $host_os in
11012 irix5* | nonstopux*)
11013 libsuff= shlibsuff=
11014 ;;
11015 *)
11016 case $LD in # libtool.m4 will add one of these switches to LD
11017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11018 libsuff= shlibsuff= libmagic=32-bit;;
11019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11020 libsuff=32 shlibsuff=N32 libmagic=N32;;
11021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11023 *) libsuff= shlibsuff= libmagic=never-match;;
11024 esac
11025 ;;
11026 esac
11027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11028 shlibpath_overrides_runpath=no
11029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11031 hardcode_into_libs=yes
11032 ;;
11033
11034# No shared lib support for Linux oldld, aout, or coff.
11035linux*oldld* | linux*aout* | linux*coff*)
11036 dynamic_linker=no
11037 ;;
11038
11039# This must be glibc/ELF.
11040linux* | k*bsd*-gnu | kopensolaris*-gnu)
11041 version_type=linux # correct to gnu/linux during the next big refactor
11042 need_lib_prefix=no
11043 need_version=no
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=no
11049
11050 # Some binutils ld are patched to set DT_RUNPATH
11051 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11052 $as_echo_n "(cached) " >&6
11053else
11054 lt_cv_shlibpath_overrides_runpath=no
11055 save_LDFLAGS=$LDFLAGS
11056 save_libdir=$libdir
11057 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11058 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060/* end confdefs.h. */
11061
11062int
11063main ()
11064{
11065
11066 ;
11067 return 0;
11068}
11069_ACEOF
11070if ac_fn_c_try_link "$LINENO"; then :
11071 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11072 lt_cv_shlibpath_overrides_runpath=yes
11073fi
11074fi
11075rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LDFLAGS=$save_LDFLAGS
11078 libdir=$save_libdir
11079
11080fi
11081
11082 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11083
11084 # This implies no fast_install, which is unacceptable.
11085 # Some rework will be needed to allow for fast_install
11086 # before this can be enabled.
11087 hardcode_into_libs=yes
11088
11089 # Add ABI-specific directories to the system library path.
11090 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11091
11092 # Append ld.so.conf contents to the search path
11093 if test -f /etc/ld.so.conf; then
11094 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' ' '`
11095 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11096
11097 fi
11098
11099 # We used to test for /lib/ld.so.1 and disable shared libraries on
11100 # powerpc, because MkLinux only supported shared libraries with the
11101 # GNU dynamic linker. Since this was broken with cross compilers,
11102 # most powerpc-linux boxes support dynamic linking these days and
11103 # people can always --disable-shared, the test was removed, and we
11104 # assume the GNU/Linux dynamic linker is in use.
11105 dynamic_linker='GNU/Linux ld.so'
11106 ;;
11107
11108netbsd*)
11109 version_type=sunos
11110 need_lib_prefix=no
11111 need_version=no
11112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115 dynamic_linker='NetBSD (a.out) ld.so'
11116 else
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 dynamic_linker='NetBSD ld.elf_so'
11120 fi
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 hardcode_into_libs=yes
11124 ;;
11125
11126newsos6)
11127 version_type=linux # correct to gnu/linux during the next big refactor
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11131 ;;
11132
11133*nto* | *qnx*)
11134 version_type=qnx
11135 need_lib_prefix=no
11136 need_version=no
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=no
11141 hardcode_into_libs=yes
11142 dynamic_linker='ldqnx.so'
11143 ;;
11144
11145openbsd*)
11146 version_type=sunos
11147 sys_lib_dlsearch_path_spec="/usr/lib"
11148 need_lib_prefix=no
11149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11150 case $host_os in
11151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11152 *) need_version=no ;;
11153 esac
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11158 case $host_os in
11159 openbsd2.[89] | openbsd2.[89].*)
11160 shlibpath_overrides_runpath=no
11161 ;;
11162 *)
11163 shlibpath_overrides_runpath=yes
11164 ;;
11165 esac
11166 else
11167 shlibpath_overrides_runpath=yes
11168 fi
11169 ;;
11170
11171os2*)
11172 libname_spec='$name'
11173 shrext_cmds=".dll"
11174 need_lib_prefix=no
11175 library_names_spec='$libname${shared_ext} $libname.a'
11176 dynamic_linker='OS/2 ld.exe'
11177 shlibpath_var=LIBPATH
11178 ;;
11179
11180osf3* | osf4* | osf5*)
11181 version_type=osf
11182 need_lib_prefix=no
11183 need_version=no
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11189 ;;
11190
11191rdos*)
11192 dynamic_linker=no
11193 ;;
11194
11195solaris*)
11196 version_type=linux # correct to gnu/linux during the next big refactor
11197 need_lib_prefix=no
11198 need_version=no
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 shlibpath_overrides_runpath=yes
11203 hardcode_into_libs=yes
11204 # ldd complains unless libraries are executable
11205 postinstall_cmds='chmod +x $lib'
11206 ;;
11207
11208sunos4*)
11209 version_type=sunos
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=yes
11214 if test "$with_gnu_ld" = yes; then
11215 need_lib_prefix=no
11216 fi
11217 need_version=yes
11218 ;;
11219
11220sysv4 | sysv4.3*)
11221 version_type=linux # correct to gnu/linux during the next big refactor
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 case $host_vendor in
11226 sni)
11227 shlibpath_overrides_runpath=no
11228 need_lib_prefix=no
11229 runpath_var=LD_RUN_PATH
11230 ;;
11231 siemens)
11232 need_lib_prefix=no
11233 ;;
11234 motorola)
11235 need_lib_prefix=no
11236 need_version=no
11237 shlibpath_overrides_runpath=no
11238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11239 ;;
11240 esac
11241 ;;
11242
11243sysv4*MP*)
11244 if test -d /usr/nec ;then
11245 version_type=linux # correct to gnu/linux during the next big refactor
11246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11247 soname_spec='$libname${shared_ext}.$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 fi
11250 ;;
11251
11252sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11253 version_type=freebsd-elf
11254 need_lib_prefix=no
11255 need_version=no
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260 hardcode_into_libs=yes
11261 if test "$with_gnu_ld" = yes; then
11262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11263 else
11264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11265 case $host_os in
11266 sco3.2v5*)
11267 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11268 ;;
11269 esac
11270 fi
11271 sys_lib_dlsearch_path_spec='/usr/lib'
11272 ;;
11273
11274tpf*)
11275 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11276 version_type=linux # correct to gnu/linux during the next big refactor
11277 need_lib_prefix=no
11278 need_version=no
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=no
11282 hardcode_into_libs=yes
11283 ;;
11284
11285uts4*)
11286 version_type=linux # correct to gnu/linux during the next big refactor
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 soname_spec='${libname}${release}${shared_ext}$major'
11289 shlibpath_var=LD_LIBRARY_PATH
11290 ;;
11291
11292*)
11293 dynamic_linker=no
11294 ;;
11295esac
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11297$as_echo "$dynamic_linker" >&6; }
11298test "$dynamic_linker" = no && can_build_shared=no
11299
11300variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11301if test "$GCC" = yes; then
11302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11303fi
11304
11305if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11306 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11307fi
11308if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11309 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11310fi
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11404$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11405hardcode_action=
11406if test -n "$hardcode_libdir_flag_spec" ||
11407 test -n "$runpath_var" ||
11408 test "X$hardcode_automatic" = "Xyes" ; then
11409
11410 # We can hardcode non-existent directories.
11411 if test "$hardcode_direct" != no &&
11412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11413 # have to relink, otherwise we might link with an installed library
11414 # when we should be linking with a yet-to-be-installed one
11415 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11416 test "$hardcode_minus_L" != no; then
11417 # Linking always hardcodes the temporary library directory.
11418 hardcode_action=relink
11419 else
11420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11421 hardcode_action=immediate
11422 fi
11423else
11424 # We cannot hardcode anything, or else we can only hardcode existing
11425 # directories.
11426 hardcode_action=unsupported
11427fi
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11429$as_echo "$hardcode_action" >&6; }
11430
11431if test "$hardcode_action" = relink ||
11432 test "$inherit_rpath" = yes; then
11433 # Fast installation is not supported
11434 enable_fast_install=no
11435elif test "$shlibpath_overrides_runpath" = yes ||
11436 test "$enable_shared" = no; then
11437 # Fast installation is not necessary
11438 enable_fast_install=needless
11439fi
11440
11441
11442
11443
11444
11445
11446 if test "x$enable_dlopen" != xyes; then
11447 enable_dlopen=unknown
11448 enable_dlopen_self=unknown
11449 enable_dlopen_self_static=unknown
11450else
11451 lt_cv_dlopen=no
11452 lt_cv_dlopen_libs=
11453
11454 case $host_os in
11455 beos*)
11456 lt_cv_dlopen="load_add_on"
11457 lt_cv_dlopen_libs=
11458 lt_cv_dlopen_self=yes
11459 ;;
11460
11461 mingw* | pw32* | cegcc*)
11462 lt_cv_dlopen="LoadLibrary"
11463 lt_cv_dlopen_libs=
11464 ;;
11465
11466 cygwin*)
11467 lt_cv_dlopen="dlopen"
11468 lt_cv_dlopen_libs=
11469 ;;
11470
11471 darwin*)
11472 # if libdl is installed we need to link against it
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11474$as_echo_n "checking for dlopen in -ldl... " >&6; }
11475if ${ac_cv_lib_dl_dlopen+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477else
11478 ac_check_lib_save_LIBS=$LIBS
11479LIBS="-ldl $LIBS"
11480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481/* end confdefs.h. */
11482
11483/* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486#ifdef __cplusplus
11487extern "C"
11488#endif
11489char dlopen ();
11490int
11491main ()
11492{
11493return dlopen ();
11494 ;
11495 return 0;
11496}
11497_ACEOF
11498if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_dl_dlopen=yes
11500else
11501 ac_cv_lib_dl_dlopen=no
11502fi
11503rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505LIBS=$ac_check_lib_save_LIBS
11506fi
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11508$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11509if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11511else
11512
11513 lt_cv_dlopen="dyld"
11514 lt_cv_dlopen_libs=
11515 lt_cv_dlopen_self=yes
11516
11517fi
11518
11519 ;;
11520
11521 *)
11522 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11523if test "x$ac_cv_func_shl_load" = xyes; then :
11524 lt_cv_dlopen="shl_load"
11525else
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11527$as_echo_n "checking for shl_load in -ldld... " >&6; }
11528if ${ac_cv_lib_dld_shl_load+:} false; then :
11529 $as_echo_n "(cached) " >&6
11530else
11531 ac_check_lib_save_LIBS=$LIBS
11532LIBS="-ldld $LIBS"
11533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h. */
11535
11536/* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11539#ifdef __cplusplus
11540extern "C"
11541#endif
11542char shl_load ();
11543int
11544main ()
11545{
11546return shl_load ();
11547 ;
11548 return 0;
11549}
11550_ACEOF
11551if ac_fn_c_try_link "$LINENO"; then :
11552 ac_cv_lib_dld_shl_load=yes
11553else
11554 ac_cv_lib_dld_shl_load=no
11555fi
11556rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558LIBS=$ac_check_lib_save_LIBS
11559fi
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11561$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11562if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11563 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11564else
11565 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11566if test "x$ac_cv_func_dlopen" = xyes; then :
11567 lt_cv_dlopen="dlopen"
11568else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11570$as_echo_n "checking for dlopen in -ldl... " >&6; }
11571if ${ac_cv_lib_dl_dlopen+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573else
11574 ac_check_lib_save_LIBS=$LIBS
11575LIBS="-ldl $LIBS"
11576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577/* end confdefs.h. */
11578
11579/* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582#ifdef __cplusplus
11583extern "C"
11584#endif
11585char dlopen ();
11586int
11587main ()
11588{
11589return dlopen ();
11590 ;
11591 return 0;
11592}
11593_ACEOF
11594if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_dl_dlopen=yes
11596else
11597 ac_cv_lib_dl_dlopen=no
11598fi
11599rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601LIBS=$ac_check_lib_save_LIBS
11602fi
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11604$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11605if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11607else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11609$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11610if ${ac_cv_lib_svld_dlopen+:} false; then :
11611 $as_echo_n "(cached) " >&6
11612else
11613 ac_check_lib_save_LIBS=$LIBS
11614LIBS="-lsvld $LIBS"
11615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h. */
11617
11618/* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11621#ifdef __cplusplus
11622extern "C"
11623#endif
11624char dlopen ();
11625int
11626main ()
11627{
11628return dlopen ();
11629 ;
11630 return 0;
11631}
11632_ACEOF
11633if ac_fn_c_try_link "$LINENO"; then :
11634 ac_cv_lib_svld_dlopen=yes
11635else
11636 ac_cv_lib_svld_dlopen=no
11637fi
11638rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640LIBS=$ac_check_lib_save_LIBS
11641fi
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11643$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11644if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11646else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11648$as_echo_n "checking for dld_link in -ldld... " >&6; }
11649if ${ac_cv_lib_dld_dld_link+:} false; then :
11650 $as_echo_n "(cached) " >&6
11651else
11652 ac_check_lib_save_LIBS=$LIBS
11653LIBS="-ldld $LIBS"
11654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h. */
11656
11657/* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11660#ifdef __cplusplus
11661extern "C"
11662#endif
11663char dld_link ();
11664int
11665main ()
11666{
11667return dld_link ();
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672if ac_fn_c_try_link "$LINENO"; then :
11673 ac_cv_lib_dld_dld_link=yes
11674else
11675 ac_cv_lib_dld_dld_link=no
11676fi
11677rm -f core conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679LIBS=$ac_check_lib_save_LIBS
11680fi
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11682$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11683if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11684 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11685fi
11686
11687
11688fi
11689
11690
11691fi
11692
11693
11694fi
11695
11696
11697fi
11698
11699
11700fi
11701
11702 ;;
11703 esac
11704
11705 if test "x$lt_cv_dlopen" != xno; then
11706 enable_dlopen=yes
11707 else
11708 enable_dlopen=no
11709 fi
11710
11711 case $lt_cv_dlopen in
11712 dlopen)
11713 save_CPPFLAGS="$CPPFLAGS"
11714 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11715
11716 save_LDFLAGS="$LDFLAGS"
11717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11718
11719 save_LIBS="$LIBS"
11720 LIBS="$lt_cv_dlopen_libs $LIBS"
11721
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11723$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11724if ${lt_cv_dlopen_self+:} false; then :
11725 $as_echo_n "(cached) " >&6
11726else
11727 if test "$cross_compiling" = yes; then :
11728 lt_cv_dlopen_self=cross
11729else
11730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11731 lt_status=$lt_dlunknown
11732 cat > conftest.$ac_ext <<_LT_EOF
11733#line $LINENO "configure"
11734#include "confdefs.h"
11735
11736#if HAVE_DLFCN_H
11737#include <dlfcn.h>
11738#endif
11739
11740#include <stdio.h>
11741
11742#ifdef RTLD_GLOBAL
11743# define LT_DLGLOBAL RTLD_GLOBAL
11744#else
11745# ifdef DL_GLOBAL
11746# define LT_DLGLOBAL DL_GLOBAL
11747# else
11748# define LT_DLGLOBAL 0
11749# endif
11750#endif
11751
11752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11753 find out it does not work in some platform. */
11754#ifndef LT_DLLAZY_OR_NOW
11755# ifdef RTLD_LAZY
11756# define LT_DLLAZY_OR_NOW RTLD_LAZY
11757# else
11758# ifdef DL_LAZY
11759# define LT_DLLAZY_OR_NOW DL_LAZY
11760# else
11761# ifdef RTLD_NOW
11762# define LT_DLLAZY_OR_NOW RTLD_NOW
11763# else
11764# ifdef DL_NOW
11765# define LT_DLLAZY_OR_NOW DL_NOW
11766# else
11767# define LT_DLLAZY_OR_NOW 0
11768# endif
11769# endif
11770# endif
11771# endif
11772#endif
11773
11774/* When -fvisbility=hidden is used, assume the code has been annotated
11775 correspondingly for the symbols needed. */
11776#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11777int fnord () __attribute__((visibility("default")));
11778#endif
11779
11780int fnord () { return 42; }
11781int main ()
11782{
11783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11784 int status = $lt_dlunknown;
11785
11786 if (self)
11787 {
11788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11789 else
11790 {
11791 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11792 else puts (dlerror ());
11793 }
11794 /* dlclose (self); */
11795 }
11796 else
11797 puts (dlerror ());
11798
11799 return status;
11800}
11801_LT_EOF
11802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11803 (eval $ac_link) 2>&5
11804 ac_status=$?
11805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11807 (./conftest; exit; ) >&5 2>/dev/null
11808 lt_status=$?
11809 case x$lt_status in
11810 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11813 esac
11814 else :
11815 # compilation failed
11816 lt_cv_dlopen_self=no
11817 fi
11818fi
11819rm -fr conftest*
11820
11821
11822fi
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11824$as_echo "$lt_cv_dlopen_self" >&6; }
11825
11826 if test "x$lt_cv_dlopen_self" = xyes; then
11827 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11829$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11830if ${lt_cv_dlopen_self_static+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832else
11833 if test "$cross_compiling" = yes; then :
11834 lt_cv_dlopen_self_static=cross
11835else
11836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837 lt_status=$lt_dlunknown
11838 cat > conftest.$ac_ext <<_LT_EOF
11839#line $LINENO "configure"
11840#include "confdefs.h"
11841
11842#if HAVE_DLFCN_H
11843#include <dlfcn.h>
11844#endif
11845
11846#include <stdio.h>
11847
11848#ifdef RTLD_GLOBAL
11849# define LT_DLGLOBAL RTLD_GLOBAL
11850#else
11851# ifdef DL_GLOBAL
11852# define LT_DLGLOBAL DL_GLOBAL
11853# else
11854# define LT_DLGLOBAL 0
11855# endif
11856#endif
11857
11858/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859 find out it does not work in some platform. */
11860#ifndef LT_DLLAZY_OR_NOW
11861# ifdef RTLD_LAZY
11862# define LT_DLLAZY_OR_NOW RTLD_LAZY
11863# else
11864# ifdef DL_LAZY
11865# define LT_DLLAZY_OR_NOW DL_LAZY
11866# else
11867# ifdef RTLD_NOW
11868# define LT_DLLAZY_OR_NOW RTLD_NOW
11869# else
11870# ifdef DL_NOW
11871# define LT_DLLAZY_OR_NOW DL_NOW
11872# else
11873# define LT_DLLAZY_OR_NOW 0
11874# endif
11875# endif
11876# endif
11877# endif
11878#endif
11879
11880/* When -fvisbility=hidden is used, assume the code has been annotated
11881 correspondingly for the symbols needed. */
11882#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11883int fnord () __attribute__((visibility("default")));
11884#endif
11885
11886int fnord () { return 42; }
11887int main ()
11888{
11889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11890 int status = $lt_dlunknown;
11891
11892 if (self)
11893 {
11894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11895 else
11896 {
11897 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11898 else puts (dlerror ());
11899 }
11900 /* dlclose (self); */
11901 }
11902 else
11903 puts (dlerror ());
11904
11905 return status;
11906}
11907_LT_EOF
11908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11909 (eval $ac_link) 2>&5
11910 ac_status=$?
11911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11912 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11913 (./conftest; exit; ) >&5 2>/dev/null
11914 lt_status=$?
11915 case x$lt_status in
11916 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11917 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11918 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11919 esac
11920 else :
11921 # compilation failed
11922 lt_cv_dlopen_self_static=no
11923 fi
11924fi
11925rm -fr conftest*
11926
11927
11928fi
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11930$as_echo "$lt_cv_dlopen_self_static" >&6; }
11931 fi
11932
11933 CPPFLAGS="$save_CPPFLAGS"
11934 LDFLAGS="$save_LDFLAGS"
11935 LIBS="$save_LIBS"
11936 ;;
11937 esac
11938
11939 case $lt_cv_dlopen_self in
11940 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11941 *) enable_dlopen_self=unknown ;;
11942 esac
11943
11944 case $lt_cv_dlopen_self_static in
11945 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11946 *) enable_dlopen_self_static=unknown ;;
11947 esac
11948fi
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966striplib=
11967old_striplib=
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11969$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11970if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11971 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11972 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11974$as_echo "yes" >&6; }
11975else
11976# FIXME - insert some real tests, host_os isn't really good enough
11977 case $host_os in
11978 darwin*)
11979 if test -n "$STRIP" ; then
11980 striplib="$STRIP -x"
11981 old_striplib="$STRIP -S"
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983$as_echo "yes" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987 fi
11988 ;;
11989 *)
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
11992 ;;
11993 esac
11994fi
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007 # Report which library types will actually be built
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12009$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12011$as_echo "$can_build_shared" >&6; }
12012
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12014$as_echo_n "checking whether to build shared libraries... " >&6; }
12015 test "$can_build_shared" = "no" && enable_shared=no
12016
12017 # On AIX, shared libraries and static libraries use the same namespace, and
12018 # are all built from PIC.
12019 case $host_os in
12020 aix3*)
12021 test "$enable_shared" = yes && enable_static=no
12022 if test -n "$RANLIB"; then
12023 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12024 postinstall_cmds='$RANLIB $lib'
12025 fi
12026 ;;
12027
12028 aix[4-9]*)
12029 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12030 test "$enable_shared" = yes && enable_static=no
12031 fi
12032 ;;
12033 esac
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12035$as_echo "$enable_shared" >&6; }
12036
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12038$as_echo_n "checking whether to build static libraries... " >&6; }
12039 # Make sure either enable_shared or enable_static is yes.
12040 test "$enable_shared" = yes || enable_static=yes
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12042$as_echo "$enable_static" >&6; }
12043
12044
12045
12046
12047fi
12048ac_ext=c
12049ac_cpp='$CPP $CPPFLAGS'
12050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052ac_compiler_gnu=$ac_cv_c_compiler_gnu
12053
12054CC="$lt_save_CC"
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070 ac_config_commands="$ac_config_commands libtool"
12071
12072
12073
12074
12075# Only expand once:
12076
12077
12078
12079VERSION_SCRIPT_FLAGS=
12080# lt_cv_prog_gnu_ld is from libtool 2.+
12081if test "$lt_cv_prog_gnu_ld" = yes; then
12082 VERSION_SCRIPT_FLAGS=-Wl,--version-script=
12083else
12084 case $host in
12085 *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
12086 esac
12087fi
12088
12089 if test -n "$VERSION_SCRIPT_FLAGS"; then
12090 USE_VERSION_SCRIPT_TRUE=
12091 USE_VERSION_SCRIPT_FALSE='#'
12092else
12093 USE_VERSION_SCRIPT_TRUE='#'
12094 USE_VERSION_SCRIPT_FALSE=
12095fi
12096
12097
12098
12099_cppflags="${CPPFLAGS}"
12100_libs="${LIBS}"
12101
12102
12103# Check whether --with-c14n was given.
12104if test "${with_c14n+set}" = set; then :
12105 withval=$with_c14n;
12106fi
12107
12108
12109# Check whether --with-catalog was given.
12110if test "${with_catalog+set}" = set; then :
12111 withval=$with_catalog;
12112fi
12113
12114
12115# Check whether --with-debug was given.
12116if test "${with_debug+set}" = set; then :
12117 withval=$with_debug;
12118fi
12119
12120
12121# Check whether --with-docbook was given.
12122if test "${with_docbook+set}" = set; then :
12123 withval=$with_docbook;
12124fi
12125
12126
12127# Check whether --with-fexceptions was given.
12128if test "${with_fexceptions+set}" = set; then :
12129 withval=$with_fexceptions;
12130fi
12131
12132
12133# Check whether --with-ftp was given.
12134if test "${with_ftp+set}" = set; then :
12135 withval=$with_ftp;
12136fi
12137
12138
12139# Check whether --with-history was given.
12140if test "${with_history+set}" = set; then :
12141 withval=$with_history;
12142fi
12143
12144
12145# Check whether --with-html was given.
12146if test "${with_html+set}" = set; then :
12147 withval=$with_html;
12148fi
12149
12150
12151# Check whether --with-html-dir was given.
12152if test "${with_html_dir+set}" = set; then :
12153 withval=$with_html_dir; HTML_DIR=$withval
12154else
12155 HTML_DIR='$(datadir)/doc'
12156fi
12157
12158
12159
12160# Check whether --with-html-subdir was given.
12161if test "${with_html_subdir+set}" = set; then :
12162 withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
12163else
12164 HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
12165fi
12166
12167
12168
12169# Check whether --with-http was given.
12170if test "${with_http+set}" = set; then :
12171 withval=$with_http;
12172fi
12173
12174
12175# Check whether --with-iconv was given.
12176if test "${with_iconv+set}" = set; then :
12177 withval=$with_iconv;
12178fi
12179
12180
12181# Check whether --with-icu was given.
12182if test "${with_icu+set}" = set; then :
12183 withval=$with_icu;
12184fi
12185
12186
12187# Check whether --with-iso8859x was given.
12188if test "${with_iso8859x+set}" = set; then :
12189 withval=$with_iso8859x;
12190fi
12191
12192
12193# Check whether --with-legacy was given.
12194if test "${with_legacy+set}" = set; then :
12195 withval=$with_legacy;
12196fi
12197
12198
12199# Check whether --with-mem_debug was given.
12200if test "${with_mem_debug+set}" = set; then :
12201 withval=$with_mem_debug;
12202fi
12203
12204
12205# Check whether --with-minimum was given.
12206if test "${with_minimum+set}" = set; then :
12207 withval=$with_minimum;
12208fi
12209
12210
12211# Check whether --with-output was given.
12212if test "${with_output+set}" = set; then :
12213 withval=$with_output;
12214fi
12215
12216
12217# Check whether --with-pattern was given.
12218if test "${with_pattern+set}" = set; then :
12219 withval=$with_pattern;
12220fi
12221
12222
12223# Check whether --with-push was given.
12224if test "${with_push+set}" = set; then :
12225 withval=$with_push;
12226fi
12227
12228
12229# Check whether --with-python was given.
12230if test "${with_python+set}" = set; then :
12231 withval=$with_python;
12232fi
12233
12234
12235# Check whether --with-python_install_dir was given.
12236if test "${with_python_install_dir+set}" = set; then :
12237 withval=$with_python_install_dir;
12238fi
12239
12240
12241# Check whether --with-reader was given.
12242if test "${with_reader+set}" = set; then :
12243 withval=$with_reader;
12244fi
12245
12246
12247# Check whether --with-readline was given.
12248if test "${with_readline+set}" = set; then :
12249 withval=$with_readline;
12250 if test "$withval" != "no" -a "$withval" != "yes"; then
12251 RDL_DIR=$withval
12252 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12253 LIBS="${LIBS} -L$withval/lib"
12254 fi
12255
12256fi
12257
12258
12259# Check whether --with-regexps was given.
12260if test "${with_regexps+set}" = set; then :
12261 withval=$with_regexps;
12262fi
12263
12264
12265# Check whether --with-run_debug was given.
12266if test "${with_run_debug+set}" = set; then :
12267 withval=$with_run_debug;
12268fi
12269
12270
12271# Check whether --with-sax1 was given.
12272if test "${with_sax1+set}" = set; then :
12273 withval=$with_sax1;
12274fi
12275
12276
12277# Check whether --with-schemas was given.
12278if test "${with_schemas+set}" = set; then :
12279 withval=$with_schemas;
12280fi
12281
12282
12283# Check whether --with-schematron was given.
12284if test "${with_schematron+set}" = set; then :
12285 withval=$with_schematron;
12286fi
12287
12288
12289# Check whether --with-threads was given.
12290if test "${with_threads+set}" = set; then :
12291 withval=$with_threads;
12292fi
12293
12294
12295# Check whether --with-thread-alloc was given.
12296if test "${with_thread_alloc+set}" = set; then :
12297 withval=$with_thread_alloc;
12298fi
12299
12300
12301# Check whether --with-tree was given.
12302if test "${with_tree+set}" = set; then :
12303 withval=$with_tree;
12304fi
12305
12306
12307# Check whether --with-valid was given.
12308if test "${with_valid+set}" = set; then :
12309 withval=$with_valid;
12310fi
12311
12312
12313# Check whether --with-writer was given.
12314if test "${with_writer+set}" = set; then :
12315 withval=$with_writer;
12316fi
12317
12318
12319# Check whether --with-xinclude was given.
12320if test "${with_xinclude+set}" = set; then :
12321 withval=$with_xinclude;
12322fi
12323
12324
12325# Check whether --with-xpath was given.
12326if test "${with_xpath+set}" = set; then :
12327 withval=$with_xpath;
12328fi
12329
12330
12331# Check whether --with-xptr was given.
12332if test "${with_xptr+set}" = set; then :
12333 withval=$with_xptr;
12334fi
12335
12336
12337# Check whether --with-modules was given.
12338if test "${with_modules+set}" = set; then :
12339 withval=$with_modules;
12340fi
12341
12342
12343# Check whether --with-zlib was given.
12344if test "${with_zlib+set}" = set; then :
12345 withval=$with_zlib;
12346 if test "$withval" != "no" -a "$withval" != "yes"; then
12347 Z_DIR=$withval
12348 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12349 LIBS="${LIBS} -L$withval/lib"
12350 fi
12351
12352fi
12353
12354
12355# Check whether --with-lzma was given.
12356if test "${with_lzma+set}" = set; then :
12357 withval=$with_lzma;
12358 if test "$withval" != "no" -a "$withval" != "yes"; then
12359 LZMA_DIR=$withval
12360 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12361 LIBS="${LIBS} -L$withval/lib"
12362 fi
12363
12364fi
12365
12366
12367# Check whether --with-coverage was given.
12368if test "${with_coverage+set}" = set; then :
12369 withval=$with_coverage;
12370fi
12371
12372
12373# Check whether --enable-rebuild-docs was given.
12374if test "${enable_rebuild_docs+set}" = set; then :
12375 enableval=$enable_rebuild_docs;
12376fi
12377
12378if test "$enable_rebuild_docs" = "yes" -a "$srcdir" != "."; then
12379 as_fn_error $? "cannot rebuild docs when builddir != srcdir" "$LINENO" 5
12380fi
12381 if test "$enable_rebuild_docs" = "yes" -o "$USER" = "veillard"; then
12382 REBUILD_DOCS_TRUE=
12383 REBUILD_DOCS_FALSE='#'
12384else
12385 REBUILD_DOCS_TRUE='#'
12386 REBUILD_DOCS_FALSE=
12387fi
12388
12389
12390if test "$with_schemas" = "yes"
12391then
12392 with_pattern=yes
12393 with_regexps=yes
12394fi
12395if test "$with_schematron" = "yes"
12396then
12397 with_pattern=yes
12398 with_tree=yes
12399 with_xpath=yes
12400fi
12401if test "$with_reader" = "yes"
12402then
12403 with_push=yes
12404fi
12405if test "$with_xptr" = "yes"
12406then
12407 with_xpath=yes
12408fi
12409if test "$with_minimum" = "yes"
12410then
12411 echo "Configuring for a minimal library"
12412 if test "$with_c14n" = ""
12413 then
12414 with_c14n=no
12415 fi
12416 if test "$with_catalog" = ""
12417 then
12418 with_catalog=no
12419 fi
12420 echo So far so good!
12421 if test "$with_debug" = ""
12422 then
12423 with_debug=no
12424 fi
12425 if test "$with_docbook" = ""
12426 then
12427 with_docbook=no
12428 fi
12429 if test "$with_fexceptions" = ""
12430 then
12431 with_fexceptions=no
12432 fi
12433 if test "$with_ftp" = ""
12434 then
12435 with_ftp=no
12436 fi
12437 if test "$with_history" = ""
12438 then
12439 with_history=no
12440 fi
12441 if test "$with_html" = ""
12442 then
12443 with_html=no
12444 fi
12445 if test "$with_http" = ""
12446 then
12447 with_http=no
12448 fi
12449 if test "$with_iconv" = ""
12450 then
12451 with_iconv=no
12452 fi
12453 if test "$with_iso8859x" = ""
12454 then
12455 with_iso8859x=no
12456 fi
12457 if test "$with_legacy" = ""
12458 then
12459 with_legacy=no
12460 fi
12461 if test "$with_mem_debug" = ""
12462 then
12463 with_mem_debug=no
12464 fi
12465 if test "$with_output" = ""
12466 then
12467 with_output=no
12468 fi
12469 if test "$with_pattern" = ""
12470 then
12471 with_pattern=no
12472 fi
12473 if test "$with_push" = ""
12474 then
12475 with_push=no
12476 fi
12477 if test "$with_python" = ""
12478 then
12479 with_python=no
12480 fi
12481 if test "$with_reader" = ""
12482 then
12483 with_reader=no
12484 fi
12485 if test "$with_readline" = ""
12486 then
12487 with_readline=no
12488 fi
12489 if test "$with_regexps" = ""
12490 then
12491 with_regexps=no
12492 fi
12493 if test "$with_run_debug" = ""
12494 then
12495 with_run_debug=no
12496 fi
12497 if test "$with_sax1" = ""
12498 then
12499 with_sax1=no
12500 fi
12501 if test "$with_schemas" = ""
12502 then
12503 with_schemas=no
12504 fi
12505 if test "$with_schematron" = ""
12506 then
12507 with_schematron=no
12508 fi
12509 if test "$with_threads" = ""
12510 then
12511 with_threads=no
12512 fi
12513 if test "$with_thread_alloc" = ""
12514 then
12515 with_thread_alloc=no
12516 fi
12517 if test "$with_tree" = ""
12518 then
12519 with_tree=no
12520 fi
12521 if test "$with_valid" = ""
12522 then
12523 with_valid=no
12524 fi
12525 if test "$with_writer" = ""
12526 then
12527 with_writer=no
12528 fi
12529 if test "$with_xinclude" = ""
12530 then
12531 with_xinclude=no
12532 fi
12533 if test "$with_xpath" = ""
12534 then
12535 with_xpath=no
12536 fi
12537 if test "$with_xptr" = ""
12538 then
12539 with_xptr=no
12540 fi
12541 if test "$with_zlib" = ""
12542 then
12543 with_zlib=no
12544 fi
12545 if test "$with_modules" = ""
12546 then
12547 with_modules=no
12548 fi
12549fi
12550
12551echo Checking zlib
12552
12553
12554WITH_ZLIB=0
12555if test "$with_zlib" = "no"; then
12556 echo "Disabling compression support"
12557else
12558 for ac_header in zlib.h
12559do :
12560 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12561if test "x$ac_cv_header_zlib_h" = xyes; then :
12562 cat >>confdefs.h <<_ACEOF
12563#define HAVE_ZLIB_H 1
12564_ACEOF
12565 SAVE_LDFLAGS="${LDFLAGS}"
12566 LDFLAGS="-L${Z_DIR}/lib"
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
12568$as_echo_n "checking for gzread in -lz... " >&6; }
12569if ${ac_cv_lib_z_gzread+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571else
12572 ac_check_lib_save_LIBS=$LIBS
12573LIBS="-lz $LIBS"
12574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575/* end confdefs.h. */
12576
12577/* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580#ifdef __cplusplus
12581extern "C"
12582#endif
12583char gzread ();
12584int
12585main ()
12586{
12587return gzread ();
12588 ;
12589 return 0;
12590}
12591_ACEOF
12592if ac_fn_c_try_link "$LINENO"; then :
12593 ac_cv_lib_z_gzread=yes
12594else
12595 ac_cv_lib_z_gzread=no
12596fi
12597rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599LIBS=$ac_check_lib_save_LIBS
12600fi
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
12602$as_echo "$ac_cv_lib_z_gzread" >&6; }
12603if test "x$ac_cv_lib_z_gzread" = xyes; then :
12604
12605
12606$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12607
12608 WITH_ZLIB=1
12609 if test "x${Z_DIR}" != "x"; then
12610 Z_CFLAGS="-I${Z_DIR}/include"
12611 Z_LIBS="-L${Z_DIR}/lib -lz"
12612 case ${host} in
12613 *-*-solaris*)
12614 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
12615 ;;
12616 esac
12617 else
12618 Z_LIBS="-lz"
12619 fi
12620fi
12621
12622 LDFLAGS="${SAVE_LDFLAGS}"
12623fi
12624
12625done
12626
12627fi
12628
12629
12630
12631
12632
12633echo Checking lzma
12634
12635
12636WITH_LZMA=0
12637if test "$with_lzma" = "no"; then
12638 echo "Disabling compression support"
12639else
12640 # Try pkg-config first so that static linking works.
12641 # If this succeeeds, we ignore the WITH_LZMA directory.
12642
12643pkg_failed=no
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
12645$as_echo_n "checking for LZMA... " >&6; }
12646
12647if test -n "$LZMA_CFLAGS"; then
12648 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
12649 elif test -n "$PKG_CONFIG"; then
12650 if test -n "$PKG_CONFIG" && \
12651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
12652 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
12653 ac_status=$?
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }; then
12656 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
12657 test "x$?" != "x0" && pkg_failed=yes
12658else
12659 pkg_failed=yes
12660fi
12661 else
12662 pkg_failed=untried
12663fi
12664if test -n "$LZMA_LIBS"; then
12665 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
12666 elif test -n "$PKG_CONFIG"; then
12667 if test -n "$PKG_CONFIG" && \
12668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
12669 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
12670 ac_status=$?
12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672 test $ac_status = 0; }; then
12673 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
12674 test "x$?" != "x0" && pkg_failed=yes
12675else
12676 pkg_failed=yes
12677fi
12678 else
12679 pkg_failed=untried
12680fi
12681
12682
12683
12684if test $pkg_failed = yes; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686$as_echo "no" >&6; }
12687
12688if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12689 _pkg_short_errors_supported=yes
12690else
12691 _pkg_short_errors_supported=no
12692fi
12693 if test $_pkg_short_errors_supported = yes; then
12694 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
12695 else
12696 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
12697 fi
12698 # Put the nasty error message in config.log where it belongs
12699 echo "$LZMA_PKG_ERRORS" >&5
12700
12701 have_liblzma=no
12702elif test $pkg_failed = untried; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
12705 have_liblzma=no
12706else
12707 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
12708 LZMA_LIBS=$pkg_cv_LZMA_LIBS
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12710$as_echo "yes" >&6; }
12711 have_liblzma=yes
12712fi
12713
12714 # If pkg-config failed, fall back to AC_CHECK_LIB. This
12715 # will not pick up the necessary LIBS flags for liblzma's
12716 # private dependencies, though, so static linking may fail.
12717 if test "x$have_liblzma" = "xno"; then
12718 for ac_header in lzma.h
12719do :
12720 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
12721if test "x$ac_cv_header_lzma_h" = xyes; then :
12722 cat >>confdefs.h <<_ACEOF
12723#define HAVE_LZMA_H 1
12724_ACEOF
12725 SAVE_LDFLAGS="${LDFLAGS}"
12726 LDFLAGS="-L${LZMA_DIR}/lib"
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
12728$as_echo_n "checking for lzma_code in -llzma... " >&6; }
12729if ${ac_cv_lib_lzma_lzma_code+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731else
12732 ac_check_lib_save_LIBS=$LIBS
12733LIBS="-llzma $LIBS"
12734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735/* end confdefs.h. */
12736
12737/* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12740#ifdef __cplusplus
12741extern "C"
12742#endif
12743char lzma_code ();
12744int
12745main ()
12746{
12747return lzma_code ();
12748 ;
12749 return 0;
12750}
12751_ACEOF
12752if ac_fn_c_try_link "$LINENO"; then :
12753 ac_cv_lib_lzma_lzma_code=yes
12754else
12755 ac_cv_lib_lzma_lzma_code=no
12756fi
12757rm -f core conftest.err conftest.$ac_objext \
12758 conftest$ac_exeext conftest.$ac_ext
12759LIBS=$ac_check_lib_save_LIBS
12760fi
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
12762$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
12763if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
12764
12765 have_liblzma=yes
12766 if test "x${LZMA_DIR}" != "x"; then
12767 LZMA_CFLAGS="-I${LZMA_DIR}/include"
12768 LZMA_LIBS="-L${LZMA_DIR}/lib -llzma"
12769 else
12770 LZMA_LIBS="-llzma"
12771 fi
12772else
12773 have_liblzma=no
12774fi
12775
12776 LDFLAGS="${SAVE_LDFLAGS}"
12777fi
12778
12779done
12780
12781 fi
12782
12783 # Found the library via either method?
12784 if test "x$have_liblzma" = "xyes"; then
12785
12786$as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
12787
12788 WITH_LZMA=1
12789 fi
12790fi
12791
12792
12793
12794
12795
12796CPPFLAGS=${_cppflags}
12797LIBS=${_libs}
12798
12799echo Checking headers
12800
12801ac_header_dirent=no
12802for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12803 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12805$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12806if eval \${$as_ac_Header+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808else
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810/* end confdefs.h. */
12811#include <sys/types.h>
12812#include <$ac_hdr>
12813
12814int
12815main ()
12816{
12817if ((DIR *) 0)
12818return 0;
12819 ;
12820 return 0;
12821}
12822_ACEOF
12823if ac_fn_c_try_compile "$LINENO"; then :
12824 eval "$as_ac_Header=yes"
12825else
12826 eval "$as_ac_Header=no"
12827fi
12828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829fi
12830eval ac_res=\$$as_ac_Header
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12832$as_echo "$ac_res" >&6; }
12833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12834 cat >>confdefs.h <<_ACEOF
12835#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12836_ACEOF
12837
12838ac_header_dirent=$ac_hdr; break
12839fi
12840
12841done
12842# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12843if test $ac_header_dirent = dirent.h; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12845$as_echo_n "checking for library containing opendir... " >&6; }
12846if ${ac_cv_search_opendir+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848else
12849 ac_func_search_save_LIBS=$LIBS
12850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851/* end confdefs.h. */
12852
12853/* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12856#ifdef __cplusplus
12857extern "C"
12858#endif
12859char opendir ();
12860int
12861main ()
12862{
12863return opendir ();
12864 ;
12865 return 0;
12866}
12867_ACEOF
12868for ac_lib in '' dir; do
12869 if test -z "$ac_lib"; then
12870 ac_res="none required"
12871 else
12872 ac_res=-l$ac_lib
12873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12874 fi
12875 if ac_fn_c_try_link "$LINENO"; then :
12876 ac_cv_search_opendir=$ac_res
12877fi
12878rm -f core conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext
12880 if ${ac_cv_search_opendir+:} false; then :
12881 break
12882fi
12883done
12884if ${ac_cv_search_opendir+:} false; then :
12885
12886else
12887 ac_cv_search_opendir=no
12888fi
12889rm conftest.$ac_ext
12890LIBS=$ac_func_search_save_LIBS
12891fi
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12893$as_echo "$ac_cv_search_opendir" >&6; }
12894ac_res=$ac_cv_search_opendir
12895if test "$ac_res" != no; then :
12896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12897
12898fi
12899
12900else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12902$as_echo_n "checking for library containing opendir... " >&6; }
12903if ${ac_cv_search_opendir+:} false; then :
12904 $as_echo_n "(cached) " >&6
12905else
12906 ac_func_search_save_LIBS=$LIBS
12907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908/* end confdefs.h. */
12909
12910/* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
12913#ifdef __cplusplus
12914extern "C"
12915#endif
12916char opendir ();
12917int
12918main ()
12919{
12920return opendir ();
12921 ;
12922 return 0;
12923}
12924_ACEOF
12925for ac_lib in '' x; do
12926 if test -z "$ac_lib"; then
12927 ac_res="none required"
12928 else
12929 ac_res=-l$ac_lib
12930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12931 fi
12932 if ac_fn_c_try_link "$LINENO"; then :
12933 ac_cv_search_opendir=$ac_res
12934fi
12935rm -f core conftest.err conftest.$ac_objext \
12936 conftest$ac_exeext
12937 if ${ac_cv_search_opendir+:} false; then :
12938 break
12939fi
12940done
12941if ${ac_cv_search_opendir+:} false; then :
12942
12943else
12944 ac_cv_search_opendir=no
12945fi
12946rm conftest.$ac_ext
12947LIBS=$ac_func_search_save_LIBS
12948fi
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12950$as_echo "$ac_cv_search_opendir" >&6; }
12951ac_res=$ac_cv_search_opendir
12952if test "$ac_res" != no; then :
12953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12954
12955fi
12956
12957fi
12958
12959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12960$as_echo_n "checking for ANSI C header files... " >&6; }
12961if ${ac_cv_header_stdc+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963else
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h. */
12966#include <stdlib.h>
12967#include <stdarg.h>
12968#include <string.h>
12969#include <float.h>
12970
12971int
12972main ()
12973{
12974
12975 ;
12976 return 0;
12977}
12978_ACEOF
12979if ac_fn_c_try_compile "$LINENO"; then :
12980 ac_cv_header_stdc=yes
12981else
12982 ac_cv_header_stdc=no
12983fi
12984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985
12986if test $ac_cv_header_stdc = yes; then
12987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989/* end confdefs.h. */
12990#include <string.h>
12991
12992_ACEOF
12993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12994 $EGREP "memchr" >/dev/null 2>&1; then :
12995
12996else
12997 ac_cv_header_stdc=no
12998fi
12999rm -f conftest*
13000
13001fi
13002
13003if test $ac_cv_header_stdc = yes; then
13004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006/* end confdefs.h. */
13007#include <stdlib.h>
13008
13009_ACEOF
13010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13011 $EGREP "free" >/dev/null 2>&1; then :
13012
13013else
13014 ac_cv_header_stdc=no
13015fi
13016rm -f conftest*
13017
13018fi
13019
13020if test $ac_cv_header_stdc = yes; then
13021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13022 if test "$cross_compiling" = yes; then :
13023 :
13024else
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026/* end confdefs.h. */
13027#include <ctype.h>
13028#include <stdlib.h>
13029#if ((' ' & 0x0FF) == 0x020)
13030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13032#else
13033# define ISLOWER(c) \
13034 (('a' <= (c) && (c) <= 'i') \
13035 || ('j' <= (c) && (c) <= 'r') \
13036 || ('s' <= (c) && (c) <= 'z'))
13037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13038#endif
13039
13040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13041int
13042main ()
13043{
13044 int i;
13045 for (i = 0; i < 256; i++)
13046 if (XOR (islower (i), ISLOWER (i))
13047 || toupper (i) != TOUPPER (i))
13048 return 2;
13049 return 0;
13050}
13051_ACEOF
13052if ac_fn_c_try_run "$LINENO"; then :
13053
13054else
13055 ac_cv_header_stdc=no
13056fi
13057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13058 conftest.$ac_objext conftest.beam conftest.$ac_ext
13059fi
13060
13061fi
13062fi
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13064$as_echo "$ac_cv_header_stdc" >&6; }
13065if test $ac_cv_header_stdc = yes; then
13066
13067$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13068
13069fi
13070
13071for ac_header in fcntl.h
13072do :
13073 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13074if test "x$ac_cv_header_fcntl_h" = xyes; then :
13075 cat >>confdefs.h <<_ACEOF
13076#define HAVE_FCNTL_H 1
13077_ACEOF
13078
13079fi
13080
13081done
13082
13083for ac_header in unistd.h
13084do :
13085 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13086if test "x$ac_cv_header_unistd_h" = xyes; then :
13087 cat >>confdefs.h <<_ACEOF
13088#define HAVE_UNISTD_H 1
13089_ACEOF
13090
13091fi
13092
13093done
13094
13095for ac_header in ctype.h
13096do :
13097 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
13098if test "x$ac_cv_header_ctype_h" = xyes; then :
13099 cat >>confdefs.h <<_ACEOF
13100#define HAVE_CTYPE_H 1
13101_ACEOF
13102
13103fi
13104
13105done
13106
13107for ac_header in dirent.h
13108do :
13109 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
13110if test "x$ac_cv_header_dirent_h" = xyes; then :
13111 cat >>confdefs.h <<_ACEOF
13112#define HAVE_DIRENT_H 1
13113_ACEOF
13114
13115fi
13116
13117done
13118
13119for ac_header in errno.h
13120do :
13121 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
13122if test "x$ac_cv_header_errno_h" = xyes; then :
13123 cat >>confdefs.h <<_ACEOF
13124#define HAVE_ERRNO_H 1
13125_ACEOF
13126
13127fi
13128
13129done
13130
13131for ac_header in malloc.h
13132do :
13133 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
13134if test "x$ac_cv_header_malloc_h" = xyes; then :
13135 cat >>confdefs.h <<_ACEOF
13136#define HAVE_MALLOC_H 1
13137_ACEOF
13138
13139fi
13140
13141done
13142
13143for ac_header in stdarg.h
13144do :
13145 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13146if test "x$ac_cv_header_stdarg_h" = xyes; then :
13147 cat >>confdefs.h <<_ACEOF
13148#define HAVE_STDARG_H 1
13149_ACEOF
13150
13151fi
13152
13153done
13154
13155for ac_header in sys/stat.h
13156do :
13157 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13158if test "x$ac_cv_header_sys_stat_h" = xyes; then :
13159 cat >>confdefs.h <<_ACEOF
13160#define HAVE_SYS_STAT_H 1
13161_ACEOF
13162
13163fi
13164
13165done
13166
13167for ac_header in sys/types.h
13168do :
13169 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13170if test "x$ac_cv_header_sys_types_h" = xyes; then :
13171 cat >>confdefs.h <<_ACEOF
13172#define HAVE_SYS_TYPES_H 1
13173_ACEOF
13174
13175fi
13176
13177done
13178
13179for ac_header in stdint.h
13180do :
13181 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13182if test "x$ac_cv_header_stdint_h" = xyes; then :
13183 cat >>confdefs.h <<_ACEOF
13184#define HAVE_STDINT_H 1
13185_ACEOF
13186
13187fi
13188
13189done
13190
13191for ac_header in inttypes.h
13192do :
13193 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13194if test "x$ac_cv_header_inttypes_h" = xyes; then :
13195 cat >>confdefs.h <<_ACEOF
13196#define HAVE_INTTYPES_H 1
13197_ACEOF
13198
13199fi
13200
13201done
13202
13203for ac_header in time.h
13204do :
13205 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
13206if test "x$ac_cv_header_time_h" = xyes; then :
13207 cat >>confdefs.h <<_ACEOF
13208#define HAVE_TIME_H 1
13209_ACEOF
13210
13211fi
13212
13213done
13214
13215for ac_header in ansidecl.h
13216do :
13217 ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
13218if test "x$ac_cv_header_ansidecl_h" = xyes; then :
13219 cat >>confdefs.h <<_ACEOF
13220#define HAVE_ANSIDECL_H 1
13221_ACEOF
13222
13223fi
13224
13225done
13226
13227for ac_header in ieeefp.h
13228do :
13229 ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
13230if test "x$ac_cv_header_ieeefp_h" = xyes; then :
13231 cat >>confdefs.h <<_ACEOF
13232#define HAVE_IEEEFP_H 1
13233_ACEOF
13234
13235fi
13236
13237done
13238
13239for ac_header in nan.h
13240do :
13241 ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_includes_default"
13242if test "x$ac_cv_header_nan_h" = xyes; then :
13243 cat >>confdefs.h <<_ACEOF
13244#define HAVE_NAN_H 1
13245_ACEOF
13246
13247fi
13248
13249done
13250
13251for ac_header in math.h
13252do :
13253 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
13254if test "x$ac_cv_header_math_h" = xyes; then :
13255 cat >>confdefs.h <<_ACEOF
13256#define HAVE_MATH_H 1
13257_ACEOF
13258
13259fi
13260
13261done
13262
13263for ac_header in limits.h
13264do :
13265 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
13266if test "x$ac_cv_header_limits_h" = xyes; then :
13267 cat >>confdefs.h <<_ACEOF
13268#define HAVE_LIMITS_H 1
13269_ACEOF
13270
13271fi
13272
13273done
13274
13275for ac_header in fp_class.h
13276do :
13277 ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
13278if test "x$ac_cv_header_fp_class_h" = xyes; then :
13279 cat >>confdefs.h <<_ACEOF
13280#define HAVE_FP_CLASS_H 1
13281_ACEOF
13282
13283fi
13284
13285done
13286
13287for ac_header in float.h
13288do :
13289 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
13290if test "x$ac_cv_header_float_h" = xyes; then :
13291 cat >>confdefs.h <<_ACEOF
13292#define HAVE_FLOAT_H 1
13293_ACEOF
13294
13295fi
13296
13297done
13298
13299for ac_header in stdlib.h
13300do :
13301 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13302if test "x$ac_cv_header_stdlib_h" = xyes; then :
13303 cat >>confdefs.h <<_ACEOF
13304#define HAVE_STDLIB_H 1
13305_ACEOF
13306
13307fi
13308
13309done
13310
13311for ac_header in sys/socket.h
13312do :
13313 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
13314# include <sys/types.h>
13315# endif
13316
13317"
13318if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13319 cat >>confdefs.h <<_ACEOF
13320#define HAVE_SYS_SOCKET_H 1
13321_ACEOF
13322
13323fi
13324
13325done
13326
13327for ac_header in netinet/in.h
13328do :
13329 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
13330# include <sys/types.h>
13331# endif
13332
13333"
13334if test "x$ac_cv_header_netinet_in_h" = xyes; then :
13335 cat >>confdefs.h <<_ACEOF
13336#define HAVE_NETINET_IN_H 1
13337_ACEOF
13338
13339fi
13340
13341done
13342
13343for ac_header in arpa/inet.h
13344do :
13345 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
13346# include <sys/types.h>
13347# endif
13348#if HAVE_ARPA_INET_H
13349# include <arpa/inet.h>
13350# endif
13351
13352"
13353if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
13354 cat >>confdefs.h <<_ACEOF
13355#define HAVE_ARPA_INET_H 1
13356_ACEOF
13357
13358fi
13359
13360done
13361
13362for ac_header in netdb.h
13363do :
13364 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
13365if test "x$ac_cv_header_netdb_h" = xyes; then :
13366 cat >>confdefs.h <<_ACEOF
13367#define HAVE_NETDB_H 1
13368_ACEOF
13369
13370fi
13371
13372done
13373
13374for ac_header in sys/time.h
13375do :
13376 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13377if test "x$ac_cv_header_sys_time_h" = xyes; then :
13378 cat >>confdefs.h <<_ACEOF
13379#define HAVE_SYS_TIME_H 1
13380_ACEOF
13381
13382fi
13383
13384done
13385
13386for ac_header in sys/select.h
13387do :
13388 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13389if test "x$ac_cv_header_sys_select_h" = xyes; then :
13390 cat >>confdefs.h <<_ACEOF
13391#define HAVE_SYS_SELECT_H 1
13392_ACEOF
13393
13394fi
13395
13396done
13397
13398for ac_header in poll.h
13399do :
13400 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13401if test "x$ac_cv_header_poll_h" = xyes; then :
13402 cat >>confdefs.h <<_ACEOF
13403#define HAVE_POLL_H 1
13404_ACEOF
13405
13406fi
13407
13408done
13409
13410for ac_header in sys/mman.h
13411do :
13412 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13413if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13414 cat >>confdefs.h <<_ACEOF
13415#define HAVE_SYS_MMAN_H 1
13416_ACEOF
13417
13418fi
13419
13420done
13421
13422for ac_header in sys/timeb.h
13423do :
13424 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13425if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
13426 cat >>confdefs.h <<_ACEOF
13427#define HAVE_SYS_TIMEB_H 1
13428_ACEOF
13429
13430fi
13431
13432done
13433
13434for ac_header in signal.h
13435do :
13436 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
13437if test "x$ac_cv_header_signal_h" = xyes; then :
13438 cat >>confdefs.h <<_ACEOF
13439#define HAVE_SIGNAL_H 1
13440_ACEOF
13441
13442fi
13443
13444done
13445
13446for ac_header in arpa/nameser.h
13447do :
13448 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
13449# include <sys/types.h>
13450# endif
13451
13452"
13453if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
13454 cat >>confdefs.h <<_ACEOF
13455#define HAVE_ARPA_NAMESER_H 1
13456_ACEOF
13457
13458fi
13459
13460done
13461
13462for ac_header in resolv.h
13463do :
13464 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
13465# include <sys/types.h>
13466# endif
13467#if HAVE_NETINET_IN_H
13468# include <netinet/in.h>
13469# endif
13470#if HAVE_ARPA_NAMESER_H
13471# include <arpa/nameser.h>
13472# endif
13473
13474"
13475if test "x$ac_cv_header_resolv_h" = xyes; then :
13476 cat >>confdefs.h <<_ACEOF
13477#define HAVE_RESOLV_H 1
13478_ACEOF
13479
13480fi
13481
13482done
13483
13484for ac_header in dl.h
13485do :
13486 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13487if test "x$ac_cv_header_dl_h" = xyes; then :
13488 cat >>confdefs.h <<_ACEOF
13489#define HAVE_DL_H 1
13490_ACEOF
13491
13492fi
13493
13494done
13495
13496for ac_header in dlfcn.h
13497do :
13498 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13499if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13500 cat >>confdefs.h <<_ACEOF
13501#define HAVE_DLFCN_H 1
13502_ACEOF
13503
13504fi
13505
13506done
13507
13508
13509
13510echo Checking types
13511
13512ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13513case $ac_cv_c_uint32_t in #(
13514 no|yes) ;; #(
13515 *)
13516
13517$as_echo "#define _UINT32_T 1" >>confdefs.h
13518
13519
13520cat >>confdefs.h <<_ACEOF
13521#define uint32_t $ac_cv_c_uint32_t
13522_ACEOF
13523;;
13524 esac
13525
13526
13527
13528echo Checking libraries
13529
13530for ac_func in strftime
13531do :
13532 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13533if test "x$ac_cv_func_strftime" = xyes; then :
13534 cat >>confdefs.h <<_ACEOF
13535#define HAVE_STRFTIME 1
13536_ACEOF
13537
13538else
13539 # strftime is in -lintl on SCO UNIX.
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13541$as_echo_n "checking for strftime in -lintl... " >&6; }
13542if ${ac_cv_lib_intl_strftime+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544else
13545 ac_check_lib_save_LIBS=$LIBS
13546LIBS="-lintl $LIBS"
13547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548/* end confdefs.h. */
13549
13550/* Override any GCC internal prototype to avoid an error.
13551 Use char because int might match the return type of a GCC
13552 builtin and then its argument prototype would still apply. */
13553#ifdef __cplusplus
13554extern "C"
13555#endif
13556char strftime ();
13557int
13558main ()
13559{
13560return strftime ();
13561 ;
13562 return 0;
13563}
13564_ACEOF
13565if ac_fn_c_try_link "$LINENO"; then :
13566 ac_cv_lib_intl_strftime=yes
13567else
13568 ac_cv_lib_intl_strftime=no
13569fi
13570rm -f core conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572LIBS=$ac_check_lib_save_LIBS
13573fi
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13575$as_echo "$ac_cv_lib_intl_strftime" >&6; }
13576if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13577 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13578
13579LIBS="-lintl $LIBS"
13580fi
13581
13582fi
13583done
13584
13585for ac_func in strdup strndup strerror
13586do :
13587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13589if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13590 cat >>confdefs.h <<_ACEOF
13591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13592_ACEOF
13593
13594fi
13595done
13596
13597for ac_func in finite isnand fp_class class fpclass
13598do :
13599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13600ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13601if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13602 cat >>confdefs.h <<_ACEOF
13603#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13604_ACEOF
13605
13606fi
13607done
13608
13609for ac_func in strftime localtime gettimeofday ftime
13610do :
13611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13613if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13614 cat >>confdefs.h <<_ACEOF
13615#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13616_ACEOF
13617
13618fi
13619done
13620
13621for ac_func in stat _stat signal
13622do :
13623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13624ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13625if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13626 cat >>confdefs.h <<_ACEOF
13627#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13628_ACEOF
13629
13630fi
13631done
13632
13633for ac_func in rand rand_r srand time
13634do :
13635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13636ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13637if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13638 cat >>confdefs.h <<_ACEOF
13639#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13640_ACEOF
13641
13642fi
13643done
13644
13645for ac_func in isascii mmap munmap putenv
13646do :
13647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13648ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13649if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13650 cat >>confdefs.h <<_ACEOF
13651#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13652_ACEOF
13653
13654fi
13655done
13656
13657
13658
13659
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
13661$as_echo_n "checking for va_copy... " >&6; }
13662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663/* end confdefs.h. */
13664#include <stdarg.h>
13665va_list ap1,ap2;
13666int
13667main ()
13668{
13669va_copy(ap1,ap2);
13670 ;
13671 return 0;
13672}
13673_ACEOF
13674if ac_fn_c_try_link "$LINENO"; then :
13675 have_va_copy=yes
13676else
13677 have_va_copy=no
13678fi
13679rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
13682$as_echo "$have_va_copy" >&6; }
13683if test x"$have_va_copy" = x"yes"; then
13684
13685$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
13686
13687else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
13689$as_echo_n "checking for __va_copy... " >&6; }
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691/* end confdefs.h. */
13692#include <stdarg.h>
13693 va_list ap1,ap2;
13694int
13695main ()
13696{
13697__va_copy(ap1,ap2);
13698 ;
13699 return 0;
13700}
13701_ACEOF
13702if ac_fn_c_try_link "$LINENO"; then :
13703 have___va_copy=yes
13704else
13705 have___va_copy=no
13706fi
13707rm -f core conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
13710$as_echo "$have___va_copy" >&6; }
13711 if test x"$have___va_copy" = x"yes"; then
13712
13713$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
13714
13715 fi
13716fi
13717
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array type" >&5
13719$as_echo_n "checking whether va_list is an array type... " >&6; }
13720cat > conftest.$ac_ext <<EOF
13721#line 13721 "configure"
13722#include "confdefs.h"
13723
13724#include <stdarg.h>
13725void a(va_list * ap) {}
13726int main(void) {
13727
13728va_list ap1, ap2; a(&ap1); ap2 = (va_list) ap1
13729; return 0; }
13730EOF
13731if { (eval echo configure:13731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13732 rm -rf conftest*
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735$as_echo "no" >&6; }
13736else
13737 echo "configure: failed program was:" >&5
13738 cat conftest.$ac_ext >&5
13739 rm -rf conftest*
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13742$as_echo "yes" >&6; }
13743
13744$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
13745
13746fi
13747rm -f conftest*
13748
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
13750$as_echo_n "checking for library containing gethostent... " >&6; }
13751if ${ac_cv_search_gethostent+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753else
13754 ac_func_search_save_LIBS=$LIBS
13755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756/* end confdefs.h. */
13757
13758/* Override any GCC internal prototype to avoid an error.
13759 Use char because int might match the return type of a GCC
13760 builtin and then its argument prototype would still apply. */
13761#ifdef __cplusplus
13762extern "C"
13763#endif
13764char gethostent ();
13765int
13766main ()
13767{
13768return gethostent ();
13769 ;
13770 return 0;
13771}
13772_ACEOF
13773for ac_lib in '' nsl; do
13774 if test -z "$ac_lib"; then
13775 ac_res="none required"
13776 else
13777 ac_res=-l$ac_lib
13778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13779 fi
13780 if ac_fn_c_try_link "$LINENO"; then :
13781 ac_cv_search_gethostent=$ac_res
13782fi
13783rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext
13785 if ${ac_cv_search_gethostent+:} false; then :
13786 break
13787fi
13788done
13789if ${ac_cv_search_gethostent+:} false; then :
13790
13791else
13792 ac_cv_search_gethostent=no
13793fi
13794rm conftest.$ac_ext
13795LIBS=$ac_func_search_save_LIBS
13796fi
13797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
13798$as_echo "$ac_cv_search_gethostent" >&6; }
13799ac_res=$ac_cv_search_gethostent
13800if test "$ac_res" != no; then :
13801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13802
13803fi
13804
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
13806$as_echo_n "checking for library containing setsockopt... " >&6; }
13807if ${ac_cv_search_setsockopt+:} false; then :
13808 $as_echo_n "(cached) " >&6
13809else
13810 ac_func_search_save_LIBS=$LIBS
13811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812/* end confdefs.h. */
13813
13814/* Override any GCC internal prototype to avoid an error.
13815 Use char because int might match the return type of a GCC
13816 builtin and then its argument prototype would still apply. */
13817#ifdef __cplusplus
13818extern "C"
13819#endif
13820char setsockopt ();
13821int
13822main ()
13823{
13824return setsockopt ();
13825 ;
13826 return 0;
13827}
13828_ACEOF
13829for ac_lib in '' socket net network; do
13830 if test -z "$ac_lib"; then
13831 ac_res="none required"
13832 else
13833 ac_res=-l$ac_lib
13834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13835 fi
13836 if ac_fn_c_try_link "$LINENO"; then :
13837 ac_cv_search_setsockopt=$ac_res
13838fi
13839rm -f core conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext
13841 if ${ac_cv_search_setsockopt+:} false; then :
13842 break
13843fi
13844done
13845if ${ac_cv_search_setsockopt+:} false; then :
13846
13847else
13848 ac_cv_search_setsockopt=no
13849fi
13850rm conftest.$ac_ext
13851LIBS=$ac_func_search_save_LIBS
13852fi
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
13854$as_echo "$ac_cv_search_setsockopt" >&6; }
13855ac_res=$ac_cv_search_setsockopt
13856if test "$ac_res" != no; then :
13857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13858
13859fi
13860
13861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13862$as_echo_n "checking for library containing connect... " >&6; }
13863if ${ac_cv_search_connect+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865else
13866 ac_func_search_save_LIBS=$LIBS
13867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868/* end confdefs.h. */
13869
13870/* Override any GCC internal prototype to avoid an error.
13871 Use char because int might match the return type of a GCC
13872 builtin and then its argument prototype would still apply. */
13873#ifdef __cplusplus
13874extern "C"
13875#endif
13876char connect ();
13877int
13878main ()
13879{
13880return connect ();
13881 ;
13882 return 0;
13883}
13884_ACEOF
13885for ac_lib in '' inet; do
13886 if test -z "$ac_lib"; then
13887 ac_res="none required"
13888 else
13889 ac_res=-l$ac_lib
13890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13891 fi
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 ac_cv_search_connect=$ac_res
13894fi
13895rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext
13897 if ${ac_cv_search_connect+:} false; then :
13898 break
13899fi
13900done
13901if ${ac_cv_search_connect+:} false; then :
13902
13903else
13904 ac_cv_search_connect=no
13905fi
13906rm conftest.$ac_ext
13907LIBS=$ac_func_search_save_LIBS
13908fi
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13910$as_echo "$ac_cv_search_connect" >&6; }
13911ac_res=$ac_cv_search_connect
13912if test "$ac_res" != no; then :
13913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13914
13915fi
13916
13917
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
13919$as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
13920cat > conftest.$ac_ext <<EOF
13921#line 13921 "configure"
13922#include "confdefs.h"
13923
13924#include <stddef.h>
13925#include <sys/types.h>
13926#include <sys/socket.h>
13927int main(void) {
13928
13929(void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
13930; return 0; }
13931EOF
13932if { (eval echo configure:13932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13933 rm -rf conftest*
13934
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
13936$as_echo "socklen_t *" >&6; }
13937 XML_SOCKLEN_T=socklen_t
13938else
13939 echo "configure: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13941 rm -rf conftest*
13942
13943 cat > conftest.$ac_ext <<EOF
13944#line 13944 "configure"
13945#include "confdefs.h"
13946
13947#include <stddef.h>
13948#include <sys/types.h>
13949#include <sys/socket.h>
13950int main(void) {
13951
13952(void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
13953; return 0; }
13954EOF
13955if { (eval echo configure:13955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13956 rm -rf conftest*
13957
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
13959$as_echo "size_t *" >&6; }
13960 XML_SOCKLEN_T=size_t
13961else
13962 echo "configure: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13964 rm -rf conftest*
13965
13966 cat > conftest.$ac_ext <<EOF
13967#line 13967 "configure"
13968#include "confdefs.h"
13969
13970#include <stddef.h>
13971#include <sys/types.h>
13972#include <sys/socket.h>
13973int main(void) {
13974
13975(void)getsockopt (1, 1, 1, NULL, (int *)NULL)
13976; return 0; }
13977EOF
13978if { (eval echo configure:13978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13979 rm -rf conftest*
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
13982$as_echo "int *" >&6; }
13983 XML_SOCKLEN_T=int
13984else
13985 echo "configure: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13987 rm -rf conftest*
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
13990$as_echo "$as_me: WARNING: could not determine" >&2;}
13991 XML_SOCKLEN_T="int"
13992fi
13993rm -f conftest*
13994fi
13995rm -f conftest*
13996fi
13997rm -f conftest*
13998
13999cat >>confdefs.h <<_ACEOF
14000#define XML_SOCKLEN_T $XML_SOCKLEN_T
14001_ACEOF
14002
14003
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for const gethostbyname() argument" >&5
14005$as_echo_n "checking for const gethostbyname() argument... " >&6; }
14006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007/* end confdefs.h. */
14008#include <netdb.h>
14009int
14010main ()
14011{
14012(void)gethostbyname((const char *)"");
14013 ;
14014 return 0;
14015}
14016_ACEOF
14017if ac_fn_c_try_link "$LINENO"; then :
14018 have_gethostbyname_const_arg=yes
14019else
14020 have_gethostbyname_const_arg=no
14021fi
14022rm -f core conftest.err conftest.$ac_objext \
14023 conftest$ac_exeext conftest.$ac_ext
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gethostbyname_const_arg" >&5
14025$as_echo "$have_gethostbyname_const_arg" >&6; }
14026if test x"$have_gethostbyname_const_arg" = x"yes"; then
14027
14028$as_echo "#define GETHOSTBYNAME_ARG_CAST /**/" >>confdefs.h
14029
14030else
14031
14032$as_echo "#define GETHOSTBYNAME_ARG_CAST (char *)" >>confdefs.h
14033
14034fi
14035
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for const send() second argument" >&5
14037$as_echo_n "checking for const send() second argument... " >&6; }
14038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039/* end confdefs.h. */
14040#include <sys/types.h>
14041#include <sys/socket.h>
14042int
14043main ()
14044{
14045(void)send(1,(const char *)"",1,1);
14046 ;
14047 return 0;
14048}
14049_ACEOF
14050if ac_fn_c_try_link "$LINENO"; then :
14051 have_send_const_arg2=yes
14052else
14053 have_send_const_arg2=no
14054fi
14055rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_send_const_arg2" >&5
14058$as_echo "$have_send_const_arg2" >&6; }
14059if test x"$have_send_const_arg2" = x"yes"; then
14060
14061$as_echo "#define SEND_ARG2_CAST /**/" >>confdefs.h
14062
14063else
14064
14065$as_echo "#define SEND_ARG2_CAST (char *)" >>confdefs.h
14066
14067fi
14068
14069
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
14071$as_echo_n "checking whether to enable IPv6... " >&6; }
14072# Check whether --enable-ipv6 was given.
14073if test "${enable_ipv6+set}" = set; then :
14074 enableval=$enable_ipv6;
14075else
14076 enable_ipv6=yes
14077fi
14078
14079if test "$with_minimum" = "yes"
14080then
14081 enable_ipv6=no
14082fi
14083if test $enable_ipv6 = yes; then
14084 have_ipv6=no
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086/* end confdefs.h. */
14087
14088# include <sys/types.h>
14089# include <sys/socket.h>
14090
14091int
14092main ()
14093{
14094
14095 struct sockaddr_storage ss;
14096 socket(AF_INET6, SOCK_STREAM, 0)
14097
14098 ;
14099 return 0;
14100}
14101_ACEOF
14102if ac_fn_c_try_compile "$LINENO"; then :
14103 have_ipv6=yes
14104else
14105 have_ipv6=no
14106
14107fi
14108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
14110$as_echo "$have_ipv6" >&6; }
14111
14112 if test $have_ipv6 = yes; then
14113
14114$as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
14115
14116 have_broken_ss_family=no
14117
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
14119$as_echo_n "checking struct sockaddr::ss_family... " >&6; }
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121/* end confdefs.h. */
14122
14123# include <sys/types.h>
14124# include <sys/socket.h>
14125
14126int
14127main ()
14128{
14129
14130 struct sockaddr_storage ss ;
14131 ss.ss_family = 0 ;
14132
14133 ;
14134 return 0;
14135}
14136_ACEOF
14137if ac_fn_c_try_compile "$LINENO"; then :
14138 have_ss_family=yes
14139else
14140 have_ss_family=no
14141
14142fi
14143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
14145$as_echo "$have_ss_family" >&6; }
14146 if test x$have_ss_family = xno ; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
14148$as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150/* end confdefs.h. */
14151
14152# include <sys/types.h>
14153# include <sys/socket.h>
14154
14155int
14156main ()
14157{
14158
14159 struct sockaddr_storage ss ;
14160 ss.__ss_family = 0 ;
14161
14162 ;
14163 return 0;
14164}
14165_ACEOF
14166if ac_fn_c_try_compile "$LINENO"; then :
14167 have_broken_ss_family=yes
14168else
14169 have_broken_ss_family=no
14170
14171fi
14172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
14174$as_echo "$have_broken_ss_family" >&6; }
14175 if test x$have_broken_ss_family = xyes ; then
14176
14177$as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
14178
14179
14180$as_echo "#define ss_family __ss_family" >>confdefs.h
14181
14182 else
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
14184$as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
14185 fi
14186 fi
14187
14188 have_getaddrinfo=no
14189 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
14190if test "x$ac_cv_func_getaddrinfo" = xyes; then :
14191 have_getaddrinfo=yes
14192fi
14193
14194 if test $have_getaddrinfo != yes; then
14195 for lib in bsd socket inet; do
14196 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
14197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
14198$as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
14199if eval \${$as_ac_Lib+:} false; then :
14200 $as_echo_n "(cached) " >&6
14201else
14202 ac_check_lib_save_LIBS=$LIBS
14203LIBS="-l$lib $LIBS"
14204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205/* end confdefs.h. */
14206
14207/* Override any GCC internal prototype to avoid an error.
14208 Use char because int might match the return type of a GCC
14209 builtin and then its argument prototype would still apply. */
14210#ifdef __cplusplus
14211extern "C"
14212#endif
14213char getaddrinfo ();
14214int
14215main ()
14216{
14217return getaddrinfo ();
14218 ;
14219 return 0;
14220}
14221_ACEOF
14222if ac_fn_c_try_link "$LINENO"; then :
14223 eval "$as_ac_Lib=yes"
14224else
14225 eval "$as_ac_Lib=no"
14226fi
14227rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229LIBS=$ac_check_lib_save_LIBS
14230fi
14231eval ac_res=\$$as_ac_Lib
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14233$as_echo "$ac_res" >&6; }
14234if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14235 LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
14236fi
14237
14238 done
14239 fi
14240
14241 if test $have_getaddrinfo = yes; then
14242
14243$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
14244
14245 fi
14246 fi
14247fi
14248
14249
14250ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
14251if test "x$ac_cv_func_isnan" = xyes; then :
14252
14253$as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
14254
14255else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
14257$as_echo_n "checking for isnan in -lm... " >&6; }
14258if ${ac_cv_lib_m_isnan+:} false; then :
14259 $as_echo_n "(cached) " >&6
14260else
14261 ac_check_lib_save_LIBS=$LIBS
14262LIBS="-lm $LIBS"
14263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264/* end confdefs.h. */
14265
14266/* Override any GCC internal prototype to avoid an error.
14267 Use char because int might match the return type of a GCC
14268 builtin and then its argument prototype would still apply. */
14269#ifdef __cplusplus
14270extern "C"
14271#endif
14272char isnan ();
14273int
14274main ()
14275{
14276return isnan ();
14277 ;
14278 return 0;
14279}
14280_ACEOF
14281if ac_fn_c_try_link "$LINENO"; then :
14282 ac_cv_lib_m_isnan=yes
14283else
14284 ac_cv_lib_m_isnan=no
14285fi
14286rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288LIBS=$ac_check_lib_save_LIBS
14289fi
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
14291$as_echo "$ac_cv_lib_m_isnan" >&6; }
14292if test "x$ac_cv_lib_m_isnan" = xyes; then :
14293
14294$as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
14295
14296fi
14297
14298fi
14299
14300
14301ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
14302if test "x$ac_cv_func_isinf" = xyes; then :
14303
14304$as_echo "#define HAVE_ISINF /**/" >>confdefs.h
14305
14306else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
14308$as_echo_n "checking for isinf in -lm... " >&6; }
14309if ${ac_cv_lib_m_isinf+:} false; then :
14310 $as_echo_n "(cached) " >&6
14311else
14312 ac_check_lib_save_LIBS=$LIBS
14313LIBS="-lm $LIBS"
14314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315/* end confdefs.h. */
14316
14317/* Override any GCC internal prototype to avoid an error.
14318 Use char because int might match the return type of a GCC
14319 builtin and then its argument prototype would still apply. */
14320#ifdef __cplusplus
14321extern "C"
14322#endif
14323char isinf ();
14324int
14325main ()
14326{
14327return isinf ();
14328 ;
14329 return 0;
14330}
14331_ACEOF
14332if ac_fn_c_try_link "$LINENO"; then :
14333 ac_cv_lib_m_isinf=yes
14334else
14335 ac_cv_lib_m_isinf=no
14336fi
14337rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
14339LIBS=$ac_check_lib_save_LIBS
14340fi
14341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
14342$as_echo "$ac_cv_lib_m_isinf" >&6; }
14343if test "x$ac_cv_lib_m_isinf" = xyes; then :
14344
14345$as_echo "#define HAVE_ISINF /**/" >>confdefs.h
14346
14347fi
14348
14349fi
14350
14351
14352XML_LIBDIR='-L${libdir}'
14353XML_INCLUDEDIR='-I${includedir}/libxml2'
14354
14355XML_CFLAGS=""
14356RDL_LIBS=""
14357
14358if test "${GCC}" != "yes" ; then
14359 case "${host}" in
14360 hppa*-*-hpux* )
14361 CFLAGS="${CFLAGS} -Wp,-H30000"
14362 ;;
14363 *-dec-osf* )
14364 CFLAGS="${CFLAGS} -ieee"
14365 ;;
14366 alpha*-*-linux* )
14367 CFLAGS="${CFLAGS} -ieee"
14368 ;;
14369 esac
14370else
14371 if test "$with_fexceptions" = "yes"
14372 then
14373 #
14374 # Not activated by default because this inflates the code size
14375 # Used to allow propagation of C++ exceptions through the library
14376 #
14377 CFLAGS="${CFLAGS} -fexceptions"
14378 fi
14379
14380 # warnings we'd like to see
14381 CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
14382 # warnings we'd like to supress
14383 CFLAGS="${CFLAGS} -Wno-long-long"
14384 case "${host}" in
14385 alpha*-*-linux* )
14386 CFLAGS="${CFLAGS} -mieee"
14387 ;;
14388 alpha*-*-osf* )
14389 CFLAGS="${CFLAGS} -mieee"
14390 ;;
14391 esac
14392fi
14393case ${host} in
14394 *-*-solaris*)
14395 XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
14396 ;;
14397 hppa*-hp-mpeix)
14398 NEED_TRIO=1
14399 ;;
14400 *-*-mingw* | *-*-cygwin* | *-*-msvc* )
14401 # If the host is Windows, and shared libraries are disabled, we
14402 # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
14403 # work properly (without it, xmlexports.h would force the use of
14404 # DLL imports, which obviously aren't present in a static
14405 # library).
14406 if test "x$enable_shared" = "xno"; then
14407 XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
14408 CFLAGS="$CFLAGS -DLIBXML_STATIC"
14409 fi
14410 ;;
14411esac
14412
14413
14414
14415PYTHON_VERSION=
14416PYTHON_INCLUDES=
14417PYTHON_SITE_PACKAGES=
14418PYTHON_TESTS=
14419pythondir=
14420if test "$with_python" != "no" ; then
14421 if test -x "$with_python/bin/python"
14422 then
14423 echo Found python in $with_python/bin/python
14424 PYTHON="$with_python/bin/python"
14425 else
14426 if test -x "$with_python/python.exe"
14427 then
14428 echo Found python in $with_python/python.exe
14429 PYTHON="$with_python/python.exe"
14430 else
14431 if test -x "$with_python"
14432 then
14433 echo Found python in $with_python
14434 PYTHON="$with_python"
14435 else
14436 if test -x "$PYTHON"
14437 then
14438 echo Found python in environment PYTHON=$PYTHON
14439 with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
14440 else
14441 # Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
14442set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444$as_echo_n "checking for $ac_word... " >&6; }
14445if ${ac_cv_path_PYTHON+:} false; then :
14446 $as_echo_n "(cached) " >&6
14447else
14448 case $PYTHON in
14449 [\\/]* | ?:[\\/]*)
14450 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14451 ;;
14452 *)
14453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454for as_dir in $PATH
14455do
14456 IFS=$as_save_IFS
14457 test -z "$as_dir" && as_dir=.
14458 for ac_exec_ext in '' $ac_executable_extensions; do
14459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14460 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14462 break 2
14463 fi
14464done
14465 done
14466IFS=$as_save_IFS
14467
14468 ;;
14469esac
14470fi
14471PYTHON=$ac_cv_path_PYTHON
14472if test -n "$PYTHON"; then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14474$as_echo "$PYTHON" >&6; }
14475else
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477$as_echo "no" >&6; }
14478fi
14479
14480
14481 fi
14482 fi
14483 fi
14484 fi
14485 if test "$PYTHON" != ""
14486 then
14487 PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`
14488 PYTHON_INCLUDES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_inc())"`
14489# does not work as it produce a /usr/lib/python path instead of/usr/lib64/python
14490#
14491# PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
14492 echo Found Python version $PYTHON_VERSION
14493 fi
14494 if test "$PYTHON_VERSION" != "" -a "$PYTHON_INCLUDES" = ""
14495 then
14496 if test -r $with_python/include/python$PYTHON_VERSION/Python.h
14497 then
14498 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
14499 else
14500 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
14501 then
14502 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
14503 else
14504 if test -r /usr/include/python$PYTHON_VERSION/Python.h
14505 then
14506 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
14507 else
14508 if test -r $with_python/include/Python.h
14509 then
14510 PYTHON_INCLUDES=$with_python/include
14511 else
14512 echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h
14513 fi
14514 fi
14515 fi
14516 fi
14517 fi
14518 if test "$with_python_install_dir" != ""
14519 then
14520 PYTHON_SITE_PACKAGES="$with_python_install_dir"
14521 fi
14522 if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = ""
14523 then
14524 if test -d $libdir/python$PYTHON_VERSION/site-packages
14525 then
14526 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
14527 else
14528 if test -d $with_python/lib/site-packages
14529 then
14530 PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
14531 else
14532 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
14533 fi
14534 fi
14535 fi
14536 pythondir='$(PYTHON_SITE_PACKAGES)'
14537 PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
14538else
14539 PYTHON=
14540fi
14541 if test "$PYTHON_INCLUDES" != ""; then
14542 WITH_PYTHON_TRUE=
14543 WITH_PYTHON_FALSE='#'
14544else
14545 WITH_PYTHON_TRUE='#'
14546 WITH_PYTHON_FALSE=
14547fi
14548
14549if test "$PYTHON_INCLUDES" != ""
14550then
14551 PYTHON_SUBDIR=python
14552else
14553 PYTHON_SUBDIR=
14554fi
14555
14556
14557
14558
14559WITH_MODULES=0
14560TEST_MODULES=
14561
14562if test "$with_modules" != "no" ; then
14563 case "$host" in
14564 *-*-cygwin*)
14565 MODULE_EXTENSION=".dll"
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
14567$as_echo_n "checking for dlopen in -lcygwin... " >&6; }
14568if ${ac_cv_lib_cygwin_dlopen+:} false; then :
14569 $as_echo_n "(cached) " >&6
14570else
14571 ac_check_lib_save_LIBS=$LIBS
14572LIBS="-lcygwin $LIBS"
14573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574/* end confdefs.h. */
14575
14576/* Override any GCC internal prototype to avoid an error.
14577 Use char because int might match the return type of a GCC
14578 builtin and then its argument prototype would still apply. */
14579#ifdef __cplusplus
14580extern "C"
14581#endif
14582char dlopen ();
14583int
14584main ()
14585{
14586return dlopen ();
14587 ;
14588 return 0;
14589}
14590_ACEOF
14591if ac_fn_c_try_link "$LINENO"; then :
14592 ac_cv_lib_cygwin_dlopen=yes
14593else
14594 ac_cv_lib_cygwin_dlopen=no
14595fi
14596rm -f core conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14598LIBS=$ac_check_lib_save_LIBS
14599fi
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
14601$as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
14602if test "x$ac_cv_lib_cygwin_dlopen" = xyes; then :
14603
14604 WITH_MODULES=1
14605 MODULE_PLATFORM_LIBS=
14606
14607$as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
14608
14609
14610fi
14611
14612 ;;
14613 *-*-mingw*)
14614 MODULE_EXTENSION=".dll"
14615 WITH_MODULES=1
14616 ;;
14617 *)
14618 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14619if test "x$ac_cv_func_shl_load" = xyes; then :
14620 libxml_have_shl_load=yes
14621else
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14624$as_echo_n "checking for shl_load in -ldld... " >&6; }
14625if ${ac_cv_lib_dld_shl_load+:} false; then :
14626 $as_echo_n "(cached) " >&6
14627else
14628 ac_check_lib_save_LIBS=$LIBS
14629LIBS="-ldld $LIBS"
14630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631/* end confdefs.h. */
14632
14633/* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14636#ifdef __cplusplus
14637extern "C"
14638#endif
14639char shl_load ();
14640int
14641main ()
14642{
14643return shl_load ();
14644 ;
14645 return 0;
14646}
14647_ACEOF
14648if ac_fn_c_try_link "$LINENO"; then :
14649 ac_cv_lib_dld_shl_load=yes
14650else
14651 ac_cv_lib_dld_shl_load=no
14652fi
14653rm -f core conftest.err conftest.$ac_objext \
14654 conftest$ac_exeext conftest.$ac_ext
14655LIBS=$ac_check_lib_save_LIBS
14656fi
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14658$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14659if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14660
14661 MODULE_PLATFORM_LIBS="-ldld"
14662 libxml_have_shl_load=yes
14663else
14664
14665 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14666if test "x$ac_cv_func_dlopen" = xyes; then :
14667 libxml_have_dlopen=yes
14668else
14669
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14671$as_echo_n "checking for dlopen in -ldl... " >&6; }
14672if ${ac_cv_lib_dl_dlopen+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674else
14675 ac_check_lib_save_LIBS=$LIBS
14676LIBS="-ldl $LIBS"
14677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678/* end confdefs.h. */
14679
14680/* Override any GCC internal prototype to avoid an error.
14681 Use char because int might match the return type of a GCC
14682 builtin and then its argument prototype would still apply. */
14683#ifdef __cplusplus
14684extern "C"
14685#endif
14686char dlopen ();
14687int
14688main ()
14689{
14690return dlopen ();
14691 ;
14692 return 0;
14693}
14694_ACEOF
14695if ac_fn_c_try_link "$LINENO"; then :
14696 ac_cv_lib_dl_dlopen=yes
14697else
14698 ac_cv_lib_dl_dlopen=no
14699fi
14700rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702LIBS=$ac_check_lib_save_LIBS
14703fi
14704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14705$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14706if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14707
14708 MODULE_PLATFORM_LIBS="-ldl"
14709 libxml_have_dlopen=yes
14710fi
14711
14712fi
14713
14714fi
14715
14716fi
14717
14718
14719 if test "${libxml_have_shl_load}" = "yes"; then
14720 MODULE_EXTENSION=".sl"
14721 WITH_MODULES=1
14722
14723$as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
14724
14725 fi
14726
14727 if test "${libxml_have_dlopen}" = "yes"; then
14728 case "${host}" in
14729 *-*-hpux* )
14730 MODULE_EXTENSION=".sl"
14731 ;;
14732 * )
14733 MODULE_EXTENSION=".so"
14734 ;;
14735 esac
14736
14737 WITH_MODULES=1
14738
14739$as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
14740
14741 fi
14742 ;;
14743 esac
14744fi
14745
14746if test "${WITH_MODULES}" = "1"; then
14747 TEST_MODULES="ModuleTests"
14748fi
14749
14750
14751
14752
14753
14754
14755
14756if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
14757 [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
14758 [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
14759 then
14760 if test "$with_minimum" != "yes"
14761 then
14762 if test "${with_mem_debug}" = "" ; then
14763 echo Activating memory debugging
14764 with_mem_debug="yes"
14765 with_run_debug="yes"
14766 fi
14767 if test "${with_docbook}" = "" ; then
14768 with_docbook="yes"
14769 fi
14770 fi
14771 if test "${GCC}" = "yes" ; then
14772 CFLAGS="-g -O -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall"
14773 fi
14774 STATIC_BINARIES="-static"
14775else
14776 STATIC_BINARIES=
14777fi
14778
14779
14780
14781if test "${NEED_TRIO}" = "1" ; then
14782 echo Adding trio library for string functions
14783 WITH_TRIO=1
14784else
14785 WITH_TRIO=0
14786fi
14787 if test "${NEED_TRIO}" = "1"; then
14788 WITH_TRIO_SOURCES_TRUE=
14789 WITH_TRIO_SOURCES_FALSE='#'
14790else
14791 WITH_TRIO_SOURCES_TRUE='#'
14792 WITH_TRIO_SOURCES_FALSE=
14793fi
14794
14795
14796
14797echo Checking configuration requirements
14798
14799THREAD_LIBS=""
14800BASE_THREAD_LIBS=""
14801WITH_THREADS=0
14802THREAD_CFLAGS=""
14803TEST_THREADS=""
14804THREADS_W32=""
14805WITH_THREAD_ALLOC=0
14806
14807if test "$with_threads" = "no" ; then
14808 echo Disabling multithreaded support
14809else
14810 echo Enabling multithreaded support
14811
14812 case $host_os in
14813 *mingw32*) if test "$with_threads" != "pthread" && test "$with_threads" != "no"; then
14814 WITH_THREADS="1"
14815 THREADS_W32="1"
14816 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
14817 fi
14818 ;;
14819 esac
14820
14821 if test -z "$THREADS_W32"; then
14822 if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
14823 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14824if test "x$ac_cv_header_pthread_h" = xyes; then :
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
14826$as_echo_n "checking for pthread_join in -lpthread... " >&6; }
14827if ${ac_cv_lib_pthread_pthread_join+:} false; then :
14828 $as_echo_n "(cached) " >&6
14829else
14830 ac_check_lib_save_LIBS=$LIBS
14831LIBS="-lpthread $LIBS"
14832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833/* end confdefs.h. */
14834
14835/* Override any GCC internal prototype to avoid an error.
14836 Use char because int might match the return type of a GCC
14837 builtin and then its argument prototype would still apply. */
14838#ifdef __cplusplus
14839extern "C"
14840#endif
14841char pthread_join ();
14842int
14843main ()
14844{
14845return pthread_join ();
14846 ;
14847 return 0;
14848}
14849_ACEOF
14850if ac_fn_c_try_link "$LINENO"; then :
14851 ac_cv_lib_pthread_pthread_join=yes
14852else
14853 ac_cv_lib_pthread_pthread_join=no
14854fi
14855rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857LIBS=$ac_check_lib_save_LIBS
14858fi
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
14860$as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
14861if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
14862
14863 THREAD_LIBS="-lpthread"
14864
14865$as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
14866
14867
14868$as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
14869
14870 WITH_THREADS="1"
14871fi
14872
14873fi
14874
14875
14876 fi
14877 fi
14878
14879 case $host_os in
14880 *cygwin*) THREAD_LIBS=""
14881 ;;
14882 *beos*) WITH_THREADS="1"
14883 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
14884 ;;
14885 *linux*)
14886 if test "${GCC}" = "yes" ; then
14887 GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
14888 GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
14889 GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
14890 if test "${THREAD_LIBS}" = "-lpthread" ; then
14891 if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
14892 then
14893 THREAD_LIBS=""
14894 BASE_THREAD_LIBS="-lpthread"
14895 else
14896 if expr ${GCC_MAJOR} \> 3 > /dev/null
14897 then
14898 THREAD_LIBS=""
14899 BASE_THREAD_LIBS="-lpthread"
14900 else
14901 echo old GCC disabling weak symbols for pthread
14902 fi
14903 fi
14904 fi
14905 fi
14906 ;;
14907 esac
14908 if test "$WITH_THREADS" = "1" ; then
14909 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
14910 TEST_THREADS="Threadtests"
14911 fi
14912fi
14913if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
14914 WITH_THREAD_ALLOC=1
14915fi
14916
14917
14918
14919
14920
14921
14922
14923 if test -n "$THREADS_W32"; then
14924 THREADS_W32_TRUE=
14925 THREADS_W32_FALSE='#'
14926else
14927 THREADS_W32_TRUE='#'
14928 THREADS_W32_FALSE=
14929fi
14930
14931
14932if test "$with_history" = "yes" ; then
14933 echo Enabling xmllint shell history
14934 unset tcap
14935 for termlib in ncurses curses termcap terminfo termlib; do
14936 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
14937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
14938$as_echo_n "checking for tputs in -l${termlib}... " >&6; }
14939if eval \${$as_ac_Lib+:} false; then :
14940 $as_echo_n "(cached) " >&6
14941else
14942 ac_check_lib_save_LIBS=$LIBS
14943LIBS="-l${termlib} $LIBS"
14944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945/* end confdefs.h. */
14946
14947/* Override any GCC internal prototype to avoid an error.
14948 Use char because int might match the return type of a GCC
14949 builtin and then its argument prototype would still apply. */
14950#ifdef __cplusplus
14951extern "C"
14952#endif
14953char tputs ();
14954int
14955main ()
14956{
14957return tputs ();
14958 ;
14959 return 0;
14960}
14961_ACEOF
14962if ac_fn_c_try_link "$LINENO"; then :
14963 eval "$as_ac_Lib=yes"
14964else
14965 eval "$as_ac_Lib=no"
14966fi
14967rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext conftest.$ac_ext
14969LIBS=$ac_check_lib_save_LIBS
14970fi
14971eval ac_res=\$$as_ac_Lib
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14973$as_echo "$ac_res" >&6; }
14974if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14975 tcap="-l$termlib"
14976fi
14977
14978 test -n "$tcap" && break
14979 done
14980
14981 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
14982if test "x$ac_cv_header_readline_history_h" = xyes; then :
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
14984$as_echo_n "checking for append_history in -lhistory... " >&6; }
14985if ${ac_cv_lib_history_append_history+:} false; then :
14986 $as_echo_n "(cached) " >&6
14987else
14988 ac_check_lib_save_LIBS=$LIBS
14989LIBS="-lhistory $LIBS"
14990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991/* end confdefs.h. */
14992
14993/* Override any GCC internal prototype to avoid an error.
14994 Use char because int might match the return type of a GCC
14995 builtin and then its argument prototype would still apply. */
14996#ifdef __cplusplus
14997extern "C"
14998#endif
14999char append_history ();
15000int
15001main ()
15002{
15003return append_history ();
15004 ;
15005 return 0;
15006}
15007_ACEOF
15008if ac_fn_c_try_link "$LINENO"; then :
15009 ac_cv_lib_history_append_history=yes
15010else
15011 ac_cv_lib_history_append_history=no
15012fi
15013rm -f core conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015LIBS=$ac_check_lib_save_LIBS
15016fi
15017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
15018$as_echo "$ac_cv_lib_history_append_history" >&6; }
15019if test "x$ac_cv_lib_history_append_history" = xyes; then :
15020
15021 RDL_LIBS="-lhistory"
15022
15023$as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
15024
15025fi
15026
15027fi
15028
15029
15030 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
15031if test "x$ac_cv_header_readline_readline_h" = xyes; then :
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15033$as_echo_n "checking for readline in -lreadline... " >&6; }
15034if ${ac_cv_lib_readline_readline+:} false; then :
15035 $as_echo_n "(cached) " >&6
15036else
15037 ac_check_lib_save_LIBS=$LIBS
15038LIBS="-lreadline $tcap $LIBS"
15039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040/* end confdefs.h. */
15041
15042/* Override any GCC internal prototype to avoid an error.
15043 Use char because int might match the return type of a GCC
15044 builtin and then its argument prototype would still apply. */
15045#ifdef __cplusplus
15046extern "C"
15047#endif
15048char readline ();
15049int
15050main ()
15051{
15052return readline ();
15053 ;
15054 return 0;
15055}
15056_ACEOF
15057if ac_fn_c_try_link "$LINENO"; then :
15058 ac_cv_lib_readline_readline=yes
15059else
15060 ac_cv_lib_readline_readline=no
15061fi
15062rm -f core conftest.err conftest.$ac_objext \
15063 conftest$ac_exeext conftest.$ac_ext
15064LIBS=$ac_check_lib_save_LIBS
15065fi
15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15067$as_echo "$ac_cv_lib_readline_readline" >&6; }
15068if test "x$ac_cv_lib_readline_readline" = xyes; then :
15069
15070 RDL_LIBS="-lreadline $RDL_LIBS $tcap"
15071
15072$as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
15073
15074fi
15075
15076fi
15077
15078
15079 if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
15080 CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
15081 RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
15082 fi
15083fi
15084
15085if test "$with_tree" = "no" ; then
15086 echo Disabling DOM like tree manipulation APIs
15087 WITH_TREE=0
15088else
15089 WITH_TREE=1
15090fi
15091
15092
15093if test "$with_ftp" = "no" ; then
15094 echo Disabling FTP support
15095 WITH_FTP=0
15096 FTP_OBJ=
15097else
15098 WITH_FTP=1
15099 FTP_OBJ=nanoftp.o
15100fi
15101
15102
15103
15104if test "$with_http" = "no" ; then
15105 echo Disabling HTTP support
15106 WITH_HTTP=0
15107 HTTP_OBJ=
15108else
15109 WITH_HTTP=1
15110 HTTP_OBJ=nanohttp.o
15111fi
15112
15113
15114
15115if test "$with_legacy" = "no" ; then
15116 echo Disabling deprecated APIs
15117 WITH_LEGACY=0
15118else
15119 WITH_LEGACY=1
15120fi
15121
15122
15123if test "$with_reader" = "no" ; then
15124 echo Disabling the xmlReader parsing interface
15125 WITH_READER=0
15126 READER_TEST=
15127else
15128 WITH_READER=1
15129 READER_TEST=Readertests
15130 if test "$with_push" = "no" ; then
15131 echo xmlReader requires Push interface - enabling it
15132 with_push=yes
15133 fi
15134fi
15135
15136
15137
15138if test "$with_writer" = "no" ; then
15139 echo Disabling the xmlWriter saving interface
15140 WITH_WRITER=0
15141# WRITER_TEST=
15142else
15143 WITH_WRITER=1
15144# WRITER_TEST=Writertests
15145 if test "$with_push" = "no" ; then
15146 echo xmlWriter requires Push interface - enabling it
15147 with_push=yes
15148 fi
15149 if test "$with_output" = "no" ; then
15150 echo xmlWriter requires Output interface - enabling it
15151 with_output=yes
15152 fi
15153fi
15154
15155#AC_SUBST(WRITER_TEST)
15156
15157if test "$with_pattern" = "no" ; then
15158 echo Disabling the xmlPattern parsing interface
15159 WITH_PATTERN=0
15160 TEST_PATTERN=
15161else
15162 WITH_PATTERN=1
15163 TEST_PATTERN=Patterntests
15164fi
15165
15166
15167
15168if test "$with_sax1" = "no" ; then
15169 echo Disabling the older SAX1 interface
15170 WITH_SAX1=0
15171 TEST_SAX=
15172else
15173 WITH_SAX1=1
15174 TEST_SAX=SAXtests
15175fi
15176
15177 if test "${WITH_TRIO}" = "1"; then
15178 WITH_SAX1_SOURCES_TRUE=
15179 WITH_SAX1_SOURCES_FALSE='#'
15180else
15181 WITH_SAX1_SOURCES_TRUE='#'
15182 WITH_SAX1_SOURCES_FALSE=
15183fi
15184
15185
15186
15187if test "$with_push" = "no" ; then
15188 echo Disabling the PUSH parser interfaces
15189 WITH_PUSH=0
15190 TEST_PUSH=
15191else
15192 WITH_PUSH=1
15193 TEST_PUSH="XMLPushtests"
15194fi
15195
15196
15197
15198if test "$with_html" = "no" ; then
15199 echo Disabling HTML support
15200 WITH_HTML=0
15201 HTML_OBJ=
15202 TEST_HTML=
15203else
15204 WITH_HTML=1
15205 HTML_OBJ="HTMLparser.o HTMLtree.o"
15206 TEST_HTML=HTMLtests
15207 if test "$with_push" != "no" ; then
15208 TEST_PHTML=HTMLPushtests
15209 else
15210 TEST_PHTML=
15211 fi
15212fi
15213
15214
15215
15216
15217
15218if test "$with_valid" = "no" ; then
15219 echo Disabling DTD validation support
15220 WITH_VALID=0
15221 TEST_VALID=
15222 TEST_VTIME=
15223else
15224 WITH_VALID=1
15225 TEST_VALID=Validtests
15226 TEST_VTIME=VTimingtests
15227fi
15228
15229
15230
15231
15232if test "$with_catalog" = "no" ; then
15233 echo Disabling Catalog support
15234 WITH_CATALOG=0
15235 CATALOG_OBJ=
15236 TEST_CATALOG=
15237else
15238 WITH_CATALOG=1
15239 CATALOG_OBJ="catalog.o"
15240 TEST_CATALOG=Catatests
15241fi
15242
15243
15244
15245
15246if test "$with_docbook" = "no" ; then
15247 echo Disabling Docbook support
15248 WITH_DOCB=0
15249 DOCB_OBJ=
15250else
15251 WITH_DOCB=1
15252 DOCB_OBJ="DOCBparser.o"
15253fi
15254
15255
15256
15257
15258if test "$with_xptr" = "no" ; then
15259 echo Disabling XPointer support
15260 WITH_XPTR=0
15261 XPTR_OBJ=
15262 TEST_XPTR=
15263else
15264 WITH_XPTR=1
15265 XPTR_OBJ=xpointer.o
15266 TEST_XPTR=XPtrtests
15267 if test "$with_xpath" = "no" ; then
15268 echo XPointer requires XPath support - enabling it
15269 with_xpath=yes
15270 fi
15271fi
15272
15273
15274
15275
15276if test "$with_c14n" = "no" ; then
15277 echo Disabling C14N support
15278 WITH_C14N=0
15279 C14N_OBJ=
15280 TEST_C14N=
15281else
15282 WITH_C14N=1
15283 C14N_OBJ="c14n.c"
15284 TEST_C14N=C14Ntests
15285 if test "$with_xpath" = "no" ; then
15286 echo C14N requires XPath support - enabling it
15287 with_xpath=yes
15288 fi
15289fi
15290
15291
15292
15293
15294if test "$with_xinclude" = "no" ; then
15295 echo Disabling XInclude support
15296 WITH_XINCLUDE=0
15297 XINCLUDE_OBJ=
15298 with_xinclude="no"
15299 TEST_XINCLUDE=
15300else
15301 WITH_XINCLUDE=1
15302 XINCLUDE_OBJ=xinclude.o
15303 TEST_XINCLUDE=XIncludetests
15304 if test "$with_xpath" = "no" ; then
15305 echo XInclude requires XPath support - enabling it
15306 with_xpath=yes
15307 fi
15308fi
15309
15310
15311
15312
15313if test "$with_xptr" = "" -a "$with_xpath" = "no" ; then
15314 with_xptr=no
15315fi
15316
15317if test "$with_schematron" = "" -a "$with_xpath" = "no" ; then
15318 with_schematron=no
15319fi
15320
15321if test "$with_schematron" = "no" ; then
15322 echo "Disabling Schematron support"
15323 WITH_SCHEMATRON=0
15324 TEST_SCHEMATRON=
15325else
15326 echo "Enabled Schematron support"
15327 WITH_SCHEMATRON=1
15328 TEST_SCHEMATRON="Schematrontests"
15329 with_xpath=yes
15330 with_pattern=yes
15331 with_schematron=yes
15332fi
15333
15334
15335
15336if test "$with_xpath" = "no" ; then
15337 echo Disabling XPATH support
15338 WITH_XPATH=0
15339 XPATH_OBJ=
15340 TEST_XPATH=
15341else
15342 WITH_XPATH=1
15343 XPATH_OBJ=xpath.o
15344 TEST_XPATH=XPathtests
15345fi
15346
15347
15348
15349
15350if test "$with_output" = "no" ; then
15351 echo Disabling serialization/saving support
15352 WITH_OUTPUT=0
15353else
15354 WITH_OUTPUT=1
15355fi
15356
15357
15358WITH_ICONV=0
15359if test "$with_iconv" = "no" ; then
15360 echo Disabling ICONV support
15361else
15362 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
15363 CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
15364 # Export this since our headers include iconv.h
15365 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
15366 ICONV_LIBS="-L$with_iconv/lib"
15367 fi
15368
15369 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
15370if test "x$ac_cv_header_iconv_h" = xyes; then :
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15372$as_echo_n "checking for iconv... " >&6; }
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374/* end confdefs.h. */
15375#include <stdlib.h>
15376#include <iconv.h>
15377int
15378main ()
15379{
15380
15381iconv_t cd = iconv_open ("","");
15382iconv (cd, NULL, NULL, NULL, NULL);
15383 ;
15384 return 0;
15385}
15386_ACEOF
15387if ac_fn_c_try_link "$LINENO"; then :
15388
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15390$as_echo "yes" >&6; }
15391 WITH_ICONV=1
15392else
15393
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15395$as_echo "no" >&6; }
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
15397$as_echo_n "checking for iconv in -liconv... " >&6; }
15398
15399 _ldflags="${LDFLAGS}"
15400 _libs="${LIBS}"
15401 LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
15402 LIBS="${LIBS} -liconv"
15403
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405/* end confdefs.h. */
15406#include <stdlib.h>
15407#include <iconv.h>
15408int
15409main ()
15410{
15411
15412iconv_t cd = iconv_open ("","");
15413iconv (cd, NULL, NULL, NULL, NULL);
15414 ;
15415 return 0;
15416}
15417_ACEOF
15418if ac_fn_c_try_link "$LINENO"; then :
15419
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15421$as_echo "yes" >&6; }
15422 WITH_ICONV=1
15423 ICONV_LIBS="${ICONV_LIBS} -liconv"
15424 LIBS="${_libs}"
15425 LDFLAGS="${_ldflags}"
15426else
15427
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15429$as_echo "no" >&6; }
15430 LIBS="${_libs}"
15431 LDFLAGS="${_ldflags}"
15432fi
15433rm -f core conftest.err conftest.$ac_objext \
15434 conftest$ac_exeext conftest.$ac_ext
15435fi
15436rm -f core conftest.err conftest.$ac_objext \
15437 conftest$ac_exeext conftest.$ac_ext
15438fi
15439
15440
15441
15442 if test "$WITH_ICONV" = "1" ; then
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15444$as_echo_n "checking for iconv declaration... " >&6; }
15445 if ${xml_cv_iconv_arg2+:} false; then :
15446 $as_echo_n "(cached) " >&6
15447else
15448
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450/* end confdefs.h. */
15451#include <stdlib.h>
15452#include <iconv.h>
15453extern
15454#ifdef __cplusplus
15455"C"
15456#endif
15457#if defined(__STDC__) || defined(__cplusplus)
15458size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15459#else
15460size_t iconv();
15461#endif
15462
15463int
15464main ()
15465{
15466
15467 ;
15468 return 0;
15469}
15470_ACEOF
15471if ac_fn_c_try_compile "$LINENO"; then :
15472 xml_cv_iconv_arg2=""
15473else
15474 xml_cv_iconv_arg2="const"
15475fi
15476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477fi
15478
15479
15480 xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_iconv_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
15482 }$xml_cv_iconv_decl" >&5
15483$as_echo "${xml_xxx:-
15484 }$xml_cv_iconv_decl" >&6; }
15485
15486cat >>confdefs.h <<_ACEOF
15487#define ICONV_CONST $xml_cv_iconv_arg2
15488_ACEOF
15489
15490 fi
15491fi
15492case "$host" in
15493 *mingw*) M_LIBS=""
15494 ;;
15495 *beos*) M_LIBS=""
15496 ;;
15497 *haiku*) M_LIBS=""
15498 ;;
15499 *) M_LIBS="-lm"
15500 ;;
15501esac
15502XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
15503XML_LIBTOOLLIBS="libxml2.la"
15504
15505
15506WITH_ICU=0
15507ICU_LIBS=""
15508if test "$with_icu" != "yes" ; then
15509 echo Disabling ICU support
15510else
15511 ICU_CONFIG=icu-config
15512 if ${ICU_CONFIG} --cflags >/dev/null 2>&1
15513 then
15514 ICU_LIBS=`${ICU_CONFIG} --ldflags`
15515 WITH_ICU=1
15516 echo Enabling ICU support
15517 else
15518 as_fn_error $? "libicu config program icu-config not found" "$LINENO" 5
15519 fi
15520fi
15521
15522
15523
15524WITH_ISO8859X=1
15525if test "$WITH_ICONV" != "1" ; then
15526if test "$with_iso8859x" = "no" ; then
15527 echo Disabling ISO8859X support
15528 WITH_ISO8859X=0
15529fi
15530fi
15531
15532
15533if test "$with_schemas" = "no" ; then
15534 echo "Disabling Schemas/Relax-NG support"
15535 WITH_SCHEMAS=0
15536 TEST_SCHEMAS=
15537else
15538 echo "Enabled Schemas/Relax-NG support"
15539 WITH_SCHEMAS=1
15540 TEST_SCHEMAS="Schemastests Relaxtests"
15541 if test "$PYTHON_INCLUDES" != "" ; then
15542 PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
15543 fi
15544 with_regexps=yes
15545fi
15546
15547
15548
15549if test "$with_regexps" = "no" ; then
15550 echo Disabling Regexps support
15551 WITH_REGEXPS=0
15552 TEST_REGEXPS=
15553else
15554 WITH_REGEXPS=1
15555 TEST_REGEXPS="Regexptests Automatatests"
15556fi
15557
15558
15559
15560if test "$with_debug" = "no" ; then
15561 echo Disabling DEBUG support
15562 WITH_DEBUG=0
15563 DEBUG_OBJ=
15564 TEST_DEBUG=
15565else
15566 WITH_DEBUG=1
15567 DEBUG_OBJ=debugXML.o
15568 TEST_DEBUG=Scripttests
15569fi
15570
15571
15572
15573
15574if test "$with_mem_debug" = "yes" ; then
15575 if test "$with_thread_alloc" = "yes" ; then
15576 echo Disabling memory debug - cannot use mem-debug with thread-alloc!
15577 WITH_MEM_DEBUG=0
15578 else
15579 echo Enabling memory debug support
15580 WITH_MEM_DEBUG=1
15581 fi
15582else
15583 WITH_MEM_DEBUG=0
15584fi
15585
15586
15587if test "$with_run_debug" = "yes" ; then
15588 echo Enabling runtime debug support
15589 WITH_RUN_DEBUG=1
15590else
15591 WITH_RUN_DEBUG=0
15592fi
15593
15594
15595WIN32_EXTRA_LIBADD=
15596WIN32_EXTRA_LDFLAGS=
15597CYGWIN_EXTRA_LDFLAGS=
15598CYGWIN_EXTRA_PYTHON_LIBADD=
15599WIN32_EXTRA_PYTHON_LIBADD=
15600case "$host" in
15601 *-*-mingw*)
15602 CPPFLAGS="$CPPFLAGS -DWIN32"
15603 WIN32_EXTRA_LIBADD="-lws2_32"
15604 WIN32_EXTRA_LDFLAGS="-no-undefined"
15605
15606$as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
15607
15608 if test "${PYTHON}" != ""
15609 then
15610 WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
15611 fi
15612 ;;
15613 *-*-cygwin*)
15614 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
15615 if test "${PYTHON}" != ""
15616 then
15617 CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
15618 fi
15619 ;;
15620esac
15621
15622
15623
15624
15625
15626
15627for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
15628do :
15629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15630ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15631if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15632 cat >>confdefs.h <<_ACEOF
15633#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15634_ACEOF
15635
15636else
15637 NEED_TRIO=1
15638fi
15639done
15640
15641
15642if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
15643then
15644 echo Enabling code coverage for GCC
15645 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
15646 LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
15647else
15648 echo Disabling code coverage for GCC
15649fi
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672RELDATE=`date +'%a %b %e %Y'`
15673
15674
15675
15676rm -f COPYING.LIB COPYING
15677ln -s $srcdir/Copyright COPYING
15678
15679# keep on one line for cygwin c.f. #130896
15680ac_config_files="$ac_config_files libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h libxml-2.0.pc libxml-2.0-uninstalled.pc libxml2-config.cmake"
15681
15682ac_config_files="$ac_config_files python/setup.py"
15683
15684ac_config_files="$ac_config_files xml2-config"
15685
15686cat >confcache <<\_ACEOF
15687# This file is a shell script that caches the results of configure
15688# tests run on this system so they can be shared between configure
15689# scripts and configure runs, see configure's option --config-cache.
15690# It is not useful on other systems. If it contains results you don't
15691# want to keep, you may remove or edit it.
15692#
15693# config.status only pays attention to the cache file if you give it
15694# the --recheck option to rerun configure.
15695#
15696# `ac_cv_env_foo' variables (set or unset) will be overridden when
15697# loading this file, other *unset* `ac_cv_foo' will be assigned the
15698# following values.
15699
15700_ACEOF
15701
15702# The following way of writing the cache mishandles newlines in values,
15703# but we know of no workaround that is simple, portable, and efficient.
15704# So, we kill variables containing newlines.
15705# Ultrix sh set writes to stderr and can't be redirected directly,
15706# and sets the high bit in the cache file unless we assign to the vars.
15707(
15708 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15709 eval ac_val=\$$ac_var
15710 case $ac_val in #(
15711 *${as_nl}*)
15712 case $ac_var in #(
15713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15714$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15715 esac
15716 case $ac_var in #(
15717 _ | IFS | as_nl) ;; #(
15718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15719 *) { eval $ac_var=; unset $ac_var;} ;;
15720 esac ;;
15721 esac
15722 done
15723
15724 (set) 2>&1 |
15725 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15726 *${as_nl}ac_space=\ *)
15727 # `set' does not quote correctly, so add quotes: double-quote
15728 # substitution turns \\\\ into \\, and sed turns \\ into \.
15729 sed -n \
15730 "s/'/'\\\\''/g;
15731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15732 ;; #(
15733 *)
15734 # `set' quotes correctly as required by POSIX, so do not add quotes.
15735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15736 ;;
15737 esac |
15738 sort
15739) |
15740 sed '
15741 /^ac_cv_env_/b end
15742 t clear
15743 :clear
15744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15745 t end
15746 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15747 :end' >>confcache
15748if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15749 if test -w "$cache_file"; then
15750 if test "x$cache_file" != "x/dev/null"; then
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15752$as_echo "$as_me: updating cache $cache_file" >&6;}
15753 if test ! -f "$cache_file" || test -h "$cache_file"; then
15754 cat confcache >"$cache_file"
15755 else
15756 case $cache_file in #(
15757 */* | ?:*)
15758 mv -f confcache "$cache_file"$$ &&
15759 mv -f "$cache_file"$$ "$cache_file" ;; #(
15760 *)
15761 mv -f confcache "$cache_file" ;;
15762 esac
15763 fi
15764 fi
15765 else
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15767$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15768 fi
15769fi
15770rm -f confcache
15771
15772test "x$prefix" = xNONE && prefix=$ac_default_prefix
15773# Let make expand exec_prefix.
15774test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15775
15776DEFS=-DHAVE_CONFIG_H
15777
15778ac_libobjs=
15779ac_ltlibobjs=
15780U=
15781for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15782 # 1. Remove the extension, and $U if already installed.
15783 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15784 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15785 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15786 # will be set to the directory where LIBOBJS objects are built.
15787 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15788 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15789done
15790LIBOBJS=$ac_libobjs
15791
15792LTLIBOBJS=$ac_ltlibobjs
15793
15794
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15796$as_echo_n "checking that generated files are newer than configure... " >&6; }
15797 if test -n "$am_sleep_pid"; then
15798 # Hide warnings about reused PIDs.
15799 wait $am_sleep_pid 2>/dev/null
15800 fi
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15802$as_echo "done" >&6; }
15803 if test -n "$EXEEXT"; then
15804 am__EXEEXT_TRUE=
15805 am__EXEEXT_FALSE='#'
15806else
15807 am__EXEEXT_TRUE='#'
15808 am__EXEEXT_FALSE=
15809fi
15810
15811if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15812 as_fn_error $? "conditional \"AMDEP\" was never defined.
15813Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814fi
15815if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15816 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15817Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818fi
15819if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
15820 as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
15821Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822fi
15823if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
15824 as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
15825Usually this means the macro was only invoked conditionally." "$LINENO" 5
15826fi
15827if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
15828 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
15829Usually this means the macro was only invoked conditionally." "$LINENO" 5
15830fi
15831if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
15832 as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
15833Usually this means the macro was only invoked conditionally." "$LINENO" 5
15834fi
15835if test -z "${THREADS_W32_TRUE}" && test -z "${THREADS_W32_FALSE}"; then
15836 as_fn_error $? "conditional \"THREADS_W32\" was never defined.
15837Usually this means the macro was only invoked conditionally." "$LINENO" 5
15838fi
15839if test -z "${WITH_SAX1_SOURCES_TRUE}" && test -z "${WITH_SAX1_SOURCES_FALSE}"; then
15840 as_fn_error $? "conditional \"WITH_SAX1_SOURCES\" was never defined.
15841Usually this means the macro was only invoked conditionally." "$LINENO" 5
15842fi
15843
15844: "${CONFIG_STATUS=./config.status}"
15845ac_write_fail=0
15846ac_clean_files_save=$ac_clean_files
15847ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15848{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15849$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15850as_write_fail=0
15851cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15852#! $SHELL
15853# Generated by $as_me.
15854# Run this file to recreate the current configuration.
15855# Compiler output produced by configure, useful for debugging
15856# configure, is in config.log if it exists.
15857
15858debug=false
15859ac_cs_recheck=false
15860ac_cs_silent=false
15861
15862SHELL=\${CONFIG_SHELL-$SHELL}
15863export SHELL
15864_ASEOF
15865cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15866## -------------------- ##
15867## M4sh Initialization. ##
15868## -------------------- ##
15869
15870# Be more Bourne compatible
15871DUALCASE=1; export DUALCASE # for MKS sh
15872if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15873 emulate sh
15874 NULLCMD=:
15875 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15876 # is contrary to our usage. Disable this feature.
15877 alias -g '${1+"$@"}'='"$@"'
15878 setopt NO_GLOB_SUBST
15879else
15880 case `(set -o) 2>/dev/null` in #(
15881 *posix*) :
15882 set -o posix ;; #(
15883 *) :
15884 ;;
15885esac
15886fi
15887
15888
15889as_nl='
15890'
15891export as_nl
15892# Printing a long string crashes Solaris 7 /usr/bin/printf.
15893as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15894as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15895as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15896# Prefer a ksh shell builtin over an external printf program on Solaris,
15897# but without wasting forks for bash or zsh.
15898if test -z "$BASH_VERSION$ZSH_VERSION" \
15899 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15900 as_echo='print -r --'
15901 as_echo_n='print -rn --'
15902elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15903 as_echo='printf %s\n'
15904 as_echo_n='printf %s'
15905else
15906 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15907 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15908 as_echo_n='/usr/ucb/echo -n'
15909 else
15910 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15911 as_echo_n_body='eval
15912 arg=$1;
15913 case $arg in #(
15914 *"$as_nl"*)
15915 expr "X$arg" : "X\\(.*\\)$as_nl";
15916 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15917 esac;
15918 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15919 '
15920 export as_echo_n_body
15921 as_echo_n='sh -c $as_echo_n_body as_echo'
15922 fi
15923 export as_echo_body
15924 as_echo='sh -c $as_echo_body as_echo'
15925fi
15926
15927# The user is always right.
15928if test "${PATH_SEPARATOR+set}" != set; then
15929 PATH_SEPARATOR=:
15930 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15931 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15932 PATH_SEPARATOR=';'
15933 }
15934fi
15935
15936
15937# IFS
15938# We need space, tab and new line, in precisely that order. Quoting is
15939# there to prevent editors from complaining about space-tab.
15940# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15941# splitting by setting IFS to empty value.)
15942IFS=" "" $as_nl"
15943
15944# Find who we are. Look in the path if we contain no directory separator.
15945as_myself=
15946case $0 in #((
15947 *[\\/]* ) as_myself=$0 ;;
15948 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15949for as_dir in $PATH
15950do
15951 IFS=$as_save_IFS
15952 test -z "$as_dir" && as_dir=.
15953 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15954 done
15955IFS=$as_save_IFS
15956
15957 ;;
15958esac
15959# We did not find ourselves, most probably we were run as `sh COMMAND'
15960# in which case we are not to be found in the path.
15961if test "x$as_myself" = x; then
15962 as_myself=$0
15963fi
15964if test ! -f "$as_myself"; then
15965 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15966 exit 1
15967fi
15968
15969# Unset variables that we do not need and which cause bugs (e.g. in
15970# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15971# suppresses any "Segmentation fault" message there. '((' could
15972# trigger a bug in pdksh 5.2.14.
15973for as_var in BASH_ENV ENV MAIL MAILPATH
15974do eval test x\${$as_var+set} = xset \
15975 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15976done
15977PS1='$ '
15978PS2='> '
15979PS4='+ '
15980
15981# NLS nuisances.
15982LC_ALL=C
15983export LC_ALL
15984LANGUAGE=C
15985export LANGUAGE
15986
15987# CDPATH.
15988(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15989
15990
15991# as_fn_error STATUS ERROR [LINENO LOG_FD]
15992# ----------------------------------------
15993# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15994# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15995# script with STATUS, using 1 if that was 0.
15996as_fn_error ()
15997{
15998 as_status=$1; test $as_status -eq 0 && as_status=1
15999 if test "$4"; then
16000 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16001 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16002 fi
16003 $as_echo "$as_me: error: $2" >&2
16004 as_fn_exit $as_status
16005} # as_fn_error
16006
16007
16008# as_fn_set_status STATUS
16009# -----------------------
16010# Set $? to STATUS, without forking.
16011as_fn_set_status ()
16012{
16013 return $1
16014} # as_fn_set_status
16015
16016# as_fn_exit STATUS
16017# -----------------
16018# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16019as_fn_exit ()
16020{
16021 set +e
16022 as_fn_set_status $1
16023 exit $1
16024} # as_fn_exit
16025
16026# as_fn_unset VAR
16027# ---------------
16028# Portably unset VAR.
16029as_fn_unset ()
16030{
16031 { eval $1=; unset $1;}
16032}
16033as_unset=as_fn_unset
16034# as_fn_append VAR VALUE
16035# ----------------------
16036# Append the text in VALUE to the end of the definition contained in VAR. Take
16037# advantage of any shell optimizations that allow amortized linear growth over
16038# repeated appends, instead of the typical quadratic growth present in naive
16039# implementations.
16040if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16041 eval 'as_fn_append ()
16042 {
16043 eval $1+=\$2
16044 }'
16045else
16046 as_fn_append ()
16047 {
16048 eval $1=\$$1\$2
16049 }
16050fi # as_fn_append
16051
16052# as_fn_arith ARG...
16053# ------------------
16054# Perform arithmetic evaluation on the ARGs, and store the result in the
16055# global $as_val. Take advantage of shells that can avoid forks. The arguments
16056# must be portable across $(()) and expr.
16057if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16058 eval 'as_fn_arith ()
16059 {
16060 as_val=$(( $* ))
16061 }'
16062else
16063 as_fn_arith ()
16064 {
16065 as_val=`expr "$@" || test $? -eq 1`
16066 }
16067fi # as_fn_arith
16068
16069
16070if expr a : '\(a\)' >/dev/null 2>&1 &&
16071 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16072 as_expr=expr
16073else
16074 as_expr=false
16075fi
16076
16077if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16078 as_basename=basename
16079else
16080 as_basename=false
16081fi
16082
16083if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16084 as_dirname=dirname
16085else
16086 as_dirname=false
16087fi
16088
16089as_me=`$as_basename -- "$0" ||
16090$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16091 X"$0" : 'X\(//\)$' \| \
16092 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16093$as_echo X/"$0" |
16094 sed '/^.*\/\([^/][^/]*\)\/*$/{
16095 s//\1/
16096 q
16097 }
16098 /^X\/\(\/\/\)$/{
16099 s//\1/
16100 q
16101 }
16102 /^X\/\(\/\).*/{
16103 s//\1/
16104 q
16105 }
16106 s/.*/./; q'`
16107
16108# Avoid depending upon Character Ranges.
16109as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16110as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16111as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16112as_cr_digits='0123456789'
16113as_cr_alnum=$as_cr_Letters$as_cr_digits
16114
16115ECHO_C= ECHO_N= ECHO_T=
16116case `echo -n x` in #(((((
16117-n*)
16118 case `echo 'xy\c'` in
16119 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16120 xy) ECHO_C='\c';;
16121 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16122 ECHO_T=' ';;
16123 esac;;
16124*)
16125 ECHO_N='-n';;
16126esac
16127
16128rm -f conf$$ conf$$.exe conf$$.file
16129if test -d conf$$.dir; then
16130 rm -f conf$$.dir/conf$$.file
16131else
16132 rm -f conf$$.dir
16133 mkdir conf$$.dir 2>/dev/null
16134fi
16135if (echo >conf$$.file) 2>/dev/null; then
16136 if ln -s conf$$.file conf$$ 2>/dev/null; then
16137 as_ln_s='ln -s'
16138 # ... but there are two gotchas:
16139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16141 # In both cases, we have to default to `cp -pR'.
16142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16143 as_ln_s='cp -pR'
16144 elif ln conf$$.file conf$$ 2>/dev/null; then
16145 as_ln_s=ln
16146 else
16147 as_ln_s='cp -pR'
16148 fi
16149else
16150 as_ln_s='cp -pR'
16151fi
16152rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16153rmdir conf$$.dir 2>/dev/null
16154
16155
16156# as_fn_mkdir_p
16157# -------------
16158# Create "$as_dir" as a directory, including parents if necessary.
16159as_fn_mkdir_p ()
16160{
16161
16162 case $as_dir in #(
16163 -*) as_dir=./$as_dir;;
16164 esac
16165 test -d "$as_dir" || eval $as_mkdir_p || {
16166 as_dirs=
16167 while :; do
16168 case $as_dir in #(
16169 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16170 *) as_qdir=$as_dir;;
16171 esac
16172 as_dirs="'$as_qdir' $as_dirs"
16173 as_dir=`$as_dirname -- "$as_dir" ||
16174$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16175 X"$as_dir" : 'X\(//\)[^/]' \| \
16176 X"$as_dir" : 'X\(//\)$' \| \
16177 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16178$as_echo X"$as_dir" |
16179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16180 s//\1/
16181 q
16182 }
16183 /^X\(\/\/\)[^/].*/{
16184 s//\1/
16185 q
16186 }
16187 /^X\(\/\/\)$/{
16188 s//\1/
16189 q
16190 }
16191 /^X\(\/\).*/{
16192 s//\1/
16193 q
16194 }
16195 s/.*/./; q'`
16196 test -d "$as_dir" && break
16197 done
16198 test -z "$as_dirs" || eval "mkdir $as_dirs"
16199 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16200
16201
16202} # as_fn_mkdir_p
16203if mkdir -p . 2>/dev/null; then
16204 as_mkdir_p='mkdir -p "$as_dir"'
16205else
16206 test -d ./-p && rmdir ./-p
16207 as_mkdir_p=false
16208fi
16209
16210
16211# as_fn_executable_p FILE
16212# -----------------------
16213# Test if FILE is an executable regular file.
16214as_fn_executable_p ()
16215{
16216 test -f "$1" && test -x "$1"
16217} # as_fn_executable_p
16218as_test_x='test -x'
16219as_executable_p=as_fn_executable_p
16220
16221# Sed expression to map a string onto a valid CPP name.
16222as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16223
16224# Sed expression to map a string onto a valid variable name.
16225as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16226
16227
16228exec 6>&1
16229## ----------------------------------- ##
16230## Main body of $CONFIG_STATUS script. ##
16231## ----------------------------------- ##
16232_ASEOF
16233test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16234
16235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236# Save the log message, to keep $0 and so on meaningful, and to
16237# report actual input values of CONFIG_FILES etc. instead of their
16238# values after options handling.
16239ac_log="
16240This file was extended by $as_me, which was
16241generated by GNU Autoconf 2.69. Invocation command line was
16242
16243 CONFIG_FILES = $CONFIG_FILES
16244 CONFIG_HEADERS = $CONFIG_HEADERS
16245 CONFIG_LINKS = $CONFIG_LINKS
16246 CONFIG_COMMANDS = $CONFIG_COMMANDS
16247 $ $0 $@
16248
16249on `(hostname || uname -n) 2>/dev/null | sed 1q`
16250"
16251
16252_ACEOF
16253
16254case $ac_config_files in *"
16255"*) set x $ac_config_files; shift; ac_config_files=$*;;
16256esac
16257
16258case $ac_config_headers in *"
16259"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16260esac
16261
16262
16263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16264# Files that config.status was made for.
16265config_files="$ac_config_files"
16266config_headers="$ac_config_headers"
16267config_commands="$ac_config_commands"
16268
16269_ACEOF
16270
16271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272ac_cs_usage="\
16273\`$as_me' instantiates files and other configuration actions
16274from templates according to the current configuration. Unless the files
16275and actions are specified as TAGs, all are instantiated by default.
16276
16277Usage: $0 [OPTION]... [TAG]...
16278
16279 -h, --help print this help, then exit
16280 -V, --version print version number and configuration settings, then exit
16281 --config print configuration, then exit
16282 -q, --quiet, --silent
16283 do not print progress messages
16284 -d, --debug don't remove temporary files
16285 --recheck update $as_me by reconfiguring in the same conditions
16286 --file=FILE[:TEMPLATE]
16287 instantiate the configuration file FILE
16288 --header=FILE[:TEMPLATE]
16289 instantiate the configuration header FILE
16290
16291Configuration files:
16292$config_files
16293
16294Configuration headers:
16295$config_headers
16296
16297Configuration commands:
16298$config_commands
16299
16300Report bugs to the package provider."
16301
16302_ACEOF
16303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16304ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16305ac_cs_version="\\
16306config.status
16307configured by $0, generated by GNU Autoconf 2.69,
16308 with options \\"\$ac_cs_config\\"
16309
16310Copyright (C) 2012 Free Software Foundation, Inc.
16311This config.status script is free software; the Free Software Foundation
16312gives unlimited permission to copy, distribute and modify it."
16313
16314ac_pwd='$ac_pwd'
16315srcdir='$srcdir'
16316INSTALL='$INSTALL'
16317MKDIR_P='$MKDIR_P'
16318AWK='$AWK'
16319test -n "\$AWK" || AWK=awk
16320_ACEOF
16321
16322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323# The default lists apply if the user does not specify any file.
16324ac_need_defaults=:
16325while test $# != 0
16326do
16327 case $1 in
16328 --*=?*)
16329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16330 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16331 ac_shift=:
16332 ;;
16333 --*=)
16334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16335 ac_optarg=
16336 ac_shift=:
16337 ;;
16338 *)
16339 ac_option=$1
16340 ac_optarg=$2
16341 ac_shift=shift
16342 ;;
16343 esac
16344
16345 case $ac_option in
16346 # Handling of the options.
16347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16348 ac_cs_recheck=: ;;
16349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16350 $as_echo "$ac_cs_version"; exit ;;
16351 --config | --confi | --conf | --con | --co | --c )
16352 $as_echo "$ac_cs_config"; exit ;;
16353 --debug | --debu | --deb | --de | --d | -d )
16354 debug=: ;;
16355 --file | --fil | --fi | --f )
16356 $ac_shift
16357 case $ac_optarg in
16358 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16359 '') as_fn_error $? "missing file argument" ;;
16360 esac
16361 as_fn_append CONFIG_FILES " '$ac_optarg'"
16362 ac_need_defaults=false;;
16363 --header | --heade | --head | --hea )
16364 $ac_shift
16365 case $ac_optarg in
16366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16367 esac
16368 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16369 ac_need_defaults=false;;
16370 --he | --h)
16371 # Conflict between --help and --header
16372 as_fn_error $? "ambiguous option: \`$1'
16373Try \`$0 --help' for more information.";;
16374 --help | --hel | -h )
16375 $as_echo "$ac_cs_usage"; exit ;;
16376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16378 ac_cs_silent=: ;;
16379
16380 # This is an error.
16381 -*) as_fn_error $? "unrecognized option: \`$1'
16382Try \`$0 --help' for more information." ;;
16383
16384 *) as_fn_append ac_config_targets " $1"
16385 ac_need_defaults=false ;;
16386
16387 esac
16388 shift
16389done
16390
16391ac_configure_extra_args=
16392
16393if $ac_cs_silent; then
16394 exec 6>/dev/null
16395 ac_configure_extra_args="$ac_configure_extra_args --silent"
16396fi
16397
16398_ACEOF
16399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400if \$ac_cs_recheck; then
16401 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16402 shift
16403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16404 CONFIG_SHELL='$SHELL'
16405 export CONFIG_SHELL
16406 exec "\$@"
16407fi
16408
16409_ACEOF
16410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411exec 5>>config.log
16412{
16413 echo
16414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16415## Running $as_me. ##
16416_ASBOX
16417 $as_echo "$ac_log"
16418} >&5
16419
16420_ACEOF
16421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16422#
16423# INIT-COMMANDS
16424#
16425AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16426
16427
16428# The HP-UX ksh and POSIX shell print the target directory to stdout
16429# if CDPATH is set.
16430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16431
16432sed_quote_subst='$sed_quote_subst'
16433double_quote_subst='$double_quote_subst'
16434delay_variable_subst='$delay_variable_subst'
16435macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16436macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16437enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16438enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16439pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16440enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16441SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16442ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16443PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16444host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16445host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16446host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16447build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16448build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16449build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16450SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16451Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16452GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16453EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16454FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16455LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16456NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16457LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16458max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16459ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16460exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16461lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16462lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16463lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16464lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16465lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16466reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16467reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16468OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16469deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16470file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16471file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16472want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16473DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16474sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16475AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16476AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16477archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16478STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16479RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16480old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16481old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16482old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16483lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16484CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16485CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16486compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16487GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16488lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16489lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16490lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16491lt_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"`'
16492nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16493lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16494objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16495MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16496lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16497lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16498lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16499lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16500lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16501need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16502MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16503DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16504NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16505LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16506OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16507OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16508libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16509shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16510extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16511archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16512enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16513export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16514whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16515compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16516old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16517old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16518archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16519archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16520module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16521module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16522with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16523allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16524no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16525hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16526hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16527hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16528hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16529hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16530hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16531hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16532inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16533link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16534always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16535export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16536exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16537include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16538prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16539postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16540file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16541variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16542need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16543need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16544version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16545runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16546shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16547shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16548libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16549library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16550soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16551install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16552postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16553postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16554finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16555finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16556hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16557sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16558sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16559hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16560enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16561enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16562enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16563old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16564striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16565
16566LTCC='$LTCC'
16567LTCFLAGS='$LTCFLAGS'
16568compiler='$compiler_DEFAULT'
16569
16570# A function that is used when there is no print builtin or printf.
16571func_fallback_echo ()
16572{
16573 eval 'cat <<_LTECHO_EOF
16574\$1
16575_LTECHO_EOF'
16576}
16577
16578# Quote evaled strings.
16579for var in SHELL \
16580ECHO \
16581PATH_SEPARATOR \
16582SED \
16583GREP \
16584EGREP \
16585FGREP \
16586LD \
16587NM \
16588LN_S \
16589lt_SP2NL \
16590lt_NL2SP \
16591reload_flag \
16592OBJDUMP \
16593deplibs_check_method \
16594file_magic_cmd \
16595file_magic_glob \
16596want_nocaseglob \
16597DLLTOOL \
16598sharedlib_from_linklib_cmd \
16599AR \
16600AR_FLAGS \
16601archiver_list_spec \
16602STRIP \
16603RANLIB \
16604CC \
16605CFLAGS \
16606compiler \
16607lt_cv_sys_global_symbol_pipe \
16608lt_cv_sys_global_symbol_to_cdecl \
16609lt_cv_sys_global_symbol_to_c_name_address \
16610lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16611nm_file_list_spec \
16612lt_prog_compiler_no_builtin_flag \
16613lt_prog_compiler_pic \
16614lt_prog_compiler_wl \
16615lt_prog_compiler_static \
16616lt_cv_prog_compiler_c_o \
16617need_locks \
16618MANIFEST_TOOL \
16619DSYMUTIL \
16620NMEDIT \
16621LIPO \
16622OTOOL \
16623OTOOL64 \
16624shrext_cmds \
16625export_dynamic_flag_spec \
16626whole_archive_flag_spec \
16627compiler_needs_object \
16628with_gnu_ld \
16629allow_undefined_flag \
16630no_undefined_flag \
16631hardcode_libdir_flag_spec \
16632hardcode_libdir_separator \
16633exclude_expsyms \
16634include_expsyms \
16635file_list_spec \
16636variables_saved_for_relink \
16637libname_spec \
16638library_names_spec \
16639soname_spec \
16640install_override_mode \
16641finish_eval \
16642old_striplib \
16643striplib; do
16644 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16645 *[\\\\\\\`\\"\\\$]*)
16646 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16647 ;;
16648 *)
16649 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16650 ;;
16651 esac
16652done
16653
16654# Double-quote double-evaled strings.
16655for var in reload_cmds \
16656old_postinstall_cmds \
16657old_postuninstall_cmds \
16658old_archive_cmds \
16659extract_expsyms_cmds \
16660old_archive_from_new_cmds \
16661old_archive_from_expsyms_cmds \
16662archive_cmds \
16663archive_expsym_cmds \
16664module_cmds \
16665module_expsym_cmds \
16666export_symbols_cmds \
16667prelink_cmds \
16668postlink_cmds \
16669postinstall_cmds \
16670postuninstall_cmds \
16671finish_cmds \
16672sys_lib_search_path_spec \
16673sys_lib_dlsearch_path_spec; do
16674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16675 *[\\\\\\\`\\"\\\$]*)
16676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16677 ;;
16678 *)
16679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16680 ;;
16681 esac
16682done
16683
16684ac_aux_dir='$ac_aux_dir'
16685xsi_shell='$xsi_shell'
16686lt_shell_append='$lt_shell_append'
16687
16688# See if we are running on zsh, and set the options which allow our
16689# commands through without removal of \ escapes INIT.
16690if test -n "\${ZSH_VERSION+set}" ; then
16691 setopt NO_GLOB_SUBST
16692fi
16693
16694
16695 PACKAGE='$PACKAGE'
16696 VERSION='$VERSION'
16697 TIMESTAMP='$TIMESTAMP'
16698 RM='$RM'
16699 ofile='$ofile'
16700
16701
16702
16703
16704_ACEOF
16705
16706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16707
16708# Handling of arguments.
16709for ac_config_target in $ac_config_targets
16710do
16711 case $ac_config_target in
16712 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16713 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16714 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16715 "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
16716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16717 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16718 "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
16719 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16720 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
16721 "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
16722 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
16723 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16724 "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
16725 "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
16726 "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
16727 "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
16728 "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
16729 "libxml2-config.cmake") CONFIG_FILES="$CONFIG_FILES libxml2-config.cmake" ;;
16730 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
16731 "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
16732
16733 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16734 esac
16735done
16736
16737
16738# If the user did not use the arguments to specify the items to instantiate,
16739# then the envvar interface is used. Set only those that are not.
16740# We use the long form for the default assignment because of an extremely
16741# bizarre bug on SunOS 4.1.3.
16742if $ac_need_defaults; then
16743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16746fi
16747
16748# Have a temporary directory for convenience. Make it in the build tree
16749# simply because there is no reason against having it here, and in addition,
16750# creating and moving files from /tmp can sometimes cause problems.
16751# Hook for its removal unless debugging.
16752# Note that there is a small window in which the directory will not be cleaned:
16753# after its creation but before its name has been assigned to `$tmp'.
16754$debug ||
16755{
16756 tmp= ac_tmp=
16757 trap 'exit_status=$?
16758 : "${ac_tmp:=$tmp}"
16759 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16760' 0
16761 trap 'as_fn_exit 1' 1 2 13 15
16762}
16763# Create a (secure) tmp directory for tmp files.
16764
16765{
16766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16767 test -d "$tmp"
16768} ||
16769{
16770 tmp=./conf$$-$RANDOM
16771 (umask 077 && mkdir "$tmp")
16772} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16773ac_tmp=$tmp
16774
16775# Set up the scripts for CONFIG_FILES section.
16776# No need to generate them if there are no CONFIG_FILES.
16777# This happens for instance with `./config.status config.h'.
16778if test -n "$CONFIG_FILES"; then
16779
16780
16781ac_cr=`echo X | tr X '\015'`
16782# On cygwin, bash can eat \r inside `` if the user requested igncr.
16783# But we know of no other shell where ac_cr would be empty at this
16784# point, so we can use a bashism as a fallback.
16785if test "x$ac_cr" = x; then
16786 eval ac_cr=\$\'\\r\'
16787fi
16788ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16789if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16790 ac_cs_awk_cr='\\r'
16791else
16792 ac_cs_awk_cr=$ac_cr
16793fi
16794
16795echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16796_ACEOF
16797
16798
16799{
16800 echo "cat >conf$$subs.awk <<_ACEOF" &&
16801 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16802 echo "_ACEOF"
16803} >conf$$subs.sh ||
16804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16805ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16806ac_delim='%!_!# '
16807for ac_last_try in false false false false false :; do
16808 . ./conf$$subs.sh ||
16809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16810
16811 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16812 if test $ac_delim_n = $ac_delim_num; then
16813 break
16814 elif $ac_last_try; then
16815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16816 else
16817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16818 fi
16819done
16820rm -f conf$$subs.sh
16821
16822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16823cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16824_ACEOF
16825sed -n '
16826h
16827s/^/S["/; s/!.*/"]=/
16828p
16829g
16830s/^[^!]*!//
16831:repl
16832t repl
16833s/'"$ac_delim"'$//
16834t delim
16835:nl
16836h
16837s/\(.\{148\}\)..*/\1/
16838t more1
16839s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16840p
16841n
16842b repl
16843:more1
16844s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16845p
16846g
16847s/.\{148\}//
16848t nl
16849:delim
16850h
16851s/\(.\{148\}\)..*/\1/
16852t more2
16853s/["\\]/\\&/g; s/^/"/; s/$/"/
16854p
16855b
16856:more2
16857s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16858p
16859g
16860s/.\{148\}//
16861t delim
16862' <conf$$subs.awk | sed '
16863/^[^""]/{
16864 N
16865 s/\n//
16866}
16867' >>$CONFIG_STATUS || ac_write_fail=1
16868rm -f conf$$subs.awk
16869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870_ACAWK
16871cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16872 for (key in S) S_is_set[key] = 1
16873 FS = ""
16874
16875}
16876{
16877 line = $ 0
16878 nfields = split(line, field, "@")
16879 substed = 0
16880 len = length(field[1])
16881 for (i = 2; i < nfields; i++) {
16882 key = field[i]
16883 keylen = length(key)
16884 if (S_is_set[key]) {
16885 value = S[key]
16886 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16887 len += length(value) + length(field[++i])
16888 substed = 1
16889 } else
16890 len += 1 + keylen
16891 }
16892
16893 print line
16894}
16895
16896_ACAWK
16897_ACEOF
16898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16899if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16900 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16901else
16902 cat
16903fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16904 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16905_ACEOF
16906
16907# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16908# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16909# trailing colons and then remove the whole line if VPATH becomes empty
16910# (actually we leave an empty line to preserve line numbers).
16911if test "x$srcdir" = x.; then
16912 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16913h
16914s///
16915s/^/:/
16916s/[ ]*$/:/
16917s/:\$(srcdir):/:/g
16918s/:\${srcdir}:/:/g
16919s/:@srcdir@:/:/g
16920s/^:*//
16921s/:*$//
16922x
16923s/\(=[ ]*\).*/\1/
16924G
16925s/\n//
16926s/^[^=]*=[ ]*$//
16927}'
16928fi
16929
16930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16931fi # test -n "$CONFIG_FILES"
16932
16933# Set up the scripts for CONFIG_HEADERS section.
16934# No need to generate them if there are no CONFIG_HEADERS.
16935# This happens for instance with `./config.status Makefile'.
16936if test -n "$CONFIG_HEADERS"; then
16937cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16938BEGIN {
16939_ACEOF
16940
16941# Transform confdefs.h into an awk script `defines.awk', embedded as
16942# here-document in config.status, that substitutes the proper values into
16943# config.h.in to produce config.h.
16944
16945# Create a delimiter string that does not exist in confdefs.h, to ease
16946# handling of long lines.
16947ac_delim='%!_!# '
16948for ac_last_try in false false :; do
16949 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16950 if test -z "$ac_tt"; then
16951 break
16952 elif $ac_last_try; then
16953 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16954 else
16955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16956 fi
16957done
16958
16959# For the awk script, D is an array of macro values keyed by name,
16960# likewise P contains macro parameters if any. Preserve backslash
16961# newline sequences.
16962
16963ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16964sed -n '
16965s/.\{148\}/&'"$ac_delim"'/g
16966t rset
16967:rset
16968s/^[ ]*#[ ]*define[ ][ ]*/ /
16969t def
16970d
16971:def
16972s/\\$//
16973t bsnl
16974s/["\\]/\\&/g
16975s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16976D["\1"]=" \3"/p
16977s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16978d
16979:bsnl
16980s/["\\]/\\&/g
16981s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16982D["\1"]=" \3\\\\\\n"\\/p
16983t cont
16984s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16985t cont
16986d
16987:cont
16988n
16989s/.\{148\}/&'"$ac_delim"'/g
16990t clear
16991:clear
16992s/\\$//
16993t bsnlc
16994s/["\\]/\\&/g; s/^/"/; s/$/"/p
16995d
16996:bsnlc
16997s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16998b cont
16999' <confdefs.h | sed '
17000s/'"$ac_delim"'/"\\\
17001"/g' >>$CONFIG_STATUS || ac_write_fail=1
17002
17003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17004 for (key in D) D_is_set[key] = 1
17005 FS = ""
17006}
17007/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17008 line = \$ 0
17009 split(line, arg, " ")
17010 if (arg[1] == "#") {
17011 defundef = arg[2]
17012 mac1 = arg[3]
17013 } else {
17014 defundef = substr(arg[1], 2)
17015 mac1 = arg[2]
17016 }
17017 split(mac1, mac2, "(") #)
17018 macro = mac2[1]
17019 prefix = substr(line, 1, index(line, defundef) - 1)
17020 if (D_is_set[macro]) {
17021 # Preserve the white space surrounding the "#".
17022 print prefix "define", macro P[macro] D[macro]
17023 next
17024 } else {
17025 # Replace #undef with comments. This is necessary, for example,
17026 # in the case of _POSIX_SOURCE, which is predefined and required
17027 # on some systems where configure will not decide to define it.
17028 if (defundef == "undef") {
17029 print "/*", prefix defundef, macro, "*/"
17030 next
17031 }
17032 }
17033}
17034{ print }
17035_ACAWK
17036_ACEOF
17037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17038 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17039fi # test -n "$CONFIG_HEADERS"
17040
17041
17042eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17043shift
17044for ac_tag
17045do
17046 case $ac_tag in
17047 :[FHLC]) ac_mode=$ac_tag; continue;;
17048 esac
17049 case $ac_mode$ac_tag in
17050 :[FHL]*:*);;
17051 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17052 :[FH]-) ac_tag=-:-;;
17053 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17054 esac
17055 ac_save_IFS=$IFS
17056 IFS=:
17057 set x $ac_tag
17058 IFS=$ac_save_IFS
17059 shift
17060 ac_file=$1
17061 shift
17062
17063 case $ac_mode in
17064 :L) ac_source=$1;;
17065 :[FH])
17066 ac_file_inputs=
17067 for ac_f
17068 do
17069 case $ac_f in
17070 -) ac_f="$ac_tmp/stdin";;
17071 *) # Look for the file first in the build tree, then in the source tree
17072 # (if the path is not absolute). The absolute path cannot be DOS-style,
17073 # because $ac_f cannot contain `:'.
17074 test -f "$ac_f" ||
17075 case $ac_f in
17076 [\\/$]*) false;;
17077 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17078 esac ||
17079 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17080 esac
17081 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17082 as_fn_append ac_file_inputs " '$ac_f'"
17083 done
17084
17085 # Let's still pretend it is `configure' which instantiates (i.e., don't
17086 # use $as_me), people would be surprised to read:
17087 # /* config.h. Generated by config.status. */
17088 configure_input='Generated from '`
17089 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17090 `' by configure.'
17091 if test x"$ac_file" != x-; then
17092 configure_input="$ac_file. $configure_input"
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17094$as_echo "$as_me: creating $ac_file" >&6;}
17095 fi
17096 # Neutralize special characters interpreted by sed in replacement strings.
17097 case $configure_input in #(
17098 *\&* | *\|* | *\\* )
17099 ac_sed_conf_input=`$as_echo "$configure_input" |
17100 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17101 *) ac_sed_conf_input=$configure_input;;
17102 esac
17103
17104 case $ac_tag in
17105 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17107 esac
17108 ;;
17109 esac
17110
17111 ac_dir=`$as_dirname -- "$ac_file" ||
17112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17113 X"$ac_file" : 'X\(//\)[^/]' \| \
17114 X"$ac_file" : 'X\(//\)$' \| \
17115 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17116$as_echo X"$ac_file" |
17117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17118 s//\1/
17119 q
17120 }
17121 /^X\(\/\/\)[^/].*/{
17122 s//\1/
17123 q
17124 }
17125 /^X\(\/\/\)$/{
17126 s//\1/
17127 q
17128 }
17129 /^X\(\/\).*/{
17130 s//\1/
17131 q
17132 }
17133 s/.*/./; q'`
17134 as_dir="$ac_dir"; as_fn_mkdir_p
17135 ac_builddir=.
17136
17137case "$ac_dir" in
17138.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17139*)
17140 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17141 # A ".." for each directory in $ac_dir_suffix.
17142 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17143 case $ac_top_builddir_sub in
17144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17146 esac ;;
17147esac
17148ac_abs_top_builddir=$ac_pwd
17149ac_abs_builddir=$ac_pwd$ac_dir_suffix
17150# for backward compatibility:
17151ac_top_builddir=$ac_top_build_prefix
17152
17153case $srcdir in
17154 .) # We are building in place.
17155 ac_srcdir=.
17156 ac_top_srcdir=$ac_top_builddir_sub
17157 ac_abs_top_srcdir=$ac_pwd ;;
17158 [\\/]* | ?:[\\/]* ) # Absolute name.
17159 ac_srcdir=$srcdir$ac_dir_suffix;
17160 ac_top_srcdir=$srcdir
17161 ac_abs_top_srcdir=$srcdir ;;
17162 *) # Relative name.
17163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17164 ac_top_srcdir=$ac_top_build_prefix$srcdir
17165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17166esac
17167ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17168
17169
17170 case $ac_mode in
17171 :F)
17172 #
17173 # CONFIG_FILE
17174 #
17175
17176 case $INSTALL in
17177 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17178 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17179 esac
17180 ac_MKDIR_P=$MKDIR_P
17181 case $MKDIR_P in
17182 [\\/$]* | ?:[\\/]* ) ;;
17183 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17184 esac
17185_ACEOF
17186
17187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17188# If the template does not know about datarootdir, expand it.
17189# FIXME: This hack should be removed a few years after 2.60.
17190ac_datarootdir_hack=; ac_datarootdir_seen=
17191ac_sed_dataroot='
17192/datarootdir/ {
17193 p
17194 q
17195}
17196/@datadir@/p
17197/@docdir@/p
17198/@infodir@/p
17199/@localedir@/p
17200/@mandir@/p'
17201case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17202*datarootdir*) ac_datarootdir_seen=yes;;
17203*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17205$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17206_ACEOF
17207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17208 ac_datarootdir_hack='
17209 s&@datadir@&$datadir&g
17210 s&@docdir@&$docdir&g
17211 s&@infodir@&$infodir&g
17212 s&@localedir@&$localedir&g
17213 s&@mandir@&$mandir&g
17214 s&\\\${datarootdir}&$datarootdir&g' ;;
17215esac
17216_ACEOF
17217
17218# Neutralize VPATH when `$srcdir' = `.'.
17219# Shell code in configure.ac might set extrasub.
17220# FIXME: do we really want to maintain this feature?
17221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17222ac_sed_extra="$ac_vpsub
17223$extrasub
17224_ACEOF
17225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17226:t
17227/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17228s|@configure_input@|$ac_sed_conf_input|;t t
17229s&@top_builddir@&$ac_top_builddir_sub&;t t
17230s&@top_build_prefix@&$ac_top_build_prefix&;t t
17231s&@srcdir@&$ac_srcdir&;t t
17232s&@abs_srcdir@&$ac_abs_srcdir&;t t
17233s&@top_srcdir@&$ac_top_srcdir&;t t
17234s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17235s&@builddir@&$ac_builddir&;t t
17236s&@abs_builddir@&$ac_abs_builddir&;t t
17237s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17238s&@INSTALL@&$ac_INSTALL&;t t
17239s&@MKDIR_P@&$ac_MKDIR_P&;t t
17240$ac_datarootdir_hack
17241"
17242eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17243 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17244
17245test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17246 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17247 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17248 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17250which seems to be undefined. Please make sure it is defined" >&5
17251$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17252which seems to be undefined. Please make sure it is defined" >&2;}
17253
17254 rm -f "$ac_tmp/stdin"
17255 case $ac_file in
17256 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17257 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17258 esac \
17259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17260 ;;
17261 :H)
17262 #
17263 # CONFIG_HEADER
17264 #
17265 if test x"$ac_file" != x-; then
17266 {
17267 $as_echo "/* $configure_input */" \
17268 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17269 } >"$ac_tmp/config.h" \
17270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17271 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17273$as_echo "$as_me: $ac_file is unchanged" >&6;}
17274 else
17275 rm -f "$ac_file"
17276 mv "$ac_tmp/config.h" "$ac_file" \
17277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17278 fi
17279 else
17280 $as_echo "/* $configure_input */" \
17281 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17282 || as_fn_error $? "could not create -" "$LINENO" 5
17283 fi
17284# Compute "$ac_file"'s index in $config_headers.
17285_am_arg="$ac_file"
17286_am_stamp_count=1
17287for _am_header in $config_headers :; do
17288 case $_am_header in
17289 $_am_arg | $_am_arg:* )
17290 break ;;
17291 * )
17292 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17293 esac
17294done
17295echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17296$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17297 X"$_am_arg" : 'X\(//\)[^/]' \| \
17298 X"$_am_arg" : 'X\(//\)$' \| \
17299 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17300$as_echo X"$_am_arg" |
17301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17302 s//\1/
17303 q
17304 }
17305 /^X\(\/\/\)[^/].*/{
17306 s//\1/
17307 q
17308 }
17309 /^X\(\/\/\)$/{
17310 s//\1/
17311 q
17312 }
17313 /^X\(\/\).*/{
17314 s//\1/
17315 q
17316 }
17317 s/.*/./; q'`/stamp-h$_am_stamp_count
17318 ;;
17319
17320 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17321$as_echo "$as_me: executing $ac_file commands" >&6;}
17322 ;;
17323 esac
17324
17325
17326 case $ac_file$ac_mode in
17327 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17328 # Older Autoconf quotes --file arguments for eval, but not when files
17329 # are listed without --file. Let's play safe and only enable the eval
17330 # if we detect the quoting.
17331 case $CONFIG_FILES in
17332 *\'*) eval set x "$CONFIG_FILES" ;;
17333 *) set x $CONFIG_FILES ;;
17334 esac
17335 shift
17336 for mf
17337 do
17338 # Strip MF so we end up with the name of the file.
17339 mf=`echo "$mf" | sed -e 's/:.*$//'`
17340 # Check whether this is an Automake generated Makefile or not.
17341 # We used to match only the files named 'Makefile.in', but
17342 # some people rename them; so instead we look at the file content.
17343 # Grep'ing the first line is not enough: some people post-process
17344 # each Makefile.in and add a new line on top of each file to say so.
17345 # Grep'ing the whole file is not good either: AIX grep has a line
17346 # limit of 2048, but all sed's we know have understand at least 4000.
17347 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17348 dirpart=`$as_dirname -- "$mf" ||
17349$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17350 X"$mf" : 'X\(//\)[^/]' \| \
17351 X"$mf" : 'X\(//\)$' \| \
17352 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17353$as_echo X"$mf" |
17354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17355 s//\1/
17356 q
17357 }
17358 /^X\(\/\/\)[^/].*/{
17359 s//\1/
17360 q
17361 }
17362 /^X\(\/\/\)$/{
17363 s//\1/
17364 q
17365 }
17366 /^X\(\/\).*/{
17367 s//\1/
17368 q
17369 }
17370 s/.*/./; q'`
17371 else
17372 continue
17373 fi
17374 # Extract the definition of DEPDIR, am__include, and am__quote
17375 # from the Makefile without running 'make'.
17376 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17377 test -z "$DEPDIR" && continue
17378 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17379 test -z "$am__include" && continue
17380 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17381 # Find all dependency output files, they are included files with
17382 # $(DEPDIR) in their names. We invoke sed twice because it is the
17383 # simplest approach to changing $(DEPDIR) to its actual value in the
17384 # expansion.
17385 for file in `sed -n "
17386 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17387 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17388 # Make sure the directory exists.
17389 test -f "$dirpart/$file" && continue
17390 fdir=`$as_dirname -- "$file" ||
17391$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17392 X"$file" : 'X\(//\)[^/]' \| \
17393 X"$file" : 'X\(//\)$' \| \
17394 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17395$as_echo X"$file" |
17396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17397 s//\1/
17398 q
17399 }
17400 /^X\(\/\/\)[^/].*/{
17401 s//\1/
17402 q
17403 }
17404 /^X\(\/\/\)$/{
17405 s//\1/
17406 q
17407 }
17408 /^X\(\/\).*/{
17409 s//\1/
17410 q
17411 }
17412 s/.*/./; q'`
17413 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17414 # echo "creating $dirpart/$file"
17415 echo '# dummy' > "$dirpart/$file"
17416 done
17417 done
17418}
17419 ;;
17420 "libtool":C)
17421
17422 # See if we are running on zsh, and set the options which allow our
17423 # commands through without removal of \ escapes.
17424 if test -n "${ZSH_VERSION+set}" ; then
17425 setopt NO_GLOB_SUBST
17426 fi
17427
17428 cfgfile="${ofile}T"
17429 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17430 $RM "$cfgfile"
17431
17432 cat <<_LT_EOF >> "$cfgfile"
17433#! $SHELL
17434
17435# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17436# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17437# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17438# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17439#
17440# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17441# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17442# Foundation, Inc.
17443# Written by Gordon Matzigkeit, 1996
17444#
17445# This file is part of GNU Libtool.
17446#
17447# GNU Libtool is free software; you can redistribute it and/or
17448# modify it under the terms of the GNU General Public License as
17449# published by the Free Software Foundation; either version 2 of
17450# the License, or (at your option) any later version.
17451#
17452# As a special exception to the GNU General Public License,
17453# if you distribute this file as part of a program or library that
17454# is built using GNU Libtool, you may include this file under the
17455# same distribution terms that you use for the rest of that program.
17456#
17457# GNU Libtool is distributed in the hope that it will be useful,
17458# but WITHOUT ANY WARRANTY; without even the implied warranty of
17459# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17460# GNU General Public License for more details.
17461#
17462# You should have received a copy of the GNU General Public License
17463# along with GNU Libtool; see the file COPYING. If not, a copy
17464# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17465# obtained by writing to the Free Software Foundation, Inc.,
17466# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17467
17468
17469# The names of the tagged configurations supported by this script.
17470available_tags=""
17471
17472# ### BEGIN LIBTOOL CONFIG
17473
17474# Which release of libtool.m4 was used?
17475macro_version=$macro_version
17476macro_revision=$macro_revision
17477
17478# Whether or not to build shared libraries.
17479build_libtool_libs=$enable_shared
17480
17481# Whether or not to build static libraries.
17482build_old_libs=$enable_static
17483
17484# What type of objects to build.
17485pic_mode=$pic_mode
17486
17487# Whether or not to optimize for fast installation.
17488fast_install=$enable_fast_install
17489
17490# Shell to use when invoking shell scripts.
17491SHELL=$lt_SHELL
17492
17493# An echo program that protects backslashes.
17494ECHO=$lt_ECHO
17495
17496# The PATH separator for the build system.
17497PATH_SEPARATOR=$lt_PATH_SEPARATOR
17498
17499# The host system.
17500host_alias=$host_alias
17501host=$host
17502host_os=$host_os
17503
17504# The build system.
17505build_alias=$build_alias
17506build=$build
17507build_os=$build_os
17508
17509# A sed program that does not truncate output.
17510SED=$lt_SED
17511
17512# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17513Xsed="\$SED -e 1s/^X//"
17514
17515# A grep program that handles long lines.
17516GREP=$lt_GREP
17517
17518# An ERE matcher.
17519EGREP=$lt_EGREP
17520
17521# A literal string matcher.
17522FGREP=$lt_FGREP
17523
17524# A BSD- or MS-compatible name lister.
17525NM=$lt_NM
17526
17527# Whether we need soft or hard links.
17528LN_S=$lt_LN_S
17529
17530# What is the maximum length of a command?
17531max_cmd_len=$max_cmd_len
17532
17533# Object file suffix (normally "o").
17534objext=$ac_objext
17535
17536# Executable file suffix (normally "").
17537exeext=$exeext
17538
17539# whether the shell understands "unset".
17540lt_unset=$lt_unset
17541
17542# turn spaces into newlines.
17543SP2NL=$lt_lt_SP2NL
17544
17545# turn newlines into spaces.
17546NL2SP=$lt_lt_NL2SP
17547
17548# convert \$build file names to \$host format.
17549to_host_file_cmd=$lt_cv_to_host_file_cmd
17550
17551# convert \$build files to toolchain format.
17552to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17553
17554# An object symbol dumper.
17555OBJDUMP=$lt_OBJDUMP
17556
17557# Method to check whether dependent libraries are shared objects.
17558deplibs_check_method=$lt_deplibs_check_method
17559
17560# Command to use when deplibs_check_method = "file_magic".
17561file_magic_cmd=$lt_file_magic_cmd
17562
17563# How to find potential files when deplibs_check_method = "file_magic".
17564file_magic_glob=$lt_file_magic_glob
17565
17566# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17567want_nocaseglob=$lt_want_nocaseglob
17568
17569# DLL creation program.
17570DLLTOOL=$lt_DLLTOOL
17571
17572# Command to associate shared and link libraries.
17573sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17574
17575# The archiver.
17576AR=$lt_AR
17577
17578# Flags to create an archive.
17579AR_FLAGS=$lt_AR_FLAGS
17580
17581# How to feed a file listing to the archiver.
17582archiver_list_spec=$lt_archiver_list_spec
17583
17584# A symbol stripping program.
17585STRIP=$lt_STRIP
17586
17587# Commands used to install an old-style archive.
17588RANLIB=$lt_RANLIB
17589old_postinstall_cmds=$lt_old_postinstall_cmds
17590old_postuninstall_cmds=$lt_old_postuninstall_cmds
17591
17592# Whether to use a lock for old archive extraction.
17593lock_old_archive_extraction=$lock_old_archive_extraction
17594
17595# A C compiler.
17596LTCC=$lt_CC
17597
17598# LTCC compiler flags.
17599LTCFLAGS=$lt_CFLAGS
17600
17601# Take the output of nm and produce a listing of raw symbols and C names.
17602global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17603
17604# Transform the output of nm in a proper C declaration.
17605global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17606
17607# Transform the output of nm in a C name address pair.
17608global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17609
17610# Transform the output of nm in a C name address pair when lib prefix is needed.
17611global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17612
17613# Specify filename containing input files for \$NM.
17614nm_file_list_spec=$lt_nm_file_list_spec
17615
17616# The root where to search for dependent libraries,and in which our libraries should be installed.
17617lt_sysroot=$lt_sysroot
17618
17619# The name of the directory that contains temporary libtool files.
17620objdir=$objdir
17621
17622# Used to examine libraries when file_magic_cmd begins with "file".
17623MAGIC_CMD=$MAGIC_CMD
17624
17625# Must we lock files when doing compilation?
17626need_locks=$lt_need_locks
17627
17628# Manifest tool.
17629MANIFEST_TOOL=$lt_MANIFEST_TOOL
17630
17631# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17632DSYMUTIL=$lt_DSYMUTIL
17633
17634# Tool to change global to local symbols on Mac OS X.
17635NMEDIT=$lt_NMEDIT
17636
17637# Tool to manipulate fat objects and archives on Mac OS X.
17638LIPO=$lt_LIPO
17639
17640# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17641OTOOL=$lt_OTOOL
17642
17643# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17644OTOOL64=$lt_OTOOL64
17645
17646# Old archive suffix (normally "a").
17647libext=$libext
17648
17649# Shared library suffix (normally ".so").
17650shrext_cmds=$lt_shrext_cmds
17651
17652# The commands to extract the exported symbol list from a shared archive.
17653extract_expsyms_cmds=$lt_extract_expsyms_cmds
17654
17655# Variables whose values should be saved in libtool wrapper scripts and
17656# restored at link time.
17657variables_saved_for_relink=$lt_variables_saved_for_relink
17658
17659# Do we need the "lib" prefix for modules?
17660need_lib_prefix=$need_lib_prefix
17661
17662# Do we need a version for libraries?
17663need_version=$need_version
17664
17665# Library versioning type.
17666version_type=$version_type
17667
17668# Shared library runtime path variable.
17669runpath_var=$runpath_var
17670
17671# Shared library path variable.
17672shlibpath_var=$shlibpath_var
17673
17674# Is shlibpath searched before the hard-coded library search path?
17675shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17676
17677# Format of library name prefix.
17678libname_spec=$lt_libname_spec
17679
17680# List of archive names. First name is the real one, the rest are links.
17681# The last name is the one that the linker finds with -lNAME
17682library_names_spec=$lt_library_names_spec
17683
17684# The coded name of the library, if different from the real name.
17685soname_spec=$lt_soname_spec
17686
17687# Permission mode override for installation of shared libraries.
17688install_override_mode=$lt_install_override_mode
17689
17690# Command to use after installation of a shared archive.
17691postinstall_cmds=$lt_postinstall_cmds
17692
17693# Command to use after uninstallation of a shared archive.
17694postuninstall_cmds=$lt_postuninstall_cmds
17695
17696# Commands used to finish a libtool library installation in a directory.
17697finish_cmds=$lt_finish_cmds
17698
17699# As "finish_cmds", except a single script fragment to be evaled but
17700# not shown.
17701finish_eval=$lt_finish_eval
17702
17703# Whether we should hardcode library paths into libraries.
17704hardcode_into_libs=$hardcode_into_libs
17705
17706# Compile-time system search path for libraries.
17707sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17708
17709# Run-time system search path for libraries.
17710sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17711
17712# Whether dlopen is supported.
17713dlopen_support=$enable_dlopen
17714
17715# Whether dlopen of programs is supported.
17716dlopen_self=$enable_dlopen_self
17717
17718# Whether dlopen of statically linked programs is supported.
17719dlopen_self_static=$enable_dlopen_self_static
17720
17721# Commands to strip libraries.
17722old_striplib=$lt_old_striplib
17723striplib=$lt_striplib
17724
17725
17726# The linker used to build libraries.
17727LD=$lt_LD
17728
17729# How to create reloadable object files.
17730reload_flag=$lt_reload_flag
17731reload_cmds=$lt_reload_cmds
17732
17733# Commands used to build an old-style archive.
17734old_archive_cmds=$lt_old_archive_cmds
17735
17736# A language specific compiler.
17737CC=$lt_compiler
17738
17739# Is the compiler the GNU compiler?
17740with_gcc=$GCC
17741
17742# Compiler flag to turn off builtin functions.
17743no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17744
17745# Additional compiler flags for building library objects.
17746pic_flag=$lt_lt_prog_compiler_pic
17747
17748# How to pass a linker flag through the compiler.
17749wl=$lt_lt_prog_compiler_wl
17750
17751# Compiler flag to prevent dynamic linking.
17752link_static_flag=$lt_lt_prog_compiler_static
17753
17754# Does compiler simultaneously support -c and -o options?
17755compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17756
17757# Whether or not to add -lc for building shared libraries.
17758build_libtool_need_lc=$archive_cmds_need_lc
17759
17760# Whether or not to disallow shared libs when runtime libs are static.
17761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17762
17763# Compiler flag to allow reflexive dlopens.
17764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17765
17766# Compiler flag to generate shared objects directly from archives.
17767whole_archive_flag_spec=$lt_whole_archive_flag_spec
17768
17769# Whether the compiler copes with passing no objects directly.
17770compiler_needs_object=$lt_compiler_needs_object
17771
17772# Create an old-style archive from a shared archive.
17773old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17774
17775# Create a temporary old-style archive to link instead of a shared archive.
17776old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17777
17778# Commands used to build a shared archive.
17779archive_cmds=$lt_archive_cmds
17780archive_expsym_cmds=$lt_archive_expsym_cmds
17781
17782# Commands used to build a loadable module if different from building
17783# a shared archive.
17784module_cmds=$lt_module_cmds
17785module_expsym_cmds=$lt_module_expsym_cmds
17786
17787# Whether we are building with GNU ld or not.
17788with_gnu_ld=$lt_with_gnu_ld
17789
17790# Flag that allows shared libraries with undefined symbols to be built.
17791allow_undefined_flag=$lt_allow_undefined_flag
17792
17793# Flag that enforces no undefined symbols.
17794no_undefined_flag=$lt_no_undefined_flag
17795
17796# Flag to hardcode \$libdir into a binary during linking.
17797# This must work even if \$libdir does not exist
17798hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17799
17800# Whether we need a single "-rpath" flag with a separated argument.
17801hardcode_libdir_separator=$lt_hardcode_libdir_separator
17802
17803# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17804# DIR into the resulting binary.
17805hardcode_direct=$hardcode_direct
17806
17807# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17808# DIR into the resulting binary and the resulting library dependency is
17809# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17810# library is relocated.
17811hardcode_direct_absolute=$hardcode_direct_absolute
17812
17813# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17814# into the resulting binary.
17815hardcode_minus_L=$hardcode_minus_L
17816
17817# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17818# into the resulting binary.
17819hardcode_shlibpath_var=$hardcode_shlibpath_var
17820
17821# Set to "yes" if building a shared library automatically hardcodes DIR
17822# into the library and all subsequent libraries and executables linked
17823# against it.
17824hardcode_automatic=$hardcode_automatic
17825
17826# Set to yes if linker adds runtime paths of dependent libraries
17827# to runtime path list.
17828inherit_rpath=$inherit_rpath
17829
17830# Whether libtool must link a program against all its dependency libraries.
17831link_all_deplibs=$link_all_deplibs
17832
17833# Set to "yes" if exported symbols are required.
17834always_export_symbols=$always_export_symbols
17835
17836# The commands to list exported symbols.
17837export_symbols_cmds=$lt_export_symbols_cmds
17838
17839# Symbols that should not be listed in the preloaded symbols.
17840exclude_expsyms=$lt_exclude_expsyms
17841
17842# Symbols that must always be exported.
17843include_expsyms=$lt_include_expsyms
17844
17845# Commands necessary for linking programs (against libraries) with templates.
17846prelink_cmds=$lt_prelink_cmds
17847
17848# Commands necessary for finishing linking programs.
17849postlink_cmds=$lt_postlink_cmds
17850
17851# Specify filename containing input files.
17852file_list_spec=$lt_file_list_spec
17853
17854# How to hardcode a shared library path into an executable.
17855hardcode_action=$hardcode_action
17856
17857# ### END LIBTOOL CONFIG
17858
17859_LT_EOF
17860
17861 case $host_os in
17862 aix3*)
17863 cat <<\_LT_EOF >> "$cfgfile"
17864# AIX sometimes has problems with the GCC collect2 program. For some
17865# reason, if we set the COLLECT_NAMES environment variable, the problems
17866# vanish in a puff of smoke.
17867if test "X${COLLECT_NAMES+set}" != Xset; then
17868 COLLECT_NAMES=
17869 export COLLECT_NAMES
17870fi
17871_LT_EOF
17872 ;;
17873 esac
17874
17875
17876ltmain="$ac_aux_dir/ltmain.sh"
17877
17878
17879 # We use sed instead of cat because bash on DJGPP gets confused if
17880 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17881 # text mode, it properly converts lines to CR/LF. This bash problem
17882 # is reportedly fixed, but why not run on old versions too?
17883 sed '$q' "$ltmain" >> "$cfgfile" \
17884 || (rm -f "$cfgfile"; exit 1)
17885
17886 if test x"$xsi_shell" = xyes; then
17887 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17888func_dirname ()\
17889{\
17890\ case ${1} in\
17891\ */*) func_dirname_result="${1%/*}${2}" ;;\
17892\ * ) func_dirname_result="${3}" ;;\
17893\ esac\
17894} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17895 && mv -f "$cfgfile.tmp" "$cfgfile" \
17896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17897test 0 -eq $? || _lt_function_replace_fail=:
17898
17899
17900 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17901func_basename ()\
17902{\
17903\ func_basename_result="${1##*/}"\
17904} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17905 && mv -f "$cfgfile.tmp" "$cfgfile" \
17906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17907test 0 -eq $? || _lt_function_replace_fail=:
17908
17909
17910 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17911func_dirname_and_basename ()\
17912{\
17913\ case ${1} in\
17914\ */*) func_dirname_result="${1%/*}${2}" ;;\
17915\ * ) func_dirname_result="${3}" ;;\
17916\ esac\
17917\ func_basename_result="${1##*/}"\
17918} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17919 && mv -f "$cfgfile.tmp" "$cfgfile" \
17920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17921test 0 -eq $? || _lt_function_replace_fail=:
17922
17923
17924 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17925func_stripname ()\
17926{\
17927\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17928\ # positional parameters, so assign one to ordinary parameter first.\
17929\ func_stripname_result=${3}\
17930\ func_stripname_result=${func_stripname_result#"${1}"}\
17931\ func_stripname_result=${func_stripname_result%"${2}"}\
17932} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17933 && mv -f "$cfgfile.tmp" "$cfgfile" \
17934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17935test 0 -eq $? || _lt_function_replace_fail=:
17936
17937
17938 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17939func_split_long_opt ()\
17940{\
17941\ func_split_long_opt_name=${1%%=*}\
17942\ func_split_long_opt_arg=${1#*=}\
17943} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17944 && mv -f "$cfgfile.tmp" "$cfgfile" \
17945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17946test 0 -eq $? || _lt_function_replace_fail=:
17947
17948
17949 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17950func_split_short_opt ()\
17951{\
17952\ func_split_short_opt_arg=${1#??}\
17953\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17954} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17955 && mv -f "$cfgfile.tmp" "$cfgfile" \
17956 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17957test 0 -eq $? || _lt_function_replace_fail=:
17958
17959
17960 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17961func_lo2o ()\
17962{\
17963\ case ${1} in\
17964\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17965\ *) func_lo2o_result=${1} ;;\
17966\ esac\
17967} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17968 && mv -f "$cfgfile.tmp" "$cfgfile" \
17969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17970test 0 -eq $? || _lt_function_replace_fail=:
17971
17972
17973 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17974func_xform ()\
17975{\
17976 func_xform_result=${1%.*}.lo\
17977} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17978 && mv -f "$cfgfile.tmp" "$cfgfile" \
17979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17980test 0 -eq $? || _lt_function_replace_fail=:
17981
17982
17983 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17984func_arith ()\
17985{\
17986 func_arith_result=$(( $* ))\
17987} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17988 && mv -f "$cfgfile.tmp" "$cfgfile" \
17989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17990test 0 -eq $? || _lt_function_replace_fail=:
17991
17992
17993 sed -e '/^func_len ()$/,/^} # func_len /c\
17994func_len ()\
17995{\
17996 func_len_result=${#1}\
17997} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17998 && mv -f "$cfgfile.tmp" "$cfgfile" \
17999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18000test 0 -eq $? || _lt_function_replace_fail=:
18001
18002fi
18003
18004if test x"$lt_shell_append" = xyes; then
18005 sed -e '/^func_append ()$/,/^} # func_append /c\
18006func_append ()\
18007{\
18008 eval "${1}+=\\${2}"\
18009} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18010 && mv -f "$cfgfile.tmp" "$cfgfile" \
18011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18012test 0 -eq $? || _lt_function_replace_fail=:
18013
18014
18015 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18016func_append_quoted ()\
18017{\
18018\ func_quote_for_eval "${2}"\
18019\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18020} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18021 && mv -f "$cfgfile.tmp" "$cfgfile" \
18022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18023test 0 -eq $? || _lt_function_replace_fail=:
18024
18025
18026 # Save a `func_append' function call where possible by direct use of '+='
18027 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18028 && mv -f "$cfgfile.tmp" "$cfgfile" \
18029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18030 test 0 -eq $? || _lt_function_replace_fail=:
18031else
18032 # Save a `func_append' function call even when '+=' is not available
18033 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18034 && mv -f "$cfgfile.tmp" "$cfgfile" \
18035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18036 test 0 -eq $? || _lt_function_replace_fail=:
18037fi
18038
18039if test x"$_lt_function_replace_fail" = x":"; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18041$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18042fi
18043
18044
18045 mv -f "$cfgfile" "$ofile" ||
18046 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18047 chmod +x "$ofile"
18048
18049 ;;
18050 "python/setup.py":F) chmod +x python/setup.py ;;
18051 "xml2-config":F) chmod +x xml2-config ;;
18052
18053 esac
18054done # for ac_tag
18055
18056
18057as_fn_exit 0
18058_ACEOF
18059ac_clean_files=$ac_clean_files_save
18060
18061test $ac_write_fail = 0 ||
18062 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18063
18064
18065# configure is writing to config.log, and then calls config.status.
18066# config.status does its own redirection, appending to config.log.
18067# Unfortunately, on DOS this fails, as config.log is still kept open
18068# by configure, so config.status won't be able to write to it; its
18069# output is simply discarded. So we exec the FD to /dev/null,
18070# effectively closing config.log, so it can be properly (re)opened and
18071# appended to by config.status. When coming back to configure, we
18072# need to make the FD available again.
18073if test "$no_create" != yes; then
18074 ac_cs_success=:
18075 ac_config_status_args=
18076 test "$silent" = yes &&
18077 ac_config_status_args="$ac_config_status_args --quiet"
18078 exec 5>/dev/null
18079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18080 exec 5>>config.log
18081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18082 # would make configure fail if this is the last instruction.
18083 $ac_cs_success || as_fn_exit 1
18084fi
18085if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18087$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18088fi
18089
18090
18091echo Done configuring
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette