Annotation of embedaddon/libxml2/configure, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.66.
4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: case $0 in #((
93: *[\\/]* ) as_myself=$0 ;;
94: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95: for as_dir in $PATH
96: do
97: IFS=$as_save_IFS
98: test -z "$as_dir" && as_dir=.
99: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100: done
101: IFS=$as_save_IFS
102:
103: ;;
104: esac
105: # We did not find ourselves, most probably we were run as `sh COMMAND'
106: # in which case we are not to be found in the path.
107: if test "x$as_myself" = x; then
108: as_myself=$0
109: fi
110: if test ! -f "$as_myself"; then
111: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112: exit 1
113: fi
114:
115: # Unset variables that we do not need and which cause bugs (e.g. in
116: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117: # suppresses any "Segmentation fault" message there. '((' could
118: # trigger a bug in pdksh 5.2.14.
119: for as_var in BASH_ENV ENV MAIL MAILPATH
120: do eval test x\${$as_var+set} = xset \
121: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122: done
123: PS1='$ '
124: PS2='> '
125: PS4='+ '
126:
127: # NLS nuisances.
128: LC_ALL=C
129: export LC_ALL
130: LANGUAGE=C
131: export LANGUAGE
132:
133: # CDPATH.
134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135:
136: if test "x$CONFIG_SHELL" = x; then
137: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138: emulate sh
139: NULLCMD=:
140: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141: # is contrary to our usage. Disable this feature.
142: alias -g '\${1+\"\$@\"}'='\"\$@\"'
143: setopt NO_GLOB_SUBST
144: else
145: case \`(set -o) 2>/dev/null\` in #(
146: *posix*) :
147: set -o posix ;; #(
148: *) :
149: ;;
150: esac
151: fi
152: "
153: as_required="as_fn_return () { (exit \$1); }
154: as_fn_success () { as_fn_return 0; }
155: as_fn_failure () { as_fn_return 1; }
156: as_fn_ret_success () { return 0; }
157: as_fn_ret_failure () { return 1; }
158:
159: exitcode=0
160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165:
166: else
167: exitcode=1; echo positional parameters were not saved.
168: fi
169: test x\$exitcode = x0 || exit 1"
170: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174: test \$(( 1 + 1 )) = 2 || exit 1
175:
176: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180: PATH=/empty FPATH=/empty; export PATH FPATH
181: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183: if (eval "$as_required") 2>/dev/null; then :
184: as_have_required=yes
185: else
186: as_have_required=no
187: fi
188: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189:
190: else
191: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192: as_found=false
193: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194: do
195: IFS=$as_save_IFS
196: test -z "$as_dir" && as_dir=.
197: as_found=:
198: case $as_dir in #(
199: /*)
200: for as_base in sh bash ksh sh5; do
201: # Try only shells that exist, to save several forks.
202: as_shell=$as_dir/$as_base
203: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205: CONFIG_SHELL=$as_shell as_have_required=yes
206: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207: break 2
208: fi
209: fi
210: done;;
211: esac
212: as_found=false
213: done
214: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216: CONFIG_SHELL=$SHELL as_have_required=yes
217: fi; }
218: IFS=$as_save_IFS
219:
220:
221: if test "x$CONFIG_SHELL" != x; then :
222: # We cannot yet assume a decent shell, so we have to provide a
223: # neutralization value for shells without unset; and this also
224: # works around shells that cannot unset nonexistent variables.
225: BASH_ENV=/dev/null
226: ENV=/dev/null
227: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228: export CONFIG_SHELL
229: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230: fi
231:
232: if test x$as_have_required = xno; then :
233: $as_echo "$0: This script requires a shell more modern than all"
234: $as_echo "$0: the shells that I found on your system."
235: if test x${ZSH_VERSION+set} = xset ; then
236: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238: else
239: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240: $0: including any error possibly output before this
241: $0: message. Then install a modern shell, or manually run
242: $0: the script under such a shell if you do have one."
243: fi
244: exit 1
245: fi
246: fi
247: fi
248: SHELL=${CONFIG_SHELL-/bin/sh}
249: export SHELL
250: # Unset more variables known to interfere with behavior of common tools.
251: CLICOLOR_FORCE= GREP_OPTIONS=
252: unset CLICOLOR_FORCE GREP_OPTIONS
253:
254: ## --------------------- ##
255: ## M4sh Shell Functions. ##
256: ## --------------------- ##
257: # as_fn_unset VAR
258: # ---------------
259: # Portably unset VAR.
260: as_fn_unset ()
261: {
262: { eval $1=; unset $1;}
263: }
264: as_unset=as_fn_unset
265:
266: # as_fn_set_status STATUS
267: # -----------------------
268: # Set $? to STATUS, without forking.
269: as_fn_set_status ()
270: {
271: return $1
272: } # as_fn_set_status
273:
274: # as_fn_exit STATUS
275: # -----------------
276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277: as_fn_exit ()
278: {
279: set +e
280: as_fn_set_status $1
281: exit $1
282: } # as_fn_exit
283:
284: # as_fn_mkdir_p
285: # -------------
286: # Create "$as_dir" as a directory, including parents if necessary.
287: as_fn_mkdir_p ()
288: {
289:
290: case $as_dir in #(
291: -*) as_dir=./$as_dir;;
292: esac
293: test -d "$as_dir" || eval $as_mkdir_p || {
294: as_dirs=
295: while :; do
296: case $as_dir in #(
297: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298: *) as_qdir=$as_dir;;
299: esac
300: as_dirs="'$as_qdir' $as_dirs"
301: as_dir=`$as_dirname -- "$as_dir" ||
302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303: X"$as_dir" : 'X\(//\)[^/]' \| \
304: X"$as_dir" : 'X\(//\)$' \| \
305: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306: $as_echo X"$as_dir" |
307: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\/\)[^/].*/{
312: s//\1/
313: q
314: }
315: /^X\(\/\/\)$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\).*/{
320: s//\1/
321: q
322: }
323: s/.*/./; q'`
324: test -d "$as_dir" && break
325: done
326: test -z "$as_dirs" || eval "mkdir $as_dirs"
327: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328:
329:
330: } # as_fn_mkdir_p
331: # as_fn_append VAR VALUE
332: # ----------------------
333: # Append the text in VALUE to the end of the definition contained in VAR. Take
334: # advantage of any shell optimizations that allow amortized linear growth over
335: # repeated appends, instead of the typical quadratic growth present in naive
336: # implementations.
337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338: eval 'as_fn_append ()
339: {
340: eval $1+=\$2
341: }'
342: else
343: as_fn_append ()
344: {
345: eval $1=\$$1\$2
346: }
347: fi # as_fn_append
348:
349: # as_fn_arith ARG...
350: # ------------------
351: # Perform arithmetic evaluation on the ARGs, and store the result in the
352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
353: # must be portable across $(()) and expr.
354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355: eval 'as_fn_arith ()
356: {
357: as_val=$(( $* ))
358: }'
359: else
360: as_fn_arith ()
361: {
362: as_val=`expr "$@" || test $? -eq 1`
363: }
364: fi # as_fn_arith
365:
366:
367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
368: # ----------------------------------------
369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371: # script with STATUS, using 1 if that was 0.
372: as_fn_error ()
373: {
374: as_status=$1; test $as_status -eq 0 && as_status=1
375: if test "$4"; then
376: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378: fi
379: $as_echo "$as_me: error: $2" >&2
380: as_fn_exit $as_status
381: } # as_fn_error
382:
383: if expr a : '\(a\)' >/dev/null 2>&1 &&
384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
385: as_expr=expr
386: else
387: as_expr=false
388: fi
389:
390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391: as_basename=basename
392: else
393: as_basename=false
394: fi
395:
396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397: as_dirname=dirname
398: else
399: as_dirname=false
400: fi
401:
402: as_me=`$as_basename -- "$0" ||
403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404: X"$0" : 'X\(//\)$' \| \
405: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406: $as_echo X/"$0" |
407: sed '/^.*\/\([^/][^/]*\)\/*$/{
408: s//\1/
409: q
410: }
411: /^X\/\(\/\/\)$/{
412: s//\1/
413: q
414: }
415: /^X\/\(\/\).*/{
416: s//\1/
417: q
418: }
419: s/.*/./; q'`
420:
421: # Avoid depending upon Character Ranges.
422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425: as_cr_digits='0123456789'
426: as_cr_alnum=$as_cr_Letters$as_cr_digits
427:
428:
429: as_lineno_1=$LINENO as_lineno_1a=$LINENO
430: as_lineno_2=$LINENO as_lineno_2a=$LINENO
431: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434: sed -n '
435: p
436: /[$]LINENO/=
437: ' <$as_myself |
438: sed '
439: s/[$]LINENO.*/&-/
440: t lineno
441: b
442: :lineno
443: N
444: :loop
445: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446: t loop
447: s/-\n.*//
448: ' >$as_me.lineno &&
449: chmod +x "$as_me.lineno" ||
450: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451:
452: # Don't try to exec as it changes $[0], causing all sort of problems
453: # (the dirname of $[0] is not the place where we might find the
454: # original and so on. Autoconf is especially sensitive to this).
455: . "./$as_me.lineno"
456: # Exit status is that of the last command.
457: exit
458: }
459:
460: ECHO_C= ECHO_N= ECHO_T=
461: case `echo -n x` in #(((((
462: -n*)
463: case `echo 'xy\c'` in
464: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465: xy) ECHO_C='\c';;
466: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467: ECHO_T=' ';;
468: esac;;
469: *)
470: ECHO_N='-n';;
471: esac
472:
473: rm -f conf$$ conf$$.exe conf$$.file
474: if test -d conf$$.dir; then
475: rm -f conf$$.dir/conf$$.file
476: else
477: rm -f conf$$.dir
478: mkdir conf$$.dir 2>/dev/null
479: fi
480: if (echo >conf$$.file) 2>/dev/null; then
481: if ln -s conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s='ln -s'
483: # ... but there are two gotchas:
484: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486: # In both cases, we have to default to `cp -p'.
487: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488: as_ln_s='cp -p'
489: elif ln conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s=ln
491: else
492: as_ln_s='cp -p'
493: fi
494: else
495: as_ln_s='cp -p'
496: fi
497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498: rmdir conf$$.dir 2>/dev/null
499:
500: if mkdir -p . 2>/dev/null; then
501: as_mkdir_p='mkdir -p "$as_dir"'
502: else
503: test -d ./-p && rmdir ./-p
504: as_mkdir_p=false
505: fi
506:
507: if test -x / >/dev/null 2>&1; then
508: as_test_x='test -x'
509: else
510: if ls -dL / >/dev/null 2>&1; then
511: as_ls_L_option=L
512: else
513: as_ls_L_option=
514: fi
515: as_test_x='
516: eval sh -c '\''
517: if test -d "$1"; then
518: test -d "$1/.";
519: else
520: case $1 in #(
521: -*)set "./$1";;
522: esac;
523: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524: ???[sx]*):;;*)false;;esac;fi
525: '\'' sh
526: '
527: fi
528: as_executable_p=$as_test_x
529:
530: # Sed expression to map a string onto a valid CPP name.
531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532:
533: # Sed expression to map a string onto a valid variable name.
534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535:
536: SHELL=${CONFIG_SHELL-/bin/sh}
537:
538:
539: test -n "$DJDIR" || exec 7<&0 </dev/null
540: exec 6>&1
541:
542: # Name of the host.
543: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544: # so uname gets run too.
545: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546:
547: #
548: # Initializations.
549: #
550: ac_default_prefix=/usr/local
551: ac_clean_files=
552: ac_config_libobj_dir=.
553: LIBOBJS=
554: cross_compiling=no
555: subdirs=
556: MFLAGS=
557: MAKEFLAGS=
558:
559: # Identity of this package.
560: PACKAGE_NAME=
561: PACKAGE_TARNAME=
562: PACKAGE_VERSION=
563: PACKAGE_STRING=
564: PACKAGE_BUGREPORT=
565: PACKAGE_URL=
566:
567: ac_unique_file="entities.c"
568: # Factoring default headers for most tests.
569: ac_includes_default="\
570: #include <stdio.h>
571: #ifdef HAVE_SYS_TYPES_H
572: # include <sys/types.h>
573: #endif
574: #ifdef HAVE_SYS_STAT_H
575: # include <sys/stat.h>
576: #endif
577: #ifdef STDC_HEADERS
578: # include <stdlib.h>
579: # include <stddef.h>
580: #else
581: # ifdef HAVE_STDLIB_H
582: # include <stdlib.h>
583: # endif
584: #endif
585: #ifdef HAVE_STRING_H
586: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587: # include <memory.h>
588: # endif
589: # include <string.h>
590: #endif
591: #ifdef HAVE_STRINGS_H
592: # include <strings.h>
593: #endif
594: #ifdef HAVE_INTTYPES_H
595: # include <inttypes.h>
596: #endif
597: #ifdef HAVE_STDINT_H
598: # include <stdint.h>
599: #endif
600: #ifdef HAVE_UNISTD_H
601: # include <unistd.h>
602: #endif"
603:
604: ac_subst_vars='am__EXEEXT_FALSE
605: am__EXEEXT_TRUE
606: LTLIBOBJS
607: LIBOBJS
608: PYTHON_TESTS
609: RELDATE
610: RDL_LIBS
611: M_LIBS
612: PYTHON_SITE_PACKAGES
613: PYTHON_INCLUDES
614: PYTHON_VERSION
615: HAVE_ISINF
616: HAVE_ISNAN
617: XML_INCLUDEDIR
618: ICONV_LIBS
619: XML_LIBTOOLLIBS
620: XML_LIBS
621: XML_LIBDIR
622: XML_CFLAGS
623: CYGWIN_EXTRA_PYTHON_LIBADD
624: CYGWIN_EXTRA_LDFLAGS
625: WIN32_EXTRA_PYTHON_LIBADD
626: WIN32_EXTRA_LDFLAGS
627: WIN32_EXTRA_LIBADD
628: WITH_RUN_DEBUG
629: WITH_MEM_DEBUG
630: TEST_DEBUG
631: DEBUG_OBJ
632: WITH_DEBUG
633: TEST_REGEXPS
634: WITH_REGEXPS
635: TEST_SCHEMAS
636: WITH_SCHEMAS
637: TEST_SCHEMATRON
638: WITH_SCHEMATRON
639: WITH_ISO8859X
640: WITH_ICU
641: WITH_ICONV
642: WITH_OUTPUT
643: TEST_XPATH
644: XPATH_OBJ
645: WITH_XPATH
646: TEST_XINCLUDE
647: XINCLUDE_OBJ
648: WITH_XINCLUDE
649: TEST_C14N
650: C14N_OBJ
651: WITH_C14N
652: TEST_XPTR
653: XPTR_OBJ
654: WITH_XPTR
655: DOCB_OBJ
656: WITH_DOCB
657: TEST_CATALOG
658: CATALOG_OBJ
659: WITH_CATALOG
660: TEST_VTIME
661: TEST_VALID
662: WITH_VALID
663: TEST_PHTML
664: TEST_HTML
665: HTML_OBJ
666: WITH_HTML
667: TEST_PUSH
668: WITH_PUSH
669: TEST_SAX
670: WITH_SAX1
671: TEST_PATTERN
672: WITH_PATTERN
673: WITH_WRITER
674: READER_TEST
675: WITH_READER
676: WITH_LEGACY
677: HTTP_OBJ
678: WITH_HTTP
679: FTP_OBJ
680: WITH_FTP
681: WITH_TREE
682: THREADS_W32
683: TEST_THREADS
684: THREAD_CFLAGS
685: WITH_THREADS
686: BASE_THREAD_LIBS
687: THREAD_LIBS
688: WITH_TRIO
689: WITH_TRIO_SOURCES_FALSE
690: WITH_TRIO_SOURCES_TRUE
691: STATIC_BINARIES
692: TEST_MODULES
693: MODULE_EXTENSION
694: MODULE_PLATFORM_LIBS
695: WITH_MODULES
696: PYTHON_LIBS
697: PYTHON_SUBDIR
698: pythondir
699: WITH_PYTHON_FALSE
700: WITH_PYTHON_TRUE
701: PYTHON
702: WITH_ZLIB
703: Z_LIBS
704: Z_CFLAGS
705: REBUILD_DOCS_FALSE
706: REBUILD_DOCS_TRUE
707: HTML_DIR
708: USE_VERSION_SCRIPT_FALSE
709: USE_VERSION_SCRIPT_TRUE
710: VERSION_SCRIPT_FLAGS
711: OTOOL64
712: OTOOL
713: LIPO
714: NMEDIT
715: DSYMUTIL
716: RANLIB
717: AR
718: LN_S
719: NM
720: ac_ct_DUMPBIN
721: DUMPBIN
722: LD
723: FGREP
724: SED
725: LIBTOOL
726: OBJDUMP
727: DLLTOOL
728: AS
729: ANSI2KNR
730: U
731: EGREP
732: GREP
733: XSLTPROC
734: XMLLINT
735: WGET
736: PERL
737: TAR
738: MV
739: RM
740: CPP
741: am__fastdepCC_FALSE
742: am__fastdepCC_TRUE
743: CCDEPMODE
744: AMDEPBACKSLASH
745: AMDEP_FALSE
746: AMDEP_TRUE
747: am__quote
748: am__include
749: DEPDIR
750: OBJEXT
751: EXEEXT
752: ac_ct_CC
753: CPPFLAGS
754: LDFLAGS
755: CFLAGS
756: CC
757: am__untar
758: am__tar
759: AMTAR
760: am__leading_dot
761: SET_MAKE
762: AWK
763: mkdir_p
764: MKDIR_P
765: INSTALL_STRIP_PROGRAM
766: STRIP
767: install_sh
768: MAKEINFO
769: AUTOHEADER
770: AUTOMAKE
771: AUTOCONF
772: ACLOCAL
773: VERSION
774: PACKAGE
775: CYGPATH_W
776: am__isrc
777: INSTALL_DATA
778: INSTALL_SCRIPT
779: INSTALL_PROGRAM
780: LIBXML_VERSION_EXTRA
781: LIBXML_VERSION_NUMBER
782: LIBXML_VERSION_INFO
783: LIBXML_VERSION
784: LIBXML_MICRO_VERSION
785: LIBXML_MINOR_VERSION
786: LIBXML_MAJOR_VERSION
787: host_os
788: host_vendor
789: host_cpu
790: host
791: build_os
792: build_vendor
793: build_cpu
794: build
795: target_alias
796: host_alias
797: build_alias
798: LIBS
799: ECHO_T
800: ECHO_N
801: ECHO_C
802: DEFS
803: mandir
804: localedir
805: libdir
806: psdir
807: pdfdir
808: dvidir
809: htmldir
810: infodir
811: docdir
812: oldincludedir
813: includedir
814: localstatedir
815: sharedstatedir
816: sysconfdir
817: datadir
818: datarootdir
819: libexecdir
820: sbindir
821: bindir
822: program_transform_name
823: prefix
824: exec_prefix
825: PACKAGE_URL
826: PACKAGE_BUGREPORT
827: PACKAGE_STRING
828: PACKAGE_VERSION
829: PACKAGE_TARNAME
830: PACKAGE_NAME
831: PATH_SEPARATOR
832: SHELL'
833: ac_subst_files=''
834: ac_user_opts='
835: enable_option_checking
836: enable_dependency_tracking
837: enable_shared
838: enable_static
839: with_pic
840: enable_fast_install
841: with_gnu_ld
842: enable_libtool_lock
843: with_c14n
844: with_catalog
845: with_debug
846: with_docbook
847: with_fexceptions
848: with_ftp
849: with_history
850: with_html
851: with_html_dir
852: with_html_subdir
853: with_http
854: with_iconv
855: with_icu
856: with_iso8859x
857: with_legacy
858: with_mem_debug
859: with_minimum
860: with_output
861: with_pattern
862: with_push
863: with_python
864: with_reader
865: with_readline
866: with_regexps
867: with_run_debug
868: with_sax1
869: with_schemas
870: with_schematron
871: with_threads
872: with_thread_alloc
873: with_tree
874: with_valid
875: with_writer
876: with_xinclude
877: with_xpath
878: with_xptr
879: with_modules
880: with_zlib
881: with_coverage
882: enable_rebuild_docs
883: enable_ipv6
884: '
885: ac_precious_vars='build_alias
886: host_alias
887: target_alias
888: CC
889: CFLAGS
890: LDFLAGS
891: LIBS
892: CPPFLAGS
893: CPP'
894:
895:
896: # Initialize some variables set by options.
897: ac_init_help=
898: ac_init_version=false
899: ac_unrecognized_opts=
900: ac_unrecognized_sep=
901: # The variables have the same names as the options, with
902: # dashes changed to underlines.
903: cache_file=/dev/null
904: exec_prefix=NONE
905: no_create=
906: no_recursion=
907: prefix=NONE
908: program_prefix=NONE
909: program_suffix=NONE
910: program_transform_name=s,x,x,
911: silent=
912: site=
913: srcdir=
914: verbose=
915: x_includes=NONE
916: x_libraries=NONE
917:
918: # Installation directory options.
919: # These are left unexpanded so users can "make install exec_prefix=/foo"
920: # and all the variables that are supposed to be based on exec_prefix
921: # by default will actually change.
922: # Use braces instead of parens because sh, perl, etc. also accept them.
923: # (The list follows the same order as the GNU Coding Standards.)
924: bindir='${exec_prefix}/bin'
925: sbindir='${exec_prefix}/sbin'
926: libexecdir='${exec_prefix}/libexec'
927: datarootdir='${prefix}/share'
928: datadir='${datarootdir}'
929: sysconfdir='${prefix}/etc'
930: sharedstatedir='${prefix}/com'
931: localstatedir='${prefix}/var'
932: includedir='${prefix}/include'
933: oldincludedir='/usr/include'
934: docdir='${datarootdir}/doc/${PACKAGE}'
935: infodir='${datarootdir}/info'
936: htmldir='${docdir}'
937: dvidir='${docdir}'
938: pdfdir='${docdir}'
939: psdir='${docdir}'
940: libdir='${exec_prefix}/lib'
941: localedir='${datarootdir}/locale'
942: mandir='${datarootdir}/man'
943:
944: ac_prev=
945: ac_dashdash=
946: for ac_option
947: do
948: # If the previous option needs an argument, assign it.
949: if test -n "$ac_prev"; then
950: eval $ac_prev=\$ac_option
951: ac_prev=
952: continue
953: fi
954:
955: case $ac_option in
956: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957: *) ac_optarg=yes ;;
958: esac
959:
960: # Accept the important Cygnus configure options, so we can diagnose typos.
961:
962: case $ac_dashdash$ac_option in
963: --)
964: ac_dashdash=yes ;;
965:
966: -bindir | --bindir | --bindi | --bind | --bin | --bi)
967: ac_prev=bindir ;;
968: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969: bindir=$ac_optarg ;;
970:
971: -build | --build | --buil | --bui | --bu)
972: ac_prev=build_alias ;;
973: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974: build_alias=$ac_optarg ;;
975:
976: -cache-file | --cache-file | --cache-fil | --cache-fi \
977: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978: ac_prev=cache_file ;;
979: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981: cache_file=$ac_optarg ;;
982:
983: --config-cache | -C)
984: cache_file=config.cache ;;
985:
986: -datadir | --datadir | --datadi | --datad)
987: ac_prev=datadir ;;
988: -datadir=* | --datadir=* | --datadi=* | --datad=*)
989: datadir=$ac_optarg ;;
990:
991: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992: | --dataroo | --dataro | --datar)
993: ac_prev=datarootdir ;;
994: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996: datarootdir=$ac_optarg ;;
997:
998: -disable-* | --disable-*)
999: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000: # Reject names that are not valid shell variable names.
1001: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002: as_fn_error $? "invalid feature name: $ac_useropt"
1003: ac_useropt_orig=$ac_useropt
1004: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005: case $ac_user_opts in
1006: *"
1007: "enable_$ac_useropt"
1008: "*) ;;
1009: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010: ac_unrecognized_sep=', ';;
1011: esac
1012: eval enable_$ac_useropt=no ;;
1013:
1014: -docdir | --docdir | --docdi | --doc | --do)
1015: ac_prev=docdir ;;
1016: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017: docdir=$ac_optarg ;;
1018:
1019: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020: ac_prev=dvidir ;;
1021: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022: dvidir=$ac_optarg ;;
1023:
1024: -enable-* | --enable-*)
1025: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026: # Reject names that are not valid shell variable names.
1027: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028: as_fn_error $? "invalid feature name: $ac_useropt"
1029: ac_useropt_orig=$ac_useropt
1030: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031: case $ac_user_opts in
1032: *"
1033: "enable_$ac_useropt"
1034: "*) ;;
1035: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036: ac_unrecognized_sep=', ';;
1037: esac
1038: eval enable_$ac_useropt=\$ac_optarg ;;
1039:
1040: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042: | --exec | --exe | --ex)
1043: ac_prev=exec_prefix ;;
1044: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046: | --exec=* | --exe=* | --ex=*)
1047: exec_prefix=$ac_optarg ;;
1048:
1049: -gas | --gas | --ga | --g)
1050: # Obsolete; use --with-gas.
1051: with_gas=yes ;;
1052:
1053: -help | --help | --hel | --he | -h)
1054: ac_init_help=long ;;
1055: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056: ac_init_help=recursive ;;
1057: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058: ac_init_help=short ;;
1059:
1060: -host | --host | --hos | --ho)
1061: ac_prev=host_alias ;;
1062: -host=* | --host=* | --hos=* | --ho=*)
1063: host_alias=$ac_optarg ;;
1064:
1065: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066: ac_prev=htmldir ;;
1067: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068: | --ht=*)
1069: htmldir=$ac_optarg ;;
1070:
1071: -includedir | --includedir | --includedi | --included | --include \
1072: | --includ | --inclu | --incl | --inc)
1073: ac_prev=includedir ;;
1074: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075: | --includ=* | --inclu=* | --incl=* | --inc=*)
1076: includedir=$ac_optarg ;;
1077:
1078: -infodir | --infodir | --infodi | --infod | --info | --inf)
1079: ac_prev=infodir ;;
1080: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081: infodir=$ac_optarg ;;
1082:
1083: -libdir | --libdir | --libdi | --libd)
1084: ac_prev=libdir ;;
1085: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086: libdir=$ac_optarg ;;
1087:
1088: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089: | --libexe | --libex | --libe)
1090: ac_prev=libexecdir ;;
1091: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092: | --libexe=* | --libex=* | --libe=*)
1093: libexecdir=$ac_optarg ;;
1094:
1095: -localedir | --localedir | --localedi | --localed | --locale)
1096: ac_prev=localedir ;;
1097: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098: localedir=$ac_optarg ;;
1099:
1100: -localstatedir | --localstatedir | --localstatedi | --localstated \
1101: | --localstate | --localstat | --localsta | --localst | --locals)
1102: ac_prev=localstatedir ;;
1103: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105: localstatedir=$ac_optarg ;;
1106:
1107: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108: ac_prev=mandir ;;
1109: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110: mandir=$ac_optarg ;;
1111:
1112: -nfp | --nfp | --nf)
1113: # Obsolete; use --without-fp.
1114: with_fp=no ;;
1115:
1116: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117: | --no-cr | --no-c | -n)
1118: no_create=yes ;;
1119:
1120: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122: no_recursion=yes ;;
1123:
1124: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126: | --oldin | --oldi | --old | --ol | --o)
1127: ac_prev=oldincludedir ;;
1128: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131: oldincludedir=$ac_optarg ;;
1132:
1133: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134: ac_prev=prefix ;;
1135: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136: prefix=$ac_optarg ;;
1137:
1138: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139: | --program-pre | --program-pr | --program-p)
1140: ac_prev=program_prefix ;;
1141: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143: program_prefix=$ac_optarg ;;
1144:
1145: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146: | --program-suf | --program-su | --program-s)
1147: ac_prev=program_suffix ;;
1148: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150: program_suffix=$ac_optarg ;;
1151:
1152: -program-transform-name | --program-transform-name \
1153: | --program-transform-nam | --program-transform-na \
1154: | --program-transform-n | --program-transform- \
1155: | --program-transform | --program-transfor \
1156: | --program-transfo | --program-transf \
1157: | --program-trans | --program-tran \
1158: | --progr-tra | --program-tr | --program-t)
1159: ac_prev=program_transform_name ;;
1160: -program-transform-name=* | --program-transform-name=* \
1161: | --program-transform-nam=* | --program-transform-na=* \
1162: | --program-transform-n=* | --program-transform-=* \
1163: | --program-transform=* | --program-transfor=* \
1164: | --program-transfo=* | --program-transf=* \
1165: | --program-trans=* | --program-tran=* \
1166: | --progr-tra=* | --program-tr=* | --program-t=*)
1167: program_transform_name=$ac_optarg ;;
1168:
1169: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170: ac_prev=pdfdir ;;
1171: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172: pdfdir=$ac_optarg ;;
1173:
1174: -psdir | --psdir | --psdi | --psd | --ps)
1175: ac_prev=psdir ;;
1176: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177: psdir=$ac_optarg ;;
1178:
1179: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180: | -silent | --silent | --silen | --sile | --sil)
1181: silent=yes ;;
1182:
1183: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184: ac_prev=sbindir ;;
1185: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186: | --sbi=* | --sb=*)
1187: sbindir=$ac_optarg ;;
1188:
1189: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191: | --sharedst | --shareds | --shared | --share | --shar \
1192: | --sha | --sh)
1193: ac_prev=sharedstatedir ;;
1194: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197: | --sha=* | --sh=*)
1198: sharedstatedir=$ac_optarg ;;
1199:
1200: -site | --site | --sit)
1201: ac_prev=site ;;
1202: -site=* | --site=* | --sit=*)
1203: site=$ac_optarg ;;
1204:
1205: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206: ac_prev=srcdir ;;
1207: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208: srcdir=$ac_optarg ;;
1209:
1210: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211: | --syscon | --sysco | --sysc | --sys | --sy)
1212: ac_prev=sysconfdir ;;
1213: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215: sysconfdir=$ac_optarg ;;
1216:
1217: -target | --target | --targe | --targ | --tar | --ta | --t)
1218: ac_prev=target_alias ;;
1219: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220: target_alias=$ac_optarg ;;
1221:
1222: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223: verbose=yes ;;
1224:
1225: -version | --version | --versio | --versi | --vers | -V)
1226: ac_init_version=: ;;
1227:
1228: -with-* | --with-*)
1229: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230: # Reject names that are not valid shell variable names.
1231: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232: as_fn_error $? "invalid package name: $ac_useropt"
1233: ac_useropt_orig=$ac_useropt
1234: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235: case $ac_user_opts in
1236: *"
1237: "with_$ac_useropt"
1238: "*) ;;
1239: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240: ac_unrecognized_sep=', ';;
1241: esac
1242: eval with_$ac_useropt=\$ac_optarg ;;
1243:
1244: -without-* | --without-*)
1245: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246: # Reject names that are not valid shell variable names.
1247: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248: as_fn_error $? "invalid package name: $ac_useropt"
1249: ac_useropt_orig=$ac_useropt
1250: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251: case $ac_user_opts in
1252: *"
1253: "with_$ac_useropt"
1254: "*) ;;
1255: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256: ac_unrecognized_sep=', ';;
1257: esac
1258: eval with_$ac_useropt=no ;;
1259:
1260: --x)
1261: # Obsolete; use --with-x.
1262: with_x=yes ;;
1263:
1264: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265: | --x-incl | --x-inc | --x-in | --x-i)
1266: ac_prev=x_includes ;;
1267: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269: x_includes=$ac_optarg ;;
1270:
1271: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273: ac_prev=x_libraries ;;
1274: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276: x_libraries=$ac_optarg ;;
1277:
1278: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279: Try \`$0 --help' for more information"
1280: ;;
1281:
1282: *=*)
1283: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284: # Reject names that are not valid shell variable names.
1285: case $ac_envvar in #(
1286: '' | [0-9]* | *[!_$as_cr_alnum]* )
1287: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288: esac
1289: eval $ac_envvar=\$ac_optarg
1290: export $ac_envvar ;;
1291:
1292: *)
1293: # FIXME: should be removed in autoconf 3.0.
1294: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298: ;;
1299:
1300: esac
1301: done
1302:
1303: if test -n "$ac_prev"; then
1304: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305: as_fn_error $? "missing argument to $ac_option"
1306: fi
1307:
1308: if test -n "$ac_unrecognized_opts"; then
1309: case $enable_option_checking in
1310: no) ;;
1311: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313: esac
1314: fi
1315:
1316: # Check all directory arguments for consistency.
1317: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318: datadir sysconfdir sharedstatedir localstatedir includedir \
1319: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320: libdir localedir mandir
1321: do
1322: eval ac_val=\$$ac_var
1323: # Remove trailing slashes.
1324: case $ac_val in
1325: */ )
1326: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327: eval $ac_var=\$ac_val;;
1328: esac
1329: # Be sure to have absolute directory names.
1330: case $ac_val in
1331: [\\/$]* | ?:[\\/]* ) continue;;
1332: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333: esac
1334: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335: done
1336:
1337: # There might be people who depend on the old broken behavior: `$host'
1338: # used to hold the argument of --host etc.
1339: # FIXME: To remove some day.
1340: build=$build_alias
1341: host=$host_alias
1342: target=$target_alias
1343:
1344: # FIXME: To remove some day.
1345: if test "x$host_alias" != x; then
1346: if test "x$build_alias" = x; then
1347: cross_compiling=maybe
1348: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1349: If a cross compiler is detected then cross compile mode will be used" >&2
1350: elif test "x$build_alias" != "x$host_alias"; then
1351: cross_compiling=yes
1352: fi
1353: fi
1354:
1355: ac_tool_prefix=
1356: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357:
1358: test "$silent" = yes && exec 6>/dev/null
1359:
1360:
1361: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362: ac_ls_di=`ls -di .` &&
1363: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364: as_fn_error $? "working directory cannot be determined"
1365: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366: as_fn_error $? "pwd does not report name of working directory"
1367:
1368:
1369: # Find the source files, if location was not specified.
1370: if test -z "$srcdir"; then
1371: ac_srcdir_defaulted=yes
1372: # Try the directory containing this script, then the parent directory.
1373: ac_confdir=`$as_dirname -- "$as_myself" ||
1374: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375: X"$as_myself" : 'X\(//\)[^/]' \| \
1376: X"$as_myself" : 'X\(//\)$' \| \
1377: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378: $as_echo X"$as_myself" |
1379: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380: s//\1/
1381: q
1382: }
1383: /^X\(\/\/\)[^/].*/{
1384: s//\1/
1385: q
1386: }
1387: /^X\(\/\/\)$/{
1388: s//\1/
1389: q
1390: }
1391: /^X\(\/\).*/{
1392: s//\1/
1393: q
1394: }
1395: s/.*/./; q'`
1396: srcdir=$ac_confdir
1397: if test ! -r "$srcdir/$ac_unique_file"; then
1398: srcdir=..
1399: fi
1400: else
1401: ac_srcdir_defaulted=no
1402: fi
1403: if test ! -r "$srcdir/$ac_unique_file"; then
1404: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406: fi
1407: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408: ac_abs_confdir=`(
1409: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410: pwd)`
1411: # When building in place, set srcdir=.
1412: if test "$ac_abs_confdir" = "$ac_pwd"; then
1413: srcdir=.
1414: fi
1415: # Remove unnecessary trailing slashes from srcdir.
1416: # Double slashes in file names in object file debugging info
1417: # mess up M-x gdb in Emacs.
1418: case $srcdir in
1419: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420: esac
1421: for ac_var in $ac_precious_vars; do
1422: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423: eval ac_env_${ac_var}_value=\$${ac_var}
1424: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426: done
1427:
1428: #
1429: # Report the --help message.
1430: #
1431: if test "$ac_init_help" = "long"; then
1432: # Omit some internal or obsolete options to make the list less imposing.
1433: # This message is too long to be a string in the A/UX 3.1 sh.
1434: cat <<_ACEOF
1435: \`configure' configures this package to adapt to many kinds of systems.
1436:
1437: Usage: $0 [OPTION]... [VAR=VALUE]...
1438:
1439: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440: VAR=VALUE. See below for descriptions of some of the useful variables.
1441:
1442: Defaults for the options are specified in brackets.
1443:
1444: Configuration:
1445: -h, --help display this help and exit
1446: --help=short display options specific to this package
1447: --help=recursive display the short help of all the included packages
1448: -V, --version display version information and exit
1449: -q, --quiet, --silent do not print \`checking ...' messages
1450: --cache-file=FILE cache test results in FILE [disabled]
1451: -C, --config-cache alias for \`--cache-file=config.cache'
1452: -n, --no-create do not create output files
1453: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454:
1455: Installation directories:
1456: --prefix=PREFIX install architecture-independent files in PREFIX
1457: [$ac_default_prefix]
1458: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459: [PREFIX]
1460:
1461: By default, \`make install' will install all the files in
1462: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464: for instance \`--prefix=\$HOME'.
1465:
1466: For better control, use the options below.
1467:
1468: Fine tuning of the installation directories:
1469: --bindir=DIR user executables [EPREFIX/bin]
1470: --sbindir=DIR system admin executables [EPREFIX/sbin]
1471: --libexecdir=DIR program executables [EPREFIX/libexec]
1472: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475: --libdir=DIR object code libraries [EPREFIX/lib]
1476: --includedir=DIR C header files [PREFIX/include]
1477: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480: --infodir=DIR info documentation [DATAROOTDIR/info]
1481: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482: --mandir=DIR man documentation [DATAROOTDIR/man]
1483: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1484: --htmldir=DIR html documentation [DOCDIR]
1485: --dvidir=DIR dvi documentation [DOCDIR]
1486: --pdfdir=DIR pdf documentation [DOCDIR]
1487: --psdir=DIR ps documentation [DOCDIR]
1488: _ACEOF
1489:
1490: cat <<\_ACEOF
1491:
1492: Program names:
1493: --program-prefix=PREFIX prepend PREFIX to installed program names
1494: --program-suffix=SUFFIX append SUFFIX to installed program names
1495: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496:
1497: System types:
1498: --build=BUILD configure for building on BUILD [guessed]
1499: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500: _ACEOF
1501: fi
1502:
1503: if test -n "$ac_init_help"; then
1504:
1505: cat <<\_ACEOF
1506:
1507: Optional Features:
1508: --disable-option-checking ignore unrecognized --enable/--with options
1509: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511: --disable-dependency-tracking speeds up one-time build
1512: --enable-dependency-tracking do not reject slow dependency extractors
1513: --enable-shared[=PKGS] build shared libraries [default=yes]
1514: --enable-static[=PKGS] build static libraries [default=yes]
1515: --enable-fast-install[=PKGS]
1516: optimize for fast installation [default=yes]
1517: --disable-libtool-lock avoid locking (might break parallel builds)
1518: --enable-rebuild-docs[=yes/no] rebuild some generated docs [default=yes]
1519: --enable-ipv6[=yes/no] enables compilation of IPv6 code [default=yes]
1520:
1521: Optional Packages:
1522: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524: --with-pic try to use only PIC/non-PIC objects [default=use
1525: both]
1526: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527: --with-c14n add the Canonicalization support (on)
1528: --with-catalog add the Catalog support (on)
1529: --with-debug add the debugging module (on)
1530: --with-docbook add Docbook SGML support (on)
1531: --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)
1532: --with-ftp add the FTP support (on)
1533: --with-history add history support to xmllint shell(off)
1534: --with-html add the HTML support (on)
1535: --with-html-dir=path path to base html directory, default
1536: $datadir/doc/html
1537: --with-html-subdir=path directory used under html-dir, default
1538: $PACKAGE-$VERSION/html
1539: --with-http add the HTTP support (on)
1540: --with-iconv[=DIR] add ICONV support (on)
1541: --with-icu add ICU support (off)
1542: --with-iso8859x add ISO8859X support if no iconv (on)
1543: --with-legacy add deprecated APIs for compatibility (on)
1544: --with-mem-debug add the memory debugging module (off)
1545: --with-minimum build a minimally sized library (off)
1546: --with-output add the serialization support (on)
1547: --with-pattern add the xmlPattern selection interface (on)
1548: --with-push add the PUSH parser interfaces (on)
1549: --with-python[=DIR] build Python bindings if found
1550: --with-reader add the xmlReader parsing interface (on)
1551: --with-readline=DIR use readline in DIR
1552: --with-regexps add Regular Expressions support (on)
1553: --with-run-debug add the runtime debugging module (off)
1554: --with-sax1 add the older SAX1 interface (on)
1555: --with-schemas add Relax-NG and Schemas support (on)
1556: --with-schematron add Schematron support (on)
1557: --with-threads add multithread support(on)
1558: --with-thread-alloc add per-thread memory(off)
1559: --with-tree add the DOM like tree manipulation APIs (on)
1560: --with-valid add the DTD validation support (on)
1561: --with-writer add the xmlWriter saving interface (on)
1562: --with-xinclude add the XInclude support (on)
1563: --with-xpath add the XPATH support (on)
1564: --with-xptr add the XPointer support (on)
1565: --with-modules add the dynamic modules support (on)
1566: --with-zlib[=DIR] use libz in DIR
1567: --with-coverage build for code coverage with GCC (off)
1568:
1569: Some influential environment variables:
1570: CC C compiler command
1571: CFLAGS C compiler flags
1572: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573: nonstandard directory <lib dir>
1574: LIBS libraries to pass to the linker, e.g. -l<library>
1575: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1576: you have headers in a nonstandard directory <include dir>
1577: CPP C preprocessor
1578:
1579: Use these variables to override the choices made by `configure' or to help
1580: it to find libraries and programs with nonstandard names/locations.
1581:
1582: Report bugs to the package provider.
1583: _ACEOF
1584: ac_status=$?
1585: fi
1586:
1587: if test "$ac_init_help" = "recursive"; then
1588: # If there are subdirs, report their specific --help.
1589: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590: test -d "$ac_dir" ||
1591: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592: continue
1593: ac_builddir=.
1594:
1595: case "$ac_dir" in
1596: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597: *)
1598: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599: # A ".." for each directory in $ac_dir_suffix.
1600: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601: case $ac_top_builddir_sub in
1602: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604: esac ;;
1605: esac
1606: ac_abs_top_builddir=$ac_pwd
1607: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608: # for backward compatibility:
1609: ac_top_builddir=$ac_top_build_prefix
1610:
1611: case $srcdir in
1612: .) # We are building in place.
1613: ac_srcdir=.
1614: ac_top_srcdir=$ac_top_builddir_sub
1615: ac_abs_top_srcdir=$ac_pwd ;;
1616: [\\/]* | ?:[\\/]* ) # Absolute name.
1617: ac_srcdir=$srcdir$ac_dir_suffix;
1618: ac_top_srcdir=$srcdir
1619: ac_abs_top_srcdir=$srcdir ;;
1620: *) # Relative name.
1621: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622: ac_top_srcdir=$ac_top_build_prefix$srcdir
1623: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1624: esac
1625: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1626:
1627: cd "$ac_dir" || { ac_status=$?; continue; }
1628: # Check for guested configure.
1629: if test -f "$ac_srcdir/configure.gnu"; then
1630: echo &&
1631: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632: elif test -f "$ac_srcdir/configure"; then
1633: echo &&
1634: $SHELL "$ac_srcdir/configure" --help=recursive
1635: else
1636: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637: fi || ac_status=$?
1638: cd "$ac_pwd" || { ac_status=$?; break; }
1639: done
1640: fi
1641:
1642: test -n "$ac_init_help" && exit $ac_status
1643: if $ac_init_version; then
1644: cat <<\_ACEOF
1645: configure
1646: generated by GNU Autoconf 2.66
1647:
1648: Copyright (C) 2010 Free Software Foundation, Inc.
1649: This configure script is free software; the Free Software Foundation
1650: gives unlimited permission to copy, distribute and modify it.
1651: _ACEOF
1652: exit
1653: fi
1654:
1655: ## ------------------------ ##
1656: ## Autoconf initialization. ##
1657: ## ------------------------ ##
1658:
1659: # ac_fn_c_try_compile LINENO
1660: # --------------------------
1661: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1662: ac_fn_c_try_compile ()
1663: {
1664: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665: rm -f conftest.$ac_objext
1666: if { { ac_try="$ac_compile"
1667: case "(($ac_try" in
1668: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669: *) ac_try_echo=$ac_try;;
1670: esac
1671: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672: $as_echo "$ac_try_echo"; } >&5
1673: (eval "$ac_compile") 2>conftest.err
1674: ac_status=$?
1675: if test -s conftest.err; then
1676: grep -v '^ *+' conftest.err >conftest.er1
1677: cat conftest.er1 >&5
1678: mv -f conftest.er1 conftest.err
1679: fi
1680: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681: test $ac_status = 0; } && {
1682: test -z "$ac_c_werror_flag" ||
1683: test ! -s conftest.err
1684: } && test -s conftest.$ac_objext; then :
1685: ac_retval=0
1686: else
1687: $as_echo "$as_me: failed program was:" >&5
1688: sed 's/^/| /' conftest.$ac_ext >&5
1689:
1690: ac_retval=1
1691: fi
1692: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693: as_fn_set_status $ac_retval
1694:
1695: } # ac_fn_c_try_compile
1696:
1697: # ac_fn_c_try_cpp LINENO
1698: # ----------------------
1699: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1700: ac_fn_c_try_cpp ()
1701: {
1702: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703: if { { ac_try="$ac_cpp conftest.$ac_ext"
1704: case "(($ac_try" in
1705: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706: *) ac_try_echo=$ac_try;;
1707: esac
1708: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709: $as_echo "$ac_try_echo"; } >&5
1710: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1711: ac_status=$?
1712: if test -s conftest.err; then
1713: grep -v '^ *+' conftest.err >conftest.er1
1714: cat conftest.er1 >&5
1715: mv -f conftest.er1 conftest.err
1716: fi
1717: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718: test $ac_status = 0; } >/dev/null && {
1719: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1720: test ! -s conftest.err
1721: }; then :
1722: ac_retval=0
1723: else
1724: $as_echo "$as_me: failed program was:" >&5
1725: sed 's/^/| /' conftest.$ac_ext >&5
1726:
1727: ac_retval=1
1728: fi
1729: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730: as_fn_set_status $ac_retval
1731:
1732: } # ac_fn_c_try_cpp
1733:
1734: # ac_fn_c_try_run LINENO
1735: # ----------------------
1736: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737: # that executables *can* be run.
1738: ac_fn_c_try_run ()
1739: {
1740: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741: if { { ac_try="$ac_link"
1742: case "(($ac_try" in
1743: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744: *) ac_try_echo=$ac_try;;
1745: esac
1746: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747: $as_echo "$ac_try_echo"; } >&5
1748: (eval "$ac_link") 2>&5
1749: ac_status=$?
1750: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752: { { case "(($ac_try" in
1753: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754: *) ac_try_echo=$ac_try;;
1755: esac
1756: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757: $as_echo "$ac_try_echo"; } >&5
1758: (eval "$ac_try") 2>&5
1759: ac_status=$?
1760: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761: test $ac_status = 0; }; }; then :
1762: ac_retval=0
1763: else
1764: $as_echo "$as_me: program exited with status $ac_status" >&5
1765: $as_echo "$as_me: failed program was:" >&5
1766: sed 's/^/| /' conftest.$ac_ext >&5
1767:
1768: ac_retval=$ac_status
1769: fi
1770: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772: as_fn_set_status $ac_retval
1773:
1774: } # ac_fn_c_try_run
1775:
1776: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1777: # -------------------------------------------------------
1778: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1779: # the include files in INCLUDES and setting the cache variable VAR
1780: # accordingly.
1781: ac_fn_c_check_header_mongrel ()
1782: {
1783: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784: if eval "test \"\${$3+set}\"" = set; then :
1785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786: $as_echo_n "checking for $2... " >&6; }
1787: if eval "test \"\${$3+set}\"" = set; then :
1788: $as_echo_n "(cached) " >&6
1789: fi
1790: eval ac_res=\$$3
1791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792: $as_echo "$ac_res" >&6; }
1793: else
1794: # Is the header compilable?
1795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1796: $as_echo_n "checking $2 usability... " >&6; }
1797: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798: /* end confdefs.h. */
1799: $4
1800: #include <$2>
1801: _ACEOF
1802: if ac_fn_c_try_compile "$LINENO"; then :
1803: ac_header_compiler=yes
1804: else
1805: ac_header_compiler=no
1806: fi
1807: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1809: $as_echo "$ac_header_compiler" >&6; }
1810:
1811: # Is the header present?
1812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1813: $as_echo_n "checking $2 presence... " >&6; }
1814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815: /* end confdefs.h. */
1816: #include <$2>
1817: _ACEOF
1818: if ac_fn_c_try_cpp "$LINENO"; then :
1819: ac_header_preproc=yes
1820: else
1821: ac_header_preproc=no
1822: fi
1823: rm -f conftest.err conftest.$ac_ext
1824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1825: $as_echo "$ac_header_preproc" >&6; }
1826:
1827: # So? What about this header?
1828: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1829: yes:no: )
1830: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1831: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1832: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834: ;;
1835: no:yes:* )
1836: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1837: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1838: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1839: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1840: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1841: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1842: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1843: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1844: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846: ;;
1847: esac
1848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849: $as_echo_n "checking for $2... " >&6; }
1850: if eval "test \"\${$3+set}\"" = set; then :
1851: $as_echo_n "(cached) " >&6
1852: else
1853: eval "$3=\$ac_header_compiler"
1854: fi
1855: eval ac_res=\$$3
1856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857: $as_echo "$ac_res" >&6; }
1858: fi
1859: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860:
1861: } # ac_fn_c_check_header_mongrel
1862:
1863: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864: # -------------------------------------------------------
1865: # Tests whether HEADER exists and can be compiled using the include files in
1866: # INCLUDES, setting the cache variable VAR accordingly.
1867: ac_fn_c_check_header_compile ()
1868: {
1869: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871: $as_echo_n "checking for $2... " >&6; }
1872: if eval "test \"\${$3+set}\"" = set; then :
1873: $as_echo_n "(cached) " >&6
1874: else
1875: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876: /* end confdefs.h. */
1877: $4
1878: #include <$2>
1879: _ACEOF
1880: if ac_fn_c_try_compile "$LINENO"; then :
1881: eval "$3=yes"
1882: else
1883: eval "$3=no"
1884: fi
1885: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886: fi
1887: eval ac_res=\$$3
1888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889: $as_echo "$ac_res" >&6; }
1890: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891:
1892: } # ac_fn_c_check_header_compile
1893:
1894: # ac_fn_c_try_link LINENO
1895: # -----------------------
1896: # Try to link conftest.$ac_ext, and return whether this succeeded.
1897: ac_fn_c_try_link ()
1898: {
1899: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900: rm -f conftest.$ac_objext conftest$ac_exeext
1901: if { { ac_try="$ac_link"
1902: case "(($ac_try" in
1903: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904: *) ac_try_echo=$ac_try;;
1905: esac
1906: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907: $as_echo "$ac_try_echo"; } >&5
1908: (eval "$ac_link") 2>conftest.err
1909: ac_status=$?
1910: if test -s conftest.err; then
1911: grep -v '^ *+' conftest.err >conftest.er1
1912: cat conftest.er1 >&5
1913: mv -f conftest.er1 conftest.err
1914: fi
1915: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916: test $ac_status = 0; } && {
1917: test -z "$ac_c_werror_flag" ||
1918: test ! -s conftest.err
1919: } && test -s conftest$ac_exeext && {
1920: test "$cross_compiling" = yes ||
1921: $as_test_x conftest$ac_exeext
1922: }; then :
1923: ac_retval=0
1924: else
1925: $as_echo "$as_me: failed program was:" >&5
1926: sed 's/^/| /' conftest.$ac_ext >&5
1927:
1928: ac_retval=1
1929: fi
1930: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932: # interfere with the next link command; also delete a directory that is
1933: # left behind by Apple's compiler. We do this before executing the actions.
1934: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936: as_fn_set_status $ac_retval
1937:
1938: } # ac_fn_c_try_link
1939:
1940: # ac_fn_c_check_func LINENO FUNC VAR
1941: # ----------------------------------
1942: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1943: ac_fn_c_check_func ()
1944: {
1945: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947: $as_echo_n "checking for $2... " >&6; }
1948: if eval "test \"\${$3+set}\"" = set; then :
1949: $as_echo_n "(cached) " >&6
1950: else
1951: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952: /* end confdefs.h. */
1953: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1954: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1955: #define $2 innocuous_$2
1956:
1957: /* System header to define __stub macros and hopefully few prototypes,
1958: which can conflict with char $2 (); below.
1959: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1960: <limits.h> exists even on freestanding compilers. */
1961:
1962: #ifdef __STDC__
1963: # include <limits.h>
1964: #else
1965: # include <assert.h>
1966: #endif
1967:
1968: #undef $2
1969:
1970: /* Override any GCC internal prototype to avoid an error.
1971: Use char because int might match the return type of a GCC
1972: builtin and then its argument prototype would still apply. */
1973: #ifdef __cplusplus
1974: extern "C"
1975: #endif
1976: char $2 ();
1977: /* The GNU C library defines this for functions which it implements
1978: to always fail with ENOSYS. Some functions are actually named
1979: something starting with __ and the normal name is an alias. */
1980: #if defined __stub_$2 || defined __stub___$2
1981: choke me
1982: #endif
1983:
1984: int
1985: main ()
1986: {
1987: return $2 ();
1988: ;
1989: return 0;
1990: }
1991: _ACEOF
1992: if ac_fn_c_try_link "$LINENO"; then :
1993: eval "$3=yes"
1994: else
1995: eval "$3=no"
1996: fi
1997: rm -f core conftest.err conftest.$ac_objext \
1998: conftest$ac_exeext conftest.$ac_ext
1999: fi
2000: eval ac_res=\$$3
2001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002: $as_echo "$ac_res" >&6; }
2003: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004:
2005: } # ac_fn_c_check_func
2006: cat >config.log <<_ACEOF
2007: This file contains any messages produced by compilers while
2008: running configure, to aid debugging if configure makes a mistake.
2009:
2010: It was created by $as_me, which was
2011: generated by GNU Autoconf 2.66. Invocation command line was
2012:
2013: $ $0 $@
2014:
2015: _ACEOF
2016: exec 5>>config.log
2017: {
2018: cat <<_ASUNAME
2019: ## --------- ##
2020: ## Platform. ##
2021: ## --------- ##
2022:
2023: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028:
2029: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031:
2032: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2033: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2034: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2036: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2037: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2038: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2039:
2040: _ASUNAME
2041:
2042: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043: for as_dir in $PATH
2044: do
2045: IFS=$as_save_IFS
2046: test -z "$as_dir" && as_dir=.
2047: $as_echo "PATH: $as_dir"
2048: done
2049: IFS=$as_save_IFS
2050:
2051: } >&5
2052:
2053: cat >&5 <<_ACEOF
2054:
2055:
2056: ## ----------- ##
2057: ## Core tests. ##
2058: ## ----------- ##
2059:
2060: _ACEOF
2061:
2062:
2063: # Keep a trace of the command line.
2064: # Strip out --no-create and --no-recursion so they do not pile up.
2065: # Strip out --silent because we don't want to record it for future runs.
2066: # Also quote any args containing shell meta-characters.
2067: # Make two passes to allow for proper duplicate-argument suppression.
2068: ac_configure_args=
2069: ac_configure_args0=
2070: ac_configure_args1=
2071: ac_must_keep_next=false
2072: for ac_pass in 1 2
2073: do
2074: for ac_arg
2075: do
2076: case $ac_arg in
2077: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079: | -silent | --silent | --silen | --sile | --sil)
2080: continue ;;
2081: *\'*)
2082: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083: esac
2084: case $ac_pass in
2085: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2086: 2)
2087: as_fn_append ac_configure_args1 " '$ac_arg'"
2088: if test $ac_must_keep_next = true; then
2089: ac_must_keep_next=false # Got value, back to normal.
2090: else
2091: case $ac_arg in
2092: *=* | --config-cache | -C | -disable-* | --disable-* \
2093: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095: | -with-* | --with-* | -without-* | --without-* | --x)
2096: case "$ac_configure_args0 " in
2097: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098: esac
2099: ;;
2100: -* ) ac_must_keep_next=true ;;
2101: esac
2102: fi
2103: as_fn_append ac_configure_args " '$ac_arg'"
2104: ;;
2105: esac
2106: done
2107: done
2108: { ac_configure_args0=; unset ac_configure_args0;}
2109: { ac_configure_args1=; unset ac_configure_args1;}
2110:
2111: # When interrupted or exit'd, cleanup temporary files, and complete
2112: # config.log. We remove comments because anyway the quotes in there
2113: # would cause problems or look ugly.
2114: # WARNING: Use '\'' to represent an apostrophe within the trap.
2115: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2116: trap 'exit_status=$?
2117: # Save into config.log some information that might help in debugging.
2118: {
2119: echo
2120:
2121: $as_echo "## ---------------- ##
2122: ## Cache variables. ##
2123: ## ---------------- ##"
2124: echo
2125: # The following way of writing the cache mishandles newlines in values,
2126: (
2127: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2128: eval ac_val=\$$ac_var
2129: case $ac_val in #(
2130: *${as_nl}*)
2131: case $ac_var in #(
2132: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2133: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2134: esac
2135: case $ac_var in #(
2136: _ | IFS | as_nl) ;; #(
2137: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2138: *) { eval $ac_var=; unset $ac_var;} ;;
2139: esac ;;
2140: esac
2141: done
2142: (set) 2>&1 |
2143: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2144: *${as_nl}ac_space=\ *)
2145: sed -n \
2146: "s/'\''/'\''\\\\'\'''\''/g;
2147: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2148: ;; #(
2149: *)
2150: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2151: ;;
2152: esac |
2153: sort
2154: )
2155: echo
2156:
2157: $as_echo "## ----------------- ##
2158: ## Output variables. ##
2159: ## ----------------- ##"
2160: echo
2161: for ac_var in $ac_subst_vars
2162: do
2163: eval ac_val=\$$ac_var
2164: case $ac_val in
2165: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166: esac
2167: $as_echo "$ac_var='\''$ac_val'\''"
2168: done | sort
2169: echo
2170:
2171: if test -n "$ac_subst_files"; then
2172: $as_echo "## ------------------- ##
2173: ## File substitutions. ##
2174: ## ------------------- ##"
2175: echo
2176: for ac_var in $ac_subst_files
2177: do
2178: eval ac_val=\$$ac_var
2179: case $ac_val in
2180: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181: esac
2182: $as_echo "$ac_var='\''$ac_val'\''"
2183: done | sort
2184: echo
2185: fi
2186:
2187: if test -s confdefs.h; then
2188: $as_echo "## ----------- ##
2189: ## confdefs.h. ##
2190: ## ----------- ##"
2191: echo
2192: cat confdefs.h
2193: echo
2194: fi
2195: test "$ac_signal" != 0 &&
2196: $as_echo "$as_me: caught signal $ac_signal"
2197: $as_echo "$as_me: exit $exit_status"
2198: } >&5
2199: rm -f core *.core core.conftest.* &&
2200: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2201: exit $exit_status
2202: ' 0
2203: for ac_signal in 1 2 13 15; do
2204: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2205: done
2206: ac_signal=0
2207:
2208: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2209: rm -f -r conftest* confdefs.h
2210:
2211: $as_echo "/* confdefs.h */" > confdefs.h
2212:
2213: # Predefined preprocessor variables.
2214:
2215: cat >>confdefs.h <<_ACEOF
2216: #define PACKAGE_NAME "$PACKAGE_NAME"
2217: _ACEOF
2218:
2219: cat >>confdefs.h <<_ACEOF
2220: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221: _ACEOF
2222:
2223: cat >>confdefs.h <<_ACEOF
2224: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2225: _ACEOF
2226:
2227: cat >>confdefs.h <<_ACEOF
2228: #define PACKAGE_STRING "$PACKAGE_STRING"
2229: _ACEOF
2230:
2231: cat >>confdefs.h <<_ACEOF
2232: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233: _ACEOF
2234:
2235: cat >>confdefs.h <<_ACEOF
2236: #define PACKAGE_URL "$PACKAGE_URL"
2237: _ACEOF
2238:
2239:
2240: # Let the site file select an alternate cache file if it wants to.
2241: # Prefer an explicitly selected file to automatically selected ones.
2242: ac_site_file1=NONE
2243: ac_site_file2=NONE
2244: if test -n "$CONFIG_SITE"; then
2245: # We do not want a PATH search for config.site.
2246: case $CONFIG_SITE in #((
2247: -*) ac_site_file1=./$CONFIG_SITE;;
2248: */*) ac_site_file1=$CONFIG_SITE;;
2249: *) ac_site_file1=./$CONFIG_SITE;;
2250: esac
2251: elif test "x$prefix" != xNONE; then
2252: ac_site_file1=$prefix/share/config.site
2253: ac_site_file2=$prefix/etc/config.site
2254: else
2255: ac_site_file1=$ac_default_prefix/share/config.site
2256: ac_site_file2=$ac_default_prefix/etc/config.site
2257: fi
2258: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2259: do
2260: test "x$ac_site_file" = xNONE && continue
2261: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2262: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2263: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2264: sed 's/^/| /' "$ac_site_file" >&5
2265: . "$ac_site_file" \
2266: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268: as_fn_error $? "failed to load site script $ac_site_file
2269: See \`config.log' for more details" "$LINENO" 5; }
2270: fi
2271: done
2272:
2273: if test -r "$cache_file"; then
2274: # Some versions of bash will fail to source /dev/null (special files
2275: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2276: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2278: $as_echo "$as_me: loading cache $cache_file" >&6;}
2279: case $cache_file in
2280: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2281: *) . "./$cache_file";;
2282: esac
2283: fi
2284: else
2285: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2286: $as_echo "$as_me: creating cache $cache_file" >&6;}
2287: >$cache_file
2288: fi
2289:
2290: # Check that the precious variables saved in the cache have kept the same
2291: # value.
2292: ac_cache_corrupted=false
2293: for ac_var in $ac_precious_vars; do
2294: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2295: eval ac_new_set=\$ac_env_${ac_var}_set
2296: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2297: eval ac_new_val=\$ac_env_${ac_var}_value
2298: case $ac_old_set,$ac_new_set in
2299: set,)
2300: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2301: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2302: ac_cache_corrupted=: ;;
2303: ,set)
2304: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2305: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2306: ac_cache_corrupted=: ;;
2307: ,);;
2308: *)
2309: if test "x$ac_old_val" != "x$ac_new_val"; then
2310: # differences in whitespace do not lead to failure.
2311: ac_old_val_w=`echo x $ac_old_val`
2312: ac_new_val_w=`echo x $ac_new_val`
2313: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2314: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2315: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2316: ac_cache_corrupted=:
2317: else
2318: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2319: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2320: eval $ac_var=\$ac_old_val
2321: fi
2322: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2323: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2324: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2325: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2326: fi;;
2327: esac
2328: # Pass precious variables to config.status.
2329: if test "$ac_new_set" = set; then
2330: case $ac_new_val in
2331: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2332: *) ac_arg=$ac_var=$ac_new_val ;;
2333: esac
2334: case " $ac_configure_args " in
2335: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2336: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2337: esac
2338: fi
2339: done
2340: if $ac_cache_corrupted; then
2341: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2342: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2343: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2344: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2345: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2346: fi
2347: ## -------------------- ##
2348: ## Main body of script. ##
2349: ## -------------------- ##
2350:
2351: ac_ext=c
2352: ac_cpp='$CPP $CPPFLAGS'
2353: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356:
2357:
2358: ac_config_headers="$ac_config_headers config.h"
2359:
2360:
2361: ac_aux_dir=
2362: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2363: if test -f "$ac_dir/install-sh"; then
2364: ac_aux_dir=$ac_dir
2365: ac_install_sh="$ac_aux_dir/install-sh -c"
2366: break
2367: elif test -f "$ac_dir/install.sh"; then
2368: ac_aux_dir=$ac_dir
2369: ac_install_sh="$ac_aux_dir/install.sh -c"
2370: break
2371: elif test -f "$ac_dir/shtool"; then
2372: ac_aux_dir=$ac_dir
2373: ac_install_sh="$ac_aux_dir/shtool install -c"
2374: break
2375: fi
2376: done
2377: if test -z "$ac_aux_dir"; then
2378: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2379: fi
2380:
2381: # These three variables are undocumented and unsupported,
2382: # and are intended to be withdrawn in a future Autoconf release.
2383: # They can cause serious problems if a builder's source tree is in a directory
2384: # whose full name contains unusual characters.
2385: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2386: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2387: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388:
2389:
2390: # Make sure we can run config.sub.
2391: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2392: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2393:
2394: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2395: $as_echo_n "checking build system type... " >&6; }
2396: if test "${ac_cv_build+set}" = set; then :
2397: $as_echo_n "(cached) " >&6
2398: else
2399: ac_build_alias=$build_alias
2400: test "x$ac_build_alias" = x &&
2401: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2402: test "x$ac_build_alias" = x &&
2403: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2404: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2405: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2406:
2407: fi
2408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2409: $as_echo "$ac_cv_build" >&6; }
2410: case $ac_cv_build in
2411: *-*-*) ;;
2412: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2413: esac
2414: build=$ac_cv_build
2415: ac_save_IFS=$IFS; IFS='-'
2416: set x $ac_cv_build
2417: shift
2418: build_cpu=$1
2419: build_vendor=$2
2420: shift; shift
2421: # Remember, the first character of IFS is used to create $*,
2422: # except with old shells:
2423: build_os=$*
2424: IFS=$ac_save_IFS
2425: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426:
2427:
2428: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2429: $as_echo_n "checking host system type... " >&6; }
2430: if test "${ac_cv_host+set}" = set; then :
2431: $as_echo_n "(cached) " >&6
2432: else
2433: if test "x$host_alias" = x; then
2434: ac_cv_host=$ac_cv_build
2435: else
2436: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2437: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2438: fi
2439:
2440: fi
2441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2442: $as_echo "$ac_cv_host" >&6; }
2443: case $ac_cv_host in
2444: *-*-*) ;;
2445: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2446: esac
2447: host=$ac_cv_host
2448: ac_save_IFS=$IFS; IFS='-'
2449: set x $ac_cv_host
2450: shift
2451: host_cpu=$1
2452: host_vendor=$2
2453: shift; shift
2454: # Remember, the first character of IFS is used to create $*,
2455: # except with old shells:
2456: host_os=$*
2457: IFS=$ac_save_IFS
2458: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2459:
2460:
2461:
2462: LIBXML_MAJOR_VERSION=2
2463: LIBXML_MINOR_VERSION=7
2464: LIBXML_MICRO_VERSION=8
2465: LIBXML_MICRO_VERSION_SUFFIX=
2466: LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2467: LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2468:
2469: LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2470:
2471: if test -f CVS/Entries ; then
2472: extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
2473: echo extra=$extra
2474: if test "$extra" != ""
2475: then
2476: LIBXML_VERSION_EXTRA="-CVS$extra"
2477: fi
2478: else if test -d .svn ; then
2479: extra=`svn info | grep Revision | sed 's+Revision: ++'`
2480: echo extra=$extra
2481: if test "$extra" != ""
2482: then
2483: LIBXML_VERSION_EXTRA="-SVN$extra"
2484: fi
2485: else if test -d .git ; then
2486: extra=`git describe | sed 's+LIBXML[0-9.]*-++'`
2487: echo extra=$extra
2488: if test "$extra" != ""
2489: then
2490: LIBXML_VERSION_EXTRA="-GIT$extra"
2491: fi
2492: fi
2493: fi
2494: fi
2495:
2496:
2497:
2498:
2499:
2500:
2501:
2502:
2503: VERSION=${LIBXML_VERSION}
2504:
2505: am__api_version='1.11'
2506:
2507: # Find a good install program. We prefer a C program (faster),
2508: # so one script is as good as another. But avoid the broken or
2509: # incompatible versions:
2510: # SysV /etc/install, /usr/sbin/install
2511: # SunOS /usr/etc/install
2512: # IRIX /sbin/install
2513: # AIX /bin/install
2514: # AmigaOS /C/install, which installs bootblocks on floppy discs
2515: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2516: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2517: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2518: # OS/2's system install, which has a completely different semantic
2519: # ./install, which can be erroneously created by make from ./install.sh.
2520: # Reject install programs that cannot install multiple files.
2521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2522: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2523: if test -z "$INSTALL"; then
2524: if test "${ac_cv_path_install+set}" = set; then :
2525: $as_echo_n "(cached) " >&6
2526: else
2527: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528: for as_dir in $PATH
2529: do
2530: IFS=$as_save_IFS
2531: test -z "$as_dir" && as_dir=.
2532: # Account for people who put trailing slashes in PATH elements.
2533: case $as_dir/ in #((
2534: ./ | .// | /[cC]/* | \
2535: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2536: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2537: /usr/ucb/* ) ;;
2538: *)
2539: # OSF1 and SCO ODT 3.0 have their own names for install.
2540: # Don't use installbsd from OSF since it installs stuff as root
2541: # by default.
2542: for ac_prog in ginstall scoinst install; do
2543: for ac_exec_ext in '' $ac_executable_extensions; do
2544: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2545: if test $ac_prog = install &&
2546: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547: # AIX install. It has an incompatible calling convention.
2548: :
2549: elif test $ac_prog = install &&
2550: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551: # program-specific install script used by HP pwplus--don't use.
2552: :
2553: else
2554: rm -rf conftest.one conftest.two conftest.dir
2555: echo one > conftest.one
2556: echo two > conftest.two
2557: mkdir conftest.dir
2558: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2559: test -s conftest.one && test -s conftest.two &&
2560: test -s conftest.dir/conftest.one &&
2561: test -s conftest.dir/conftest.two
2562: then
2563: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2564: break 3
2565: fi
2566: fi
2567: fi
2568: done
2569: done
2570: ;;
2571: esac
2572:
2573: done
2574: IFS=$as_save_IFS
2575:
2576: rm -rf conftest.one conftest.two conftest.dir
2577:
2578: fi
2579: if test "${ac_cv_path_install+set}" = set; then
2580: INSTALL=$ac_cv_path_install
2581: else
2582: # As a last resort, use the slow shell script. Don't cache a
2583: # value for INSTALL within a source directory, because that will
2584: # break other packages using the cache if that directory is
2585: # removed, or if the value is a relative name.
2586: INSTALL=$ac_install_sh
2587: fi
2588: fi
2589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2590: $as_echo "$INSTALL" >&6; }
2591:
2592: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2593: # It thinks the first close brace ends the variable substitution.
2594: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2595:
2596: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2597:
2598: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2599:
2600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2601: $as_echo_n "checking whether build environment is sane... " >&6; }
2602: # Just in case
2603: sleep 1
2604: echo timestamp > conftest.file
2605: # Reject unsafe characters in $srcdir or the absolute working directory
2606: # name. Accept space and tab only in the latter.
2607: am_lf='
2608: '
2609: case `pwd` in
2610: *[\\\"\#\$\&\'\`$am_lf]*)
2611: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2612: esac
2613: case $srcdir in
2614: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2615: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2616: esac
2617:
2618: # Do `set' in a subshell so we don't clobber the current shell's
2619: # arguments. Must try -L first in case configure is actually a
2620: # symlink; some systems play weird games with the mod time of symlinks
2621: # (eg FreeBSD returns the mod time of the symlink's containing
2622: # directory).
2623: if (
2624: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2625: if test "$*" = "X"; then
2626: # -L didn't work.
2627: set X `ls -t "$srcdir/configure" conftest.file`
2628: fi
2629: rm -f conftest.file
2630: if test "$*" != "X $srcdir/configure conftest.file" \
2631: && test "$*" != "X conftest.file $srcdir/configure"; then
2632:
2633: # If neither matched, then we have a broken ls. This can happen
2634: # if, for instance, CONFIG_SHELL is bash and it inherits a
2635: # broken ls alias from the environment. This has actually
2636: # happened. Such a system could not be considered "sane".
2637: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2638: alias in your environment" "$LINENO" 5
2639: fi
2640:
2641: test "$2" = conftest.file
2642: )
2643: then
2644: # Ok.
2645: :
2646: else
2647: as_fn_error $? "newly created file is older than distributed files!
2648: Check your system clock" "$LINENO" 5
2649: fi
2650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651: $as_echo "yes" >&6; }
2652: test "$program_prefix" != NONE &&
2653: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2654: # Use a double $ so make ignores it.
2655: test "$program_suffix" != NONE &&
2656: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2657: # Double any \ or $.
2658: # By default was `s,x,x', remove it if useless.
2659: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2660: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2661:
2662: # expand $ac_aux_dir to an absolute path
2663: am_aux_dir=`cd $ac_aux_dir && pwd`
2664:
2665: if test x"${MISSING+set}" != xset; then
2666: case $am_aux_dir in
2667: *\ * | *\ *)
2668: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2669: *)
2670: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2671: esac
2672: fi
2673: # Use eval to expand $SHELL
2674: if eval "$MISSING --run true"; then
2675: am_missing_run="$MISSING --run "
2676: else
2677: am_missing_run=
2678: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2679: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2680: fi
2681:
2682: if test x"${install_sh}" != xset; then
2683: case $am_aux_dir in
2684: *\ * | *\ *)
2685: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2686: *)
2687: install_sh="\${SHELL} $am_aux_dir/install-sh"
2688: esac
2689: fi
2690:
2691: # Installed binaries are usually stripped using `strip' when the user
2692: # run `make install-strip'. However `strip' might not be the right
2693: # tool to use in cross-compilation environments, therefore Automake
2694: # will honor the `STRIP' environment variable to overrule this program.
2695: if test "$cross_compiling" != no; then
2696: if test -n "$ac_tool_prefix"; then
2697: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2698: set dummy ${ac_tool_prefix}strip; ac_word=$2
2699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700: $as_echo_n "checking for $ac_word... " >&6; }
2701: if test "${ac_cv_prog_STRIP+set}" = set; then :
2702: $as_echo_n "(cached) " >&6
2703: else
2704: if test -n "$STRIP"; then
2705: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2706: else
2707: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708: for as_dir in $PATH
2709: do
2710: IFS=$as_save_IFS
2711: test -z "$as_dir" && as_dir=.
2712: for ac_exec_ext in '' $ac_executable_extensions; do
2713: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2715: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716: break 2
2717: fi
2718: done
2719: done
2720: IFS=$as_save_IFS
2721:
2722: fi
2723: fi
2724: STRIP=$ac_cv_prog_STRIP
2725: if test -n "$STRIP"; then
2726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2727: $as_echo "$STRIP" >&6; }
2728: else
2729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730: $as_echo "no" >&6; }
2731: fi
2732:
2733:
2734: fi
2735: if test -z "$ac_cv_prog_STRIP"; then
2736: ac_ct_STRIP=$STRIP
2737: # Extract the first word of "strip", so it can be a program name with args.
2738: set dummy strip; ac_word=$2
2739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740: $as_echo_n "checking for $ac_word... " >&6; }
2741: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2742: $as_echo_n "(cached) " >&6
2743: else
2744: if test -n "$ac_ct_STRIP"; then
2745: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2746: else
2747: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748: for as_dir in $PATH
2749: do
2750: IFS=$as_save_IFS
2751: test -z "$as_dir" && as_dir=.
2752: for ac_exec_ext in '' $ac_executable_extensions; do
2753: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754: ac_cv_prog_ac_ct_STRIP="strip"
2755: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756: break 2
2757: fi
2758: done
2759: done
2760: IFS=$as_save_IFS
2761:
2762: fi
2763: fi
2764: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2765: if test -n "$ac_ct_STRIP"; then
2766: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2767: $as_echo "$ac_ct_STRIP" >&6; }
2768: else
2769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770: $as_echo "no" >&6; }
2771: fi
2772:
2773: if test "x$ac_ct_STRIP" = x; then
2774: STRIP=":"
2775: else
2776: case $cross_compiling:$ac_tool_warned in
2777: yes:)
2778: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2779: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2780: ac_tool_warned=yes ;;
2781: esac
2782: STRIP=$ac_ct_STRIP
2783: fi
2784: else
2785: STRIP="$ac_cv_prog_STRIP"
2786: fi
2787:
2788: fi
2789: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2790:
2791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2792: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2793: if test -z "$MKDIR_P"; then
2794: if test "${ac_cv_path_mkdir+set}" = set; then :
2795: $as_echo_n "(cached) " >&6
2796: else
2797: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2799: do
2800: IFS=$as_save_IFS
2801: test -z "$as_dir" && as_dir=.
2802: for ac_prog in mkdir gmkdir; do
2803: for ac_exec_ext in '' $ac_executable_extensions; do
2804: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2805: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2806: 'mkdir (GNU coreutils) '* | \
2807: 'mkdir (coreutils) '* | \
2808: 'mkdir (fileutils) '4.1*)
2809: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2810: break 3;;
2811: esac
2812: done
2813: done
2814: done
2815: IFS=$as_save_IFS
2816:
2817: fi
2818:
2819: test -d ./--version && rmdir ./--version
2820: if test "${ac_cv_path_mkdir+set}" = set; then
2821: MKDIR_P="$ac_cv_path_mkdir -p"
2822: else
2823: # As a last resort, use the slow shell script. Don't cache a
2824: # value for MKDIR_P within a source directory, because that will
2825: # break other packages using the cache if that directory is
2826: # removed, or if the value is a relative name.
2827: MKDIR_P="$ac_install_sh -d"
2828: fi
2829: fi
2830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2831: $as_echo "$MKDIR_P" >&6; }
2832:
2833: mkdir_p="$MKDIR_P"
2834: case $mkdir_p in
2835: [\\/$]* | ?:[\\/]*) ;;
2836: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2837: esac
2838:
2839: for ac_prog in gawk mawk nawk awk
2840: do
2841: # Extract the first word of "$ac_prog", so it can be a program name with args.
2842: set dummy $ac_prog; ac_word=$2
2843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844: $as_echo_n "checking for $ac_word... " >&6; }
2845: if test "${ac_cv_prog_AWK+set}" = set; then :
2846: $as_echo_n "(cached) " >&6
2847: else
2848: if test -n "$AWK"; then
2849: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2850: else
2851: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852: for as_dir in $PATH
2853: do
2854: IFS=$as_save_IFS
2855: test -z "$as_dir" && as_dir=.
2856: for ac_exec_ext in '' $ac_executable_extensions; do
2857: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858: ac_cv_prog_AWK="$ac_prog"
2859: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860: break 2
2861: fi
2862: done
2863: done
2864: IFS=$as_save_IFS
2865:
2866: fi
2867: fi
2868: AWK=$ac_cv_prog_AWK
2869: if test -n "$AWK"; then
2870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2871: $as_echo "$AWK" >&6; }
2872: else
2873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874: $as_echo "no" >&6; }
2875: fi
2876:
2877:
2878: test -n "$AWK" && break
2879: done
2880:
2881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2882: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2883: set x ${MAKE-make}
2884: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2885: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2886: $as_echo_n "(cached) " >&6
2887: else
2888: cat >conftest.make <<\_ACEOF
2889: SHELL = /bin/sh
2890: all:
2891: @echo '@@@%%%=$(MAKE)=@@@%%%'
2892: _ACEOF
2893: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2894: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2895: *@@@%%%=?*=@@@%%%*)
2896: eval ac_cv_prog_make_${ac_make}_set=yes;;
2897: *)
2898: eval ac_cv_prog_make_${ac_make}_set=no;;
2899: esac
2900: rm -f conftest.make
2901: fi
2902: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2904: $as_echo "yes" >&6; }
2905: SET_MAKE=
2906: else
2907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908: $as_echo "no" >&6; }
2909: SET_MAKE="MAKE=${MAKE-make}"
2910: fi
2911:
2912: rm -rf .tst 2>/dev/null
2913: mkdir .tst 2>/dev/null
2914: if test -d .tst; then
2915: am__leading_dot=.
2916: else
2917: am__leading_dot=_
2918: fi
2919: rmdir .tst 2>/dev/null
2920:
2921: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2922: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2923: # is not polluted with repeated "-I."
2924: am__isrc=' -I$(srcdir)'
2925: # test to see if srcdir already configured
2926: if test -f $srcdir/config.status; then
2927: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2928: fi
2929: fi
2930:
2931: # test whether we have cygpath
2932: if test -z "$CYGPATH_W"; then
2933: if (cygpath --version) >/dev/null 2>/dev/null; then
2934: CYGPATH_W='cygpath -w'
2935: else
2936: CYGPATH_W=echo
2937: fi
2938: fi
2939:
2940:
2941: # Define the identity of the package.
2942: PACKAGE=libxml2
2943: VERSION=$VERSION
2944:
2945:
2946: cat >>confdefs.h <<_ACEOF
2947: #define PACKAGE "$PACKAGE"
2948: _ACEOF
2949:
2950:
2951: cat >>confdefs.h <<_ACEOF
2952: #define VERSION "$VERSION"
2953: _ACEOF
2954:
2955: # Some tools Automake needs.
2956:
2957: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2958:
2959:
2960: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2961:
2962:
2963: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2964:
2965:
2966: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2967:
2968:
2969: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2970:
2971: # We need awk for the "check" target. The system "awk" is bad on
2972: # some platforms.
2973: # Always define AMTAR for backward compatibility.
2974:
2975: AMTAR=${AMTAR-"${am_missing_run}tar"}
2976:
2977: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2978:
2979:
2980:
2981:
2982:
2983:
2984: ac_ext=c
2985: ac_cpp='$CPP $CPPFLAGS'
2986: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989: if test -n "$ac_tool_prefix"; then
2990: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993: $as_echo_n "checking for $ac_word... " >&6; }
2994: if test "${ac_cv_prog_CC+set}" = set; then :
2995: $as_echo_n "(cached) " >&6
2996: else
2997: if test -n "$CC"; then
2998: ac_cv_prog_CC="$CC" # Let the user override the test.
2999: else
3000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001: for as_dir in $PATH
3002: do
3003: IFS=$as_save_IFS
3004: test -z "$as_dir" && as_dir=.
3005: for ac_exec_ext in '' $ac_executable_extensions; do
3006: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009: break 2
3010: fi
3011: done
3012: done
3013: IFS=$as_save_IFS
3014:
3015: fi
3016: fi
3017: CC=$ac_cv_prog_CC
3018: if test -n "$CC"; then
3019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020: $as_echo "$CC" >&6; }
3021: else
3022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023: $as_echo "no" >&6; }
3024: fi
3025:
3026:
3027: fi
3028: if test -z "$ac_cv_prog_CC"; then
3029: ac_ct_CC=$CC
3030: # Extract the first word of "gcc", so it can be a program name with args.
3031: set dummy gcc; ac_word=$2
3032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033: $as_echo_n "checking for $ac_word... " >&6; }
3034: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3035: $as_echo_n "(cached) " >&6
3036: else
3037: if test -n "$ac_ct_CC"; then
3038: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039: else
3040: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041: for as_dir in $PATH
3042: do
3043: IFS=$as_save_IFS
3044: test -z "$as_dir" && as_dir=.
3045: for ac_exec_ext in '' $ac_executable_extensions; do
3046: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047: ac_cv_prog_ac_ct_CC="gcc"
3048: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049: break 2
3050: fi
3051: done
3052: done
3053: IFS=$as_save_IFS
3054:
3055: fi
3056: fi
3057: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058: if test -n "$ac_ct_CC"; then
3059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060: $as_echo "$ac_ct_CC" >&6; }
3061: else
3062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063: $as_echo "no" >&6; }
3064: fi
3065:
3066: if test "x$ac_ct_CC" = x; then
3067: CC=""
3068: else
3069: case $cross_compiling:$ac_tool_warned in
3070: yes:)
3071: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073: ac_tool_warned=yes ;;
3074: esac
3075: CC=$ac_ct_CC
3076: fi
3077: else
3078: CC="$ac_cv_prog_CC"
3079: fi
3080:
3081: if test -z "$CC"; then
3082: if test -n "$ac_tool_prefix"; then
3083: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3084: set dummy ${ac_tool_prefix}cc; ac_word=$2
3085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086: $as_echo_n "checking for $ac_word... " >&6; }
3087: if test "${ac_cv_prog_CC+set}" = set; then :
3088: $as_echo_n "(cached) " >&6
3089: else
3090: if test -n "$CC"; then
3091: ac_cv_prog_CC="$CC" # Let the user override the test.
3092: else
3093: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094: for as_dir in $PATH
3095: do
3096: IFS=$as_save_IFS
3097: test -z "$as_dir" && as_dir=.
3098: for ac_exec_ext in '' $ac_executable_extensions; do
3099: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100: ac_cv_prog_CC="${ac_tool_prefix}cc"
3101: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102: break 2
3103: fi
3104: done
3105: done
3106: IFS=$as_save_IFS
3107:
3108: fi
3109: fi
3110: CC=$ac_cv_prog_CC
3111: if test -n "$CC"; then
3112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113: $as_echo "$CC" >&6; }
3114: else
3115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116: $as_echo "no" >&6; }
3117: fi
3118:
3119:
3120: fi
3121: fi
3122: if test -z "$CC"; then
3123: # Extract the first word of "cc", so it can be a program name with args.
3124: set dummy cc; ac_word=$2
3125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126: $as_echo_n "checking for $ac_word... " >&6; }
3127: if test "${ac_cv_prog_CC+set}" = set; then :
3128: $as_echo_n "(cached) " >&6
3129: else
3130: if test -n "$CC"; then
3131: ac_cv_prog_CC="$CC" # Let the user override the test.
3132: else
3133: ac_prog_rejected=no
3134: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135: for as_dir in $PATH
3136: do
3137: IFS=$as_save_IFS
3138: test -z "$as_dir" && as_dir=.
3139: for ac_exec_ext in '' $ac_executable_extensions; do
3140: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142: ac_prog_rejected=yes
3143: continue
3144: fi
3145: ac_cv_prog_CC="cc"
3146: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147: break 2
3148: fi
3149: done
3150: done
3151: IFS=$as_save_IFS
3152:
3153: if test $ac_prog_rejected = yes; then
3154: # We found a bogon in the path, so make sure we never use it.
3155: set dummy $ac_cv_prog_CC
3156: shift
3157: if test $# != 0; then
3158: # We chose a different compiler from the bogus one.
3159: # However, it has the same basename, so the bogon will be chosen
3160: # first if we set CC to just the basename; use the full file name.
3161: shift
3162: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3163: fi
3164: fi
3165: fi
3166: fi
3167: CC=$ac_cv_prog_CC
3168: if test -n "$CC"; then
3169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170: $as_echo "$CC" >&6; }
3171: else
3172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173: $as_echo "no" >&6; }
3174: fi
3175:
3176:
3177: fi
3178: if test -z "$CC"; then
3179: if test -n "$ac_tool_prefix"; then
3180: for ac_prog in cl.exe
3181: do
3182: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185: $as_echo_n "checking for $ac_word... " >&6; }
3186: if test "${ac_cv_prog_CC+set}" = set; then :
3187: $as_echo_n "(cached) " >&6
3188: else
3189: if test -n "$CC"; then
3190: ac_cv_prog_CC="$CC" # Let the user override the test.
3191: else
3192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193: for as_dir in $PATH
3194: do
3195: IFS=$as_save_IFS
3196: test -z "$as_dir" && as_dir=.
3197: for ac_exec_ext in '' $ac_executable_extensions; do
3198: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3200: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201: break 2
3202: fi
3203: done
3204: done
3205: IFS=$as_save_IFS
3206:
3207: fi
3208: fi
3209: CC=$ac_cv_prog_CC
3210: if test -n "$CC"; then
3211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212: $as_echo "$CC" >&6; }
3213: else
3214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215: $as_echo "no" >&6; }
3216: fi
3217:
3218:
3219: test -n "$CC" && break
3220: done
3221: fi
3222: if test -z "$CC"; then
3223: ac_ct_CC=$CC
3224: for ac_prog in cl.exe
3225: do
3226: # Extract the first word of "$ac_prog", so it can be a program name with args.
3227: set dummy $ac_prog; ac_word=$2
3228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229: $as_echo_n "checking for $ac_word... " >&6; }
3230: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3231: $as_echo_n "(cached) " >&6
3232: else
3233: if test -n "$ac_ct_CC"; then
3234: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3235: else
3236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237: for as_dir in $PATH
3238: do
3239: IFS=$as_save_IFS
3240: test -z "$as_dir" && as_dir=.
3241: for ac_exec_ext in '' $ac_executable_extensions; do
3242: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243: ac_cv_prog_ac_ct_CC="$ac_prog"
3244: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245: break 2
3246: fi
3247: done
3248: done
3249: IFS=$as_save_IFS
3250:
3251: fi
3252: fi
3253: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254: if test -n "$ac_ct_CC"; then
3255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3256: $as_echo "$ac_ct_CC" >&6; }
3257: else
3258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259: $as_echo "no" >&6; }
3260: fi
3261:
3262:
3263: test -n "$ac_ct_CC" && break
3264: done
3265:
3266: if test "x$ac_ct_CC" = x; then
3267: CC=""
3268: else
3269: case $cross_compiling:$ac_tool_warned in
3270: yes:)
3271: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273: ac_tool_warned=yes ;;
3274: esac
3275: CC=$ac_ct_CC
3276: fi
3277: fi
3278:
3279: fi
3280:
3281:
3282: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284: as_fn_error $? "no acceptable C compiler found in \$PATH
3285: See \`config.log' for more details" "$LINENO" 5; }
3286:
3287: # Provide some information about the compiler.
3288: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3289: set X $ac_compile
3290: ac_compiler=$2
3291: for ac_option in --version -v -V -qversion; do
3292: { { ac_try="$ac_compiler $ac_option >&5"
3293: case "(($ac_try" in
3294: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295: *) ac_try_echo=$ac_try;;
3296: esac
3297: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298: $as_echo "$ac_try_echo"; } >&5
3299: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3300: ac_status=$?
3301: if test -s conftest.err; then
3302: sed '10a\
3303: ... rest of stderr output deleted ...
3304: 10q' conftest.err >conftest.er1
3305: cat conftest.er1 >&5
3306: fi
3307: rm -f conftest.er1 conftest.err
3308: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309: test $ac_status = 0; }
3310: done
3311:
3312: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313: /* end confdefs.h. */
3314:
3315: int
3316: main ()
3317: {
3318:
3319: ;
3320: return 0;
3321: }
3322: _ACEOF
3323: ac_clean_files_save=$ac_clean_files
3324: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3325: # Try to create an executable without -o first, disregard a.out.
3326: # It will help us diagnose broken compilers, and finding out an intuition
3327: # of exeext.
3328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3329: $as_echo_n "checking whether the C compiler works... " >&6; }
3330: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3331:
3332: # The possible output files:
3333: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3334:
3335: ac_rmfiles=
3336: for ac_file in $ac_files
3337: do
3338: case $ac_file in
3339: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3340: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3341: esac
3342: done
3343: rm -f $ac_rmfiles
3344:
3345: if { { ac_try="$ac_link_default"
3346: case "(($ac_try" in
3347: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348: *) ac_try_echo=$ac_try;;
3349: esac
3350: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351: $as_echo "$ac_try_echo"; } >&5
3352: (eval "$ac_link_default") 2>&5
3353: ac_status=$?
3354: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355: test $ac_status = 0; }; then :
3356: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3357: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3358: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3359: # so that the user can short-circuit this test for compilers unknown to
3360: # Autoconf.
3361: for ac_file in $ac_files ''
3362: do
3363: test -f "$ac_file" || continue
3364: case $ac_file in
3365: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3366: ;;
3367: [ab].out )
3368: # We found the default executable, but exeext='' is most
3369: # certainly right.
3370: break;;
3371: *.* )
3372: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3373: then :; else
3374: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375: fi
3376: # We set ac_cv_exeext here because the later test for it is not
3377: # safe: cross compilers may not add the suffix if given an `-o'
3378: # argument, so we may need to know it at that point already.
3379: # Even if this section looks crufty: it has the advantage of
3380: # actually working.
3381: break;;
3382: * )
3383: break;;
3384: esac
3385: done
3386: test "$ac_cv_exeext" = no && ac_cv_exeext=
3387:
3388: else
3389: ac_file=''
3390: fi
3391: if test -z "$ac_file"; then :
3392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393: $as_echo "no" >&6; }
3394: $as_echo "$as_me: failed program was:" >&5
3395: sed 's/^/| /' conftest.$ac_ext >&5
3396:
3397: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399: as_fn_error 77 "C compiler cannot create executables
3400: See \`config.log' for more details" "$LINENO" 5; }
3401: else
3402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403: $as_echo "yes" >&6; }
3404: fi
3405: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3406: $as_echo_n "checking for C compiler default output file name... " >&6; }
3407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3408: $as_echo "$ac_file" >&6; }
3409: ac_exeext=$ac_cv_exeext
3410:
3411: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3412: ac_clean_files=$ac_clean_files_save
3413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3414: $as_echo_n "checking for suffix of executables... " >&6; }
3415: if { { ac_try="$ac_link"
3416: case "(($ac_try" in
3417: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418: *) ac_try_echo=$ac_try;;
3419: esac
3420: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421: $as_echo "$ac_try_echo"; } >&5
3422: (eval "$ac_link") 2>&5
3423: ac_status=$?
3424: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425: test $ac_status = 0; }; then :
3426: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3427: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3428: # work properly (i.e., refer to `conftest.exe'), while it won't with
3429: # `rm'.
3430: for ac_file in conftest.exe conftest conftest.*; do
3431: test -f "$ac_file" || continue
3432: case $ac_file in
3433: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3434: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435: break;;
3436: * ) break;;
3437: esac
3438: done
3439: else
3440: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3443: See \`config.log' for more details" "$LINENO" 5; }
3444: fi
3445: rm -f conftest conftest$ac_cv_exeext
3446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3447: $as_echo "$ac_cv_exeext" >&6; }
3448:
3449: rm -f conftest.$ac_ext
3450: EXEEXT=$ac_cv_exeext
3451: ac_exeext=$EXEEXT
3452: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453: /* end confdefs.h. */
3454: #include <stdio.h>
3455: int
3456: main ()
3457: {
3458: FILE *f = fopen ("conftest.out", "w");
3459: return ferror (f) || fclose (f) != 0;
3460:
3461: ;
3462: return 0;
3463: }
3464: _ACEOF
3465: ac_clean_files="$ac_clean_files conftest.out"
3466: # Check that the compiler produces executables we can run. If not, either
3467: # the compiler is broken, or we cross compile.
3468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469: $as_echo_n "checking whether we are cross compiling... " >&6; }
3470: if test "$cross_compiling" != yes; then
3471: { { ac_try="$ac_link"
3472: case "(($ac_try" in
3473: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474: *) ac_try_echo=$ac_try;;
3475: esac
3476: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477: $as_echo "$ac_try_echo"; } >&5
3478: (eval "$ac_link") 2>&5
3479: ac_status=$?
3480: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481: test $ac_status = 0; }
3482: if { ac_try='./conftest$ac_cv_exeext'
3483: { { case "(($ac_try" in
3484: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485: *) ac_try_echo=$ac_try;;
3486: esac
3487: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488: $as_echo "$ac_try_echo"; } >&5
3489: (eval "$ac_try") 2>&5
3490: ac_status=$?
3491: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492: test $ac_status = 0; }; }; then
3493: cross_compiling=no
3494: else
3495: if test "$cross_compiling" = maybe; then
3496: cross_compiling=yes
3497: else
3498: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500: as_fn_error $? "cannot run C compiled programs.
3501: If you meant to cross compile, use \`--host'.
3502: See \`config.log' for more details" "$LINENO" 5; }
3503: fi
3504: fi
3505: fi
3506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3507: $as_echo "$cross_compiling" >&6; }
3508:
3509: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3510: ac_clean_files=$ac_clean_files_save
3511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3512: $as_echo_n "checking for suffix of object files... " >&6; }
3513: if test "${ac_cv_objext+set}" = set; then :
3514: $as_echo_n "(cached) " >&6
3515: else
3516: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517: /* end confdefs.h. */
3518:
3519: int
3520: main ()
3521: {
3522:
3523: ;
3524: return 0;
3525: }
3526: _ACEOF
3527: rm -f conftest.o conftest.obj
3528: if { { ac_try="$ac_compile"
3529: case "(($ac_try" in
3530: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531: *) ac_try_echo=$ac_try;;
3532: esac
3533: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534: $as_echo "$ac_try_echo"; } >&5
3535: (eval "$ac_compile") 2>&5
3536: ac_status=$?
3537: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538: test $ac_status = 0; }; then :
3539: for ac_file in conftest.o conftest.obj conftest.*; do
3540: test -f "$ac_file" || continue;
3541: case $ac_file in
3542: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3543: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3544: break;;
3545: esac
3546: done
3547: else
3548: $as_echo "$as_me: failed program was:" >&5
3549: sed 's/^/| /' conftest.$ac_ext >&5
3550:
3551: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553: as_fn_error $? "cannot compute suffix of object files: cannot compile
3554: See \`config.log' for more details" "$LINENO" 5; }
3555: fi
3556: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3557: fi
3558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3559: $as_echo "$ac_cv_objext" >&6; }
3560: OBJEXT=$ac_cv_objext
3561: ac_objext=$OBJEXT
3562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3563: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3564: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3565: $as_echo_n "(cached) " >&6
3566: else
3567: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568: /* end confdefs.h. */
3569:
3570: int
3571: main ()
3572: {
3573: #ifndef __GNUC__
3574: choke me
3575: #endif
3576:
3577: ;
3578: return 0;
3579: }
3580: _ACEOF
3581: if ac_fn_c_try_compile "$LINENO"; then :
3582: ac_compiler_gnu=yes
3583: else
3584: ac_compiler_gnu=no
3585: fi
3586: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588:
3589: fi
3590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3591: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3592: if test $ac_compiler_gnu = yes; then
3593: GCC=yes
3594: else
3595: GCC=
3596: fi
3597: ac_test_CFLAGS=${CFLAGS+set}
3598: ac_save_CFLAGS=$CFLAGS
3599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3600: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3601: if test "${ac_cv_prog_cc_g+set}" = set; then :
3602: $as_echo_n "(cached) " >&6
3603: else
3604: ac_save_c_werror_flag=$ac_c_werror_flag
3605: ac_c_werror_flag=yes
3606: ac_cv_prog_cc_g=no
3607: CFLAGS="-g"
3608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609: /* end confdefs.h. */
3610:
3611: int
3612: main ()
3613: {
3614:
3615: ;
3616: return 0;
3617: }
3618: _ACEOF
3619: if ac_fn_c_try_compile "$LINENO"; then :
3620: ac_cv_prog_cc_g=yes
3621: else
3622: CFLAGS=""
3623: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624: /* end confdefs.h. */
3625:
3626: int
3627: main ()
3628: {
3629:
3630: ;
3631: return 0;
3632: }
3633: _ACEOF
3634: if ac_fn_c_try_compile "$LINENO"; then :
3635:
3636: else
3637: ac_c_werror_flag=$ac_save_c_werror_flag
3638: CFLAGS="-g"
3639: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640: /* end confdefs.h. */
3641:
3642: int
3643: main ()
3644: {
3645:
3646: ;
3647: return 0;
3648: }
3649: _ACEOF
3650: if ac_fn_c_try_compile "$LINENO"; then :
3651: ac_cv_prog_cc_g=yes
3652: fi
3653: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654: fi
3655: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656: fi
3657: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658: ac_c_werror_flag=$ac_save_c_werror_flag
3659: fi
3660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3661: $as_echo "$ac_cv_prog_cc_g" >&6; }
3662: if test "$ac_test_CFLAGS" = set; then
3663: CFLAGS=$ac_save_CFLAGS
3664: elif test $ac_cv_prog_cc_g = yes; then
3665: if test "$GCC" = yes; then
3666: CFLAGS="-g -O2"
3667: else
3668: CFLAGS="-g"
3669: fi
3670: else
3671: if test "$GCC" = yes; then
3672: CFLAGS="-O2"
3673: else
3674: CFLAGS=
3675: fi
3676: fi
3677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3678: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3679: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3680: $as_echo_n "(cached) " >&6
3681: else
3682: ac_cv_prog_cc_c89=no
3683: ac_save_CC=$CC
3684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685: /* end confdefs.h. */
3686: #include <stdarg.h>
3687: #include <stdio.h>
3688: #include <sys/types.h>
3689: #include <sys/stat.h>
3690: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3691: struct buf { int x; };
3692: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3693: static char *e (p, i)
3694: char **p;
3695: int i;
3696: {
3697: return p[i];
3698: }
3699: static char *f (char * (*g) (char **, int), char **p, ...)
3700: {
3701: char *s;
3702: va_list v;
3703: va_start (v,p);
3704: s = g (p, va_arg (v,int));
3705: va_end (v);
3706: return s;
3707: }
3708:
3709: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3710: function prototypes and stuff, but not '\xHH' hex character constants.
3711: These don't provoke an error unfortunately, instead are silently treated
3712: as 'x'. The following induces an error, until -std is added to get
3713: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3714: array size at least. It's necessary to write '\x00'==0 to get something
3715: that's true only with -std. */
3716: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717:
3718: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3719: inside strings and character constants. */
3720: #define FOO(x) 'x'
3721: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722:
3723: int test (int i, double x);
3724: struct s1 {int (*f) (int a);};
3725: struct s2 {int (*f) (double a);};
3726: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3727: int argc;
3728: char **argv;
3729: int
3730: main ()
3731: {
3732: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3733: ;
3734: return 0;
3735: }
3736: _ACEOF
3737: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3738: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739: do
3740: CC="$ac_save_CC $ac_arg"
3741: if ac_fn_c_try_compile "$LINENO"; then :
3742: ac_cv_prog_cc_c89=$ac_arg
3743: fi
3744: rm -f core conftest.err conftest.$ac_objext
3745: test "x$ac_cv_prog_cc_c89" != "xno" && break
3746: done
3747: rm -f conftest.$ac_ext
3748: CC=$ac_save_CC
3749:
3750: fi
3751: # AC_CACHE_VAL
3752: case "x$ac_cv_prog_cc_c89" in
3753: x)
3754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3755: $as_echo "none needed" >&6; } ;;
3756: xno)
3757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758: $as_echo "unsupported" >&6; } ;;
3759: *)
3760: CC="$CC $ac_cv_prog_cc_c89"
3761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3762: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3763: esac
3764: if test "x$ac_cv_prog_cc_c89" != xno; then :
3765:
3766: fi
3767:
3768: ac_ext=c
3769: ac_cpp='$CPP $CPPFLAGS'
3770: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773: DEPDIR="${am__leading_dot}deps"
3774:
3775: ac_config_commands="$ac_config_commands depfiles"
3776:
3777:
3778: am_make=${MAKE-make}
3779: cat > confinc << 'END'
3780: am__doit:
3781: @echo this is the am__doit target
3782: .PHONY: am__doit
3783: END
3784: # If we don't find an include directive, just comment out the code.
3785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3786: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3787: am__include="#"
3788: am__quote=
3789: _am_result=none
3790: # First try GNU make style include.
3791: echo "include confinc" > confmf
3792: # Ignore all kinds of additional output from `make'.
3793: case `$am_make -s -f confmf 2> /dev/null` in #(
3794: *the\ am__doit\ target*)
3795: am__include=include
3796: am__quote=
3797: _am_result=GNU
3798: ;;
3799: esac
3800: # Now try BSD make style include.
3801: if test "$am__include" = "#"; then
3802: echo '.include "confinc"' > confmf
3803: case `$am_make -s -f confmf 2> /dev/null` in #(
3804: *the\ am__doit\ target*)
3805: am__include=.include
3806: am__quote="\""
3807: _am_result=BSD
3808: ;;
3809: esac
3810: fi
3811:
3812:
3813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3814: $as_echo "$_am_result" >&6; }
3815: rm -f confinc confmf
3816:
3817: # Check whether --enable-dependency-tracking was given.
3818: if test "${enable_dependency_tracking+set}" = set; then :
3819: enableval=$enable_dependency_tracking;
3820: fi
3821:
3822: if test "x$enable_dependency_tracking" != xno; then
3823: am_depcomp="$ac_aux_dir/depcomp"
3824: AMDEPBACKSLASH='\'
3825: fi
3826: if test "x$enable_dependency_tracking" != xno; then
3827: AMDEP_TRUE=
3828: AMDEP_FALSE='#'
3829: else
3830: AMDEP_TRUE='#'
3831: AMDEP_FALSE=
3832: fi
3833:
3834:
3835:
3836: depcc="$CC" am_compiler_list=
3837:
3838: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3839: $as_echo_n "checking dependency style of $depcc... " >&6; }
3840: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3841: $as_echo_n "(cached) " >&6
3842: else
3843: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3844: # We make a subdir and do the tests there. Otherwise we can end up
3845: # making bogus files that we don't know about and never remove. For
3846: # instance it was reported that on HP-UX the gcc test will end up
3847: # making a dummy file named `D' -- because `-MD' means `put the output
3848: # in D'.
3849: mkdir conftest.dir
3850: # Copy depcomp to subdir because otherwise we won't find it if we're
3851: # using a relative directory.
3852: cp "$am_depcomp" conftest.dir
3853: cd conftest.dir
3854: # We will build objects and dependencies in a subdirectory because
3855: # it helps to detect inapplicable dependency modes. For instance
3856: # both Tru64's cc and ICC support -MD to output dependencies as a
3857: # side effect of compilation, but ICC will put the dependencies in
3858: # the current directory while Tru64 will put them in the object
3859: # directory.
3860: mkdir sub
3861:
3862: am_cv_CC_dependencies_compiler_type=none
3863: if test "$am_compiler_list" = ""; then
3864: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3865: fi
3866: am__universal=false
3867: case " $depcc " in #(
3868: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3869: esac
3870:
3871: for depmode in $am_compiler_list; do
3872: # Setup a source with many dependencies, because some compilers
3873: # like to wrap large dependency lists on column 80 (with \), and
3874: # we should not choose a depcomp mode which is confused by this.
3875: #
3876: # We need to recreate these files for each test, as the compiler may
3877: # overwrite some of them when testing with obscure command lines.
3878: # This happens at least with the AIX C compiler.
3879: : > sub/conftest.c
3880: for i in 1 2 3 4 5 6; do
3881: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3882: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3883: # Solaris 8's {/usr,}/bin/sh.
3884: touch sub/conftst$i.h
3885: done
3886: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3887:
3888: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3889: # mode. It turns out that the SunPro C++ compiler does not properly
3890: # handle `-M -o', and we need to detect this. Also, some Intel
3891: # versions had trouble with output in subdirs
3892: am__obj=sub/conftest.${OBJEXT-o}
3893: am__minus_obj="-o $am__obj"
3894: case $depmode in
3895: gcc)
3896: # This depmode causes a compiler race in universal mode.
3897: test "$am__universal" = false || continue
3898: ;;
3899: nosideeffect)
3900: # after this tag, mechanisms are not by side-effect, so they'll
3901: # only be used when explicitly requested
3902: if test "x$enable_dependency_tracking" = xyes; then
3903: continue
3904: else
3905: break
3906: fi
3907: ;;
3908: msvisualcpp | msvcmsys)
3909: # This compiler won't grok `-c -o', but also, the minuso test has
3910: # not run yet. These depmodes are late enough in the game, and
3911: # so weak that their functioning should not be impacted.
3912: am__obj=conftest.${OBJEXT-o}
3913: am__minus_obj=
3914: ;;
3915: none) break ;;
3916: esac
3917: if depmode=$depmode \
3918: source=sub/conftest.c object=$am__obj \
3919: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3920: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3921: >/dev/null 2>conftest.err &&
3922: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3923: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3924: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3925: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3926: # icc doesn't choke on unknown options, it will just issue warnings
3927: # or remarks (even with -Werror). So we grep stderr for any message
3928: # that says an option was ignored or not supported.
3929: # When given -MP, icc 7.0 and 7.1 complain thusly:
3930: # icc: Command line warning: ignoring option '-M'; no argument required
3931: # The diagnosis changed in icc 8.0:
3932: # icc: Command line remark: option '-MP' not supported
3933: if (grep 'ignoring option' conftest.err ||
3934: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3935: am_cv_CC_dependencies_compiler_type=$depmode
3936: break
3937: fi
3938: fi
3939: done
3940:
3941: cd ..
3942: rm -rf conftest.dir
3943: else
3944: am_cv_CC_dependencies_compiler_type=none
3945: fi
3946:
3947: fi
3948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3949: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3950: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3951:
3952: if
3953: test "x$enable_dependency_tracking" != xno \
3954: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3955: am__fastdepCC_TRUE=
3956: am__fastdepCC_FALSE='#'
3957: else
3958: am__fastdepCC_TRUE='#'
3959: am__fastdepCC_FALSE=
3960: fi
3961:
3962:
3963:
3964:
3965: ac_ext=c
3966: ac_cpp='$CPP $CPPFLAGS'
3967: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3971: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3972: # On Suns, sometimes $CPP names a directory.
3973: if test -n "$CPP" && test -d "$CPP"; then
3974: CPP=
3975: fi
3976: if test -z "$CPP"; then
3977: if test "${ac_cv_prog_CPP+set}" = set; then :
3978: $as_echo_n "(cached) " >&6
3979: else
3980: # Double quotes because CPP needs to be expanded
3981: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3982: do
3983: ac_preproc_ok=false
3984: for ac_c_preproc_warn_flag in '' yes
3985: do
3986: # Use a header file that comes with gcc, so configuring glibc
3987: # with a fresh cross-compiler works.
3988: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989: # <limits.h> exists even on freestanding compilers.
3990: # On the NeXT, cc -E runs the code through the compiler's parser,
3991: # not just through cpp. "Syntax error" is here to catch this case.
3992: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993: /* end confdefs.h. */
3994: #ifdef __STDC__
3995: # include <limits.h>
3996: #else
3997: # include <assert.h>
3998: #endif
3999: Syntax error
4000: _ACEOF
4001: if ac_fn_c_try_cpp "$LINENO"; then :
4002:
4003: else
4004: # Broken: fails on valid input.
4005: continue
4006: fi
4007: rm -f conftest.err conftest.$ac_ext
4008:
4009: # OK, works on sane cases. Now check whether nonexistent headers
4010: # can be detected and how.
4011: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012: /* end confdefs.h. */
4013: #include <ac_nonexistent.h>
4014: _ACEOF
4015: if ac_fn_c_try_cpp "$LINENO"; then :
4016: # Broken: success on invalid input.
4017: continue
4018: else
4019: # Passes both tests.
4020: ac_preproc_ok=:
4021: break
4022: fi
4023: rm -f conftest.err conftest.$ac_ext
4024:
4025: done
4026: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027: rm -f conftest.err conftest.$ac_ext
4028: if $ac_preproc_ok; then :
4029: break
4030: fi
4031:
4032: done
4033: ac_cv_prog_CPP=$CPP
4034:
4035: fi
4036: CPP=$ac_cv_prog_CPP
4037: else
4038: ac_cv_prog_CPP=$CPP
4039: fi
4040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4041: $as_echo "$CPP" >&6; }
4042: ac_preproc_ok=false
4043: for ac_c_preproc_warn_flag in '' yes
4044: do
4045: # Use a header file that comes with gcc, so configuring glibc
4046: # with a fresh cross-compiler works.
4047: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048: # <limits.h> exists even on freestanding compilers.
4049: # On the NeXT, cc -E runs the code through the compiler's parser,
4050: # not just through cpp. "Syntax error" is here to catch this case.
4051: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052: /* end confdefs.h. */
4053: #ifdef __STDC__
4054: # include <limits.h>
4055: #else
4056: # include <assert.h>
4057: #endif
4058: Syntax error
4059: _ACEOF
4060: if ac_fn_c_try_cpp "$LINENO"; then :
4061:
4062: else
4063: # Broken: fails on valid input.
4064: continue
4065: fi
4066: rm -f conftest.err conftest.$ac_ext
4067:
4068: # OK, works on sane cases. Now check whether nonexistent headers
4069: # can be detected and how.
4070: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071: /* end confdefs.h. */
4072: #include <ac_nonexistent.h>
4073: _ACEOF
4074: if ac_fn_c_try_cpp "$LINENO"; then :
4075: # Broken: success on invalid input.
4076: continue
4077: else
4078: # Passes both tests.
4079: ac_preproc_ok=:
4080: break
4081: fi
4082: rm -f conftest.err conftest.$ac_ext
4083:
4084: done
4085: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4086: rm -f conftest.err conftest.$ac_ext
4087: if $ac_preproc_ok; then :
4088:
4089: else
4090: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4093: See \`config.log' for more details" "$LINENO" 5; }
4094: fi
4095:
4096: ac_ext=c
4097: ac_cpp='$CPP $CPPFLAGS'
4098: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101:
4102: # Extract the first word of "rm", so it can be a program name with args.
4103: set dummy rm; ac_word=$2
4104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105: $as_echo_n "checking for $ac_word... " >&6; }
4106: if test "${ac_cv_path_RM+set}" = set; then :
4107: $as_echo_n "(cached) " >&6
4108: else
4109: case $RM in
4110: [\\/]* | ?:[\\/]*)
4111: ac_cv_path_RM="$RM" # Let the user override the test with a path.
4112: ;;
4113: *)
4114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115: for as_dir in $PATH
4116: do
4117: IFS=$as_save_IFS
4118: test -z "$as_dir" && as_dir=.
4119: for ac_exec_ext in '' $ac_executable_extensions; do
4120: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121: ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4122: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123: break 2
4124: fi
4125: done
4126: done
4127: IFS=$as_save_IFS
4128:
4129: test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
4130: ;;
4131: esac
4132: fi
4133: RM=$ac_cv_path_RM
4134: if test -n "$RM"; then
4135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4136: $as_echo "$RM" >&6; }
4137: else
4138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139: $as_echo "no" >&6; }
4140: fi
4141:
4142:
4143: # Extract the first word of "mv", so it can be a program name with args.
4144: set dummy mv; ac_word=$2
4145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146: $as_echo_n "checking for $ac_word... " >&6; }
4147: if test "${ac_cv_path_MV+set}" = set; then :
4148: $as_echo_n "(cached) " >&6
4149: else
4150: case $MV in
4151: [\\/]* | ?:[\\/]*)
4152: ac_cv_path_MV="$MV" # Let the user override the test with a path.
4153: ;;
4154: *)
4155: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156: for as_dir in $PATH
4157: do
4158: IFS=$as_save_IFS
4159: test -z "$as_dir" && as_dir=.
4160: for ac_exec_ext in '' $ac_executable_extensions; do
4161: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162: ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4163: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164: break 2
4165: fi
4166: done
4167: done
4168: IFS=$as_save_IFS
4169:
4170: test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4171: ;;
4172: esac
4173: fi
4174: MV=$ac_cv_path_MV
4175: if test -n "$MV"; then
4176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4177: $as_echo "$MV" >&6; }
4178: else
4179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180: $as_echo "no" >&6; }
4181: fi
4182:
4183:
4184: # Extract the first word of "tar", so it can be a program name with args.
4185: set dummy tar; ac_word=$2
4186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187: $as_echo_n "checking for $ac_word... " >&6; }
4188: if test "${ac_cv_path_TAR+set}" = set; then :
4189: $as_echo_n "(cached) " >&6
4190: else
4191: case $TAR in
4192: [\\/]* | ?:[\\/]*)
4193: ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4194: ;;
4195: *)
4196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197: for as_dir in $PATH
4198: do
4199: IFS=$as_save_IFS
4200: test -z "$as_dir" && as_dir=.
4201: for ac_exec_ext in '' $ac_executable_extensions; do
4202: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203: ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4204: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205: break 2
4206: fi
4207: done
4208: done
4209: IFS=$as_save_IFS
4210:
4211: test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4212: ;;
4213: esac
4214: fi
4215: TAR=$ac_cv_path_TAR
4216: if test -n "$TAR"; then
4217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4218: $as_echo "$TAR" >&6; }
4219: else
4220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221: $as_echo "no" >&6; }
4222: fi
4223:
4224:
4225: # Extract the first word of "perl", so it can be a program name with args.
4226: set dummy perl; ac_word=$2
4227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228: $as_echo_n "checking for $ac_word... " >&6; }
4229: if test "${ac_cv_path_PERL+set}" = set; then :
4230: $as_echo_n "(cached) " >&6
4231: else
4232: case $PERL in
4233: [\\/]* | ?:[\\/]*)
4234: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4235: ;;
4236: *)
4237: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238: for as_dir in $PATH
4239: do
4240: IFS=$as_save_IFS
4241: test -z "$as_dir" && as_dir=.
4242: for ac_exec_ext in '' $ac_executable_extensions; do
4243: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4245: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246: break 2
4247: fi
4248: done
4249: done
4250: IFS=$as_save_IFS
4251:
4252: test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4253: ;;
4254: esac
4255: fi
4256: PERL=$ac_cv_path_PERL
4257: if test -n "$PERL"; then
4258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4259: $as_echo "$PERL" >&6; }
4260: else
4261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262: $as_echo "no" >&6; }
4263: fi
4264:
4265:
4266: # Extract the first word of "wget", so it can be a program name with args.
4267: set dummy wget; ac_word=$2
4268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269: $as_echo_n "checking for $ac_word... " >&6; }
4270: if test "${ac_cv_path_WGET+set}" = set; then :
4271: $as_echo_n "(cached) " >&6
4272: else
4273: case $WGET in
4274: [\\/]* | ?:[\\/]*)
4275: ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4276: ;;
4277: *)
4278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279: for as_dir in $PATH
4280: do
4281: IFS=$as_save_IFS
4282: test -z "$as_dir" && as_dir=.
4283: for ac_exec_ext in '' $ac_executable_extensions; do
4284: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285: ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4286: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287: break 2
4288: fi
4289: done
4290: done
4291: IFS=$as_save_IFS
4292:
4293: test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4294: ;;
4295: esac
4296: fi
4297: WGET=$ac_cv_path_WGET
4298: if test -n "$WGET"; then
4299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4300: $as_echo "$WGET" >&6; }
4301: else
4302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303: $as_echo "no" >&6; }
4304: fi
4305:
4306:
4307: # Extract the first word of "xmllint", so it can be a program name with args.
4308: set dummy xmllint; ac_word=$2
4309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310: $as_echo_n "checking for $ac_word... " >&6; }
4311: if test "${ac_cv_path_XMLLINT+set}" = set; then :
4312: $as_echo_n "(cached) " >&6
4313: else
4314: case $XMLLINT in
4315: [\\/]* | ?:[\\/]*)
4316: ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4317: ;;
4318: *)
4319: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320: for as_dir in $PATH
4321: do
4322: IFS=$as_save_IFS
4323: test -z "$as_dir" && as_dir=.
4324: for ac_exec_ext in '' $ac_executable_extensions; do
4325: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326: ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4327: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328: break 2
4329: fi
4330: done
4331: done
4332: IFS=$as_save_IFS
4333:
4334: test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4335: ;;
4336: esac
4337: fi
4338: XMLLINT=$ac_cv_path_XMLLINT
4339: if test -n "$XMLLINT"; then
4340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4341: $as_echo "$XMLLINT" >&6; }
4342: else
4343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344: $as_echo "no" >&6; }
4345: fi
4346:
4347:
4348: # Extract the first word of "xsltproc", so it can be a program name with args.
4349: set dummy xsltproc; ac_word=$2
4350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351: $as_echo_n "checking for $ac_word... " >&6; }
4352: if test "${ac_cv_path_XSLTPROC+set}" = set; then :
4353: $as_echo_n "(cached) " >&6
4354: else
4355: case $XSLTPROC in
4356: [\\/]* | ?:[\\/]*)
4357: ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4358: ;;
4359: *)
4360: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361: for as_dir in $PATH
4362: do
4363: IFS=$as_save_IFS
4364: test -z "$as_dir" && as_dir=.
4365: for ac_exec_ext in '' $ac_executable_extensions; do
4366: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367: ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4368: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369: break 2
4370: fi
4371: done
4372: done
4373: IFS=$as_save_IFS
4374:
4375: test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4376: ;;
4377: esac
4378: fi
4379: XSLTPROC=$ac_cv_path_XSLTPROC
4380: if test -n "$XSLTPROC"; then
4381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4382: $as_echo "$XSLTPROC" >&6; }
4383: else
4384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385: $as_echo "no" >&6; }
4386: fi
4387:
4388:
4389:
4390: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4391: $as_echo_n "checking for function prototypes... " >&6; }
4392: if test "$ac_cv_prog_cc_c89" != no; then
4393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4394: $as_echo "yes" >&6; }
4395:
4396: $as_echo "#define PROTOTYPES 1" >>confdefs.h
4397:
4398:
4399: $as_echo "#define __PROTOTYPES 1" >>confdefs.h
4400:
4401: else
4402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403: $as_echo "no" >&6; }
4404: fi
4405:
4406:
4407:
4408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4409: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4410: if test "${ac_cv_path_GREP+set}" = set; then :
4411: $as_echo_n "(cached) " >&6
4412: else
4413: if test -z "$GREP"; then
4414: ac_path_GREP_found=false
4415: # Loop through the user's path and test for each of PROGNAME-LIST
4416: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4418: do
4419: IFS=$as_save_IFS
4420: test -z "$as_dir" && as_dir=.
4421: for ac_prog in grep ggrep; do
4422: for ac_exec_ext in '' $ac_executable_extensions; do
4423: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4424: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4425: # Check for GNU ac_path_GREP and select it if it is found.
4426: # Check for GNU $ac_path_GREP
4427: case `"$ac_path_GREP" --version 2>&1` in
4428: *GNU*)
4429: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4430: *)
4431: ac_count=0
4432: $as_echo_n 0123456789 >"conftest.in"
4433: while :
4434: do
4435: cat "conftest.in" "conftest.in" >"conftest.tmp"
4436: mv "conftest.tmp" "conftest.in"
4437: cp "conftest.in" "conftest.nl"
4438: $as_echo 'GREP' >> "conftest.nl"
4439: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441: as_fn_arith $ac_count + 1 && ac_count=$as_val
4442: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4443: # Best one so far, save it but keep looking for a better one
4444: ac_cv_path_GREP="$ac_path_GREP"
4445: ac_path_GREP_max=$ac_count
4446: fi
4447: # 10*(2^10) chars as input seems more than enough
4448: test $ac_count -gt 10 && break
4449: done
4450: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451: esac
4452:
4453: $ac_path_GREP_found && break 3
4454: done
4455: done
4456: done
4457: IFS=$as_save_IFS
4458: if test -z "$ac_cv_path_GREP"; then
4459: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4460: fi
4461: else
4462: ac_cv_path_GREP=$GREP
4463: fi
4464:
4465: fi
4466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4467: $as_echo "$ac_cv_path_GREP" >&6; }
4468: GREP="$ac_cv_path_GREP"
4469:
4470:
4471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4472: $as_echo_n "checking for egrep... " >&6; }
4473: if test "${ac_cv_path_EGREP+set}" = set; then :
4474: $as_echo_n "(cached) " >&6
4475: else
4476: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4477: then ac_cv_path_EGREP="$GREP -E"
4478: else
4479: if test -z "$EGREP"; then
4480: ac_path_EGREP_found=false
4481: # Loop through the user's path and test for each of PROGNAME-LIST
4482: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4484: do
4485: IFS=$as_save_IFS
4486: test -z "$as_dir" && as_dir=.
4487: for ac_prog in egrep; do
4488: for ac_exec_ext in '' $ac_executable_extensions; do
4489: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4490: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4491: # Check for GNU ac_path_EGREP and select it if it is found.
4492: # Check for GNU $ac_path_EGREP
4493: case `"$ac_path_EGREP" --version 2>&1` in
4494: *GNU*)
4495: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4496: *)
4497: ac_count=0
4498: $as_echo_n 0123456789 >"conftest.in"
4499: while :
4500: do
4501: cat "conftest.in" "conftest.in" >"conftest.tmp"
4502: mv "conftest.tmp" "conftest.in"
4503: cp "conftest.in" "conftest.nl"
4504: $as_echo 'EGREP' >> "conftest.nl"
4505: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4507: as_fn_arith $ac_count + 1 && ac_count=$as_val
4508: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4509: # Best one so far, save it but keep looking for a better one
4510: ac_cv_path_EGREP="$ac_path_EGREP"
4511: ac_path_EGREP_max=$ac_count
4512: fi
4513: # 10*(2^10) chars as input seems more than enough
4514: test $ac_count -gt 10 && break
4515: done
4516: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517: esac
4518:
4519: $ac_path_EGREP_found && break 3
4520: done
4521: done
4522: done
4523: IFS=$as_save_IFS
4524: if test -z "$ac_cv_path_EGREP"; then
4525: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4526: fi
4527: else
4528: ac_cv_path_EGREP=$EGREP
4529: fi
4530:
4531: fi
4532: fi
4533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4534: $as_echo "$ac_cv_path_EGREP" >&6; }
4535: EGREP="$ac_cv_path_EGREP"
4536:
4537:
4538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4539: $as_echo_n "checking for ANSI C header files... " >&6; }
4540: if test "${ac_cv_header_stdc+set}" = set; then :
4541: $as_echo_n "(cached) " >&6
4542: else
4543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544: /* end confdefs.h. */
4545: #include <stdlib.h>
4546: #include <stdarg.h>
4547: #include <string.h>
4548: #include <float.h>
4549:
4550: int
4551: main ()
4552: {
4553:
4554: ;
4555: return 0;
4556: }
4557: _ACEOF
4558: if ac_fn_c_try_compile "$LINENO"; then :
4559: ac_cv_header_stdc=yes
4560: else
4561: ac_cv_header_stdc=no
4562: fi
4563: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564:
4565: if test $ac_cv_header_stdc = yes; then
4566: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4567: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568: /* end confdefs.h. */
4569: #include <string.h>
4570:
4571: _ACEOF
4572: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4573: $EGREP "memchr" >/dev/null 2>&1; then :
4574:
4575: else
4576: ac_cv_header_stdc=no
4577: fi
4578: rm -f conftest*
4579:
4580: fi
4581:
4582: if test $ac_cv_header_stdc = yes; then
4583: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4584: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585: /* end confdefs.h. */
4586: #include <stdlib.h>
4587:
4588: _ACEOF
4589: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4590: $EGREP "free" >/dev/null 2>&1; then :
4591:
4592: else
4593: ac_cv_header_stdc=no
4594: fi
4595: rm -f conftest*
4596:
4597: fi
4598:
4599: if test $ac_cv_header_stdc = yes; then
4600: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4601: if test "$cross_compiling" = yes; then :
4602: :
4603: else
4604: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605: /* end confdefs.h. */
4606: #include <ctype.h>
4607: #include <stdlib.h>
4608: #if ((' ' & 0x0FF) == 0x020)
4609: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4610: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4611: #else
4612: # define ISLOWER(c) \
4613: (('a' <= (c) && (c) <= 'i') \
4614: || ('j' <= (c) && (c) <= 'r') \
4615: || ('s' <= (c) && (c) <= 'z'))
4616: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4617: #endif
4618:
4619: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4620: int
4621: main ()
4622: {
4623: int i;
4624: for (i = 0; i < 256; i++)
4625: if (XOR (islower (i), ISLOWER (i))
4626: || toupper (i) != TOUPPER (i))
4627: return 2;
4628: return 0;
4629: }
4630: _ACEOF
4631: if ac_fn_c_try_run "$LINENO"; then :
4632:
4633: else
4634: ac_cv_header_stdc=no
4635: fi
4636: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4637: conftest.$ac_objext conftest.beam conftest.$ac_ext
4638: fi
4639:
4640: fi
4641: fi
4642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4643: $as_echo "$ac_cv_header_stdc" >&6; }
4644: if test $ac_cv_header_stdc = yes; then
4645:
4646: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4647:
4648: fi
4649:
4650: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4651: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4652: inttypes.h stdint.h unistd.h
4653: do :
4654: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4655: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4656: "
4657: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4658: cat >>confdefs.h <<_ACEOF
4659: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4660: _ACEOF
4661:
4662: fi
4663:
4664: done
4665:
4666:
4667:
4668: if test "$ac_cv_prog_cc_stdc" != no; then
4669: U= ANSI2KNR=
4670: else
4671: U=_ ANSI2KNR=./ansi2knr
4672: fi
4673: # Ensure some checks needed by ansi2knr itself.
4674:
4675: for ac_header in string.h
4676: do :
4677: ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4678: if test "x$ac_cv_header_string_h" = x""yes; then :
4679: cat >>confdefs.h <<_ACEOF
4680: #define HAVE_STRING_H 1
4681: _ACEOF
4682:
4683: fi
4684:
4685: done
4686:
4687:
4688: test "x$U" != "x" && as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
4689:
4690: enable_win32_dll=yes
4691:
4692: case $host in
4693: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4694: if test -n "$ac_tool_prefix"; then
4695: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4696: set dummy ${ac_tool_prefix}as; ac_word=$2
4697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698: $as_echo_n "checking for $ac_word... " >&6; }
4699: if test "${ac_cv_prog_AS+set}" = set; then :
4700: $as_echo_n "(cached) " >&6
4701: else
4702: if test -n "$AS"; then
4703: ac_cv_prog_AS="$AS" # Let the user override the test.
4704: else
4705: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706: for as_dir in $PATH
4707: do
4708: IFS=$as_save_IFS
4709: test -z "$as_dir" && as_dir=.
4710: for ac_exec_ext in '' $ac_executable_extensions; do
4711: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712: ac_cv_prog_AS="${ac_tool_prefix}as"
4713: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714: break 2
4715: fi
4716: done
4717: done
4718: IFS=$as_save_IFS
4719:
4720: fi
4721: fi
4722: AS=$ac_cv_prog_AS
4723: if test -n "$AS"; then
4724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4725: $as_echo "$AS" >&6; }
4726: else
4727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728: $as_echo "no" >&6; }
4729: fi
4730:
4731:
4732: fi
4733: if test -z "$ac_cv_prog_AS"; then
4734: ac_ct_AS=$AS
4735: # Extract the first word of "as", so it can be a program name with args.
4736: set dummy as; ac_word=$2
4737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738: $as_echo_n "checking for $ac_word... " >&6; }
4739: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4740: $as_echo_n "(cached) " >&6
4741: else
4742: if test -n "$ac_ct_AS"; then
4743: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4744: else
4745: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746: for as_dir in $PATH
4747: do
4748: IFS=$as_save_IFS
4749: test -z "$as_dir" && as_dir=.
4750: for ac_exec_ext in '' $ac_executable_extensions; do
4751: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752: ac_cv_prog_ac_ct_AS="as"
4753: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754: break 2
4755: fi
4756: done
4757: done
4758: IFS=$as_save_IFS
4759:
4760: fi
4761: fi
4762: ac_ct_AS=$ac_cv_prog_ac_ct_AS
4763: if test -n "$ac_ct_AS"; then
4764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4765: $as_echo "$ac_ct_AS" >&6; }
4766: else
4767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768: $as_echo "no" >&6; }
4769: fi
4770:
4771: if test "x$ac_ct_AS" = x; then
4772: AS="false"
4773: else
4774: case $cross_compiling:$ac_tool_warned in
4775: yes:)
4776: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778: ac_tool_warned=yes ;;
4779: esac
4780: AS=$ac_ct_AS
4781: fi
4782: else
4783: AS="$ac_cv_prog_AS"
4784: fi
4785:
4786: if test -n "$ac_tool_prefix"; then
4787: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4788: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790: $as_echo_n "checking for $ac_word... " >&6; }
4791: if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4792: $as_echo_n "(cached) " >&6
4793: else
4794: if test -n "$DLLTOOL"; then
4795: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4796: else
4797: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798: for as_dir in $PATH
4799: do
4800: IFS=$as_save_IFS
4801: test -z "$as_dir" && as_dir=.
4802: for ac_exec_ext in '' $ac_executable_extensions; do
4803: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4805: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806: break 2
4807: fi
4808: done
4809: done
4810: IFS=$as_save_IFS
4811:
4812: fi
4813: fi
4814: DLLTOOL=$ac_cv_prog_DLLTOOL
4815: if test -n "$DLLTOOL"; then
4816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4817: $as_echo "$DLLTOOL" >&6; }
4818: else
4819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820: $as_echo "no" >&6; }
4821: fi
4822:
4823:
4824: fi
4825: if test -z "$ac_cv_prog_DLLTOOL"; then
4826: ac_ct_DLLTOOL=$DLLTOOL
4827: # Extract the first word of "dlltool", so it can be a program name with args.
4828: set dummy dlltool; ac_word=$2
4829: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830: $as_echo_n "checking for $ac_word... " >&6; }
4831: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4832: $as_echo_n "(cached) " >&6
4833: else
4834: if test -n "$ac_ct_DLLTOOL"; then
4835: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4836: else
4837: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838: for as_dir in $PATH
4839: do
4840: IFS=$as_save_IFS
4841: test -z "$as_dir" && as_dir=.
4842: for ac_exec_ext in '' $ac_executable_extensions; do
4843: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4845: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846: break 2
4847: fi
4848: done
4849: done
4850: IFS=$as_save_IFS
4851:
4852: fi
4853: fi
4854: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4855: if test -n "$ac_ct_DLLTOOL"; then
4856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4857: $as_echo "$ac_ct_DLLTOOL" >&6; }
4858: else
4859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860: $as_echo "no" >&6; }
4861: fi
4862:
4863: if test "x$ac_ct_DLLTOOL" = x; then
4864: DLLTOOL="false"
4865: else
4866: case $cross_compiling:$ac_tool_warned in
4867: yes:)
4868: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4869: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870: ac_tool_warned=yes ;;
4871: esac
4872: DLLTOOL=$ac_ct_DLLTOOL
4873: fi
4874: else
4875: DLLTOOL="$ac_cv_prog_DLLTOOL"
4876: fi
4877:
4878: if test -n "$ac_tool_prefix"; then
4879: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4880: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882: $as_echo_n "checking for $ac_word... " >&6; }
4883: if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4884: $as_echo_n "(cached) " >&6
4885: else
4886: if test -n "$OBJDUMP"; then
4887: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4888: else
4889: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890: for as_dir in $PATH
4891: do
4892: IFS=$as_save_IFS
4893: test -z "$as_dir" && as_dir=.
4894: for ac_exec_ext in '' $ac_executable_extensions; do
4895: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4897: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898: break 2
4899: fi
4900: done
4901: done
4902: IFS=$as_save_IFS
4903:
4904: fi
4905: fi
4906: OBJDUMP=$ac_cv_prog_OBJDUMP
4907: if test -n "$OBJDUMP"; then
4908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4909: $as_echo "$OBJDUMP" >&6; }
4910: else
4911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912: $as_echo "no" >&6; }
4913: fi
4914:
4915:
4916: fi
4917: if test -z "$ac_cv_prog_OBJDUMP"; then
4918: ac_ct_OBJDUMP=$OBJDUMP
4919: # Extract the first word of "objdump", so it can be a program name with args.
4920: set dummy objdump; ac_word=$2
4921: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922: $as_echo_n "checking for $ac_word... " >&6; }
4923: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4924: $as_echo_n "(cached) " >&6
4925: else
4926: if test -n "$ac_ct_OBJDUMP"; then
4927: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4928: else
4929: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930: for as_dir in $PATH
4931: do
4932: IFS=$as_save_IFS
4933: test -z "$as_dir" && as_dir=.
4934: for ac_exec_ext in '' $ac_executable_extensions; do
4935: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4937: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938: break 2
4939: fi
4940: done
4941: done
4942: IFS=$as_save_IFS
4943:
4944: fi
4945: fi
4946: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4947: if test -n "$ac_ct_OBJDUMP"; then
4948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4949: $as_echo "$ac_ct_OBJDUMP" >&6; }
4950: else
4951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952: $as_echo "no" >&6; }
4953: fi
4954:
4955: if test "x$ac_ct_OBJDUMP" = x; then
4956: OBJDUMP="false"
4957: else
4958: case $cross_compiling:$ac_tool_warned in
4959: yes:)
4960: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962: ac_tool_warned=yes ;;
4963: esac
4964: OBJDUMP=$ac_ct_OBJDUMP
4965: fi
4966: else
4967: OBJDUMP="$ac_cv_prog_OBJDUMP"
4968: fi
4969:
4970: ;;
4971: esac
4972:
4973: test -z "$AS" && AS=as
4974:
4975:
4976:
4977:
4978:
4979: test -z "$DLLTOOL" && DLLTOOL=dlltool
4980:
4981:
4982:
4983:
4984:
4985: test -z "$OBJDUMP" && OBJDUMP=objdump
4986:
4987:
4988:
4989:
4990:
4991:
4992:
4993: case `pwd` in
4994: *\ * | *\ *)
4995: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4996: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4997: esac
4998:
4999:
5000:
5001: macro_version='2.2.10'
5002: macro_revision='1.3175'
5003:
5004:
5005:
5006:
5007:
5008:
5009:
5010:
5011:
5012:
5013:
5014:
5015:
5016: ltmain="$ac_aux_dir/ltmain.sh"
5017:
5018: # Backslashify metacharacters that are still active within
5019: # double-quoted strings.
5020: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5021:
5022: # Same as above, but do not quote variable references.
5023: double_quote_subst='s/\(["`\\]\)/\\\1/g'
5024:
5025: # Sed substitution to delay expansion of an escaped shell variable in a
5026: # double_quote_subst'ed string.
5027: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5028:
5029: # Sed substitution to delay expansion of an escaped single quote.
5030: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5031:
5032: # Sed substitution to avoid accidental globbing in evaled expressions
5033: no_glob_subst='s/\*/\\\*/g'
5034:
5035: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5036: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5037: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5038:
5039: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5040: $as_echo_n "checking how to print strings... " >&6; }
5041: # Test print first, because it will be a builtin if present.
5042: if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5043: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5044: ECHO='print -r --'
5045: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5046: ECHO='printf %s\n'
5047: else
5048: # Use this function as a fallback that always works.
5049: func_fallback_echo ()
5050: {
5051: eval 'cat <<_LTECHO_EOF
5052: $1
5053: _LTECHO_EOF'
5054: }
5055: ECHO='func_fallback_echo'
5056: fi
5057:
5058: # func_echo_all arg...
5059: # Invoke $ECHO with all args, space-separated.
5060: func_echo_all ()
5061: {
5062: $ECHO ""
5063: }
5064:
5065: case "$ECHO" in
5066: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5067: $as_echo "printf" >&6; } ;;
5068: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5069: $as_echo "print -r" >&6; } ;;
5070: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5071: $as_echo "cat" >&6; } ;;
5072: esac
5073:
5074:
5075:
5076:
5077:
5078:
5079:
5080:
5081:
5082:
5083:
5084:
5085:
5086:
5087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5088: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5089: if test "${ac_cv_path_SED+set}" = set; then :
5090: $as_echo_n "(cached) " >&6
5091: else
5092: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5093: for ac_i in 1 2 3 4 5 6 7; do
5094: ac_script="$ac_script$as_nl$ac_script"
5095: done
5096: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5097: { ac_script=; unset ac_script;}
5098: if test -z "$SED"; then
5099: ac_path_SED_found=false
5100: # Loop through the user's path and test for each of PROGNAME-LIST
5101: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102: for as_dir in $PATH
5103: do
5104: IFS=$as_save_IFS
5105: test -z "$as_dir" && as_dir=.
5106: for ac_prog in sed gsed; do
5107: for ac_exec_ext in '' $ac_executable_extensions; do
5108: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5109: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5110: # Check for GNU ac_path_SED and select it if it is found.
5111: # Check for GNU $ac_path_SED
5112: case `"$ac_path_SED" --version 2>&1` in
5113: *GNU*)
5114: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5115: *)
5116: ac_count=0
5117: $as_echo_n 0123456789 >"conftest.in"
5118: while :
5119: do
5120: cat "conftest.in" "conftest.in" >"conftest.tmp"
5121: mv "conftest.tmp" "conftest.in"
5122: cp "conftest.in" "conftest.nl"
5123: $as_echo '' >> "conftest.nl"
5124: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5125: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5126: as_fn_arith $ac_count + 1 && ac_count=$as_val
5127: if test $ac_count -gt ${ac_path_SED_max-0}; then
5128: # Best one so far, save it but keep looking for a better one
5129: ac_cv_path_SED="$ac_path_SED"
5130: ac_path_SED_max=$ac_count
5131: fi
5132: # 10*(2^10) chars as input seems more than enough
5133: test $ac_count -gt 10 && break
5134: done
5135: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5136: esac
5137:
5138: $ac_path_SED_found && break 3
5139: done
5140: done
5141: done
5142: IFS=$as_save_IFS
5143: if test -z "$ac_cv_path_SED"; then
5144: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5145: fi
5146: else
5147: ac_cv_path_SED=$SED
5148: fi
5149:
5150: fi
5151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5152: $as_echo "$ac_cv_path_SED" >&6; }
5153: SED="$ac_cv_path_SED"
5154: rm -f conftest.sed
5155:
5156: test -z "$SED" && SED=sed
5157: Xsed="$SED -e 1s/^X//"
5158:
5159:
5160:
5161:
5162:
5163:
5164:
5165:
5166:
5167:
5168:
5169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5170: $as_echo_n "checking for fgrep... " >&6; }
5171: if test "${ac_cv_path_FGREP+set}" = set; then :
5172: $as_echo_n "(cached) " >&6
5173: else
5174: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5175: then ac_cv_path_FGREP="$GREP -F"
5176: else
5177: if test -z "$FGREP"; then
5178: ac_path_FGREP_found=false
5179: # Loop through the user's path and test for each of PROGNAME-LIST
5180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5182: do
5183: IFS=$as_save_IFS
5184: test -z "$as_dir" && as_dir=.
5185: for ac_prog in fgrep; do
5186: for ac_exec_ext in '' $ac_executable_extensions; do
5187: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5188: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5189: # Check for GNU ac_path_FGREP and select it if it is found.
5190: # Check for GNU $ac_path_FGREP
5191: case `"$ac_path_FGREP" --version 2>&1` in
5192: *GNU*)
5193: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5194: *)
5195: ac_count=0
5196: $as_echo_n 0123456789 >"conftest.in"
5197: while :
5198: do
5199: cat "conftest.in" "conftest.in" >"conftest.tmp"
5200: mv "conftest.tmp" "conftest.in"
5201: cp "conftest.in" "conftest.nl"
5202: $as_echo 'FGREP' >> "conftest.nl"
5203: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205: as_fn_arith $ac_count + 1 && ac_count=$as_val
5206: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5207: # Best one so far, save it but keep looking for a better one
5208: ac_cv_path_FGREP="$ac_path_FGREP"
5209: ac_path_FGREP_max=$ac_count
5210: fi
5211: # 10*(2^10) chars as input seems more than enough
5212: test $ac_count -gt 10 && break
5213: done
5214: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215: esac
5216:
5217: $ac_path_FGREP_found && break 3
5218: done
5219: done
5220: done
5221: IFS=$as_save_IFS
5222: if test -z "$ac_cv_path_FGREP"; then
5223: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5224: fi
5225: else
5226: ac_cv_path_FGREP=$FGREP
5227: fi
5228:
5229: fi
5230: fi
5231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5232: $as_echo "$ac_cv_path_FGREP" >&6; }
5233: FGREP="$ac_cv_path_FGREP"
5234:
5235:
5236: test -z "$GREP" && GREP=grep
5237:
5238:
5239:
5240:
5241:
5242:
5243:
5244:
5245:
5246:
5247:
5248:
5249:
5250:
5251:
5252:
5253:
5254:
5255:
5256: # Check whether --with-gnu-ld was given.
5257: if test "${with_gnu_ld+set}" = set; then :
5258: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5259: else
5260: with_gnu_ld=no
5261: fi
5262:
5263: ac_prog=ld
5264: if test "$GCC" = yes; then
5265: # Check if gcc -print-prog-name=ld gives a path.
5266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5267: $as_echo_n "checking for ld used by $CC... " >&6; }
5268: case $host in
5269: *-*-mingw*)
5270: # gcc leaves a trailing carriage return which upsets mingw
5271: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5272: *)
5273: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5274: esac
5275: case $ac_prog in
5276: # Accept absolute paths.
5277: [\\/]* | ?:[\\/]*)
5278: re_direlt='/[^/][^/]*/\.\./'
5279: # Canonicalize the pathname of ld
5280: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5281: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5282: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5283: done
5284: test -z "$LD" && LD="$ac_prog"
5285: ;;
5286: "")
5287: # If it fails, then pretend we aren't using GCC.
5288: ac_prog=ld
5289: ;;
5290: *)
5291: # If it is relative, then search for the first ld in PATH.
5292: with_gnu_ld=unknown
5293: ;;
5294: esac
5295: elif test "$with_gnu_ld" = yes; then
5296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5297: $as_echo_n "checking for GNU ld... " >&6; }
5298: else
5299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5300: $as_echo_n "checking for non-GNU ld... " >&6; }
5301: fi
5302: if test "${lt_cv_path_LD+set}" = set; then :
5303: $as_echo_n "(cached) " >&6
5304: else
5305: if test -z "$LD"; then
5306: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5307: for ac_dir in $PATH; do
5308: IFS="$lt_save_ifs"
5309: test -z "$ac_dir" && ac_dir=.
5310: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5311: lt_cv_path_LD="$ac_dir/$ac_prog"
5312: # Check to see if the program is GNU ld. I'd rather use --version,
5313: # but apparently some variants of GNU ld only accept -v.
5314: # Break only if it was the GNU/non-GNU ld that we prefer.
5315: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5316: *GNU* | *'with BFD'*)
5317: test "$with_gnu_ld" != no && break
5318: ;;
5319: *)
5320: test "$with_gnu_ld" != yes && break
5321: ;;
5322: esac
5323: fi
5324: done
5325: IFS="$lt_save_ifs"
5326: else
5327: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5328: fi
5329: fi
5330:
5331: LD="$lt_cv_path_LD"
5332: if test -n "$LD"; then
5333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5334: $as_echo "$LD" >&6; }
5335: else
5336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337: $as_echo "no" >&6; }
5338: fi
5339: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5341: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5342: if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5343: $as_echo_n "(cached) " >&6
5344: else
5345: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5346: case `$LD -v 2>&1 </dev/null` in
5347: *GNU* | *'with BFD'*)
5348: lt_cv_prog_gnu_ld=yes
5349: ;;
5350: *)
5351: lt_cv_prog_gnu_ld=no
5352: ;;
5353: esac
5354: fi
5355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5356: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5357: with_gnu_ld=$lt_cv_prog_gnu_ld
5358:
5359:
5360:
5361:
5362:
5363:
5364:
5365:
5366:
5367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5368: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5369: if test "${lt_cv_path_NM+set}" = set; then :
5370: $as_echo_n "(cached) " >&6
5371: else
5372: if test -n "$NM"; then
5373: # Let the user override the test.
5374: lt_cv_path_NM="$NM"
5375: else
5376: lt_nm_to_check="${ac_tool_prefix}nm"
5377: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5378: lt_nm_to_check="$lt_nm_to_check nm"
5379: fi
5380: for lt_tmp_nm in $lt_nm_to_check; do
5381: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5382: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5383: IFS="$lt_save_ifs"
5384: test -z "$ac_dir" && ac_dir=.
5385: tmp_nm="$ac_dir/$lt_tmp_nm"
5386: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5387: # Check to see if the nm accepts a BSD-compat flag.
5388: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5389: # nm: unknown option "B" ignored
5390: # Tru64's nm complains that /dev/null is an invalid object file
5391: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5392: */dev/null* | *'Invalid file or object type'*)
5393: lt_cv_path_NM="$tmp_nm -B"
5394: break
5395: ;;
5396: *)
5397: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5398: */dev/null*)
5399: lt_cv_path_NM="$tmp_nm -p"
5400: break
5401: ;;
5402: *)
5403: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5404: continue # so that we can try to find one that supports BSD flags
5405: ;;
5406: esac
5407: ;;
5408: esac
5409: fi
5410: done
5411: IFS="$lt_save_ifs"
5412: done
5413: : ${lt_cv_path_NM=no}
5414: fi
5415: fi
5416: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5417: $as_echo "$lt_cv_path_NM" >&6; }
5418: if test "$lt_cv_path_NM" != "no"; then
5419: NM="$lt_cv_path_NM"
5420: else
5421: # Didn't find any BSD compatible name lister, look for dumpbin.
5422: if test -n "$DUMPBIN"; then :
5423: # Let the user override the test.
5424: else
5425: if test -n "$ac_tool_prefix"; then
5426: for ac_prog in dumpbin "link -dump"
5427: do
5428: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5429: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431: $as_echo_n "checking for $ac_word... " >&6; }
5432: if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5433: $as_echo_n "(cached) " >&6
5434: else
5435: if test -n "$DUMPBIN"; then
5436: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5437: else
5438: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439: for as_dir in $PATH
5440: do
5441: IFS=$as_save_IFS
5442: test -z "$as_dir" && as_dir=.
5443: for ac_exec_ext in '' $ac_executable_extensions; do
5444: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5446: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447: break 2
5448: fi
5449: done
5450: done
5451: IFS=$as_save_IFS
5452:
5453: fi
5454: fi
5455: DUMPBIN=$ac_cv_prog_DUMPBIN
5456: if test -n "$DUMPBIN"; then
5457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5458: $as_echo "$DUMPBIN" >&6; }
5459: else
5460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461: $as_echo "no" >&6; }
5462: fi
5463:
5464:
5465: test -n "$DUMPBIN" && break
5466: done
5467: fi
5468: if test -z "$DUMPBIN"; then
5469: ac_ct_DUMPBIN=$DUMPBIN
5470: for ac_prog in dumpbin "link -dump"
5471: do
5472: # Extract the first word of "$ac_prog", so it can be a program name with args.
5473: set dummy $ac_prog; ac_word=$2
5474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475: $as_echo_n "checking for $ac_word... " >&6; }
5476: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5477: $as_echo_n "(cached) " >&6
5478: else
5479: if test -n "$ac_ct_DUMPBIN"; then
5480: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5481: else
5482: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483: for as_dir in $PATH
5484: do
5485: IFS=$as_save_IFS
5486: test -z "$as_dir" && as_dir=.
5487: for ac_exec_ext in '' $ac_executable_extensions; do
5488: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5490: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491: break 2
5492: fi
5493: done
5494: done
5495: IFS=$as_save_IFS
5496:
5497: fi
5498: fi
5499: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5500: if test -n "$ac_ct_DUMPBIN"; then
5501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5502: $as_echo "$ac_ct_DUMPBIN" >&6; }
5503: else
5504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505: $as_echo "no" >&6; }
5506: fi
5507:
5508:
5509: test -n "$ac_ct_DUMPBIN" && break
5510: done
5511:
5512: if test "x$ac_ct_DUMPBIN" = x; then
5513: DUMPBIN=":"
5514: else
5515: case $cross_compiling:$ac_tool_warned in
5516: yes:)
5517: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519: ac_tool_warned=yes ;;
5520: esac
5521: DUMPBIN=$ac_ct_DUMPBIN
5522: fi
5523: fi
5524:
5525: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5526: *COFF*)
5527: DUMPBIN="$DUMPBIN -symbols"
5528: ;;
5529: *)
5530: DUMPBIN=:
5531: ;;
5532: esac
5533: fi
5534:
5535: if test "$DUMPBIN" != ":"; then
5536: NM="$DUMPBIN"
5537: fi
5538: fi
5539: test -z "$NM" && NM=nm
5540:
5541:
5542:
5543:
5544:
5545:
5546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5547: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5548: if test "${lt_cv_nm_interface+set}" = set; then :
5549: $as_echo_n "(cached) " >&6
5550: else
5551: lt_cv_nm_interface="BSD nm"
5552: echo "int some_variable = 0;" > conftest.$ac_ext
5553: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5554: (eval "$ac_compile" 2>conftest.err)
5555: cat conftest.err >&5
5556: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5557: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5558: cat conftest.err >&5
5559: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5560: cat conftest.out >&5
5561: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5562: lt_cv_nm_interface="MS dumpbin"
5563: fi
5564: rm -f conftest*
5565: fi
5566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5567: $as_echo "$lt_cv_nm_interface" >&6; }
5568:
5569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5570: $as_echo_n "checking whether ln -s works... " >&6; }
5571: LN_S=$as_ln_s
5572: if test "$LN_S" = "ln -s"; then
5573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5574: $as_echo "yes" >&6; }
5575: else
5576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5577: $as_echo "no, using $LN_S" >&6; }
5578: fi
5579:
5580: # find the maximum length of command line arguments
5581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5582: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5583: if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5584: $as_echo_n "(cached) " >&6
5585: else
5586: i=0
5587: teststring="ABCD"
5588:
5589: case $build_os in
5590: msdosdjgpp*)
5591: # On DJGPP, this test can blow up pretty badly due to problems in libc
5592: # (any single argument exceeding 2000 bytes causes a buffer overrun
5593: # during glob expansion). Even if it were fixed, the result of this
5594: # check would be larger than it should be.
5595: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5596: ;;
5597:
5598: gnu*)
5599: # Under GNU Hurd, this test is not required because there is
5600: # no limit to the length of command line arguments.
5601: # Libtool will interpret -1 as no limit whatsoever
5602: lt_cv_sys_max_cmd_len=-1;
5603: ;;
5604:
5605: cygwin* | mingw* | cegcc*)
5606: # On Win9x/ME, this test blows up -- it succeeds, but takes
5607: # about 5 minutes as the teststring grows exponentially.
5608: # Worse, since 9x/ME are not pre-emptively multitasking,
5609: # you end up with a "frozen" computer, even though with patience
5610: # the test eventually succeeds (with a max line length of 256k).
5611: # Instead, let's just punt: use the minimum linelength reported by
5612: # all of the supported platforms: 8192 (on NT/2K/XP).
5613: lt_cv_sys_max_cmd_len=8192;
5614: ;;
5615:
5616: mint*)
5617: # On MiNT this can take a long time and run out of memory.
5618: lt_cv_sys_max_cmd_len=8192;
5619: ;;
5620:
5621: amigaos*)
5622: # On AmigaOS with pdksh, this test takes hours, literally.
5623: # So we just punt and use a minimum line length of 8192.
5624: lt_cv_sys_max_cmd_len=8192;
5625: ;;
5626:
5627: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5628: # This has been around since 386BSD, at least. Likely further.
5629: if test -x /sbin/sysctl; then
5630: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5631: elif test -x /usr/sbin/sysctl; then
5632: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5633: else
5634: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5635: fi
5636: # And add a safety zone
5637: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5638: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5639: ;;
5640:
5641: interix*)
5642: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5643: lt_cv_sys_max_cmd_len=196608
5644: ;;
5645:
5646: osf*)
5647: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5648: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5649: # nice to cause kernel panics so lets avoid the loop below.
5650: # First set a reasonable default.
5651: lt_cv_sys_max_cmd_len=16384
5652: #
5653: if test -x /sbin/sysconfig; then
5654: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5655: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5656: esac
5657: fi
5658: ;;
5659: sco3.2v5*)
5660: lt_cv_sys_max_cmd_len=102400
5661: ;;
5662: sysv5* | sco5v6* | sysv4.2uw2*)
5663: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5664: if test -n "$kargmax"; then
5665: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5666: else
5667: lt_cv_sys_max_cmd_len=32768
5668: fi
5669: ;;
5670: *)
5671: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5672: if test -n "$lt_cv_sys_max_cmd_len"; then
5673: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5674: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5675: else
5676: # Make teststring a little bigger before we do anything with it.
5677: # a 1K string should be a reasonable start.
5678: for i in 1 2 3 4 5 6 7 8 ; do
5679: teststring=$teststring$teststring
5680: done
5681: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5682: # If test is not a shell built-in, we'll probably end up computing a
5683: # maximum length that is only half of the actual maximum length, but
5684: # we can't tell.
5685: while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5686: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5687: test $i != 17 # 1/2 MB should be enough
5688: do
5689: i=`expr $i + 1`
5690: teststring=$teststring$teststring
5691: done
5692: # Only check the string length outside the loop.
5693: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5694: teststring=
5695: # Add a significant safety factor because C++ compilers can tack on
5696: # massive amounts of additional arguments before passing them to the
5697: # linker. It appears as though 1/2 is a usable value.
5698: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5699: fi
5700: ;;
5701: esac
5702:
5703: fi
5704:
5705: if test -n $lt_cv_sys_max_cmd_len ; then
5706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5707: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5708: else
5709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5710: $as_echo "none" >&6; }
5711: fi
5712: max_cmd_len=$lt_cv_sys_max_cmd_len
5713:
5714:
5715:
5716:
5717:
5718:
5719: : ${CP="cp -f"}
5720: : ${MV="mv -f"}
5721: : ${RM="rm -f"}
5722:
5723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5724: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5725: # Try some XSI features
5726: xsi_shell=no
5727: ( _lt_dummy="a/b/c"
5728: test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5729: = c,a/b,, \
5730: && eval 'test $(( 1 + 1 )) -eq 2 \
5731: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5732: && xsi_shell=yes
5733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5734: $as_echo "$xsi_shell" >&6; }
5735:
5736:
5737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5738: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5739: lt_shell_append=no
5740: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5741: >/dev/null 2>&1 \
5742: && lt_shell_append=yes
5743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5744: $as_echo "$lt_shell_append" >&6; }
5745:
5746:
5747: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5748: lt_unset=unset
5749: else
5750: lt_unset=false
5751: fi
5752:
5753:
5754:
5755:
5756:
5757: # test EBCDIC or ASCII
5758: case `echo X|tr X '\101'` in
5759: A) # ASCII based system
5760: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5761: lt_SP2NL='tr \040 \012'
5762: lt_NL2SP='tr \015\012 \040\040'
5763: ;;
5764: *) # EBCDIC based system
5765: lt_SP2NL='tr \100 \n'
5766: lt_NL2SP='tr \r\n \100\100'
5767: ;;
5768: esac
5769:
5770:
5771:
5772:
5773:
5774:
5775:
5776:
5777:
5778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5779: $as_echo_n "checking for $LD option to reload object files... " >&6; }
5780: if test "${lt_cv_ld_reload_flag+set}" = set; then :
5781: $as_echo_n "(cached) " >&6
5782: else
5783: lt_cv_ld_reload_flag='-r'
5784: fi
5785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5786: $as_echo "$lt_cv_ld_reload_flag" >&6; }
5787: reload_flag=$lt_cv_ld_reload_flag
5788: case $reload_flag in
5789: "" | " "*) ;;
5790: *) reload_flag=" $reload_flag" ;;
5791: esac
5792: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5793: case $host_os in
5794: darwin*)
5795: if test "$GCC" = yes; then
5796: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5797: else
5798: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5799: fi
5800: ;;
5801: esac
5802:
5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810:
5811: if test -n "$ac_tool_prefix"; then
5812: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5813: set dummy ${ac_tool_prefix}objdump; ac_word=$2
5814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815: $as_echo_n "checking for $ac_word... " >&6; }
5816: if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5817: $as_echo_n "(cached) " >&6
5818: else
5819: if test -n "$OBJDUMP"; then
5820: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5821: else
5822: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823: for as_dir in $PATH
5824: do
5825: IFS=$as_save_IFS
5826: test -z "$as_dir" && as_dir=.
5827: for ac_exec_ext in '' $ac_executable_extensions; do
5828: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5830: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831: break 2
5832: fi
5833: done
5834: done
5835: IFS=$as_save_IFS
5836:
5837: fi
5838: fi
5839: OBJDUMP=$ac_cv_prog_OBJDUMP
5840: if test -n "$OBJDUMP"; then
5841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5842: $as_echo "$OBJDUMP" >&6; }
5843: else
5844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845: $as_echo "no" >&6; }
5846: fi
5847:
5848:
5849: fi
5850: if test -z "$ac_cv_prog_OBJDUMP"; then
5851: ac_ct_OBJDUMP=$OBJDUMP
5852: # Extract the first word of "objdump", so it can be a program name with args.
5853: set dummy objdump; ac_word=$2
5854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855: $as_echo_n "checking for $ac_word... " >&6; }
5856: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5857: $as_echo_n "(cached) " >&6
5858: else
5859: if test -n "$ac_ct_OBJDUMP"; then
5860: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5861: else
5862: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863: for as_dir in $PATH
5864: do
5865: IFS=$as_save_IFS
5866: test -z "$as_dir" && as_dir=.
5867: for ac_exec_ext in '' $ac_executable_extensions; do
5868: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5869: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5870: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871: break 2
5872: fi
5873: done
5874: done
5875: IFS=$as_save_IFS
5876:
5877: fi
5878: fi
5879: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5880: if test -n "$ac_ct_OBJDUMP"; then
5881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5882: $as_echo "$ac_ct_OBJDUMP" >&6; }
5883: else
5884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885: $as_echo "no" >&6; }
5886: fi
5887:
5888: if test "x$ac_ct_OBJDUMP" = x; then
5889: OBJDUMP="false"
5890: else
5891: case $cross_compiling:$ac_tool_warned in
5892: yes:)
5893: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895: ac_tool_warned=yes ;;
5896: esac
5897: OBJDUMP=$ac_ct_OBJDUMP
5898: fi
5899: else
5900: OBJDUMP="$ac_cv_prog_OBJDUMP"
5901: fi
5902:
5903: test -z "$OBJDUMP" && OBJDUMP=objdump
5904:
5905:
5906:
5907:
5908:
5909:
5910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5911: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5912: if test "${lt_cv_deplibs_check_method+set}" = set; then :
5913: $as_echo_n "(cached) " >&6
5914: else
5915: lt_cv_file_magic_cmd='$MAGIC_CMD'
5916: lt_cv_file_magic_test_file=
5917: lt_cv_deplibs_check_method='unknown'
5918: # Need to set the preceding variable on all platforms that support
5919: # interlibrary dependencies.
5920: # 'none' -- dependencies not supported.
5921: # `unknown' -- same as none, but documents that we really don't know.
5922: # 'pass_all' -- all dependencies passed with no checks.
5923: # 'test_compile' -- check by making test program.
5924: # 'file_magic [[regex]]' -- check by looking for files in library path
5925: # which responds to the $file_magic_cmd with a given extended regex.
5926: # If you have `file' or equivalent on your system and you're not sure
5927: # whether `pass_all' will *always* work, you probably want this one.
5928:
5929: case $host_os in
5930: aix[4-9]*)
5931: lt_cv_deplibs_check_method=pass_all
5932: ;;
5933:
5934: beos*)
5935: lt_cv_deplibs_check_method=pass_all
5936: ;;
5937:
5938: bsdi[45]*)
5939: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5940: lt_cv_file_magic_cmd='/usr/bin/file -L'
5941: lt_cv_file_magic_test_file=/shlib/libc.so
5942: ;;
5943:
5944: cygwin*)
5945: # func_win32_libid is a shell function defined in ltmain.sh
5946: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5947: lt_cv_file_magic_cmd='func_win32_libid'
5948: ;;
5949:
5950: mingw* | pw32*)
5951: # Base MSYS/MinGW do not provide the 'file' command needed by
5952: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5953: # unless we find 'file', for example because we are cross-compiling.
5954: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5955: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5956: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5957: lt_cv_file_magic_cmd='func_win32_libid'
5958: else
5959: # Keep this pattern in sync with the one in func_win32_libid.
5960: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5961: lt_cv_file_magic_cmd='$OBJDUMP -f'
5962: fi
5963: ;;
5964:
5965: cegcc*)
5966: # use the weaker test based on 'objdump'. See mingw*.
5967: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5968: lt_cv_file_magic_cmd='$OBJDUMP -f'
5969: ;;
5970:
5971: darwin* | rhapsody*)
5972: lt_cv_deplibs_check_method=pass_all
5973: ;;
5974:
5975: freebsd* | dragonfly*)
5976: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5977: case $host_cpu in
5978: i*86 )
5979: # Not sure whether the presence of OpenBSD here was a mistake.
5980: # Let's accept both of them until this is cleared up.
5981: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5982: lt_cv_file_magic_cmd=/usr/bin/file
5983: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5984: ;;
5985: esac
5986: else
5987: lt_cv_deplibs_check_method=pass_all
5988: fi
5989: ;;
5990:
5991: gnu*)
5992: lt_cv_deplibs_check_method=pass_all
5993: ;;
5994:
5995: haiku*)
5996: lt_cv_deplibs_check_method=pass_all
5997: ;;
5998:
5999: hpux10.20* | hpux11*)
6000: lt_cv_file_magic_cmd=/usr/bin/file
6001: case $host_cpu in
6002: ia64*)
6003: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6004: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6005: ;;
6006: hppa*64*)
6007: 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]'
6008: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6009: ;;
6010: *)
6011: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6012: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6013: ;;
6014: esac
6015: ;;
6016:
6017: interix[3-9]*)
6018: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6019: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6020: ;;
6021:
6022: irix5* | irix6* | nonstopux*)
6023: case $LD in
6024: *-32|*"-32 ") libmagic=32-bit;;
6025: *-n32|*"-n32 ") libmagic=N32;;
6026: *-64|*"-64 ") libmagic=64-bit;;
6027: *) libmagic=never-match;;
6028: esac
6029: lt_cv_deplibs_check_method=pass_all
6030: ;;
6031:
6032: # This must be Linux ELF.
6033: linux* | k*bsd*-gnu | kopensolaris*-gnu)
6034: lt_cv_deplibs_check_method=pass_all
6035: ;;
6036:
6037: netbsd*)
6038: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6039: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6040: else
6041: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6042: fi
6043: ;;
6044:
6045: newos6*)
6046: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6047: lt_cv_file_magic_cmd=/usr/bin/file
6048: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6049: ;;
6050:
6051: *nto* | *qnx*)
6052: lt_cv_deplibs_check_method=pass_all
6053: ;;
6054:
6055: openbsd*)
6056: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6057: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6058: else
6059: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6060: fi
6061: ;;
6062:
6063: osf3* | osf4* | osf5*)
6064: lt_cv_deplibs_check_method=pass_all
6065: ;;
6066:
6067: rdos*)
6068: lt_cv_deplibs_check_method=pass_all
6069: ;;
6070:
6071: solaris*)
6072: lt_cv_deplibs_check_method=pass_all
6073: ;;
6074:
6075: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6076: lt_cv_deplibs_check_method=pass_all
6077: ;;
6078:
6079: sysv4 | sysv4.3*)
6080: case $host_vendor in
6081: motorola)
6082: 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]'
6083: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6084: ;;
6085: ncr)
6086: lt_cv_deplibs_check_method=pass_all
6087: ;;
6088: sequent)
6089: lt_cv_file_magic_cmd='/bin/file'
6090: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6091: ;;
6092: sni)
6093: lt_cv_file_magic_cmd='/bin/file'
6094: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6095: lt_cv_file_magic_test_file=/lib/libc.so
6096: ;;
6097: siemens)
6098: lt_cv_deplibs_check_method=pass_all
6099: ;;
6100: pc)
6101: lt_cv_deplibs_check_method=pass_all
6102: ;;
6103: esac
6104: ;;
6105:
6106: tpf*)
6107: lt_cv_deplibs_check_method=pass_all
6108: ;;
6109: esac
6110:
6111: fi
6112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6113: $as_echo "$lt_cv_deplibs_check_method" >&6; }
6114: file_magic_cmd=$lt_cv_file_magic_cmd
6115: deplibs_check_method=$lt_cv_deplibs_check_method
6116: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6117:
6118:
6119:
6120:
6121:
6122:
6123:
6124:
6125:
6126:
6127:
6128:
6129: if test -n "$ac_tool_prefix"; then
6130: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6131: set dummy ${ac_tool_prefix}ar; ac_word=$2
6132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133: $as_echo_n "checking for $ac_word... " >&6; }
6134: if test "${ac_cv_prog_AR+set}" = set; then :
6135: $as_echo_n "(cached) " >&6
6136: else
6137: if test -n "$AR"; then
6138: ac_cv_prog_AR="$AR" # Let the user override the test.
6139: else
6140: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141: for as_dir in $PATH
6142: do
6143: IFS=$as_save_IFS
6144: test -z "$as_dir" && as_dir=.
6145: for ac_exec_ext in '' $ac_executable_extensions; do
6146: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147: ac_cv_prog_AR="${ac_tool_prefix}ar"
6148: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149: break 2
6150: fi
6151: done
6152: done
6153: IFS=$as_save_IFS
6154:
6155: fi
6156: fi
6157: AR=$ac_cv_prog_AR
6158: if test -n "$AR"; then
6159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6160: $as_echo "$AR" >&6; }
6161: else
6162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163: $as_echo "no" >&6; }
6164: fi
6165:
6166:
6167: fi
6168: if test -z "$ac_cv_prog_AR"; then
6169: ac_ct_AR=$AR
6170: # Extract the first word of "ar", so it can be a program name with args.
6171: set dummy ar; ac_word=$2
6172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173: $as_echo_n "checking for $ac_word... " >&6; }
6174: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6175: $as_echo_n "(cached) " >&6
6176: else
6177: if test -n "$ac_ct_AR"; then
6178: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6179: else
6180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181: for as_dir in $PATH
6182: do
6183: IFS=$as_save_IFS
6184: test -z "$as_dir" && as_dir=.
6185: for ac_exec_ext in '' $ac_executable_extensions; do
6186: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187: ac_cv_prog_ac_ct_AR="ar"
6188: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189: break 2
6190: fi
6191: done
6192: done
6193: IFS=$as_save_IFS
6194:
6195: fi
6196: fi
6197: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6198: if test -n "$ac_ct_AR"; then
6199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6200: $as_echo "$ac_ct_AR" >&6; }
6201: else
6202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203: $as_echo "no" >&6; }
6204: fi
6205:
6206: if test "x$ac_ct_AR" = x; then
6207: AR="false"
6208: else
6209: case $cross_compiling:$ac_tool_warned in
6210: yes:)
6211: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213: ac_tool_warned=yes ;;
6214: esac
6215: AR=$ac_ct_AR
6216: fi
6217: else
6218: AR="$ac_cv_prog_AR"
6219: fi
6220:
6221: test -z "$AR" && AR=ar
6222: test -z "$AR_FLAGS" && AR_FLAGS=cru
6223:
6224:
6225:
6226:
6227:
6228:
6229:
6230:
6231:
6232:
6233:
6234: if test -n "$ac_tool_prefix"; then
6235: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6236: set dummy ${ac_tool_prefix}strip; ac_word=$2
6237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238: $as_echo_n "checking for $ac_word... " >&6; }
6239: if test "${ac_cv_prog_STRIP+set}" = set; then :
6240: $as_echo_n "(cached) " >&6
6241: else
6242: if test -n "$STRIP"; then
6243: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6244: else
6245: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246: for as_dir in $PATH
6247: do
6248: IFS=$as_save_IFS
6249: test -z "$as_dir" && as_dir=.
6250: for ac_exec_ext in '' $ac_executable_extensions; do
6251: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6253: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254: break 2
6255: fi
6256: done
6257: done
6258: IFS=$as_save_IFS
6259:
6260: fi
6261: fi
6262: STRIP=$ac_cv_prog_STRIP
6263: if test -n "$STRIP"; then
6264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6265: $as_echo "$STRIP" >&6; }
6266: else
6267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268: $as_echo "no" >&6; }
6269: fi
6270:
6271:
6272: fi
6273: if test -z "$ac_cv_prog_STRIP"; then
6274: ac_ct_STRIP=$STRIP
6275: # Extract the first word of "strip", so it can be a program name with args.
6276: set dummy strip; ac_word=$2
6277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278: $as_echo_n "checking for $ac_word... " >&6; }
6279: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6280: $as_echo_n "(cached) " >&6
6281: else
6282: if test -n "$ac_ct_STRIP"; then
6283: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6284: else
6285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286: for as_dir in $PATH
6287: do
6288: IFS=$as_save_IFS
6289: test -z "$as_dir" && as_dir=.
6290: for ac_exec_ext in '' $ac_executable_extensions; do
6291: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292: ac_cv_prog_ac_ct_STRIP="strip"
6293: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294: break 2
6295: fi
6296: done
6297: done
6298: IFS=$as_save_IFS
6299:
6300: fi
6301: fi
6302: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6303: if test -n "$ac_ct_STRIP"; then
6304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6305: $as_echo "$ac_ct_STRIP" >&6; }
6306: else
6307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308: $as_echo "no" >&6; }
6309: fi
6310:
6311: if test "x$ac_ct_STRIP" = x; then
6312: STRIP=":"
6313: else
6314: case $cross_compiling:$ac_tool_warned in
6315: yes:)
6316: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318: ac_tool_warned=yes ;;
6319: esac
6320: STRIP=$ac_ct_STRIP
6321: fi
6322: else
6323: STRIP="$ac_cv_prog_STRIP"
6324: fi
6325:
6326: test -z "$STRIP" && STRIP=:
6327:
6328:
6329:
6330:
6331:
6332:
6333: if test -n "$ac_tool_prefix"; then
6334: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6335: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337: $as_echo_n "checking for $ac_word... " >&6; }
6338: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6339: $as_echo_n "(cached) " >&6
6340: else
6341: if test -n "$RANLIB"; then
6342: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6343: else
6344: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345: for as_dir in $PATH
6346: do
6347: IFS=$as_save_IFS
6348: test -z "$as_dir" && as_dir=.
6349: for ac_exec_ext in '' $ac_executable_extensions; do
6350: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6352: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353: break 2
6354: fi
6355: done
6356: done
6357: IFS=$as_save_IFS
6358:
6359: fi
6360: fi
6361: RANLIB=$ac_cv_prog_RANLIB
6362: if test -n "$RANLIB"; then
6363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6364: $as_echo "$RANLIB" >&6; }
6365: else
6366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367: $as_echo "no" >&6; }
6368: fi
6369:
6370:
6371: fi
6372: if test -z "$ac_cv_prog_RANLIB"; then
6373: ac_ct_RANLIB=$RANLIB
6374: # Extract the first word of "ranlib", so it can be a program name with args.
6375: set dummy ranlib; ac_word=$2
6376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377: $as_echo_n "checking for $ac_word... " >&6; }
6378: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6379: $as_echo_n "(cached) " >&6
6380: else
6381: if test -n "$ac_ct_RANLIB"; then
6382: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6383: else
6384: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385: for as_dir in $PATH
6386: do
6387: IFS=$as_save_IFS
6388: test -z "$as_dir" && as_dir=.
6389: for ac_exec_ext in '' $ac_executable_extensions; do
6390: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391: ac_cv_prog_ac_ct_RANLIB="ranlib"
6392: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393: break 2
6394: fi
6395: done
6396: done
6397: IFS=$as_save_IFS
6398:
6399: fi
6400: fi
6401: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6402: if test -n "$ac_ct_RANLIB"; then
6403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6404: $as_echo "$ac_ct_RANLIB" >&6; }
6405: else
6406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407: $as_echo "no" >&6; }
6408: fi
6409:
6410: if test "x$ac_ct_RANLIB" = x; then
6411: RANLIB=":"
6412: else
6413: case $cross_compiling:$ac_tool_warned in
6414: yes:)
6415: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6417: ac_tool_warned=yes ;;
6418: esac
6419: RANLIB=$ac_ct_RANLIB
6420: fi
6421: else
6422: RANLIB="$ac_cv_prog_RANLIB"
6423: fi
6424:
6425: test -z "$RANLIB" && RANLIB=:
6426:
6427:
6428:
6429:
6430:
6431:
6432: # Determine commands to create old-style static archives.
6433: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6434: old_postinstall_cmds='chmod 644 $oldlib'
6435: old_postuninstall_cmds=
6436:
6437: if test -n "$RANLIB"; then
6438: case $host_os in
6439: openbsd*)
6440: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6441: ;;
6442: *)
6443: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6444: ;;
6445: esac
6446: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6447: fi
6448:
6449: case $host_os in
6450: darwin*)
6451: lock_old_archive_extraction=yes ;;
6452: *)
6453: lock_old_archive_extraction=no ;;
6454: esac
6455:
6456:
6457:
6458:
6459:
6460:
6461:
6462:
6463:
6464:
6465:
6466:
6467:
6468:
6469:
6470:
6471:
6472:
6473:
6474:
6475:
6476:
6477:
6478:
6479:
6480:
6481:
6482:
6483:
6484:
6485:
6486:
6487:
6488:
6489:
6490:
6491:
6492:
6493:
6494: # If no C compiler was specified, use CC.
6495: LTCC=${LTCC-"$CC"}
6496:
6497: # If no C compiler flags were specified, use CFLAGS.
6498: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6499:
6500: # Allow CC to be a program name with arguments.
6501: compiler=$CC
6502:
6503:
6504: # Check for command to grab the raw symbol name followed by C symbol from nm.
6505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6506: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6507: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6508: $as_echo_n "(cached) " >&6
6509: else
6510:
6511: # These are sane defaults that work on at least a few old systems.
6512: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6513:
6514: # Character class describing NM global symbol codes.
6515: symcode='[BCDEGRST]'
6516:
6517: # Regexp to match symbols that can be accessed directly from C.
6518: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6519:
6520: # Define system-specific variables.
6521: case $host_os in
6522: aix*)
6523: symcode='[BCDT]'
6524: ;;
6525: cygwin* | mingw* | pw32* | cegcc*)
6526: symcode='[ABCDGISTW]'
6527: ;;
6528: hpux*)
6529: if test "$host_cpu" = ia64; then
6530: symcode='[ABCDEGRST]'
6531: fi
6532: ;;
6533: irix* | nonstopux*)
6534: symcode='[BCDEGRST]'
6535: ;;
6536: osf*)
6537: symcode='[BCDEGQRST]'
6538: ;;
6539: solaris*)
6540: symcode='[BDRT]'
6541: ;;
6542: sco3.2v5*)
6543: symcode='[DT]'
6544: ;;
6545: sysv4.2uw2*)
6546: symcode='[DT]'
6547: ;;
6548: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6549: symcode='[ABDT]'
6550: ;;
6551: sysv4)
6552: symcode='[DFNSTU]'
6553: ;;
6554: esac
6555:
6556: # If we're using GNU nm, then use its standard symbol codes.
6557: case `$NM -V 2>&1` in
6558: *GNU* | *'with BFD'*)
6559: symcode='[ABCDGIRSTW]' ;;
6560: esac
6561:
6562: # Transform an extracted symbol line into a proper C declaration.
6563: # Some systems (esp. on ia64) link data and code symbols differently,
6564: # so use this general approach.
6565: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6566:
6567: # Transform an extracted symbol line into symbol name and symbol address
6568: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6569: lt_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'"
6570:
6571: # Handle CRLF in mingw tool chain
6572: opt_cr=
6573: case $build_os in
6574: mingw*)
6575: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6576: ;;
6577: esac
6578:
6579: # Try without a prefix underscore, then with it.
6580: for ac_symprfx in "" "_"; do
6581:
6582: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6583: symxfrm="\\1 $ac_symprfx\\2 \\2"
6584:
6585: # Write the raw and C identifiers.
6586: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6587: # Fake it for dumpbin and say T for any non-static function
6588: # and D for any global variable.
6589: # Also find C++ and __fastcall symbols from MSVC++,
6590: # which start with @ or ?.
6591: lt_cv_sys_global_symbol_pipe="$AWK '"\
6592: " {last_section=section; section=\$ 3};"\
6593: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6594: " \$ 0!~/External *\|/{next};"\
6595: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6596: " {if(hide[section]) next};"\
6597: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6598: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6599: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6600: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6601: " ' prfx=^$ac_symprfx"
6602: else
6603: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6604: fi
6605:
6606: # Check to see that the pipe works correctly.
6607: pipe_works=no
6608:
6609: rm -f conftest*
6610: cat > conftest.$ac_ext <<_LT_EOF
6611: #ifdef __cplusplus
6612: extern "C" {
6613: #endif
6614: char nm_test_var;
6615: void nm_test_func(void);
6616: void nm_test_func(void){}
6617: #ifdef __cplusplus
6618: }
6619: #endif
6620: int main(){nm_test_var='a';nm_test_func();return(0);}
6621: _LT_EOF
6622:
6623: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6624: (eval $ac_compile) 2>&5
6625: ac_status=$?
6626: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627: test $ac_status = 0; }; then
6628: # Now try to grab the symbols.
6629: nlist=conftest.nm
6630: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6631: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6632: ac_status=$?
6633: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634: test $ac_status = 0; } && test -s "$nlist"; then
6635: # Try sorting and uniquifying the output.
6636: if sort "$nlist" | uniq > "$nlist"T; then
6637: mv -f "$nlist"T "$nlist"
6638: else
6639: rm -f "$nlist"T
6640: fi
6641:
6642: # Make sure that we snagged all the symbols we need.
6643: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6644: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6645: cat <<_LT_EOF > conftest.$ac_ext
6646: #ifdef __cplusplus
6647: extern "C" {
6648: #endif
6649:
6650: _LT_EOF
6651: # Now generate the symbol file.
6652: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6653:
6654: cat <<_LT_EOF >> conftest.$ac_ext
6655:
6656: /* The mapping between symbol names and symbols. */
6657: const struct {
6658: const char *name;
6659: void *address;
6660: }
6661: lt__PROGRAM__LTX_preloaded_symbols[] =
6662: {
6663: { "@PROGRAM@", (void *) 0 },
6664: _LT_EOF
6665: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6666: cat <<\_LT_EOF >> conftest.$ac_ext
6667: {0, (void *) 0}
6668: };
6669:
6670: /* This works around a problem in FreeBSD linker */
6671: #ifdef FREEBSD_WORKAROUND
6672: static const void *lt_preloaded_setup() {
6673: return lt__PROGRAM__LTX_preloaded_symbols;
6674: }
6675: #endif
6676:
6677: #ifdef __cplusplus
6678: }
6679: #endif
6680: _LT_EOF
6681: # Now try linking the two files.
6682: mv conftest.$ac_objext conftstm.$ac_objext
6683: lt_save_LIBS="$LIBS"
6684: lt_save_CFLAGS="$CFLAGS"
6685: LIBS="conftstm.$ac_objext"
6686: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6687: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6688: (eval $ac_link) 2>&5
6689: ac_status=$?
6690: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6692: pipe_works=yes
6693: fi
6694: LIBS="$lt_save_LIBS"
6695: CFLAGS="$lt_save_CFLAGS"
6696: else
6697: echo "cannot find nm_test_func in $nlist" >&5
6698: fi
6699: else
6700: echo "cannot find nm_test_var in $nlist" >&5
6701: fi
6702: else
6703: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6704: fi
6705: else
6706: echo "$progname: failed program was:" >&5
6707: cat conftest.$ac_ext >&5
6708: fi
6709: rm -rf conftest* conftst*
6710:
6711: # Do not use the global_symbol_pipe unless it works.
6712: if test "$pipe_works" = yes; then
6713: break
6714: else
6715: lt_cv_sys_global_symbol_pipe=
6716: fi
6717: done
6718:
6719: fi
6720:
6721: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6722: lt_cv_sys_global_symbol_to_cdecl=
6723: fi
6724: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6726: $as_echo "failed" >&6; }
6727: else
6728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6729: $as_echo "ok" >&6; }
6730: fi
6731:
6732:
6733:
6734:
6735:
6736:
6737:
6738:
6739:
6740:
6741:
6742:
6743:
6744:
6745:
6746:
6747:
6748:
6749:
6750:
6751:
6752:
6753: # Check whether --enable-libtool-lock was given.
6754: if test "${enable_libtool_lock+set}" = set; then :
6755: enableval=$enable_libtool_lock;
6756: fi
6757:
6758: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6759:
6760: # Some flags need to be propagated to the compiler or linker for good
6761: # libtool support.
6762: case $host in
6763: ia64-*-hpux*)
6764: # Find out which ABI we are using.
6765: echo 'int i;' > conftest.$ac_ext
6766: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6767: (eval $ac_compile) 2>&5
6768: ac_status=$?
6769: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6770: test $ac_status = 0; }; then
6771: case `/usr/bin/file conftest.$ac_objext` in
6772: *ELF-32*)
6773: HPUX_IA64_MODE="32"
6774: ;;
6775: *ELF-64*)
6776: HPUX_IA64_MODE="64"
6777: ;;
6778: esac
6779: fi
6780: rm -rf conftest*
6781: ;;
6782: *-*-irix6*)
6783: # Find out which ABI we are using.
6784: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6785: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6786: (eval $ac_compile) 2>&5
6787: ac_status=$?
6788: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6789: test $ac_status = 0; }; then
6790: if test "$lt_cv_prog_gnu_ld" = yes; then
6791: case `/usr/bin/file conftest.$ac_objext` in
6792: *32-bit*)
6793: LD="${LD-ld} -melf32bsmip"
6794: ;;
6795: *N32*)
6796: LD="${LD-ld} -melf32bmipn32"
6797: ;;
6798: *64-bit*)
6799: LD="${LD-ld} -melf64bmip"
6800: ;;
6801: esac
6802: else
6803: case `/usr/bin/file conftest.$ac_objext` in
6804: *32-bit*)
6805: LD="${LD-ld} -32"
6806: ;;
6807: *N32*)
6808: LD="${LD-ld} -n32"
6809: ;;
6810: *64-bit*)
6811: LD="${LD-ld} -64"
6812: ;;
6813: esac
6814: fi
6815: fi
6816: rm -rf conftest*
6817: ;;
6818:
6819: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6820: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6821: # Find out which ABI we are using.
6822: echo 'int i;' > conftest.$ac_ext
6823: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6824: (eval $ac_compile) 2>&5
6825: ac_status=$?
6826: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827: test $ac_status = 0; }; then
6828: case `/usr/bin/file conftest.o` in
6829: *32-bit*)
6830: case $host in
6831: x86_64-*kfreebsd*-gnu)
6832: LD="${LD-ld} -m elf_i386_fbsd"
6833: ;;
6834: x86_64-*linux*)
6835: LD="${LD-ld} -m elf_i386"
6836: ;;
6837: ppc64-*linux*|powerpc64-*linux*)
6838: LD="${LD-ld} -m elf32ppclinux"
6839: ;;
6840: s390x-*linux*)
6841: LD="${LD-ld} -m elf_s390"
6842: ;;
6843: sparc64-*linux*)
6844: LD="${LD-ld} -m elf32_sparc"
6845: ;;
6846: esac
6847: ;;
6848: *64-bit*)
6849: case $host in
6850: x86_64-*kfreebsd*-gnu)
6851: LD="${LD-ld} -m elf_x86_64_fbsd"
6852: ;;
6853: x86_64-*linux*)
6854: LD="${LD-ld} -m elf_x86_64"
6855: ;;
6856: ppc*-*linux*|powerpc*-*linux*)
6857: LD="${LD-ld} -m elf64ppc"
6858: ;;
6859: s390*-*linux*|s390*-*tpf*)
6860: LD="${LD-ld} -m elf64_s390"
6861: ;;
6862: sparc*-*linux*)
6863: LD="${LD-ld} -m elf64_sparc"
6864: ;;
6865: esac
6866: ;;
6867: esac
6868: fi
6869: rm -rf conftest*
6870: ;;
6871:
6872: *-*-sco3.2v5*)
6873: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6874: SAVE_CFLAGS="$CFLAGS"
6875: CFLAGS="$CFLAGS -belf"
6876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6877: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6878: if test "${lt_cv_cc_needs_belf+set}" = set; then :
6879: $as_echo_n "(cached) " >&6
6880: else
6881: ac_ext=c
6882: ac_cpp='$CPP $CPPFLAGS'
6883: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886:
6887: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888: /* end confdefs.h. */
6889:
6890: int
6891: main ()
6892: {
6893:
6894: ;
6895: return 0;
6896: }
6897: _ACEOF
6898: if ac_fn_c_try_link "$LINENO"; then :
6899: lt_cv_cc_needs_belf=yes
6900: else
6901: lt_cv_cc_needs_belf=no
6902: fi
6903: rm -f core conftest.err conftest.$ac_objext \
6904: conftest$ac_exeext conftest.$ac_ext
6905: ac_ext=c
6906: ac_cpp='$CPP $CPPFLAGS'
6907: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6910:
6911: fi
6912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6913: $as_echo "$lt_cv_cc_needs_belf" >&6; }
6914: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6915: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6916: CFLAGS="$SAVE_CFLAGS"
6917: fi
6918: ;;
6919: sparc*-*solaris*)
6920: # Find out which ABI we are using.
6921: echo 'int i;' > conftest.$ac_ext
6922: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6923: (eval $ac_compile) 2>&5
6924: ac_status=$?
6925: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926: test $ac_status = 0; }; then
6927: case `/usr/bin/file conftest.o` in
6928: *64-bit*)
6929: case $lt_cv_prog_gnu_ld in
6930: yes*) LD="${LD-ld} -m elf64_sparc" ;;
6931: *)
6932: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6933: LD="${LD-ld} -64"
6934: fi
6935: ;;
6936: esac
6937: ;;
6938: esac
6939: fi
6940: rm -rf conftest*
6941: ;;
6942: esac
6943:
6944: need_locks="$enable_libtool_lock"
6945:
6946:
6947: case $host_os in
6948: rhapsody* | darwin*)
6949: if test -n "$ac_tool_prefix"; then
6950: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6951: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953: $as_echo_n "checking for $ac_word... " >&6; }
6954: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6955: $as_echo_n "(cached) " >&6
6956: else
6957: if test -n "$DSYMUTIL"; then
6958: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6959: else
6960: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961: for as_dir in $PATH
6962: do
6963: IFS=$as_save_IFS
6964: test -z "$as_dir" && as_dir=.
6965: for ac_exec_ext in '' $ac_executable_extensions; do
6966: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6968: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969: break 2
6970: fi
6971: done
6972: done
6973: IFS=$as_save_IFS
6974:
6975: fi
6976: fi
6977: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6978: if test -n "$DSYMUTIL"; then
6979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6980: $as_echo "$DSYMUTIL" >&6; }
6981: else
6982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983: $as_echo "no" >&6; }
6984: fi
6985:
6986:
6987: fi
6988: if test -z "$ac_cv_prog_DSYMUTIL"; then
6989: ac_ct_DSYMUTIL=$DSYMUTIL
6990: # Extract the first word of "dsymutil", so it can be a program name with args.
6991: set dummy dsymutil; ac_word=$2
6992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993: $as_echo_n "checking for $ac_word... " >&6; }
6994: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6995: $as_echo_n "(cached) " >&6
6996: else
6997: if test -n "$ac_ct_DSYMUTIL"; then
6998: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6999: else
7000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001: for as_dir in $PATH
7002: do
7003: IFS=$as_save_IFS
7004: test -z "$as_dir" && as_dir=.
7005: for ac_exec_ext in '' $ac_executable_extensions; do
7006: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7008: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009: break 2
7010: fi
7011: done
7012: done
7013: IFS=$as_save_IFS
7014:
7015: fi
7016: fi
7017: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7018: if test -n "$ac_ct_DSYMUTIL"; then
7019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7020: $as_echo "$ac_ct_DSYMUTIL" >&6; }
7021: else
7022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023: $as_echo "no" >&6; }
7024: fi
7025:
7026: if test "x$ac_ct_DSYMUTIL" = x; then
7027: DSYMUTIL=":"
7028: else
7029: case $cross_compiling:$ac_tool_warned in
7030: yes:)
7031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033: ac_tool_warned=yes ;;
7034: esac
7035: DSYMUTIL=$ac_ct_DSYMUTIL
7036: fi
7037: else
7038: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7039: fi
7040:
7041: if test -n "$ac_tool_prefix"; then
7042: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7043: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045: $as_echo_n "checking for $ac_word... " >&6; }
7046: if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7047: $as_echo_n "(cached) " >&6
7048: else
7049: if test -n "$NMEDIT"; then
7050: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7051: else
7052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053: for as_dir in $PATH
7054: do
7055: IFS=$as_save_IFS
7056: test -z "$as_dir" && as_dir=.
7057: for ac_exec_ext in '' $ac_executable_extensions; do
7058: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7060: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061: break 2
7062: fi
7063: done
7064: done
7065: IFS=$as_save_IFS
7066:
7067: fi
7068: fi
7069: NMEDIT=$ac_cv_prog_NMEDIT
7070: if test -n "$NMEDIT"; then
7071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7072: $as_echo "$NMEDIT" >&6; }
7073: else
7074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075: $as_echo "no" >&6; }
7076: fi
7077:
7078:
7079: fi
7080: if test -z "$ac_cv_prog_NMEDIT"; then
7081: ac_ct_NMEDIT=$NMEDIT
7082: # Extract the first word of "nmedit", so it can be a program name with args.
7083: set dummy nmedit; ac_word=$2
7084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085: $as_echo_n "checking for $ac_word... " >&6; }
7086: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7087: $as_echo_n "(cached) " >&6
7088: else
7089: if test -n "$ac_ct_NMEDIT"; then
7090: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7091: else
7092: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093: for as_dir in $PATH
7094: do
7095: IFS=$as_save_IFS
7096: test -z "$as_dir" && as_dir=.
7097: for ac_exec_ext in '' $ac_executable_extensions; do
7098: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099: ac_cv_prog_ac_ct_NMEDIT="nmedit"
7100: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101: break 2
7102: fi
7103: done
7104: done
7105: IFS=$as_save_IFS
7106:
7107: fi
7108: fi
7109: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7110: if test -n "$ac_ct_NMEDIT"; then
7111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7112: $as_echo "$ac_ct_NMEDIT" >&6; }
7113: else
7114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115: $as_echo "no" >&6; }
7116: fi
7117:
7118: if test "x$ac_ct_NMEDIT" = x; then
7119: NMEDIT=":"
7120: else
7121: case $cross_compiling:$ac_tool_warned in
7122: yes:)
7123: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7124: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7125: ac_tool_warned=yes ;;
7126: esac
7127: NMEDIT=$ac_ct_NMEDIT
7128: fi
7129: else
7130: NMEDIT="$ac_cv_prog_NMEDIT"
7131: fi
7132:
7133: if test -n "$ac_tool_prefix"; then
7134: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7135: set dummy ${ac_tool_prefix}lipo; ac_word=$2
7136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137: $as_echo_n "checking for $ac_word... " >&6; }
7138: if test "${ac_cv_prog_LIPO+set}" = set; then :
7139: $as_echo_n "(cached) " >&6
7140: else
7141: if test -n "$LIPO"; then
7142: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7143: else
7144: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145: for as_dir in $PATH
7146: do
7147: IFS=$as_save_IFS
7148: test -z "$as_dir" && as_dir=.
7149: for ac_exec_ext in '' $ac_executable_extensions; do
7150: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7152: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153: break 2
7154: fi
7155: done
7156: done
7157: IFS=$as_save_IFS
7158:
7159: fi
7160: fi
7161: LIPO=$ac_cv_prog_LIPO
7162: if test -n "$LIPO"; then
7163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7164: $as_echo "$LIPO" >&6; }
7165: else
7166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167: $as_echo "no" >&6; }
7168: fi
7169:
7170:
7171: fi
7172: if test -z "$ac_cv_prog_LIPO"; then
7173: ac_ct_LIPO=$LIPO
7174: # Extract the first word of "lipo", so it can be a program name with args.
7175: set dummy lipo; ac_word=$2
7176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177: $as_echo_n "checking for $ac_word... " >&6; }
7178: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7179: $as_echo_n "(cached) " >&6
7180: else
7181: if test -n "$ac_ct_LIPO"; then
7182: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7183: else
7184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185: for as_dir in $PATH
7186: do
7187: IFS=$as_save_IFS
7188: test -z "$as_dir" && as_dir=.
7189: for ac_exec_ext in '' $ac_executable_extensions; do
7190: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191: ac_cv_prog_ac_ct_LIPO="lipo"
7192: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193: break 2
7194: fi
7195: done
7196: done
7197: IFS=$as_save_IFS
7198:
7199: fi
7200: fi
7201: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7202: if test -n "$ac_ct_LIPO"; then
7203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7204: $as_echo "$ac_ct_LIPO" >&6; }
7205: else
7206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207: $as_echo "no" >&6; }
7208: fi
7209:
7210: if test "x$ac_ct_LIPO" = x; then
7211: LIPO=":"
7212: else
7213: case $cross_compiling:$ac_tool_warned in
7214: yes:)
7215: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217: ac_tool_warned=yes ;;
7218: esac
7219: LIPO=$ac_ct_LIPO
7220: fi
7221: else
7222: LIPO="$ac_cv_prog_LIPO"
7223: fi
7224:
7225: if test -n "$ac_tool_prefix"; then
7226: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7227: set dummy ${ac_tool_prefix}otool; ac_word=$2
7228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229: $as_echo_n "checking for $ac_word... " >&6; }
7230: if test "${ac_cv_prog_OTOOL+set}" = set; then :
7231: $as_echo_n "(cached) " >&6
7232: else
7233: if test -n "$OTOOL"; then
7234: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7235: else
7236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237: for as_dir in $PATH
7238: do
7239: IFS=$as_save_IFS
7240: test -z "$as_dir" && as_dir=.
7241: for ac_exec_ext in '' $ac_executable_extensions; do
7242: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7244: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245: break 2
7246: fi
7247: done
7248: done
7249: IFS=$as_save_IFS
7250:
7251: fi
7252: fi
7253: OTOOL=$ac_cv_prog_OTOOL
7254: if test -n "$OTOOL"; then
7255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7256: $as_echo "$OTOOL" >&6; }
7257: else
7258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259: $as_echo "no" >&6; }
7260: fi
7261:
7262:
7263: fi
7264: if test -z "$ac_cv_prog_OTOOL"; then
7265: ac_ct_OTOOL=$OTOOL
7266: # Extract the first word of "otool", so it can be a program name with args.
7267: set dummy otool; ac_word=$2
7268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269: $as_echo_n "checking for $ac_word... " >&6; }
7270: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7271: $as_echo_n "(cached) " >&6
7272: else
7273: if test -n "$ac_ct_OTOOL"; then
7274: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7275: else
7276: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277: for as_dir in $PATH
7278: do
7279: IFS=$as_save_IFS
7280: test -z "$as_dir" && as_dir=.
7281: for ac_exec_ext in '' $ac_executable_extensions; do
7282: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283: ac_cv_prog_ac_ct_OTOOL="otool"
7284: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285: break 2
7286: fi
7287: done
7288: done
7289: IFS=$as_save_IFS
7290:
7291: fi
7292: fi
7293: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7294: if test -n "$ac_ct_OTOOL"; then
7295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7296: $as_echo "$ac_ct_OTOOL" >&6; }
7297: else
7298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299: $as_echo "no" >&6; }
7300: fi
7301:
7302: if test "x$ac_ct_OTOOL" = x; then
7303: OTOOL=":"
7304: else
7305: case $cross_compiling:$ac_tool_warned in
7306: yes:)
7307: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309: ac_tool_warned=yes ;;
7310: esac
7311: OTOOL=$ac_ct_OTOOL
7312: fi
7313: else
7314: OTOOL="$ac_cv_prog_OTOOL"
7315: fi
7316:
7317: if test -n "$ac_tool_prefix"; then
7318: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7319: set dummy ${ac_tool_prefix}otool64; ac_word=$2
7320: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321: $as_echo_n "checking for $ac_word... " >&6; }
7322: if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7323: $as_echo_n "(cached) " >&6
7324: else
7325: if test -n "$OTOOL64"; then
7326: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7327: else
7328: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329: for as_dir in $PATH
7330: do
7331: IFS=$as_save_IFS
7332: test -z "$as_dir" && as_dir=.
7333: for ac_exec_ext in '' $ac_executable_extensions; do
7334: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7336: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337: break 2
7338: fi
7339: done
7340: done
7341: IFS=$as_save_IFS
7342:
7343: fi
7344: fi
7345: OTOOL64=$ac_cv_prog_OTOOL64
7346: if test -n "$OTOOL64"; then
7347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7348: $as_echo "$OTOOL64" >&6; }
7349: else
7350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351: $as_echo "no" >&6; }
7352: fi
7353:
7354:
7355: fi
7356: if test -z "$ac_cv_prog_OTOOL64"; then
7357: ac_ct_OTOOL64=$OTOOL64
7358: # Extract the first word of "otool64", so it can be a program name with args.
7359: set dummy otool64; ac_word=$2
7360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361: $as_echo_n "checking for $ac_word... " >&6; }
7362: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7363: $as_echo_n "(cached) " >&6
7364: else
7365: if test -n "$ac_ct_OTOOL64"; then
7366: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7367: else
7368: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369: for as_dir in $PATH
7370: do
7371: IFS=$as_save_IFS
7372: test -z "$as_dir" && as_dir=.
7373: for ac_exec_ext in '' $ac_executable_extensions; do
7374: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375: ac_cv_prog_ac_ct_OTOOL64="otool64"
7376: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377: break 2
7378: fi
7379: done
7380: done
7381: IFS=$as_save_IFS
7382:
7383: fi
7384: fi
7385: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7386: if test -n "$ac_ct_OTOOL64"; then
7387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7388: $as_echo "$ac_ct_OTOOL64" >&6; }
7389: else
7390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391: $as_echo "no" >&6; }
7392: fi
7393:
7394: if test "x$ac_ct_OTOOL64" = x; then
7395: OTOOL64=":"
7396: else
7397: case $cross_compiling:$ac_tool_warned in
7398: yes:)
7399: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7400: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401: ac_tool_warned=yes ;;
7402: esac
7403: OTOOL64=$ac_ct_OTOOL64
7404: fi
7405: else
7406: OTOOL64="$ac_cv_prog_OTOOL64"
7407: fi
7408:
7409:
7410:
7411:
7412:
7413:
7414:
7415:
7416:
7417:
7418:
7419:
7420:
7421:
7422:
7423:
7424:
7425:
7426:
7427:
7428:
7429:
7430:
7431:
7432:
7433:
7434:
7435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7436: $as_echo_n "checking for -single_module linker flag... " >&6; }
7437: if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7438: $as_echo_n "(cached) " >&6
7439: else
7440: lt_cv_apple_cc_single_mod=no
7441: if test -z "${LT_MULTI_MODULE}"; then
7442: # By default we will add the -single_module flag. You can override
7443: # by either setting the environment variable LT_MULTI_MODULE
7444: # non-empty at configure time, or by adding -multi_module to the
7445: # link flags.
7446: rm -rf libconftest.dylib*
7447: echo "int foo(void){return 1;}" > conftest.c
7448: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7449: -dynamiclib -Wl,-single_module conftest.c" >&5
7450: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7451: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7452: _lt_result=$?
7453: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7454: lt_cv_apple_cc_single_mod=yes
7455: else
7456: cat conftest.err >&5
7457: fi
7458: rm -rf libconftest.dylib*
7459: rm -f conftest.*
7460: fi
7461: fi
7462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7463: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7465: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7466: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7467: $as_echo_n "(cached) " >&6
7468: else
7469: lt_cv_ld_exported_symbols_list=no
7470: save_LDFLAGS=$LDFLAGS
7471: echo "_main" > conftest.sym
7472: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7473: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474: /* end confdefs.h. */
7475:
7476: int
7477: main ()
7478: {
7479:
7480: ;
7481: return 0;
7482: }
7483: _ACEOF
7484: if ac_fn_c_try_link "$LINENO"; then :
7485: lt_cv_ld_exported_symbols_list=yes
7486: else
7487: lt_cv_ld_exported_symbols_list=no
7488: fi
7489: rm -f core conftest.err conftest.$ac_objext \
7490: conftest$ac_exeext conftest.$ac_ext
7491: LDFLAGS="$save_LDFLAGS"
7492:
7493: fi
7494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7495: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7497: $as_echo_n "checking for -force_load linker flag... " >&6; }
7498: if test "${lt_cv_ld_force_load+set}" = set; then :
7499: $as_echo_n "(cached) " >&6
7500: else
7501: lt_cv_ld_force_load=no
7502: cat > conftest.c << _LT_EOF
7503: int forced_loaded() { return 2;}
7504: _LT_EOF
7505: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7506: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7507: echo "$AR cru libconftest.a conftest.o" >&5
7508: $AR cru libconftest.a conftest.o 2>&5
7509: echo "$RANLIB libconftest.a" >&5
7510: $RANLIB libconftest.a 2>&5
7511: cat > conftest.c << _LT_EOF
7512: int main() { return 0;}
7513: _LT_EOF
7514: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7515: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7516: _lt_result=$?
7517: if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7518: lt_cv_ld_force_load=yes
7519: else
7520: cat conftest.err >&5
7521: fi
7522: rm -f conftest.err libconftest.a conftest conftest.c
7523: rm -rf conftest.dSYM
7524:
7525: fi
7526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7527: $as_echo "$lt_cv_ld_force_load" >&6; }
7528: case $host_os in
7529: rhapsody* | darwin1.[012])
7530: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7531: darwin1.*)
7532: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7533: darwin*) # darwin 5.x on
7534: # if running on 10.5 or later, the deployment target defaults
7535: # to the OS version, if on x86, and 10.4, the deployment
7536: # target defaults to 10.4. Don't you love it?
7537: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7538: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7539: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7540: 10.[012]*)
7541: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7542: 10.*)
7543: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7544: esac
7545: ;;
7546: esac
7547: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7548: _lt_dar_single_mod='$single_module'
7549: fi
7550: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7551: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7552: else
7553: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7554: fi
7555: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7556: _lt_dsymutil='~$DSYMUTIL $lib || :'
7557: else
7558: _lt_dsymutil=
7559: fi
7560: ;;
7561: esac
7562:
7563: for ac_header in dlfcn.h
7564: do :
7565: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7566: "
7567: if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7568: cat >>confdefs.h <<_ACEOF
7569: #define HAVE_DLFCN_H 1
7570: _ACEOF
7571:
7572: fi
7573:
7574: done
7575:
7576:
7577:
7578:
7579:
7580: # Set options
7581:
7582:
7583:
7584: enable_dlopen=no
7585:
7586:
7587:
7588: # Check whether --enable-shared was given.
7589: if test "${enable_shared+set}" = set; then :
7590: enableval=$enable_shared; p=${PACKAGE-default}
7591: case $enableval in
7592: yes) enable_shared=yes ;;
7593: no) enable_shared=no ;;
7594: *)
7595: enable_shared=no
7596: # Look at the argument we got. We use all the common list separators.
7597: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7598: for pkg in $enableval; do
7599: IFS="$lt_save_ifs"
7600: if test "X$pkg" = "X$p"; then
7601: enable_shared=yes
7602: fi
7603: done
7604: IFS="$lt_save_ifs"
7605: ;;
7606: esac
7607: else
7608: enable_shared=yes
7609: fi
7610:
7611:
7612:
7613:
7614:
7615:
7616:
7617:
7618:
7619: # Check whether --enable-static was given.
7620: if test "${enable_static+set}" = set; then :
7621: enableval=$enable_static; p=${PACKAGE-default}
7622: case $enableval in
7623: yes) enable_static=yes ;;
7624: no) enable_static=no ;;
7625: *)
7626: enable_static=no
7627: # Look at the argument we got. We use all the common list separators.
7628: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7629: for pkg in $enableval; do
7630: IFS="$lt_save_ifs"
7631: if test "X$pkg" = "X$p"; then
7632: enable_static=yes
7633: fi
7634: done
7635: IFS="$lt_save_ifs"
7636: ;;
7637: esac
7638: else
7639: enable_static=yes
7640: fi
7641:
7642:
7643:
7644:
7645:
7646:
7647:
7648:
7649:
7650:
7651: # Check whether --with-pic was given.
7652: if test "${with_pic+set}" = set; then :
7653: withval=$with_pic; pic_mode="$withval"
7654: else
7655: pic_mode=default
7656: fi
7657:
7658:
7659: test -z "$pic_mode" && pic_mode=default
7660:
7661:
7662:
7663:
7664:
7665:
7666:
7667: # Check whether --enable-fast-install was given.
7668: if test "${enable_fast_install+set}" = set; then :
7669: enableval=$enable_fast_install; p=${PACKAGE-default}
7670: case $enableval in
7671: yes) enable_fast_install=yes ;;
7672: no) enable_fast_install=no ;;
7673: *)
7674: enable_fast_install=no
7675: # Look at the argument we got. We use all the common list separators.
7676: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7677: for pkg in $enableval; do
7678: IFS="$lt_save_ifs"
7679: if test "X$pkg" = "X$p"; then
7680: enable_fast_install=yes
7681: fi
7682: done
7683: IFS="$lt_save_ifs"
7684: ;;
7685: esac
7686: else
7687: enable_fast_install=yes
7688: fi
7689:
7690:
7691:
7692:
7693:
7694:
7695:
7696:
7697:
7698:
7699:
7700: # This can be used to rebuild libtool when needed
7701: LIBTOOL_DEPS="$ltmain"
7702:
7703: # Always use our own libtool.
7704: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7705:
7706:
7707:
7708:
7709:
7710:
7711:
7712:
7713:
7714:
7715:
7716:
7717:
7718:
7719:
7720:
7721:
7722:
7723:
7724:
7725:
7726:
7727:
7728:
7729:
7730:
7731: test -z "$LN_S" && LN_S="ln -s"
7732:
7733:
7734:
7735:
7736:
7737:
7738:
7739:
7740:
7741:
7742:
7743:
7744:
7745:
7746: if test -n "${ZSH_VERSION+set}" ; then
7747: setopt NO_GLOB_SUBST
7748: fi
7749:
7750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7751: $as_echo_n "checking for objdir... " >&6; }
7752: if test "${lt_cv_objdir+set}" = set; then :
7753: $as_echo_n "(cached) " >&6
7754: else
7755: rm -f .libs 2>/dev/null
7756: mkdir .libs 2>/dev/null
7757: if test -d .libs; then
7758: lt_cv_objdir=.libs
7759: else
7760: # MS-DOS does not allow filenames that begin with a dot.
7761: lt_cv_objdir=_libs
7762: fi
7763: rmdir .libs 2>/dev/null
7764: fi
7765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7766: $as_echo "$lt_cv_objdir" >&6; }
7767: objdir=$lt_cv_objdir
7768:
7769:
7770:
7771:
7772:
7773: cat >>confdefs.h <<_ACEOF
7774: #define LT_OBJDIR "$lt_cv_objdir/"
7775: _ACEOF
7776:
7777:
7778:
7779:
7780: case $host_os in
7781: aix3*)
7782: # AIX sometimes has problems with the GCC collect2 program. For some
7783: # reason, if we set the COLLECT_NAMES environment variable, the problems
7784: # vanish in a puff of smoke.
7785: if test "X${COLLECT_NAMES+set}" != Xset; then
7786: COLLECT_NAMES=
7787: export COLLECT_NAMES
7788: fi
7789: ;;
7790: esac
7791:
7792: # Global variables:
7793: ofile=libtool
7794: can_build_shared=yes
7795:
7796: # All known linkers require a `.a' archive for static linking (except MSVC,
7797: # which needs '.lib').
7798: libext=a
7799:
7800: with_gnu_ld="$lt_cv_prog_gnu_ld"
7801:
7802: old_CC="$CC"
7803: old_CFLAGS="$CFLAGS"
7804:
7805: # Set sane defaults for various variables
7806: test -z "$CC" && CC=cc
7807: test -z "$LTCC" && LTCC=$CC
7808: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7809: test -z "$LD" && LD=ld
7810: test -z "$ac_objext" && ac_objext=o
7811:
7812: for cc_temp in $compiler""; do
7813: case $cc_temp in
7814: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7815: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7816: \-*) ;;
7817: *) break;;
7818: esac
7819: done
7820: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7821:
7822:
7823: # Only perform the check for file, if the check method requires it
7824: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7825: case $deplibs_check_method in
7826: file_magic*)
7827: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7829: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7830: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7831: $as_echo_n "(cached) " >&6
7832: else
7833: case $MAGIC_CMD in
7834: [\\/*] | ?:[\\/]*)
7835: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7836: ;;
7837: *)
7838: lt_save_MAGIC_CMD="$MAGIC_CMD"
7839: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7840: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7841: for ac_dir in $ac_dummy; do
7842: IFS="$lt_save_ifs"
7843: test -z "$ac_dir" && ac_dir=.
7844: if test -f $ac_dir/${ac_tool_prefix}file; then
7845: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7846: if test -n "$file_magic_test_file"; then
7847: case $deplibs_check_method in
7848: "file_magic "*)
7849: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7850: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7851: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7852: $EGREP "$file_magic_regex" > /dev/null; then
7853: :
7854: else
7855: cat <<_LT_EOF 1>&2
7856:
7857: *** Warning: the command libtool uses to detect shared libraries,
7858: *** $file_magic_cmd, produces output that libtool cannot recognize.
7859: *** The result is that libtool may fail to recognize shared libraries
7860: *** as such. This will affect the creation of libtool libraries that
7861: *** depend on shared libraries, but programs linked with such libtool
7862: *** libraries will work regardless of this problem. Nevertheless, you
7863: *** may want to report the problem to your system manager and/or to
7864: *** bug-libtool@gnu.org
7865:
7866: _LT_EOF
7867: fi ;;
7868: esac
7869: fi
7870: break
7871: fi
7872: done
7873: IFS="$lt_save_ifs"
7874: MAGIC_CMD="$lt_save_MAGIC_CMD"
7875: ;;
7876: esac
7877: fi
7878:
7879: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7880: if test -n "$MAGIC_CMD"; then
7881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7882: $as_echo "$MAGIC_CMD" >&6; }
7883: else
7884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885: $as_echo "no" >&6; }
7886: fi
7887:
7888:
7889:
7890:
7891:
7892: if test -z "$lt_cv_path_MAGIC_CMD"; then
7893: if test -n "$ac_tool_prefix"; then
7894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7895: $as_echo_n "checking for file... " >&6; }
7896: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7897: $as_echo_n "(cached) " >&6
7898: else
7899: case $MAGIC_CMD in
7900: [\\/*] | ?:[\\/]*)
7901: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7902: ;;
7903: *)
7904: lt_save_MAGIC_CMD="$MAGIC_CMD"
7905: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7906: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7907: for ac_dir in $ac_dummy; do
7908: IFS="$lt_save_ifs"
7909: test -z "$ac_dir" && ac_dir=.
7910: if test -f $ac_dir/file; then
7911: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7912: if test -n "$file_magic_test_file"; then
7913: case $deplibs_check_method in
7914: "file_magic "*)
7915: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7916: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7917: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7918: $EGREP "$file_magic_regex" > /dev/null; then
7919: :
7920: else
7921: cat <<_LT_EOF 1>&2
7922:
7923: *** Warning: the command libtool uses to detect shared libraries,
7924: *** $file_magic_cmd, produces output that libtool cannot recognize.
7925: *** The result is that libtool may fail to recognize shared libraries
7926: *** as such. This will affect the creation of libtool libraries that
7927: *** depend on shared libraries, but programs linked with such libtool
7928: *** libraries will work regardless of this problem. Nevertheless, you
7929: *** may want to report the problem to your system manager and/or to
7930: *** bug-libtool@gnu.org
7931:
7932: _LT_EOF
7933: fi ;;
7934: esac
7935: fi
7936: break
7937: fi
7938: done
7939: IFS="$lt_save_ifs"
7940: MAGIC_CMD="$lt_save_MAGIC_CMD"
7941: ;;
7942: esac
7943: fi
7944:
7945: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7946: if test -n "$MAGIC_CMD"; then
7947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7948: $as_echo "$MAGIC_CMD" >&6; }
7949: else
7950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951: $as_echo "no" >&6; }
7952: fi
7953:
7954:
7955: else
7956: MAGIC_CMD=:
7957: fi
7958: fi
7959:
7960: fi
7961: ;;
7962: esac
7963:
7964: # Use C for the default configuration in the libtool script
7965:
7966: lt_save_CC="$CC"
7967: ac_ext=c
7968: ac_cpp='$CPP $CPPFLAGS'
7969: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972:
7973:
7974: # Source file extension for C test sources.
7975: ac_ext=c
7976:
7977: # Object file extension for compiled C test sources.
7978: objext=o
7979: objext=$objext
7980:
7981: # Code to be used in simple compile tests
7982: lt_simple_compile_test_code="int some_variable = 0;"
7983:
7984: # Code to be used in simple link tests
7985: lt_simple_link_test_code='int main(){return(0);}'
7986:
7987:
7988:
7989:
7990:
7991:
7992:
7993: # If no C compiler was specified, use CC.
7994: LTCC=${LTCC-"$CC"}
7995:
7996: # If no C compiler flags were specified, use CFLAGS.
7997: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7998:
7999: # Allow CC to be a program name with arguments.
8000: compiler=$CC
8001:
8002: # Save the default compiler, since it gets overwritten when the other
8003: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8004: compiler_DEFAULT=$CC
8005:
8006: # save warnings/boilerplate of simple test code
8007: ac_outfile=conftest.$ac_objext
8008: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8009: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8010: _lt_compiler_boilerplate=`cat conftest.err`
8011: $RM conftest*
8012:
8013: ac_outfile=conftest.$ac_objext
8014: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8015: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8016: _lt_linker_boilerplate=`cat conftest.err`
8017: $RM -r conftest*
8018:
8019:
8020: ## CAVEAT EMPTOR:
8021: ## There is no encapsulation within the following macros, do not change
8022: ## the running order or otherwise move them around unless you know exactly
8023: ## what you are doing...
8024: if test -n "$compiler"; then
8025:
8026: lt_prog_compiler_no_builtin_flag=
8027:
8028: if test "$GCC" = yes; then
8029: case $cc_basename in
8030: nvcc*)
8031: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8032: *)
8033: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8034: esac
8035:
8036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8037: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8038: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8039: $as_echo_n "(cached) " >&6
8040: else
8041: lt_cv_prog_compiler_rtti_exceptions=no
8042: ac_outfile=conftest.$ac_objext
8043: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8044: lt_compiler_flag="-fno-rtti -fno-exceptions"
8045: # Insert the option either (1) after the last *FLAGS variable, or
8046: # (2) before a word containing "conftest.", or (3) at the end.
8047: # Note that $ac_compile itself does not contain backslashes and begins
8048: # with a dollar sign (not a hyphen), so the echo should work correctly.
8049: # The option is referenced via a variable to avoid confusing sed.
8050: lt_compile=`echo "$ac_compile" | $SED \
8051: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053: -e 's:$: $lt_compiler_flag:'`
8054: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8055: (eval "$lt_compile" 2>conftest.err)
8056: ac_status=$?
8057: cat conftest.err >&5
8058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059: if (exit $ac_status) && test -s "$ac_outfile"; then
8060: # The compiler can only warn and ignore the option if not recognized
8061: # So say no if there are warnings other than the usual output.
8062: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8063: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8064: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8065: lt_cv_prog_compiler_rtti_exceptions=yes
8066: fi
8067: fi
8068: $RM conftest*
8069:
8070: fi
8071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8072: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8073:
8074: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8075: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8076: else
8077: :
8078: fi
8079:
8080: fi
8081:
8082:
8083:
8084:
8085:
8086:
8087: lt_prog_compiler_wl=
8088: lt_prog_compiler_pic=
8089: lt_prog_compiler_static=
8090:
8091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8092: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8093:
8094: if test "$GCC" = yes; then
8095: lt_prog_compiler_wl='-Wl,'
8096: lt_prog_compiler_static='-static'
8097:
8098: case $host_os in
8099: aix*)
8100: # All AIX code is PIC.
8101: if test "$host_cpu" = ia64; then
8102: # AIX 5 now supports IA64 processor
8103: lt_prog_compiler_static='-Bstatic'
8104: fi
8105: ;;
8106:
8107: amigaos*)
8108: case $host_cpu in
8109: powerpc)
8110: # see comment about AmigaOS4 .so support
8111: lt_prog_compiler_pic='-fPIC'
8112: ;;
8113: m68k)
8114: # FIXME: we need at least 68020 code to build shared libraries, but
8115: # adding the `-m68020' flag to GCC prevents building anything better,
8116: # like `-m68040'.
8117: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8118: ;;
8119: esac
8120: ;;
8121:
8122: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8123: # PIC is the default for these OSes.
8124: ;;
8125:
8126: mingw* | cygwin* | pw32* | os2* | cegcc*)
8127: # This hack is so that the source file can tell whether it is being
8128: # built for inclusion in a dll (and should export symbols for example).
8129: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8130: # (--disable-auto-import) libraries
8131: lt_prog_compiler_pic='-DDLL_EXPORT'
8132: ;;
8133:
8134: darwin* | rhapsody*)
8135: # PIC is the default on this platform
8136: # Common symbols not allowed in MH_DYLIB files
8137: lt_prog_compiler_pic='-fno-common'
8138: ;;
8139:
8140: haiku*)
8141: # PIC is the default for Haiku.
8142: # The "-static" flag exists, but is broken.
8143: lt_prog_compiler_static=
8144: ;;
8145:
8146: hpux*)
8147: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8148: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8149: # sets the default TLS model and affects inlining.
8150: case $host_cpu in
8151: hppa*64*)
8152: # +Z the default
8153: ;;
8154: *)
8155: lt_prog_compiler_pic='-fPIC'
8156: ;;
8157: esac
8158: ;;
8159:
8160: interix[3-9]*)
8161: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8162: # Instead, we relocate shared libraries at runtime.
8163: ;;
8164:
8165: msdosdjgpp*)
8166: # Just because we use GCC doesn't mean we suddenly get shared libraries
8167: # on systems that don't support them.
8168: lt_prog_compiler_can_build_shared=no
8169: enable_shared=no
8170: ;;
8171:
8172: *nto* | *qnx*)
8173: # QNX uses GNU C++, but need to define -shared option too, otherwise
8174: # it will coredump.
8175: lt_prog_compiler_pic='-fPIC -shared'
8176: ;;
8177:
8178: sysv4*MP*)
8179: if test -d /usr/nec; then
8180: lt_prog_compiler_pic=-Kconform_pic
8181: fi
8182: ;;
8183:
8184: *)
8185: lt_prog_compiler_pic='-fPIC'
8186: ;;
8187: esac
8188:
8189: case $cc_basename in
8190: nvcc*) # Cuda Compiler Driver 2.2
8191: lt_prog_compiler_wl='-Xlinker '
8192: lt_prog_compiler_pic='-Xcompiler -fPIC'
8193: ;;
8194: esac
8195: else
8196: # PORTME Check for flag to pass linker flags through the system compiler.
8197: case $host_os in
8198: aix*)
8199: lt_prog_compiler_wl='-Wl,'
8200: if test "$host_cpu" = ia64; then
8201: # AIX 5 now supports IA64 processor
8202: lt_prog_compiler_static='-Bstatic'
8203: else
8204: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8205: fi
8206: ;;
8207:
8208: mingw* | cygwin* | pw32* | os2* | cegcc*)
8209: # This hack is so that the source file can tell whether it is being
8210: # built for inclusion in a dll (and should export symbols for example).
8211: lt_prog_compiler_pic='-DDLL_EXPORT'
8212: ;;
8213:
8214: hpux9* | hpux10* | hpux11*)
8215: lt_prog_compiler_wl='-Wl,'
8216: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8217: # not for PA HP-UX.
8218: case $host_cpu in
8219: hppa*64*|ia64*)
8220: # +Z the default
8221: ;;
8222: *)
8223: lt_prog_compiler_pic='+Z'
8224: ;;
8225: esac
8226: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8227: lt_prog_compiler_static='${wl}-a ${wl}archive'
8228: ;;
8229:
8230: irix5* | irix6* | nonstopux*)
8231: lt_prog_compiler_wl='-Wl,'
8232: # PIC (with -KPIC) is the default.
8233: lt_prog_compiler_static='-non_shared'
8234: ;;
8235:
8236: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8237: case $cc_basename in
8238: # old Intel for x86_64 which still supported -KPIC.
8239: ecc*)
8240: lt_prog_compiler_wl='-Wl,'
8241: lt_prog_compiler_pic='-KPIC'
8242: lt_prog_compiler_static='-static'
8243: ;;
8244: # icc used to be incompatible with GCC.
8245: # ICC 10 doesn't accept -KPIC any more.
8246: icc* | ifort*)
8247: lt_prog_compiler_wl='-Wl,'
8248: lt_prog_compiler_pic='-fPIC'
8249: lt_prog_compiler_static='-static'
8250: ;;
8251: # Lahey Fortran 8.1.
8252: lf95*)
8253: lt_prog_compiler_wl='-Wl,'
8254: lt_prog_compiler_pic='--shared'
8255: lt_prog_compiler_static='--static'
8256: ;;
8257: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8258: # Portland Group compilers (*not* the Pentium gcc compiler,
8259: # which looks to be a dead project)
8260: lt_prog_compiler_wl='-Wl,'
8261: lt_prog_compiler_pic='-fpic'
8262: lt_prog_compiler_static='-Bstatic'
8263: ;;
8264: ccc*)
8265: lt_prog_compiler_wl='-Wl,'
8266: # All Alpha code is PIC.
8267: lt_prog_compiler_static='-non_shared'
8268: ;;
8269: xl* | bgxl* | bgf* | mpixl*)
8270: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8271: lt_prog_compiler_wl='-Wl,'
8272: lt_prog_compiler_pic='-qpic'
8273: lt_prog_compiler_static='-qstaticlink'
8274: ;;
8275: *)
8276: case `$CC -V 2>&1 | sed 5q` in
8277: *Sun\ F* | *Sun*Fortran*)
8278: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8279: lt_prog_compiler_pic='-KPIC'
8280: lt_prog_compiler_static='-Bstatic'
8281: lt_prog_compiler_wl=''
8282: ;;
8283: *Sun\ C*)
8284: # Sun C 5.9
8285: lt_prog_compiler_pic='-KPIC'
8286: lt_prog_compiler_static='-Bstatic'
8287: lt_prog_compiler_wl='-Wl,'
8288: ;;
8289: esac
8290: ;;
8291: esac
8292: ;;
8293:
8294: newsos6)
8295: lt_prog_compiler_pic='-KPIC'
8296: lt_prog_compiler_static='-Bstatic'
8297: ;;
8298:
8299: *nto* | *qnx*)
8300: # QNX uses GNU C++, but need to define -shared option too, otherwise
8301: # it will coredump.
8302: lt_prog_compiler_pic='-fPIC -shared'
8303: ;;
8304:
8305: osf3* | osf4* | osf5*)
8306: lt_prog_compiler_wl='-Wl,'
8307: # All OSF/1 code is PIC.
8308: lt_prog_compiler_static='-non_shared'
8309: ;;
8310:
8311: rdos*)
8312: lt_prog_compiler_static='-non_shared'
8313: ;;
8314:
8315: solaris*)
8316: lt_prog_compiler_pic='-KPIC'
8317: lt_prog_compiler_static='-Bstatic'
8318: case $cc_basename in
8319: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8320: lt_prog_compiler_wl='-Qoption ld ';;
8321: *)
8322: lt_prog_compiler_wl='-Wl,';;
8323: esac
8324: ;;
8325:
8326: sunos4*)
8327: lt_prog_compiler_wl='-Qoption ld '
8328: lt_prog_compiler_pic='-PIC'
8329: lt_prog_compiler_static='-Bstatic'
8330: ;;
8331:
8332: sysv4 | sysv4.2uw2* | sysv4.3*)
8333: lt_prog_compiler_wl='-Wl,'
8334: lt_prog_compiler_pic='-KPIC'
8335: lt_prog_compiler_static='-Bstatic'
8336: ;;
8337:
8338: sysv4*MP*)
8339: if test -d /usr/nec ;then
8340: lt_prog_compiler_pic='-Kconform_pic'
8341: lt_prog_compiler_static='-Bstatic'
8342: fi
8343: ;;
8344:
8345: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8346: lt_prog_compiler_wl='-Wl,'
8347: lt_prog_compiler_pic='-KPIC'
8348: lt_prog_compiler_static='-Bstatic'
8349: ;;
8350:
8351: unicos*)
8352: lt_prog_compiler_wl='-Wl,'
8353: lt_prog_compiler_can_build_shared=no
8354: ;;
8355:
8356: uts4*)
8357: lt_prog_compiler_pic='-pic'
8358: lt_prog_compiler_static='-Bstatic'
8359: ;;
8360:
8361: *)
8362: lt_prog_compiler_can_build_shared=no
8363: ;;
8364: esac
8365: fi
8366:
8367: case $host_os in
8368: # For platforms which do not support PIC, -DPIC is meaningless:
8369: *djgpp*)
8370: lt_prog_compiler_pic=
8371: ;;
8372: *)
8373: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8374: ;;
8375: esac
8376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8377: $as_echo "$lt_prog_compiler_pic" >&6; }
8378:
8379:
8380:
8381:
8382:
8383:
8384: #
8385: # Check to make sure the PIC flag actually works.
8386: #
8387: if test -n "$lt_prog_compiler_pic"; then
8388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8389: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8390: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8391: $as_echo_n "(cached) " >&6
8392: else
8393: lt_cv_prog_compiler_pic_works=no
8394: ac_outfile=conftest.$ac_objext
8395: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8396: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8397: # Insert the option either (1) after the last *FLAGS variable, or
8398: # (2) before a word containing "conftest.", or (3) at the end.
8399: # Note that $ac_compile itself does not contain backslashes and begins
8400: # with a dollar sign (not a hyphen), so the echo should work correctly.
8401: # The option is referenced via a variable to avoid confusing sed.
8402: lt_compile=`echo "$ac_compile" | $SED \
8403: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8404: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8405: -e 's:$: $lt_compiler_flag:'`
8406: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8407: (eval "$lt_compile" 2>conftest.err)
8408: ac_status=$?
8409: cat conftest.err >&5
8410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411: if (exit $ac_status) && test -s "$ac_outfile"; then
8412: # The compiler can only warn and ignore the option if not recognized
8413: # So say no if there are warnings other than the usual output.
8414: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8415: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8416: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8417: lt_cv_prog_compiler_pic_works=yes
8418: fi
8419: fi
8420: $RM conftest*
8421:
8422: fi
8423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8424: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8425:
8426: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8427: case $lt_prog_compiler_pic in
8428: "" | " "*) ;;
8429: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8430: esac
8431: else
8432: lt_prog_compiler_pic=
8433: lt_prog_compiler_can_build_shared=no
8434: fi
8435:
8436: fi
8437:
8438:
8439:
8440:
8441:
8442:
8443: #
8444: # Check to make sure the static flag actually works.
8445: #
8446: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8447: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8448: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8449: if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8450: $as_echo_n "(cached) " >&6
8451: else
8452: lt_cv_prog_compiler_static_works=no
8453: save_LDFLAGS="$LDFLAGS"
8454: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8455: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8456: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8457: # The linker can only warn and ignore the option if not recognized
8458: # So say no if there are warnings
8459: if test -s conftest.err; then
8460: # Append any errors to the config.log.
8461: cat conftest.err 1>&5
8462: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8463: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8464: if diff conftest.exp conftest.er2 >/dev/null; then
8465: lt_cv_prog_compiler_static_works=yes
8466: fi
8467: else
8468: lt_cv_prog_compiler_static_works=yes
8469: fi
8470: fi
8471: $RM -r conftest*
8472: LDFLAGS="$save_LDFLAGS"
8473:
8474: fi
8475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8476: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8477:
8478: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8479: :
8480: else
8481: lt_prog_compiler_static=
8482: fi
8483:
8484:
8485:
8486:
8487:
8488:
8489:
8490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8491: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8492: if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8493: $as_echo_n "(cached) " >&6
8494: else
8495: lt_cv_prog_compiler_c_o=no
8496: $RM -r conftest 2>/dev/null
8497: mkdir conftest
8498: cd conftest
8499: mkdir out
8500: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8501:
8502: lt_compiler_flag="-o out/conftest2.$ac_objext"
8503: # Insert the option either (1) after the last *FLAGS variable, or
8504: # (2) before a word containing "conftest.", or (3) at the end.
8505: # Note that $ac_compile itself does not contain backslashes and begins
8506: # with a dollar sign (not a hyphen), so the echo should work correctly.
8507: lt_compile=`echo "$ac_compile" | $SED \
8508: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8509: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8510: -e 's:$: $lt_compiler_flag:'`
8511: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8512: (eval "$lt_compile" 2>out/conftest.err)
8513: ac_status=$?
8514: cat out/conftest.err >&5
8515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8517: then
8518: # The compiler can only warn and ignore the option if not recognized
8519: # So say no if there are warnings
8520: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8521: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8522: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8523: lt_cv_prog_compiler_c_o=yes
8524: fi
8525: fi
8526: chmod u+w . 2>&5
8527: $RM conftest*
8528: # SGI C++ compiler will create directory out/ii_files/ for
8529: # template instantiation
8530: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8531: $RM out/* && rmdir out
8532: cd ..
8533: $RM -r conftest
8534: $RM conftest*
8535:
8536: fi
8537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8538: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8539:
8540:
8541:
8542:
8543:
8544:
8545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8546: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8547: if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8548: $as_echo_n "(cached) " >&6
8549: else
8550: lt_cv_prog_compiler_c_o=no
8551: $RM -r conftest 2>/dev/null
8552: mkdir conftest
8553: cd conftest
8554: mkdir out
8555: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8556:
8557: lt_compiler_flag="-o out/conftest2.$ac_objext"
8558: # Insert the option either (1) after the last *FLAGS variable, or
8559: # (2) before a word containing "conftest.", or (3) at the end.
8560: # Note that $ac_compile itself does not contain backslashes and begins
8561: # with a dollar sign (not a hyphen), so the echo should work correctly.
8562: lt_compile=`echo "$ac_compile" | $SED \
8563: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565: -e 's:$: $lt_compiler_flag:'`
8566: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8567: (eval "$lt_compile" 2>out/conftest.err)
8568: ac_status=$?
8569: cat out/conftest.err >&5
8570: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8572: then
8573: # The compiler can only warn and ignore the option if not recognized
8574: # So say no if there are warnings
8575: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8576: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8577: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8578: lt_cv_prog_compiler_c_o=yes
8579: fi
8580: fi
8581: chmod u+w . 2>&5
8582: $RM conftest*
8583: # SGI C++ compiler will create directory out/ii_files/ for
8584: # template instantiation
8585: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8586: $RM out/* && rmdir out
8587: cd ..
8588: $RM -r conftest
8589: $RM conftest*
8590:
8591: fi
8592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8593: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8594:
8595:
8596:
8597:
8598: hard_links="nottested"
8599: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8600: # do not overwrite the value of need_locks provided by the user
8601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8602: $as_echo_n "checking if we can lock with hard links... " >&6; }
8603: hard_links=yes
8604: $RM conftest*
8605: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8606: touch conftest.a
8607: ln conftest.a conftest.b 2>&5 || hard_links=no
8608: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8610: $as_echo "$hard_links" >&6; }
8611: if test "$hard_links" = no; then
8612: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8613: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8614: need_locks=warn
8615: fi
8616: else
8617: need_locks=no
8618: fi
8619:
8620:
8621:
8622:
8623:
8624:
8625: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8626: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8627:
8628: runpath_var=
8629: allow_undefined_flag=
8630: always_export_symbols=no
8631: archive_cmds=
8632: archive_expsym_cmds=
8633: compiler_needs_object=no
8634: enable_shared_with_static_runtimes=no
8635: export_dynamic_flag_spec=
8636: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8637: hardcode_automatic=no
8638: hardcode_direct=no
8639: hardcode_direct_absolute=no
8640: hardcode_libdir_flag_spec=
8641: hardcode_libdir_flag_spec_ld=
8642: hardcode_libdir_separator=
8643: hardcode_minus_L=no
8644: hardcode_shlibpath_var=unsupported
8645: inherit_rpath=no
8646: link_all_deplibs=unknown
8647: module_cmds=
8648: module_expsym_cmds=
8649: old_archive_from_new_cmds=
8650: old_archive_from_expsyms_cmds=
8651: thread_safe_flag_spec=
8652: whole_archive_flag_spec=
8653: # include_expsyms should be a list of space-separated symbols to be *always*
8654: # included in the symbol list
8655: include_expsyms=
8656: # exclude_expsyms can be an extended regexp of symbols to exclude
8657: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8658: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8659: # as well as any symbol that contains `d'.
8660: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8661: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8662: # platforms (ab)use it in PIC code, but their linkers get confused if
8663: # the symbol is explicitly referenced. Since portable code cannot
8664: # rely on this symbol name, it's probably fine to never include it in
8665: # preloaded symbol tables.
8666: # Exclude shared library initialization/finalization symbols.
8667: extract_expsyms_cmds=
8668:
8669: case $host_os in
8670: cygwin* | mingw* | pw32* | cegcc*)
8671: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8672: # When not using gcc, we currently assume that we are using
8673: # Microsoft Visual C++.
8674: if test "$GCC" != yes; then
8675: with_gnu_ld=no
8676: fi
8677: ;;
8678: interix*)
8679: # we just hope/assume this is gcc and not c89 (= MSVC++)
8680: with_gnu_ld=yes
8681: ;;
8682: openbsd*)
8683: with_gnu_ld=no
8684: ;;
8685: esac
8686:
8687: ld_shlibs=yes
8688:
8689: # On some targets, GNU ld is compatible enough with the native linker
8690: # that we're better off using the native interface for both.
8691: lt_use_gnu_ld_interface=no
8692: if test "$with_gnu_ld" = yes; then
8693: case $host_os in
8694: aix*)
8695: # The AIX port of GNU ld has always aspired to compatibility
8696: # with the native linker. However, as the warning in the GNU ld
8697: # block says, versions before 2.19.5* couldn't really create working
8698: # shared libraries, regardless of the interface used.
8699: case `$LD -v 2>&1` in
8700: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8701: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8702: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8703: *)
8704: lt_use_gnu_ld_interface=yes
8705: ;;
8706: esac
8707: ;;
8708: *)
8709: lt_use_gnu_ld_interface=yes
8710: ;;
8711: esac
8712: fi
8713:
8714: if test "$lt_use_gnu_ld_interface" = yes; then
8715: # If archive_cmds runs LD, not CC, wlarc should be empty
8716: wlarc='${wl}'
8717:
8718: # Set some defaults for GNU ld with shared library support. These
8719: # are reset later if shared libraries are not supported. Putting them
8720: # here allows them to be overridden if necessary.
8721: runpath_var=LD_RUN_PATH
8722: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723: export_dynamic_flag_spec='${wl}--export-dynamic'
8724: # ancient GNU ld didn't support --whole-archive et. al.
8725: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8726: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8727: else
8728: whole_archive_flag_spec=
8729: fi
8730: supports_anon_versioning=no
8731: case `$LD -v 2>&1` in
8732: *GNU\ gold*) supports_anon_versioning=yes ;;
8733: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8734: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8735: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8736: *\ 2.11.*) ;; # other 2.11 versions
8737: *) supports_anon_versioning=yes ;;
8738: esac
8739:
8740: # See if GNU ld supports shared libraries.
8741: case $host_os in
8742: aix[3-9]*)
8743: # On AIX/PPC, the GNU linker is very broken
8744: if test "$host_cpu" != ia64; then
8745: ld_shlibs=no
8746: cat <<_LT_EOF 1>&2
8747:
8748: *** Warning: the GNU linker, at least up to release 2.19, is reported
8749: *** to be unable to reliably create shared libraries on AIX.
8750: *** Therefore, libtool is disabling shared libraries support. If you
8751: *** really care for shared libraries, you may want to install binutils
8752: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8753: *** You will then need to restart the configuration process.
8754:
8755: _LT_EOF
8756: fi
8757: ;;
8758:
8759: amigaos*)
8760: case $host_cpu in
8761: powerpc)
8762: # see comment about AmigaOS4 .so support
8763: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764: archive_expsym_cmds=''
8765: ;;
8766: m68k)
8767: 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)'
8768: hardcode_libdir_flag_spec='-L$libdir'
8769: hardcode_minus_L=yes
8770: ;;
8771: esac
8772: ;;
8773:
8774: beos*)
8775: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8776: allow_undefined_flag=unsupported
8777: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8778: # support --undefined. This deserves some investigation. FIXME
8779: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780: else
8781: ld_shlibs=no
8782: fi
8783: ;;
8784:
8785: cygwin* | mingw* | pw32* | cegcc*)
8786: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8787: # as there is no search path for DLLs.
8788: hardcode_libdir_flag_spec='-L$libdir'
8789: export_dynamic_flag_spec='${wl}--export-all-symbols'
8790: allow_undefined_flag=unsupported
8791: always_export_symbols=no
8792: enable_shared_with_static_runtimes=yes
8793: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8794:
8795: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8796: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8797: # If the export-symbols file already is a .def file (1st line
8798: # is EXPORTS), use it as is; otherwise, prepend...
8799: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8800: cp $export_symbols $output_objdir/$soname.def;
8801: else
8802: echo EXPORTS > $output_objdir/$soname.def;
8803: cat $export_symbols >> $output_objdir/$soname.def;
8804: fi~
8805: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8806: else
8807: ld_shlibs=no
8808: fi
8809: ;;
8810:
8811: haiku*)
8812: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813: link_all_deplibs=yes
8814: ;;
8815:
8816: interix[3-9]*)
8817: hardcode_direct=no
8818: hardcode_shlibpath_var=no
8819: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8820: export_dynamic_flag_spec='${wl}-E'
8821: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8822: # Instead, shared libraries are loaded at an image base (0x10000000 by
8823: # default) and relocated if they conflict, which is a slow very memory
8824: # consuming and fragmenting process. To avoid this, we pick a random,
8825: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8826: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8827: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8828: 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'
8829: ;;
8830:
8831: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8832: tmp_diet=no
8833: if test "$host_os" = linux-dietlibc; then
8834: case $cc_basename in
8835: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8836: esac
8837: fi
8838: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8839: && test "$tmp_diet" = no
8840: then
8841: tmp_addflag=
8842: tmp_sharedflag='-shared'
8843: case $cc_basename,$host_cpu in
8844: pgcc*) # Portland Group C compiler
8845: 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'
8846: tmp_addflag=' $pic_flag'
8847: ;;
8848: pgf77* | pgf90* | pgf95* | pgfortran*)
8849: # Portland Group f77 and f90 compilers
8850: 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'
8851: tmp_addflag=' $pic_flag -Mnomain' ;;
8852: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8853: tmp_addflag=' -i_dynamic' ;;
8854: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8855: tmp_addflag=' -i_dynamic -nofor_main' ;;
8856: ifc* | ifort*) # Intel Fortran compiler
8857: tmp_addflag=' -nofor_main' ;;
8858: lf95*) # Lahey Fortran 8.1
8859: whole_archive_flag_spec=
8860: tmp_sharedflag='--shared' ;;
8861: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8862: tmp_sharedflag='-qmkshrobj'
8863: tmp_addflag= ;;
8864: nvcc*) # Cuda Compiler Driver 2.2
8865: 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'
8866: compiler_needs_object=yes
8867: ;;
8868: esac
8869: case `$CC -V 2>&1 | sed 5q` in
8870: *Sun\ C*) # Sun C 5.9
8871: 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'
8872: compiler_needs_object=yes
8873: tmp_sharedflag='-G' ;;
8874: *Sun\ F*) # Sun Fortran 8.3
8875: tmp_sharedflag='-G' ;;
8876: esac
8877: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878:
8879: if test "x$supports_anon_versioning" = xyes; then
8880: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8881: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8882: echo "local: *; };" >> $output_objdir/$libname.ver~
8883: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8884: fi
8885:
8886: case $cc_basename in
8887: xlf* | bgf* | bgxlf* | mpixlf*)
8888: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8889: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8890: hardcode_libdir_flag_spec=
8891: hardcode_libdir_flag_spec_ld='-rpath $libdir'
8892: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8893: if test "x$supports_anon_versioning" = xyes; then
8894: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8895: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8896: echo "local: *; };" >> $output_objdir/$libname.ver~
8897: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8898: fi
8899: ;;
8900: esac
8901: else
8902: ld_shlibs=no
8903: fi
8904: ;;
8905:
8906: netbsd*)
8907: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8908: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8909: wlarc=
8910: else
8911: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8913: fi
8914: ;;
8915:
8916: solaris*)
8917: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8918: ld_shlibs=no
8919: cat <<_LT_EOF 1>&2
8920:
8921: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8922: *** create shared libraries on Solaris systems. Therefore, libtool
8923: *** is disabling shared libraries support. We urge you to upgrade GNU
8924: *** binutils to release 2.9.1 or newer. Another option is to modify
8925: *** your PATH or compiler configuration so that the native linker is
8926: *** used, and then restart.
8927:
8928: _LT_EOF
8929: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8930: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8932: else
8933: ld_shlibs=no
8934: fi
8935: ;;
8936:
8937: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8938: case `$LD -v 2>&1` in
8939: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8940: ld_shlibs=no
8941: cat <<_LT_EOF 1>&2
8942:
8943: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8944: *** reliably create shared libraries on SCO systems. Therefore, libtool
8945: *** is disabling shared libraries support. We urge you to upgrade GNU
8946: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8947: *** your PATH or compiler configuration so that the native linker is
8948: *** used, and then restart.
8949:
8950: _LT_EOF
8951: ;;
8952: *)
8953: # For security reasons, it is highly recommended that you always
8954: # use absolute paths for naming shared libraries, and exclude the
8955: # DT_RUNPATH tag from executables and libraries. But doing so
8956: # requires that you compile everything twice, which is a pain.
8957: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8958: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8961: else
8962: ld_shlibs=no
8963: fi
8964: ;;
8965: esac
8966: ;;
8967:
8968: sunos4*)
8969: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8970: wlarc=
8971: hardcode_direct=yes
8972: hardcode_shlibpath_var=no
8973: ;;
8974:
8975: *)
8976: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8977: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8979: else
8980: ld_shlibs=no
8981: fi
8982: ;;
8983: esac
8984:
8985: if test "$ld_shlibs" = no; then
8986: runpath_var=
8987: hardcode_libdir_flag_spec=
8988: export_dynamic_flag_spec=
8989: whole_archive_flag_spec=
8990: fi
8991: else
8992: # PORTME fill in a description of your system's linker (not GNU ld)
8993: case $host_os in
8994: aix3*)
8995: allow_undefined_flag=unsupported
8996: always_export_symbols=yes
8997: 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'
8998: # Note: this linker hardcodes the directories in LIBPATH if there
8999: # are no directories specified by -L.
9000: hardcode_minus_L=yes
9001: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9002: # Neither direct hardcoding nor static linking is supported with a
9003: # broken collect2.
9004: hardcode_direct=unsupported
9005: fi
9006: ;;
9007:
9008: aix[4-9]*)
9009: if test "$host_cpu" = ia64; then
9010: # On IA64, the linker does run time linking by default, so we don't
9011: # have to do anything special.
9012: aix_use_runtimelinking=no
9013: exp_sym_flag='-Bexport'
9014: no_entry_flag=""
9015: else
9016: # If we're using GNU nm, then we don't want the "-C" option.
9017: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9018: # Also, AIX nm treats weak defined symbols like other global
9019: # defined symbols, whereas GNU nm marks them as "W".
9020: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9021: 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'
9022: else
9023: 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'
9024: fi
9025: aix_use_runtimelinking=no
9026:
9027: # Test if we are trying to use run time linking or normal
9028: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9029: # need to do runtime linking.
9030: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9031: for ld_flag in $LDFLAGS; do
9032: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9033: aix_use_runtimelinking=yes
9034: break
9035: fi
9036: done
9037: ;;
9038: esac
9039:
9040: exp_sym_flag='-bexport'
9041: no_entry_flag='-bnoentry'
9042: fi
9043:
9044: # When large executables or shared objects are built, AIX ld can
9045: # have problems creating the table of contents. If linking a library
9046: # or program results in "error TOC overflow" add -mminimal-toc to
9047: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9048: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9049:
9050: archive_cmds=''
9051: hardcode_direct=yes
9052: hardcode_direct_absolute=yes
9053: hardcode_libdir_separator=':'
9054: link_all_deplibs=yes
9055: file_list_spec='${wl}-f,'
9056:
9057: if test "$GCC" = yes; then
9058: case $host_os in aix4.[012]|aix4.[012].*)
9059: # We only want to do this on AIX 4.2 and lower, the check
9060: # below for broken collect2 doesn't work under 4.3+
9061: collect2name=`${CC} -print-prog-name=collect2`
9062: if test -f "$collect2name" &&
9063: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9064: then
9065: # We have reworked collect2
9066: :
9067: else
9068: # We have old collect2
9069: hardcode_direct=unsupported
9070: # It fails to find uninstalled libraries when the uninstalled
9071: # path is not listed in the libpath. Setting hardcode_minus_L
9072: # to unsupported forces relinking
9073: hardcode_minus_L=yes
9074: hardcode_libdir_flag_spec='-L$libdir'
9075: hardcode_libdir_separator=
9076: fi
9077: ;;
9078: esac
9079: shared_flag='-shared'
9080: if test "$aix_use_runtimelinking" = yes; then
9081: shared_flag="$shared_flag "'${wl}-G'
9082: fi
9083: else
9084: # not using gcc
9085: if test "$host_cpu" = ia64; then
9086: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9087: # chokes on -Wl,-G. The following line is correct:
9088: shared_flag='-G'
9089: else
9090: if test "$aix_use_runtimelinking" = yes; then
9091: shared_flag='${wl}-G'
9092: else
9093: shared_flag='${wl}-bM:SRE'
9094: fi
9095: fi
9096: fi
9097:
9098: export_dynamic_flag_spec='${wl}-bexpall'
9099: # It seems that -bexpall does not export symbols beginning with
9100: # underscore (_), so it is better to generate a list of symbols to export.
9101: always_export_symbols=yes
9102: if test "$aix_use_runtimelinking" = yes; then
9103: # Warning - without using the other runtime loading flags (-brtl),
9104: # -berok will link without error, but may produce a broken library.
9105: allow_undefined_flag='-berok'
9106: # Determine the default libpath from the value encoded in an
9107: # empty executable.
9108: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109: /* end confdefs.h. */
9110:
9111: int
9112: main ()
9113: {
9114:
9115: ;
9116: return 0;
9117: }
9118: _ACEOF
9119: if ac_fn_c_try_link "$LINENO"; then :
9120:
9121: lt_aix_libpath_sed='
9122: /Import File Strings/,/^$/ {
9123: /^0/ {
9124: s/^0 *\(.*\)$/\1/
9125: p
9126: }
9127: }'
9128: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9129: # Check for a 64-bit object if we didn't find anything.
9130: if test -z "$aix_libpath"; then
9131: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9132: fi
9133: fi
9134: rm -f core conftest.err conftest.$ac_objext \
9135: conftest$ac_exeext conftest.$ac_ext
9136: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9137:
9138: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9139: 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"
9140: else
9141: if test "$host_cpu" = ia64; then
9142: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9143: allow_undefined_flag="-z nodefs"
9144: 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"
9145: else
9146: # Determine the default libpath from the value encoded in an
9147: # empty executable.
9148: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149: /* end confdefs.h. */
9150:
9151: int
9152: main ()
9153: {
9154:
9155: ;
9156: return 0;
9157: }
9158: _ACEOF
9159: if ac_fn_c_try_link "$LINENO"; then :
9160:
9161: lt_aix_libpath_sed='
9162: /Import File Strings/,/^$/ {
9163: /^0/ {
9164: s/^0 *\(.*\)$/\1/
9165: p
9166: }
9167: }'
9168: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9169: # Check for a 64-bit object if we didn't find anything.
9170: if test -z "$aix_libpath"; then
9171: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9172: fi
9173: fi
9174: rm -f core conftest.err conftest.$ac_objext \
9175: conftest$ac_exeext conftest.$ac_ext
9176: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9177:
9178: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9179: # Warning - without using the other run time loading flags,
9180: # -berok will link without error, but may produce a broken library.
9181: no_undefined_flag=' ${wl}-bernotok'
9182: allow_undefined_flag=' ${wl}-berok'
9183: if test "$with_gnu_ld" = yes; then
9184: # We only use this code for GNU lds that support --whole-archive.
9185: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9186: else
9187: # Exported symbols can be pulled into shared objects from archives
9188: whole_archive_flag_spec='$convenience'
9189: fi
9190: archive_cmds_need_lc=yes
9191: # This is similar to how AIX traditionally builds its shared libraries.
9192: 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'
9193: fi
9194: fi
9195: ;;
9196:
9197: amigaos*)
9198: case $host_cpu in
9199: powerpc)
9200: # see comment about AmigaOS4 .so support
9201: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202: archive_expsym_cmds=''
9203: ;;
9204: m68k)
9205: 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)'
9206: hardcode_libdir_flag_spec='-L$libdir'
9207: hardcode_minus_L=yes
9208: ;;
9209: esac
9210: ;;
9211:
9212: bsdi[45]*)
9213: export_dynamic_flag_spec=-rdynamic
9214: ;;
9215:
9216: cygwin* | mingw* | pw32* | cegcc*)
9217: # When not using gcc, we currently assume that we are using
9218: # Microsoft Visual C++.
9219: # hardcode_libdir_flag_spec is actually meaningless, as there is
9220: # no search path for DLLs.
9221: hardcode_libdir_flag_spec=' '
9222: allow_undefined_flag=unsupported
9223: # Tell ltmain to make .lib files, not .a files.
9224: libext=lib
9225: # Tell ltmain to make .dll files, not .so files.
9226: shrext_cmds=".dll"
9227: # FIXME: Setting linknames here is a bad hack.
9228: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9229: # The linker will automatically build a .lib file if we build a DLL.
9230: old_archive_from_new_cmds='true'
9231: # FIXME: Should let the user specify the lib program.
9232: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9233: fix_srcfile_path='`cygpath -w "$srcfile"`'
9234: enable_shared_with_static_runtimes=yes
9235: ;;
9236:
9237: darwin* | rhapsody*)
9238:
9239:
9240: archive_cmds_need_lc=no
9241: hardcode_direct=no
9242: hardcode_automatic=yes
9243: hardcode_shlibpath_var=unsupported
9244: if test "$lt_cv_ld_force_load" = "yes"; then
9245: 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\"`'
9246: else
9247: whole_archive_flag_spec=''
9248: fi
9249: link_all_deplibs=yes
9250: allow_undefined_flag="$_lt_dar_allow_undefined"
9251: case $cc_basename in
9252: ifort*) _lt_dar_can_shared=yes ;;
9253: *) _lt_dar_can_shared=$GCC ;;
9254: esac
9255: if test "$_lt_dar_can_shared" = "yes"; then
9256: output_verbose_link_cmd=func_echo_all
9257: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9258: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9259: 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}"
9260: 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}"
9261:
9262: else
9263: ld_shlibs=no
9264: fi
9265:
9266: ;;
9267:
9268: dgux*)
9269: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9270: hardcode_libdir_flag_spec='-L$libdir'
9271: hardcode_shlibpath_var=no
9272: ;;
9273:
9274: freebsd1*)
9275: ld_shlibs=no
9276: ;;
9277:
9278: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9279: # support. Future versions do this automatically, but an explicit c++rt0.o
9280: # does not break anything, and helps significantly (at the cost of a little
9281: # extra space).
9282: freebsd2.2*)
9283: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9284: hardcode_libdir_flag_spec='-R$libdir'
9285: hardcode_direct=yes
9286: hardcode_shlibpath_var=no
9287: ;;
9288:
9289: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9290: freebsd2*)
9291: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9292: hardcode_direct=yes
9293: hardcode_minus_L=yes
9294: hardcode_shlibpath_var=no
9295: ;;
9296:
9297: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9298: freebsd* | dragonfly*)
9299: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9300: hardcode_libdir_flag_spec='-R$libdir'
9301: hardcode_direct=yes
9302: hardcode_shlibpath_var=no
9303: ;;
9304:
9305: hpux9*)
9306: if test "$GCC" = yes; then
9307: archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9308: else
9309: 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'
9310: fi
9311: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9312: hardcode_libdir_separator=:
9313: hardcode_direct=yes
9314:
9315: # hardcode_minus_L: Not really in the search PATH,
9316: # but as the default location of the library.
9317: hardcode_minus_L=yes
9318: export_dynamic_flag_spec='${wl}-E'
9319: ;;
9320:
9321: hpux10*)
9322: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9323: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9324: else
9325: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9326: fi
9327: if test "$with_gnu_ld" = no; then
9328: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9329: hardcode_libdir_flag_spec_ld='+b $libdir'
9330: hardcode_libdir_separator=:
9331: hardcode_direct=yes
9332: hardcode_direct_absolute=yes
9333: export_dynamic_flag_spec='${wl}-E'
9334: # hardcode_minus_L: Not really in the search PATH,
9335: # but as the default location of the library.
9336: hardcode_minus_L=yes
9337: fi
9338: ;;
9339:
9340: hpux11*)
9341: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9342: case $host_cpu in
9343: hppa*64*)
9344: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9345: ;;
9346: ia64*)
9347: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9348: ;;
9349: *)
9350: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9351: ;;
9352: esac
9353: else
9354: case $host_cpu in
9355: hppa*64*)
9356: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9357: ;;
9358: ia64*)
9359: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9360: ;;
9361: *)
9362:
9363: # Older versions of the 11.00 compiler do not understand -b yet
9364: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9366: $as_echo_n "checking if $CC understands -b... " >&6; }
9367: if test "${lt_cv_prog_compiler__b+set}" = set; then :
9368: $as_echo_n "(cached) " >&6
9369: else
9370: lt_cv_prog_compiler__b=no
9371: save_LDFLAGS="$LDFLAGS"
9372: LDFLAGS="$LDFLAGS -b"
9373: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9374: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9375: # The linker can only warn and ignore the option if not recognized
9376: # So say no if there are warnings
9377: if test -s conftest.err; then
9378: # Append any errors to the config.log.
9379: cat conftest.err 1>&5
9380: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9381: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9382: if diff conftest.exp conftest.er2 >/dev/null; then
9383: lt_cv_prog_compiler__b=yes
9384: fi
9385: else
9386: lt_cv_prog_compiler__b=yes
9387: fi
9388: fi
9389: $RM -r conftest*
9390: LDFLAGS="$save_LDFLAGS"
9391:
9392: fi
9393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9394: $as_echo "$lt_cv_prog_compiler__b" >&6; }
9395:
9396: if test x"$lt_cv_prog_compiler__b" = xyes; then
9397: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398: else
9399: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9400: fi
9401:
9402: ;;
9403: esac
9404: fi
9405: if test "$with_gnu_ld" = no; then
9406: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9407: hardcode_libdir_separator=:
9408:
9409: case $host_cpu in
9410: hppa*64*|ia64*)
9411: hardcode_direct=no
9412: hardcode_shlibpath_var=no
9413: ;;
9414: *)
9415: hardcode_direct=yes
9416: hardcode_direct_absolute=yes
9417: export_dynamic_flag_spec='${wl}-E'
9418:
9419: # hardcode_minus_L: Not really in the search PATH,
9420: # but as the default location of the library.
9421: hardcode_minus_L=yes
9422: ;;
9423: esac
9424: fi
9425: ;;
9426:
9427: irix5* | irix6* | nonstopux*)
9428: if test "$GCC" = yes; then
9429: archive_cmds='$CC -shared $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'
9430: # Try to use the -exported_symbol ld option, if it does not
9431: # work, assume that -exports_file does not work either and
9432: # implicitly export all symbols.
9433: save_LDFLAGS="$LDFLAGS"
9434: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9435: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436: /* end confdefs.h. */
9437: int foo(void) {}
9438: _ACEOF
9439: if ac_fn_c_try_link "$LINENO"; then :
9440: archive_expsym_cmds='$CC -shared $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'
9441:
9442: fi
9443: rm -f core conftest.err conftest.$ac_objext \
9444: conftest$ac_exeext conftest.$ac_ext
9445: LDFLAGS="$save_LDFLAGS"
9446: else
9447: 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'
9448: 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'
9449: fi
9450: archive_cmds_need_lc='no'
9451: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9452: hardcode_libdir_separator=:
9453: inherit_rpath=yes
9454: link_all_deplibs=yes
9455: ;;
9456:
9457: netbsd*)
9458: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9459: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9460: else
9461: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9462: fi
9463: hardcode_libdir_flag_spec='-R$libdir'
9464: hardcode_direct=yes
9465: hardcode_shlibpath_var=no
9466: ;;
9467:
9468: newsos6)
9469: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470: hardcode_direct=yes
9471: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9472: hardcode_libdir_separator=:
9473: hardcode_shlibpath_var=no
9474: ;;
9475:
9476: *nto* | *qnx*)
9477: ;;
9478:
9479: openbsd*)
9480: if test -f /usr/libexec/ld.so; then
9481: hardcode_direct=yes
9482: hardcode_shlibpath_var=no
9483: hardcode_direct_absolute=yes
9484: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9485: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9486: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9487: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9488: export_dynamic_flag_spec='${wl}-E'
9489: else
9490: case $host_os in
9491: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9492: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9493: hardcode_libdir_flag_spec='-R$libdir'
9494: ;;
9495: *)
9496: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9497: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9498: ;;
9499: esac
9500: fi
9501: else
9502: ld_shlibs=no
9503: fi
9504: ;;
9505:
9506: os2*)
9507: hardcode_libdir_flag_spec='-L$libdir'
9508: hardcode_minus_L=yes
9509: allow_undefined_flag=unsupported
9510: 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'
9511: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9512: ;;
9513:
9514: osf3*)
9515: if test "$GCC" = yes; then
9516: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9517: 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'
9518: else
9519: allow_undefined_flag=' -expect_unresolved \*'
9520: 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'
9521: fi
9522: archive_cmds_need_lc='no'
9523: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524: hardcode_libdir_separator=:
9525: ;;
9526:
9527: osf4* | osf5*) # as osf3* with the addition of -msym flag
9528: if test "$GCC" = yes; then
9529: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9530: archive_cmds='$CC -shared${allow_undefined_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'
9531: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532: else
9533: allow_undefined_flag=' -expect_unresolved \*'
9534: 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'
9535: 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~
9536: $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'
9537:
9538: # Both c and cxx compiler support -rpath directly
9539: hardcode_libdir_flag_spec='-rpath $libdir'
9540: fi
9541: archive_cmds_need_lc='no'
9542: hardcode_libdir_separator=:
9543: ;;
9544:
9545: solaris*)
9546: no_undefined_flag=' -z defs'
9547: if test "$GCC" = yes; then
9548: wlarc='${wl}'
9549: archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9550: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9551: $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9552: else
9553: case `$CC -V 2>&1` in
9554: *"Compilers 5.0"*)
9555: wlarc=''
9556: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9557: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9558: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9559: ;;
9560: *)
9561: wlarc='${wl}'
9562: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9563: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9564: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9565: ;;
9566: esac
9567: fi
9568: hardcode_libdir_flag_spec='-R$libdir'
9569: hardcode_shlibpath_var=no
9570: case $host_os in
9571: solaris2.[0-5] | solaris2.[0-5].*) ;;
9572: *)
9573: # The compiler driver will combine and reorder linker options,
9574: # but understands `-z linker_flag'. GCC discards it without `$wl',
9575: # but is careful enough not to reorder.
9576: # Supported since Solaris 2.6 (maybe 2.5.1?)
9577: if test "$GCC" = yes; then
9578: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9579: else
9580: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9581: fi
9582: ;;
9583: esac
9584: link_all_deplibs=yes
9585: ;;
9586:
9587: sunos4*)
9588: if test "x$host_vendor" = xsequent; then
9589: # Use $CC to link under sequent, because it throws in some extra .o
9590: # files that make .init and .fini sections work.
9591: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9592: else
9593: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9594: fi
9595: hardcode_libdir_flag_spec='-L$libdir'
9596: hardcode_direct=yes
9597: hardcode_minus_L=yes
9598: hardcode_shlibpath_var=no
9599: ;;
9600:
9601: sysv4)
9602: case $host_vendor in
9603: sni)
9604: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605: hardcode_direct=yes # is this really true???
9606: ;;
9607: siemens)
9608: ## LD is ld it makes a PLAMLIB
9609: ## CC just makes a GrossModule.
9610: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9611: reload_cmds='$CC -r -o $output$reload_objs'
9612: hardcode_direct=no
9613: ;;
9614: motorola)
9615: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9617: ;;
9618: esac
9619: runpath_var='LD_RUN_PATH'
9620: hardcode_shlibpath_var=no
9621: ;;
9622:
9623: sysv4.3*)
9624: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9625: hardcode_shlibpath_var=no
9626: export_dynamic_flag_spec='-Bexport'
9627: ;;
9628:
9629: sysv4*MP*)
9630: if test -d /usr/nec; then
9631: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632: hardcode_shlibpath_var=no
9633: runpath_var=LD_RUN_PATH
9634: hardcode_runpath_var=yes
9635: ld_shlibs=yes
9636: fi
9637: ;;
9638:
9639: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9640: no_undefined_flag='${wl}-z,text'
9641: archive_cmds_need_lc=no
9642: hardcode_shlibpath_var=no
9643: runpath_var='LD_RUN_PATH'
9644:
9645: if test "$GCC" = yes; then
9646: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9647: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648: else
9649: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9651: fi
9652: ;;
9653:
9654: sysv5* | sco3.2v5* | sco5v6*)
9655: # Note: We can NOT use -z defs as we might desire, because we do not
9656: # link with -lc, and that would cause any symbols used from libc to
9657: # always be unresolved, which means just about no library would
9658: # ever link correctly. If we're not using GNU ld we use -z text
9659: # though, which does catch some bad symbols but isn't as heavy-handed
9660: # as -z defs.
9661: no_undefined_flag='${wl}-z,text'
9662: allow_undefined_flag='${wl}-z,nodefs'
9663: archive_cmds_need_lc=no
9664: hardcode_shlibpath_var=no
9665: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9666: hardcode_libdir_separator=':'
9667: link_all_deplibs=yes
9668: export_dynamic_flag_spec='${wl}-Bexport'
9669: runpath_var='LD_RUN_PATH'
9670:
9671: if test "$GCC" = yes; then
9672: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674: else
9675: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677: fi
9678: ;;
9679:
9680: uts4*)
9681: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682: hardcode_libdir_flag_spec='-L$libdir'
9683: hardcode_shlibpath_var=no
9684: ;;
9685:
9686: *)
9687: ld_shlibs=no
9688: ;;
9689: esac
9690:
9691: if test x$host_vendor = xsni; then
9692: case $host in
9693: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9694: export_dynamic_flag_spec='${wl}-Blargedynsym'
9695: ;;
9696: esac
9697: fi
9698: fi
9699:
9700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9701: $as_echo "$ld_shlibs" >&6; }
9702: test "$ld_shlibs" = no && can_build_shared=no
9703:
9704: with_gnu_ld=$with_gnu_ld
9705:
9706:
9707:
9708:
9709:
9710:
9711:
9712:
9713:
9714:
9715:
9716:
9717:
9718:
9719:
9720: #
9721: # Do we need to explicitly link libc?
9722: #
9723: case "x$archive_cmds_need_lc" in
9724: x|xyes)
9725: # Assume -lc should be added
9726: archive_cmds_need_lc=yes
9727:
9728: if test "$enable_shared" = yes && test "$GCC" = yes; then
9729: case $archive_cmds in
9730: *'~'*)
9731: # FIXME: we may have to deal with multi-command sequences.
9732: ;;
9733: '$CC '*)
9734: # Test whether the compiler implicitly links with -lc since on some
9735: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9736: # to ld, don't add -lc before -lgcc.
9737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9738: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9739: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9740: $as_echo_n "(cached) " >&6
9741: else
9742: $RM conftest*
9743: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9744:
9745: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9746: (eval $ac_compile) 2>&5
9747: ac_status=$?
9748: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9749: test $ac_status = 0; } 2>conftest.err; then
9750: soname=conftest
9751: lib=conftest
9752: libobjs=conftest.$ac_objext
9753: deplibs=
9754: wl=$lt_prog_compiler_wl
9755: pic_flag=$lt_prog_compiler_pic
9756: compiler_flags=-v
9757: linker_flags=-v
9758: verstring=
9759: output_objdir=.
9760: libname=conftest
9761: lt_save_allow_undefined_flag=$allow_undefined_flag
9762: allow_undefined_flag=
9763: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9764: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9765: ac_status=$?
9766: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9767: test $ac_status = 0; }
9768: then
9769: lt_cv_archive_cmds_need_lc=no
9770: else
9771: lt_cv_archive_cmds_need_lc=yes
9772: fi
9773: allow_undefined_flag=$lt_save_allow_undefined_flag
9774: else
9775: cat conftest.err 1>&5
9776: fi
9777: $RM conftest*
9778:
9779: fi
9780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9781: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9782: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9783: ;;
9784: esac
9785: fi
9786: ;;
9787: esac
9788:
9789:
9790:
9791:
9792:
9793:
9794:
9795:
9796:
9797:
9798:
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806:
9807:
9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822:
9823:
9824:
9825:
9826:
9827:
9828:
9829:
9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843:
9844:
9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
9885:
9886:
9887:
9888:
9889:
9890:
9891:
9892:
9893:
9894:
9895:
9896:
9897:
9898:
9899:
9900:
9901:
9902:
9903:
9904:
9905:
9906:
9907:
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916:
9917:
9918:
9919:
9920:
9921:
9922:
9923:
9924:
9925:
9926:
9927:
9928:
9929:
9930:
9931:
9932:
9933:
9934:
9935:
9936:
9937:
9938:
9939:
9940:
9941:
9942:
9943:
9944:
9945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9946: $as_echo_n "checking dynamic linker characteristics... " >&6; }
9947:
9948: if test "$GCC" = yes; then
9949: case $host_os in
9950: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9951: *) lt_awk_arg="/^libraries:/" ;;
9952: esac
9953: case $host_os in
9954: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9955: *) lt_sed_strip_eq="s,=/,/,g" ;;
9956: esac
9957: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9958: case $lt_search_path_spec in
9959: *\;*)
9960: # if the path contains ";" then we assume it to be the separator
9961: # otherwise default to the standard path separator (i.e. ":") - it is
9962: # assumed that no part of a normal pathname contains ";" but that should
9963: # okay in the real world where ";" in dirpaths is itself problematic.
9964: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9965: ;;
9966: *)
9967: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9968: ;;
9969: esac
9970: # Ok, now we have the path, separated by spaces, we can step through it
9971: # and add multilib dir if necessary.
9972: lt_tmp_lt_search_path_spec=
9973: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9974: for lt_sys_path in $lt_search_path_spec; do
9975: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9976: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9977: else
9978: test -d "$lt_sys_path" && \
9979: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9980: fi
9981: done
9982: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9983: BEGIN {RS=" "; FS="/|\n";} {
9984: lt_foo="";
9985: lt_count=0;
9986: for (lt_i = NF; lt_i > 0; lt_i--) {
9987: if ($lt_i != "" && $lt_i != ".") {
9988: if ($lt_i == "..") {
9989: lt_count++;
9990: } else {
9991: if (lt_count == 0) {
9992: lt_foo="/" $lt_i lt_foo;
9993: } else {
9994: lt_count--;
9995: }
9996: }
9997: }
9998: }
9999: if (lt_foo != "") { lt_freq[lt_foo]++; }
10000: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10001: }'`
10002: # AWK program above erroneously prepends '/' to C:/dos/paths
10003: # for these hosts.
10004: case $host_os in
10005: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10006: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10007: esac
10008: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10009: else
10010: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10011: fi
10012: library_names_spec=
10013: libname_spec='lib$name'
10014: soname_spec=
10015: shrext_cmds=".so"
10016: postinstall_cmds=
10017: postuninstall_cmds=
10018: finish_cmds=
10019: finish_eval=
10020: shlibpath_var=
10021: shlibpath_overrides_runpath=unknown
10022: version_type=none
10023: dynamic_linker="$host_os ld.so"
10024: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10025: need_lib_prefix=unknown
10026: hardcode_into_libs=no
10027:
10028: # when you set need_version to no, make sure it does not cause -set_version
10029: # flags to be left without arguments
10030: need_version=unknown
10031:
10032: case $host_os in
10033: aix3*)
10034: version_type=linux
10035: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10036: shlibpath_var=LIBPATH
10037:
10038: # AIX 3 has no versioning support, so we append a major version to the name.
10039: soname_spec='${libname}${release}${shared_ext}$major'
10040: ;;
10041:
10042: aix[4-9]*)
10043: version_type=linux
10044: need_lib_prefix=no
10045: need_version=no
10046: hardcode_into_libs=yes
10047: if test "$host_cpu" = ia64; then
10048: # AIX 5 supports IA64
10049: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10050: shlibpath_var=LD_LIBRARY_PATH
10051: else
10052: # With GCC up to 2.95.x, collect2 would create an import file
10053: # for dependence libraries. The import file would start with
10054: # the line `#! .'. This would cause the generated library to
10055: # depend on `.', always an invalid library. This was fixed in
10056: # development snapshots of GCC prior to 3.0.
10057: case $host_os in
10058: aix4 | aix4.[01] | aix4.[01].*)
10059: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10060: echo ' yes '
10061: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10062: :
10063: else
10064: can_build_shared=no
10065: fi
10066: ;;
10067: esac
10068: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10069: # soname into executable. Probably we can add versioning support to
10070: # collect2, so additional links can be useful in future.
10071: if test "$aix_use_runtimelinking" = yes; then
10072: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10073: # instead of lib<name>.a to let people know that these are not
10074: # typical AIX shared libraries.
10075: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076: else
10077: # We preserve .a as extension for shared libraries through AIX4.2
10078: # and later when we are not doing run time linking.
10079: library_names_spec='${libname}${release}.a $libname.a'
10080: soname_spec='${libname}${release}${shared_ext}$major'
10081: fi
10082: shlibpath_var=LIBPATH
10083: fi
10084: ;;
10085:
10086: amigaos*)
10087: case $host_cpu in
10088: powerpc)
10089: # Since July 2007 AmigaOS4 officially supports .so libraries.
10090: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10091: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092: ;;
10093: m68k)
10094: library_names_spec='$libname.ixlibrary $libname.a'
10095: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10096: 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'
10097: ;;
10098: esac
10099: ;;
10100:
10101: beos*)
10102: library_names_spec='${libname}${shared_ext}'
10103: dynamic_linker="$host_os ld.so"
10104: shlibpath_var=LIBRARY_PATH
10105: ;;
10106:
10107: bsdi[45]*)
10108: version_type=linux
10109: need_version=no
10110: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111: soname_spec='${libname}${release}${shared_ext}$major'
10112: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10113: shlibpath_var=LD_LIBRARY_PATH
10114: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10115: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10116: # the default ld.so.conf also contains /usr/contrib/lib and
10117: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10118: # libtool to hard-code these into programs
10119: ;;
10120:
10121: cygwin* | mingw* | pw32* | cegcc*)
10122: version_type=windows
10123: shrext_cmds=".dll"
10124: need_version=no
10125: need_lib_prefix=no
10126:
10127: case $GCC,$host_os in
10128: yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10129: library_names_spec='$libname.dll.a'
10130: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10131: postinstall_cmds='base_file=`basename \${file}`~
10132: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10133: dldir=$destdir/`dirname \$dlpath`~
10134: test -d \$dldir || mkdir -p \$dldir~
10135: $install_prog $dir/$dlname \$dldir/$dlname~
10136: chmod a+x \$dldir/$dlname~
10137: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10138: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10139: fi'
10140: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10141: dlpath=$dir/\$dldll~
10142: $RM \$dlpath'
10143: shlibpath_overrides_runpath=yes
10144:
10145: case $host_os in
10146: cygwin*)
10147: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10148: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10149:
10150: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10151: ;;
10152: mingw* | cegcc*)
10153: # MinGW DLLs use traditional 'lib' prefix
10154: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10155: ;;
10156: pw32*)
10157: # pw32 DLLs use 'pw' prefix rather than 'lib'
10158: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10159: ;;
10160: esac
10161: ;;
10162:
10163: *)
10164: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10165: ;;
10166: esac
10167: dynamic_linker='Win32 ld.exe'
10168: # FIXME: first we should search . and the directory the executable is in
10169: shlibpath_var=PATH
10170: ;;
10171:
10172: darwin* | rhapsody*)
10173: dynamic_linker="$host_os dyld"
10174: version_type=darwin
10175: need_lib_prefix=no
10176: need_version=no
10177: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10178: soname_spec='${libname}${release}${major}$shared_ext'
10179: shlibpath_overrides_runpath=yes
10180: shlibpath_var=DYLD_LIBRARY_PATH
10181: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10182:
10183: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10184: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10185: ;;
10186:
10187: dgux*)
10188: version_type=linux
10189: need_lib_prefix=no
10190: need_version=no
10191: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10192: soname_spec='${libname}${release}${shared_ext}$major'
10193: shlibpath_var=LD_LIBRARY_PATH
10194: ;;
10195:
10196: freebsd1*)
10197: dynamic_linker=no
10198: ;;
10199:
10200: freebsd* | dragonfly*)
10201: # DragonFly does not have aout. When/if they implement a new
10202: # versioning mechanism, adjust this.
10203: if test -x /usr/bin/objformat; then
10204: objformat=`/usr/bin/objformat`
10205: else
10206: case $host_os in
10207: freebsd[123]*) objformat=aout ;;
10208: *) objformat=elf ;;
10209: esac
10210: fi
10211: version_type=freebsd-$objformat
10212: case $version_type in
10213: freebsd-elf*)
10214: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10215: need_version=no
10216: need_lib_prefix=no
10217: ;;
10218: freebsd-*)
10219: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10220: need_version=yes
10221: ;;
10222: esac
10223: shlibpath_var=LD_LIBRARY_PATH
10224: case $host_os in
10225: freebsd2*)
10226: shlibpath_overrides_runpath=yes
10227: ;;
10228: freebsd3.[01]* | freebsdelf3.[01]*)
10229: shlibpath_overrides_runpath=yes
10230: hardcode_into_libs=yes
10231: ;;
10232: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10233: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10234: shlibpath_overrides_runpath=no
10235: hardcode_into_libs=yes
10236: ;;
10237: *) # from 4.6 on, and DragonFly
10238: shlibpath_overrides_runpath=yes
10239: hardcode_into_libs=yes
10240: ;;
10241: esac
10242: ;;
10243:
10244: gnu*)
10245: version_type=linux
10246: need_lib_prefix=no
10247: need_version=no
10248: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10249: soname_spec='${libname}${release}${shared_ext}$major'
10250: shlibpath_var=LD_LIBRARY_PATH
10251: hardcode_into_libs=yes
10252: ;;
10253:
10254: haiku*)
10255: version_type=linux
10256: need_lib_prefix=no
10257: need_version=no
10258: dynamic_linker="$host_os runtime_loader"
10259: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10260: soname_spec='${libname}${release}${shared_ext}$major'
10261: shlibpath_var=LIBRARY_PATH
10262: shlibpath_overrides_runpath=yes
10263: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10264: hardcode_into_libs=yes
10265: ;;
10266:
10267: hpux9* | hpux10* | hpux11*)
10268: # Give a soname corresponding to the major version so that dld.sl refuses to
10269: # link against other versions.
10270: version_type=sunos
10271: need_lib_prefix=no
10272: need_version=no
10273: case $host_cpu in
10274: ia64*)
10275: shrext_cmds='.so'
10276: hardcode_into_libs=yes
10277: dynamic_linker="$host_os dld.so"
10278: shlibpath_var=LD_LIBRARY_PATH
10279: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10280: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281: soname_spec='${libname}${release}${shared_ext}$major'
10282: if test "X$HPUX_IA64_MODE" = X32; then
10283: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10284: else
10285: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10286: fi
10287: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10288: ;;
10289: hppa*64*)
10290: shrext_cmds='.sl'
10291: hardcode_into_libs=yes
10292: dynamic_linker="$host_os dld.sl"
10293: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10294: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10295: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296: soname_spec='${libname}${release}${shared_ext}$major'
10297: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10298: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10299: ;;
10300: *)
10301: shrext_cmds='.sl'
10302: dynamic_linker="$host_os dld.sl"
10303: shlibpath_var=SHLIB_PATH
10304: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10305: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306: soname_spec='${libname}${release}${shared_ext}$major'
10307: ;;
10308: esac
10309: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10310: postinstall_cmds='chmod 555 $lib'
10311: # or fails outright, so override atomically:
10312: install_override_mode=555
10313: ;;
10314:
10315: interix[3-9]*)
10316: version_type=linux
10317: need_lib_prefix=no
10318: need_version=no
10319: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10320: soname_spec='${libname}${release}${shared_ext}$major'
10321: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10322: shlibpath_var=LD_LIBRARY_PATH
10323: shlibpath_overrides_runpath=no
10324: hardcode_into_libs=yes
10325: ;;
10326:
10327: irix5* | irix6* | nonstopux*)
10328: case $host_os in
10329: nonstopux*) version_type=nonstopux ;;
10330: *)
10331: if test "$lt_cv_prog_gnu_ld" = yes; then
10332: version_type=linux
10333: else
10334: version_type=irix
10335: fi ;;
10336: esac
10337: need_lib_prefix=no
10338: need_version=no
10339: soname_spec='${libname}${release}${shared_ext}$major'
10340: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10341: case $host_os in
10342: irix5* | nonstopux*)
10343: libsuff= shlibsuff=
10344: ;;
10345: *)
10346: case $LD in # libtool.m4 will add one of these switches to LD
10347: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10348: libsuff= shlibsuff= libmagic=32-bit;;
10349: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10350: libsuff=32 shlibsuff=N32 libmagic=N32;;
10351: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10352: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10353: *) libsuff= shlibsuff= libmagic=never-match;;
10354: esac
10355: ;;
10356: esac
10357: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10358: shlibpath_overrides_runpath=no
10359: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10360: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10361: hardcode_into_libs=yes
10362: ;;
10363:
10364: # No shared lib support for Linux oldld, aout, or coff.
10365: linux*oldld* | linux*aout* | linux*coff*)
10366: dynamic_linker=no
10367: ;;
10368:
10369: # This must be Linux ELF.
10370: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10371: version_type=linux
10372: need_lib_prefix=no
10373: need_version=no
10374: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375: soname_spec='${libname}${release}${shared_ext}$major'
10376: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10377: shlibpath_var=LD_LIBRARY_PATH
10378: shlibpath_overrides_runpath=no
10379:
10380: # Some binutils ld are patched to set DT_RUNPATH
10381: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10382: $as_echo_n "(cached) " >&6
10383: else
10384: lt_cv_shlibpath_overrides_runpath=no
10385: save_LDFLAGS=$LDFLAGS
10386: save_libdir=$libdir
10387: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10388: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10389: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390: /* end confdefs.h. */
10391:
10392: int
10393: main ()
10394: {
10395:
10396: ;
10397: return 0;
10398: }
10399: _ACEOF
10400: if ac_fn_c_try_link "$LINENO"; then :
10401: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10402: lt_cv_shlibpath_overrides_runpath=yes
10403: fi
10404: fi
10405: rm -f core conftest.err conftest.$ac_objext \
10406: conftest$ac_exeext conftest.$ac_ext
10407: LDFLAGS=$save_LDFLAGS
10408: libdir=$save_libdir
10409:
10410: fi
10411:
10412: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10413:
10414: # This implies no fast_install, which is unacceptable.
10415: # Some rework will be needed to allow for fast_install
10416: # before this can be enabled.
10417: hardcode_into_libs=yes
10418:
10419: # Add ABI-specific directories to the system library path.
10420: sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10421:
10422: # Append ld.so.conf contents to the search path
10423: if test -f /etc/ld.so.conf; then
10424: 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' ' '`
10425: sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10426:
10427: fi
10428:
10429: # We used to test for /lib/ld.so.1 and disable shared libraries on
10430: # powerpc, because MkLinux only supported shared libraries with the
10431: # GNU dynamic linker. Since this was broken with cross compilers,
10432: # most powerpc-linux boxes support dynamic linking these days and
10433: # people can always --disable-shared, the test was removed, and we
10434: # assume the GNU/Linux dynamic linker is in use.
10435: dynamic_linker='GNU/Linux ld.so'
10436: ;;
10437:
10438: netbsd*)
10439: version_type=sunos
10440: need_lib_prefix=no
10441: need_version=no
10442: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10443: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10444: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10445: dynamic_linker='NetBSD (a.out) ld.so'
10446: else
10447: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10448: soname_spec='${libname}${release}${shared_ext}$major'
10449: dynamic_linker='NetBSD ld.elf_so'
10450: fi
10451: shlibpath_var=LD_LIBRARY_PATH
10452: shlibpath_overrides_runpath=yes
10453: hardcode_into_libs=yes
10454: ;;
10455:
10456: newsos6)
10457: version_type=linux
10458: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459: shlibpath_var=LD_LIBRARY_PATH
10460: shlibpath_overrides_runpath=yes
10461: ;;
10462:
10463: *nto* | *qnx*)
10464: version_type=qnx
10465: need_lib_prefix=no
10466: need_version=no
10467: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468: soname_spec='${libname}${release}${shared_ext}$major'
10469: shlibpath_var=LD_LIBRARY_PATH
10470: shlibpath_overrides_runpath=no
10471: hardcode_into_libs=yes
10472: dynamic_linker='ldqnx.so'
10473: ;;
10474:
10475: openbsd*)
10476: version_type=sunos
10477: sys_lib_dlsearch_path_spec="/usr/lib"
10478: need_lib_prefix=no
10479: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10480: case $host_os in
10481: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10482: *) need_version=no ;;
10483: esac
10484: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10485: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10486: shlibpath_var=LD_LIBRARY_PATH
10487: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10488: case $host_os in
10489: openbsd2.[89] | openbsd2.[89].*)
10490: shlibpath_overrides_runpath=no
10491: ;;
10492: *)
10493: shlibpath_overrides_runpath=yes
10494: ;;
10495: esac
10496: else
10497: shlibpath_overrides_runpath=yes
10498: fi
10499: ;;
10500:
10501: os2*)
10502: libname_spec='$name'
10503: shrext_cmds=".dll"
10504: need_lib_prefix=no
10505: library_names_spec='$libname${shared_ext} $libname.a'
10506: dynamic_linker='OS/2 ld.exe'
10507: shlibpath_var=LIBPATH
10508: ;;
10509:
10510: osf3* | osf4* | osf5*)
10511: version_type=osf
10512: need_lib_prefix=no
10513: need_version=no
10514: soname_spec='${libname}${release}${shared_ext}$major'
10515: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516: shlibpath_var=LD_LIBRARY_PATH
10517: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10518: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10519: ;;
10520:
10521: rdos*)
10522: dynamic_linker=no
10523: ;;
10524:
10525: solaris*)
10526: version_type=linux
10527: need_lib_prefix=no
10528: need_version=no
10529: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530: soname_spec='${libname}${release}${shared_ext}$major'
10531: shlibpath_var=LD_LIBRARY_PATH
10532: shlibpath_overrides_runpath=yes
10533: hardcode_into_libs=yes
10534: # ldd complains unless libraries are executable
10535: postinstall_cmds='chmod +x $lib'
10536: ;;
10537:
10538: sunos4*)
10539: version_type=sunos
10540: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10542: shlibpath_var=LD_LIBRARY_PATH
10543: shlibpath_overrides_runpath=yes
10544: if test "$with_gnu_ld" = yes; then
10545: need_lib_prefix=no
10546: fi
10547: need_version=yes
10548: ;;
10549:
10550: sysv4 | sysv4.3*)
10551: version_type=linux
10552: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553: soname_spec='${libname}${release}${shared_ext}$major'
10554: shlibpath_var=LD_LIBRARY_PATH
10555: case $host_vendor in
10556: sni)
10557: shlibpath_overrides_runpath=no
10558: need_lib_prefix=no
10559: runpath_var=LD_RUN_PATH
10560: ;;
10561: siemens)
10562: need_lib_prefix=no
10563: ;;
10564: motorola)
10565: need_lib_prefix=no
10566: need_version=no
10567: shlibpath_overrides_runpath=no
10568: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10569: ;;
10570: esac
10571: ;;
10572:
10573: sysv4*MP*)
10574: if test -d /usr/nec ;then
10575: version_type=linux
10576: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10577: soname_spec='$libname${shared_ext}.$major'
10578: shlibpath_var=LD_LIBRARY_PATH
10579: fi
10580: ;;
10581:
10582: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10583: version_type=freebsd-elf
10584: need_lib_prefix=no
10585: need_version=no
10586: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10587: soname_spec='${libname}${release}${shared_ext}$major'
10588: shlibpath_var=LD_LIBRARY_PATH
10589: shlibpath_overrides_runpath=yes
10590: hardcode_into_libs=yes
10591: if test "$with_gnu_ld" = yes; then
10592: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10593: else
10594: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10595: case $host_os in
10596: sco3.2v5*)
10597: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10598: ;;
10599: esac
10600: fi
10601: sys_lib_dlsearch_path_spec='/usr/lib'
10602: ;;
10603:
10604: tpf*)
10605: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10606: version_type=linux
10607: need_lib_prefix=no
10608: need_version=no
10609: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610: shlibpath_var=LD_LIBRARY_PATH
10611: shlibpath_overrides_runpath=no
10612: hardcode_into_libs=yes
10613: ;;
10614:
10615: uts4*)
10616: version_type=linux
10617: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618: soname_spec='${libname}${release}${shared_ext}$major'
10619: shlibpath_var=LD_LIBRARY_PATH
10620: ;;
10621:
10622: *)
10623: dynamic_linker=no
10624: ;;
10625: esac
10626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10627: $as_echo "$dynamic_linker" >&6; }
10628: test "$dynamic_linker" = no && can_build_shared=no
10629:
10630: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10631: if test "$GCC" = yes; then
10632: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10633: fi
10634:
10635: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10636: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10637: fi
10638: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10639: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10640: fi
10641:
10642:
10643:
10644:
10645:
10646:
10647:
10648:
10649:
10650:
10651:
10652:
10653:
10654:
10655:
10656:
10657:
10658:
10659:
10660:
10661:
10662:
10663:
10664:
10665:
10666:
10667:
10668:
10669:
10670:
10671:
10672:
10673:
10674:
10675:
10676:
10677:
10678:
10679:
10680:
10681:
10682:
10683:
10684:
10685:
10686:
10687:
10688:
10689:
10690:
10691:
10692:
10693:
10694:
10695:
10696:
10697:
10698:
10699:
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10734: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10735: hardcode_action=
10736: if test -n "$hardcode_libdir_flag_spec" ||
10737: test -n "$runpath_var" ||
10738: test "X$hardcode_automatic" = "Xyes" ; then
10739:
10740: # We can hardcode non-existent directories.
10741: if test "$hardcode_direct" != no &&
10742: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10743: # have to relink, otherwise we might link with an installed library
10744: # when we should be linking with a yet-to-be-installed one
10745: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10746: test "$hardcode_minus_L" != no; then
10747: # Linking always hardcodes the temporary library directory.
10748: hardcode_action=relink
10749: else
10750: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10751: hardcode_action=immediate
10752: fi
10753: else
10754: # We cannot hardcode anything, or else we can only hardcode existing
10755: # directories.
10756: hardcode_action=unsupported
10757: fi
10758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10759: $as_echo "$hardcode_action" >&6; }
10760:
10761: if test "$hardcode_action" = relink ||
10762: test "$inherit_rpath" = yes; then
10763: # Fast installation is not supported
10764: enable_fast_install=no
10765: elif test "$shlibpath_overrides_runpath" = yes ||
10766: test "$enable_shared" = no; then
10767: # Fast installation is not necessary
10768: enable_fast_install=needless
10769: fi
10770:
10771:
10772:
10773:
10774:
10775:
10776: if test "x$enable_dlopen" != xyes; then
10777: enable_dlopen=unknown
10778: enable_dlopen_self=unknown
10779: enable_dlopen_self_static=unknown
10780: else
10781: lt_cv_dlopen=no
10782: lt_cv_dlopen_libs=
10783:
10784: case $host_os in
10785: beos*)
10786: lt_cv_dlopen="load_add_on"
10787: lt_cv_dlopen_libs=
10788: lt_cv_dlopen_self=yes
10789: ;;
10790:
10791: mingw* | pw32* | cegcc*)
10792: lt_cv_dlopen="LoadLibrary"
10793: lt_cv_dlopen_libs=
10794: ;;
10795:
10796: cygwin*)
10797: lt_cv_dlopen="dlopen"
10798: lt_cv_dlopen_libs=
10799: ;;
10800:
10801: darwin*)
10802: # if libdl is installed we need to link against it
10803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10804: $as_echo_n "checking for dlopen in -ldl... " >&6; }
10805: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10806: $as_echo_n "(cached) " >&6
10807: else
10808: ac_check_lib_save_LIBS=$LIBS
10809: LIBS="-ldl $LIBS"
10810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811: /* end confdefs.h. */
10812:
10813: /* Override any GCC internal prototype to avoid an error.
10814: Use char because int might match the return type of a GCC
10815: builtin and then its argument prototype would still apply. */
10816: #ifdef __cplusplus
10817: extern "C"
10818: #endif
10819: char dlopen ();
10820: int
10821: main ()
10822: {
10823: return dlopen ();
10824: ;
10825: return 0;
10826: }
10827: _ACEOF
10828: if ac_fn_c_try_link "$LINENO"; then :
10829: ac_cv_lib_dl_dlopen=yes
10830: else
10831: ac_cv_lib_dl_dlopen=no
10832: fi
10833: rm -f core conftest.err conftest.$ac_objext \
10834: conftest$ac_exeext conftest.$ac_ext
10835: LIBS=$ac_check_lib_save_LIBS
10836: fi
10837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10838: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10839: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10840: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10841: else
10842:
10843: lt_cv_dlopen="dyld"
10844: lt_cv_dlopen_libs=
10845: lt_cv_dlopen_self=yes
10846:
10847: fi
10848:
10849: ;;
10850:
10851: *)
10852: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10853: if test "x$ac_cv_func_shl_load" = x""yes; then :
10854: lt_cv_dlopen="shl_load"
10855: else
10856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10857: $as_echo_n "checking for shl_load in -ldld... " >&6; }
10858: if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10859: $as_echo_n "(cached) " >&6
10860: else
10861: ac_check_lib_save_LIBS=$LIBS
10862: LIBS="-ldld $LIBS"
10863: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864: /* end confdefs.h. */
10865:
10866: /* Override any GCC internal prototype to avoid an error.
10867: Use char because int might match the return type of a GCC
10868: builtin and then its argument prototype would still apply. */
10869: #ifdef __cplusplus
10870: extern "C"
10871: #endif
10872: char shl_load ();
10873: int
10874: main ()
10875: {
10876: return shl_load ();
10877: ;
10878: return 0;
10879: }
10880: _ACEOF
10881: if ac_fn_c_try_link "$LINENO"; then :
10882: ac_cv_lib_dld_shl_load=yes
10883: else
10884: ac_cv_lib_dld_shl_load=no
10885: fi
10886: rm -f core conftest.err conftest.$ac_objext \
10887: conftest$ac_exeext conftest.$ac_ext
10888: LIBS=$ac_check_lib_save_LIBS
10889: fi
10890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10891: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10892: if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10893: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10894: else
10895: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10896: if test "x$ac_cv_func_dlopen" = x""yes; then :
10897: lt_cv_dlopen="dlopen"
10898: else
10899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10900: $as_echo_n "checking for dlopen in -ldl... " >&6; }
10901: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10902: $as_echo_n "(cached) " >&6
10903: else
10904: ac_check_lib_save_LIBS=$LIBS
10905: LIBS="-ldl $LIBS"
10906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907: /* end confdefs.h. */
10908:
10909: /* Override any GCC internal prototype to avoid an error.
10910: Use char because int might match the return type of a GCC
10911: builtin and then its argument prototype would still apply. */
10912: #ifdef __cplusplus
10913: extern "C"
10914: #endif
10915: char dlopen ();
10916: int
10917: main ()
10918: {
10919: return dlopen ();
10920: ;
10921: return 0;
10922: }
10923: _ACEOF
10924: if ac_fn_c_try_link "$LINENO"; then :
10925: ac_cv_lib_dl_dlopen=yes
10926: else
10927: ac_cv_lib_dl_dlopen=no
10928: fi
10929: rm -f core conftest.err conftest.$ac_objext \
10930: conftest$ac_exeext conftest.$ac_ext
10931: LIBS=$ac_check_lib_save_LIBS
10932: fi
10933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10934: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10935: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10936: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10937: else
10938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10939: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10940: if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10941: $as_echo_n "(cached) " >&6
10942: else
10943: ac_check_lib_save_LIBS=$LIBS
10944: LIBS="-lsvld $LIBS"
10945: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946: /* end confdefs.h. */
10947:
10948: /* Override any GCC internal prototype to avoid an error.
10949: Use char because int might match the return type of a GCC
10950: builtin and then its argument prototype would still apply. */
10951: #ifdef __cplusplus
10952: extern "C"
10953: #endif
10954: char dlopen ();
10955: int
10956: main ()
10957: {
10958: return dlopen ();
10959: ;
10960: return 0;
10961: }
10962: _ACEOF
10963: if ac_fn_c_try_link "$LINENO"; then :
10964: ac_cv_lib_svld_dlopen=yes
10965: else
10966: ac_cv_lib_svld_dlopen=no
10967: fi
10968: rm -f core conftest.err conftest.$ac_objext \
10969: conftest$ac_exeext conftest.$ac_ext
10970: LIBS=$ac_check_lib_save_LIBS
10971: fi
10972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10973: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10974: if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10975: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10976: else
10977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10978: $as_echo_n "checking for dld_link in -ldld... " >&6; }
10979: if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10980: $as_echo_n "(cached) " >&6
10981: else
10982: ac_check_lib_save_LIBS=$LIBS
10983: LIBS="-ldld $LIBS"
10984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985: /* end confdefs.h. */
10986:
10987: /* Override any GCC internal prototype to avoid an error.
10988: Use char because int might match the return type of a GCC
10989: builtin and then its argument prototype would still apply. */
10990: #ifdef __cplusplus
10991: extern "C"
10992: #endif
10993: char dld_link ();
10994: int
10995: main ()
10996: {
10997: return dld_link ();
10998: ;
10999: return 0;
11000: }
11001: _ACEOF
11002: if ac_fn_c_try_link "$LINENO"; then :
11003: ac_cv_lib_dld_dld_link=yes
11004: else
11005: ac_cv_lib_dld_dld_link=no
11006: fi
11007: rm -f core conftest.err conftest.$ac_objext \
11008: conftest$ac_exeext conftest.$ac_ext
11009: LIBS=$ac_check_lib_save_LIBS
11010: fi
11011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11012: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11013: if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11014: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11015: fi
11016:
11017:
11018: fi
11019:
11020:
11021: fi
11022:
11023:
11024: fi
11025:
11026:
11027: fi
11028:
11029:
11030: fi
11031:
11032: ;;
11033: esac
11034:
11035: if test "x$lt_cv_dlopen" != xno; then
11036: enable_dlopen=yes
11037: else
11038: enable_dlopen=no
11039: fi
11040:
11041: case $lt_cv_dlopen in
11042: dlopen)
11043: save_CPPFLAGS="$CPPFLAGS"
11044: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11045:
11046: save_LDFLAGS="$LDFLAGS"
11047: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11048:
11049: save_LIBS="$LIBS"
11050: LIBS="$lt_cv_dlopen_libs $LIBS"
11051:
11052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11053: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11054: if test "${lt_cv_dlopen_self+set}" = set; then :
11055: $as_echo_n "(cached) " >&6
11056: else
11057: if test "$cross_compiling" = yes; then :
11058: lt_cv_dlopen_self=cross
11059: else
11060: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11061: lt_status=$lt_dlunknown
11062: cat > conftest.$ac_ext <<_LT_EOF
11063: #line $LINENO "configure"
11064: #include "confdefs.h"
11065:
11066: #if HAVE_DLFCN_H
11067: #include <dlfcn.h>
11068: #endif
11069:
11070: #include <stdio.h>
11071:
11072: #ifdef RTLD_GLOBAL
11073: # define LT_DLGLOBAL RTLD_GLOBAL
11074: #else
11075: # ifdef DL_GLOBAL
11076: # define LT_DLGLOBAL DL_GLOBAL
11077: # else
11078: # define LT_DLGLOBAL 0
11079: # endif
11080: #endif
11081:
11082: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11083: find out it does not work in some platform. */
11084: #ifndef LT_DLLAZY_OR_NOW
11085: # ifdef RTLD_LAZY
11086: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11087: # else
11088: # ifdef DL_LAZY
11089: # define LT_DLLAZY_OR_NOW DL_LAZY
11090: # else
11091: # ifdef RTLD_NOW
11092: # define LT_DLLAZY_OR_NOW RTLD_NOW
11093: # else
11094: # ifdef DL_NOW
11095: # define LT_DLLAZY_OR_NOW DL_NOW
11096: # else
11097: # define LT_DLLAZY_OR_NOW 0
11098: # endif
11099: # endif
11100: # endif
11101: # endif
11102: #endif
11103:
11104: /* When -fvisbility=hidden is used, assume the code has been annotated
11105: correspondingly for the symbols needed. */
11106: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11107: void fnord () __attribute__((visibility("default")));
11108: #endif
11109:
11110: void fnord () { int i=42; }
11111: int main ()
11112: {
11113: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11114: int status = $lt_dlunknown;
11115:
11116: if (self)
11117: {
11118: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11119: else
11120: {
11121: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11122: else puts (dlerror ());
11123: }
11124: /* dlclose (self); */
11125: }
11126: else
11127: puts (dlerror ());
11128:
11129: return status;
11130: }
11131: _LT_EOF
11132: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11133: (eval $ac_link) 2>&5
11134: ac_status=$?
11135: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11136: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11137: (./conftest; exit; ) >&5 2>/dev/null
11138: lt_status=$?
11139: case x$lt_status in
11140: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11141: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11142: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11143: esac
11144: else :
11145: # compilation failed
11146: lt_cv_dlopen_self=no
11147: fi
11148: fi
11149: rm -fr conftest*
11150:
11151:
11152: fi
11153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11154: $as_echo "$lt_cv_dlopen_self" >&6; }
11155:
11156: if test "x$lt_cv_dlopen_self" = xyes; then
11157: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11159: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11160: if test "${lt_cv_dlopen_self_static+set}" = set; then :
11161: $as_echo_n "(cached) " >&6
11162: else
11163: if test "$cross_compiling" = yes; then :
11164: lt_cv_dlopen_self_static=cross
11165: else
11166: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11167: lt_status=$lt_dlunknown
11168: cat > conftest.$ac_ext <<_LT_EOF
11169: #line $LINENO "configure"
11170: #include "confdefs.h"
11171:
11172: #if HAVE_DLFCN_H
11173: #include <dlfcn.h>
11174: #endif
11175:
11176: #include <stdio.h>
11177:
11178: #ifdef RTLD_GLOBAL
11179: # define LT_DLGLOBAL RTLD_GLOBAL
11180: #else
11181: # ifdef DL_GLOBAL
11182: # define LT_DLGLOBAL DL_GLOBAL
11183: # else
11184: # define LT_DLGLOBAL 0
11185: # endif
11186: #endif
11187:
11188: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11189: find out it does not work in some platform. */
11190: #ifndef LT_DLLAZY_OR_NOW
11191: # ifdef RTLD_LAZY
11192: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11193: # else
11194: # ifdef DL_LAZY
11195: # define LT_DLLAZY_OR_NOW DL_LAZY
11196: # else
11197: # ifdef RTLD_NOW
11198: # define LT_DLLAZY_OR_NOW RTLD_NOW
11199: # else
11200: # ifdef DL_NOW
11201: # define LT_DLLAZY_OR_NOW DL_NOW
11202: # else
11203: # define LT_DLLAZY_OR_NOW 0
11204: # endif
11205: # endif
11206: # endif
11207: # endif
11208: #endif
11209:
11210: /* When -fvisbility=hidden is used, assume the code has been annotated
11211: correspondingly for the symbols needed. */
11212: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11213: void fnord () __attribute__((visibility("default")));
11214: #endif
11215:
11216: void fnord () { int i=42; }
11217: int main ()
11218: {
11219: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11220: int status = $lt_dlunknown;
11221:
11222: if (self)
11223: {
11224: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11225: else
11226: {
11227: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11228: else puts (dlerror ());
11229: }
11230: /* dlclose (self); */
11231: }
11232: else
11233: puts (dlerror ());
11234:
11235: return status;
11236: }
11237: _LT_EOF
11238: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11239: (eval $ac_link) 2>&5
11240: ac_status=$?
11241: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11242: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11243: (./conftest; exit; ) >&5 2>/dev/null
11244: lt_status=$?
11245: case x$lt_status in
11246: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11247: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11248: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11249: esac
11250: else :
11251: # compilation failed
11252: lt_cv_dlopen_self_static=no
11253: fi
11254: fi
11255: rm -fr conftest*
11256:
11257:
11258: fi
11259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11260: $as_echo "$lt_cv_dlopen_self_static" >&6; }
11261: fi
11262:
11263: CPPFLAGS="$save_CPPFLAGS"
11264: LDFLAGS="$save_LDFLAGS"
11265: LIBS="$save_LIBS"
11266: ;;
11267: esac
11268:
11269: case $lt_cv_dlopen_self in
11270: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11271: *) enable_dlopen_self=unknown ;;
11272: esac
11273:
11274: case $lt_cv_dlopen_self_static in
11275: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11276: *) enable_dlopen_self_static=unknown ;;
11277: esac
11278: fi
11279:
11280:
11281:
11282:
11283:
11284:
11285:
11286:
11287:
11288:
11289:
11290:
11291:
11292:
11293:
11294:
11295:
11296: striplib=
11297: old_striplib=
11298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11299: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11300: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11301: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11302: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11304: $as_echo "yes" >&6; }
11305: else
11306: # FIXME - insert some real tests, host_os isn't really good enough
11307: case $host_os in
11308: darwin*)
11309: if test -n "$STRIP" ; then
11310: striplib="$STRIP -x"
11311: old_striplib="$STRIP -S"
11312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11313: $as_echo "yes" >&6; }
11314: else
11315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316: $as_echo "no" >&6; }
11317: fi
11318: ;;
11319: *)
11320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321: $as_echo "no" >&6; }
11322: ;;
11323: esac
11324: fi
11325:
11326:
11327:
11328:
11329:
11330:
11331:
11332:
11333:
11334:
11335:
11336:
11337: # Report which library types will actually be built
11338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11339: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11341: $as_echo "$can_build_shared" >&6; }
11342:
11343: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11344: $as_echo_n "checking whether to build shared libraries... " >&6; }
11345: test "$can_build_shared" = "no" && enable_shared=no
11346:
11347: # On AIX, shared libraries and static libraries use the same namespace, and
11348: # are all built from PIC.
11349: case $host_os in
11350: aix3*)
11351: test "$enable_shared" = yes && enable_static=no
11352: if test -n "$RANLIB"; then
11353: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11354: postinstall_cmds='$RANLIB $lib'
11355: fi
11356: ;;
11357:
11358: aix[4-9]*)
11359: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11360: test "$enable_shared" = yes && enable_static=no
11361: fi
11362: ;;
11363: esac
11364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11365: $as_echo "$enable_shared" >&6; }
11366:
11367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11368: $as_echo_n "checking whether to build static libraries... " >&6; }
11369: # Make sure either enable_shared or enable_static is yes.
11370: test "$enable_shared" = yes || enable_static=yes
11371: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11372: $as_echo "$enable_static" >&6; }
11373:
11374:
11375:
11376:
11377: fi
11378: ac_ext=c
11379: ac_cpp='$CPP $CPPFLAGS'
11380: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11381: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11382: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11383:
11384: CC="$lt_save_CC"
11385:
11386:
11387:
11388:
11389:
11390:
11391:
11392:
11393:
11394:
11395:
11396:
11397:
11398: ac_config_commands="$ac_config_commands libtool"
11399:
11400:
11401:
11402:
11403: # Only expand once:
11404:
11405:
11406:
11407: VERSION_SCRIPT_FLAGS=
11408: # lt_cv_prog_gnu_ld is from libtool 2.+
11409: if test "$lt_cv_prog_gnu_ld" = yes; then
11410: VERSION_SCRIPT_FLAGS=-Wl,--version-script=
11411: else
11412: case $host in
11413: *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
11414: esac
11415: fi
11416:
11417: if test -z "$VERSION_SCRIPT_FLAGS"; then
11418: USE_VERSION_SCRIPT_TRUE=
11419: USE_VERSION_SCRIPT_FALSE='#'
11420: else
11421: USE_VERSION_SCRIPT_TRUE='#'
11422: USE_VERSION_SCRIPT_FALSE=
11423: fi
11424:
11425:
11426:
11427: _cppflags="${CPPFLAGS}"
11428: _ldflags="${LDFLAGS}"
11429:
11430:
11431: # Check whether --with-c14n was given.
11432: if test "${with_c14n+set}" = set; then :
11433: withval=$with_c14n;
11434: fi
11435:
11436:
11437: # Check whether --with-catalog was given.
11438: if test "${with_catalog+set}" = set; then :
11439: withval=$with_catalog;
11440: fi
11441:
11442:
11443: # Check whether --with-debug was given.
11444: if test "${with_debug+set}" = set; then :
11445: withval=$with_debug;
11446: fi
11447:
11448:
11449: # Check whether --with-docbook was given.
11450: if test "${with_docbook+set}" = set; then :
11451: withval=$with_docbook;
11452: fi
11453:
11454:
11455: # Check whether --with-fexceptions was given.
11456: if test "${with_fexceptions+set}" = set; then :
11457: withval=$with_fexceptions;
11458: fi
11459:
11460:
11461: # Check whether --with-ftp was given.
11462: if test "${with_ftp+set}" = set; then :
11463: withval=$with_ftp;
11464: fi
11465:
11466:
11467: # Check whether --with-history was given.
11468: if test "${with_history+set}" = set; then :
11469: withval=$with_history;
11470: fi
11471:
11472:
11473: # Check whether --with-html was given.
11474: if test "${with_html+set}" = set; then :
11475: withval=$with_html;
11476: fi
11477:
11478:
11479: # Check whether --with-html-dir was given.
11480: if test "${with_html_dir+set}" = set; then :
11481: withval=$with_html_dir; HTML_DIR=$withval
11482: else
11483: HTML_DIR='$(datadir)/doc'
11484: fi
11485:
11486:
11487:
11488: # Check whether --with-html-subdir was given.
11489: if test "${with_html_subdir+set}" = set; then :
11490: withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
11491: else
11492: HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
11493: fi
11494:
11495:
11496:
11497: # Check whether --with-http was given.
11498: if test "${with_http+set}" = set; then :
11499: withval=$with_http;
11500: fi
11501:
11502:
11503: # Check whether --with-iconv was given.
11504: if test "${with_iconv+set}" = set; then :
11505: withval=$with_iconv;
11506: fi
11507:
11508:
11509: # Check whether --with-icu was given.
11510: if test "${with_icu+set}" = set; then :
11511: withval=$with_icu;
11512: fi
11513:
11514:
11515: # Check whether --with-iso8859x was given.
11516: if test "${with_iso8859x+set}" = set; then :
11517: withval=$with_iso8859x;
11518: fi
11519:
11520:
11521: # Check whether --with-legacy was given.
11522: if test "${with_legacy+set}" = set; then :
11523: withval=$with_legacy;
11524: fi
11525:
11526:
11527: # Check whether --with-mem_debug was given.
11528: if test "${with_mem_debug+set}" = set; then :
11529: withval=$with_mem_debug;
11530: fi
11531:
11532:
11533: # Check whether --with-minimum was given.
11534: if test "${with_minimum+set}" = set; then :
11535: withval=$with_minimum;
11536: fi
11537:
11538:
11539: # Check whether --with-output was given.
11540: if test "${with_output+set}" = set; then :
11541: withval=$with_output;
11542: fi
11543:
11544:
11545: # Check whether --with-pattern was given.
11546: if test "${with_pattern+set}" = set; then :
11547: withval=$with_pattern;
11548: fi
11549:
11550:
11551: # Check whether --with-push was given.
11552: if test "${with_push+set}" = set; then :
11553: withval=$with_push;
11554: fi
11555:
11556:
11557: # Check whether --with-python was given.
11558: if test "${with_python+set}" = set; then :
11559: withval=$with_python;
11560: fi
11561:
11562:
11563: # Check whether --with-reader was given.
11564: if test "${with_reader+set}" = set; then :
11565: withval=$with_reader;
11566: fi
11567:
11568:
11569: # Check whether --with-readline was given.
11570: if test "${with_readline+set}" = set; then :
11571: withval=$with_readline;
11572: if test "$withval" != "no" -a "$withval" != "yes"; then
11573: RDL_DIR=$withval
11574: CPPFLAGS="${CPPFLAGS} -I$withval/include"
11575: LDFLAGS="${LDFLAGS} -L$withval/lib"
11576: fi
11577:
11578: fi
11579:
11580:
11581: # Check whether --with-regexps was given.
11582: if test "${with_regexps+set}" = set; then :
11583: withval=$with_regexps;
11584: fi
11585:
11586:
11587: # Check whether --with-run_debug was given.
11588: if test "${with_run_debug+set}" = set; then :
11589: withval=$with_run_debug;
11590: fi
11591:
11592:
11593: # Check whether --with-sax1 was given.
11594: if test "${with_sax1+set}" = set; then :
11595: withval=$with_sax1;
11596: fi
11597:
11598:
11599: # Check whether --with-schemas was given.
11600: if test "${with_schemas+set}" = set; then :
11601: withval=$with_schemas;
11602: fi
11603:
11604:
11605: # Check whether --with-schematron was given.
11606: if test "${with_schematron+set}" = set; then :
11607: withval=$with_schematron;
11608: fi
11609:
11610:
11611: # Check whether --with-threads was given.
11612: if test "${with_threads+set}" = set; then :
11613: withval=$with_threads;
11614: fi
11615:
11616:
11617: # Check whether --with-thread-alloc was given.
11618: if test "${with_thread_alloc+set}" = set; then :
11619: withval=$with_thread_alloc;
11620: fi
11621:
11622:
11623: # Check whether --with-tree was given.
11624: if test "${with_tree+set}" = set; then :
11625: withval=$with_tree;
11626: fi
11627:
11628:
11629: # Check whether --with-valid was given.
11630: if test "${with_valid+set}" = set; then :
11631: withval=$with_valid;
11632: fi
11633:
11634:
11635: # Check whether --with-writer was given.
11636: if test "${with_writer+set}" = set; then :
11637: withval=$with_writer;
11638: fi
11639:
11640:
11641: # Check whether --with-xinclude was given.
11642: if test "${with_xinclude+set}" = set; then :
11643: withval=$with_xinclude;
11644: fi
11645:
11646:
11647: # Check whether --with-xpath was given.
11648: if test "${with_xpath+set}" = set; then :
11649: withval=$with_xpath;
11650: fi
11651:
11652:
11653: # Check whether --with-xptr was given.
11654: if test "${with_xptr+set}" = set; then :
11655: withval=$with_xptr;
11656: fi
11657:
11658:
11659: # Check whether --with-modules was given.
11660: if test "${with_modules+set}" = set; then :
11661: withval=$with_modules;
11662: fi
11663:
11664:
11665: # Check whether --with-zlib was given.
11666: if test "${with_zlib+set}" = set; then :
11667: withval=$with_zlib;
11668: if test "$withval" != "no" -a "$withval" != "yes"; then
11669: Z_DIR=$withval
11670: CPPFLAGS="${CPPFLAGS} -I$withval/include"
11671: LDFLAGS="${LDFLAGS} -L$withval/lib"
11672: fi
11673:
11674: fi
11675:
11676:
11677: # Check whether --with-coverage was given.
11678: if test "${with_coverage+set}" = set; then :
11679: withval=$with_coverage;
11680: fi
11681:
11682:
11683: # Check whether --enable-rebuild-docs was given.
11684: if test "${enable_rebuild_docs+set}" = set; then :
11685: enableval=$enable_rebuild_docs;
11686: fi
11687:
11688: if test "$enable_rebuild_docs" = "no"; then
11689: REBUILD_DOCS_TRUE=
11690: REBUILD_DOCS_FALSE='#'
11691: else
11692: REBUILD_DOCS_TRUE='#'
11693: REBUILD_DOCS_FALSE=
11694: fi
11695:
11696:
11697: if test "$with_schemas" = "yes"
11698: then
11699: with_pattern=yes
11700: with_regexps=yes
11701: fi
11702: if test "$with_schematron" = "yes"
11703: then
11704: with_pattern=yes
11705: with_xpath=yes
11706: fi
11707: if test "$with_reader" = "yes"
11708: then
11709: with_push=yes
11710: fi
11711: if test "$with_xptr" = "yes"
11712: then
11713: with_xpath=yes
11714: fi
11715: if test "$with_minimum" = "yes"
11716: then
11717: echo "Configuring for a minimal library"
11718: if test "$with_c14n" = ""
11719: then
11720: with_c14n=no
11721: fi
11722: if test "$with_catalog" = ""
11723: then
11724: with_catalog=no
11725: fi
11726: echo So far so good!
11727: if test "$with_debug" = ""
11728: then
11729: with_debug=no
11730: fi
11731: if test "$with_docbook" = ""
11732: then
11733: with_docbook=no
11734: fi
11735: if test "$with_fexceptions" = ""
11736: then
11737: with_fexceptions=no
11738: fi
11739: if test "$with_ftp" = ""
11740: then
11741: with_ftp=no
11742: fi
11743: if test "$with_history" = ""
11744: then
11745: with_history=no
11746: fi
11747: if test "$with_html" = ""
11748: then
11749: with_html=no
11750: fi
11751: if test "$with_http" = ""
11752: then
11753: with_http=no
11754: fi
11755: if test "$with_iconv" = ""
11756: then
11757: with_iconv=no
11758: fi
11759: if test "$with_iso8859x" = ""
11760: then
11761: with_iso8859x=no
11762: fi
11763: if test "$with_legacy" = ""
11764: then
11765: with_legacy=no
11766: fi
11767: if test "$with_mem_debug" = ""
11768: then
11769: with_mem_debug=no
11770: fi
11771: if test "$with_output" = ""
11772: then
11773: with_output=no
11774: fi
11775: if test "$with_pattern" = ""
11776: then
11777: with_pattern=no
11778: fi
11779: if test "$with_push" = ""
11780: then
11781: with_push=no
11782: fi
11783: if test "$with_python" = ""
11784: then
11785: with_python=no
11786: fi
11787: if test "$with_reader" = ""
11788: then
11789: with_reader=no
11790: fi
11791: if test "$with_readline" = ""
11792: then
11793: with_readline=no
11794: fi
11795: if test "$with_regexps" = ""
11796: then
11797: with_regexps=no
11798: fi
11799: if test "$with_run_debug" = ""
11800: then
11801: with_run_debug=no
11802: fi
11803: if test "$with_sax1" = ""
11804: then
11805: with_sax1=no
11806: fi
11807: if test "$with_schemas" = ""
11808: then
11809: with_schemas=no
11810: fi
11811: if test "$with_schematron" = ""
11812: then
11813: with_schematron=no
11814: fi
11815: if test "$with_threads" = ""
11816: then
11817: with_threads=no
11818: fi
11819: if test "$with_thread_alloc" = ""
11820: then
11821: with_thread_alloc=no
11822: fi
11823: if test "$with_tree" = ""
11824: then
11825: with_tree=no
11826: fi
11827: if test "$with_valid" = ""
11828: then
11829: with_valid=no
11830: fi
11831: if test "$with_writer" = ""
11832: then
11833: with_writer=no
11834: fi
11835: if test "$with_xinclude" = ""
11836: then
11837: with_xinclude=no
11838: fi
11839: if test "$with_xpath" = ""
11840: then
11841: with_xpath=no
11842: fi
11843: if test "$with_xptr" = ""
11844: then
11845: with_xptr=no
11846: fi
11847: if test "$with_zlib" = ""
11848: then
11849: with_zlib=no
11850: fi
11851: if test "$with_modules" = ""
11852: then
11853: with_modules=no
11854: fi
11855: fi
11856:
11857: echo Checking zlib
11858:
11859:
11860: WITH_ZLIB=0
11861: if test "$with_zlib" = "no"; then
11862: echo "Disabling compression support"
11863: else
11864: for ac_header in zlib.h
11865: do :
11866: ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11867: if test "x$ac_cv_header_zlib_h" = x""yes; then :
11868: cat >>confdefs.h <<_ACEOF
11869: #define HAVE_ZLIB_H 1
11870: _ACEOF
11871: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
11872: $as_echo_n "checking for gzread in -lz... " >&6; }
11873: if test "${ac_cv_lib_z_gzread+set}" = set; then :
11874: $as_echo_n "(cached) " >&6
11875: else
11876: ac_check_lib_save_LIBS=$LIBS
11877: LIBS="-lz $LIBS"
11878: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879: /* end confdefs.h. */
11880:
11881: /* Override any GCC internal prototype to avoid an error.
11882: Use char because int might match the return type of a GCC
11883: builtin and then its argument prototype would still apply. */
11884: #ifdef __cplusplus
11885: extern "C"
11886: #endif
11887: char gzread ();
11888: int
11889: main ()
11890: {
11891: return gzread ();
11892: ;
11893: return 0;
11894: }
11895: _ACEOF
11896: if ac_fn_c_try_link "$LINENO"; then :
11897: ac_cv_lib_z_gzread=yes
11898: else
11899: ac_cv_lib_z_gzread=no
11900: fi
11901: rm -f core conftest.err conftest.$ac_objext \
11902: conftest$ac_exeext conftest.$ac_ext
11903: LIBS=$ac_check_lib_save_LIBS
11904: fi
11905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
11906: $as_echo "$ac_cv_lib_z_gzread" >&6; }
11907: if test "x$ac_cv_lib_z_gzread" = x""yes; then :
11908:
11909:
11910: $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
11911:
11912: WITH_ZLIB=1
11913: if test "x${Z_DIR}" != "x"; then
11914: Z_CFLAGS="-I${Z_DIR}/include"
11915: Z_LIBS="-L${Z_DIR}/lib -lz"
11916: case ${host} in
11917: *-*-solaris*)
11918: Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
11919: ;;
11920: esac
11921: else
11922: Z_LIBS="-lz"
11923: fi
11924: fi
11925:
11926: fi
11927:
11928: done
11929:
11930: fi
11931:
11932:
11933:
11934:
11935:
11936: CPPFLAGS=${_cppflags}
11937: LDFLAGS=${_ldflags}
11938:
11939: echo Checking headers
11940:
11941: ac_header_dirent=no
11942: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11943: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11945: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11946: if eval "test \"\${$as_ac_Header+set}\"" = set; then :
11947: $as_echo_n "(cached) " >&6
11948: else
11949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950: /* end confdefs.h. */
11951: #include <sys/types.h>
11952: #include <$ac_hdr>
11953:
11954: int
11955: main ()
11956: {
11957: if ((DIR *) 0)
11958: return 0;
11959: ;
11960: return 0;
11961: }
11962: _ACEOF
11963: if ac_fn_c_try_compile "$LINENO"; then :
11964: eval "$as_ac_Header=yes"
11965: else
11966: eval "$as_ac_Header=no"
11967: fi
11968: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969: fi
11970: eval ac_res=\$$as_ac_Header
11971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11972: $as_echo "$ac_res" >&6; }
11973: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11974: cat >>confdefs.h <<_ACEOF
11975: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11976: _ACEOF
11977:
11978: ac_header_dirent=$ac_hdr; break
11979: fi
11980:
11981: done
11982: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11983: if test $ac_header_dirent = dirent.h; then
11984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11985: $as_echo_n "checking for library containing opendir... " >&6; }
11986: if test "${ac_cv_search_opendir+set}" = set; then :
11987: $as_echo_n "(cached) " >&6
11988: else
11989: ac_func_search_save_LIBS=$LIBS
11990: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991: /* end confdefs.h. */
11992:
11993: /* Override any GCC internal prototype to avoid an error.
11994: Use char because int might match the return type of a GCC
11995: builtin and then its argument prototype would still apply. */
11996: #ifdef __cplusplus
11997: extern "C"
11998: #endif
11999: char opendir ();
12000: int
12001: main ()
12002: {
12003: return opendir ();
12004: ;
12005: return 0;
12006: }
12007: _ACEOF
12008: for ac_lib in '' dir; do
12009: if test -z "$ac_lib"; then
12010: ac_res="none required"
12011: else
12012: ac_res=-l$ac_lib
12013: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12014: fi
12015: if ac_fn_c_try_link "$LINENO"; then :
12016: ac_cv_search_opendir=$ac_res
12017: fi
12018: rm -f core conftest.err conftest.$ac_objext \
12019: conftest$ac_exeext
12020: if test "${ac_cv_search_opendir+set}" = set; then :
12021: break
12022: fi
12023: done
12024: if test "${ac_cv_search_opendir+set}" = set; then :
12025:
12026: else
12027: ac_cv_search_opendir=no
12028: fi
12029: rm conftest.$ac_ext
12030: LIBS=$ac_func_search_save_LIBS
12031: fi
12032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12033: $as_echo "$ac_cv_search_opendir" >&6; }
12034: ac_res=$ac_cv_search_opendir
12035: if test "$ac_res" != no; then :
12036: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12037:
12038: fi
12039:
12040: else
12041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12042: $as_echo_n "checking for library containing opendir... " >&6; }
12043: if test "${ac_cv_search_opendir+set}" = set; then :
12044: $as_echo_n "(cached) " >&6
12045: else
12046: ac_func_search_save_LIBS=$LIBS
12047: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048: /* end confdefs.h. */
12049:
12050: /* Override any GCC internal prototype to avoid an error.
12051: Use char because int might match the return type of a GCC
12052: builtin and then its argument prototype would still apply. */
12053: #ifdef __cplusplus
12054: extern "C"
12055: #endif
12056: char opendir ();
12057: int
12058: main ()
12059: {
12060: return opendir ();
12061: ;
12062: return 0;
12063: }
12064: _ACEOF
12065: for ac_lib in '' x; do
12066: if test -z "$ac_lib"; then
12067: ac_res="none required"
12068: else
12069: ac_res=-l$ac_lib
12070: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12071: fi
12072: if ac_fn_c_try_link "$LINENO"; then :
12073: ac_cv_search_opendir=$ac_res
12074: fi
12075: rm -f core conftest.err conftest.$ac_objext \
12076: conftest$ac_exeext
12077: if test "${ac_cv_search_opendir+set}" = set; then :
12078: break
12079: fi
12080: done
12081: if test "${ac_cv_search_opendir+set}" = set; then :
12082:
12083: else
12084: ac_cv_search_opendir=no
12085: fi
12086: rm conftest.$ac_ext
12087: LIBS=$ac_func_search_save_LIBS
12088: fi
12089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12090: $as_echo "$ac_cv_search_opendir" >&6; }
12091: ac_res=$ac_cv_search_opendir
12092: if test "$ac_res" != no; then :
12093: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12094:
12095: fi
12096:
12097: fi
12098:
12099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12100: $as_echo_n "checking for ANSI C header files... " >&6; }
12101: if test "${ac_cv_header_stdc+set}" = set; then :
12102: $as_echo_n "(cached) " >&6
12103: else
12104: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105: /* end confdefs.h. */
12106: #include <stdlib.h>
12107: #include <stdarg.h>
12108: #include <string.h>
12109: #include <float.h>
12110:
12111: int
12112: main ()
12113: {
12114:
12115: ;
12116: return 0;
12117: }
12118: _ACEOF
12119: if ac_fn_c_try_compile "$LINENO"; then :
12120: ac_cv_header_stdc=yes
12121: else
12122: ac_cv_header_stdc=no
12123: fi
12124: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12125:
12126: if test $ac_cv_header_stdc = yes; then
12127: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12128: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129: /* end confdefs.h. */
12130: #include <string.h>
12131:
12132: _ACEOF
12133: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12134: $EGREP "memchr" >/dev/null 2>&1; then :
12135:
12136: else
12137: ac_cv_header_stdc=no
12138: fi
12139: rm -f conftest*
12140:
12141: fi
12142:
12143: if test $ac_cv_header_stdc = yes; then
12144: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12145: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146: /* end confdefs.h. */
12147: #include <stdlib.h>
12148:
12149: _ACEOF
12150: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12151: $EGREP "free" >/dev/null 2>&1; then :
12152:
12153: else
12154: ac_cv_header_stdc=no
12155: fi
12156: rm -f conftest*
12157:
12158: fi
12159:
12160: if test $ac_cv_header_stdc = yes; then
12161: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12162: if test "$cross_compiling" = yes; then :
12163: :
12164: else
12165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166: /* end confdefs.h. */
12167: #include <ctype.h>
12168: #include <stdlib.h>
12169: #if ((' ' & 0x0FF) == 0x020)
12170: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12171: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12172: #else
12173: # define ISLOWER(c) \
12174: (('a' <= (c) && (c) <= 'i') \
12175: || ('j' <= (c) && (c) <= 'r') \
12176: || ('s' <= (c) && (c) <= 'z'))
12177: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12178: #endif
12179:
12180: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12181: int
12182: main ()
12183: {
12184: int i;
12185: for (i = 0; i < 256; i++)
12186: if (XOR (islower (i), ISLOWER (i))
12187: || toupper (i) != TOUPPER (i))
12188: return 2;
12189: return 0;
12190: }
12191: _ACEOF
12192: if ac_fn_c_try_run "$LINENO"; then :
12193:
12194: else
12195: ac_cv_header_stdc=no
12196: fi
12197: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12198: conftest.$ac_objext conftest.beam conftest.$ac_ext
12199: fi
12200:
12201: fi
12202: fi
12203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12204: $as_echo "$ac_cv_header_stdc" >&6; }
12205: if test $ac_cv_header_stdc = yes; then
12206:
12207: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12208:
12209: fi
12210:
12211: for ac_header in fcntl.h
12212: do :
12213: ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
12214: if test "x$ac_cv_header_fcntl_h" = x""yes; then :
12215: cat >>confdefs.h <<_ACEOF
12216: #define HAVE_FCNTL_H 1
12217: _ACEOF
12218:
12219: fi
12220:
12221: done
12222:
12223: for ac_header in unistd.h
12224: do :
12225: ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12226: if test "x$ac_cv_header_unistd_h" = x""yes; then :
12227: cat >>confdefs.h <<_ACEOF
12228: #define HAVE_UNISTD_H 1
12229: _ACEOF
12230:
12231: fi
12232:
12233: done
12234:
12235: for ac_header in ctype.h
12236: do :
12237: ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
12238: if test "x$ac_cv_header_ctype_h" = x""yes; then :
12239: cat >>confdefs.h <<_ACEOF
12240: #define HAVE_CTYPE_H 1
12241: _ACEOF
12242:
12243: fi
12244:
12245: done
12246:
12247: for ac_header in dirent.h
12248: do :
12249: ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
12250: if test "x$ac_cv_header_dirent_h" = x""yes; then :
12251: cat >>confdefs.h <<_ACEOF
12252: #define HAVE_DIRENT_H 1
12253: _ACEOF
12254:
12255: fi
12256:
12257: done
12258:
12259: for ac_header in errno.h
12260: do :
12261: ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
12262: if test "x$ac_cv_header_errno_h" = x""yes; then :
12263: cat >>confdefs.h <<_ACEOF
12264: #define HAVE_ERRNO_H 1
12265: _ACEOF
12266:
12267: fi
12268:
12269: done
12270:
12271: for ac_header in malloc.h
12272: do :
12273: ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
12274: if test "x$ac_cv_header_malloc_h" = x""yes; then :
12275: cat >>confdefs.h <<_ACEOF
12276: #define HAVE_MALLOC_H 1
12277: _ACEOF
12278:
12279: fi
12280:
12281: done
12282:
12283: for ac_header in stdarg.h
12284: do :
12285: ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12286: if test "x$ac_cv_header_stdarg_h" = x""yes; then :
12287: cat >>confdefs.h <<_ACEOF
12288: #define HAVE_STDARG_H 1
12289: _ACEOF
12290:
12291: fi
12292:
12293: done
12294:
12295: for ac_header in sys/stat.h
12296: do :
12297: ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12298: if test "x$ac_cv_header_sys_stat_h" = x""yes; then :
12299: cat >>confdefs.h <<_ACEOF
12300: #define HAVE_SYS_STAT_H 1
12301: _ACEOF
12302:
12303: fi
12304:
12305: done
12306:
12307: for ac_header in sys/types.h
12308: do :
12309: ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12310: if test "x$ac_cv_header_sys_types_h" = x""yes; then :
12311: cat >>confdefs.h <<_ACEOF
12312: #define HAVE_SYS_TYPES_H 1
12313: _ACEOF
12314:
12315: fi
12316:
12317: done
12318:
12319: for ac_header in stdint.h
12320: do :
12321: ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12322: if test "x$ac_cv_header_stdint_h" = x""yes; then :
12323: cat >>confdefs.h <<_ACEOF
12324: #define HAVE_STDINT_H 1
12325: _ACEOF
12326:
12327: fi
12328:
12329: done
12330:
12331: for ac_header in inttypes.h.h
12332: do :
12333: ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h.h" "ac_cv_header_inttypes_h_h" "$ac_includes_default"
12334: if test "x$ac_cv_header_inttypes_h_h" = x""yes; then :
12335: cat >>confdefs.h <<_ACEOF
12336: #define HAVE_INTTYPES_H_H 1
12337: _ACEOF
12338:
12339: fi
12340:
12341: done
12342:
12343: for ac_header in time.h
12344: do :
12345: ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12346: if test "x$ac_cv_header_time_h" = x""yes; then :
12347: cat >>confdefs.h <<_ACEOF
12348: #define HAVE_TIME_H 1
12349: _ACEOF
12350:
12351: fi
12352:
12353: done
12354:
12355: for ac_header in ansidecl.h
12356: do :
12357: ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
12358: if test "x$ac_cv_header_ansidecl_h" = x""yes; then :
12359: cat >>confdefs.h <<_ACEOF
12360: #define HAVE_ANSIDECL_H 1
12361: _ACEOF
12362:
12363: fi
12364:
12365: done
12366:
12367: for ac_header in ieeefp.h
12368: do :
12369: ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
12370: if test "x$ac_cv_header_ieeefp_h" = x""yes; then :
12371: cat >>confdefs.h <<_ACEOF
12372: #define HAVE_IEEEFP_H 1
12373: _ACEOF
12374:
12375: fi
12376:
12377: done
12378:
12379: for ac_header in nan.h
12380: do :
12381: ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_includes_default"
12382: if test "x$ac_cv_header_nan_h" = x""yes; then :
12383: cat >>confdefs.h <<_ACEOF
12384: #define HAVE_NAN_H 1
12385: _ACEOF
12386:
12387: fi
12388:
12389: done
12390:
12391: for ac_header in math.h
12392: do :
12393: ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
12394: if test "x$ac_cv_header_math_h" = x""yes; then :
12395: cat >>confdefs.h <<_ACEOF
12396: #define HAVE_MATH_H 1
12397: _ACEOF
12398:
12399: fi
12400:
12401: done
12402:
12403: for ac_header in limits.h
12404: do :
12405: ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
12406: if test "x$ac_cv_header_limits_h" = x""yes; then :
12407: cat >>confdefs.h <<_ACEOF
12408: #define HAVE_LIMITS_H 1
12409: _ACEOF
12410:
12411: fi
12412:
12413: done
12414:
12415: for ac_header in fp_class.h
12416: do :
12417: ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
12418: if test "x$ac_cv_header_fp_class_h" = x""yes; then :
12419: cat >>confdefs.h <<_ACEOF
12420: #define HAVE_FP_CLASS_H 1
12421: _ACEOF
12422:
12423: fi
12424:
12425: done
12426:
12427: for ac_header in float.h
12428: do :
12429: ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
12430: if test "x$ac_cv_header_float_h" = x""yes; then :
12431: cat >>confdefs.h <<_ACEOF
12432: #define HAVE_FLOAT_H 1
12433: _ACEOF
12434:
12435: fi
12436:
12437: done
12438:
12439: for ac_header in stdlib.h
12440: do :
12441: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12442: if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12443: cat >>confdefs.h <<_ACEOF
12444: #define HAVE_STDLIB_H 1
12445: _ACEOF
12446:
12447: fi
12448:
12449: done
12450:
12451: for ac_header in sys/socket.h
12452: do :
12453: ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
12454: # include <sys/types.h>
12455: # endif
12456:
12457: "
12458: if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
12459: cat >>confdefs.h <<_ACEOF
12460: #define HAVE_SYS_SOCKET_H 1
12461: _ACEOF
12462:
12463: fi
12464:
12465: done
12466:
12467: for ac_header in netinet/in.h
12468: do :
12469: ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
12470: # include <sys/types.h>
12471: # endif
12472:
12473: "
12474: if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12475: cat >>confdefs.h <<_ACEOF
12476: #define HAVE_NETINET_IN_H 1
12477: _ACEOF
12478:
12479: fi
12480:
12481: done
12482:
12483: for ac_header in arpa/inet.h
12484: do :
12485: ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
12486: # include <sys/types.h>
12487: # endif
12488: #if HAVE_ARPA_INET_H
12489: # include <arpa/inet.h>
12490: # endif
12491:
12492: "
12493: if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12494: cat >>confdefs.h <<_ACEOF
12495: #define HAVE_ARPA_INET_H 1
12496: _ACEOF
12497:
12498: fi
12499:
12500: done
12501:
12502: for ac_header in netdb.h
12503: do :
12504: ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
12505: if test "x$ac_cv_header_netdb_h" = x""yes; then :
12506: cat >>confdefs.h <<_ACEOF
12507: #define HAVE_NETDB_H 1
12508: _ACEOF
12509:
12510: fi
12511:
12512: done
12513:
12514: for ac_header in sys/time.h
12515: do :
12516: ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12517: if test "x$ac_cv_header_sys_time_h" = x""yes; then :
12518: cat >>confdefs.h <<_ACEOF
12519: #define HAVE_SYS_TIME_H 1
12520: _ACEOF
12521:
12522: fi
12523:
12524: done
12525:
12526: for ac_header in sys/select.h
12527: do :
12528: ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12529: if test "x$ac_cv_header_sys_select_h" = x""yes; then :
12530: cat >>confdefs.h <<_ACEOF
12531: #define HAVE_SYS_SELECT_H 1
12532: _ACEOF
12533:
12534: fi
12535:
12536: done
12537:
12538: for ac_header in poll.h
12539: do :
12540: ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12541: if test "x$ac_cv_header_poll_h" = x""yes; then :
12542: cat >>confdefs.h <<_ACEOF
12543: #define HAVE_POLL_H 1
12544: _ACEOF
12545:
12546: fi
12547:
12548: done
12549:
12550: for ac_header in sys/mman.h
12551: do :
12552: ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12553: if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12554: cat >>confdefs.h <<_ACEOF
12555: #define HAVE_SYS_MMAN_H 1
12556: _ACEOF
12557:
12558: fi
12559:
12560: done
12561:
12562: for ac_header in sys/timeb.h
12563: do :
12564: ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
12565: if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
12566: cat >>confdefs.h <<_ACEOF
12567: #define HAVE_SYS_TIMEB_H 1
12568: _ACEOF
12569:
12570: fi
12571:
12572: done
12573:
12574: for ac_header in signal.h
12575: do :
12576: ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
12577: if test "x$ac_cv_header_signal_h" = x""yes; then :
12578: cat >>confdefs.h <<_ACEOF
12579: #define HAVE_SIGNAL_H 1
12580: _ACEOF
12581:
12582: fi
12583:
12584: done
12585:
12586: for ac_header in arpa/nameser.h
12587: do :
12588: ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
12589: # include <sys/types.h>
12590: # endif
12591:
12592: "
12593: if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then :
12594: cat >>confdefs.h <<_ACEOF
12595: #define HAVE_ARPA_NAMESER_H 1
12596: _ACEOF
12597:
12598: fi
12599:
12600: done
12601:
12602: for ac_header in resolv.h
12603: do :
12604: ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
12605: # include <sys/types.h>
12606: # endif
12607: #if HAVE_NETINET_IN_H
12608: # include <netinet/in.h>
12609: # endif
12610: #if HAVE_ARPA_NAMESER_H
12611: # include <arpa/nameser.h>
12612: # endif
12613:
12614: "
12615: if test "x$ac_cv_header_resolv_h" = x""yes; then :
12616: cat >>confdefs.h <<_ACEOF
12617: #define HAVE_RESOLV_H 1
12618: _ACEOF
12619:
12620: fi
12621:
12622: done
12623:
12624: for ac_header in dl.h
12625: do :
12626: ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
12627: if test "x$ac_cv_header_dl_h" = x""yes; then :
12628: cat >>confdefs.h <<_ACEOF
12629: #define HAVE_DL_H 1
12630: _ACEOF
12631:
12632: fi
12633:
12634: done
12635:
12636: for ac_header in dlfcn.h
12637: do :
12638: ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12639: if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
12640: cat >>confdefs.h <<_ACEOF
12641: #define HAVE_DLFCN_H 1
12642: _ACEOF
12643:
12644: fi
12645:
12646: done
12647:
12648:
12649:
12650: echo Checking libraries
12651:
12652: for ac_func in strftime
12653: do :
12654: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12655: if test "x$ac_cv_func_strftime" = x""yes; then :
12656: cat >>confdefs.h <<_ACEOF
12657: #define HAVE_STRFTIME 1
12658: _ACEOF
12659:
12660: else
12661: # strftime is in -lintl on SCO UNIX.
12662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12663: $as_echo_n "checking for strftime in -lintl... " >&6; }
12664: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12665: $as_echo_n "(cached) " >&6
12666: else
12667: ac_check_lib_save_LIBS=$LIBS
12668: LIBS="-lintl $LIBS"
12669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12670: /* end confdefs.h. */
12671:
12672: /* Override any GCC internal prototype to avoid an error.
12673: Use char because int might match the return type of a GCC
12674: builtin and then its argument prototype would still apply. */
12675: #ifdef __cplusplus
12676: extern "C"
12677: #endif
12678: char strftime ();
12679: int
12680: main ()
12681: {
12682: return strftime ();
12683: ;
12684: return 0;
12685: }
12686: _ACEOF
12687: if ac_fn_c_try_link "$LINENO"; then :
12688: ac_cv_lib_intl_strftime=yes
12689: else
12690: ac_cv_lib_intl_strftime=no
12691: fi
12692: rm -f core conftest.err conftest.$ac_objext \
12693: conftest$ac_exeext conftest.$ac_ext
12694: LIBS=$ac_check_lib_save_LIBS
12695: fi
12696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12697: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12698: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12699: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12700:
12701: LIBS="-lintl $LIBS"
12702: fi
12703:
12704: fi
12705: done
12706:
12707: for ac_func in strdup strndup strerror
12708: do :
12709: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12711: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12712: cat >>confdefs.h <<_ACEOF
12713: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12714: _ACEOF
12715:
12716: fi
12717: done
12718:
12719: for ac_func in finite isnand fp_class class fpclass
12720: do :
12721: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12722: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12723: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12724: cat >>confdefs.h <<_ACEOF
12725: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12726: _ACEOF
12727:
12728: fi
12729: done
12730:
12731: for ac_func in strftime localtime gettimeofday ftime
12732: do :
12733: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12734: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12735: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12736: cat >>confdefs.h <<_ACEOF
12737: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12738: _ACEOF
12739:
12740: fi
12741: done
12742:
12743: for ac_func in stat _stat signal
12744: do :
12745: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12746: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12747: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12748: cat >>confdefs.h <<_ACEOF
12749: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12750: _ACEOF
12751:
12752: fi
12753: done
12754:
12755:
12756: for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
12757: do :
12758: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12759: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12760: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12761: cat >>confdefs.h <<_ACEOF
12762: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12763: _ACEOF
12764:
12765: else
12766: NEED_TRIO=1
12767: fi
12768: done
12769:
12770:
12771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
12772: $as_echo_n "checking for va_copy... " >&6; }
12773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774: /* end confdefs.h. */
12775: #include <stdarg.h>
12776: va_list ap1,ap2;
12777: int
12778: main ()
12779: {
12780: va_copy(ap1,ap2);
12781: ;
12782: return 0;
12783: }
12784: _ACEOF
12785: if ac_fn_c_try_link "$LINENO"; then :
12786: have_va_copy=yes
12787: else
12788: have_va_copy=no
12789: fi
12790: rm -f core conftest.err conftest.$ac_objext \
12791: conftest$ac_exeext conftest.$ac_ext
12792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
12793: $as_echo "$have_va_copy" >&6; }
12794: if test x"$have_va_copy" = x"yes"; then
12795:
12796: $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
12797:
12798: else
12799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
12800: $as_echo_n "checking for __va_copy... " >&6; }
12801: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802: /* end confdefs.h. */
12803: #include <stdarg.h>
12804: va_list ap1,ap2;
12805: int
12806: main ()
12807: {
12808: __va_copy(ap1,ap2);
12809: ;
12810: return 0;
12811: }
12812: _ACEOF
12813: if ac_fn_c_try_link "$LINENO"; then :
12814: have___va_copy=yes
12815: else
12816: have___va_copy=no
12817: fi
12818: rm -f core conftest.err conftest.$ac_objext \
12819: conftest$ac_exeext conftest.$ac_ext
12820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
12821: $as_echo "$have___va_copy" >&6; }
12822: if test x"$have___va_copy" = x"yes"; then
12823:
12824: $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
12825:
12826: fi
12827: fi
12828:
12829: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
12830: $as_echo_n "checking for library containing gethostent... " >&6; }
12831: if test "${ac_cv_search_gethostent+set}" = set; then :
12832: $as_echo_n "(cached) " >&6
12833: else
12834: ac_func_search_save_LIBS=$LIBS
12835: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836: /* end confdefs.h. */
12837:
12838: /* Override any GCC internal prototype to avoid an error.
12839: Use char because int might match the return type of a GCC
12840: builtin and then its argument prototype would still apply. */
12841: #ifdef __cplusplus
12842: extern "C"
12843: #endif
12844: char gethostent ();
12845: int
12846: main ()
12847: {
12848: return gethostent ();
12849: ;
12850: return 0;
12851: }
12852: _ACEOF
12853: for ac_lib in '' nsl; do
12854: if test -z "$ac_lib"; then
12855: ac_res="none required"
12856: else
12857: ac_res=-l$ac_lib
12858: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12859: fi
12860: if ac_fn_c_try_link "$LINENO"; then :
12861: ac_cv_search_gethostent=$ac_res
12862: fi
12863: rm -f core conftest.err conftest.$ac_objext \
12864: conftest$ac_exeext
12865: if test "${ac_cv_search_gethostent+set}" = set; then :
12866: break
12867: fi
12868: done
12869: if test "${ac_cv_search_gethostent+set}" = set; then :
12870:
12871: else
12872: ac_cv_search_gethostent=no
12873: fi
12874: rm conftest.$ac_ext
12875: LIBS=$ac_func_search_save_LIBS
12876: fi
12877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
12878: $as_echo "$ac_cv_search_gethostent" >&6; }
12879: ac_res=$ac_cv_search_gethostent
12880: if test "$ac_res" != no; then :
12881: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12882:
12883: fi
12884:
12885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
12886: $as_echo_n "checking for library containing setsockopt... " >&6; }
12887: if test "${ac_cv_search_setsockopt+set}" = set; then :
12888: $as_echo_n "(cached) " >&6
12889: else
12890: ac_func_search_save_LIBS=$LIBS
12891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892: /* end confdefs.h. */
12893:
12894: /* Override any GCC internal prototype to avoid an error.
12895: Use char because int might match the return type of a GCC
12896: builtin and then its argument prototype would still apply. */
12897: #ifdef __cplusplus
12898: extern "C"
12899: #endif
12900: char setsockopt ();
12901: int
12902: main ()
12903: {
12904: return setsockopt ();
12905: ;
12906: return 0;
12907: }
12908: _ACEOF
12909: for ac_lib in '' socket net network; do
12910: if test -z "$ac_lib"; then
12911: ac_res="none required"
12912: else
12913: ac_res=-l$ac_lib
12914: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12915: fi
12916: if ac_fn_c_try_link "$LINENO"; then :
12917: ac_cv_search_setsockopt=$ac_res
12918: fi
12919: rm -f core conftest.err conftest.$ac_objext \
12920: conftest$ac_exeext
12921: if test "${ac_cv_search_setsockopt+set}" = set; then :
12922: break
12923: fi
12924: done
12925: if test "${ac_cv_search_setsockopt+set}" = set; then :
12926:
12927: else
12928: ac_cv_search_setsockopt=no
12929: fi
12930: rm conftest.$ac_ext
12931: LIBS=$ac_func_search_save_LIBS
12932: fi
12933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
12934: $as_echo "$ac_cv_search_setsockopt" >&6; }
12935: ac_res=$ac_cv_search_setsockopt
12936: if test "$ac_res" != no; then :
12937: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938:
12939: fi
12940:
12941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12942: $as_echo_n "checking for library containing connect... " >&6; }
12943: if test "${ac_cv_search_connect+set}" = set; then :
12944: $as_echo_n "(cached) " >&6
12945: else
12946: ac_func_search_save_LIBS=$LIBS
12947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948: /* end confdefs.h. */
12949:
12950: /* Override any GCC internal prototype to avoid an error.
12951: Use char because int might match the return type of a GCC
12952: builtin and then its argument prototype would still apply. */
12953: #ifdef __cplusplus
12954: extern "C"
12955: #endif
12956: char connect ();
12957: int
12958: main ()
12959: {
12960: return connect ();
12961: ;
12962: return 0;
12963: }
12964: _ACEOF
12965: for ac_lib in '' inet; do
12966: if test -z "$ac_lib"; then
12967: ac_res="none required"
12968: else
12969: ac_res=-l$ac_lib
12970: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12971: fi
12972: if ac_fn_c_try_link "$LINENO"; then :
12973: ac_cv_search_connect=$ac_res
12974: fi
12975: rm -f core conftest.err conftest.$ac_objext \
12976: conftest$ac_exeext
12977: if test "${ac_cv_search_connect+set}" = set; then :
12978: break
12979: fi
12980: done
12981: if test "${ac_cv_search_connect+set}" = set; then :
12982:
12983: else
12984: ac_cv_search_connect=no
12985: fi
12986: rm conftest.$ac_ext
12987: LIBS=$ac_func_search_save_LIBS
12988: fi
12989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12990: $as_echo "$ac_cv_search_connect" >&6; }
12991: ac_res=$ac_cv_search_connect
12992: if test "$ac_res" != no; then :
12993: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12994:
12995: fi
12996:
12997:
12998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
12999: $as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
13000: cat > conftest.$ac_ext <<EOF
13001: #line 13001 "configure"
13002: #include "confdefs.h"
13003:
13004: #include <stddef.h>
13005: #include <sys/types.h>
13006: #include <sys/socket.h>
13007: int main(void) {
13008:
13009: (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
13010: ; return 0; }
13011: EOF
13012: if { (eval echo configure:13012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13013: rm -rf conftest*
13014:
13015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
13016: $as_echo "socklen_t *" >&6; }
13017: XML_SOCKLEN_T=socklen_t
13018: else
13019: echo "configure: failed program was:" >&5
13020: cat conftest.$ac_ext >&5
13021: rm -rf conftest*
13022:
13023: cat > conftest.$ac_ext <<EOF
13024: #line 13024 "configure"
13025: #include "confdefs.h"
13026:
13027: #include <stddef.h>
13028: #include <sys/types.h>
13029: #include <sys/socket.h>
13030: int main(void) {
13031:
13032: (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
13033: ; return 0; }
13034: EOF
13035: if { (eval echo configure:13035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13036: rm -rf conftest*
13037:
13038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
13039: $as_echo "size_t *" >&6; }
13040: XML_SOCKLEN_T=size_t
13041: else
13042: echo "configure: failed program was:" >&5
13043: cat conftest.$ac_ext >&5
13044: rm -rf conftest*
13045:
13046: cat > conftest.$ac_ext <<EOF
13047: #line 13047 "configure"
13048: #include "confdefs.h"
13049:
13050: #include <stddef.h>
13051: #include <sys/types.h>
13052: #include <sys/socket.h>
13053: int main(void) {
13054:
13055: (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
13056: ; return 0; }
13057: EOF
13058: if { (eval echo configure:13058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13059: rm -rf conftest*
13060:
13061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
13062: $as_echo "int *" >&6; }
13063: XML_SOCKLEN_T=int
13064: else
13065: echo "configure: failed program was:" >&5
13066: cat conftest.$ac_ext >&5
13067: rm -rf conftest*
13068:
13069: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
13070: $as_echo "$as_me: WARNING: could not determine" >&2;}
13071: XML_SOCKLEN_T="int"
13072: fi
13073: rm -f conftest*
13074: fi
13075: rm -f conftest*
13076: fi
13077: rm -f conftest*
13078:
13079: cat >>confdefs.h <<_ACEOF
13080: #define XML_SOCKLEN_T $XML_SOCKLEN_T
13081: _ACEOF
13082:
13083:
13084:
13085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
13086: $as_echo_n "checking whether to enable IPv6... " >&6; }
13087: # Check whether --enable-ipv6 was given.
13088: if test "${enable_ipv6+set}" = set; then :
13089: enableval=$enable_ipv6;
13090: else
13091: enable_ipv6=yes
13092: fi
13093:
13094: if test "$with_minimum" = "yes"
13095: then
13096: enable_ipv6=no
13097: fi
13098: if test $enable_ipv6 = yes; then
13099: have_ipv6=no
13100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101: /* end confdefs.h. */
13102:
13103: #include <sys/types.h>
13104: #include <sys/socket.h>
13105:
13106: int
13107: main ()
13108: {
13109:
13110: struct sockaddr_storage ss;
13111: socket(AF_INET6, SOCK_STREAM, 0)
13112:
13113: ;
13114: return 0;
13115: }
13116: _ACEOF
13117: if ac_fn_c_try_compile "$LINENO"; then :
13118: have_ipv6=yes
13119: else
13120: have_ipv6=no
13121:
13122: fi
13123: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
13125: $as_echo "$have_ipv6" >&6; }
13126:
13127: if test $have_ipv6 = yes; then
13128:
13129: $as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
13130:
13131: have_broken_ss_family=no
13132:
13133: { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
13134: $as_echo_n "checking struct sockaddr::ss_family... " >&6; }
13135: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136: /* end confdefs.h. */
13137:
13138: #include <sys/types.h>
13139: #include <sys/socket.h>
13140:
13141: int
13142: main ()
13143: {
13144:
13145: struct sockaddr_storage ss ;
13146: ss.ss_family = 0 ;
13147:
13148: ;
13149: return 0;
13150: }
13151: _ACEOF
13152: if ac_fn_c_try_compile "$LINENO"; then :
13153: have_ss_family=yes
13154: else
13155: have_ss_family=no
13156:
13157: fi
13158: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
13160: $as_echo "$have_ss_family" >&6; }
13161: if test x$have_ss_family = xno ; then
13162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
13163: $as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
13164: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165: /* end confdefs.h. */
13166:
13167: #include <sys/types.h>
13168: #include <sys/socket.h>
13169:
13170: int
13171: main ()
13172: {
13173:
13174: struct sockaddr_storage ss ;
13175: ss.__ss_family = 0 ;
13176:
13177: ;
13178: return 0;
13179: }
13180: _ACEOF
13181: if ac_fn_c_try_compile "$LINENO"; then :
13182: have_broken_ss_family=yes
13183: else
13184: have_broken_ss_family=no
13185:
13186: fi
13187: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
13189: $as_echo "$have_broken_ss_family" >&6; }
13190: if test x$have_broken_ss_family = xyes ; then
13191:
13192: $as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
13193:
13194:
13195: $as_echo "#define ss_family __ss_family" >>confdefs.h
13196:
13197: else
13198: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
13199: $as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
13200: fi
13201: fi
13202:
13203: have_getaddrinfo=no
13204: ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13205: if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
13206: have_getaddrinfo=yes
13207: fi
13208:
13209: if test $have_getaddrinfo != yes; then
13210: for lib in bsd socket inet; do
13211: as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
13212: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
13213: $as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
13214: if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
13215: $as_echo_n "(cached) " >&6
13216: else
13217: ac_check_lib_save_LIBS=$LIBS
13218: LIBS="-l$lib $LIBS"
13219: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220: /* end confdefs.h. */
13221:
13222: /* Override any GCC internal prototype to avoid an error.
13223: Use char because int might match the return type of a GCC
13224: builtin and then its argument prototype would still apply. */
13225: #ifdef __cplusplus
13226: extern "C"
13227: #endif
13228: char getaddrinfo ();
13229: int
13230: main ()
13231: {
13232: return getaddrinfo ();
13233: ;
13234: return 0;
13235: }
13236: _ACEOF
13237: if ac_fn_c_try_link "$LINENO"; then :
13238: eval "$as_ac_Lib=yes"
13239: else
13240: eval "$as_ac_Lib=no"
13241: fi
13242: rm -f core conftest.err conftest.$ac_objext \
13243: conftest$ac_exeext conftest.$ac_ext
13244: LIBS=$ac_check_lib_save_LIBS
13245: fi
13246: eval ac_res=\$$as_ac_Lib
13247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13248: $as_echo "$ac_res" >&6; }
13249: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13250: LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
13251: fi
13252:
13253: done
13254: fi
13255:
13256: if test $have_getaddrinfo = yes; then
13257:
13258: $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
13259:
13260: fi
13261: fi
13262: fi
13263:
13264:
13265: ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
13266: if test "x$ac_cv_func_isnan" = x""yes; then :
13267:
13268: $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13269:
13270: else
13271: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13272: $as_echo_n "checking for isnan in -lm... " >&6; }
13273: if test "${ac_cv_lib_m_isnan+set}" = set; then :
13274: $as_echo_n "(cached) " >&6
13275: else
13276: ac_check_lib_save_LIBS=$LIBS
13277: LIBS="-lm $LIBS"
13278: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279: /* end confdefs.h. */
13280:
13281: /* Override any GCC internal prototype to avoid an error.
13282: Use char because int might match the return type of a GCC
13283: builtin and then its argument prototype would still apply. */
13284: #ifdef __cplusplus
13285: extern "C"
13286: #endif
13287: char isnan ();
13288: int
13289: main ()
13290: {
13291: return isnan ();
13292: ;
13293: return 0;
13294: }
13295: _ACEOF
13296: if ac_fn_c_try_link "$LINENO"; then :
13297: ac_cv_lib_m_isnan=yes
13298: else
13299: ac_cv_lib_m_isnan=no
13300: fi
13301: rm -f core conftest.err conftest.$ac_objext \
13302: conftest$ac_exeext conftest.$ac_ext
13303: LIBS=$ac_check_lib_save_LIBS
13304: fi
13305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13306: $as_echo "$ac_cv_lib_m_isnan" >&6; }
13307: if test "x$ac_cv_lib_m_isnan" = x""yes; then :
13308:
13309: $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13310:
13311: fi
13312:
13313: fi
13314:
13315:
13316: ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
13317: if test "x$ac_cv_func_isinf" = x""yes; then :
13318:
13319: $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13320:
13321: else
13322: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
13323: $as_echo_n "checking for isinf in -lm... " >&6; }
13324: if test "${ac_cv_lib_m_isinf+set}" = set; then :
13325: $as_echo_n "(cached) " >&6
13326: else
13327: ac_check_lib_save_LIBS=$LIBS
13328: LIBS="-lm $LIBS"
13329: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330: /* end confdefs.h. */
13331:
13332: /* Override any GCC internal prototype to avoid an error.
13333: Use char because int might match the return type of a GCC
13334: builtin and then its argument prototype would still apply. */
13335: #ifdef __cplusplus
13336: extern "C"
13337: #endif
13338: char isinf ();
13339: int
13340: main ()
13341: {
13342: return isinf ();
13343: ;
13344: return 0;
13345: }
13346: _ACEOF
13347: if ac_fn_c_try_link "$LINENO"; then :
13348: ac_cv_lib_m_isinf=yes
13349: else
13350: ac_cv_lib_m_isinf=no
13351: fi
13352: rm -f core conftest.err conftest.$ac_objext \
13353: conftest$ac_exeext conftest.$ac_ext
13354: LIBS=$ac_check_lib_save_LIBS
13355: fi
13356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
13357: $as_echo "$ac_cv_lib_m_isinf" >&6; }
13358: if test "x$ac_cv_lib_m_isinf" = x""yes; then :
13359:
13360: $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13361:
13362: fi
13363:
13364: fi
13365:
13366:
13367: XML_LIBDIR='-L${libdir}'
13368: XML_INCLUDEDIR='-I${includedir}/libxml2'
13369:
13370: XML_CFLAGS=""
13371: RDL_LIBS=""
13372:
13373: if test "${GCC}" != "yes" ; then
13374: case "${host}" in
13375: hppa*-*-hpux* )
13376: CFLAGS="${CFLAGS} -Wp,-H30000"
13377: ;;
13378: *-dec-osf* )
13379: CFLAGS="${CFLAGS} -ieee"
13380: ;;
13381: alpha*-*-linux* )
13382: CFLAGS="${CFLAGS} -ieee"
13383: ;;
13384: esac
13385: else
13386: if test "$with_fexceptions" = "yes"
13387: then
13388: #
13389: # Not activated by default because this inflates the code size
13390: # Used to allow propagation of C++ exceptions through the library
13391: #
13392: CFLAGS="${CFLAGS} -fexceptions"
13393: fi
13394:
13395: 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"
13396: case "${host}" in
13397: alpha*-*-linux* )
13398: CFLAGS="${CFLAGS} -mieee"
13399: ;;
13400: alpha*-*-osf* )
13401: CFLAGS="${CFLAGS} -mieee"
13402: ;;
13403: esac
13404: fi
13405: case ${host} in
13406: *-*-solaris*)
13407: XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
13408: ;;
13409: hppa*-hp-mpeix)
13410: NEED_TRIO=1
13411: ;;
13412: *-*-mingw* | *-*-cygwin* | *-*-msvc* )
13413: # If the host is Windows, and shared libraries are disabled, we
13414: # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
13415: # work properly (without it, xmlexports.h would force the use of
13416: # DLL imports, which obviously aren't present in a static
13417: # library).
13418: if test "x$enable_shared" = "xno"; then
13419: XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
13420: CFLAGS="$CFLAGS -DLIBXML_STATIC"
13421: fi
13422: ;;
13423: esac
13424:
13425:
13426:
13427: PYTHON_VERSION=
13428: PYTHON_INCLUDES=
13429: PYTHON_SITE_PACKAGES=
13430: PYTHON_TESTS=
13431: pythondir=
13432: if test "$with_python" != "no" ; then
13433: if test -x "$with_python/bin/python"
13434: then
13435: echo Found python in $with_python/bin/python
13436: PYTHON="$with_python/bin/python"
13437: else
13438: if test -x "$with_python/python.exe"
13439: then
13440: echo Found python in $with_python/python.exe
13441: PYTHON="$with_python/python.exe"
13442: else
13443: if test -x "$with_python"
13444: then
13445: echo Found python in $with_python
13446: PYTHON="$with_python"
13447: else
13448: if test -x "$PYTHON"
13449: then
13450: echo Found python in environment PYTHON=$PYTHON
13451: with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
13452: else
13453: # 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.
13454: set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
13455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456: $as_echo_n "checking for $ac_word... " >&6; }
13457: if test "${ac_cv_path_PYTHON+set}" = set; then :
13458: $as_echo_n "(cached) " >&6
13459: else
13460: case $PYTHON in
13461: [\\/]* | ?:[\\/]*)
13462: ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13463: ;;
13464: *)
13465: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466: for as_dir in $PATH
13467: do
13468: IFS=$as_save_IFS
13469: test -z "$as_dir" && as_dir=.
13470: for ac_exec_ext in '' $ac_executable_extensions; do
13471: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13472: ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13473: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474: break 2
13475: fi
13476: done
13477: done
13478: IFS=$as_save_IFS
13479:
13480: ;;
13481: esac
13482: fi
13483: PYTHON=$ac_cv_path_PYTHON
13484: if test -n "$PYTHON"; then
13485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13486: $as_echo "$PYTHON" >&6; }
13487: else
13488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489: $as_echo "no" >&6; }
13490: fi
13491:
13492:
13493: fi
13494: fi
13495: fi
13496: fi
13497: if test "$PYTHON" != ""
13498: then
13499: PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
13500: echo Found Python version $PYTHON_VERSION
13501: fi
13502: if test "$PYTHON_VERSION" != ""
13503: then
13504: if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
13505: -d $with_python/lib/python$PYTHON_VERSION/site-packages
13506: then
13507: PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
13508: PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13509: else
13510: if test -r $prefix/include/python$PYTHON_VERSION/Python.h
13511: then
13512: PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
13513: PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13514: else
13515: if test -r /usr/include/python$PYTHON_VERSION/Python.h
13516: then
13517: PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
13518: PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13519: else
13520: if test -r $with_python/include/Python.h -a \
13521: -d $with_python/lib/site-packages
13522: then
13523: PYTHON_INCLUDES=$with_python/include
13524: PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
13525: else
13526: echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h
13527: fi
13528: fi
13529: fi
13530: if test ! -d "$PYTHON_SITE_PACKAGES"
13531: then
13532: PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
13533: fi
13534: fi
13535: PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
13536: fi
13537: if test "$with_python" != ""
13538: then
13539: pythondir='$(PYTHON_SITE_PACKAGES)'
13540: else
13541: pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
13542: fi
13543: else
13544: PYTHON=
13545: fi
13546: if test "$PYTHON_INCLUDES" != ""; then
13547: WITH_PYTHON_TRUE=
13548: WITH_PYTHON_FALSE='#'
13549: else
13550: WITH_PYTHON_TRUE='#'
13551: WITH_PYTHON_FALSE=
13552: fi
13553:
13554: if test "$PYTHON_INCLUDES" != ""
13555: then
13556: PYTHON_SUBDIR=python
13557: else
13558: PYTHON_SUBDIR=
13559: fi
13560:
13561:
13562:
13563:
13564: WITH_MODULES=0
13565: TEST_MODULES=
13566:
13567: if test "$with_modules" != "no" ; then
13568: case "$host" in
13569: *-*-cygwin*)
13570: MODULE_EXTENSION=".dll"
13571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
13572: $as_echo_n "checking for dlopen in -lcygwin... " >&6; }
13573: if test "${ac_cv_lib_cygwin_dlopen+set}" = set; then :
13574: $as_echo_n "(cached) " >&6
13575: else
13576: ac_check_lib_save_LIBS=$LIBS
13577: LIBS="-lcygwin $LIBS"
13578: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579: /* end confdefs.h. */
13580:
13581: /* Override any GCC internal prototype to avoid an error.
13582: Use char because int might match the return type of a GCC
13583: builtin and then its argument prototype would still apply. */
13584: #ifdef __cplusplus
13585: extern "C"
13586: #endif
13587: char dlopen ();
13588: int
13589: main ()
13590: {
13591: return dlopen ();
13592: ;
13593: return 0;
13594: }
13595: _ACEOF
13596: if ac_fn_c_try_link "$LINENO"; then :
13597: ac_cv_lib_cygwin_dlopen=yes
13598: else
13599: ac_cv_lib_cygwin_dlopen=no
13600: fi
13601: rm -f core conftest.err conftest.$ac_objext \
13602: conftest$ac_exeext conftest.$ac_ext
13603: LIBS=$ac_check_lib_save_LIBS
13604: fi
13605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
13606: $as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
13607: if test "x$ac_cv_lib_cygwin_dlopen" = x""yes; then :
13608:
13609: WITH_MODULES=1
13610: MODULE_PLATFORM_LIBS=
13611:
13612: $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
13613:
13614:
13615: fi
13616:
13617: ;;
13618: *-*-mingw*)
13619: MODULE_EXTENSION=".dll"
13620: WITH_MODULES=1
13621: ;;
13622: *)
13623: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13624: if test "x$ac_cv_func_shl_load" = x""yes; then :
13625: libxml_have_shl_load=yes
13626: else
13627:
13628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13629: $as_echo_n "checking for shl_load in -ldld... " >&6; }
13630: if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13631: $as_echo_n "(cached) " >&6
13632: else
13633: ac_check_lib_save_LIBS=$LIBS
13634: LIBS="-ldld $LIBS"
13635: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636: /* end confdefs.h. */
13637:
13638: /* Override any GCC internal prototype to avoid an error.
13639: Use char because int might match the return type of a GCC
13640: builtin and then its argument prototype would still apply. */
13641: #ifdef __cplusplus
13642: extern "C"
13643: #endif
13644: char shl_load ();
13645: int
13646: main ()
13647: {
13648: return shl_load ();
13649: ;
13650: return 0;
13651: }
13652: _ACEOF
13653: if ac_fn_c_try_link "$LINENO"; then :
13654: ac_cv_lib_dld_shl_load=yes
13655: else
13656: ac_cv_lib_dld_shl_load=no
13657: fi
13658: rm -f core conftest.err conftest.$ac_objext \
13659: conftest$ac_exeext conftest.$ac_ext
13660: LIBS=$ac_check_lib_save_LIBS
13661: fi
13662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13663: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13664: if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13665:
13666: MODULE_PLATFORM_LIBS="-ldld"
13667: libxml_have_shl_load=yes
13668: else
13669:
13670: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13671: if test "x$ac_cv_func_dlopen" = x""yes; then :
13672: libxml_have_dlopen=yes
13673: else
13674:
13675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13676: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13677: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13678: $as_echo_n "(cached) " >&6
13679: else
13680: ac_check_lib_save_LIBS=$LIBS
13681: LIBS="-ldl $LIBS"
13682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683: /* end confdefs.h. */
13684:
13685: /* Override any GCC internal prototype to avoid an error.
13686: Use char because int might match the return type of a GCC
13687: builtin and then its argument prototype would still apply. */
13688: #ifdef __cplusplus
13689: extern "C"
13690: #endif
13691: char dlopen ();
13692: int
13693: main ()
13694: {
13695: return dlopen ();
13696: ;
13697: return 0;
13698: }
13699: _ACEOF
13700: if ac_fn_c_try_link "$LINENO"; then :
13701: ac_cv_lib_dl_dlopen=yes
13702: else
13703: ac_cv_lib_dl_dlopen=no
13704: fi
13705: rm -f core conftest.err conftest.$ac_objext \
13706: conftest$ac_exeext conftest.$ac_ext
13707: LIBS=$ac_check_lib_save_LIBS
13708: fi
13709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13710: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13711: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13712:
13713: MODULE_PLATFORM_LIBS="-ldl"
13714: libxml_have_dlopen=yes
13715: fi
13716:
13717: fi
13718:
13719: fi
13720:
13721: fi
13722:
13723:
13724: if test "${libxml_have_shl_load}" = "yes"; then
13725: MODULE_EXTENSION=".sl"
13726: WITH_MODULES=1
13727:
13728: $as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
13729:
13730: fi
13731:
13732: if test "${libxml_have_dlopen}" = "yes"; then
13733: case "${host}" in
13734: *-*-hpux* )
13735: MODULE_EXTENSION=".sl"
13736: ;;
13737: * )
13738: MODULE_EXTENSION=".so"
13739: ;;
13740: esac
13741:
13742: WITH_MODULES=1
13743:
13744: $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
13745:
13746: fi
13747: ;;
13748: esac
13749: fi
13750:
13751: if test "${WITH_MODULES}" = "1"; then
13752: TEST_MODULES="ModuleTests"
13753: fi
13754:
13755:
13756:
13757:
13758:
13759:
13760:
13761: if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
13762: [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
13763: [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
13764: then
13765: if test "$with_minimum" != "yes"
13766: then
13767: if test "${with_mem_debug}" = "" ; then
13768: echo Activating memory debugging
13769: with_mem_debug="yes"
13770: with_run_debug="yes"
13771: fi
13772: if test "${with_docbook}" = "" ; then
13773: with_docbook="yes"
13774: fi
13775: fi
13776: if test "${GCC}" = "yes" ; then
13777: 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"
13778: fi
13779: STATIC_BINARIES="-static"
13780: else
13781: STATIC_BINARIES=
13782: fi
13783:
13784:
13785:
13786: if test "${NEED_TRIO}" = "1" ; then
13787: echo Adding trio library for string functions
13788: WITH_TRIO=1
13789: else
13790: WITH_TRIO=0
13791: fi
13792: if test "${NEED_TRIO}" = "1"; then
13793: WITH_TRIO_SOURCES_TRUE=
13794: WITH_TRIO_SOURCES_FALSE='#'
13795: else
13796: WITH_TRIO_SOURCES_TRUE='#'
13797: WITH_TRIO_SOURCES_FALSE=
13798: fi
13799:
13800:
13801:
13802: echo Checking configuration requirements
13803:
13804: THREAD_LIBS=""
13805: BASE_THREAD_LIBS=""
13806: WITH_THREADS=0
13807: THREAD_CFLAGS=""
13808: TEST_THREADS=""
13809: THREADS_W32=""
13810:
13811: if test "$with_threads" = "no" ; then
13812: echo Disabling multithreaded support
13813: else
13814: echo Enabling multithreaded support
13815: if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
13816: ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13817: if test "x$ac_cv_header_pthread_h" = x""yes; then :
13818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
13819: $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
13820: if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then :
13821: $as_echo_n "(cached) " >&6
13822: else
13823: ac_check_lib_save_LIBS=$LIBS
13824: LIBS="-lpthread $LIBS"
13825: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826: /* end confdefs.h. */
13827:
13828: /* Override any GCC internal prototype to avoid an error.
13829: Use char because int might match the return type of a GCC
13830: builtin and then its argument prototype would still apply. */
13831: #ifdef __cplusplus
13832: extern "C"
13833: #endif
13834: char pthread_join ();
13835: int
13836: main ()
13837: {
13838: return pthread_join ();
13839: ;
13840: return 0;
13841: }
13842: _ACEOF
13843: if ac_fn_c_try_link "$LINENO"; then :
13844: ac_cv_lib_pthread_pthread_join=yes
13845: else
13846: ac_cv_lib_pthread_pthread_join=no
13847: fi
13848: rm -f core conftest.err conftest.$ac_objext \
13849: conftest$ac_exeext conftest.$ac_ext
13850: LIBS=$ac_check_lib_save_LIBS
13851: fi
13852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
13853: $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
13854: if test "x$ac_cv_lib_pthread_pthread_join" = x""yes; then :
13855:
13856: THREAD_LIBS="-lpthread"
13857:
13858: $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
13859:
13860:
13861: $as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
13862:
13863: WITH_THREADS="1"
13864: fi
13865:
13866: fi
13867:
13868:
13869: fi
13870: case $host_os in
13871: *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then
13872: WITH_THREADS="1"
13873: THREADS_W32="Win32"
13874: THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
13875: fi
13876: ;;
13877: *cygwin*) THREAD_LIBS=""
13878: ;;
13879: *beos*) WITH_THREADS="1"
13880: THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
13881: ;;
13882: *linux*)
13883: if test "${GCC}" = "yes" ; then
13884: GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
13885: GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
13886: GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
13887: if test "${THREAD_LIBS}" = "-lpthread" ; then
13888: if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
13889: then
13890: THREAD_LIBS=""
13891: BASE_THREAD_LIBS="-lpthread"
13892: else
13893: if expr ${GCC_MAJOR} \> 3 > /dev/null
13894: then
13895: THREAD_LIBS=""
13896: BASE_THREAD_LIBS="-lpthread"
13897: else
13898: echo old GCC disabling weak symbols for pthread
13899: fi
13900: fi
13901: fi
13902: fi
13903: ;;
13904: esac
13905: if test "$WITH_THREADS" = "1" ; then
13906: THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
13907: TEST_THREADS="Threadtests"
13908: fi
13909: fi
13910: if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
13911: THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
13912: fi
13913:
13914:
13915:
13916:
13917:
13918:
13919:
13920:
13921: if test "$with_history" = "yes" ; then
13922: echo Enabling xmllint shell history
13923: unset tcap
13924: for termlib in ncurses curses termcap terminfo termlib; do
13925: as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
13926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
13927: $as_echo_n "checking for tputs in -l${termlib}... " >&6; }
13928: if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
13929: $as_echo_n "(cached) " >&6
13930: else
13931: ac_check_lib_save_LIBS=$LIBS
13932: LIBS="-l${termlib} $LIBS"
13933: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934: /* end confdefs.h. */
13935:
13936: /* Override any GCC internal prototype to avoid an error.
13937: Use char because int might match the return type of a GCC
13938: builtin and then its argument prototype would still apply. */
13939: #ifdef __cplusplus
13940: extern "C"
13941: #endif
13942: char tputs ();
13943: int
13944: main ()
13945: {
13946: return tputs ();
13947: ;
13948: return 0;
13949: }
13950: _ACEOF
13951: if ac_fn_c_try_link "$LINENO"; then :
13952: eval "$as_ac_Lib=yes"
13953: else
13954: eval "$as_ac_Lib=no"
13955: fi
13956: rm -f core conftest.err conftest.$ac_objext \
13957: conftest$ac_exeext conftest.$ac_ext
13958: LIBS=$ac_check_lib_save_LIBS
13959: fi
13960: eval ac_res=\$$as_ac_Lib
13961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13962: $as_echo "$ac_res" >&6; }
13963: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13964: tcap="-l$termlib"
13965: fi
13966:
13967: test -n "$tcap" && break
13968: done
13969:
13970: ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13971: if test "x$ac_cv_header_readline_history_h" = x""yes; then :
13972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
13973: $as_echo_n "checking for append_history in -lhistory... " >&6; }
13974: if test "${ac_cv_lib_history_append_history+set}" = set; then :
13975: $as_echo_n "(cached) " >&6
13976: else
13977: ac_check_lib_save_LIBS=$LIBS
13978: LIBS="-lhistory $LIBS"
13979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980: /* end confdefs.h. */
13981:
13982: /* Override any GCC internal prototype to avoid an error.
13983: Use char because int might match the return type of a GCC
13984: builtin and then its argument prototype would still apply. */
13985: #ifdef __cplusplus
13986: extern "C"
13987: #endif
13988: char append_history ();
13989: int
13990: main ()
13991: {
13992: return append_history ();
13993: ;
13994: return 0;
13995: }
13996: _ACEOF
13997: if ac_fn_c_try_link "$LINENO"; then :
13998: ac_cv_lib_history_append_history=yes
13999: else
14000: ac_cv_lib_history_append_history=no
14001: fi
14002: rm -f core conftest.err conftest.$ac_objext \
14003: conftest$ac_exeext conftest.$ac_ext
14004: LIBS=$ac_check_lib_save_LIBS
14005: fi
14006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
14007: $as_echo "$ac_cv_lib_history_append_history" >&6; }
14008: if test "x$ac_cv_lib_history_append_history" = x""yes; then :
14009:
14010: RDL_LIBS="-lhistory"
14011:
14012: $as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
14013:
14014: fi
14015:
14016: fi
14017:
14018:
14019: ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
14020: if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
14021: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14022: $as_echo_n "checking for readline in -lreadline... " >&6; }
14023: if test "${ac_cv_lib_readline_readline+set}" = set; then :
14024: $as_echo_n "(cached) " >&6
14025: else
14026: ac_check_lib_save_LIBS=$LIBS
14027: LIBS="-lreadline $tcap $LIBS"
14028: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029: /* end confdefs.h. */
14030:
14031: /* Override any GCC internal prototype to avoid an error.
14032: Use char because int might match the return type of a GCC
14033: builtin and then its argument prototype would still apply. */
14034: #ifdef __cplusplus
14035: extern "C"
14036: #endif
14037: char readline ();
14038: int
14039: main ()
14040: {
14041: return readline ();
14042: ;
14043: return 0;
14044: }
14045: _ACEOF
14046: if ac_fn_c_try_link "$LINENO"; then :
14047: ac_cv_lib_readline_readline=yes
14048: else
14049: ac_cv_lib_readline_readline=no
14050: fi
14051: rm -f core conftest.err conftest.$ac_objext \
14052: conftest$ac_exeext conftest.$ac_ext
14053: LIBS=$ac_check_lib_save_LIBS
14054: fi
14055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14056: $as_echo "$ac_cv_lib_readline_readline" >&6; }
14057: if test "x$ac_cv_lib_readline_readline" = x""yes; then :
14058:
14059: RDL_LIBS="-lreadline $RDL_LIBS $tcap"
14060:
14061: $as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
14062:
14063: fi
14064:
14065: fi
14066:
14067:
14068: if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
14069: CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
14070: RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
14071: fi
14072: fi
14073:
14074: if test "$with_tree" = "no" ; then
14075: echo Disabling DOM like tree manipulation APIs
14076: WITH_TREE=0
14077: else
14078: WITH_TREE=1
14079: fi
14080:
14081:
14082: if test "$with_ftp" = "no" ; then
14083: echo Disabling FTP support
14084: WITH_FTP=0
14085: FTP_OBJ=
14086: else
14087: WITH_FTP=1
14088: FTP_OBJ=nanoftp.o
14089: fi
14090:
14091:
14092:
14093: if test "$with_http" = "no" ; then
14094: echo Disabling HTTP support
14095: WITH_HTTP=0
14096: HTTP_OBJ=
14097: else
14098: WITH_HTTP=1
14099: HTTP_OBJ=nanohttp.o
14100: fi
14101:
14102:
14103:
14104: if test "$with_legacy" = "no" ; then
14105: echo Disabling deprecated APIs
14106: WITH_LEGACY=0
14107: else
14108: WITH_LEGACY=1
14109: fi
14110:
14111:
14112: if test "$with_reader" = "no" ; then
14113: echo Disabling the xmlReader parsing interface
14114: WITH_READER=0
14115: READER_TEST=
14116: else
14117: WITH_READER=1
14118: READER_TEST=Readertests
14119: if test "$with_push" = "no" ; then
14120: echo xmlReader requires Push interface - enabling it
14121: with_push=yes
14122: fi
14123: fi
14124:
14125:
14126:
14127: if test "$with_writer" = "no" ; then
14128: echo Disabling the xmlWriter saving interface
14129: WITH_WRITER=0
14130: # WRITER_TEST=
14131: else
14132: WITH_WRITER=1
14133: # WRITER_TEST=Writertests
14134: if test "$with_push" = "no" ; then
14135: echo xmlWriter requires Push interface - enabling it
14136: with_push=yes
14137: fi
14138: if test "$with_output" = "no" ; then
14139: echo xmlWriter requires Output interface - enabling it
14140: with_output=yes
14141: fi
14142: fi
14143:
14144: #AC_SUBST(WRITER_TEST)
14145:
14146: if test "$with_pattern" = "no" ; then
14147: echo Disabling the xmlPattern parsing interface
14148: WITH_PATTERN=0
14149: TEST_PATTERN=
14150: else
14151: WITH_PATTERN=1
14152: TEST_PATTERN=Patterntests
14153: fi
14154:
14155:
14156:
14157: if test "$with_sax1" = "no" ; then
14158: echo Disabling the older SAX1 interface
14159: WITH_SAX1=0
14160: TEST_SAX=
14161: else
14162: WITH_SAX1=1
14163: TEST_SAX=SAXtests
14164: fi
14165:
14166:
14167:
14168: if test "$with_push" = "no" ; then
14169: echo Disabling the PUSH parser interfaces
14170: WITH_PUSH=0
14171: TEST_PUSH=
14172: else
14173: WITH_PUSH=1
14174: TEST_PUSH="XMLPushtests"
14175: fi
14176:
14177:
14178:
14179: if test "$with_html" = "no" ; then
14180: echo Disabling HTML support
14181: WITH_HTML=0
14182: HTML_OBJ=
14183: TEST_HTML=
14184: else
14185: WITH_HTML=1
14186: HTML_OBJ="HTMLparser.o HTMLtree.o"
14187: TEST_HTML=HTMLtests
14188: if test "$with_push" != "no" ; then
14189: TEST_PHTML=HTMLPushtests
14190: else
14191: TEST_PHTML=
14192: fi
14193: fi
14194:
14195:
14196:
14197:
14198:
14199: if test "$with_valid" = "no" ; then
14200: echo Disabling DTD validation support
14201: WITH_VALID=0
14202: TEST_VALID=
14203: TEST_VTIME=
14204: else
14205: WITH_VALID=1
14206: TEST_VALID=Validtests
14207: TEST_VTIME=VTimingtests
14208: fi
14209:
14210:
14211:
14212:
14213: if test "$with_catalog" = "no" ; then
14214: echo Disabling Catalog support
14215: WITH_CATALOG=0
14216: CATALOG_OBJ=
14217: TEST_CATALOG=
14218: else
14219: WITH_CATALOG=1
14220: CATALOG_OBJ="catalog.o"
14221: TEST_CATALOG=Catatests
14222: fi
14223:
14224:
14225:
14226:
14227: if test "$with_docbook" = "no" ; then
14228: echo Disabling Docbook support
14229: WITH_DOCB=0
14230: DOCB_OBJ=
14231: else
14232: WITH_DOCB=1
14233: DOCB_OBJ="DOCBparser.o"
14234: fi
14235:
14236:
14237:
14238:
14239: if test "$with_xptr" = "no" ; then
14240: echo Disabling XPointer support
14241: WITH_XPTR=0
14242: XPTR_OBJ=
14243: TEST_XPTR=
14244: else
14245: WITH_XPTR=1
14246: XPTR_OBJ=xpointer.o
14247: TEST_XPTR=XPtrtests
14248: if test "$with_xpath" = "no" ; then
14249: echo XPointer requires XPath support - enabling it
14250: with_xpath=yes
14251: fi
14252: fi
14253:
14254:
14255:
14256:
14257: if test "$with_c14n" = "no" ; then
14258: echo Disabling C14N support
14259: WITH_C14N=0
14260: C14N_OBJ=
14261: TEST_C14N=
14262: else
14263: WITH_C14N=1
14264: C14N_OBJ="c14n.c"
14265: TEST_C14N=C14Ntests
14266: if test "$with_xpath" = "no" ; then
14267: echo C14N requires XPath support - enabling it
14268: with_xpath=yes
14269: fi
14270: fi
14271:
14272:
14273:
14274:
14275: if test "$with_xinclude" = "no" ; then
14276: echo Disabling XInclude support
14277: WITH_XINCLUDE=0
14278: XINCLUDE_OBJ=
14279: with_xinclude="no"
14280: TEST_XINCLUDE=
14281: else
14282: WITH_XINCLUDE=1
14283: XINCLUDE_OBJ=xinclude.o
14284: TEST_XINCLUDE=XIncludetests
14285: if test "$with_xpath" = "no" ; then
14286: echo XInclude requires XPath support - enabling it
14287: with_xpath=yes
14288: fi
14289: fi
14290:
14291:
14292:
14293:
14294: if test "$with_xpath" = "no" ; then
14295: echo Disabling XPATH support
14296: WITH_XPATH=0
14297: XPATH_OBJ=
14298: TEST_XPATH=
14299: else
14300: WITH_XPATH=1
14301: XPATH_OBJ=xpath.o
14302: TEST_XPATH=XPathtests
14303: fi
14304:
14305:
14306:
14307:
14308: if test "$with_output" = "no" ; then
14309: echo Disabling serialization/saving support
14310: WITH_OUTPUT=0
14311: else
14312: WITH_OUTPUT=1
14313: fi
14314:
14315:
14316: WITH_ICONV=0
14317: if test "$with_iconv" = "no" ; then
14318: echo Disabling ICONV support
14319: else
14320: if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
14321: CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
14322: # Export this since our headers include iconv.h
14323: XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
14324: ICONV_LIBS="-L$with_iconv/lib"
14325: fi
14326:
14327: ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14328: if test "x$ac_cv_header_iconv_h" = x""yes; then :
14329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14330: $as_echo_n "checking for iconv... " >&6; }
14331: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332: /* end confdefs.h. */
14333: #include <stdlib.h>
14334: #include <iconv.h>
14335: int
14336: main ()
14337: {
14338:
14339: iconv_t cd = iconv_open ("","");
14340: iconv (cd, NULL, NULL, NULL, NULL);
14341: ;
14342: return 0;
14343: }
14344: _ACEOF
14345: if ac_fn_c_try_link "$LINENO"; then :
14346:
14347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348: $as_echo "yes" >&6; }
14349: WITH_ICONV=1
14350: else
14351:
14352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353: $as_echo "no" >&6; }
14354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
14355: $as_echo_n "checking for iconv in -liconv... " >&6; }
14356:
14357: _ldflags="${LDFLAGS}"
14358: _libs="${LIBS}"
14359: LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
14360: LIBS="${LIBS} -liconv"
14361:
14362: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363: /* end confdefs.h. */
14364: #include <stdlib.h>
14365: #include <iconv.h>
14366: int
14367: main ()
14368: {
14369:
14370: iconv_t cd = iconv_open ("","");
14371: iconv (cd, NULL, NULL, NULL, NULL);
14372: ;
14373: return 0;
14374: }
14375: _ACEOF
14376: if ac_fn_c_try_link "$LINENO"; then :
14377:
14378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14379: $as_echo "yes" >&6; }
14380: WITH_ICONV=1
14381: ICONV_LIBS="${ICONV_LIBS} -liconv"
14382: LIBS="${_libs}"
14383: LDFLAGS="${_ldflags}"
14384: else
14385:
14386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14387: $as_echo "no" >&6; }
14388: LIBS="${_libs}"
14389: LDFLAGS="${_ldflags}"
14390: fi
14391: rm -f core conftest.err conftest.$ac_objext \
14392: conftest$ac_exeext conftest.$ac_ext
14393: fi
14394: rm -f core conftest.err conftest.$ac_objext \
14395: conftest$ac_exeext conftest.$ac_ext
14396: fi
14397:
14398:
14399:
14400: if test "$WITH_ICONV" = "1" ; then
14401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14402: $as_echo_n "checking for iconv declaration... " >&6; }
14403: if test "${xml_cv_iconv_arg2+set}" = set; then :
14404: $as_echo_n "(cached) " >&6
14405: else
14406:
14407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408: /* end confdefs.h. */
14409: #include <stdlib.h>
14410: #include <iconv.h>
14411: extern
14412: #ifdef __cplusplus
14413: "C"
14414: #endif
14415: #if defined(__STDC__) || defined(__cplusplus)
14416: size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14417: #else
14418: size_t iconv();
14419: #endif
14420:
14421: int
14422: main ()
14423: {
14424:
14425: ;
14426: return 0;
14427: }
14428: _ACEOF
14429: if ac_fn_c_try_compile "$LINENO"; then :
14430: xml_cv_iconv_arg2=""
14431: else
14432: xml_cv_iconv_arg2="const"
14433: fi
14434: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435: fi
14436:
14437:
14438: 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);"
14439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
14440: }$xml_cv_iconv_decl" >&5
14441: $as_echo "${xml_xxx:-
14442: }$xml_cv_iconv_decl" >&6; }
14443:
14444: cat >>confdefs.h <<_ACEOF
14445: #define ICONV_CONST $xml_cv_iconv_arg2
14446: _ACEOF
14447:
14448: fi
14449: fi
14450: case "$host" in
14451: *mingw*) M_LIBS=""
14452: ;;
14453: *beos*) M_LIBS=""
14454: ;;
14455: *haiku*) M_LIBS=""
14456: ;;
14457: *) M_LIBS="-lm"
14458: ;;
14459: esac
14460: XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
14461: XML_LIBTOOLLIBS="libxml2.la"
14462:
14463:
14464: WITH_ICU=0
14465: if test "$with_icu" != "yes" ; then
14466: echo Disabling ICU support
14467: else
14468: ICU_CONFIG=icu-config
14469: if ${ICU_CONFIG} --cflags >/dev/null 2>&1
14470: then
14471: ICU_LIBS=`icu-config --ldflags`
14472: LDFLAGS="$LDFLAGS $ICU_LIBS"
14473: WITH_ICU=1
14474: echo Enabling ICU support
14475: else
14476: as_fn_error $? "libicu config program icu-config not found" "$LINENO" 5
14477: fi
14478: fi
14479:
14480:
14481: WITH_ISO8859X=1
14482: if test "$WITH_ICONV" != "1" ; then
14483: if test "$with_iso8859x" = "no" ; then
14484: echo Disabling ISO8859X support
14485: WITH_ISO8859X=0
14486: fi
14487: fi
14488:
14489:
14490: if test "$with_schematron" = "no" ; then
14491: echo "Disabling Schematron support"
14492: WITH_SCHEMATRON=0
14493: TEST_SCHEMATRON=
14494: else
14495: echo "Enabled Schematron support"
14496: WITH_SCHEMATRON=1
14497: TEST_SCHEMATRON="Schematrontests"
14498: with_xpath=yes
14499: with_pattern=yes
14500: fi
14501:
14502:
14503:
14504: if test "$with_schemas" = "no" ; then
14505: echo "Disabling Schemas/Relax-NG support"
14506: WITH_SCHEMAS=0
14507: TEST_SCHEMAS=
14508: else
14509: echo "Enabled Schemas/Relax-NG support"
14510: WITH_SCHEMAS=1
14511: TEST_SCHEMAS="Schemastests Relaxtests"
14512: if test "$PYTHON_INCLUDES" != "" ; then
14513: PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
14514: fi
14515: with_regexps=yes
14516: fi
14517:
14518:
14519:
14520: if test "$with_regexps" = "no" ; then
14521: echo Disabling Regexps support
14522: WITH_REGEXPS=0
14523: TEST_REGEXPS=
14524: else
14525: WITH_REGEXPS=1
14526: TEST_REGEXPS="Regexptests Automatatests"
14527: fi
14528:
14529:
14530:
14531: if test "$with_debug" = "no" ; then
14532: echo Disabling DEBUG support
14533: WITH_DEBUG=0
14534: DEBUG_OBJ=
14535: TEST_DEBUG=
14536: else
14537: WITH_DEBUG=1
14538: DEBUG_OBJ=debugXML.o
14539: TEST_DEBUG=Scripttests
14540: fi
14541:
14542:
14543:
14544:
14545: if test "$with_mem_debug" = "yes" ; then
14546: if test "$with_thread_alloc" = "yes" ; then
14547: echo Disabling memory debug - cannot use mem-debug with thread-alloc!
14548: WITH_MEM_DEBUG=0
14549: else
14550: echo Enabling memory debug support
14551: WITH_MEM_DEBUG=1
14552: fi
14553: else
14554: WITH_MEM_DEBUG=0
14555: fi
14556:
14557:
14558: if test "$with_run_debug" = "yes" ; then
14559: echo Enabling runtime debug support
14560: WITH_RUN_DEBUG=1
14561: else
14562: WITH_RUN_DEBUG=0
14563: fi
14564:
14565:
14566: WIN32_EXTRA_LIBADD=
14567: WIN32_EXTRA_LDFLAGS=
14568: CYGWIN_EXTRA_LDFLAGS=
14569: CYGWIN_EXTRA_PYTHON_LIBADD=
14570: WIN32_EXTRA_PYTHON_LIBADD=
14571: case "$host" in
14572: *-*-mingw*)
14573: CPPFLAGS="$CPPFLAGS -DWIN32"
14574: WIN32_EXTRA_LIBADD="-lws2_32"
14575: WIN32_EXTRA_LDFLAGS="-no-undefined"
14576:
14577: $as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
14578:
14579:
14580: $as_echo "#define snprintf _snprintf" >>confdefs.h
14581:
14582:
14583: $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
14584:
14585: if test "${PYTHON}" != ""
14586: then
14587: WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython${PYTHON_VERSION//./}"
14588: fi
14589: ;;
14590: *-*-cygwin*)
14591: CYGWIN_EXTRA_LDFLAGS="-no-undefined"
14592: if test "${PYTHON}" != ""
14593: then
14594: CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
14595: fi
14596: ;;
14597: esac
14598:
14599:
14600:
14601:
14602:
14603:
14604: if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
14605: then
14606: echo Enabling code coverage for GCC
14607: CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
14608: LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
14609: else
14610: echo Disabling code coverage for GCC
14611: fi
14612:
14613:
14614:
14615:
14616:
14617:
14618:
14619:
14620:
14621:
14622:
14623:
14624:
14625:
14626:
14627:
14628:
14629:
14630:
14631:
14632:
14633:
14634: RELDATE=`date +'%a %b %e %Y'`
14635:
14636:
14637:
14638: rm -f COPYING.LIB COPYING
14639: ln -s Copyright COPYING
14640:
14641: # keep on one line for cygwin c.f. #130896
14642: ac_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 xml2-config libxml-2.0.pc libxml-2.0-uninstalled.pc python/setup.py"
14643:
14644: cat >confcache <<\_ACEOF
14645: # This file is a shell script that caches the results of configure
14646: # tests run on this system so they can be shared between configure
14647: # scripts and configure runs, see configure's option --config-cache.
14648: # It is not useful on other systems. If it contains results you don't
14649: # want to keep, you may remove or edit it.
14650: #
14651: # config.status only pays attention to the cache file if you give it
14652: # the --recheck option to rerun configure.
14653: #
14654: # `ac_cv_env_foo' variables (set or unset) will be overridden when
14655: # loading this file, other *unset* `ac_cv_foo' will be assigned the
14656: # following values.
14657:
14658: _ACEOF
14659:
14660: # The following way of writing the cache mishandles newlines in values,
14661: # but we know of no workaround that is simple, portable, and efficient.
14662: # So, we kill variables containing newlines.
14663: # Ultrix sh set writes to stderr and can't be redirected directly,
14664: # and sets the high bit in the cache file unless we assign to the vars.
14665: (
14666: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14667: eval ac_val=\$$ac_var
14668: case $ac_val in #(
14669: *${as_nl}*)
14670: case $ac_var in #(
14671: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14672: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14673: esac
14674: case $ac_var in #(
14675: _ | IFS | as_nl) ;; #(
14676: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14677: *) { eval $ac_var=; unset $ac_var;} ;;
14678: esac ;;
14679: esac
14680: done
14681:
14682: (set) 2>&1 |
14683: case $as_nl`(ac_space=' '; set) 2>&1` in #(
14684: *${as_nl}ac_space=\ *)
14685: # `set' does not quote correctly, so add quotes: double-quote
14686: # substitution turns \\\\ into \\, and sed turns \\ into \.
14687: sed -n \
14688: "s/'/'\\\\''/g;
14689: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14690: ;; #(
14691: *)
14692: # `set' quotes correctly as required by POSIX, so do not add quotes.
14693: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14694: ;;
14695: esac |
14696: sort
14697: ) |
14698: sed '
14699: /^ac_cv_env_/b end
14700: t clear
14701: :clear
14702: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14703: t end
14704: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14705: :end' >>confcache
14706: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14707: if test -w "$cache_file"; then
14708: test "x$cache_file" != "x/dev/null" &&
14709: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14710: $as_echo "$as_me: updating cache $cache_file" >&6;}
14711: cat confcache >$cache_file
14712: else
14713: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14714: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14715: fi
14716: fi
14717: rm -f confcache
14718:
14719: test "x$prefix" = xNONE && prefix=$ac_default_prefix
14720: # Let make expand exec_prefix.
14721: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14722:
14723: DEFS=-DHAVE_CONFIG_H
14724:
14725: ac_libobjs=
14726: ac_ltlibobjs=
14727: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14728: # 1. Remove the extension, and $U if already installed.
14729: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14730: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14731: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14732: # will be set to the directory where LIBOBJS objects are built.
14733: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14734: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14735: done
14736: LIBOBJS=$ac_libobjs
14737:
14738: LTLIBOBJS=$ac_ltlibobjs
14739:
14740:
14741: if test -n "$EXEEXT"; then
14742: am__EXEEXT_TRUE=
14743: am__EXEEXT_FALSE='#'
14744: else
14745: am__EXEEXT_TRUE='#'
14746: am__EXEEXT_FALSE=
14747: fi
14748:
14749: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14750: as_fn_error $? "conditional \"AMDEP\" was never defined.
14751: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14752: fi
14753: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14754: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14755: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14756: fi
14757: if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
14758: as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
14759: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14760: fi
14761: if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
14762: as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
14763: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14764: fi
14765: if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
14766: as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
14767: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14768: fi
14769: if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
14770: as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
14771: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14772: fi
14773:
14774: : ${CONFIG_STATUS=./config.status}
14775: ac_write_fail=0
14776: ac_clean_files_save=$ac_clean_files
14777: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14778: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14779: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14780: as_write_fail=0
14781: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14782: #! $SHELL
14783: # Generated by $as_me.
14784: # Run this file to recreate the current configuration.
14785: # Compiler output produced by configure, useful for debugging
14786: # configure, is in config.log if it exists.
14787:
14788: debug=false
14789: ac_cs_recheck=false
14790: ac_cs_silent=false
14791:
14792: SHELL=\${CONFIG_SHELL-$SHELL}
14793: export SHELL
14794: _ASEOF
14795: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14796: ## -------------------- ##
14797: ## M4sh Initialization. ##
14798: ## -------------------- ##
14799:
14800: # Be more Bourne compatible
14801: DUALCASE=1; export DUALCASE # for MKS sh
14802: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14803: emulate sh
14804: NULLCMD=:
14805: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14806: # is contrary to our usage. Disable this feature.
14807: alias -g '${1+"$@"}'='"$@"'
14808: setopt NO_GLOB_SUBST
14809: else
14810: case `(set -o) 2>/dev/null` in #(
14811: *posix*) :
14812: set -o posix ;; #(
14813: *) :
14814: ;;
14815: esac
14816: fi
14817:
14818:
14819: as_nl='
14820: '
14821: export as_nl
14822: # Printing a long string crashes Solaris 7 /usr/bin/printf.
14823: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14824: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14825: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14826: # Prefer a ksh shell builtin over an external printf program on Solaris,
14827: # but without wasting forks for bash or zsh.
14828: if test -z "$BASH_VERSION$ZSH_VERSION" \
14829: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14830: as_echo='print -r --'
14831: as_echo_n='print -rn --'
14832: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14833: as_echo='printf %s\n'
14834: as_echo_n='printf %s'
14835: else
14836: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14837: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14838: as_echo_n='/usr/ucb/echo -n'
14839: else
14840: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14841: as_echo_n_body='eval
14842: arg=$1;
14843: case $arg in #(
14844: *"$as_nl"*)
14845: expr "X$arg" : "X\\(.*\\)$as_nl";
14846: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14847: esac;
14848: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14849: '
14850: export as_echo_n_body
14851: as_echo_n='sh -c $as_echo_n_body as_echo'
14852: fi
14853: export as_echo_body
14854: as_echo='sh -c $as_echo_body as_echo'
14855: fi
14856:
14857: # The user is always right.
14858: if test "${PATH_SEPARATOR+set}" != set; then
14859: PATH_SEPARATOR=:
14860: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14861: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14862: PATH_SEPARATOR=';'
14863: }
14864: fi
14865:
14866:
14867: # IFS
14868: # We need space, tab and new line, in precisely that order. Quoting is
14869: # there to prevent editors from complaining about space-tab.
14870: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14871: # splitting by setting IFS to empty value.)
14872: IFS=" "" $as_nl"
14873:
14874: # Find who we are. Look in the path if we contain no directory separator.
14875: case $0 in #((
14876: *[\\/]* ) as_myself=$0 ;;
14877: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14878: for as_dir in $PATH
14879: do
14880: IFS=$as_save_IFS
14881: test -z "$as_dir" && as_dir=.
14882: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14883: done
14884: IFS=$as_save_IFS
14885:
14886: ;;
14887: esac
14888: # We did not find ourselves, most probably we were run as `sh COMMAND'
14889: # in which case we are not to be found in the path.
14890: if test "x$as_myself" = x; then
14891: as_myself=$0
14892: fi
14893: if test ! -f "$as_myself"; then
14894: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14895: exit 1
14896: fi
14897:
14898: # Unset variables that we do not need and which cause bugs (e.g. in
14899: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14900: # suppresses any "Segmentation fault" message there. '((' could
14901: # trigger a bug in pdksh 5.2.14.
14902: for as_var in BASH_ENV ENV MAIL MAILPATH
14903: do eval test x\${$as_var+set} = xset \
14904: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14905: done
14906: PS1='$ '
14907: PS2='> '
14908: PS4='+ '
14909:
14910: # NLS nuisances.
14911: LC_ALL=C
14912: export LC_ALL
14913: LANGUAGE=C
14914: export LANGUAGE
14915:
14916: # CDPATH.
14917: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14918:
14919:
14920: # as_fn_error STATUS ERROR [LINENO LOG_FD]
14921: # ----------------------------------------
14922: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14923: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14924: # script with STATUS, using 1 if that was 0.
14925: as_fn_error ()
14926: {
14927: as_status=$1; test $as_status -eq 0 && as_status=1
14928: if test "$4"; then
14929: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14930: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14931: fi
14932: $as_echo "$as_me: error: $2" >&2
14933: as_fn_exit $as_status
14934: } # as_fn_error
14935:
14936:
14937: # as_fn_set_status STATUS
14938: # -----------------------
14939: # Set $? to STATUS, without forking.
14940: as_fn_set_status ()
14941: {
14942: return $1
14943: } # as_fn_set_status
14944:
14945: # as_fn_exit STATUS
14946: # -----------------
14947: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14948: as_fn_exit ()
14949: {
14950: set +e
14951: as_fn_set_status $1
14952: exit $1
14953: } # as_fn_exit
14954:
14955: # as_fn_unset VAR
14956: # ---------------
14957: # Portably unset VAR.
14958: as_fn_unset ()
14959: {
14960: { eval $1=; unset $1;}
14961: }
14962: as_unset=as_fn_unset
14963: # as_fn_append VAR VALUE
14964: # ----------------------
14965: # Append the text in VALUE to the end of the definition contained in VAR. Take
14966: # advantage of any shell optimizations that allow amortized linear growth over
14967: # repeated appends, instead of the typical quadratic growth present in naive
14968: # implementations.
14969: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14970: eval 'as_fn_append ()
14971: {
14972: eval $1+=\$2
14973: }'
14974: else
14975: as_fn_append ()
14976: {
14977: eval $1=\$$1\$2
14978: }
14979: fi # as_fn_append
14980:
14981: # as_fn_arith ARG...
14982: # ------------------
14983: # Perform arithmetic evaluation on the ARGs, and store the result in the
14984: # global $as_val. Take advantage of shells that can avoid forks. The arguments
14985: # must be portable across $(()) and expr.
14986: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14987: eval 'as_fn_arith ()
14988: {
14989: as_val=$(( $* ))
14990: }'
14991: else
14992: as_fn_arith ()
14993: {
14994: as_val=`expr "$@" || test $? -eq 1`
14995: }
14996: fi # as_fn_arith
14997:
14998:
14999: if expr a : '\(a\)' >/dev/null 2>&1 &&
15000: test "X`expr 00001 : '.*\(...\)'`" = X001; then
15001: as_expr=expr
15002: else
15003: as_expr=false
15004: fi
15005:
15006: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15007: as_basename=basename
15008: else
15009: as_basename=false
15010: fi
15011:
15012: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15013: as_dirname=dirname
15014: else
15015: as_dirname=false
15016: fi
15017:
15018: as_me=`$as_basename -- "$0" ||
15019: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15020: X"$0" : 'X\(//\)$' \| \
15021: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15022: $as_echo X/"$0" |
15023: sed '/^.*\/\([^/][^/]*\)\/*$/{
15024: s//\1/
15025: q
15026: }
15027: /^X\/\(\/\/\)$/{
15028: s//\1/
15029: q
15030: }
15031: /^X\/\(\/\).*/{
15032: s//\1/
15033: q
15034: }
15035: s/.*/./; q'`
15036:
15037: # Avoid depending upon Character Ranges.
15038: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15039: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15040: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15041: as_cr_digits='0123456789'
15042: as_cr_alnum=$as_cr_Letters$as_cr_digits
15043:
15044: ECHO_C= ECHO_N= ECHO_T=
15045: case `echo -n x` in #(((((
15046: -n*)
15047: case `echo 'xy\c'` in
15048: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15049: xy) ECHO_C='\c';;
15050: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15051: ECHO_T=' ';;
15052: esac;;
15053: *)
15054: ECHO_N='-n';;
15055: esac
15056:
15057: rm -f conf$$ conf$$.exe conf$$.file
15058: if test -d conf$$.dir; then
15059: rm -f conf$$.dir/conf$$.file
15060: else
15061: rm -f conf$$.dir
15062: mkdir conf$$.dir 2>/dev/null
15063: fi
15064: if (echo >conf$$.file) 2>/dev/null; then
15065: if ln -s conf$$.file conf$$ 2>/dev/null; then
15066: as_ln_s='ln -s'
15067: # ... but there are two gotchas:
15068: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15069: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15070: # In both cases, we have to default to `cp -p'.
15071: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15072: as_ln_s='cp -p'
15073: elif ln conf$$.file conf$$ 2>/dev/null; then
15074: as_ln_s=ln
15075: else
15076: as_ln_s='cp -p'
15077: fi
15078: else
15079: as_ln_s='cp -p'
15080: fi
15081: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15082: rmdir conf$$.dir 2>/dev/null
15083:
15084:
15085: # as_fn_mkdir_p
15086: # -------------
15087: # Create "$as_dir" as a directory, including parents if necessary.
15088: as_fn_mkdir_p ()
15089: {
15090:
15091: case $as_dir in #(
15092: -*) as_dir=./$as_dir;;
15093: esac
15094: test -d "$as_dir" || eval $as_mkdir_p || {
15095: as_dirs=
15096: while :; do
15097: case $as_dir in #(
15098: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15099: *) as_qdir=$as_dir;;
15100: esac
15101: as_dirs="'$as_qdir' $as_dirs"
15102: as_dir=`$as_dirname -- "$as_dir" ||
15103: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15104: X"$as_dir" : 'X\(//\)[^/]' \| \
15105: X"$as_dir" : 'X\(//\)$' \| \
15106: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15107: $as_echo X"$as_dir" |
15108: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15109: s//\1/
15110: q
15111: }
15112: /^X\(\/\/\)[^/].*/{
15113: s//\1/
15114: q
15115: }
15116: /^X\(\/\/\)$/{
15117: s//\1/
15118: q
15119: }
15120: /^X\(\/\).*/{
15121: s//\1/
15122: q
15123: }
15124: s/.*/./; q'`
15125: test -d "$as_dir" && break
15126: done
15127: test -z "$as_dirs" || eval "mkdir $as_dirs"
15128: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15129:
15130:
15131: } # as_fn_mkdir_p
15132: if mkdir -p . 2>/dev/null; then
15133: as_mkdir_p='mkdir -p "$as_dir"'
15134: else
15135: test -d ./-p && rmdir ./-p
15136: as_mkdir_p=false
15137: fi
15138:
15139: if test -x / >/dev/null 2>&1; then
15140: as_test_x='test -x'
15141: else
15142: if ls -dL / >/dev/null 2>&1; then
15143: as_ls_L_option=L
15144: else
15145: as_ls_L_option=
15146: fi
15147: as_test_x='
15148: eval sh -c '\''
15149: if test -d "$1"; then
15150: test -d "$1/.";
15151: else
15152: case $1 in #(
15153: -*)set "./$1";;
15154: esac;
15155: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15156: ???[sx]*):;;*)false;;esac;fi
15157: '\'' sh
15158: '
15159: fi
15160: as_executable_p=$as_test_x
15161:
15162: # Sed expression to map a string onto a valid CPP name.
15163: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15164:
15165: # Sed expression to map a string onto a valid variable name.
15166: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15167:
15168:
15169: exec 6>&1
15170: ## ----------------------------------- ##
15171: ## Main body of $CONFIG_STATUS script. ##
15172: ## ----------------------------------- ##
15173: _ASEOF
15174: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15175:
15176: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15177: # Save the log message, to keep $0 and so on meaningful, and to
15178: # report actual input values of CONFIG_FILES etc. instead of their
15179: # values after options handling.
15180: ac_log="
15181: This file was extended by $as_me, which was
15182: generated by GNU Autoconf 2.66. Invocation command line was
15183:
15184: CONFIG_FILES = $CONFIG_FILES
15185: CONFIG_HEADERS = $CONFIG_HEADERS
15186: CONFIG_LINKS = $CONFIG_LINKS
15187: CONFIG_COMMANDS = $CONFIG_COMMANDS
15188: $ $0 $@
15189:
15190: on `(hostname || uname -n) 2>/dev/null | sed 1q`
15191: "
15192:
15193: _ACEOF
15194:
15195: case $ac_config_files in *"
15196: "*) set x $ac_config_files; shift; ac_config_files=$*;;
15197: esac
15198:
15199: case $ac_config_headers in *"
15200: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15201: esac
15202:
15203:
15204: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15205: # Files that config.status was made for.
15206: config_files="$ac_config_files"
15207: config_headers="$ac_config_headers"
15208: config_commands="$ac_config_commands"
15209:
15210: _ACEOF
15211:
15212: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15213: ac_cs_usage="\
15214: \`$as_me' instantiates files and other configuration actions
15215: from templates according to the current configuration. Unless the files
15216: and actions are specified as TAGs, all are instantiated by default.
15217:
15218: Usage: $0 [OPTION]... [TAG]...
15219:
15220: -h, --help print this help, then exit
15221: -V, --version print version number and configuration settings, then exit
15222: --config print configuration, then exit
15223: -q, --quiet, --silent
15224: do not print progress messages
15225: -d, --debug don't remove temporary files
15226: --recheck update $as_me by reconfiguring in the same conditions
15227: --file=FILE[:TEMPLATE]
15228: instantiate the configuration file FILE
15229: --header=FILE[:TEMPLATE]
15230: instantiate the configuration header FILE
15231:
15232: Configuration files:
15233: $config_files
15234:
15235: Configuration headers:
15236: $config_headers
15237:
15238: Configuration commands:
15239: $config_commands
15240:
15241: Report bugs to the package provider."
15242:
15243: _ACEOF
15244: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15246: ac_cs_version="\\
15247: config.status
15248: configured by $0, generated by GNU Autoconf 2.66,
15249: with options \\"\$ac_cs_config\\"
15250:
15251: Copyright (C) 2010 Free Software Foundation, Inc.
15252: This config.status script is free software; the Free Software Foundation
15253: gives unlimited permission to copy, distribute and modify it."
15254:
15255: ac_pwd='$ac_pwd'
15256: srcdir='$srcdir'
15257: INSTALL='$INSTALL'
15258: MKDIR_P='$MKDIR_P'
15259: AWK='$AWK'
15260: test -n "\$AWK" || AWK=awk
15261: _ACEOF
15262:
15263: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15264: # The default lists apply if the user does not specify any file.
15265: ac_need_defaults=:
15266: while test $# != 0
15267: do
15268: case $1 in
15269: --*=*)
15270: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15271: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15272: ac_shift=:
15273: ;;
15274: *)
15275: ac_option=$1
15276: ac_optarg=$2
15277: ac_shift=shift
15278: ;;
15279: esac
15280:
15281: case $ac_option in
15282: # Handling of the options.
15283: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15284: ac_cs_recheck=: ;;
15285: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15286: $as_echo "$ac_cs_version"; exit ;;
15287: --config | --confi | --conf | --con | --co | --c )
15288: $as_echo "$ac_cs_config"; exit ;;
15289: --debug | --debu | --deb | --de | --d | -d )
15290: debug=: ;;
15291: --file | --fil | --fi | --f )
15292: $ac_shift
15293: case $ac_optarg in
15294: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15295: esac
15296: as_fn_append CONFIG_FILES " '$ac_optarg'"
15297: ac_need_defaults=false;;
15298: --header | --heade | --head | --hea )
15299: $ac_shift
15300: case $ac_optarg in
15301: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15302: esac
15303: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15304: ac_need_defaults=false;;
15305: --he | --h)
15306: # Conflict between --help and --header
15307: as_fn_error $? "ambiguous option: \`$1'
15308: Try \`$0 --help' for more information.";;
15309: --help | --hel | -h )
15310: $as_echo "$ac_cs_usage"; exit ;;
15311: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15312: | -silent | --silent | --silen | --sile | --sil | --si | --s)
15313: ac_cs_silent=: ;;
15314:
15315: # This is an error.
15316: -*) as_fn_error $? "unrecognized option: \`$1'
15317: Try \`$0 --help' for more information." ;;
15318:
15319: *) as_fn_append ac_config_targets " $1"
15320: ac_need_defaults=false ;;
15321:
15322: esac
15323: shift
15324: done
15325:
15326: ac_configure_extra_args=
15327:
15328: if $ac_cs_silent; then
15329: exec 6>/dev/null
15330: ac_configure_extra_args="$ac_configure_extra_args --silent"
15331: fi
15332:
15333: _ACEOF
15334: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335: if \$ac_cs_recheck; then
15336: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15337: shift
15338: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15339: CONFIG_SHELL='$SHELL'
15340: export CONFIG_SHELL
15341: exec "\$@"
15342: fi
15343:
15344: _ACEOF
15345: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15346: exec 5>>config.log
15347: {
15348: echo
15349: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15350: ## Running $as_me. ##
15351: _ASBOX
15352: $as_echo "$ac_log"
15353: } >&5
15354:
15355: _ACEOF
15356: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15357: #
15358: # INIT-COMMANDS
15359: #
15360: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15361:
15362:
15363: # The HP-UX ksh and POSIX shell print the target directory to stdout
15364: # if CDPATH is set.
15365: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15366:
15367: sed_quote_subst='$sed_quote_subst'
15368: double_quote_subst='$double_quote_subst'
15369: delay_variable_subst='$delay_variable_subst'
15370: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15371: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15372: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15373: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15374: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15375: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15376: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15377: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15378: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15379: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15380: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15381: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15382: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15383: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15384: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15385: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15386: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15387: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15388: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15389: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15390: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15391: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15392: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15393: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15394: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15395: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15396: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15397: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15398: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15399: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15400: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15401: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15402: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15403: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15404: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15405: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15406: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15407: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15408: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15409: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15410: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15411: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15412: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15413: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15414: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15415: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15416: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15417: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15418: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15419: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15420: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15421: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15422: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15423: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15424: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15425: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15426: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15427: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15428: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15429: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15430: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15431: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15432: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15433: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15434: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15435: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15436: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15437: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15438: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15439: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15440: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15441: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15442: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15443: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15444: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15445: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15446: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15447: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15448: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15449: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15450: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15451: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15452: hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15453: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15454: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15455: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15456: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15457: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15458: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15459: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15460: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15461: fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15462: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15463: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15464: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15465: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15466: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15467: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15468: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15469: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15470: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15471: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15472: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15473: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15474: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15475: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15476: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15477: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15478: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15479: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15480: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15481: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15482: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15483: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15484: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15485: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15486: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15487: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15488: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15489: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15490: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15491: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15492:
15493: LTCC='$LTCC'
15494: LTCFLAGS='$LTCFLAGS'
15495: compiler='$compiler_DEFAULT'
15496:
15497: # A function that is used when there is no print builtin or printf.
15498: func_fallback_echo ()
15499: {
15500: eval 'cat <<_LTECHO_EOF
15501: \$1
15502: _LTECHO_EOF'
15503: }
15504:
15505: # Quote evaled strings.
15506: for var in AS \
15507: DLLTOOL \
15508: OBJDUMP \
15509: SHELL \
15510: ECHO \
15511: SED \
15512: GREP \
15513: EGREP \
15514: FGREP \
15515: LD \
15516: NM \
15517: LN_S \
15518: lt_SP2NL \
15519: lt_NL2SP \
15520: reload_flag \
15521: deplibs_check_method \
15522: file_magic_cmd \
15523: AR \
15524: AR_FLAGS \
15525: STRIP \
15526: RANLIB \
15527: CC \
15528: CFLAGS \
15529: compiler \
15530: lt_cv_sys_global_symbol_pipe \
15531: lt_cv_sys_global_symbol_to_cdecl \
15532: lt_cv_sys_global_symbol_to_c_name_address \
15533: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15534: lt_prog_compiler_no_builtin_flag \
15535: lt_prog_compiler_wl \
15536: lt_prog_compiler_pic \
15537: lt_prog_compiler_static \
15538: lt_cv_prog_compiler_c_o \
15539: need_locks \
15540: DSYMUTIL \
15541: NMEDIT \
15542: LIPO \
15543: OTOOL \
15544: OTOOL64 \
15545: shrext_cmds \
15546: export_dynamic_flag_spec \
15547: whole_archive_flag_spec \
15548: compiler_needs_object \
15549: with_gnu_ld \
15550: allow_undefined_flag \
15551: no_undefined_flag \
15552: hardcode_libdir_flag_spec \
15553: hardcode_libdir_flag_spec_ld \
15554: hardcode_libdir_separator \
15555: fix_srcfile_path \
15556: exclude_expsyms \
15557: include_expsyms \
15558: file_list_spec \
15559: variables_saved_for_relink \
15560: libname_spec \
15561: library_names_spec \
15562: soname_spec \
15563: install_override_mode \
15564: finish_eval \
15565: old_striplib \
15566: striplib; do
15567: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15568: *[\\\\\\\`\\"\\\$]*)
15569: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15570: ;;
15571: *)
15572: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15573: ;;
15574: esac
15575: done
15576:
15577: # Double-quote double-evaled strings.
15578: for var in reload_cmds \
15579: old_postinstall_cmds \
15580: old_postuninstall_cmds \
15581: old_archive_cmds \
15582: extract_expsyms_cmds \
15583: old_archive_from_new_cmds \
15584: old_archive_from_expsyms_cmds \
15585: archive_cmds \
15586: archive_expsym_cmds \
15587: module_cmds \
15588: module_expsym_cmds \
15589: export_symbols_cmds \
15590: prelink_cmds \
15591: postinstall_cmds \
15592: postuninstall_cmds \
15593: finish_cmds \
15594: sys_lib_search_path_spec \
15595: sys_lib_dlsearch_path_spec; do
15596: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15597: *[\\\\\\\`\\"\\\$]*)
15598: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15599: ;;
15600: *)
15601: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15602: ;;
15603: esac
15604: done
15605:
15606: ac_aux_dir='$ac_aux_dir'
15607: xsi_shell='$xsi_shell'
15608: lt_shell_append='$lt_shell_append'
15609:
15610: # See if we are running on zsh, and set the options which allow our
15611: # commands through without removal of \ escapes INIT.
15612: if test -n "\${ZSH_VERSION+set}" ; then
15613: setopt NO_GLOB_SUBST
15614: fi
15615:
15616:
15617: PACKAGE='$PACKAGE'
15618: VERSION='$VERSION'
15619: TIMESTAMP='$TIMESTAMP'
15620: RM='$RM'
15621: ofile='$ofile'
15622:
15623:
15624:
15625:
15626: _ACEOF
15627:
15628: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15629:
15630: # Handling of arguments.
15631: for ac_config_target in $ac_config_targets
15632: do
15633: case $ac_config_target in
15634: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15635: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15636: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15637: "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
15638: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15639: "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15640: "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
15641: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15642: "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
15643: "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
15644: "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
15645: "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15646: "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
15647: "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
15648: "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
15649: "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
15650: "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
15651: "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
15652: "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
15653:
15654: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15655: esac
15656: done
15657:
15658:
15659: # If the user did not use the arguments to specify the items to instantiate,
15660: # then the envvar interface is used. Set only those that are not.
15661: # We use the long form for the default assignment because of an extremely
15662: # bizarre bug on SunOS 4.1.3.
15663: if $ac_need_defaults; then
15664: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15665: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15666: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15667: fi
15668:
15669: # Have a temporary directory for convenience. Make it in the build tree
15670: # simply because there is no reason against having it here, and in addition,
15671: # creating and moving files from /tmp can sometimes cause problems.
15672: # Hook for its removal unless debugging.
15673: # Note that there is a small window in which the directory will not be cleaned:
15674: # after its creation but before its name has been assigned to `$tmp'.
15675: $debug ||
15676: {
15677: tmp=
15678: trap 'exit_status=$?
15679: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15680: ' 0
15681: trap 'as_fn_exit 1' 1 2 13 15
15682: }
15683: # Create a (secure) tmp directory for tmp files.
15684:
15685: {
15686: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15687: test -n "$tmp" && test -d "$tmp"
15688: } ||
15689: {
15690: tmp=./conf$$-$RANDOM
15691: (umask 077 && mkdir "$tmp")
15692: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15693:
15694: # Set up the scripts for CONFIG_FILES section.
15695: # No need to generate them if there are no CONFIG_FILES.
15696: # This happens for instance with `./config.status config.h'.
15697: if test -n "$CONFIG_FILES"; then
15698:
15699:
15700: ac_cr=`echo X | tr X '\015'`
15701: # On cygwin, bash can eat \r inside `` if the user requested igncr.
15702: # But we know of no other shell where ac_cr would be empty at this
15703: # point, so we can use a bashism as a fallback.
15704: if test "x$ac_cr" = x; then
15705: eval ac_cr=\$\'\\r\'
15706: fi
15707: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15708: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15709: ac_cs_awk_cr='\\r'
15710: else
15711: ac_cs_awk_cr=$ac_cr
15712: fi
15713:
15714: echo 'BEGIN {' >"$tmp/subs1.awk" &&
15715: _ACEOF
15716:
15717:
15718: {
15719: echo "cat >conf$$subs.awk <<_ACEOF" &&
15720: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15721: echo "_ACEOF"
15722: } >conf$$subs.sh ||
15723: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15724: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15725: ac_delim='%!_!# '
15726: for ac_last_try in false false false false false :; do
15727: . ./conf$$subs.sh ||
15728: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15729:
15730: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15731: if test $ac_delim_n = $ac_delim_num; then
15732: break
15733: elif $ac_last_try; then
15734: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15735: else
15736: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15737: fi
15738: done
15739: rm -f conf$$subs.sh
15740:
15741: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15742: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15743: _ACEOF
15744: sed -n '
15745: h
15746: s/^/S["/; s/!.*/"]=/
15747: p
15748: g
15749: s/^[^!]*!//
15750: :repl
15751: t repl
15752: s/'"$ac_delim"'$//
15753: t delim
15754: :nl
15755: h
15756: s/\(.\{148\}\)..*/\1/
15757: t more1
15758: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15759: p
15760: n
15761: b repl
15762: :more1
15763: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15764: p
15765: g
15766: s/.\{148\}//
15767: t nl
15768: :delim
15769: h
15770: s/\(.\{148\}\)..*/\1/
15771: t more2
15772: s/["\\]/\\&/g; s/^/"/; s/$/"/
15773: p
15774: b
15775: :more2
15776: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15777: p
15778: g
15779: s/.\{148\}//
15780: t delim
15781: ' <conf$$subs.awk | sed '
15782: /^[^""]/{
15783: N
15784: s/\n//
15785: }
15786: ' >>$CONFIG_STATUS || ac_write_fail=1
15787: rm -f conf$$subs.awk
15788: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15789: _ACAWK
15790: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15791: for (key in S) S_is_set[key] = 1
15792: FS = ""
15793:
15794: }
15795: {
15796: line = $ 0
15797: nfields = split(line, field, "@")
15798: substed = 0
15799: len = length(field[1])
15800: for (i = 2; i < nfields; i++) {
15801: key = field[i]
15802: keylen = length(key)
15803: if (S_is_set[key]) {
15804: value = S[key]
15805: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15806: len += length(value) + length(field[++i])
15807: substed = 1
15808: } else
15809: len += 1 + keylen
15810: }
15811:
15812: print line
15813: }
15814:
15815: _ACAWK
15816: _ACEOF
15817: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15818: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15819: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15820: else
15821: cat
15822: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15823: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15824: _ACEOF
15825:
15826: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15827: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15828: # trailing colons and then remove the whole line if VPATH becomes empty
15829: # (actually we leave an empty line to preserve line numbers).
15830: if test "x$srcdir" = x.; then
15831: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15832: h
15833: s///
15834: s/^/:/
15835: s/[ ]*$/:/
15836: s/:\$(srcdir):/:/g
15837: s/:\${srcdir}:/:/g
15838: s/:@srcdir@:/:/g
15839: s/^:*//
15840: s/:*$//
15841: x
15842: s/\(=[ ]*\).*/\1/
15843: G
15844: s/\n//
15845: s/^[^=]*=[ ]*$//
15846: }'
15847: fi
15848:
15849: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850: fi # test -n "$CONFIG_FILES"
15851:
15852: # Set up the scripts for CONFIG_HEADERS section.
15853: # No need to generate them if there are no CONFIG_HEADERS.
15854: # This happens for instance with `./config.status Makefile'.
15855: if test -n "$CONFIG_HEADERS"; then
15856: cat >"$tmp/defines.awk" <<\_ACAWK ||
15857: BEGIN {
15858: _ACEOF
15859:
15860: # Transform confdefs.h into an awk script `defines.awk', embedded as
15861: # here-document in config.status, that substitutes the proper values into
15862: # config.h.in to produce config.h.
15863:
15864: # Create a delimiter string that does not exist in confdefs.h, to ease
15865: # handling of long lines.
15866: ac_delim='%!_!# '
15867: for ac_last_try in false false :; do
15868: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15869: if test -z "$ac_t"; then
15870: break
15871: elif $ac_last_try; then
15872: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15873: else
15874: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15875: fi
15876: done
15877:
15878: # For the awk script, D is an array of macro values keyed by name,
15879: # likewise P contains macro parameters if any. Preserve backslash
15880: # newline sequences.
15881:
15882: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15883: sed -n '
15884: s/.\{148\}/&'"$ac_delim"'/g
15885: t rset
15886: :rset
15887: s/^[ ]*#[ ]*define[ ][ ]*/ /
15888: t def
15889: d
15890: :def
15891: s/\\$//
15892: t bsnl
15893: s/["\\]/\\&/g
15894: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15895: D["\1"]=" \3"/p
15896: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15897: d
15898: :bsnl
15899: s/["\\]/\\&/g
15900: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15901: D["\1"]=" \3\\\\\\n"\\/p
15902: t cont
15903: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15904: t cont
15905: d
15906: :cont
15907: n
15908: s/.\{148\}/&'"$ac_delim"'/g
15909: t clear
15910: :clear
15911: s/\\$//
15912: t bsnlc
15913: s/["\\]/\\&/g; s/^/"/; s/$/"/p
15914: d
15915: :bsnlc
15916: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15917: b cont
15918: ' <confdefs.h | sed '
15919: s/'"$ac_delim"'/"\\\
15920: "/g' >>$CONFIG_STATUS || ac_write_fail=1
15921:
15922: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15923: for (key in D) D_is_set[key] = 1
15924: FS = ""
15925: }
15926: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15927: line = \$ 0
15928: split(line, arg, " ")
15929: if (arg[1] == "#") {
15930: defundef = arg[2]
15931: mac1 = arg[3]
15932: } else {
15933: defundef = substr(arg[1], 2)
15934: mac1 = arg[2]
15935: }
15936: split(mac1, mac2, "(") #)
15937: macro = mac2[1]
15938: prefix = substr(line, 1, index(line, defundef) - 1)
15939: if (D_is_set[macro]) {
15940: # Preserve the white space surrounding the "#".
15941: print prefix "define", macro P[macro] D[macro]
15942: next
15943: } else {
15944: # Replace #undef with comments. This is necessary, for example,
15945: # in the case of _POSIX_SOURCE, which is predefined and required
15946: # on some systems where configure will not decide to define it.
15947: if (defundef == "undef") {
15948: print "/*", prefix defundef, macro, "*/"
15949: next
15950: }
15951: }
15952: }
15953: { print }
15954: _ACAWK
15955: _ACEOF
15956: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15957: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15958: fi # test -n "$CONFIG_HEADERS"
15959:
15960:
15961: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15962: shift
15963: for ac_tag
15964: do
15965: case $ac_tag in
15966: :[FHLC]) ac_mode=$ac_tag; continue;;
15967: esac
15968: case $ac_mode$ac_tag in
15969: :[FHL]*:*);;
15970: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15971: :[FH]-) ac_tag=-:-;;
15972: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15973: esac
15974: ac_save_IFS=$IFS
15975: IFS=:
15976: set x $ac_tag
15977: IFS=$ac_save_IFS
15978: shift
15979: ac_file=$1
15980: shift
15981:
15982: case $ac_mode in
15983: :L) ac_source=$1;;
15984: :[FH])
15985: ac_file_inputs=
15986: for ac_f
15987: do
15988: case $ac_f in
15989: -) ac_f="$tmp/stdin";;
15990: *) # Look for the file first in the build tree, then in the source tree
15991: # (if the path is not absolute). The absolute path cannot be DOS-style,
15992: # because $ac_f cannot contain `:'.
15993: test -f "$ac_f" ||
15994: case $ac_f in
15995: [\\/$]*) false;;
15996: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15997: esac ||
15998: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15999: esac
16000: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16001: as_fn_append ac_file_inputs " '$ac_f'"
16002: done
16003:
16004: # Let's still pretend it is `configure' which instantiates (i.e., don't
16005: # use $as_me), people would be surprised to read:
16006: # /* config.h. Generated by config.status. */
16007: configure_input='Generated from '`
16008: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16009: `' by configure.'
16010: if test x"$ac_file" != x-; then
16011: configure_input="$ac_file. $configure_input"
16012: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16013: $as_echo "$as_me: creating $ac_file" >&6;}
16014: fi
16015: # Neutralize special characters interpreted by sed in replacement strings.
16016: case $configure_input in #(
16017: *\&* | *\|* | *\\* )
16018: ac_sed_conf_input=`$as_echo "$configure_input" |
16019: sed 's/[\\\\&|]/\\\\&/g'`;; #(
16020: *) ac_sed_conf_input=$configure_input;;
16021: esac
16022:
16023: case $ac_tag in
16024: *:-:* | *:-) cat >"$tmp/stdin" \
16025: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16026: esac
16027: ;;
16028: esac
16029:
16030: ac_dir=`$as_dirname -- "$ac_file" ||
16031: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16032: X"$ac_file" : 'X\(//\)[^/]' \| \
16033: X"$ac_file" : 'X\(//\)$' \| \
16034: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16035: $as_echo X"$ac_file" |
16036: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16037: s//\1/
16038: q
16039: }
16040: /^X\(\/\/\)[^/].*/{
16041: s//\1/
16042: q
16043: }
16044: /^X\(\/\/\)$/{
16045: s//\1/
16046: q
16047: }
16048: /^X\(\/\).*/{
16049: s//\1/
16050: q
16051: }
16052: s/.*/./; q'`
16053: as_dir="$ac_dir"; as_fn_mkdir_p
16054: ac_builddir=.
16055:
16056: case "$ac_dir" in
16057: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16058: *)
16059: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16060: # A ".." for each directory in $ac_dir_suffix.
16061: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16062: case $ac_top_builddir_sub in
16063: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16064: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16065: esac ;;
16066: esac
16067: ac_abs_top_builddir=$ac_pwd
16068: ac_abs_builddir=$ac_pwd$ac_dir_suffix
16069: # for backward compatibility:
16070: ac_top_builddir=$ac_top_build_prefix
16071:
16072: case $srcdir in
16073: .) # We are building in place.
16074: ac_srcdir=.
16075: ac_top_srcdir=$ac_top_builddir_sub
16076: ac_abs_top_srcdir=$ac_pwd ;;
16077: [\\/]* | ?:[\\/]* ) # Absolute name.
16078: ac_srcdir=$srcdir$ac_dir_suffix;
16079: ac_top_srcdir=$srcdir
16080: ac_abs_top_srcdir=$srcdir ;;
16081: *) # Relative name.
16082: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16083: ac_top_srcdir=$ac_top_build_prefix$srcdir
16084: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16085: esac
16086: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16087:
16088:
16089: case $ac_mode in
16090: :F)
16091: #
16092: # CONFIG_FILE
16093: #
16094:
16095: case $INSTALL in
16096: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16097: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16098: esac
16099: ac_MKDIR_P=$MKDIR_P
16100: case $MKDIR_P in
16101: [\\/$]* | ?:[\\/]* ) ;;
16102: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16103: esac
16104: _ACEOF
16105:
16106: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16107: # If the template does not know about datarootdir, expand it.
16108: # FIXME: This hack should be removed a few years after 2.60.
16109: ac_datarootdir_hack=; ac_datarootdir_seen=
16110: ac_sed_dataroot='
16111: /datarootdir/ {
16112: p
16113: q
16114: }
16115: /@datadir@/p
16116: /@docdir@/p
16117: /@infodir@/p
16118: /@localedir@/p
16119: /@mandir@/p'
16120: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16121: *datarootdir*) ac_datarootdir_seen=yes;;
16122: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16123: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16124: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16125: _ACEOF
16126: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16127: ac_datarootdir_hack='
16128: s&@datadir@&$datadir&g
16129: s&@docdir@&$docdir&g
16130: s&@infodir@&$infodir&g
16131: s&@localedir@&$localedir&g
16132: s&@mandir@&$mandir&g
16133: s&\\\${datarootdir}&$datarootdir&g' ;;
16134: esac
16135: _ACEOF
16136:
16137: # Neutralize VPATH when `$srcdir' = `.'.
16138: # Shell code in configure.ac might set extrasub.
16139: # FIXME: do we really want to maintain this feature?
16140: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16141: ac_sed_extra="$ac_vpsub
16142: $extrasub
16143: _ACEOF
16144: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16145: :t
16146: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16147: s|@configure_input@|$ac_sed_conf_input|;t t
16148: s&@top_builddir@&$ac_top_builddir_sub&;t t
16149: s&@top_build_prefix@&$ac_top_build_prefix&;t t
16150: s&@srcdir@&$ac_srcdir&;t t
16151: s&@abs_srcdir@&$ac_abs_srcdir&;t t
16152: s&@top_srcdir@&$ac_top_srcdir&;t t
16153: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16154: s&@builddir@&$ac_builddir&;t t
16155: s&@abs_builddir@&$ac_abs_builddir&;t t
16156: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16157: s&@INSTALL@&$ac_INSTALL&;t t
16158: s&@MKDIR_P@&$ac_MKDIR_P&;t t
16159: $ac_datarootdir_hack
16160: "
16161: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16162: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16163:
16164: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16165: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16166: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16168: which seems to be undefined. Please make sure it is defined" >&5
16169: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16170: which seems to be undefined. Please make sure it is defined" >&2;}
16171:
16172: rm -f "$tmp/stdin"
16173: case $ac_file in
16174: -) cat "$tmp/out" && rm -f "$tmp/out";;
16175: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16176: esac \
16177: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16178: ;;
16179: :H)
16180: #
16181: # CONFIG_HEADER
16182: #
16183: if test x"$ac_file" != x-; then
16184: {
16185: $as_echo "/* $configure_input */" \
16186: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16187: } >"$tmp/config.h" \
16188: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16189: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16190: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16191: $as_echo "$as_me: $ac_file is unchanged" >&6;}
16192: else
16193: rm -f "$ac_file"
16194: mv "$tmp/config.h" "$ac_file" \
16195: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16196: fi
16197: else
16198: $as_echo "/* $configure_input */" \
16199: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16200: || as_fn_error $? "could not create -" "$LINENO" 5
16201: fi
16202: # Compute "$ac_file"'s index in $config_headers.
16203: _am_arg="$ac_file"
16204: _am_stamp_count=1
16205: for _am_header in $config_headers :; do
16206: case $_am_header in
16207: $_am_arg | $_am_arg:* )
16208: break ;;
16209: * )
16210: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16211: esac
16212: done
16213: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16214: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16215: X"$_am_arg" : 'X\(//\)[^/]' \| \
16216: X"$_am_arg" : 'X\(//\)$' \| \
16217: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16218: $as_echo X"$_am_arg" |
16219: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16220: s//\1/
16221: q
16222: }
16223: /^X\(\/\/\)[^/].*/{
16224: s//\1/
16225: q
16226: }
16227: /^X\(\/\/\)$/{
16228: s//\1/
16229: q
16230: }
16231: /^X\(\/\).*/{
16232: s//\1/
16233: q
16234: }
16235: s/.*/./; q'`/stamp-h$_am_stamp_count
16236: ;;
16237:
16238: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16239: $as_echo "$as_me: executing $ac_file commands" >&6;}
16240: ;;
16241: esac
16242:
16243:
16244: case $ac_file$ac_mode in
16245: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16246: # Autoconf 2.62 quotes --file arguments for eval, but not when files
16247: # are listed without --file. Let's play safe and only enable the eval
16248: # if we detect the quoting.
16249: case $CONFIG_FILES in
16250: *\'*) eval set x "$CONFIG_FILES" ;;
16251: *) set x $CONFIG_FILES ;;
16252: esac
16253: shift
16254: for mf
16255: do
16256: # Strip MF so we end up with the name of the file.
16257: mf=`echo "$mf" | sed -e 's/:.*$//'`
16258: # Check whether this is an Automake generated Makefile or not.
16259: # We used to match only the files named `Makefile.in', but
16260: # some people rename them; so instead we look at the file content.
16261: # Grep'ing the first line is not enough: some people post-process
16262: # each Makefile.in and add a new line on top of each file to say so.
16263: # Grep'ing the whole file is not good either: AIX grep has a line
16264: # limit of 2048, but all sed's we know have understand at least 4000.
16265: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16266: dirpart=`$as_dirname -- "$mf" ||
16267: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16268: X"$mf" : 'X\(//\)[^/]' \| \
16269: X"$mf" : 'X\(//\)$' \| \
16270: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16271: $as_echo X"$mf" |
16272: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16273: s//\1/
16274: q
16275: }
16276: /^X\(\/\/\)[^/].*/{
16277: s//\1/
16278: q
16279: }
16280: /^X\(\/\/\)$/{
16281: s//\1/
16282: q
16283: }
16284: /^X\(\/\).*/{
16285: s//\1/
16286: q
16287: }
16288: s/.*/./; q'`
16289: else
16290: continue
16291: fi
16292: # Extract the definition of DEPDIR, am__include, and am__quote
16293: # from the Makefile without running `make'.
16294: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16295: test -z "$DEPDIR" && continue
16296: am__include=`sed -n 's/^am__include = //p' < "$mf"`
16297: test -z "am__include" && continue
16298: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16299: # When using ansi2knr, U may be empty or an underscore; expand it
16300: U=`sed -n 's/^U = //p' < "$mf"`
16301: # Find all dependency output files, they are included files with
16302: # $(DEPDIR) in their names. We invoke sed twice because it is the
16303: # simplest approach to changing $(DEPDIR) to its actual value in the
16304: # expansion.
16305: for file in `sed -n "
16306: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16307: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16308: # Make sure the directory exists.
16309: test -f "$dirpart/$file" && continue
16310: fdir=`$as_dirname -- "$file" ||
16311: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16312: X"$file" : 'X\(//\)[^/]' \| \
16313: X"$file" : 'X\(//\)$' \| \
16314: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16315: $as_echo X"$file" |
16316: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16317: s//\1/
16318: q
16319: }
16320: /^X\(\/\/\)[^/].*/{
16321: s//\1/
16322: q
16323: }
16324: /^X\(\/\/\)$/{
16325: s//\1/
16326: q
16327: }
16328: /^X\(\/\).*/{
16329: s//\1/
16330: q
16331: }
16332: s/.*/./; q'`
16333: as_dir=$dirpart/$fdir; as_fn_mkdir_p
16334: # echo "creating $dirpart/$file"
16335: echo '# dummy' > "$dirpart/$file"
16336: done
16337: done
16338: }
16339: ;;
16340: "libtool":C)
16341:
16342: # See if we are running on zsh, and set the options which allow our
16343: # commands through without removal of \ escapes.
16344: if test -n "${ZSH_VERSION+set}" ; then
16345: setopt NO_GLOB_SUBST
16346: fi
16347:
16348: cfgfile="${ofile}T"
16349: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16350: $RM "$cfgfile"
16351:
16352: cat <<_LT_EOF >> "$cfgfile"
16353: #! $SHELL
16354:
16355: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16356: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16357: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16358: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16359: #
16360: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16361: # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16362: # Inc.
16363: # Written by Gordon Matzigkeit, 1996
16364: #
16365: # This file is part of GNU Libtool.
16366: #
16367: # GNU Libtool is free software; you can redistribute it and/or
16368: # modify it under the terms of the GNU General Public License as
16369: # published by the Free Software Foundation; either version 2 of
16370: # the License, or (at your option) any later version.
16371: #
16372: # As a special exception to the GNU General Public License,
16373: # if you distribute this file as part of a program or library that
16374: # is built using GNU Libtool, you may include this file under the
16375: # same distribution terms that you use for the rest of that program.
16376: #
16377: # GNU Libtool is distributed in the hope that it will be useful,
16378: # but WITHOUT ANY WARRANTY; without even the implied warranty of
16379: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16380: # GNU General Public License for more details.
16381: #
16382: # You should have received a copy of the GNU General Public License
16383: # along with GNU Libtool; see the file COPYING. If not, a copy
16384: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16385: # obtained by writing to the Free Software Foundation, Inc.,
16386: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16387:
16388:
16389: # The names of the tagged configurations supported by this script.
16390: available_tags=""
16391:
16392: # ### BEGIN LIBTOOL CONFIG
16393:
16394: # Assembler program.
16395: AS=$lt_AS
16396:
16397: # DLL creation program.
16398: DLLTOOL=$lt_DLLTOOL
16399:
16400: # Object dumper program.
16401: OBJDUMP=$lt_OBJDUMP
16402:
16403: # Which release of libtool.m4 was used?
16404: macro_version=$macro_version
16405: macro_revision=$macro_revision
16406:
16407: # Whether or not to build shared libraries.
16408: build_libtool_libs=$enable_shared
16409:
16410: # Whether or not to build static libraries.
16411: build_old_libs=$enable_static
16412:
16413: # What type of objects to build.
16414: pic_mode=$pic_mode
16415:
16416: # Whether or not to optimize for fast installation.
16417: fast_install=$enable_fast_install
16418:
16419: # Shell to use when invoking shell scripts.
16420: SHELL=$lt_SHELL
16421:
16422: # An echo program that protects backslashes.
16423: ECHO=$lt_ECHO
16424:
16425: # The host system.
16426: host_alias=$host_alias
16427: host=$host
16428: host_os=$host_os
16429:
16430: # The build system.
16431: build_alias=$build_alias
16432: build=$build
16433: build_os=$build_os
16434:
16435: # A sed program that does not truncate output.
16436: SED=$lt_SED
16437:
16438: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16439: Xsed="\$SED -e 1s/^X//"
16440:
16441: # A grep program that handles long lines.
16442: GREP=$lt_GREP
16443:
16444: # An ERE matcher.
16445: EGREP=$lt_EGREP
16446:
16447: # A literal string matcher.
16448: FGREP=$lt_FGREP
16449:
16450: # A BSD- or MS-compatible name lister.
16451: NM=$lt_NM
16452:
16453: # Whether we need soft or hard links.
16454: LN_S=$lt_LN_S
16455:
16456: # What is the maximum length of a command?
16457: max_cmd_len=$max_cmd_len
16458:
16459: # Object file suffix (normally "o").
16460: objext=$ac_objext
16461:
16462: # Executable file suffix (normally "").
16463: exeext=$exeext
16464:
16465: # whether the shell understands "unset".
16466: lt_unset=$lt_unset
16467:
16468: # turn spaces into newlines.
16469: SP2NL=$lt_lt_SP2NL
16470:
16471: # turn newlines into spaces.
16472: NL2SP=$lt_lt_NL2SP
16473:
16474: # Method to check whether dependent libraries are shared objects.
16475: deplibs_check_method=$lt_deplibs_check_method
16476:
16477: # Command to use when deplibs_check_method == "file_magic".
16478: file_magic_cmd=$lt_file_magic_cmd
16479:
16480: # The archiver.
16481: AR=$lt_AR
16482: AR_FLAGS=$lt_AR_FLAGS
16483:
16484: # A symbol stripping program.
16485: STRIP=$lt_STRIP
16486:
16487: # Commands used to install an old-style archive.
16488: RANLIB=$lt_RANLIB
16489: old_postinstall_cmds=$lt_old_postinstall_cmds
16490: old_postuninstall_cmds=$lt_old_postuninstall_cmds
16491:
16492: # Whether to use a lock for old archive extraction.
16493: lock_old_archive_extraction=$lock_old_archive_extraction
16494:
16495: # A C compiler.
16496: LTCC=$lt_CC
16497:
16498: # LTCC compiler flags.
16499: LTCFLAGS=$lt_CFLAGS
16500:
16501: # Take the output of nm and produce a listing of raw symbols and C names.
16502: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16503:
16504: # Transform the output of nm in a proper C declaration.
16505: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16506:
16507: # Transform the output of nm in a C name address pair.
16508: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16509:
16510: # Transform the output of nm in a C name address pair when lib prefix is needed.
16511: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16512:
16513: # The name of the directory that contains temporary libtool files.
16514: objdir=$objdir
16515:
16516: # Used to examine libraries when file_magic_cmd begins with "file".
16517: MAGIC_CMD=$MAGIC_CMD
16518:
16519: # Must we lock files when doing compilation?
16520: need_locks=$lt_need_locks
16521:
16522: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16523: DSYMUTIL=$lt_DSYMUTIL
16524:
16525: # Tool to change global to local symbols on Mac OS X.
16526: NMEDIT=$lt_NMEDIT
16527:
16528: # Tool to manipulate fat objects and archives on Mac OS X.
16529: LIPO=$lt_LIPO
16530:
16531: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16532: OTOOL=$lt_OTOOL
16533:
16534: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16535: OTOOL64=$lt_OTOOL64
16536:
16537: # Old archive suffix (normally "a").
16538: libext=$libext
16539:
16540: # Shared library suffix (normally ".so").
16541: shrext_cmds=$lt_shrext_cmds
16542:
16543: # The commands to extract the exported symbol list from a shared archive.
16544: extract_expsyms_cmds=$lt_extract_expsyms_cmds
16545:
16546: # Variables whose values should be saved in libtool wrapper scripts and
16547: # restored at link time.
16548: variables_saved_for_relink=$lt_variables_saved_for_relink
16549:
16550: # Do we need the "lib" prefix for modules?
16551: need_lib_prefix=$need_lib_prefix
16552:
16553: # Do we need a version for libraries?
16554: need_version=$need_version
16555:
16556: # Library versioning type.
16557: version_type=$version_type
16558:
16559: # Shared library runtime path variable.
16560: runpath_var=$runpath_var
16561:
16562: # Shared library path variable.
16563: shlibpath_var=$shlibpath_var
16564:
16565: # Is shlibpath searched before the hard-coded library search path?
16566: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16567:
16568: # Format of library name prefix.
16569: libname_spec=$lt_libname_spec
16570:
16571: # List of archive names. First name is the real one, the rest are links.
16572: # The last name is the one that the linker finds with -lNAME
16573: library_names_spec=$lt_library_names_spec
16574:
16575: # The coded name of the library, if different from the real name.
16576: soname_spec=$lt_soname_spec
16577:
16578: # Permission mode override for installation of shared libraries.
16579: install_override_mode=$lt_install_override_mode
16580:
16581: # Command to use after installation of a shared archive.
16582: postinstall_cmds=$lt_postinstall_cmds
16583:
16584: # Command to use after uninstallation of a shared archive.
16585: postuninstall_cmds=$lt_postuninstall_cmds
16586:
16587: # Commands used to finish a libtool library installation in a directory.
16588: finish_cmds=$lt_finish_cmds
16589:
16590: # As "finish_cmds", except a single script fragment to be evaled but
16591: # not shown.
16592: finish_eval=$lt_finish_eval
16593:
16594: # Whether we should hardcode library paths into libraries.
16595: hardcode_into_libs=$hardcode_into_libs
16596:
16597: # Compile-time system search path for libraries.
16598: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16599:
16600: # Run-time system search path for libraries.
16601: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16602:
16603: # Whether dlopen is supported.
16604: dlopen_support=$enable_dlopen
16605:
16606: # Whether dlopen of programs is supported.
16607: dlopen_self=$enable_dlopen_self
16608:
16609: # Whether dlopen of statically linked programs is supported.
16610: dlopen_self_static=$enable_dlopen_self_static
16611:
16612: # Commands to strip libraries.
16613: old_striplib=$lt_old_striplib
16614: striplib=$lt_striplib
16615:
16616:
16617: # The linker used to build libraries.
16618: LD=$lt_LD
16619:
16620: # How to create reloadable object files.
16621: reload_flag=$lt_reload_flag
16622: reload_cmds=$lt_reload_cmds
16623:
16624: # Commands used to build an old-style archive.
16625: old_archive_cmds=$lt_old_archive_cmds
16626:
16627: # A language specific compiler.
16628: CC=$lt_compiler
16629:
16630: # Is the compiler the GNU compiler?
16631: with_gcc=$GCC
16632:
16633: # Compiler flag to turn off builtin functions.
16634: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16635:
16636: # How to pass a linker flag through the compiler.
16637: wl=$lt_lt_prog_compiler_wl
16638:
16639: # Additional compiler flags for building library objects.
16640: pic_flag=$lt_lt_prog_compiler_pic
16641:
16642: # Compiler flag to prevent dynamic linking.
16643: link_static_flag=$lt_lt_prog_compiler_static
16644:
16645: # Does compiler simultaneously support -c and -o options?
16646: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16647:
16648: # Whether or not to add -lc for building shared libraries.
16649: build_libtool_need_lc=$archive_cmds_need_lc
16650:
16651: # Whether or not to disallow shared libs when runtime libs are static.
16652: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16653:
16654: # Compiler flag to allow reflexive dlopens.
16655: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16656:
16657: # Compiler flag to generate shared objects directly from archives.
16658: whole_archive_flag_spec=$lt_whole_archive_flag_spec
16659:
16660: # Whether the compiler copes with passing no objects directly.
16661: compiler_needs_object=$lt_compiler_needs_object
16662:
16663: # Create an old-style archive from a shared archive.
16664: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16665:
16666: # Create a temporary old-style archive to link instead of a shared archive.
16667: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16668:
16669: # Commands used to build a shared archive.
16670: archive_cmds=$lt_archive_cmds
16671: archive_expsym_cmds=$lt_archive_expsym_cmds
16672:
16673: # Commands used to build a loadable module if different from building
16674: # a shared archive.
16675: module_cmds=$lt_module_cmds
16676: module_expsym_cmds=$lt_module_expsym_cmds
16677:
16678: # Whether we are building with GNU ld or not.
16679: with_gnu_ld=$lt_with_gnu_ld
16680:
16681: # Flag that allows shared libraries with undefined symbols to be built.
16682: allow_undefined_flag=$lt_allow_undefined_flag
16683:
16684: # Flag that enforces no undefined symbols.
16685: no_undefined_flag=$lt_no_undefined_flag
16686:
16687: # Flag to hardcode \$libdir into a binary during linking.
16688: # This must work even if \$libdir does not exist
16689: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16690:
16691: # If ld is used when linking, flag to hardcode \$libdir into a binary
16692: # during linking. This must work even if \$libdir does not exist.
16693: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16694:
16695: # Whether we need a single "-rpath" flag with a separated argument.
16696: hardcode_libdir_separator=$lt_hardcode_libdir_separator
16697:
16698: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16699: # DIR into the resulting binary.
16700: hardcode_direct=$hardcode_direct
16701:
16702: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16703: # DIR into the resulting binary and the resulting library dependency is
16704: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16705: # library is relocated.
16706: hardcode_direct_absolute=$hardcode_direct_absolute
16707:
16708: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16709: # into the resulting binary.
16710: hardcode_minus_L=$hardcode_minus_L
16711:
16712: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16713: # into the resulting binary.
16714: hardcode_shlibpath_var=$hardcode_shlibpath_var
16715:
16716: # Set to "yes" if building a shared library automatically hardcodes DIR
16717: # into the library and all subsequent libraries and executables linked
16718: # against it.
16719: hardcode_automatic=$hardcode_automatic
16720:
16721: # Set to yes if linker adds runtime paths of dependent libraries
16722: # to runtime path list.
16723: inherit_rpath=$inherit_rpath
16724:
16725: # Whether libtool must link a program against all its dependency libraries.
16726: link_all_deplibs=$link_all_deplibs
16727:
16728: # Fix the shell variable \$srcfile for the compiler.
16729: fix_srcfile_path=$lt_fix_srcfile_path
16730:
16731: # Set to "yes" if exported symbols are required.
16732: always_export_symbols=$always_export_symbols
16733:
16734: # The commands to list exported symbols.
16735: export_symbols_cmds=$lt_export_symbols_cmds
16736:
16737: # Symbols that should not be listed in the preloaded symbols.
16738: exclude_expsyms=$lt_exclude_expsyms
16739:
16740: # Symbols that must always be exported.
16741: include_expsyms=$lt_include_expsyms
16742:
16743: # Commands necessary for linking programs (against libraries) with templates.
16744: prelink_cmds=$lt_prelink_cmds
16745:
16746: # Specify filename containing input files.
16747: file_list_spec=$lt_file_list_spec
16748:
16749: # How to hardcode a shared library path into an executable.
16750: hardcode_action=$hardcode_action
16751:
16752: # ### END LIBTOOL CONFIG
16753:
16754: _LT_EOF
16755:
16756: case $host_os in
16757: aix3*)
16758: cat <<\_LT_EOF >> "$cfgfile"
16759: # AIX sometimes has problems with the GCC collect2 program. For some
16760: # reason, if we set the COLLECT_NAMES environment variable, the problems
16761: # vanish in a puff of smoke.
16762: if test "X${COLLECT_NAMES+set}" != Xset; then
16763: COLLECT_NAMES=
16764: export COLLECT_NAMES
16765: fi
16766: _LT_EOF
16767: ;;
16768: esac
16769:
16770:
16771: ltmain="$ac_aux_dir/ltmain.sh"
16772:
16773:
16774: # We use sed instead of cat because bash on DJGPP gets confused if
16775: # if finds mixed CR/LF and LF-only lines. Since sed operates in
16776: # text mode, it properly converts lines to CR/LF. This bash problem
16777: # is reportedly fixed, but why not run on old versions too?
16778: sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16779: || (rm -f "$cfgfile"; exit 1)
16780:
16781: case $xsi_shell in
16782: yes)
16783: cat << \_LT_EOF >> "$cfgfile"
16784:
16785: # func_dirname file append nondir_replacement
16786: # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16787: # otherwise set result to NONDIR_REPLACEMENT.
16788: func_dirname ()
16789: {
16790: case ${1} in
16791: */*) func_dirname_result="${1%/*}${2}" ;;
16792: * ) func_dirname_result="${3}" ;;
16793: esac
16794: }
16795:
16796: # func_basename file
16797: func_basename ()
16798: {
16799: func_basename_result="${1##*/}"
16800: }
16801:
16802: # func_dirname_and_basename file append nondir_replacement
16803: # perform func_basename and func_dirname in a single function
16804: # call:
16805: # dirname: Compute the dirname of FILE. If nonempty,
16806: # add APPEND to the result, otherwise set result
16807: # to NONDIR_REPLACEMENT.
16808: # value returned in "$func_dirname_result"
16809: # basename: Compute filename of FILE.
16810: # value retuned in "$func_basename_result"
16811: # Implementation must be kept synchronized with func_dirname
16812: # and func_basename. For efficiency, we do not delegate to
16813: # those functions but instead duplicate the functionality here.
16814: func_dirname_and_basename ()
16815: {
16816: case ${1} in
16817: */*) func_dirname_result="${1%/*}${2}" ;;
16818: * ) func_dirname_result="${3}" ;;
16819: esac
16820: func_basename_result="${1##*/}"
16821: }
16822:
16823: # func_stripname prefix suffix name
16824: # strip PREFIX and SUFFIX off of NAME.
16825: # PREFIX and SUFFIX must not contain globbing or regex special
16826: # characters, hashes, percent signs, but SUFFIX may contain a leading
16827: # dot (in which case that matches only a dot).
16828: func_stripname ()
16829: {
16830: # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16831: # positional parameters, so assign one to ordinary parameter first.
16832: func_stripname_result=${3}
16833: func_stripname_result=${func_stripname_result#"${1}"}
16834: func_stripname_result=${func_stripname_result%"${2}"}
16835: }
16836:
16837: # func_opt_split
16838: func_opt_split ()
16839: {
16840: func_opt_split_opt=${1%%=*}
16841: func_opt_split_arg=${1#*=}
16842: }
16843:
16844: # func_lo2o object
16845: func_lo2o ()
16846: {
16847: case ${1} in
16848: *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16849: *) func_lo2o_result=${1} ;;
16850: esac
16851: }
16852:
16853: # func_xform libobj-or-source
16854: func_xform ()
16855: {
16856: func_xform_result=${1%.*}.lo
16857: }
16858:
16859: # func_arith arithmetic-term...
16860: func_arith ()
16861: {
16862: func_arith_result=$(( $* ))
16863: }
16864:
16865: # func_len string
16866: # STRING may not start with a hyphen.
16867: func_len ()
16868: {
16869: func_len_result=${#1}
16870: }
16871:
16872: _LT_EOF
16873: ;;
16874: *) # Bourne compatible functions.
16875: cat << \_LT_EOF >> "$cfgfile"
16876:
16877: # func_dirname file append nondir_replacement
16878: # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16879: # otherwise set result to NONDIR_REPLACEMENT.
16880: func_dirname ()
16881: {
16882: # Extract subdirectory from the argument.
16883: func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16884: if test "X$func_dirname_result" = "X${1}"; then
16885: func_dirname_result="${3}"
16886: else
16887: func_dirname_result="$func_dirname_result${2}"
16888: fi
16889: }
16890:
16891: # func_basename file
16892: func_basename ()
16893: {
16894: func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16895: }
16896:
16897:
16898: # func_stripname prefix suffix name
16899: # strip PREFIX and SUFFIX off of NAME.
16900: # PREFIX and SUFFIX must not contain globbing or regex special
16901: # characters, hashes, percent signs, but SUFFIX may contain a leading
16902: # dot (in which case that matches only a dot).
16903: # func_strip_suffix prefix name
16904: func_stripname ()
16905: {
16906: case ${2} in
16907: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16908: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16909: esac
16910: }
16911:
16912: # sed scripts:
16913: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16914: my_sed_long_arg='1s/^-[^=]*=//'
16915:
16916: # func_opt_split
16917: func_opt_split ()
16918: {
16919: func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16920: func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16921: }
16922:
16923: # func_lo2o object
16924: func_lo2o ()
16925: {
16926: func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16927: }
16928:
16929: # func_xform libobj-or-source
16930: func_xform ()
16931: {
16932: func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16933: }
16934:
16935: # func_arith arithmetic-term...
16936: func_arith ()
16937: {
16938: func_arith_result=`expr "$@"`
16939: }
16940:
16941: # func_len string
16942: # STRING may not start with a hyphen.
16943: func_len ()
16944: {
16945: func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16946: }
16947:
16948: _LT_EOF
16949: esac
16950:
16951: case $lt_shell_append in
16952: yes)
16953: cat << \_LT_EOF >> "$cfgfile"
16954:
16955: # func_append var value
16956: # Append VALUE to the end of shell variable VAR.
16957: func_append ()
16958: {
16959: eval "$1+=\$2"
16960: }
16961: _LT_EOF
16962: ;;
16963: *)
16964: cat << \_LT_EOF >> "$cfgfile"
16965:
16966: # func_append var value
16967: # Append VALUE to the end of shell variable VAR.
16968: func_append ()
16969: {
16970: eval "$1=\$$1\$2"
16971: }
16972:
16973: _LT_EOF
16974: ;;
16975: esac
16976:
16977:
16978: sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16979: || (rm -f "$cfgfile"; exit 1)
16980:
16981: mv -f "$cfgfile" "$ofile" ||
16982: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16983: chmod +x "$ofile"
16984:
16985: ;;
16986:
16987: esac
16988: done # for ac_tag
16989:
16990:
16991: as_fn_exit 0
16992: _ACEOF
16993: ac_clean_files=$ac_clean_files_save
16994:
16995: test $ac_write_fail = 0 ||
16996: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16997:
16998:
16999: # configure is writing to config.log, and then calls config.status.
17000: # config.status does its own redirection, appending to config.log.
17001: # Unfortunately, on DOS this fails, as config.log is still kept open
17002: # by configure, so config.status won't be able to write to it; its
17003: # output is simply discarded. So we exec the FD to /dev/null,
17004: # effectively closing config.log, so it can be properly (re)opened and
17005: # appended to by config.status. When coming back to configure, we
17006: # need to make the FD available again.
17007: if test "$no_create" != yes; then
17008: ac_cs_success=:
17009: ac_config_status_args=
17010: test "$silent" = yes &&
17011: ac_config_status_args="$ac_config_status_args --quiet"
17012: exec 5>/dev/null
17013: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17014: exec 5>>config.log
17015: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17016: # would make configure fail if this is the last instruction.
17017: $ac_cs_success || as_fn_exit 1
17018: fi
17019: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17020: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17021: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17022: fi
17023:
17024:
17025: chmod +x xml2-config python/setup.py
17026: echo Done configuring
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>