configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for libXi 1.4.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187 else
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210 fi
211 fi
212 done;;
213 esac
214 as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540 as_awk_strverscmp='
541 # Use only awk features that work with 7th edition Unix awk (1978).
542 # My, what an old awk you have, Mr. Solaris!
543 END {
544 while (length(v1) && length(v2)) {
545 # Set d1 to be the next thing to compare from v1, and likewise for d2.
546 # Normally this is a single character, but if v1 and v2 contain digits,
547 # compare them as integers and fractions as strverscmp does.
548 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549 # Split v1 and v2 into their leading digit string components d1 and d2,
550 # and advance v1 and v2 past the leading digit strings.
551 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
555 if (d1 ~ /^0/) {
556 if (d2 ~ /^0/) {
557 # Compare two fractions.
558 while (d1 ~ /^0/ && d2 ~ /^0/) {
559 d1 = substr(d1, 2); len1--
560 d2 = substr(d2, 2); len2--
561 }
562 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563 # The two components differ in length, and the common prefix
564 # contains only leading zeros. Consider the longer to be less.
565 d1 = -len1
566 d2 = -len2
567 } else {
568 # Otherwise, compare as strings.
569 d1 = "x" d1
570 d2 = "x" d2
571 }
572 } else {
573 # A fraction is less than an integer.
574 exit 1
575 }
576 } else {
577 if (d2 ~ /^0/) {
578 # An integer is greater than a fraction.
579 exit 2
580 } else {
581 # Compare two integers.
582 d1 += 0
583 d2 += 0
584 }
585 }
586 } else {
587 # The normal case, without worrying about digits.
588 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
590 }
591 if (d1 < d2) exit 1
592 if (d1 > d2) exit 2
593 }
594 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595 # which mishandles some comparisons of empty strings to integers.
596 if (length(v2)) exit 1
597 if (length(v1)) exit 2
598 }
599 '
600 SHELL=${CONFIG_SHELL-/bin/sh}
601
602
603 test -n "$DJDIR" || exec 7<&0 </dev/null
604 exec 6>&1
605
606 # Name of the host.
607 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
608 # so uname gets run too.
609 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
610
611 #
612 # Initializations.
613 #
614 ac_default_prefix=/usr/local
615 ac_clean_files=
616 ac_config_libobj_dir=.
617 LIBOBJS=
618 cross_compiling=no
619 subdirs=
620 MFLAGS=
621 MAKEFLAGS=
622
623 # Identity of this package.
624 PACKAGE_NAME='libXi'
625 PACKAGE_TARNAME='libXi'
626 PACKAGE_VERSION='1.4.0'
627 PACKAGE_STRING='libXi 1.4.0'
628 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
629 PACKAGE_URL=''
630
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stdio.h>
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef STDC_HEADERS
641 # include <stdlib.h>
642 # include <stddef.h>
643 #else
644 # ifdef HAVE_STDLIB_H
645 # include <stdlib.h>
646 # endif
647 #endif
648 #ifdef HAVE_STRING_H
649 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
650 # include <memory.h>
651 # endif
652 # include <string.h>
653 #endif
654 #ifdef HAVE_STRINGS_H
655 # include <strings.h>
656 #endif
657 #ifdef HAVE_INTTYPES_H
658 # include <inttypes.h>
659 #endif
660 #ifdef HAVE_STDINT_H
661 # include <stdint.h>
662 #endif
663 #ifdef HAVE_UNISTD_H
664 # include <unistd.h>
665 #endif"
666
667 ac_subst_vars='am__EXEEXT_FALSE
668 am__EXEEXT_TRUE
669 LTLIBOBJS
670 LIBOBJS
671 XTMALLOC_ZERO_CFLAGS
672 XMALLOC_ZERO_CFLAGS
673 MALLOC_ZERO_CFLAGS
674 INSTALL_MANPAGES_FALSE
675 INSTALL_MANPAGES_TRUE
676 HAVE_DOCTOOLS_FALSE
677 HAVE_DOCTOOLS_TRUE
678 XI_LIBS
679 XI_CFLAGS
680 OTOOL64
681 OTOOL
682 LIPO
683 NMEDIT
684 DSYMUTIL
685 RANLIB
686 AR
687 OBJDUMP
688 LN_S
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 LIBTOOL
695 HAVE_ASCIIDOC_FALSE
696 HAVE_ASCIIDOC_TRUE
697 ASCIIDOC
698 HAVE_STYLESHEETS_FALSE
699 HAVE_STYLESHEETS_TRUE
700 XSL_STYLESHEET
701 STYLESHEET_SRCDIR
702 XORG_SGML_PATH
703 HAVE_FOP_FALSE
704 HAVE_FOP_TRUE
705 FOP
706 HAVE_XMLTO_FALSE
707 HAVE_XMLTO_TRUE
708 HAVE_XMLTO_TEXT_FALSE
709 HAVE_XMLTO_TEXT_TRUE
710 XMLTO
711 ENABLE_SPECS_FALSE
712 ENABLE_SPECS_TRUE
713 AM_BACKSLASH
714 AM_DEFAULT_VERBOSITY
715 MAN_SUBSTS
716 XORG_MAN_PAGE
717 ADMIN_MAN_DIR
718 DRIVER_MAN_DIR
719 MISC_MAN_DIR
720 FILE_MAN_DIR
721 LIB_MAN_DIR
722 APP_MAN_DIR
723 ADMIN_MAN_SUFFIX
724 DRIVER_MAN_SUFFIX
725 MISC_MAN_SUFFIX
726 FILE_MAN_SUFFIX
727 LIB_MAN_SUFFIX
728 APP_MAN_SUFFIX
729 SED
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 INSTALL_CMD
739 PKG_CONFIG_LIBDIR
740 PKG_CONFIG_PATH
741 PKG_CONFIG
742 CHANGELOG_CMD
743 CWARNFLAGS
744 EGREP
745 GREP
746 CPP
747 am__fastdepCC_FALSE
748 am__fastdepCC_TRUE
749 CCDEPMODE
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__quote
754 am__include
755 DEPDIR
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 MAINT
764 MAINTAINER_MODE_FALSE
765 MAINTAINER_MODE_TRUE
766 am__untar
767 am__tar
768 AMTAR
769 am__leading_dot
770 SET_MAKE
771 AWK
772 mkdir_p
773 MKDIR_P
774 INSTALL_STRIP_PROGRAM
775 STRIP
776 install_sh
777 MAKEINFO
778 AUTOHEADER
779 AUTOMAKE
780 AUTOCONF
781 ACLOCAL
782 VERSION
783 PACKAGE
784 CYGPATH_W
785 am__isrc
786 INSTALL_DATA
787 INSTALL_SCRIPT
788 INSTALL_PROGRAM
789 target_alias
790 host_alias
791 build_alias
792 LIBS
793 ECHO_T
794 ECHO_N
795 ECHO_C
796 DEFS
797 mandir
798 localedir
799 libdir
800 psdir
801 pdfdir
802 dvidir
803 htmldir
804 infodir
805 docdir
806 oldincludedir
807 includedir
808 localstatedir
809 sharedstatedir
810 sysconfdir
811 datadir
812 datarootdir
813 libexecdir
814 sbindir
815 bindir
816 program_transform_name
817 prefix
818 exec_prefix
819 PACKAGE_URL
820 PACKAGE_BUGREPORT
821 PACKAGE_STRING
822 PACKAGE_VERSION
823 PACKAGE_TARNAME
824 PACKAGE_NAME
825 PATH_SEPARATOR
826 SHELL'
827 ac_subst_files=''
828 ac_user_opts='
829 enable_option_checking
830 enable_maintainer_mode
831 enable_dependency_tracking
832 enable_strict_compilation
833 enable_silent_rules
834 enable_specs
835 with_xmlto
836 with_fop
837 with_asciidoc
838 enable_shared
839 enable_static
840 with_pic
841 enable_fast_install
842 with_gnu_ld
843 enable_libtool_lock
844 enable_malloc0returnsnull
845 '
846 ac_precious_vars='build_alias
847 host_alias
848 target_alias
849 CC
850 CFLAGS
851 LDFLAGS
852 LIBS
853 CPPFLAGS
854 CPP
855 PKG_CONFIG
856 PKG_CONFIG_PATH
857 PKG_CONFIG_LIBDIR
858 XMLTO
859 FOP
860 ASCIIDOC
861 XI_CFLAGS
862 XI_LIBS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
912
913 ac_prev=
914 ac_dashdash=
915 for ac_option
916 do
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
920 ac_prev=
921 continue
922 fi
923
924 case $ac_option in
925 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275 fi
1276
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1284
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used" >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1321 fi
1322 fi
1323
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327 test "$silent" = yes && exec 6>/dev/null
1328
1329
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369 else
1370 ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 fi
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures libXi 1.4.0 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of libXi 1.4.0:";;
1475 esac
1476 cat <<\_ACEOF
1477
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-maintainer-mode enable make rules and dependencies not useful
1483 (and sometimes confusing) to the casual installer
1484 --disable-dependency-tracking speeds up one-time build
1485 --enable-dependency-tracking do not reject slow dependency extractors
1486 --enable-strict-compilation
1487 Enable all warnings from compiler and make them
1488 errors (default: disabled)
1489 --enable-silent-rules less verbose build output (undo: `make V=1')
1490 --disable-silent-rules verbose build output (undo: `make V=0')
1491 --enable-specs Enable building the specs (default: yes)
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-malloc0returnsnull
1498 malloc(0) returns NULL (default: auto)
1499
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-xmlto Use xmlto to regenerate documentation (default: yes,
1504 if installed)
1505 --with-fop Use fop to regenerate documentation (default: yes,
1506 if installed)
1507 --with-asciidoc Use asciidoc to regenerate documentation (default:
1508 yes, if installed)
1509 --with-pic try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 CPP C preprocessor
1522 PKG_CONFIG path to pkg-config utility
1523 PKG_CONFIG_PATH
1524 directories to add to pkg-config's search path
1525 PKG_CONFIG_LIBDIR
1526 path overriding pkg-config's built-in search path
1527 XMLTO Path to xmlto command
1528 FOP Path to fop command
1529 ASCIIDOC Path to asciidoc command
1530 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1531 XI_LIBS linker flags for XI, overriding pkg-config
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 libXi configure 1.4.0
1600 generated by GNU Autoconf 2.66
1601
1602 Copyright (C) 2010 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1652 # ---------------------------------------------
1653 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1654 # accordingly.
1655 ac_fn_c_check_decl ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 as_decl_name=`echo $2|sed 's/ *(.*//'`
1659 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1661 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1662 if eval "test \"\${$3+set}\"" = set; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 int
1669 main ()
1670 {
1671 #ifndef $as_decl_name
1672 #ifdef __cplusplus
1673 (void) $as_decl_use;
1674 #else
1675 (void) $as_decl_name;
1676 #endif
1677 #endif
1678
1679 ;
1680 return 0;
1681 }
1682 _ACEOF
1683 if ac_fn_c_try_compile "$LINENO"; then :
1684 eval "$3=yes"
1685 else
1686 eval "$3=no"
1687 fi
1688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689 fi
1690 eval ac_res=\$$3
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694
1695 } # ac_fn_c_check_decl
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_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval "test \"\${$3+set}\"" = set; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 $4
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805 } # ac_fn_c_check_header_compile
1806
1807 # ac_fn_c_try_link LINENO
1808 # -----------------------
1809 # Try to link conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_link ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext conftest$ac_exeext
1814 if { { ac_try="$ac_link"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest$ac_exeext && {
1833 test "$cross_compiling" = yes ||
1834 $as_test_x conftest$ac_exeext
1835 }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 as_fn_set_status $ac_retval
1850
1851 } # ac_fn_c_try_link
1852
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval "test \"\${$3+set}\"" = set; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1868 #define $2 innocuous_$2
1869
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $2 (); below.
1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873 <limits.h> exists even on freestanding compilers. */
1874
1875 #ifdef __STDC__
1876 # include <limits.h>
1877 #else
1878 # include <assert.h>
1879 #endif
1880
1881 #undef $2
1882
1883 /* Override any GCC internal prototype to avoid an error.
1884 Use char because int might match the return type of a GCC
1885 builtin and then its argument prototype would still apply. */
1886 #ifdef __cplusplus
1887 extern "C"
1888 #endif
1889 char $2 ();
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined __stub_$2 || defined __stub___$2
1894 choke me
1895 #endif
1896
1897 int
1898 main ()
1899 {
1900 return $2 ();
1901 ;
1902 return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_link "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext \
1911 conftest$ac_exeext conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917
1918 } # ac_fn_c_check_func
1919 cat >config.log <<_ACEOF
1920 This file contains any messages produced by compilers while
1921 running configure, to aid debugging if configure makes a mistake.
1922
1923 It was created by libXi $as_me 1.4.0, which was
1924 generated by GNU Autoconf 2.66. Invocation command line was
1925
1926 $ $0 $@
1927
1928 _ACEOF
1929 exec 5>>config.log
1930 {
1931 cat <<_ASUNAME
1932 ## --------- ##
1933 ## Platform. ##
1934 ## --------- ##
1935
1936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941
1942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1944
1945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1952
1953 _ASUNAME
1954
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 $as_echo "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1963
1964 } >&5
1965
1966 cat >&5 <<_ACEOF
1967
1968
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1972
1973 _ACEOF
1974
1975
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1986 do
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999 2)
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2012 ;;
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2015 fi
2016 as_fn_append ac_configure_args " '$ac_arg'"
2017 ;;
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2023
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2031 {
2032 echo
2033
2034 $as_echo "## ---------------- ##
2035 ## Cache variables. ##
2036 ## ---------------- ##"
2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
2039 (
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051 *) { eval $ac_var=; unset $ac_var;} ;;
2052 esac ;;
2053 esac
2054 done
2055 (set) 2>&1 |
2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
2058 sed -n \
2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
2062 *)
2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2064 ;;
2065 esac |
2066 sort
2067 )
2068 echo
2069
2070 $as_echo "## ----------------- ##
2071 ## Output variables. ##
2072 ## ----------------- ##"
2073 echo
2074 for ac_var in $ac_subst_vars
2075 do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 esac
2080 $as_echo "$ac_var='\''$ac_val'\''"
2081 done | sort
2082 echo
2083
2084 if test -n "$ac_subst_files"; then
2085 $as_echo "## ------------------- ##
2086 ## File substitutions. ##
2087 ## ------------------- ##"
2088 echo
2089 for ac_var in $ac_subst_files
2090 do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in
2093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094 esac
2095 $as_echo "$ac_var='\''$ac_val'\''"
2096 done | sort
2097 echo
2098 fi
2099
2100 if test -s confdefs.h; then
2101 $as_echo "## ----------- ##
2102 ## confdefs.h. ##
2103 ## ----------- ##"
2104 echo
2105 cat confdefs.h
2106 echo
2107 fi
2108 test "$ac_signal" != 0 &&
2109 $as_echo "$as_me: caught signal $ac_signal"
2110 $as_echo "$as_me: exit $exit_status"
2111 } >&5
2112 rm -f core *.core core.conftest.* &&
2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2114 exit $exit_status
2115 ' 0
2116 for ac_signal in 1 2 13 15; do
2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2118 done
2119 ac_signal=0
2120
2121 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2122 rm -f -r conftest* confdefs.h
2123
2124 $as_echo "/* confdefs.h */" > confdefs.h
2125
2126 # Predefined preprocessor variables.
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_NAME "$PACKAGE_NAME"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_STRING "$PACKAGE_STRING"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_URL "$PACKAGE_URL"
2150 _ACEOF
2151
2152
2153 # Let the site file select an alternate cache file if it wants to.
2154 # Prefer an explicitly selected file to automatically selected ones.
2155 ac_site_file1=NONE
2156 ac_site_file2=NONE
2157 if test -n "$CONFIG_SITE"; then
2158 # We do not want a PATH search for config.site.
2159 case $CONFIG_SITE in #((
2160 -*) ac_site_file1=./$CONFIG_SITE;;
2161 */*) ac_site_file1=$CONFIG_SITE;;
2162 *) ac_site_file1=./$CONFIG_SITE;;
2163 esac
2164 elif test "x$prefix" != xNONE; then
2165 ac_site_file1=$prefix/share/config.site
2166 ac_site_file2=$prefix/etc/config.site
2167 else
2168 ac_site_file1=$ac_default_prefix/share/config.site
2169 ac_site_file2=$ac_default_prefix/etc/config.site
2170 fi
2171 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2172 do
2173 test "x$ac_site_file" = xNONE && continue
2174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2176 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2177 sed 's/^/| /' "$ac_site_file" >&5
2178 . "$ac_site_file" \
2179 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 as_fn_error $? "failed to load site script $ac_site_file
2182 See \`config.log' for more details" "$LINENO" 5; }
2183 fi
2184 done
2185
2186 if test -r "$cache_file"; then
2187 # Some versions of bash will fail to source /dev/null (special files
2188 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2189 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2191 $as_echo "$as_me: loading cache $cache_file" >&6;}
2192 case $cache_file in
2193 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2194 *) . "./$cache_file";;
2195 esac
2196 fi
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2199 $as_echo "$as_me: creating cache $cache_file" >&6;}
2200 >$cache_file
2201 fi
2202
2203 # Check that the precious variables saved in the cache have kept the same
2204 # value.
2205 ac_cache_corrupted=false
2206 for ac_var in $ac_precious_vars; do
2207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2208 eval ac_new_set=\$ac_env_${ac_var}_set
2209 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2210 eval ac_new_val=\$ac_env_${ac_var}_value
2211 case $ac_old_set,$ac_new_set in
2212 set,)
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2216 ,set)
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2218 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2219 ac_cache_corrupted=: ;;
2220 ,);;
2221 *)
2222 if test "x$ac_old_val" != "x$ac_new_val"; then
2223 # differences in whitespace do not lead to failure.
2224 ac_old_val_w=`echo x $ac_old_val`
2225 ac_new_val_w=`echo x $ac_new_val`
2226 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2228 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2229 ac_cache_corrupted=:
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2232 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2233 eval $ac_var=\$ac_old_val
2234 fi
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2236 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2238 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2239 fi;;
2240 esac
2241 # Pass precious variables to config.status.
2242 if test "$ac_new_set" = set; then
2243 case $ac_new_val in
2244 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 *) ac_arg=$ac_var=$ac_new_val ;;
2246 esac
2247 case " $ac_configure_args " in
2248 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2249 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2250 esac
2251 fi
2252 done
2253 if $ac_cache_corrupted; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2257 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2258 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2259 fi
2260 ## -------------------- ##
2261 ## Main body of script. ##
2262 ## -------------------- ##
2263
2264 ac_ext=c
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269
2270
2271 am__api_version='1.11'
2272
2273 ac_aux_dir=
2274 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275 if test -f "$ac_dir/install-sh"; then
2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install-sh -c"
2278 break
2279 elif test -f "$ac_dir/install.sh"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install.sh -c"
2282 break
2283 elif test -f "$ac_dir/shtool"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/shtool install -c"
2286 break
2287 fi
2288 done
2289 if test -z "$ac_aux_dir"; then
2290 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2291 fi
2292
2293 # These three variables are undocumented and unsupported,
2294 # and are intended to be withdrawn in a future Autoconf release.
2295 # They can cause serious problems if a builder's source tree is in a directory
2296 # whose full name contains unusual characters.
2297 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2298 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2299 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2300
2301
2302 # Find a good install program. We prefer a C program (faster),
2303 # so one script is as good as another. But avoid the broken or
2304 # incompatible versions:
2305 # SysV /etc/install, /usr/sbin/install
2306 # SunOS /usr/etc/install
2307 # IRIX /sbin/install
2308 # AIX /bin/install
2309 # AmigaOS /C/install, which installs bootblocks on floppy discs
2310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2313 # OS/2's system install, which has a completely different semantic
2314 # ./install, which can be erroneously created by make from ./install.sh.
2315 # Reject install programs that cannot install multiple files.
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2317 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2318 if test -z "$INSTALL"; then
2319 if test "${ac_cv_path_install+set}" = set; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 # Account for people who put trailing slashes in PATH elements.
2328 case $as_dir/ in #((
2329 ./ | .// | /[cC]/* | \
2330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2331 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2332 /usr/ucb/* ) ;;
2333 *)
2334 # OSF1 and SCO ODT 3.0 have their own names for install.
2335 # Don't use installbsd from OSF since it installs stuff as root
2336 # by default.
2337 for ac_prog in ginstall scoinst install; do
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2340 if test $ac_prog = install &&
2341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342 # AIX install. It has an incompatible calling convention.
2343 :
2344 elif test $ac_prog = install &&
2345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # program-specific install script used by HP pwplus--don't use.
2347 :
2348 else
2349 rm -rf conftest.one conftest.two conftest.dir
2350 echo one > conftest.one
2351 echo two > conftest.two
2352 mkdir conftest.dir
2353 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2354 test -s conftest.one && test -s conftest.two &&
2355 test -s conftest.dir/conftest.one &&
2356 test -s conftest.dir/conftest.two
2357 then
2358 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2359 break 3
2360 fi
2361 fi
2362 fi
2363 done
2364 done
2365 ;;
2366 esac
2367
2368 done
2369 IFS=$as_save_IFS
2370
2371 rm -rf conftest.one conftest.two conftest.dir
2372
2373 fi
2374 if test "${ac_cv_path_install+set}" = set; then
2375 INSTALL=$ac_cv_path_install
2376 else
2377 # As a last resort, use the slow shell script. Don't cache a
2378 # value for INSTALL within a source directory, because that will
2379 # break other packages using the cache if that directory is
2380 # removed, or if the value is a relative name.
2381 INSTALL=$ac_install_sh
2382 fi
2383 fi
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2385 $as_echo "$INSTALL" >&6; }
2386
2387 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2388 # It thinks the first close brace ends the variable substitution.
2389 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2390
2391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2392
2393 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2394
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2396 $as_echo_n "checking whether build environment is sane... " >&6; }
2397 # Just in case
2398 sleep 1
2399 echo timestamp > conftest.file
2400 # Reject unsafe characters in $srcdir or the absolute working directory
2401 # name. Accept space and tab only in the latter.
2402 am_lf='
2403 '
2404 case `pwd` in
2405 *[\\\"\#\$\&\'\`$am_lf]*)
2406 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2407 esac
2408 case $srcdir in
2409 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2410 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2411 esac
2412
2413 # Do `set' in a subshell so we don't clobber the current shell's
2414 # arguments. Must try -L first in case configure is actually a
2415 # symlink; some systems play weird games with the mod time of symlinks
2416 # (eg FreeBSD returns the mod time of the symlink's containing
2417 # directory).
2418 if (
2419 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2420 if test "$*" = "X"; then
2421 # -L didn't work.
2422 set X `ls -t "$srcdir/configure" conftest.file`
2423 fi
2424 rm -f conftest.file
2425 if test "$*" != "X $srcdir/configure conftest.file" \
2426 && test "$*" != "X conftest.file $srcdir/configure"; then
2427
2428 # If neither matched, then we have a broken ls. This can happen
2429 # if, for instance, CONFIG_SHELL is bash and it inherits a
2430 # broken ls alias from the environment. This has actually
2431 # happened. Such a system could not be considered "sane".
2432 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2433 alias in your environment" "$LINENO" 5
2434 fi
2435
2436 test "$2" = conftest.file
2437 )
2438 then
2439 # Ok.
2440 :
2441 else
2442 as_fn_error $? "newly created file is older than distributed files!
2443 Check your system clock" "$LINENO" 5
2444 fi
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2446 $as_echo "yes" >&6; }
2447 test "$program_prefix" != NONE &&
2448 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2449 # Use a double $ so make ignores it.
2450 test "$program_suffix" != NONE &&
2451 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2452 # Double any \ or $.
2453 # By default was `s,x,x', remove it if useless.
2454 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2455 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2456
2457 # expand $ac_aux_dir to an absolute path
2458 am_aux_dir=`cd $ac_aux_dir && pwd`
2459
2460 if test x"${MISSING+set}" != xset; then
2461 case $am_aux_dir in
2462 *\ * | *\ *)
2463 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2464 *)
2465 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2466 esac
2467 fi
2468 # Use eval to expand $SHELL
2469 if eval "$MISSING --run true"; then
2470 am_missing_run="$MISSING --run "
2471 else
2472 am_missing_run=
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2474 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2475 fi
2476
2477 if test x"${install_sh}" != xset; then
2478 case $am_aux_dir in
2479 *\ * | *\ *)
2480 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2481 *)
2482 install_sh="\${SHELL} $am_aux_dir/install-sh"
2483 esac
2484 fi
2485
2486 # Installed binaries are usually stripped using `strip' when the user
2487 # run `make install-strip'. However `strip' might not be the right
2488 # tool to use in cross-compilation environments, therefore Automake
2489 # will honor the `STRIP' environment variable to overrule this program.
2490 if test "$cross_compiling" != no; then
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}strip; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_prog_STRIP+set}" = set; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test -n "$STRIP"; then
2500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2512 fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 STRIP=$ac_cv_prog_STRIP
2520 if test -n "$STRIP"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2522 $as_echo "$STRIP" >&6; }
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528
2529 fi
2530 if test -z "$ac_cv_prog_STRIP"; then
2531 ac_ct_STRIP=$STRIP
2532 # Extract the first word of "strip", so it can be a program name with args.
2533 set dummy strip; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test -n "$ac_ct_STRIP"; then
2540 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_ac_ct_STRIP="strip"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2560 if test -n "$ac_ct_STRIP"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2562 $as_echo "$ac_ct_STRIP" >&6; }
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2566 fi
2567
2568 if test "x$ac_ct_STRIP" = x; then
2569 STRIP=":"
2570 else
2571 case $cross_compiling:$ac_tool_warned in
2572 yes:)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2575 ac_tool_warned=yes ;;
2576 esac
2577 STRIP=$ac_ct_STRIP
2578 fi
2579 else
2580 STRIP="$ac_cv_prog_STRIP"
2581 fi
2582
2583 fi
2584 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2587 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2588 if test -z "$MKDIR_P"; then
2589 if test "${ac_cv_path_mkdir+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in mkdir gmkdir; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2600 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2601 'mkdir (GNU coreutils) '* | \
2602 'mkdir (coreutils) '* | \
2603 'mkdir (fileutils) '4.1*)
2604 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2605 break 3;;
2606 esac
2607 done
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613
2614 test -d ./--version && rmdir ./--version
2615 if test "${ac_cv_path_mkdir+set}" = set; then
2616 MKDIR_P="$ac_cv_path_mkdir -p"
2617 else
2618 # As a last resort, use the slow shell script. Don't cache a
2619 # value for MKDIR_P within a source directory, because that will
2620 # break other packages using the cache if that directory is
2621 # removed, or if the value is a relative name.
2622 MKDIR_P="$ac_install_sh -d"
2623 fi
2624 fi
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2626 $as_echo "$MKDIR_P" >&6; }
2627
2628 mkdir_p="$MKDIR_P"
2629 case $mkdir_p in
2630 [\\/$]* | ?:[\\/]*) ;;
2631 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2632 esac
2633
2634 for ac_prog in gawk mawk nawk awk
2635 do
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_AWK+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672
2673 test -n "$AWK" && break
2674 done
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2677 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2678 set x ${MAKE-make}
2679 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 cat >conftest.make <<\_ACEOF
2684 SHELL = /bin/sh
2685 all:
2686 @echo '@@@%%%=$(MAKE)=@@@%%%'
2687 _ACEOF
2688 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2689 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2690 *@@@%%%=?*=@@@%%%*)
2691 eval ac_cv_prog_make_${ac_make}_set=yes;;
2692 *)
2693 eval ac_cv_prog_make_${ac_make}_set=no;;
2694 esac
2695 rm -f conftest.make
2696 fi
2697 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2699 $as_echo "yes" >&6; }
2700 SET_MAKE=
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 SET_MAKE="MAKE=${MAKE-make}"
2705 fi
2706
2707 rm -rf .tst 2>/dev/null
2708 mkdir .tst 2>/dev/null
2709 if test -d .tst; then
2710 am__leading_dot=.
2711 else
2712 am__leading_dot=_
2713 fi
2714 rmdir .tst 2>/dev/null
2715
2716 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2717 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2718 # is not polluted with repeated "-I."
2719 am__isrc=' -I$(srcdir)'
2720 # test to see if srcdir already configured
2721 if test -f $srcdir/config.status; then
2722 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2723 fi
2724 fi
2725
2726 # test whether we have cygpath
2727 if test -z "$CYGPATH_W"; then
2728 if (cygpath --version) >/dev/null 2>/dev/null; then
2729 CYGPATH_W='cygpath -w'
2730 else
2731 CYGPATH_W=echo
2732 fi
2733 fi
2734
2735
2736 # Define the identity of the package.
2737 PACKAGE='libXi'
2738 VERSION='1.4.0'
2739
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE "$PACKAGE"
2743 _ACEOF
2744
2745
2746 cat >>confdefs.h <<_ACEOF
2747 #define VERSION "$VERSION"
2748 _ACEOF
2749
2750 # Some tools Automake needs.
2751
2752 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2753
2754
2755 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2756
2757
2758 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2759
2760
2761 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2762
2763
2764 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2765
2766 # We need awk for the "check" target. The system "awk" is bad on
2767 # some platforms.
2768 # Always define AMTAR for backward compatibility.
2769
2770 AMTAR=${AMTAR-"${am_missing_run}tar"}
2771
2772 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2773
2774
2775
2776
2777
2778
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2780 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2781 # Check whether --enable-maintainer-mode was given.
2782 if test "${enable_maintainer_mode+set}" = set; then :
2783 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2784 else
2785 USE_MAINTAINER_MODE=no
2786 fi
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2789 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2790 if test $USE_MAINTAINER_MODE = yes; then
2791 MAINTAINER_MODE_TRUE=
2792 MAINTAINER_MODE_FALSE='#'
2793 else
2794 MAINTAINER_MODE_TRUE='#'
2795 MAINTAINER_MODE_FALSE=
2796 fi
2797
2798 MAINT=$MAINTAINER_MODE_TRUE
2799
2800
2801
2802 # Require xorg-macros minimum of 1.10 for DocBook XML documentation
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814 DEPDIR="${am__leading_dot}deps"
2815
2816 ac_config_commands="$ac_config_commands depfiles"
2817
2818
2819 am_make=${MAKE-make}
2820 cat > confinc << 'END'
2821 am__doit:
2822 @echo this is the am__doit target
2823 .PHONY: am__doit
2824 END
2825 # If we don't find an include directive, just comment out the code.
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2827 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2828 am__include="#"
2829 am__quote=
2830 _am_result=none
2831 # First try GNU make style include.
2832 echo "include confinc" > confmf
2833 # Ignore all kinds of additional output from `make'.
2834 case `$am_make -s -f confmf 2> /dev/null` in #(
2835 *the\ am__doit\ target*)
2836 am__include=include
2837 am__quote=
2838 _am_result=GNU
2839 ;;
2840 esac
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843 echo '.include "confinc"' > confmf
2844 case `$am_make -s -f confmf 2> /dev/null` in #(
2845 *the\ am__doit\ target*)
2846 am__include=.include
2847 am__quote="\""
2848 _am_result=BSD
2849 ;;
2850 esac
2851 fi
2852
2853
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2855 $as_echo "$_am_result" >&6; }
2856 rm -f confinc confmf
2857
2858 # Check whether --enable-dependency-tracking was given.
2859 if test "${enable_dependency_tracking+set}" = set; then :
2860 enableval=$enable_dependency_tracking;
2861 fi
2862
2863 if test "x$enable_dependency_tracking" != xno; then
2864 am_depcomp="$ac_aux_dir/depcomp"
2865 AMDEPBACKSLASH='\'
2866 fi
2867 if test "x$enable_dependency_tracking" != xno; then
2868 AMDEP_TRUE=
2869 AMDEP_FALSE='#'
2870 else
2871 AMDEP_TRUE='#'
2872 AMDEP_FALSE=
2873 fi
2874
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$ac_cv_prog_CC"; then
2921 ac_ct_CC=$CC
2922 # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CC="gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952 $as_echo "$ac_ct_CC" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958 if test "x$ac_ct_CC" = x; then
2959 CC=""
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2966 esac
2967 CC=$ac_ct_CC
2968 fi
2969 else
2970 CC="$ac_cv_prog_CC"
2971 fi
2972
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}cc; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if test "${ac_cv_prog_CC+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CC="${ac_tool_prefix}cc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996 done
2997 done
2998 IFS=$as_save_IFS
2999
3000 fi
3001 fi
3002 CC=$ac_cv_prog_CC
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3009 fi
3010
3011
3012 fi
3013 fi
3014 if test -z "$CC"; then
3015 # Extract the first word of "cc", so it can be a program name with args.
3016 set dummy cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 ac_prog_rejected=no
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3034 ac_prog_rejected=yes
3035 continue
3036 fi
3037 ac_cv_prog_CC="cc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 if test $ac_prog_rejected = yes; then
3046 # We found a bogon in the path, so make sure we never use it.
3047 set dummy $ac_cv_prog_CC
3048 shift
3049 if test $# != 0; then
3050 # We chose a different compiler from the bogus one.
3051 # However, it has the same basename, so the bogon will be chosen
3052 # first if we set CC to just the basename; use the full file name.
3053 shift
3054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3055 fi
3056 fi
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 fi
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 for ac_prog in cl.exe
3073 do
3074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 test -n "$CC" && break
3112 done
3113 fi
3114 if test -z "$CC"; then
3115 ac_ct_CC=$CC
3116 for ac_prog in cl.exe
3117 do
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_ac_ct_CC="$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148 $as_echo "$ac_ct_CC" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 test -n "$ac_ct_CC" && break
3156 done
3157
3158 if test "x$ac_ct_CC" = x; then
3159 CC=""
3160 else
3161 case $cross_compiling:$ac_tool_warned in
3162 yes:)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3166 esac
3167 CC=$ac_ct_CC
3168 fi
3169 fi
3170
3171 fi
3172
3173
3174 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error $? "no acceptable C compiler found in \$PATH
3177 See \`config.log' for more details" "$LINENO" 5; }
3178
3179 # Provide some information about the compiler.
3180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3181 set X $ac_compile
3182 ac_compiler=$2
3183 for ac_option in --version -v -V -qversion; do
3184 { { ac_try="$ac_compiler $ac_option >&5"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3192 ac_status=$?
3193 if test -s conftest.err; then
3194 sed '10a\
3195 ... rest of stderr output deleted ...
3196 10q' conftest.err >conftest.er1
3197 cat conftest.er1 >&5
3198 fi
3199 rm -f conftest.er1 conftest.err
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }
3202 done
3203
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206
3207 int
3208 main ()
3209 {
3210
3211 ;
3212 return 0;
3213 }
3214 _ACEOF
3215 ac_clean_files_save=$ac_clean_files
3216 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3217 # Try to create an executable without -o first, disregard a.out.
3218 # It will help us diagnose broken compilers, and finding out an intuition
3219 # of exeext.
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3221 $as_echo_n "checking whether the C compiler works... " >&6; }
3222 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3223
3224 # The possible output files:
3225 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3226
3227 ac_rmfiles=
3228 for ac_file in $ac_files
3229 do
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3233 esac
3234 done
3235 rm -f $ac_rmfiles
3236
3237 if { { ac_try="$ac_link_default"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_link_default") 2>&5
3245 ac_status=$?
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }; then :
3248 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3249 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3250 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3251 # so that the user can short-circuit this test for compilers unknown to
3252 # Autoconf.
3253 for ac_file in $ac_files ''
3254 do
3255 test -f "$ac_file" || continue
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3258 ;;
3259 [ab].out )
3260 # We found the default executable, but exeext='' is most
3261 # certainly right.
3262 break;;
3263 *.* )
3264 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3265 then :; else
3266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267 fi
3268 # We set ac_cv_exeext here because the later test for it is not
3269 # safe: cross compilers may not add the suffix if given an `-o'
3270 # argument, so we may need to know it at that point already.
3271 # Even if this section looks crufty: it has the advantage of
3272 # actually working.
3273 break;;
3274 * )
3275 break;;
3276 esac
3277 done
3278 test "$ac_cv_exeext" = no && ac_cv_exeext=
3279
3280 else
3281 ac_file=''
3282 fi
3283 if test -z "$ac_file"; then :
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error 77 "C compiler cannot create executables
3292 See \`config.log' for more details" "$LINENO" 5; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3300 $as_echo "$ac_file" >&6; }
3301 ac_exeext=$ac_cv_exeext
3302
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3304 ac_clean_files=$ac_clean_files_save
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306 $as_echo_n "checking for suffix of executables... " >&6; }
3307 if { { ac_try="$ac_link"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_link") 2>&5
3315 ac_status=$?
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3320 # work properly (i.e., refer to `conftest.exe'), while it won't with
3321 # `rm'.
3322 for ac_file in conftest.exe conftest conftest.*; do
3323 test -f "$ac_file" || continue
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 break;;
3328 * ) break;;
3329 esac
3330 done
3331 else
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3335 See \`config.log' for more details" "$LINENO" 5; }
3336 fi
3337 rm -f conftest conftest$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339 $as_echo "$ac_cv_exeext" >&6; }
3340
3341 rm -f conftest.$ac_ext
3342 EXEEXT=$ac_cv_exeext
3343 ac_exeext=$EXEEXT
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3346 #include <stdio.h>
3347 int
3348 main ()
3349 {
3350 FILE *f = fopen ("conftest.out", "w");
3351 return ferror (f) || fclose (f) != 0;
3352
3353 ;
3354 return 0;
3355 }
3356 _ACEOF
3357 ac_clean_files="$ac_clean_files conftest.out"
3358 # Check that the compiler produces executables we can run. If not, either
3359 # the compiler is broken, or we cross compile.
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3361 $as_echo_n "checking whether we are cross compiling... " >&6; }
3362 if test "$cross_compiling" != yes; then
3363 { { ac_try="$ac_link"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_link") 2>&5
3371 ac_status=$?
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3374 if { ac_try='./conftest$ac_cv_exeext'
3375 { { case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_try") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; }; then
3385 cross_compiling=no
3386 else
3387 if test "$cross_compiling" = maybe; then
3388 cross_compiling=yes
3389 else
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details" "$LINENO" 5; }
3395 fi
3396 fi
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3399 $as_echo "$cross_compiling" >&6; }
3400
3401 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3402 ac_clean_files=$ac_clean_files_save
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3404 $as_echo_n "checking for suffix of object files... " >&6; }
3405 if test "${ac_cv_objext+set}" = set; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410
3411 int
3412 main ()
3413 {
3414
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.o conftest.obj
3420 if { { ac_try="$ac_compile"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_compile") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 for ac_file in conftest.o conftest.obj conftest.*; do
3432 test -f "$ac_file" || continue;
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3436 break;;
3437 esac
3438 done
3439 else
3440 $as_echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "cannot compute suffix of object files: cannot compile
3446 See \`config.log' for more details" "$LINENO" 5; }
3447 fi
3448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3451 $as_echo "$ac_cv_objext" >&6; }
3452 OBJEXT=$ac_cv_objext
3453 ac_objext=$OBJEXT
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3455 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3456 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main ()
3464 {
3465 #ifndef __GNUC__
3466 choke me
3467 #endif
3468
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"; then :
3474 ac_compiler_gnu=yes
3475 else
3476 ac_compiler_gnu=no
3477 fi
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3480
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3483 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3484 if test $ac_compiler_gnu = yes; then
3485 GCC=yes
3486 else
3487 GCC=
3488 fi
3489 ac_test_CFLAGS=${CFLAGS+set}
3490 ac_save_CFLAGS=$CFLAGS
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3492 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3493 if test "${ac_cv_prog_cc_g+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 ac_save_c_werror_flag=$ac_c_werror_flag
3497 ac_c_werror_flag=yes
3498 ac_cv_prog_cc_g=no
3499 CFLAGS="-g"
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3502
3503 int
3504 main ()
3505 {
3506
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512 ac_cv_prog_cc_g=yes
3513 else
3514 CFLAGS=""
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517
3518 int
3519 main ()
3520 {
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527
3528 else
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3530 CFLAGS="-g"
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533
3534 int
3535 main ()
3536 {
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 if ac_fn_c_try_compile "$LINENO"; then :
3543 ac_cv_prog_cc_g=yes
3544 fi
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3553 $as_echo "$ac_cv_prog_cc_g" >&6; }
3554 if test "$ac_test_CFLAGS" = set; then
3555 CFLAGS=$ac_save_CFLAGS
3556 elif test $ac_cv_prog_cc_g = yes; then
3557 if test "$GCC" = yes; then
3558 CFLAGS="-g -O2"
3559 else
3560 CFLAGS="-g"
3561 fi
3562 else
3563 if test "$GCC" = yes; then
3564 CFLAGS="-O2"
3565 else
3566 CFLAGS=
3567 fi
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3571 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 ac_cv_prog_cc_c89=no
3575 ac_save_CC=$CC
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #include <stdarg.h>
3579 #include <stdio.h>
3580 #include <sys/types.h>
3581 #include <sys/stat.h>
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3586 char **p;
3587 int i;
3588 {
3589 return p[i];
3590 }
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3592 {
3593 char *s;
3594 va_list v;
3595 va_start (v,p);
3596 s = g (p, va_arg (v,int));
3597 va_end (v);
3598 return s;
3599 }
3600
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611 inside strings and character constants. */
3612 #define FOO(x) 'x'
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619 int argc;
3620 char **argv;
3621 int
3622 main ()
3623 {
3624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631 do
3632 CC="$ac_save_CC $ac_arg"
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_c89=$ac_arg
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext
3637 test "x$ac_cv_prog_cc_c89" != "xno" && break
3638 done
3639 rm -f conftest.$ac_ext
3640 CC=$ac_save_CC
3641
3642 fi
3643 # AC_CACHE_VAL
3644 case "x$ac_cv_prog_cc_c89" in
3645 x)
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647 $as_echo "none needed" >&6; } ;;
3648 xno)
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650 $as_echo "unsupported" >&6; } ;;
3651 *)
3652 CC="$CC $ac_cv_prog_cc_c89"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655 esac
3656 if test "x$ac_cv_prog_cc_c89" != xno; then :
3657
3658 fi
3659
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666 depcc="$CC" am_compiler_list=
3667
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3669 $as_echo_n "checking dependency style of $depcc... " >&6; }
3670 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3674 # We make a subdir and do the tests there. Otherwise we can end up
3675 # making bogus files that we don't know about and never remove. For
3676 # instance it was reported that on HP-UX the gcc test will end up
3677 # making a dummy file named `D' -- because `-MD' means `put the output
3678 # in D'.
3679 mkdir conftest.dir
3680 # Copy depcomp to subdir because otherwise we won't find it if we're
3681 # using a relative directory.
3682 cp "$am_depcomp" conftest.dir
3683 cd conftest.dir
3684 # We will build objects and dependencies in a subdirectory because
3685 # it helps to detect inapplicable dependency modes. For instance
3686 # both Tru64's cc and ICC support -MD to output dependencies as a
3687 # side effect of compilation, but ICC will put the dependencies in
3688 # the current directory while Tru64 will put them in the object
3689 # directory.
3690 mkdir sub
3691
3692 am_cv_CC_dependencies_compiler_type=none
3693 if test "$am_compiler_list" = ""; then
3694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3695 fi
3696 am__universal=false
3697 case " $depcc " in #(
3698 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3699 esac
3700
3701 for depmode in $am_compiler_list; do
3702 # Setup a source with many dependencies, because some compilers
3703 # like to wrap large dependency lists on column 80 (with \), and
3704 # we should not choose a depcomp mode which is confused by this.
3705 #
3706 # We need to recreate these files for each test, as the compiler may
3707 # overwrite some of them when testing with obscure command lines.
3708 # This happens at least with the AIX C compiler.
3709 : > sub/conftest.c
3710 for i in 1 2 3 4 5 6; do
3711 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3712 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3713 # Solaris 8's {/usr,}/bin/sh.
3714 touch sub/conftst$i.h
3715 done
3716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3717
3718 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3719 # mode. It turns out that the SunPro C++ compiler does not properly
3720 # handle `-M -o', and we need to detect this. Also, some Intel
3721 # versions had trouble with output in subdirs
3722 am__obj=sub/conftest.${OBJEXT-o}
3723 am__minus_obj="-o $am__obj"
3724 case $depmode in
3725 gcc)
3726 # This depmode causes a compiler race in universal mode.
3727 test "$am__universal" = false || continue
3728 ;;
3729 nosideeffect)
3730 # after this tag, mechanisms are not by side-effect, so they'll
3731 # only be used when explicitly requested
3732 if test "x$enable_dependency_tracking" = xyes; then
3733 continue
3734 else
3735 break
3736 fi
3737 ;;
3738 msvisualcpp | msvcmsys)
3739 # This compiler won't grok `-c -o', but also, the minuso test has
3740 # not run yet. These depmodes are late enough in the game, and
3741 # so weak that their functioning should not be impacted.
3742 am__obj=conftest.${OBJEXT-o}
3743 am__minus_obj=
3744 ;;
3745 none) break ;;
3746 esac
3747 if depmode=$depmode \
3748 source=sub/conftest.c object=$am__obj \
3749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3750 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3751 >/dev/null 2>conftest.err &&
3752 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3754 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3756 # icc doesn't choke on unknown options, it will just issue warnings
3757 # or remarks (even with -Werror). So we grep stderr for any message
3758 # that says an option was ignored or not supported.
3759 # When given -MP, icc 7.0 and 7.1 complain thusly:
3760 # icc: Command line warning: ignoring option '-M'; no argument required
3761 # The diagnosis changed in icc 8.0:
3762 # icc: Command line remark: option '-MP' not supported
3763 if (grep 'ignoring option' conftest.err ||
3764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3765 am_cv_CC_dependencies_compiler_type=$depmode
3766 break
3767 fi
3768 fi
3769 done
3770
3771 cd ..
3772 rm -rf conftest.dir
3773 else
3774 am_cv_CC_dependencies_compiler_type=none
3775 fi
3776
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3779 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3780 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3781
3782 if
3783 test "x$enable_dependency_tracking" != xno \
3784 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3785 am__fastdepCC_TRUE=
3786 am__fastdepCC_FALSE='#'
3787 else
3788 am__fastdepCC_TRUE='#'
3789 am__fastdepCC_FALSE=
3790 fi
3791
3792
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3794 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3795 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 ac_cv_prog_cc_c99=no
3799 ac_save_CC=$CC
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802 #include <stdarg.h>
3803 #include <stdbool.h>
3804 #include <stdlib.h>
3805 #include <wchar.h>
3806 #include <stdio.h>
3807
3808 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3809 #define debug(...) fprintf (stderr, __VA_ARGS__)
3810 #define showlist(...) puts (#__VA_ARGS__)
3811 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3812 static void
3813 test_varargs_macros (void)
3814 {
3815 int x = 1234;
3816 int y = 5678;
3817 debug ("Flag");
3818 debug ("X = %d\n", x);
3819 showlist (The first, second, and third items.);
3820 report (x>y, "x is %d but y is %d", x, y);
3821 }
3822
3823 // Check long long types.
3824 #define BIG64 18446744073709551615ull
3825 #define BIG32 4294967295ul
3826 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3827 #if !BIG_OK
3828 your preprocessor is broken;
3829 #endif
3830 #if BIG_OK
3831 #else
3832 your preprocessor is broken;
3833 #endif
3834 static long long int bignum = -9223372036854775807LL;
3835 static unsigned long long int ubignum = BIG64;
3836
3837 struct incomplete_array
3838 {
3839 int datasize;
3840 double data[];
3841 };
3842
3843 struct named_init {
3844 int number;
3845 const wchar_t *name;
3846 double average;
3847 };
3848
3849 typedef const char *ccp;
3850
3851 static inline int
3852 test_restrict (ccp restrict text)
3853 {
3854 // See if C++-style comments work.
3855 // Iterate through items via the restricted pointer.
3856 // Also check for declarations in for loops.
3857 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3858 continue;
3859 return 0;
3860 }
3861
3862 // Check varargs and va_copy.
3863 static void
3864 test_varargs (const char *format, ...)
3865 {
3866 va_list args;
3867 va_start (args, format);
3868 va_list args_copy;
3869 va_copy (args_copy, args);
3870
3871 const char *str;
3872 int number;
3873 float fnumber;
3874
3875 while (*format)
3876 {
3877 switch (*format++)
3878 {
3879 case 's': // string
3880 str = va_arg (args_copy, const char *);
3881 break;
3882 case 'd': // int
3883 number = va_arg (args_copy, int);
3884 break;
3885 case 'f': // float
3886 fnumber = va_arg (args_copy, double);
3887 break;
3888 default:
3889 break;
3890 }
3891 }
3892 va_end (args_copy);
3893 va_end (args);
3894 }
3895
3896 int
3897 main ()
3898 {
3899
3900 // Check bool.
3901 _Bool success = false;
3902
3903 // Check restrict.
3904 if (test_restrict ("String literal") == 0)
3905 success = true;
3906 char *restrict newvar = "Another string";
3907
3908 // Check varargs.
3909 test_varargs ("s, d' f .", "string", 65, 34.234);
3910 test_varargs_macros ();
3911
3912 // Check flexible array members.
3913 struct incomplete_array *ia =
3914 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3915 ia->datasize = 10;
3916 for (int i = 0; i < ia->datasize; ++i)
3917 ia->data[i] = i * 1.234;
3918
3919 // Check named initializers.
3920 struct named_init ni = {
3921 .number = 34,
3922 .name = L"Test wide string",
3923 .average = 543.34343,
3924 };
3925
3926 ni.number = 58;
3927
3928 int dynamic_array[ni.number];
3929 dynamic_array[ni.number - 1] = 543;
3930
3931 // work around unused variable warnings
3932 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3933 || dynamic_array[ni.number - 1] != 543);
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3940 do
3941 CC="$ac_save_CC $ac_arg"
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943 ac_cv_prog_cc_c99=$ac_arg
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext
3946 test "x$ac_cv_prog_cc_c99" != "xno" && break
3947 done
3948 rm -f conftest.$ac_ext
3949 CC=$ac_save_CC
3950
3951 fi
3952 # AC_CACHE_VAL
3953 case "x$ac_cv_prog_cc_c99" in
3954 x)
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3956 $as_echo "none needed" >&6; } ;;
3957 xno)
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3959 $as_echo "unsupported" >&6; } ;;
3960 *)
3961 CC="$CC $ac_cv_prog_cc_c99"
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3963 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3964 esac
3965 if test "x$ac_cv_prog_cc_c99" != xno; then :
3966
3967 fi
3968
3969
3970
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3977 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3978 # On Suns, sometimes $CPP names a directory.
3979 if test -n "$CPP" && test -d "$CPP"; then
3980 CPP=
3981 fi
3982 if test -z "$CPP"; then
3983 if test "${ac_cv_prog_CPP+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 # Double quotes because CPP needs to be expanded
3987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3988 do
3989 ac_preproc_ok=false
3990 for ac_c_preproc_warn_flag in '' yes
3991 do
3992 # Use a header file that comes with gcc, so configuring glibc
3993 # with a fresh cross-compiler works.
3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995 # <limits.h> exists even on freestanding compilers.
3996 # On the NeXT, cc -E runs the code through the compiler's parser,
3997 # not just through cpp. "Syntax error" is here to catch this case.
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000 #ifdef __STDC__
4001 # include <limits.h>
4002 #else
4003 # include <assert.h>
4004 #endif
4005 Syntax error
4006 _ACEOF
4007 if ac_fn_c_try_cpp "$LINENO"; then :
4008
4009 else
4010 # Broken: fails on valid input.
4011 continue
4012 fi
4013 rm -f conftest.err conftest.$ac_ext
4014
4015 # OK, works on sane cases. Now check whether nonexistent headers
4016 # can be detected and how.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #include <ac_nonexistent.h>
4020 _ACEOF
4021 if ac_fn_c_try_cpp "$LINENO"; then :
4022 # Broken: success on invalid input.
4023 continue
4024 else
4025 # Passes both tests.
4026 ac_preproc_ok=:
4027 break
4028 fi
4029 rm -f conftest.err conftest.$ac_ext
4030
4031 done
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.$ac_ext
4034 if $ac_preproc_ok; then :
4035 break
4036 fi
4037
4038 done
4039 ac_cv_prog_CPP=$CPP
4040
4041 fi
4042 CPP=$ac_cv_prog_CPP
4043 else
4044 ac_cv_prog_CPP=$CPP
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4047 $as_echo "$CPP" >&6; }
4048 ac_preproc_ok=false
4049 for ac_c_preproc_warn_flag in '' yes
4050 do
4051 # Use a header file that comes with gcc, so configuring glibc
4052 # with a fresh cross-compiler works.
4053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4054 # <limits.h> exists even on freestanding compilers.
4055 # On the NeXT, cc -E runs the code through the compiler's parser,
4056 # not just through cpp. "Syntax error" is here to catch this case.
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #ifdef __STDC__
4060 # include <limits.h>
4061 #else
4062 # include <assert.h>
4063 #endif
4064 Syntax error
4065 _ACEOF
4066 if ac_fn_c_try_cpp "$LINENO"; then :
4067
4068 else
4069 # Broken: fails on valid input.
4070 continue
4071 fi
4072 rm -f conftest.err conftest.$ac_ext
4073
4074 # OK, works on sane cases. Now check whether nonexistent headers
4075 # can be detected and how.
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078 #include <ac_nonexistent.h>
4079 _ACEOF
4080 if ac_fn_c_try_cpp "$LINENO"; then :
4081 # Broken: success on invalid input.
4082 continue
4083 else
4084 # Passes both tests.
4085 ac_preproc_ok=:
4086 break
4087 fi
4088 rm -f conftest.err conftest.$ac_ext
4089
4090 done
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then :
4094
4095 else
4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4099 See \`config.log' for more details" "$LINENO" 5; }
4100 fi
4101
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4110 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4111 if test "${ac_cv_path_GREP+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -z "$GREP"; then
4115 ac_path_GREP_found=false
4116 # Loop through the user's path and test for each of PROGNAME-LIST
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119 do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_prog in grep ggrep; do
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4125 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4126 # Check for GNU ac_path_GREP and select it if it is found.
4127 # Check for GNU $ac_path_GREP
4128 case `"$ac_path_GREP" --version 2>&1` in
4129 *GNU*)
4130 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4131 *)
4132 ac_count=0
4133 $as_echo_n 0123456789 >"conftest.in"
4134 while :
4135 do
4136 cat "conftest.in" "conftest.in" >"conftest.tmp"
4137 mv "conftest.tmp" "conftest.in"
4138 cp "conftest.in" "conftest.nl"
4139 $as_echo 'GREP' >> "conftest.nl"
4140 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142 as_fn_arith $ac_count + 1 && ac_count=$as_val
4143 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4144 # Best one so far, save it but keep looking for a better one
4145 ac_cv_path_GREP="$ac_path_GREP"
4146 ac_path_GREP_max=$ac_count
4147 fi
4148 # 10*(2^10) chars as input seems more than enough
4149 test $ac_count -gt 10 && break
4150 done
4151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152 esac
4153
4154 $ac_path_GREP_found && break 3
4155 done
4156 done
4157 done
4158 IFS=$as_save_IFS
4159 if test -z "$ac_cv_path_GREP"; then
4160 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4161 fi
4162 else
4163 ac_cv_path_GREP=$GREP
4164 fi
4165
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4168 $as_echo "$ac_cv_path_GREP" >&6; }
4169 GREP="$ac_cv_path_GREP"
4170
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4173 $as_echo_n "checking for egrep... " >&6; }
4174 if test "${ac_cv_path_EGREP+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4178 then ac_cv_path_EGREP="$GREP -E"
4179 else
4180 if test -z "$EGREP"; then
4181 ac_path_EGREP_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in egrep; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4191 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4192 # Check for GNU ac_path_EGREP and select it if it is found.
4193 # Check for GNU $ac_path_EGREP
4194 case `"$ac_path_EGREP" --version 2>&1` in
4195 *GNU*)
4196 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4197 *)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo 'EGREP' >> "conftest.nl"
4206 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_EGREP="$ac_path_EGREP"
4212 ac_path_EGREP_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220 $ac_path_EGREP_found && break 3
4221 done
4222 done
4223 done
4224 IFS=$as_save_IFS
4225 if test -z "$ac_cv_path_EGREP"; then
4226 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227 fi
4228 else
4229 ac_cv_path_EGREP=$EGREP
4230 fi
4231
4232 fi
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4235 $as_echo "$ac_cv_path_EGREP" >&6; }
4236 EGREP="$ac_cv_path_EGREP"
4237
4238
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4240 $as_echo_n "checking for ANSI C header files... " >&6; }
4241 if test "${ac_cv_header_stdc+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #include <stdlib.h>
4247 #include <stdarg.h>
4248 #include <string.h>
4249 #include <float.h>
4250
4251 int
4252 main ()
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_header_stdc=yes
4261 else
4262 ac_cv_header_stdc=no
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265
4266 if test $ac_cv_header_stdc = yes; then
4267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <string.h>
4271
4272 _ACEOF
4273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4274 $EGREP "memchr" >/dev/null 2>&1; then :
4275
4276 else
4277 ac_cv_header_stdc=no
4278 fi
4279 rm -f conftest*
4280
4281 fi
4282
4283 if test $ac_cv_header_stdc = yes; then
4284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 #include <stdlib.h>
4288
4289 _ACEOF
4290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4291 $EGREP "free" >/dev/null 2>&1; then :
4292
4293 else
4294 ac_cv_header_stdc=no
4295 fi
4296 rm -f conftest*
4297
4298 fi
4299
4300 if test $ac_cv_header_stdc = yes; then
4301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4302 if test "$cross_compiling" = yes; then :
4303 :
4304 else
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <ctype.h>
4308 #include <stdlib.h>
4309 #if ((' ' & 0x0FF) == 0x020)
4310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4312 #else
4313 # define ISLOWER(c) \
4314 (('a' <= (c) && (c) <= 'i') \
4315 || ('j' <= (c) && (c) <= 'r') \
4316 || ('s' <= (c) && (c) <= 'z'))
4317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4318 #endif
4319
4320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4321 int
4322 main ()
4323 {
4324 int i;
4325 for (i = 0; i < 256; i++)
4326 if (XOR (islower (i), ISLOWER (i))
4327 || toupper (i) != TOUPPER (i))
4328 return 2;
4329 return 0;
4330 }
4331 _ACEOF
4332 if ac_fn_c_try_run "$LINENO"; then :
4333
4334 else
4335 ac_cv_header_stdc=no
4336 fi
4337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4338 conftest.$ac_objext conftest.beam conftest.$ac_ext
4339 fi
4340
4341 fi
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4344 $as_echo "$ac_cv_header_stdc" >&6; }
4345 if test $ac_cv_header_stdc = yes; then
4346
4347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4348
4349 fi
4350
4351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4353 inttypes.h stdint.h unistd.h
4354 do :
4355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4357 "
4358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4359 cat >>confdefs.h <<_ACEOF
4360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4361 _ACEOF
4362
4363 fi
4364
4365 done
4366
4367
4368
4369
4370
4371
4372
4373
4374 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4375 if test -n "$ac_tool_prefix"; then
4376 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4377 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 case $PKG_CONFIG in
4384 [\\/]* | ?:[\\/]*)
4385 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4386 ;;
4387 *)
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403 ;;
4404 esac
4405 fi
4406 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4407 if test -n "$PKG_CONFIG"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4409 $as_echo "$PKG_CONFIG" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4414
4415
4416 fi
4417 if test -z "$ac_cv_path_PKG_CONFIG"; then
4418 ac_pt_PKG_CONFIG=$PKG_CONFIG
4419 # Extract the first word of "pkg-config", so it can be a program name with args.
4420 set dummy pkg-config; ac_word=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 case $ac_pt_PKG_CONFIG in
4427 [\\/]* | ?:[\\/]*)
4428 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4429 ;;
4430 *)
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446 ;;
4447 esac
4448 fi
4449 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4450 if test -n "$ac_pt_PKG_CONFIG"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4452 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4453 else
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457
4458 if test "x$ac_pt_PKG_CONFIG" = x; then
4459 PKG_CONFIG=""
4460 else
4461 case $cross_compiling:$ac_tool_warned in
4462 yes:)
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4466 esac
4467 PKG_CONFIG=$ac_pt_PKG_CONFIG
4468 fi
4469 else
4470 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4471 fi
4472
4473 fi
4474 if test -n "$PKG_CONFIG"; then
4475 _pkg_min_version=0.9.0
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4477 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4478 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4480 $as_echo "yes" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484 PKG_CONFIG=""
4485 fi
4486 fi
4487 # Make sure we can run config.sub.
4488 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4489 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4492 $as_echo_n "checking build system type... " >&6; }
4493 if test "${ac_cv_build+set}" = set; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 ac_build_alias=$build_alias
4497 test "x$ac_build_alias" = x &&
4498 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4499 test "x$ac_build_alias" = x &&
4500 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4501 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4503
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4506 $as_echo "$ac_cv_build" >&6; }
4507 case $ac_cv_build in
4508 *-*-*) ;;
4509 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4510 esac
4511 build=$ac_cv_build
4512 ac_save_IFS=$IFS; IFS='-'
4513 set x $ac_cv_build
4514 shift
4515 build_cpu=$1
4516 build_vendor=$2
4517 shift; shift
4518 # Remember, the first character of IFS is used to create $*,
4519 # except with old shells:
4520 build_os=$*
4521 IFS=$ac_save_IFS
4522 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4526 $as_echo_n "checking host system type... " >&6; }
4527 if test "${ac_cv_host+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test "x$host_alias" = x; then
4531 ac_cv_host=$ac_cv_build
4532 else
4533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4535 fi
4536
4537 fi
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4539 $as_echo "$ac_cv_host" >&6; }
4540 case $ac_cv_host in
4541 *-*-*) ;;
4542 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4543 esac
4544 host=$ac_cv_host
4545 ac_save_IFS=$IFS; IFS='-'
4546 set x $ac_cv_host
4547 shift
4548 host_cpu=$1
4549 host_vendor=$2
4550 shift; shift
4551 # Remember, the first character of IFS is used to create $*,
4552 # except with old shells:
4553 host_os=$*
4554 IFS=$ac_save_IFS
4555 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4556
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4559 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4560 if test "${ac_cv_path_SED+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4564 for ac_i in 1 2 3 4 5 6 7; do
4565 ac_script="$ac_script$as_nl$ac_script"
4566 done
4567 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4568 { ac_script=; unset ac_script;}
4569 if test -z "$SED"; then
4570 ac_path_SED_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_prog in sed gsed; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4580 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4581 # Check for GNU ac_path_SED and select it if it is found.
4582 # Check for GNU $ac_path_SED
4583 case `"$ac_path_SED" --version 2>&1` in
4584 *GNU*)
4585 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4586 *)
4587 ac_count=0
4588 $as_echo_n 0123456789 >"conftest.in"
4589 while :
4590 do
4591 cat "conftest.in" "conftest.in" >"conftest.tmp"
4592 mv "conftest.tmp" "conftest.in"
4593 cp "conftest.in" "conftest.nl"
4594 $as_echo '' >> "conftest.nl"
4595 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597 as_fn_arith $ac_count + 1 && ac_count=$as_val
4598 if test $ac_count -gt ${ac_path_SED_max-0}; then
4599 # Best one so far, save it but keep looking for a better one
4600 ac_cv_path_SED="$ac_path_SED"
4601 ac_path_SED_max=$ac_count
4602 fi
4603 # 10*(2^10) chars as input seems more than enough
4604 test $ac_count -gt 10 && break
4605 done
4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607 esac
4608
4609 $ac_path_SED_found && break 3
4610 done
4611 done
4612 done
4613 IFS=$as_save_IFS
4614 if test -z "$ac_cv_path_SED"; then
4615 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4616 fi
4617 else
4618 ac_cv_path_SED=$SED
4619 fi
4620
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4623 $as_echo "$ac_cv_path_SED" >&6; }
4624 SED="$ac_cv_path_SED"
4625 rm -f conftest.sed
4626
4627
4628
4629
4630
4631 if test "x$GCC" = xyes ; then
4632 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4633 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4634 -Wbad-function-cast -Wformat=2"
4635 case `$CC -dumpversion` in
4636 3.4.* | 4.*)
4637 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4638 ;;
4639 esac
4640 else
4641 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4642 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4643 SUNCC="yes"
4644 else
4645 SUNCC="no"
4646 fi
4647
4648 if test "x$SUNCC" = "xyes"; then
4649 CWARNFLAGS="-v"
4650 fi
4651 fi
4652
4653
4654
4655 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4656
4657
4658
4659 # Check whether --enable-strict-compilation was given.
4660 if test "${enable_strict_compilation+set}" = set; then :
4661 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4662 else
4663 STRICT_COMPILE=no
4664 fi
4665
4666 if test "x$STRICT_COMPILE" = "xyes"; then
4667 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4668 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4669 SUNCC="yes"
4670 else
4671 SUNCC="no"
4672 fi
4673
4674 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4675 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4676 INTELCC="yes"
4677 else
4678 INTELCC="no"
4679 fi
4680
4681 if test "x$GCC" = xyes ; then
4682 STRICT_CFLAGS="-pedantic -Werror"
4683 elif test "x$SUNCC" = "xyes"; then
4684 STRICT_CFLAGS="-errwarn"
4685 elif test "x$INTELCC" = "xyes"; then
4686 STRICT_CFLAGS="-Werror"
4687 fi
4688 fi
4689 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4690
4691
4692
4693
4694 cat >>confdefs.h <<_ACEOF
4695 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4696 _ACEOF
4697
4698 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4699 if test "x$PVM" = "x"; then
4700 PVM="0"
4701 fi
4702
4703 cat >>confdefs.h <<_ACEOF
4704 #define PACKAGE_VERSION_MINOR $PVM
4705 _ACEOF
4706
4707 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4708 if test "x$PVP" = "x"; then
4709 PVP="0"
4710 fi
4711
4712 cat >>confdefs.h <<_ACEOF
4713 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4714 _ACEOF
4715
4716
4717
4718 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4719 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4720 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4721 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4722
4723
4724
4725
4726 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4727 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4728 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4729 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4730 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4731
4732
4733
4734
4735
4736
4737 if test x$APP_MAN_SUFFIX = x ; then
4738 APP_MAN_SUFFIX=1
4739 fi
4740 if test x$APP_MAN_DIR = x ; then
4741 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4742 fi
4743
4744 if test x$LIB_MAN_SUFFIX = x ; then
4745 LIB_MAN_SUFFIX=3
4746 fi
4747 if test x$LIB_MAN_DIR = x ; then
4748 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4749 fi
4750
4751 if test x$FILE_MAN_SUFFIX = x ; then
4752 case $host_os in
4753 solaris*) FILE_MAN_SUFFIX=4 ;;
4754 *) FILE_MAN_SUFFIX=5 ;;
4755 esac
4756 fi
4757 if test x$FILE_MAN_DIR = x ; then
4758 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4759 fi
4760
4761 if test x$MISC_MAN_SUFFIX = x ; then
4762 case $host_os in
4763 solaris*) MISC_MAN_SUFFIX=5 ;;
4764 *) MISC_MAN_SUFFIX=7 ;;
4765 esac
4766 fi
4767 if test x$MISC_MAN_DIR = x ; then
4768 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4769 fi
4770
4771 if test x$DRIVER_MAN_SUFFIX = x ; then
4772 case $host_os in
4773 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4774 *) DRIVER_MAN_SUFFIX=4 ;;
4775 esac
4776 fi
4777 if test x$DRIVER_MAN_DIR = x ; then
4778 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4779 fi
4780
4781 if test x$ADMIN_MAN_SUFFIX = x ; then
4782 case $host_os in
4783 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4784 *) ADMIN_MAN_SUFFIX=8 ;;
4785 esac
4786 fi
4787 if test x$ADMIN_MAN_DIR = x ; then
4788 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4789 fi
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805 XORG_MAN_PAGE="X Version 11"
4806
4807 MAN_SUBSTS="\
4808 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4809 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4810 -e 's|__xservername__|Xorg|g' \
4811 -e 's|__xconfigfile__|xorg.conf|g' \
4812 -e 's|__projectroot__|\$(prefix)|g' \
4813 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4814 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4815 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4816 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4817 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4818 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4819
4820
4821
4822 # Check whether --enable-silent-rules was given.
4823 if test "${enable_silent_rules+set}" = set; then :
4824 enableval=$enable_silent_rules;
4825 fi
4826
4827 case $enable_silent_rules in
4828 yes) AM_DEFAULT_VERBOSITY=0;;
4829 no) AM_DEFAULT_VERBOSITY=1;;
4830 *) AM_DEFAULT_VERBOSITY=0;;
4831 esac
4832 AM_BACKSLASH='\'
4833
4834
4835
4836 spec_default=
4837 if test "x$spec_default" = x ; then
4838 spec_default="yes"
4839 fi
4840 # Check whether --enable-specs was given.
4841 if test "${enable_specs+set}" = set; then :
4842 enableval=$enable_specs; build_specs=$enableval
4843 else
4844 build_specs=$spec_default
4845 fi
4846
4847 if test x$build_specs = xyes; then
4848 ENABLE_SPECS_TRUE=
4849 ENABLE_SPECS_FALSE='#'
4850 else
4851 ENABLE_SPECS_TRUE='#'
4852 ENABLE_SPECS_FALSE=
4853 fi
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
4856 $as_echo_n "checking whether to build functional specifications... " >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
4858 $as_echo "$build_specs" >&6; }
4859
4860
4861
4862
4863 # Check whether --with-xmlto was given.
4864 if test "${with_xmlto+set}" = set; then :
4865 withval=$with_xmlto; use_xmlto=$withval
4866 else
4867 use_xmlto=auto
4868 fi
4869
4870
4871 if test "x$use_xmlto" = x"auto"; then
4872 # Extract the first word of "xmlto", so it can be a program name with args.
4873 set dummy xmlto; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_path_XMLTO+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 case $XMLTO in
4880 [\\/]* | ?:[\\/]*)
4881 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
4882 ;;
4883 *)
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895 done
4896 done
4897 IFS=$as_save_IFS
4898
4899 ;;
4900 esac
4901 fi
4902 XMLTO=$ac_cv_path_XMLTO
4903 if test -n "$XMLTO"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
4905 $as_echo "$XMLTO" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910
4911
4912 if test "x$XMLTO" = "x"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
4914 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
4915 have_xmlto=no
4916 else
4917 have_xmlto=yes
4918 fi
4919 elif test "x$use_xmlto" = x"yes" ; then
4920 # Extract the first word of "xmlto", so it can be a program name with args.
4921 set dummy xmlto; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if test "${ac_cv_path_XMLTO+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 case $XMLTO in
4928 [\\/]* | ?:[\\/]*)
4929 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
4930 ;;
4931 *)
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4942 fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947 ;;
4948 esac
4949 fi
4950 XMLTO=$ac_cv_path_XMLTO
4951 if test -n "$XMLTO"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
4953 $as_echo "$XMLTO" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4957 fi
4958
4959
4960 if test "x$XMLTO" = "x"; then
4961 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
4962 fi
4963 have_xmlto=yes
4964 elif test "x$use_xmlto" = x"no" ; then
4965 if test "x$XMLTO" != "x"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
4967 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
4968 fi
4969 have_xmlto=no
4970 else
4971 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
4972 fi
4973
4974 # Test for a minimum version of xmlto, if provided.
4975 if test "$have_xmlto" = yes; then
4976 # scrape the xmlto version
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
4978 $as_echo_n "checking the xmlto version... " >&6; }
4979 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
4981 $as_echo "$xmlto_version" >&6; }
4982 as_arg_v1=$xmlto_version
4983 as_arg_v2=0.0.20
4984 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
4985 case $? in #(
4986 1) :
4987 if test "x$use_xmlto" = xauto; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
4989 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
4990 have_xmlto=no
4991 else
4992 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
4993 fi ;; #(
4994 0) :
4995 ;; #(
4996 2) :
4997 ;; #(
4998 *) :
4999 ;;
5000 esac
5001 fi
5002
5003 # Test for the ability of xmlto to generate a text target
5004 have_xmlto_text=no
5005 cat > conftest.xml << "EOF"
5006 EOF
5007 if test "$have_xmlto" = yes; then :
5008 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
5009 have_xmlto_text=yes
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
5012 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
5013 fi
5014 fi
5015 rm -f conftest.xml
5016 if test $have_xmlto_text = yes; then
5017 HAVE_XMLTO_TEXT_TRUE=
5018 HAVE_XMLTO_TEXT_FALSE='#'
5019 else
5020 HAVE_XMLTO_TEXT_TRUE='#'
5021 HAVE_XMLTO_TEXT_FALSE=
5022 fi
5023
5024 if test "$have_xmlto" = yes; then
5025 HAVE_XMLTO_TRUE=
5026 HAVE_XMLTO_FALSE='#'
5027 else
5028 HAVE_XMLTO_TRUE='#'
5029 HAVE_XMLTO_FALSE=
5030 fi
5031
5032
5033
5034
5035
5036 # Check whether --with-fop was given.
5037 if test "${with_fop+set}" = set; then :
5038 withval=$with_fop; use_fop=$withval
5039 else
5040 use_fop=auto
5041 fi
5042
5043
5044 if test "x$use_fop" = x"auto"; then
5045 # Extract the first word of "fop", so it can be a program name with args.
5046 set dummy fop; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_path_FOP+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 case $FOP in
5053 [\\/]* | ?:[\\/]*)
5054 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5055 ;;
5056 *)
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 ;;
5073 esac
5074 fi
5075 FOP=$ac_cv_path_FOP
5076 if test -n "$FOP"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5078 $as_echo "$FOP" >&6; }
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083
5084
5085 if test "x$FOP" = "x"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
5087 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5088 have_fop=no
5089 else
5090 have_fop=yes
5091 fi
5092 elif test "x$use_fop" = x"yes" ; then
5093 # Extract the first word of "fop", so it can be a program name with args.
5094 set dummy fop; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_path_FOP+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 case $FOP in
5101 [\\/]* | ?:[\\/]*)
5102 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5103 ;;
5104 *)
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116 done
5117 done
5118 IFS=$as_save_IFS
5119
5120 ;;
5121 esac
5122 fi
5123 FOP=$ac_cv_path_FOP
5124 if test -n "$FOP"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5126 $as_echo "$FOP" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131
5132
5133 if test "x$FOP" = "x"; then
5134 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
5135 fi
5136 have_fop=yes
5137 elif test "x$use_fop" = x"no" ; then
5138 if test "x$FOP" != "x"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5140 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5141 fi
5142 have_fop=no
5143 else
5144 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
5145 fi
5146 if test "$have_fop" = yes; then
5147 HAVE_FOP_TRUE=
5148 HAVE_FOP_FALSE='#'
5149 else
5150 HAVE_FOP_TRUE='#'
5151 HAVE_FOP_FALSE=
5152 fi
5153
5154
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
5157 $as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
5158 XORG_SGML_PATH=
5159 if test -n "$PKG_CONFIG" && \
5160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
5161 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
5162 ac_status=$?
5163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5164 test $ac_status = 0; }; then
5165 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
5166 else
5167 :
5168
5169 fi
5170
5171 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
5172 # the path and the name of the doc stylesheet
5173 if test "x$XORG_SGML_PATH" != "x" ; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
5175 $as_echo "$XORG_SGML_PATH" >&6; }
5176 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
5177 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183
5184
5185
5186 if test "x$XSL_STYLESHEET" != "x"; then
5187 HAVE_STYLESHEETS_TRUE=
5188 HAVE_STYLESHEETS_FALSE='#'
5189 else
5190 HAVE_STYLESHEETS_TRUE='#'
5191 HAVE_STYLESHEETS_FALSE=
5192 fi
5193
5194
5195
5196
5197
5198 # Check whether --with-asciidoc was given.
5199 if test "${with_asciidoc+set}" = set; then :
5200 withval=$with_asciidoc; use_asciidoc=$withval
5201 else
5202 use_asciidoc=auto
5203 fi
5204
5205
5206 if test "x$use_asciidoc" = x"auto"; then
5207 # Extract the first word of "asciidoc", so it can be a program name with args.
5208 set dummy asciidoc; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if test "${ac_cv_path_ASCIIDOC+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 case $ASCIIDOC in
5215 [\\/]* | ?:[\\/]*)
5216 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
5217 ;;
5218 *)
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 ;;
5235 esac
5236 fi
5237 ASCIIDOC=$ac_cv_path_ASCIIDOC
5238 if test -n "$ASCIIDOC"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
5240 $as_echo "$ASCIIDOC" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246
5247 if test "x$ASCIIDOC" = "x"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
5249 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
5250 have_asciidoc=no
5251 else
5252 have_asciidoc=yes
5253 fi
5254 elif test "x$use_asciidoc" = x"yes" ; then
5255 # Extract the first word of "asciidoc", so it can be a program name with args.
5256 set dummy asciidoc; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_path_ASCIIDOC+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 case $ASCIIDOC in
5263 [\\/]* | ?:[\\/]*)
5264 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
5265 ;;
5266 *)
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278 done
5279 done
5280 IFS=$as_save_IFS
5281
5282 ;;
5283 esac
5284 fi
5285 ASCIIDOC=$ac_cv_path_ASCIIDOC
5286 if test -n "$ASCIIDOC"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
5288 $as_echo "$ASCIIDOC" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294
5295 if test "x$ASCIIDOC" = "x"; then
5296 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
5297 fi
5298 have_asciidoc=yes
5299 elif test "x$use_asciidoc" = x"no" ; then
5300 if test "x$ASCIIDOC" != "x"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
5302 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
5303 fi
5304 have_asciidoc=no
5305 else
5306 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
5307 fi
5308 if test "$have_asciidoc" = yes; then
5309 # scrape the asciidoc version
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
5311 $as_echo_n "checking the asciidoc version... " >&6; }
5312 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
5314 $as_echo "$asciidoc_version" >&6; }
5315 as_arg_v1=$asciidoc_version
5316 as_arg_v2=8.4.5
5317 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5318 case $? in #(
5319 1) :
5320 if test "x$use_asciidoc" = xauto; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
5322 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
5323 have_asciidoc=no
5324 else
5325 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
5326 fi ;; #(
5327 0) :
5328 ;; #(
5329 2) :
5330 ;; #(
5331 *) :
5332 ;;
5333 esac
5334 fi
5335 if test "$have_asciidoc" = yes; then
5336 HAVE_ASCIIDOC_TRUE=
5337 HAVE_ASCIIDOC_FALSE='#'
5338 else
5339 HAVE_ASCIIDOC_TRUE='#'
5340 HAVE_ASCIIDOC_FALSE=
5341 fi
5342
5343
5344 ac_config_headers="$ac_config_headers src/config.h"
5345
5346
5347 # Check for progs
5348 ac_ext=c
5349 ac_cpp='$CPP $CPPFLAGS'
5350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if test "${ac_cv_prog_CC+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -n "$CC"; then
5362 ac_cv_prog_CC="$CC" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375 done
5376 done
5377 IFS=$as_save_IFS
5378
5379 fi
5380 fi
5381 CC=$ac_cv_prog_CC
5382 if test -n "$CC"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5384 $as_echo "$CC" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389
5390
5391 fi
5392 if test -z "$ac_cv_prog_CC"; then
5393 ac_ct_CC=$CC
5394 # Extract the first word of "gcc", so it can be a program name with args.
5395 set dummy gcc; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -n "$ac_ct_CC"; then
5402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_ac_ct_CC="gcc"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415 done
5416 done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5422 if test -n "$ac_ct_CC"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5424 $as_echo "$ac_ct_CC" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430 if test "x$ac_ct_CC" = x; then
5431 CC=""
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 CC=$ac_ct_CC
5440 fi
5441 else
5442 CC="$ac_cv_prog_CC"
5443 fi
5444
5445 if test -z "$CC"; then
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}cc; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_CC+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$CC"; then
5455 ac_cv_prog_CC="$CC" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_CC="${ac_tool_prefix}cc"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 CC=$ac_cv_prog_CC
5475 if test -n "$CC"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5477 $as_echo "$CC" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 fi
5485 fi
5486 if test -z "$CC"; then
5487 # Extract the first word of "cc", so it can be a program name with args.
5488 set dummy cc; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_CC+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$CC"; then
5495 ac_cv_prog_CC="$CC" # Let the user override the test.
5496 else
5497 ac_prog_rejected=no
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5506 ac_prog_rejected=yes
5507 continue
5508 fi
5509 ac_cv_prog_CC="cc"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 if test $ac_prog_rejected = yes; then
5518 # We found a bogon in the path, so make sure we never use it.
5519 set dummy $ac_cv_prog_CC
5520 shift
5521 if test $# != 0; then
5522 # We chose a different compiler from the bogus one.
5523 # However, it has the same basename, so the bogon will be chosen
5524 # first if we set CC to just the basename; use the full file name.
5525 shift
5526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5527 fi
5528 fi
5529 fi
5530 fi
5531 CC=$ac_cv_prog_CC
5532 if test -n "$CC"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5534 $as_echo "$CC" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541 fi
5542 if test -z "$CC"; then
5543 if test -n "$ac_tool_prefix"; then
5544 for ac_prog in cl.exe
5545 do
5546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_CC+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$CC"; then
5554 ac_cv_prog_CC="$CC" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 CC=$ac_cv_prog_CC
5574 if test -n "$CC"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5576 $as_echo "$CC" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582
5583 test -n "$CC" && break
5584 done
5585 fi
5586 if test -z "$CC"; then
5587 ac_ct_CC=$CC
5588 for ac_prog in cl.exe
5589 do
5590 # Extract the first word of "$ac_prog", so it can be a program name with args.
5591 set dummy $ac_prog; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if test -n "$ac_ct_CC"; then
5598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_prog_ac_ct_CC="$ac_prog"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611 done
5612 done
5613 IFS=$as_save_IFS
5614
5615 fi
5616 fi
5617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5618 if test -n "$ac_ct_CC"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5620 $as_echo "$ac_ct_CC" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625
5626
5627 test -n "$ac_ct_CC" && break
5628 done
5629
5630 if test "x$ac_ct_CC" = x; then
5631 CC=""
5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634 yes:)
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637 ac_tool_warned=yes ;;
5638 esac
5639 CC=$ac_ct_CC
5640 fi
5641 fi
5642
5643 fi
5644
5645
5646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5648 as_fn_error $? "no acceptable C compiler found in \$PATH
5649 See \`config.log' for more details" "$LINENO" 5; }
5650
5651 # Provide some information about the compiler.
5652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5653 set X $ac_compile
5654 ac_compiler=$2
5655 for ac_option in --version -v -V -qversion; do
5656 { { ac_try="$ac_compiler $ac_option >&5"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5662 $as_echo "$ac_try_echo"; } >&5
5663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5664 ac_status=$?
5665 if test -s conftest.err; then
5666 sed '10a\
5667 ... rest of stderr output deleted ...
5668 10q' conftest.err >conftest.er1
5669 cat conftest.er1 >&5
5670 fi
5671 rm -f conftest.er1 conftest.err
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; }
5674 done
5675
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5677 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5678 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683
5684 int
5685 main ()
5686 {
5687 #ifndef __GNUC__
5688 choke me
5689 #endif
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_compiler_gnu=yes
5697 else
5698 ac_compiler_gnu=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5705 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5706 if test $ac_compiler_gnu = yes; then
5707 GCC=yes
5708 else
5709 GCC=
5710 fi
5711 ac_test_CFLAGS=${CFLAGS+set}
5712 ac_save_CFLAGS=$CFLAGS
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5714 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5715 if test "${ac_cv_prog_cc_g+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 ac_save_c_werror_flag=$ac_c_werror_flag
5719 ac_c_werror_flag=yes
5720 ac_cv_prog_cc_g=no
5721 CFLAGS="-g"
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724
5725 int
5726 main ()
5727 {
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 ac_cv_prog_cc_g=yes
5735 else
5736 CFLAGS=""
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5739
5740 int
5741 main ()
5742 {
5743
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"; then :
5749
5750 else
5751 ac_c_werror_flag=$ac_save_c_werror_flag
5752 CFLAGS="-g"
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755
5756 int
5757 main ()
5758 {
5759
5760 ;
5761 return 0;
5762 }
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 ac_cv_prog_cc_g=yes
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 ac_c_werror_flag=$ac_save_c_werror_flag
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5775 $as_echo "$ac_cv_prog_cc_g" >&6; }
5776 if test "$ac_test_CFLAGS" = set; then
5777 CFLAGS=$ac_save_CFLAGS
5778 elif test $ac_cv_prog_cc_g = yes; then
5779 if test "$GCC" = yes; then
5780 CFLAGS="-g -O2"
5781 else
5782 CFLAGS="-g"
5783 fi
5784 else
5785 if test "$GCC" = yes; then
5786 CFLAGS="-O2"
5787 else
5788 CFLAGS=
5789 fi
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5792 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5793 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 ac_cv_prog_cc_c89=no
5797 ac_save_CC=$CC
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #include <stdarg.h>
5801 #include <stdio.h>
5802 #include <sys/types.h>
5803 #include <sys/stat.h>
5804 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5805 struct buf { int x; };
5806 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5807 static char *e (p, i)
5808 char **p;
5809 int i;
5810 {
5811 return p[i];
5812 }
5813 static char *f (char * (*g) (char **, int), char **p, ...)
5814 {
5815 char *s;
5816 va_list v;
5817 va_start (v,p);
5818 s = g (p, va_arg (v,int));
5819 va_end (v);
5820 return s;
5821 }
5822
5823 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5824 function prototypes and stuff, but not '\xHH' hex character constants.
5825 These don't provoke an error unfortunately, instead are silently treated
5826 as 'x'. The following induces an error, until -std is added to get
5827 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5828 array size at least. It's necessary to write '\x00'==0 to get something
5829 that's true only with -std. */
5830 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5831
5832 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5833 inside strings and character constants. */
5834 #define FOO(x) 'x'
5835 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5836
5837 int test (int i, double x);
5838 struct s1 {int (*f) (int a);};
5839 struct s2 {int (*f) (double a);};
5840 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5841 int argc;
5842 char **argv;
5843 int
5844 main ()
5845 {
5846 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5847 ;
5848 return 0;
5849 }
5850 _ACEOF
5851 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5852 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5853 do
5854 CC="$ac_save_CC $ac_arg"
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 ac_cv_prog_cc_c89=$ac_arg
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext
5859 test "x$ac_cv_prog_cc_c89" != "xno" && break
5860 done
5861 rm -f conftest.$ac_ext
5862 CC=$ac_save_CC
5863
5864 fi
5865 # AC_CACHE_VAL
5866 case "x$ac_cv_prog_cc_c89" in
5867 x)
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5869 $as_echo "none needed" >&6; } ;;
5870 xno)
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5872 $as_echo "unsupported" >&6; } ;;
5873 *)
5874 CC="$CC $ac_cv_prog_cc_c89"
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5876 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5877 esac
5878 if test "x$ac_cv_prog_cc_c89" != xno; then :
5879
5880 fi
5881
5882 ac_ext=c
5883 ac_cpp='$CPP $CPPFLAGS'
5884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5887
5888 depcc="$CC" am_compiler_list=
5889
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5891 $as_echo_n "checking dependency style of $depcc... " >&6; }
5892 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5896 # We make a subdir and do the tests there. Otherwise we can end up
5897 # making bogus files that we don't know about and never remove. For
5898 # instance it was reported that on HP-UX the gcc test will end up
5899 # making a dummy file named `D' -- because `-MD' means `put the output
5900 # in D'.
5901 mkdir conftest.dir
5902 # Copy depcomp to subdir because otherwise we won't find it if we're
5903 # using a relative directory.
5904 cp "$am_depcomp" conftest.dir
5905 cd conftest.dir
5906 # We will build objects and dependencies in a subdirectory because
5907 # it helps to detect inapplicable dependency modes. For instance
5908 # both Tru64's cc and ICC support -MD to output dependencies as a
5909 # side effect of compilation, but ICC will put the dependencies in
5910 # the current directory while Tru64 will put them in the object
5911 # directory.
5912 mkdir sub
5913
5914 am_cv_CC_dependencies_compiler_type=none
5915 if test "$am_compiler_list" = ""; then
5916 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5917 fi
5918 am__universal=false
5919 case " $depcc " in #(
5920 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5921 esac
5922
5923 for depmode in $am_compiler_list; do
5924 # Setup a source with many dependencies, because some compilers
5925 # like to wrap large dependency lists on column 80 (with \), and
5926 # we should not choose a depcomp mode which is confused by this.
5927 #
5928 # We need to recreate these files for each test, as the compiler may
5929 # overwrite some of them when testing with obscure command lines.
5930 # This happens at least with the AIX C compiler.
5931 : > sub/conftest.c
5932 for i in 1 2 3 4 5 6; do
5933 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5934 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5935 # Solaris 8's {/usr,}/bin/sh.
5936 touch sub/conftst$i.h
5937 done
5938 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5939
5940 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5941 # mode. It turns out that the SunPro C++ compiler does not properly
5942 # handle `-M -o', and we need to detect this. Also, some Intel
5943 # versions had trouble with output in subdirs
5944 am__obj=sub/conftest.${OBJEXT-o}
5945 am__minus_obj="-o $am__obj"
5946 case $depmode in
5947 gcc)
5948 # This depmode causes a compiler race in universal mode.
5949 test "$am__universal" = false || continue
5950 ;;
5951 nosideeffect)
5952 # after this tag, mechanisms are not by side-effect, so they'll
5953 # only be used when explicitly requested
5954 if test "x$enable_dependency_tracking" = xyes; then
5955 continue
5956 else
5957 break
5958 fi
5959 ;;
5960 msvisualcpp | msvcmsys)
5961 # This compiler won't grok `-c -o', but also, the minuso test has
5962 # not run yet. These depmodes are late enough in the game, and
5963 # so weak that their functioning should not be impacted.
5964 am__obj=conftest.${OBJEXT-o}
5965 am__minus_obj=
5966 ;;
5967 none) break ;;
5968 esac
5969 if depmode=$depmode \
5970 source=sub/conftest.c object=$am__obj \
5971 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5972 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5973 >/dev/null 2>conftest.err &&
5974 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5975 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5976 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5977 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5978 # icc doesn't choke on unknown options, it will just issue warnings
5979 # or remarks (even with -Werror). So we grep stderr for any message
5980 # that says an option was ignored or not supported.
5981 # When given -MP, icc 7.0 and 7.1 complain thusly:
5982 # icc: Command line warning: ignoring option '-M'; no argument required
5983 # The diagnosis changed in icc 8.0:
5984 # icc: Command line remark: option '-MP' not supported
5985 if (grep 'ignoring option' conftest.err ||
5986 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5987 am_cv_CC_dependencies_compiler_type=$depmode
5988 break
5989 fi
5990 fi
5991 done
5992
5993 cd ..
5994 rm -rf conftest.dir
5995 else
5996 am_cv_CC_dependencies_compiler_type=none
5997 fi
5998
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6001 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6002 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6003
6004 if
6005 test "x$enable_dependency_tracking" != xno \
6006 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6007 am__fastdepCC_TRUE=
6008 am__fastdepCC_FALSE='#'
6009 else
6010 am__fastdepCC_TRUE='#'
6011 am__fastdepCC_FALSE=
6012 fi
6013
6014
6015 case `pwd` in
6016 *\ * | *\ *)
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6018 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6019 esac
6020
6021
6022
6023 macro_version='2.2.10'
6024 macro_revision='1.3175'
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038 ltmain="$ac_aux_dir/ltmain.sh"
6039
6040 # Backslashify metacharacters that are still active within
6041 # double-quoted strings.
6042 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6043
6044 # Same as above, but do not quote variable references.
6045 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6046
6047 # Sed substitution to delay expansion of an escaped shell variable in a
6048 # double_quote_subst'ed string.
6049 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6050
6051 # Sed substitution to delay expansion of an escaped single quote.
6052 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6053
6054 # Sed substitution to avoid accidental globbing in evaled expressions
6055 no_glob_subst='s/\*/\\\*/g'
6056
6057 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6058 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6059 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6060
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6062 $as_echo_n "checking how to print strings... " >&6; }
6063 # Test print first, because it will be a builtin if present.
6064 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6065 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6066 ECHO='print -r --'
6067 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6068 ECHO='printf %s\n'
6069 else
6070 # Use this function as a fallback that always works.
6071 func_fallback_echo ()
6072 {
6073 eval 'cat <<_LTECHO_EOF
6074 $1
6075 _LTECHO_EOF'
6076 }
6077 ECHO='func_fallback_echo'
6078 fi
6079
6080 # func_echo_all arg...
6081 # Invoke $ECHO with all args, space-separated.
6082 func_echo_all ()
6083 {
6084 $ECHO ""
6085 }
6086
6087 case "$ECHO" in
6088 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6089 $as_echo "printf" >&6; } ;;
6090 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6091 $as_echo "print -r" >&6; } ;;
6092 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6093 $as_echo "cat" >&6; } ;;
6094 esac
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6110 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6111 if test "${ac_cv_path_SED+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6115 for ac_i in 1 2 3 4 5 6 7; do
6116 ac_script="$ac_script$as_nl$ac_script"
6117 done
6118 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6119 { ac_script=; unset ac_script;}
6120 if test -z "$SED"; then
6121 ac_path_SED_found=false
6122 # Loop through the user's path and test for each of PROGNAME-LIST
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_prog in sed gsed; do
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6131 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6132 # Check for GNU ac_path_SED and select it if it is found.
6133 # Check for GNU $ac_path_SED
6134 case `"$ac_path_SED" --version 2>&1` in
6135 *GNU*)
6136 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6137 *)
6138 ac_count=0
6139 $as_echo_n 0123456789 >"conftest.in"
6140 while :
6141 do
6142 cat "conftest.in" "conftest.in" >"conftest.tmp"
6143 mv "conftest.tmp" "conftest.in"
6144 cp "conftest.in" "conftest.nl"
6145 $as_echo '' >> "conftest.nl"
6146 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6148 as_fn_arith $ac_count + 1 && ac_count=$as_val
6149 if test $ac_count -gt ${ac_path_SED_max-0}; then
6150 # Best one so far, save it but keep looking for a better one
6151 ac_cv_path_SED="$ac_path_SED"
6152 ac_path_SED_max=$ac_count
6153 fi
6154 # 10*(2^10) chars as input seems more than enough
6155 test $ac_count -gt 10 && break
6156 done
6157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6158 esac
6159
6160 $ac_path_SED_found && break 3
6161 done
6162 done
6163 done
6164 IFS=$as_save_IFS
6165 if test -z "$ac_cv_path_SED"; then
6166 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6167 fi
6168 else
6169 ac_cv_path_SED=$SED
6170 fi
6171
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6174 $as_echo "$ac_cv_path_SED" >&6; }
6175 SED="$ac_cv_path_SED"
6176 rm -f conftest.sed
6177
6178 test -z "$SED" && SED=sed
6179 Xsed="$SED -e 1s/^X//"
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6192 $as_echo_n "checking for fgrep... " >&6; }
6193 if test "${ac_cv_path_FGREP+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6197 then ac_cv_path_FGREP="$GREP -F"
6198 else
6199 if test -z "$FGREP"; then
6200 ac_path_FGREP_found=false
6201 # Loop through the user's path and test for each of PROGNAME-LIST
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6204 do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_prog in fgrep; do
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6210 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6211 # Check for GNU ac_path_FGREP and select it if it is found.
6212 # Check for GNU $ac_path_FGREP
6213 case `"$ac_path_FGREP" --version 2>&1` in
6214 *GNU*)
6215 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6216 *)
6217 ac_count=0
6218 $as_echo_n 0123456789 >"conftest.in"
6219 while :
6220 do
6221 cat "conftest.in" "conftest.in" >"conftest.tmp"
6222 mv "conftest.tmp" "conftest.in"
6223 cp "conftest.in" "conftest.nl"
6224 $as_echo 'FGREP' >> "conftest.nl"
6225 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6227 as_fn_arith $ac_count + 1 && ac_count=$as_val
6228 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6229 # Best one so far, save it but keep looking for a better one
6230 ac_cv_path_FGREP="$ac_path_FGREP"
6231 ac_path_FGREP_max=$ac_count
6232 fi
6233 # 10*(2^10) chars as input seems more than enough
6234 test $ac_count -gt 10 && break
6235 done
6236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6237 esac
6238
6239 $ac_path_FGREP_found && break 3
6240 done
6241 done
6242 done
6243 IFS=$as_save_IFS
6244 if test -z "$ac_cv_path_FGREP"; then
6245 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6246 fi
6247 else
6248 ac_cv_path_FGREP=$FGREP
6249 fi
6250
6251 fi
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6254 $as_echo "$ac_cv_path_FGREP" >&6; }
6255 FGREP="$ac_cv_path_FGREP"
6256
6257
6258 test -z "$GREP" && GREP=grep
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278 # Check whether --with-gnu-ld was given.
6279 if test "${with_gnu_ld+set}" = set; then :
6280 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6281 else
6282 with_gnu_ld=no
6283 fi
6284
6285 ac_prog=ld
6286 if test "$GCC" = yes; then
6287 # Check if gcc -print-prog-name=ld gives a path.
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6289 $as_echo_n "checking for ld used by $CC... " >&6; }
6290 case $host in
6291 *-*-mingw*)
6292 # gcc leaves a trailing carriage return which upsets mingw
6293 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6294 *)
6295 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6296 esac
6297 case $ac_prog in
6298 # Accept absolute paths.
6299 [\\/]* | ?:[\\/]*)
6300 re_direlt='/[^/][^/]*/\.\./'
6301 # Canonicalize the pathname of ld
6302 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6303 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6304 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6305 done
6306 test -z "$LD" && LD="$ac_prog"
6307 ;;
6308 "")
6309 # If it fails, then pretend we aren't using GCC.
6310 ac_prog=ld
6311 ;;
6312 *)
6313 # If it is relative, then search for the first ld in PATH.
6314 with_gnu_ld=unknown
6315 ;;
6316 esac
6317 elif test "$with_gnu_ld" = yes; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6319 $as_echo_n "checking for GNU ld... " >&6; }
6320 else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6322 $as_echo_n "checking for non-GNU ld... " >&6; }
6323 fi
6324 if test "${lt_cv_path_LD+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 if test -z "$LD"; then
6328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6329 for ac_dir in $PATH; do
6330 IFS="$lt_save_ifs"
6331 test -z "$ac_dir" && ac_dir=.
6332 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6333 lt_cv_path_LD="$ac_dir/$ac_prog"
6334 # Check to see if the program is GNU ld. I'd rather use --version,
6335 # but apparently some variants of GNU ld only accept -v.
6336 # Break only if it was the GNU/non-GNU ld that we prefer.
6337 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6338 *GNU* | *'with BFD'*)
6339 test "$with_gnu_ld" != no && break
6340 ;;
6341 *)
6342 test "$with_gnu_ld" != yes && break
6343 ;;
6344 esac
6345 fi
6346 done
6347 IFS="$lt_save_ifs"
6348 else
6349 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6350 fi
6351 fi
6352
6353 LD="$lt_cv_path_LD"
6354 if test -n "$LD"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6356 $as_echo "$LD" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6363 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6364 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6368 case `$LD -v 2>&1 </dev/null` in
6369 *GNU* | *'with BFD'*)
6370 lt_cv_prog_gnu_ld=yes
6371 ;;
6372 *)
6373 lt_cv_prog_gnu_ld=no
6374 ;;
6375 esac
6376 fi
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6378 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6379 with_gnu_ld=$lt_cv_prog_gnu_ld
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6390 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6391 if test "${lt_cv_path_NM+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 if test -n "$NM"; then
6395 # Let the user override the test.
6396 lt_cv_path_NM="$NM"
6397 else
6398 lt_nm_to_check="${ac_tool_prefix}nm"
6399 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6400 lt_nm_to_check="$lt_nm_to_check nm"
6401 fi
6402 for lt_tmp_nm in $lt_nm_to_check; do
6403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6404 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6405 IFS="$lt_save_ifs"
6406 test -z "$ac_dir" && ac_dir=.
6407 tmp_nm="$ac_dir/$lt_tmp_nm"
6408 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6409 # Check to see if the nm accepts a BSD-compat flag.
6410 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6411 # nm: unknown option "B" ignored
6412 # Tru64's nm complains that /dev/null is an invalid object file
6413 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6414 */dev/null* | *'Invalid file or object type'*)
6415 lt_cv_path_NM="$tmp_nm -B"
6416 break
6417 ;;
6418 *)
6419 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6420 */dev/null*)
6421 lt_cv_path_NM="$tmp_nm -p"
6422 break
6423 ;;
6424 *)
6425 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6426 continue # so that we can try to find one that supports BSD flags
6427 ;;
6428 esac
6429 ;;
6430 esac
6431 fi
6432 done
6433 IFS="$lt_save_ifs"
6434 done
6435 : ${lt_cv_path_NM=no}
6436 fi
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6439 $as_echo "$lt_cv_path_NM" >&6; }
6440 if test "$lt_cv_path_NM" != "no"; then
6441 NM="$lt_cv_path_NM"
6442 else
6443 # Didn't find any BSD compatible name lister, look for dumpbin.
6444 if test -n "$DUMPBIN"; then :
6445 # Let the user override the test.
6446 else
6447 if test -n "$ac_tool_prefix"; then
6448 for ac_prog in dumpbin "link -dump"
6449 do
6450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 if test -n "$DUMPBIN"; then
6458 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471 done
6472 done
6473 IFS=$as_save_IFS
6474
6475 fi
6476 fi
6477 DUMPBIN=$ac_cv_prog_DUMPBIN
6478 if test -n "$DUMPBIN"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6480 $as_echo "$DUMPBIN" >&6; }
6481 else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6484 fi
6485
6486
6487 test -n "$DUMPBIN" && break
6488 done
6489 fi
6490 if test -z "$DUMPBIN"; then
6491 ac_ct_DUMPBIN=$DUMPBIN
6492 for ac_prog in dumpbin "link -dump"
6493 do
6494 # Extract the first word of "$ac_prog", so it can be a program name with args.
6495 set dummy $ac_prog; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 if test -n "$ac_ct_DUMPBIN"; then
6502 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6522 if test -n "$ac_ct_DUMPBIN"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6524 $as_echo "$ac_ct_DUMPBIN" >&6; }
6525 else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530
6531 test -n "$ac_ct_DUMPBIN" && break
6532 done
6533
6534 if test "x$ac_ct_DUMPBIN" = x; then
6535 DUMPBIN=":"
6536 else
6537 case $cross_compiling:$ac_tool_warned in
6538 yes:)
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541 ac_tool_warned=yes ;;
6542 esac
6543 DUMPBIN=$ac_ct_DUMPBIN
6544 fi
6545 fi
6546
6547 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6548 *COFF*)
6549 DUMPBIN="$DUMPBIN -symbols"
6550 ;;
6551 *)
6552 DUMPBIN=:
6553 ;;
6554 esac
6555 fi
6556
6557 if test "$DUMPBIN" != ":"; then
6558 NM="$DUMPBIN"
6559 fi
6560 fi
6561 test -z "$NM" && NM=nm
6562
6563
6564
6565
6566
6567
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6569 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6570 if test "${lt_cv_nm_interface+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 lt_cv_nm_interface="BSD nm"
6574 echo "int some_variable = 0;" > conftest.$ac_ext
6575 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6576 (eval "$ac_compile" 2>conftest.err)
6577 cat conftest.err >&5
6578 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6579 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6580 cat conftest.err >&5
6581 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6582 cat conftest.out >&5
6583 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6584 lt_cv_nm_interface="MS dumpbin"
6585 fi
6586 rm -f conftest*
6587 fi
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6589 $as_echo "$lt_cv_nm_interface" >&6; }
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6592 $as_echo_n "checking whether ln -s works... " >&6; }
6593 LN_S=$as_ln_s
6594 if test "$LN_S" = "ln -s"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6596 $as_echo "yes" >&6; }
6597 else
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6599 $as_echo "no, using $LN_S" >&6; }
6600 fi
6601
6602 # find the maximum length of command line arguments
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6604 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6605 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 i=0
6609 teststring="ABCD"
6610
6611 case $build_os in
6612 msdosdjgpp*)
6613 # On DJGPP, this test can blow up pretty badly due to problems in libc
6614 # (any single argument exceeding 2000 bytes causes a buffer overrun
6615 # during glob expansion). Even if it were fixed, the result of this
6616 # check would be larger than it should be.
6617 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6618 ;;
6619
6620 gnu*)
6621 # Under GNU Hurd, this test is not required because there is
6622 # no limit to the length of command line arguments.
6623 # Libtool will interpret -1 as no limit whatsoever
6624 lt_cv_sys_max_cmd_len=-1;
6625 ;;
6626
6627 cygwin* | mingw* | cegcc*)
6628 # On Win9x/ME, this test blows up -- it succeeds, but takes
6629 # about 5 minutes as the teststring grows exponentially.
6630 # Worse, since 9x/ME are not pre-emptively multitasking,
6631 # you end up with a "frozen" computer, even though with patience
6632 # the test eventually succeeds (with a max line length of 256k).
6633 # Instead, let's just punt: use the minimum linelength reported by
6634 # all of the supported platforms: 8192 (on NT/2K/XP).
6635 lt_cv_sys_max_cmd_len=8192;
6636 ;;
6637
6638 mint*)
6639 # On MiNT this can take a long time and run out of memory.
6640 lt_cv_sys_max_cmd_len=8192;
6641 ;;
6642
6643 amigaos*)
6644 # On AmigaOS with pdksh, this test takes hours, literally.
6645 # So we just punt and use a minimum line length of 8192.
6646 lt_cv_sys_max_cmd_len=8192;
6647 ;;
6648
6649 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6650 # This has been around since 386BSD, at least. Likely further.
6651 if test -x /sbin/sysctl; then
6652 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6653 elif test -x /usr/sbin/sysctl; then
6654 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6655 else
6656 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6657 fi
6658 # And add a safety zone
6659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6661 ;;
6662
6663 interix*)
6664 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6665 lt_cv_sys_max_cmd_len=196608
6666 ;;
6667
6668 osf*)
6669 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6670 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6671 # nice to cause kernel panics so lets avoid the loop below.
6672 # First set a reasonable default.
6673 lt_cv_sys_max_cmd_len=16384
6674 #
6675 if test -x /sbin/sysconfig; then
6676 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6677 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6678 esac
6679 fi
6680 ;;
6681 sco3.2v5*)
6682 lt_cv_sys_max_cmd_len=102400
6683 ;;
6684 sysv5* | sco5v6* | sysv4.2uw2*)
6685 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6686 if test -n "$kargmax"; then
6687 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6688 else
6689 lt_cv_sys_max_cmd_len=32768
6690 fi
6691 ;;
6692 *)
6693 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6694 if test -n "$lt_cv_sys_max_cmd_len"; then
6695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6697 else
6698 # Make teststring a little bigger before we do anything with it.
6699 # a 1K string should be a reasonable start.
6700 for i in 1 2 3 4 5 6 7 8 ; do
6701 teststring=$teststring$teststring
6702 done
6703 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6704 # If test is not a shell built-in, we'll probably end up computing a
6705 # maximum length that is only half of the actual maximum length, but
6706 # we can't tell.
6707 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6708 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6709 test $i != 17 # 1/2 MB should be enough
6710 do
6711 i=`expr $i + 1`
6712 teststring=$teststring$teststring
6713 done
6714 # Only check the string length outside the loop.
6715 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6716 teststring=
6717 # Add a significant safety factor because C++ compilers can tack on
6718 # massive amounts of additional arguments before passing them to the
6719 # linker. It appears as though 1/2 is a usable value.
6720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6721 fi
6722 ;;
6723 esac
6724
6725 fi
6726
6727 if test -n $lt_cv_sys_max_cmd_len ; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6729 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6732 $as_echo "none" >&6; }
6733 fi
6734 max_cmd_len=$lt_cv_sys_max_cmd_len
6735
6736
6737
6738
6739
6740
6741 : ${CP="cp -f"}
6742 : ${MV="mv -f"}
6743 : ${RM="rm -f"}
6744
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6746 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6747 # Try some XSI features
6748 xsi_shell=no
6749 ( _lt_dummy="a/b/c"
6750 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6751 = c,a/b,, \
6752 && eval 'test $(( 1 + 1 )) -eq 2 \
6753 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6754 && xsi_shell=yes
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6756 $as_echo "$xsi_shell" >&6; }
6757
6758
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6760 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6761 lt_shell_append=no
6762 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6763 >/dev/null 2>&1 \
6764 && lt_shell_append=yes
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6766 $as_echo "$lt_shell_append" >&6; }
6767
6768
6769 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6770 lt_unset=unset
6771 else
6772 lt_unset=false
6773 fi
6774
6775
6776
6777
6778
6779 # test EBCDIC or ASCII
6780 case `echo X|tr X '\101'` in
6781 A) # ASCII based system
6782 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6783 lt_SP2NL='tr \040 \012'
6784 lt_NL2SP='tr \015\012 \040\040'
6785 ;;
6786 *) # EBCDIC based system
6787 lt_SP2NL='tr \100 \n'
6788 lt_NL2SP='tr \r\n \100\100'
6789 ;;
6790 esac
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6801 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6802 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 lt_cv_ld_reload_flag='-r'
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6808 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6809 reload_flag=$lt_cv_ld_reload_flag
6810 case $reload_flag in
6811 "" | " "*) ;;
6812 *) reload_flag=" $reload_flag" ;;
6813 esac
6814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6815 case $host_os in
6816 darwin*)
6817 if test "$GCC" = yes; then
6818 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6819 else
6820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6821 fi
6822 ;;
6823 esac
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$OBJDUMP"; then
6842 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 OBJDUMP=$ac_cv_prog_OBJDUMP
6862 if test -n "$OBJDUMP"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6864 $as_echo "$OBJDUMP" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870
6871 fi
6872 if test -z "$ac_cv_prog_OBJDUMP"; then
6873 ac_ct_OBJDUMP=$OBJDUMP
6874 # Extract the first word of "objdump", so it can be a program name with args.
6875 set dummy objdump; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$ac_ct_OBJDUMP"; then
6882 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6902 if test -n "$ac_ct_OBJDUMP"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6904 $as_echo "$ac_ct_OBJDUMP" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910 if test "x$ac_ct_OBJDUMP" = x; then
6911 OBJDUMP="false"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919 OBJDUMP=$ac_ct_OBJDUMP
6920 fi
6921 else
6922 OBJDUMP="$ac_cv_prog_OBJDUMP"
6923 fi
6924
6925 test -z "$OBJDUMP" && OBJDUMP=objdump
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6936 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6937 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 lt_cv_file_magic_cmd='$MAGIC_CMD'
6941 lt_cv_file_magic_test_file=
6942 lt_cv_deplibs_check_method='unknown'
6943 # Need to set the preceding variable on all platforms that support
6944 # interlibrary dependencies.
6945 # 'none' -- dependencies not supported.
6946 # `unknown' -- same as none, but documents that we really don't know.
6947 # 'pass_all' -- all dependencies passed with no checks.
6948 # 'test_compile' -- check by making test program.
6949 # 'file_magic [[regex]]' -- check by looking for files in library path
6950 # which responds to the $file_magic_cmd with a given extended regex.
6951 # If you have `file' or equivalent on your system and you're not sure
6952 # whether `pass_all' will *always* work, you probably want this one.
6953
6954 case $host_os in
6955 aix[4-9]*)
6956 lt_cv_deplibs_check_method=pass_all
6957 ;;
6958
6959 beos*)
6960 lt_cv_deplibs_check_method=pass_all
6961 ;;
6962
6963 bsdi[45]*)
6964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6965 lt_cv_file_magic_cmd='/usr/bin/file -L'
6966 lt_cv_file_magic_test_file=/shlib/libc.so
6967 ;;
6968
6969 cygwin*)
6970 # func_win32_libid is a shell function defined in ltmain.sh
6971 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6972 lt_cv_file_magic_cmd='func_win32_libid'
6973 ;;
6974
6975 mingw* | pw32*)
6976 # Base MSYS/MinGW do not provide the 'file' command needed by
6977 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6978 # unless we find 'file', for example because we are cross-compiling.
6979 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6980 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6982 lt_cv_file_magic_cmd='func_win32_libid'
6983 else
6984 # Keep this pattern in sync with the one in func_win32_libid.
6985 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6986 lt_cv_file_magic_cmd='$OBJDUMP -f'
6987 fi
6988 ;;
6989
6990 cegcc*)
6991 # use the weaker test based on 'objdump'. See mingw*.
6992 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6993 lt_cv_file_magic_cmd='$OBJDUMP -f'
6994 ;;
6995
6996 darwin* | rhapsody*)
6997 lt_cv_deplibs_check_method=pass_all
6998 ;;
6999
7000 freebsd* | dragonfly*)
7001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7002 case $host_cpu in
7003 i*86 )
7004 # Not sure whether the presence of OpenBSD here was a mistake.
7005 # Let's accept both of them until this is cleared up.
7006 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7007 lt_cv_file_magic_cmd=/usr/bin/file
7008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7009 ;;
7010 esac
7011 else
7012 lt_cv_deplibs_check_method=pass_all
7013 fi
7014 ;;
7015
7016 gnu*)
7017 lt_cv_deplibs_check_method=pass_all
7018 ;;
7019
7020 haiku*)
7021 lt_cv_deplibs_check_method=pass_all
7022 ;;
7023
7024 hpux10.20* | hpux11*)
7025 lt_cv_file_magic_cmd=/usr/bin/file
7026 case $host_cpu in
7027 ia64*)
7028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7029 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7030 ;;
7031 hppa*64*)
7032 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]'
7033 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7034 ;;
7035 *)
7036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7037 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7038 ;;
7039 esac
7040 ;;
7041
7042 interix[3-9]*)
7043 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7045 ;;
7046
7047 irix5* | irix6* | nonstopux*)
7048 case $LD in
7049 *-32|*"-32 ") libmagic=32-bit;;
7050 *-n32|*"-n32 ") libmagic=N32;;
7051 *-64|*"-64 ") libmagic=64-bit;;
7052 *) libmagic=never-match;;
7053 esac
7054 lt_cv_deplibs_check_method=pass_all
7055 ;;
7056
7057 # This must be Linux ELF.
7058 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7059 lt_cv_deplibs_check_method=pass_all
7060 ;;
7061
7062 netbsd*)
7063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7065 else
7066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7067 fi
7068 ;;
7069
7070 newos6*)
7071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7072 lt_cv_file_magic_cmd=/usr/bin/file
7073 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7074 ;;
7075
7076 *nto* | *qnx*)
7077 lt_cv_deplibs_check_method=pass_all
7078 ;;
7079
7080 openbsd*)
7081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7083 else
7084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7085 fi
7086 ;;
7087
7088 osf3* | osf4* | osf5*)
7089 lt_cv_deplibs_check_method=pass_all
7090 ;;
7091
7092 rdos*)
7093 lt_cv_deplibs_check_method=pass_all
7094 ;;
7095
7096 solaris*)
7097 lt_cv_deplibs_check_method=pass_all
7098 ;;
7099
7100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7101 lt_cv_deplibs_check_method=pass_all
7102 ;;
7103
7104 sysv4 | sysv4.3*)
7105 case $host_vendor in
7106 motorola)
7107 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]'
7108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7109 ;;
7110 ncr)
7111 lt_cv_deplibs_check_method=pass_all
7112 ;;
7113 sequent)
7114 lt_cv_file_magic_cmd='/bin/file'
7115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7116 ;;
7117 sni)
7118 lt_cv_file_magic_cmd='/bin/file'
7119 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7120 lt_cv_file_magic_test_file=/lib/libc.so
7121 ;;
7122 siemens)
7123 lt_cv_deplibs_check_method=pass_all
7124 ;;
7125 pc)
7126 lt_cv_deplibs_check_method=pass_all
7127 ;;
7128 esac
7129 ;;
7130
7131 tpf*)
7132 lt_cv_deplibs_check_method=pass_all
7133 ;;
7134 esac
7135
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7138 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7139 file_magic_cmd=$lt_cv_file_magic_cmd
7140 deplibs_check_method=$lt_cv_deplibs_check_method
7141 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154 if test -n "$ac_tool_prefix"; then
7155 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7156 set dummy ${ac_tool_prefix}ar; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if test "${ac_cv_prog_AR+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 if test -n "$AR"; then
7163 ac_cv_prog_AR="$AR" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_prog_AR="${ac_tool_prefix}ar"
7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7175 fi
7176 done
7177 done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 AR=$ac_cv_prog_AR
7183 if test -n "$AR"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7185 $as_echo "$AR" >&6; }
7186 else
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190
7191
7192 fi
7193 if test -z "$ac_cv_prog_AR"; then
7194 ac_ct_AR=$AR
7195 # Extract the first word of "ar", so it can be a program name with args.
7196 set dummy ar; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test -n "$ac_ct_AR"; then
7203 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_ac_ct_AR="ar"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7223 if test -n "$ac_ct_AR"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7225 $as_echo "$ac_ct_AR" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231 if test "x$ac_ct_AR" = x; then
7232 AR="false"
7233 else
7234 case $cross_compiling:$ac_tool_warned in
7235 yes:)
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238 ac_tool_warned=yes ;;
7239 esac
7240 AR=$ac_ct_AR
7241 fi
7242 else
7243 AR="$ac_cv_prog_AR"
7244 fi
7245
7246 test -z "$AR" && AR=ar
7247 test -z "$AR_FLAGS" && AR_FLAGS=cru
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}strip; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if test "${ac_cv_prog_STRIP+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$STRIP"; then
7268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 STRIP=$ac_cv_prog_STRIP
7288 if test -n "$STRIP"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7290 $as_echo "$STRIP" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297 fi
7298 if test -z "$ac_cv_prog_STRIP"; then
7299 ac_ct_STRIP=$STRIP
7300 # Extract the first word of "strip", so it can be a program name with args.
7301 set dummy strip; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$ac_ct_STRIP"; then
7308 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_prog_ac_ct_STRIP="strip"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7328 if test -n "$ac_ct_STRIP"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7330 $as_echo "$ac_ct_STRIP" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336 if test "x$ac_ct_STRIP" = x; then
7337 STRIP=":"
7338 else
7339 case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345 STRIP=$ac_ct_STRIP
7346 fi
7347 else
7348 STRIP="$ac_cv_prog_STRIP"
7349 fi
7350
7351 test -z "$STRIP" && STRIP=:
7352
7353
7354
7355
7356
7357
7358 if test -n "$ac_tool_prefix"; then
7359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 if test -n "$RANLIB"; then
7367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7368 else
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380 done
7381 done
7382 IFS=$as_save_IFS
7383
7384 fi
7385 fi
7386 RANLIB=$ac_cv_prog_RANLIB
7387 if test -n "$RANLIB"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7389 $as_echo "$RANLIB" >&6; }
7390 else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394
7395
7396 fi
7397 if test -z "$ac_cv_prog_RANLIB"; then
7398 ac_ct_RANLIB=$RANLIB
7399 # Extract the first word of "ranlib", so it can be a program name with args.
7400 set dummy ranlib; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 if test -n "$ac_ct_RANLIB"; then
7407 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416 ac_cv_prog_ac_ct_RANLIB="ranlib"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7419 fi
7420 done
7421 done
7422 IFS=$as_save_IFS
7423
7424 fi
7425 fi
7426 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7427 if test -n "$ac_ct_RANLIB"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7429 $as_echo "$ac_ct_RANLIB" >&6; }
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 fi
7434
7435 if test "x$ac_ct_RANLIB" = x; then
7436 RANLIB=":"
7437 else
7438 case $cross_compiling:$ac_tool_warned in
7439 yes:)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442 ac_tool_warned=yes ;;
7443 esac
7444 RANLIB=$ac_ct_RANLIB
7445 fi
7446 else
7447 RANLIB="$ac_cv_prog_RANLIB"
7448 fi
7449
7450 test -z "$RANLIB" && RANLIB=:
7451
7452
7453
7454
7455
7456
7457 # Determine commands to create old-style static archives.
7458 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7459 old_postinstall_cmds='chmod 644 $oldlib'
7460 old_postuninstall_cmds=
7461
7462 if test -n "$RANLIB"; then
7463 case $host_os in
7464 openbsd*)
7465 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7466 ;;
7467 *)
7468 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7469 ;;
7470 esac
7471 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7472 fi
7473
7474 case $host_os in
7475 darwin*)
7476 lock_old_archive_extraction=yes ;;
7477 *)
7478 lock_old_archive_extraction=no ;;
7479 esac
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519 # If no C compiler was specified, use CC.
7520 LTCC=${LTCC-"$CC"}
7521
7522 # If no C compiler flags were specified, use CFLAGS.
7523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7524
7525 # Allow CC to be a program name with arguments.
7526 compiler=$CC
7527
7528
7529 # Check for command to grab the raw symbol name followed by C symbol from nm.
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7531 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7532 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535
7536 # These are sane defaults that work on at least a few old systems.
7537 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7538
7539 # Character class describing NM global symbol codes.
7540 symcode='[BCDEGRST]'
7541
7542 # Regexp to match symbols that can be accessed directly from C.
7543 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7544
7545 # Define system-specific variables.
7546 case $host_os in
7547 aix*)
7548 symcode='[BCDT]'
7549 ;;
7550 cygwin* | mingw* | pw32* | cegcc*)
7551 symcode='[ABCDGISTW]'
7552 ;;
7553 hpux*)
7554 if test "$host_cpu" = ia64; then
7555 symcode='[ABCDEGRST]'
7556 fi
7557 ;;
7558 irix* | nonstopux*)
7559 symcode='[BCDEGRST]'
7560 ;;
7561 osf*)
7562 symcode='[BCDEGQRST]'
7563 ;;
7564 solaris*)
7565 symcode='[BDRT]'
7566 ;;
7567 sco3.2v5*)
7568 symcode='[DT]'
7569 ;;
7570 sysv4.2uw2*)
7571 symcode='[DT]'
7572 ;;
7573 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7574 symcode='[ABDT]'
7575 ;;
7576 sysv4)
7577 symcode='[DFNSTU]'
7578 ;;
7579 esac
7580
7581 # If we're using GNU nm, then use its standard symbol codes.
7582 case `$NM -V 2>&1` in
7583 *GNU* | *'with BFD'*)
7584 symcode='[ABCDGIRSTW]' ;;
7585 esac
7586
7587 # Transform an extracted symbol line into a proper C declaration.
7588 # Some systems (esp. on ia64) link data and code symbols differently,
7589 # so use this general approach.
7590 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7591
7592 # Transform an extracted symbol line into symbol name and symbol address
7593 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7594 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'"
7595
7596 # Handle CRLF in mingw tool chain
7597 opt_cr=
7598 case $build_os in
7599 mingw*)
7600 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7601 ;;
7602 esac
7603
7604 # Try without a prefix underscore, then with it.
7605 for ac_symprfx in "" "_"; do
7606
7607 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7608 symxfrm="\\1 $ac_symprfx\\2 \\2"
7609
7610 # Write the raw and C identifiers.
7611 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7612 # Fake it for dumpbin and say T for any non-static function
7613 # and D for any global variable.
7614 # Also find C++ and __fastcall symbols from MSVC++,
7615 # which start with @ or ?.
7616 lt_cv_sys_global_symbol_pipe="$AWK '"\
7617 " {last_section=section; section=\$ 3};"\
7618 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7619 " \$ 0!~/External *\|/{next};"\
7620 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7621 " {if(hide[section]) next};"\
7622 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7623 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7624 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7625 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7626 " ' prfx=^$ac_symprfx"
7627 else
7628 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7629 fi
7630
7631 # Check to see that the pipe works correctly.
7632 pipe_works=no
7633
7634 rm -f conftest*
7635 cat > conftest.$ac_ext <<_LT_EOF
7636 #ifdef __cplusplus
7637 extern "C" {
7638 #endif
7639 char nm_test_var;
7640 void nm_test_func(void);
7641 void nm_test_func(void){}
7642 #ifdef __cplusplus
7643 }
7644 #endif
7645 int main(){nm_test_var='a';nm_test_func();return(0);}
7646 _LT_EOF
7647
7648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7649 (eval $ac_compile) 2>&5
7650 ac_status=$?
7651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7652 test $ac_status = 0; }; then
7653 # Now try to grab the symbols.
7654 nlist=conftest.nm
7655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7656 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7657 ac_status=$?
7658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659 test $ac_status = 0; } && test -s "$nlist"; then
7660 # Try sorting and uniquifying the output.
7661 if sort "$nlist" | uniq > "$nlist"T; then
7662 mv -f "$nlist"T "$nlist"
7663 else
7664 rm -f "$nlist"T
7665 fi
7666
7667 # Make sure that we snagged all the symbols we need.
7668 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7669 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7670 cat <<_LT_EOF > conftest.$ac_ext
7671 #ifdef __cplusplus
7672 extern "C" {
7673 #endif
7674
7675 _LT_EOF
7676 # Now generate the symbol file.
7677 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7678
7679 cat <<_LT_EOF >> conftest.$ac_ext
7680
7681 /* The mapping between symbol names and symbols. */
7682 const struct {
7683 const char *name;
7684 void *address;
7685 }
7686 lt__PROGRAM__LTX_preloaded_symbols[] =
7687 {
7688 { "@PROGRAM@", (void *) 0 },
7689 _LT_EOF
7690 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7691 cat <<\_LT_EOF >> conftest.$ac_ext
7692 {0, (void *) 0}
7693 };
7694
7695 /* This works around a problem in FreeBSD linker */
7696 #ifdef FREEBSD_WORKAROUND
7697 static const void *lt_preloaded_setup() {
7698 return lt__PROGRAM__LTX_preloaded_symbols;
7699 }
7700 #endif
7701
7702 #ifdef __cplusplus
7703 }
7704 #endif
7705 _LT_EOF
7706 # Now try linking the two files.
7707 mv conftest.$ac_objext conftstm.$ac_objext
7708 lt_save_LIBS="$LIBS"
7709 lt_save_CFLAGS="$CFLAGS"
7710 LIBS="conftstm.$ac_objext"
7711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7713 (eval $ac_link) 2>&5
7714 ac_status=$?
7715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7716 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7717 pipe_works=yes
7718 fi
7719 LIBS="$lt_save_LIBS"
7720 CFLAGS="$lt_save_CFLAGS"
7721 else
7722 echo "cannot find nm_test_func in $nlist" >&5
7723 fi
7724 else
7725 echo "cannot find nm_test_var in $nlist" >&5
7726 fi
7727 else
7728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7729 fi
7730 else
7731 echo "$progname: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7733 fi
7734 rm -rf conftest* conftst*
7735
7736 # Do not use the global_symbol_pipe unless it works.
7737 if test "$pipe_works" = yes; then
7738 break
7739 else
7740 lt_cv_sys_global_symbol_pipe=
7741 fi
7742 done
7743
7744 fi
7745
7746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7747 lt_cv_sys_global_symbol_to_cdecl=
7748 fi
7749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7751 $as_echo "failed" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7754 $as_echo "ok" >&6; }
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778 # Check whether --enable-libtool-lock was given.
7779 if test "${enable_libtool_lock+set}" = set; then :
7780 enableval=$enable_libtool_lock;
7781 fi
7782
7783 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7784
7785 # Some flags need to be propagated to the compiler or linker for good
7786 # libtool support.
7787 case $host in
7788 ia64-*-hpux*)
7789 # Find out which ABI we are using.
7790 echo 'int i;' > conftest.$ac_ext
7791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7792 (eval $ac_compile) 2>&5
7793 ac_status=$?
7794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7795 test $ac_status = 0; }; then
7796 case `/usr/bin/file conftest.$ac_objext` in
7797 *ELF-32*)
7798 HPUX_IA64_MODE="32"
7799 ;;
7800 *ELF-64*)
7801 HPUX_IA64_MODE="64"
7802 ;;
7803 esac
7804 fi
7805 rm -rf conftest*
7806 ;;
7807 *-*-irix6*)
7808 # Find out which ABI we are using.
7809 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7811 (eval $ac_compile) 2>&5
7812 ac_status=$?
7813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7814 test $ac_status = 0; }; then
7815 if test "$lt_cv_prog_gnu_ld" = yes; then
7816 case `/usr/bin/file conftest.$ac_objext` in
7817 *32-bit*)
7818 LD="${LD-ld} -melf32bsmip"
7819 ;;
7820 *N32*)
7821 LD="${LD-ld} -melf32bmipn32"
7822 ;;
7823 *64-bit*)
7824 LD="${LD-ld} -melf64bmip"
7825 ;;
7826 esac
7827 else
7828 case `/usr/bin/file conftest.$ac_objext` in
7829 *32-bit*)
7830 LD="${LD-ld} -32"
7831 ;;
7832 *N32*)
7833 LD="${LD-ld} -n32"
7834 ;;
7835 *64-bit*)
7836 LD="${LD-ld} -64"
7837 ;;
7838 esac
7839 fi
7840 fi
7841 rm -rf conftest*
7842 ;;
7843
7844 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7845 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7846 # Find out which ABI we are using.
7847 echo 'int i;' > conftest.$ac_ext
7848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7849 (eval $ac_compile) 2>&5
7850 ac_status=$?
7851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852 test $ac_status = 0; }; then
7853 case `/usr/bin/file conftest.o` in
7854 *32-bit*)
7855 case $host in
7856 x86_64-*kfreebsd*-gnu)
7857 LD="${LD-ld} -m elf_i386_fbsd"
7858 ;;
7859 x86_64-*linux*)
7860 LD="${LD-ld} -m elf_i386"
7861 ;;
7862 ppc64-*linux*|powerpc64-*linux*)
7863 LD="${LD-ld} -m elf32ppclinux"
7864 ;;
7865 s390x-*linux*)
7866 LD="${LD-ld} -m elf_s390"
7867 ;;
7868 sparc64-*linux*)
7869 LD="${LD-ld} -m elf32_sparc"
7870 ;;
7871 esac
7872 ;;
7873 *64-bit*)
7874 case $host in
7875 x86_64-*kfreebsd*-gnu)
7876 LD="${LD-ld} -m elf_x86_64_fbsd"
7877 ;;
7878 x86_64-*linux*)
7879 LD="${LD-ld} -m elf_x86_64"
7880 ;;
7881 ppc*-*linux*|powerpc*-*linux*)
7882 LD="${LD-ld} -m elf64ppc"
7883 ;;
7884 s390*-*linux*|s390*-*tpf*)
7885 LD="${LD-ld} -m elf64_s390"
7886 ;;
7887 sparc*-*linux*)
7888 LD="${LD-ld} -m elf64_sparc"
7889 ;;
7890 esac
7891 ;;
7892 esac
7893 fi
7894 rm -rf conftest*
7895 ;;
7896
7897 *-*-sco3.2v5*)
7898 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7899 SAVE_CFLAGS="$CFLAGS"
7900 CFLAGS="$CFLAGS -belf"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7902 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7903 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 ac_ext=c
7907 ac_cpp='$CPP $CPPFLAGS'
7908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914
7915 int
7916 main ()
7917 {
7918
7919 ;
7920 return 0;
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_link "$LINENO"; then :
7924 lt_cv_cc_needs_belf=yes
7925 else
7926 lt_cv_cc_needs_belf=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930 ac_ext=c
7931 ac_cpp='$CPP $CPPFLAGS'
7932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935
7936 fi
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7938 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7939 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7940 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7941 CFLAGS="$SAVE_CFLAGS"
7942 fi
7943 ;;
7944 sparc*-*solaris*)
7945 # Find out which ABI we are using.
7946 echo 'int i;' > conftest.$ac_ext
7947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7948 (eval $ac_compile) 2>&5
7949 ac_status=$?
7950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7951 test $ac_status = 0; }; then
7952 case `/usr/bin/file conftest.o` in
7953 *64-bit*)
7954 case $lt_cv_prog_gnu_ld in
7955 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7956 *)
7957 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7958 LD="${LD-ld} -64"
7959 fi
7960 ;;
7961 esac
7962 ;;
7963 esac
7964 fi
7965 rm -rf conftest*
7966 ;;
7967 esac
7968
7969 need_locks="$enable_libtool_lock"
7970
7971
7972 case $host_os in
7973 rhapsody* | darwin*)
7974 if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7976 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 if test -n "$DSYMUTIL"; then
7983 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7992 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996 done
7997 done
7998 IFS=$as_save_IFS
7999
8000 fi
8001 fi
8002 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8003 if test -n "$DSYMUTIL"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8005 $as_echo "$DSYMUTIL" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8009 fi
8010
8011
8012 fi
8013 if test -z "$ac_cv_prog_DSYMUTIL"; then
8014 ac_ct_DSYMUTIL=$DSYMUTIL
8015 # Extract the first word of "dsymutil", so it can be a program name with args.
8016 set dummy dsymutil; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -n "$ac_ct_DSYMUTIL"; then
8023 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 fi
8041 fi
8042 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8043 if test -n "$ac_ct_DSYMUTIL"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8045 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 fi
8050
8051 if test "x$ac_ct_DSYMUTIL" = x; then
8052 DSYMUTIL=":"
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055 yes:)
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058 ac_tool_warned=yes ;;
8059 esac
8060 DSYMUTIL=$ac_ct_DSYMUTIL
8061 fi
8062 else
8063 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8064 fi
8065
8066 if test -n "$ac_tool_prefix"; then
8067 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 if test -n "$NMEDIT"; then
8075 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8087 fi
8088 done
8089 done
8090 IFS=$as_save_IFS
8091
8092 fi
8093 fi
8094 NMEDIT=$ac_cv_prog_NMEDIT
8095 if test -n "$NMEDIT"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8097 $as_echo "$NMEDIT" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8101 fi
8102
8103
8104 fi
8105 if test -z "$ac_cv_prog_NMEDIT"; then
8106 ac_ct_NMEDIT=$NMEDIT
8107 # Extract the first word of "nmedit", so it can be a program name with args.
8108 set dummy nmedit; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$ac_ct_NMEDIT"; then
8115 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8127 fi
8128 done
8129 done
8130 IFS=$as_save_IFS
8131
8132 fi
8133 fi
8134 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8135 if test -n "$ac_ct_NMEDIT"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8137 $as_echo "$ac_ct_NMEDIT" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142
8143 if test "x$ac_ct_NMEDIT" = x; then
8144 NMEDIT=":"
8145 else
8146 case $cross_compiling:$ac_tool_warned in
8147 yes:)
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150 ac_tool_warned=yes ;;
8151 esac
8152 NMEDIT=$ac_ct_NMEDIT
8153 fi
8154 else
8155 NMEDIT="$ac_cv_prog_NMEDIT"
8156 fi
8157
8158 if test -n "$ac_tool_prefix"; then
8159 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8160 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if test "${ac_cv_prog_LIPO+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if test -n "$LIPO"; then
8167 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8179 fi
8180 done
8181 done
8182 IFS=$as_save_IFS
8183
8184 fi
8185 fi
8186 LIPO=$ac_cv_prog_LIPO
8187 if test -n "$LIPO"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8189 $as_echo "$LIPO" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 fi
8194
8195
8196 fi
8197 if test -z "$ac_cv_prog_LIPO"; then
8198 ac_ct_LIPO=$LIPO
8199 # Extract the first word of "lipo", so it can be a program name with args.
8200 set dummy lipo; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$ac_ct_LIPO"; then
8207 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_ac_ct_LIPO="lipo"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8227 if test -n "$ac_ct_LIPO"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8229 $as_echo "$ac_ct_LIPO" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235 if test "x$ac_ct_LIPO" = x; then
8236 LIPO=":"
8237 else
8238 case $cross_compiling:$ac_tool_warned in
8239 yes:)
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8242 ac_tool_warned=yes ;;
8243 esac
8244 LIPO=$ac_ct_LIPO
8245 fi
8246 else
8247 LIPO="$ac_cv_prog_LIPO"
8248 fi
8249
8250 if test -n "$ac_tool_prefix"; then
8251 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8252 set dummy ${ac_tool_prefix}otool; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 if test -n "$OTOOL"; then
8259 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8260 else
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8263 do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8268 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272 done
8273 done
8274 IFS=$as_save_IFS
8275
8276 fi
8277 fi
8278 OTOOL=$ac_cv_prog_OTOOL
8279 if test -n "$OTOOL"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8281 $as_echo "$OTOOL" >&6; }
8282 else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8285 fi
8286
8287
8288 fi
8289 if test -z "$ac_cv_prog_OTOOL"; then
8290 ac_ct_OTOOL=$OTOOL
8291 # Extract the first word of "otool", so it can be a program name with args.
8292 set dummy otool; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 if test -n "$ac_ct_OTOOL"; then
8299 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_ac_ct_OTOOL="otool"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8319 if test -n "$ac_ct_OTOOL"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8321 $as_echo "$ac_ct_OTOOL" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326
8327 if test "x$ac_ct_OTOOL" = x; then
8328 OTOOL=":"
8329 else
8330 case $cross_compiling:$ac_tool_warned in
8331 yes:)
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8334 ac_tool_warned=yes ;;
8335 esac
8336 OTOOL=$ac_ct_OTOOL
8337 fi
8338 else
8339 OTOOL="$ac_cv_prog_OTOOL"
8340 fi
8341
8342 if test -n "$ac_tool_prefix"; then
8343 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8344 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 if test -n "$OTOOL64"; then
8351 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 OTOOL64=$ac_cv_prog_OTOOL64
8371 if test -n "$OTOOL64"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8373 $as_echo "$OTOOL64" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380 fi
8381 if test -z "$ac_cv_prog_OTOOL64"; then
8382 ac_ct_OTOOL64=$OTOOL64
8383 # Extract the first word of "otool64", so it can be a program name with args.
8384 set dummy otool64; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 if test -n "$ac_ct_OTOOL64"; then
8391 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8392 else
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8395 do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_prog_ac_ct_OTOOL64="otool64"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404 done
8405 done
8406 IFS=$as_save_IFS
8407
8408 fi
8409 fi
8410 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8411 if test -n "$ac_ct_OTOOL64"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8413 $as_echo "$ac_ct_OTOOL64" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418
8419 if test "x$ac_ct_OTOOL64" = x; then
8420 OTOOL64=":"
8421 else
8422 case $cross_compiling:$ac_tool_warned in
8423 yes:)
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8426 ac_tool_warned=yes ;;
8427 esac
8428 OTOOL64=$ac_ct_OTOOL64
8429 fi
8430 else
8431 OTOOL64="$ac_cv_prog_OTOOL64"
8432 fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8461 $as_echo_n "checking for -single_module linker flag... " >&6; }
8462 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 lt_cv_apple_cc_single_mod=no
8466 if test -z "${LT_MULTI_MODULE}"; then
8467 # By default we will add the -single_module flag. You can override
8468 # by either setting the environment variable LT_MULTI_MODULE
8469 # non-empty at configure time, or by adding -multi_module to the
8470 # link flags.
8471 rm -rf libconftest.dylib*
8472 echo "int foo(void){return 1;}" > conftest.c
8473 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8474 -dynamiclib -Wl,-single_module conftest.c" >&5
8475 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8476 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8477 _lt_result=$?
8478 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8479 lt_cv_apple_cc_single_mod=yes
8480 else
8481 cat conftest.err >&5
8482 fi
8483 rm -rf libconftest.dylib*
8484 rm -f conftest.*
8485 fi
8486 fi
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8488 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8490 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8491 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 lt_cv_ld_exported_symbols_list=no
8495 save_LDFLAGS=$LDFLAGS
8496 echo "_main" > conftest.sym
8497 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500
8501 int
8502 main ()
8503 {
8504
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_link "$LINENO"; then :
8510 lt_cv_ld_exported_symbols_list=yes
8511 else
8512 lt_cv_ld_exported_symbols_list=no
8513 fi
8514 rm -f core conftest.err conftest.$ac_objext \
8515 conftest$ac_exeext conftest.$ac_ext
8516 LDFLAGS="$save_LDFLAGS"
8517
8518 fi
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8520 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8522 $as_echo_n "checking for -force_load linker flag... " >&6; }
8523 if test "${lt_cv_ld_force_load+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
8525 else
8526 lt_cv_ld_force_load=no
8527 cat > conftest.c << _LT_EOF
8528 int forced_loaded() { return 2;}
8529 _LT_EOF
8530 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8531 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8532 echo "$AR cru libconftest.a conftest.o" >&5
8533 $AR cru libconftest.a conftest.o 2>&5
8534 echo "$RANLIB libconftest.a" >&5
8535 $RANLIB libconftest.a 2>&5
8536 cat > conftest.c << _LT_EOF
8537 int main() { return 0;}
8538 _LT_EOF
8539 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8540 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8541 _lt_result=$?
8542 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8543 lt_cv_ld_force_load=yes
8544 else
8545 cat conftest.err >&5
8546 fi
8547 rm -f conftest.err libconftest.a conftest conftest.c
8548 rm -rf conftest.dSYM
8549
8550 fi
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8552 $as_echo "$lt_cv_ld_force_load" >&6; }
8553 case $host_os in
8554 rhapsody* | darwin1.[012])
8555 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8556 darwin1.*)
8557 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8558 darwin*) # darwin 5.x on
8559 # if running on 10.5 or later, the deployment target defaults
8560 # to the OS version, if on x86, and 10.4, the deployment
8561 # target defaults to 10.4. Don't you love it?
8562 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8563 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8564 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8565 10.[012]*)
8566 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8567 10.*)
8568 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8569 esac
8570 ;;
8571 esac
8572 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8573 _lt_dar_single_mod='$single_module'
8574 fi
8575 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8576 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8577 else
8578 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8579 fi
8580 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8581 _lt_dsymutil='~$DSYMUTIL $lib || :'
8582 else
8583 _lt_dsymutil=
8584 fi
8585 ;;
8586 esac
8587
8588 for ac_header in dlfcn.h
8589 do :
8590 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8591 "
8592 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8593 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_DLFCN_H 1
8595 _ACEOF
8596
8597 fi
8598
8599 done
8600
8601
8602
8603
8604
8605 # Set options
8606
8607
8608
8609 enable_dlopen=no
8610
8611
8612 enable_win32_dll=no
8613
8614
8615 # Check whether --enable-shared was given.
8616 if test "${enable_shared+set}" = set; then :
8617 enableval=$enable_shared; p=${PACKAGE-default}
8618 case $enableval in
8619 yes) enable_shared=yes ;;
8620 no) enable_shared=no ;;
8621 *)
8622 enable_shared=no
8623 # Look at the argument we got. We use all the common list separators.
8624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8625 for pkg in $enableval; do
8626 IFS="$lt_save_ifs"
8627 if test "X$pkg" = "X$p"; then
8628 enable_shared=yes
8629 fi
8630 done
8631 IFS="$lt_save_ifs"
8632 ;;
8633 esac
8634 else
8635 enable_shared=yes
8636 fi
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646 # Check whether --enable-static was given.
8647 if test "${enable_static+set}" = set; then :
8648 enableval=$enable_static; p=${PACKAGE-default}
8649 case $enableval in
8650 yes) enable_static=yes ;;
8651 no) enable_static=no ;;
8652 *)
8653 enable_static=no
8654 # Look at the argument we got. We use all the common list separators.
8655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8656 for pkg in $enableval; do
8657 IFS="$lt_save_ifs"
8658 if test "X$pkg" = "X$p"; then
8659 enable_static=yes
8660 fi
8661 done
8662 IFS="$lt_save_ifs"
8663 ;;
8664 esac
8665 else
8666 enable_static=yes
8667 fi
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678 # Check whether --with-pic was given.
8679 if test "${with_pic+set}" = set; then :
8680 withval=$with_pic; pic_mode="$withval"
8681 else
8682 pic_mode=default
8683 fi
8684
8685
8686 test -z "$pic_mode" && pic_mode=default
8687
8688
8689
8690
8691
8692
8693
8694 # Check whether --enable-fast-install was given.
8695 if test "${enable_fast_install+set}" = set; then :
8696 enableval=$enable_fast_install; p=${PACKAGE-default}
8697 case $enableval in
8698 yes) enable_fast_install=yes ;;
8699 no) enable_fast_install=no ;;
8700 *)
8701 enable_fast_install=no
8702 # Look at the argument we got. We use all the common list separators.
8703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8704 for pkg in $enableval; do
8705 IFS="$lt_save_ifs"
8706 if test "X$pkg" = "X$p"; then
8707 enable_fast_install=yes
8708 fi
8709 done
8710 IFS="$lt_save_ifs"
8711 ;;
8712 esac
8713 else
8714 enable_fast_install=yes
8715 fi
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727 # This can be used to rebuild libtool when needed
8728 LIBTOOL_DEPS="$ltmain"
8729
8730 # Always use our own libtool.
8731 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758 test -z "$LN_S" && LN_S="ln -s"
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773 if test -n "${ZSH_VERSION+set}" ; then
8774 setopt NO_GLOB_SUBST
8775 fi
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8778 $as_echo_n "checking for objdir... " >&6; }
8779 if test "${lt_cv_objdir+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 rm -f .libs 2>/dev/null
8783 mkdir .libs 2>/dev/null
8784 if test -d .libs; then
8785 lt_cv_objdir=.libs
8786 else
8787 # MS-DOS does not allow filenames that begin with a dot.
8788 lt_cv_objdir=_libs
8789 fi
8790 rmdir .libs 2>/dev/null
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8793 $as_echo "$lt_cv_objdir" >&6; }
8794 objdir=$lt_cv_objdir
8795
8796
8797
8798
8799
8800 cat >>confdefs.h <<_ACEOF
8801 #define LT_OBJDIR "$lt_cv_objdir/"
8802 _ACEOF
8803
8804
8805
8806
8807 case $host_os in
8808 aix3*)
8809 # AIX sometimes has problems with the GCC collect2 program. For some
8810 # reason, if we set the COLLECT_NAMES environment variable, the problems
8811 # vanish in a puff of smoke.
8812 if test "X${COLLECT_NAMES+set}" != Xset; then
8813 COLLECT_NAMES=
8814 export COLLECT_NAMES
8815 fi
8816 ;;
8817 esac
8818
8819 # Global variables:
8820 ofile=libtool
8821 can_build_shared=yes
8822
8823 # All known linkers require a `.a' archive for static linking (except MSVC,
8824 # which needs '.lib').
8825 libext=a
8826
8827 with_gnu_ld="$lt_cv_prog_gnu_ld"
8828
8829 old_CC="$CC"
8830 old_CFLAGS="$CFLAGS"
8831
8832 # Set sane defaults for various variables
8833 test -z "$CC" && CC=cc
8834 test -z "$LTCC" && LTCC=$CC
8835 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8836 test -z "$LD" && LD=ld
8837 test -z "$ac_objext" && ac_objext=o
8838
8839 for cc_temp in $compiler""; do
8840 case $cc_temp in
8841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8843 \-*) ;;
8844 *) break;;
8845 esac
8846 done
8847 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8848
8849
8850 # Only perform the check for file, if the check method requires it
8851 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8852 case $deplibs_check_method in
8853 file_magic*)
8854 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8856 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8857 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 case $MAGIC_CMD in
8861 [\\/*] | ?:[\\/]*)
8862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8863 ;;
8864 *)
8865 lt_save_MAGIC_CMD="$MAGIC_CMD"
8866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8868 for ac_dir in $ac_dummy; do
8869 IFS="$lt_save_ifs"
8870 test -z "$ac_dir" && ac_dir=.
8871 if test -f $ac_dir/${ac_tool_prefix}file; then
8872 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8873 if test -n "$file_magic_test_file"; then
8874 case $deplibs_check_method in
8875 "file_magic "*)
8876 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8879 $EGREP "$file_magic_regex" > /dev/null; then
8880 :
8881 else
8882 cat <<_LT_EOF 1>&2
8883
8884 *** Warning: the command libtool uses to detect shared libraries,
8885 *** $file_magic_cmd, produces output that libtool cannot recognize.
8886 *** The result is that libtool may fail to recognize shared libraries
8887 *** as such. This will affect the creation of libtool libraries that
8888 *** depend on shared libraries, but programs linked with such libtool
8889 *** libraries will work regardless of this problem. Nevertheless, you
8890 *** may want to report the problem to your system manager and/or to
8891 *** bug-libtool@gnu.org
8892
8893 _LT_EOF
8894 fi ;;
8895 esac
8896 fi
8897 break
8898 fi
8899 done
8900 IFS="$lt_save_ifs"
8901 MAGIC_CMD="$lt_save_MAGIC_CMD"
8902 ;;
8903 esac
8904 fi
8905
8906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8907 if test -n "$MAGIC_CMD"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8909 $as_echo "$MAGIC_CMD" >&6; }
8910 else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8913 fi
8914
8915
8916
8917
8918
8919 if test -z "$lt_cv_path_MAGIC_CMD"; then
8920 if test -n "$ac_tool_prefix"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8922 $as_echo_n "checking for file... " >&6; }
8923 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 case $MAGIC_CMD in
8927 [\\/*] | ?:[\\/]*)
8928 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8929 ;;
8930 *)
8931 lt_save_MAGIC_CMD="$MAGIC_CMD"
8932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8934 for ac_dir in $ac_dummy; do
8935 IFS="$lt_save_ifs"
8936 test -z "$ac_dir" && ac_dir=.
8937 if test -f $ac_dir/file; then
8938 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8939 if test -n "$file_magic_test_file"; then
8940 case $deplibs_check_method in
8941 "file_magic "*)
8942 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8945 $EGREP "$file_magic_regex" > /dev/null; then
8946 :
8947 else
8948 cat <<_LT_EOF 1>&2
8949
8950 *** Warning: the command libtool uses to detect shared libraries,
8951 *** $file_magic_cmd, produces output that libtool cannot recognize.
8952 *** The result is that libtool may fail to recognize shared libraries
8953 *** as such. This will affect the creation of libtool libraries that
8954 *** depend on shared libraries, but programs linked with such libtool
8955 *** libraries will work regardless of this problem. Nevertheless, you
8956 *** may want to report the problem to your system manager and/or to
8957 *** bug-libtool@gnu.org
8958
8959 _LT_EOF
8960 fi ;;
8961 esac
8962 fi
8963 break
8964 fi
8965 done
8966 IFS="$lt_save_ifs"
8967 MAGIC_CMD="$lt_save_MAGIC_CMD"
8968 ;;
8969 esac
8970 fi
8971
8972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8973 if test -n "$MAGIC_CMD"; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8975 $as_echo "$MAGIC_CMD" >&6; }
8976 else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978 $as_echo "no" >&6; }
8979 fi
8980
8981
8982 else
8983 MAGIC_CMD=:
8984 fi
8985 fi
8986
8987 fi
8988 ;;
8989 esac
8990
8991 # Use C for the default configuration in the libtool script
8992
8993 lt_save_CC="$CC"
8994 ac_ext=c
8995 ac_cpp='$CPP $CPPFLAGS'
8996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8999
9000
9001 # Source file extension for C test sources.
9002 ac_ext=c
9003
9004 # Object file extension for compiled C test sources.
9005 objext=o
9006 objext=$objext
9007
9008 # Code to be used in simple compile tests
9009 lt_simple_compile_test_code="int some_variable = 0;"
9010
9011 # Code to be used in simple link tests
9012 lt_simple_link_test_code='int main(){return(0);}'
9013
9014
9015
9016
9017
9018
9019
9020 # If no C compiler was specified, use CC.
9021 LTCC=${LTCC-"$CC"}
9022
9023 # If no C compiler flags were specified, use CFLAGS.
9024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9025
9026 # Allow CC to be a program name with arguments.
9027 compiler=$CC
9028
9029 # Save the default compiler, since it gets overwritten when the other
9030 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9031 compiler_DEFAULT=$CC
9032
9033 # save warnings/boilerplate of simple test code
9034 ac_outfile=conftest.$ac_objext
9035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9037 _lt_compiler_boilerplate=`cat conftest.err`
9038 $RM conftest*
9039
9040 ac_outfile=conftest.$ac_objext
9041 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9043 _lt_linker_boilerplate=`cat conftest.err`
9044 $RM -r conftest*
9045
9046
9047 if test -n "$compiler"; then
9048
9049 lt_prog_compiler_no_builtin_flag=
9050
9051 if test "$GCC" = yes; then
9052 case $cc_basename in
9053 nvcc*)
9054 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9055 *)
9056 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9057 esac
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9060 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9061 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 lt_cv_prog_compiler_rtti_exceptions=no
9065 ac_outfile=conftest.$ac_objext
9066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9067 lt_compiler_flag="-fno-rtti -fno-exceptions"
9068 # Insert the option either (1) after the last *FLAGS variable, or
9069 # (2) before a word containing "conftest.", or (3) at the end.
9070 # Note that $ac_compile itself does not contain backslashes and begins
9071 # with a dollar sign (not a hyphen), so the echo should work correctly.
9072 # The option is referenced via a variable to avoid confusing sed.
9073 lt_compile=`echo "$ac_compile" | $SED \
9074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9076 -e 's:$: $lt_compiler_flag:'`
9077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9078 (eval "$lt_compile" 2>conftest.err)
9079 ac_status=$?
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 if (exit $ac_status) && test -s "$ac_outfile"; then
9083 # The compiler can only warn and ignore the option if not recognized
9084 # So say no if there are warnings other than the usual output.
9085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9088 lt_cv_prog_compiler_rtti_exceptions=yes
9089 fi
9090 fi
9091 $RM conftest*
9092
9093 fi
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9095 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9096
9097 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9098 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9099 else
9100 :
9101 fi
9102
9103 fi
9104
9105
9106
9107
9108
9109
9110 lt_prog_compiler_wl=
9111 lt_prog_compiler_pic=
9112 lt_prog_compiler_static=
9113
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9115 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9116
9117 if test "$GCC" = yes; then
9118 lt_prog_compiler_wl='-Wl,'
9119 lt_prog_compiler_static='-static'
9120
9121 case $host_os in
9122 aix*)
9123 # All AIX code is PIC.
9124 if test "$host_cpu" = ia64; then
9125 # AIX 5 now supports IA64 processor
9126 lt_prog_compiler_static='-Bstatic'
9127 fi
9128 ;;
9129
9130 amigaos*)
9131 case $host_cpu in
9132 powerpc)
9133 # see comment about AmigaOS4 .so support
9134 lt_prog_compiler_pic='-fPIC'
9135 ;;
9136 m68k)
9137 # FIXME: we need at least 68020 code to build shared libraries, but
9138 # adding the `-m68020' flag to GCC prevents building anything better,
9139 # like `-m68040'.
9140 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9141 ;;
9142 esac
9143 ;;
9144
9145 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9146 # PIC is the default for these OSes.
9147 ;;
9148
9149 mingw* | cygwin* | pw32* | os2* | cegcc*)
9150 # This hack is so that the source file can tell whether it is being
9151 # built for inclusion in a dll (and should export symbols for example).
9152 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9153 # (--disable-auto-import) libraries
9154 lt_prog_compiler_pic='-DDLL_EXPORT'
9155 ;;
9156
9157 darwin* | rhapsody*)
9158 # PIC is the default on this platform
9159 # Common symbols not allowed in MH_DYLIB files
9160 lt_prog_compiler_pic='-fno-common'
9161 ;;
9162
9163 haiku*)
9164 # PIC is the default for Haiku.
9165 # The "-static" flag exists, but is broken.
9166 lt_prog_compiler_static=
9167 ;;
9168
9169 hpux*)
9170 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9171 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9172 # sets the default TLS model and affects inlining.
9173 case $host_cpu in
9174 hppa*64*)
9175 # +Z the default
9176 ;;
9177 *)
9178 lt_prog_compiler_pic='-fPIC'
9179 ;;
9180 esac
9181 ;;
9182
9183 interix[3-9]*)
9184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9185 # Instead, we relocate shared libraries at runtime.
9186 ;;
9187
9188 msdosdjgpp*)
9189 # Just because we use GCC doesn't mean we suddenly get shared libraries
9190 # on systems that don't support them.
9191 lt_prog_compiler_can_build_shared=no
9192 enable_shared=no
9193 ;;
9194
9195 *nto* | *qnx*)
9196 # QNX uses GNU C++, but need to define -shared option too, otherwise
9197 # it will coredump.
9198 lt_prog_compiler_pic='-fPIC -shared'
9199 ;;
9200
9201 sysv4*MP*)
9202 if test -d /usr/nec; then
9203 lt_prog_compiler_pic=-Kconform_pic
9204 fi
9205 ;;
9206
9207 *)
9208 lt_prog_compiler_pic='-fPIC'
9209 ;;
9210 esac
9211
9212 case $cc_basename in
9213 nvcc*) # Cuda Compiler Driver 2.2
9214 lt_prog_compiler_wl='-Xlinker '
9215 lt_prog_compiler_pic='-Xcompiler -fPIC'
9216 ;;
9217 esac
9218 else
9219 # PORTME Check for flag to pass linker flags through the system compiler.
9220 case $host_os in
9221 aix*)
9222 lt_prog_compiler_wl='-Wl,'
9223 if test "$host_cpu" = ia64; then
9224 # AIX 5 now supports IA64 processor
9225 lt_prog_compiler_static='-Bstatic'
9226 else
9227 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9228 fi
9229 ;;
9230
9231 mingw* | cygwin* | pw32* | os2* | cegcc*)
9232 # This hack is so that the source file can tell whether it is being
9233 # built for inclusion in a dll (and should export symbols for example).
9234 lt_prog_compiler_pic='-DDLL_EXPORT'
9235 ;;
9236
9237 hpux9* | hpux10* | hpux11*)
9238 lt_prog_compiler_wl='-Wl,'
9239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9240 # not for PA HP-UX.
9241 case $host_cpu in
9242 hppa*64*|ia64*)
9243 # +Z the default
9244 ;;
9245 *)
9246 lt_prog_compiler_pic='+Z'
9247 ;;
9248 esac
9249 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9250 lt_prog_compiler_static='${wl}-a ${wl}archive'
9251 ;;
9252
9253 irix5* | irix6* | nonstopux*)
9254 lt_prog_compiler_wl='-Wl,'
9255 # PIC (with -KPIC) is the default.
9256 lt_prog_compiler_static='-non_shared'
9257 ;;
9258
9259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9260 case $cc_basename in
9261 # old Intel for x86_64 which still supported -KPIC.
9262 ecc*)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='-KPIC'
9265 lt_prog_compiler_static='-static'
9266 ;;
9267 # icc used to be incompatible with GCC.
9268 # ICC 10 doesn't accept -KPIC any more.
9269 icc* | ifort*)
9270 lt_prog_compiler_wl='-Wl,'
9271 lt_prog_compiler_pic='-fPIC'
9272 lt_prog_compiler_static='-static'
9273 ;;
9274 # Lahey Fortran 8.1.
9275 lf95*)
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_pic='--shared'
9278 lt_prog_compiler_static='--static'
9279 ;;
9280 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9281 # Portland Group compilers (*not* the Pentium gcc compiler,
9282 # which looks to be a dead project)
9283 lt_prog_compiler_wl='-Wl,'
9284 lt_prog_compiler_pic='-fpic'
9285 lt_prog_compiler_static='-Bstatic'
9286 ;;
9287 ccc*)
9288 lt_prog_compiler_wl='-Wl,'
9289 # All Alpha code is PIC.
9290 lt_prog_compiler_static='-non_shared'
9291 ;;
9292 xl* | bgxl* | bgf* | mpixl*)
9293 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9294 lt_prog_compiler_wl='-Wl,'
9295 lt_prog_compiler_pic='-qpic'
9296 lt_prog_compiler_static='-qstaticlink'
9297 ;;
9298 *)
9299 case `$CC -V 2>&1 | sed 5q` in
9300 *Sun\ F* | *Sun*Fortran*)
9301 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9302 lt_prog_compiler_pic='-KPIC'
9303 lt_prog_compiler_static='-Bstatic'
9304 lt_prog_compiler_wl=''
9305 ;;
9306 *Sun\ C*)
9307 # Sun C 5.9
9308 lt_prog_compiler_pic='-KPIC'
9309 lt_prog_compiler_static='-Bstatic'
9310 lt_prog_compiler_wl='-Wl,'
9311 ;;
9312 esac
9313 ;;
9314 esac
9315 ;;
9316
9317 newsos6)
9318 lt_prog_compiler_pic='-KPIC'
9319 lt_prog_compiler_static='-Bstatic'
9320 ;;
9321
9322 *nto* | *qnx*)
9323 # QNX uses GNU C++, but need to define -shared option too, otherwise
9324 # it will coredump.
9325 lt_prog_compiler_pic='-fPIC -shared'
9326 ;;
9327
9328 osf3* | osf4* | osf5*)
9329 lt_prog_compiler_wl='-Wl,'
9330 # All OSF/1 code is PIC.
9331 lt_prog_compiler_static='-non_shared'
9332 ;;
9333
9334 rdos*)
9335 lt_prog_compiler_static='-non_shared'
9336 ;;
9337
9338 solaris*)
9339 lt_prog_compiler_pic='-KPIC'
9340 lt_prog_compiler_static='-Bstatic'
9341 case $cc_basename in
9342 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9343 lt_prog_compiler_wl='-Qoption ld ';;
9344 *)
9345 lt_prog_compiler_wl='-Wl,';;
9346 esac
9347 ;;
9348
9349 sunos4*)
9350 lt_prog_compiler_wl='-Qoption ld '
9351 lt_prog_compiler_pic='-PIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
9354
9355 sysv4 | sysv4.2uw2* | sysv4.3*)
9356 lt_prog_compiler_wl='-Wl,'
9357 lt_prog_compiler_pic='-KPIC'
9358 lt_prog_compiler_static='-Bstatic'
9359 ;;
9360
9361 sysv4*MP*)
9362 if test -d /usr/nec ;then
9363 lt_prog_compiler_pic='-Kconform_pic'
9364 lt_prog_compiler_static='-Bstatic'
9365 fi
9366 ;;
9367
9368 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_pic='-KPIC'
9371 lt_prog_compiler_static='-Bstatic'
9372 ;;
9373
9374 unicos*)
9375 lt_prog_compiler_wl='-Wl,'
9376 lt_prog_compiler_can_build_shared=no
9377 ;;
9378
9379 uts4*)
9380 lt_prog_compiler_pic='-pic'
9381 lt_prog_compiler_static='-Bstatic'
9382 ;;
9383
9384 *)
9385 lt_prog_compiler_can_build_shared=no
9386 ;;
9387 esac
9388 fi
9389
9390 case $host_os in
9391 # For platforms which do not support PIC, -DPIC is meaningless:
9392 *djgpp*)
9393 lt_prog_compiler_pic=
9394 ;;
9395 *)
9396 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9397 ;;
9398 esac
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9400 $as_echo "$lt_prog_compiler_pic" >&6; }
9401
9402
9403
9404
9405
9406
9407 #
9408 # Check to make sure the PIC flag actually works.
9409 #
9410 if test -n "$lt_prog_compiler_pic"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9412 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9413 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 lt_cv_prog_compiler_pic_works=no
9417 ac_outfile=conftest.$ac_objext
9418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9420 # Insert the option either (1) after the last *FLAGS variable, or
9421 # (2) before a word containing "conftest.", or (3) at the end.
9422 # Note that $ac_compile itself does not contain backslashes and begins
9423 # with a dollar sign (not a hyphen), so the echo should work correctly.
9424 # The option is referenced via a variable to avoid confusing sed.
9425 lt_compile=`echo "$ac_compile" | $SED \
9426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9428 -e 's:$: $lt_compiler_flag:'`
9429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9430 (eval "$lt_compile" 2>conftest.err)
9431 ac_status=$?
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 if (exit $ac_status) && test -s "$ac_outfile"; then
9435 # The compiler can only warn and ignore the option if not recognized
9436 # So say no if there are warnings other than the usual output.
9437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9440 lt_cv_prog_compiler_pic_works=yes
9441 fi
9442 fi
9443 $RM conftest*
9444
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9447 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9448
9449 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9450 case $lt_prog_compiler_pic in
9451 "" | " "*) ;;
9452 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9453 esac
9454 else
9455 lt_prog_compiler_pic=
9456 lt_prog_compiler_can_build_shared=no
9457 fi
9458
9459 fi
9460
9461
9462
9463
9464
9465
9466 #
9467 # Check to make sure the static flag actually works.
9468 #
9469 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9471 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9472 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 lt_cv_prog_compiler_static_works=no
9476 save_LDFLAGS="$LDFLAGS"
9477 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9480 # The linker can only warn and ignore the option if not recognized
9481 # So say no if there are warnings
9482 if test -s conftest.err; then
9483 # Append any errors to the config.log.
9484 cat conftest.err 1>&5
9485 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9487 if diff conftest.exp conftest.er2 >/dev/null; then
9488 lt_cv_prog_compiler_static_works=yes
9489 fi
9490 else
9491 lt_cv_prog_compiler_static_works=yes
9492 fi
9493 fi
9494 $RM -r conftest*
9495 LDFLAGS="$save_LDFLAGS"
9496
9497 fi
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9499 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9500
9501 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9502 :
9503 else
9504 lt_prog_compiler_static=
9505 fi
9506
9507
9508
9509
9510
9511
9512
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9514 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9515 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 lt_cv_prog_compiler_c_o=no
9519 $RM -r conftest 2>/dev/null
9520 mkdir conftest
9521 cd conftest
9522 mkdir out
9523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9524
9525 lt_compiler_flag="-o out/conftest2.$ac_objext"
9526 # Insert the option either (1) after the last *FLAGS variable, or
9527 # (2) before a word containing "conftest.", or (3) at the end.
9528 # Note that $ac_compile itself does not contain backslashes and begins
9529 # with a dollar sign (not a hyphen), so the echo should work correctly.
9530 lt_compile=`echo "$ac_compile" | $SED \
9531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9533 -e 's:$: $lt_compiler_flag:'`
9534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9535 (eval "$lt_compile" 2>out/conftest.err)
9536 ac_status=$?
9537 cat out/conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9540 then
9541 # The compiler can only warn and ignore the option if not recognized
9542 # So say no if there are warnings
9543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9546 lt_cv_prog_compiler_c_o=yes
9547 fi
9548 fi
9549 chmod u+w . 2>&5
9550 $RM conftest*
9551 # SGI C++ compiler will create directory out/ii_files/ for
9552 # template instantiation
9553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9554 $RM out/* && rmdir out
9555 cd ..
9556 $RM -r conftest
9557 $RM conftest*
9558
9559 fi
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9561 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9562
9563
9564
9565
9566
9567
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9569 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9570 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 lt_cv_prog_compiler_c_o=no
9574 $RM -r conftest 2>/dev/null
9575 mkdir conftest
9576 cd conftest
9577 mkdir out
9578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9579
9580 lt_compiler_flag="-o out/conftest2.$ac_objext"
9581 # Insert the option either (1) after the last *FLAGS variable, or
9582 # (2) before a word containing "conftest.", or (3) at the end.
9583 # Note that $ac_compile itself does not contain backslashes and begins
9584 # with a dollar sign (not a hyphen), so the echo should work correctly.
9585 lt_compile=`echo "$ac_compile" | $SED \
9586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9588 -e 's:$: $lt_compiler_flag:'`
9589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9590 (eval "$lt_compile" 2>out/conftest.err)
9591 ac_status=$?
9592 cat out/conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9595 then
9596 # The compiler can only warn and ignore the option if not recognized
9597 # So say no if there are warnings
9598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9599 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9600 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9601 lt_cv_prog_compiler_c_o=yes
9602 fi
9603 fi
9604 chmod u+w . 2>&5
9605 $RM conftest*
9606 # SGI C++ compiler will create directory out/ii_files/ for
9607 # template instantiation
9608 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9609 $RM out/* && rmdir out
9610 cd ..
9611 $RM -r conftest
9612 $RM conftest*
9613
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9616 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9617
9618
9619
9620
9621 hard_links="nottested"
9622 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9623 # do not overwrite the value of need_locks provided by the user
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9625 $as_echo_n "checking if we can lock with hard links... " >&6; }
9626 hard_links=yes
9627 $RM conftest*
9628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9629 touch conftest.a
9630 ln conftest.a conftest.b 2>&5 || hard_links=no
9631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9633 $as_echo "$hard_links" >&6; }
9634 if test "$hard_links" = no; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9636 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9637 need_locks=warn
9638 fi
9639 else
9640 need_locks=no
9641 fi
9642
9643
9644
9645
9646
9647
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9649 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9650
9651 runpath_var=
9652 allow_undefined_flag=
9653 always_export_symbols=no
9654 archive_cmds=
9655 archive_expsym_cmds=
9656 compiler_needs_object=no
9657 enable_shared_with_static_runtimes=no
9658 export_dynamic_flag_spec=
9659 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9660 hardcode_automatic=no
9661 hardcode_direct=no
9662 hardcode_direct_absolute=no
9663 hardcode_libdir_flag_spec=
9664 hardcode_libdir_flag_spec_ld=
9665 hardcode_libdir_separator=
9666 hardcode_minus_L=no
9667 hardcode_shlibpath_var=unsupported
9668 inherit_rpath=no
9669 link_all_deplibs=unknown
9670 module_cmds=
9671 module_expsym_cmds=
9672 old_archive_from_new_cmds=
9673 old_archive_from_expsyms_cmds=
9674 thread_safe_flag_spec=
9675 whole_archive_flag_spec=
9676 # include_expsyms should be a list of space-separated symbols to be *always*
9677 # included in the symbol list
9678 include_expsyms=
9679 # exclude_expsyms can be an extended regexp of symbols to exclude
9680 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9681 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9682 # as well as any symbol that contains `d'.
9683 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9684 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9685 # platforms (ab)use it in PIC code, but their linkers get confused if
9686 # the symbol is explicitly referenced. Since portable code cannot
9687 # rely on this symbol name, it's probably fine to never include it in
9688 # preloaded symbol tables.
9689 # Exclude shared library initialization/finalization symbols.
9690 extract_expsyms_cmds=
9691
9692 case $host_os in
9693 cygwin* | mingw* | pw32* | cegcc*)
9694 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9695 # When not using gcc, we currently assume that we are using
9696 # Microsoft Visual C++.
9697 if test "$GCC" != yes; then
9698 with_gnu_ld=no
9699 fi
9700 ;;
9701 interix*)
9702 # we just hope/assume this is gcc and not c89 (= MSVC++)
9703 with_gnu_ld=yes
9704 ;;
9705 openbsd*)
9706 with_gnu_ld=no
9707 ;;
9708 esac
9709
9710 ld_shlibs=yes
9711
9712 # On some targets, GNU ld is compatible enough with the native linker
9713 # that we're better off using the native interface for both.
9714 lt_use_gnu_ld_interface=no
9715 if test "$with_gnu_ld" = yes; then
9716 case $host_os in
9717 aix*)
9718 # The AIX port of GNU ld has always aspired to compatibility
9719 # with the native linker. However, as the warning in the GNU ld
9720 # block says, versions before 2.19.5* couldn't really create working
9721 # shared libraries, regardless of the interface used.
9722 case `$LD -v 2>&1` in
9723 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9724 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9725 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9726 *)
9727 lt_use_gnu_ld_interface=yes
9728 ;;
9729 esac
9730 ;;
9731 *)
9732 lt_use_gnu_ld_interface=yes
9733 ;;
9734 esac
9735 fi
9736
9737 if test "$lt_use_gnu_ld_interface" = yes; then
9738 # If archive_cmds runs LD, not CC, wlarc should be empty
9739 wlarc='${wl}'
9740
9741 # Set some defaults for GNU ld with shared library support. These
9742 # are reset later if shared libraries are not supported. Putting them
9743 # here allows them to be overridden if necessary.
9744 runpath_var=LD_RUN_PATH
9745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9746 export_dynamic_flag_spec='${wl}--export-dynamic'
9747 # ancient GNU ld didn't support --whole-archive et. al.
9748 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9749 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9750 else
9751 whole_archive_flag_spec=
9752 fi
9753 supports_anon_versioning=no
9754 case `$LD -v 2>&1` in
9755 *GNU\ gold*) supports_anon_versioning=yes ;;
9756 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9757 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9758 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9759 *\ 2.11.*) ;; # other 2.11 versions
9760 *) supports_anon_versioning=yes ;;
9761 esac
9762
9763 # See if GNU ld supports shared libraries.
9764 case $host_os in
9765 aix[3-9]*)
9766 # On AIX/PPC, the GNU linker is very broken
9767 if test "$host_cpu" != ia64; then
9768 ld_shlibs=no
9769 cat <<_LT_EOF 1>&2
9770
9771 *** Warning: the GNU linker, at least up to release 2.19, is reported
9772 *** to be unable to reliably create shared libraries on AIX.
9773 *** Therefore, libtool is disabling shared libraries support. If you
9774 *** really care for shared libraries, you may want to install binutils
9775 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9776 *** You will then need to restart the configuration process.
9777
9778 _LT_EOF
9779 fi
9780 ;;
9781
9782 amigaos*)
9783 case $host_cpu in
9784 powerpc)
9785 # see comment about AmigaOS4 .so support
9786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787 archive_expsym_cmds=''
9788 ;;
9789 m68k)
9790 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)'
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 hardcode_minus_L=yes
9793 ;;
9794 esac
9795 ;;
9796
9797 beos*)
9798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9799 allow_undefined_flag=unsupported
9800 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9801 # support --undefined. This deserves some investigation. FIXME
9802 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803 else
9804 ld_shlibs=no
9805 fi
9806 ;;
9807
9808 cygwin* | mingw* | pw32* | cegcc*)
9809 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9810 # as there is no search path for DLLs.
9811 hardcode_libdir_flag_spec='-L$libdir'
9812 export_dynamic_flag_spec='${wl}--export-all-symbols'
9813 allow_undefined_flag=unsupported
9814 always_export_symbols=no
9815 enable_shared_with_static_runtimes=yes
9816 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9817
9818 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9820 # If the export-symbols file already is a .def file (1st line
9821 # is EXPORTS), use it as is; otherwise, prepend...
9822 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9823 cp $export_symbols $output_objdir/$soname.def;
9824 else
9825 echo EXPORTS > $output_objdir/$soname.def;
9826 cat $export_symbols >> $output_objdir/$soname.def;
9827 fi~
9828 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9829 else
9830 ld_shlibs=no
9831 fi
9832 ;;
9833
9834 haiku*)
9835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836 link_all_deplibs=yes
9837 ;;
9838
9839 interix[3-9]*)
9840 hardcode_direct=no
9841 hardcode_shlibpath_var=no
9842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9843 export_dynamic_flag_spec='${wl}-E'
9844 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9845 # Instead, shared libraries are loaded at an image base (0x10000000 by
9846 # default) and relocated if they conflict, which is a slow very memory
9847 # consuming and fragmenting process. To avoid this, we pick a random,
9848 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9849 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9850 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9851 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'
9852 ;;
9853
9854 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9855 tmp_diet=no
9856 if test "$host_os" = linux-dietlibc; then
9857 case $cc_basename in
9858 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9859 esac
9860 fi
9861 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9862 && test "$tmp_diet" = no
9863 then
9864 tmp_addflag=
9865 tmp_sharedflag='-shared'
9866 case $cc_basename,$host_cpu in
9867 pgcc*) # Portland Group C compiler
9868 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'
9869 tmp_addflag=' $pic_flag'
9870 ;;
9871 pgf77* | pgf90* | pgf95* | pgfortran*)
9872 # Portland Group f77 and f90 compilers
9873 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'
9874 tmp_addflag=' $pic_flag -Mnomain' ;;
9875 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9876 tmp_addflag=' -i_dynamic' ;;
9877 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9878 tmp_addflag=' -i_dynamic -nofor_main' ;;
9879 ifc* | ifort*) # Intel Fortran compiler
9880 tmp_addflag=' -nofor_main' ;;
9881 lf95*) # Lahey Fortran 8.1
9882 whole_archive_flag_spec=
9883 tmp_sharedflag='--shared' ;;
9884 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9885 tmp_sharedflag='-qmkshrobj'
9886 tmp_addflag= ;;
9887 nvcc*) # Cuda Compiler Driver 2.2
9888 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'
9889 compiler_needs_object=yes
9890 ;;
9891 esac
9892 case `$CC -V 2>&1 | sed 5q` in
9893 *Sun\ C*) # Sun C 5.9
9894 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'
9895 compiler_needs_object=yes
9896 tmp_sharedflag='-G' ;;
9897 *Sun\ F*) # Sun Fortran 8.3
9898 tmp_sharedflag='-G' ;;
9899 esac
9900 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9901
9902 if test "x$supports_anon_versioning" = xyes; then
9903 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9904 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9905 echo "local: *; };" >> $output_objdir/$libname.ver~
9906 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9907 fi
9908
9909 case $cc_basename in
9910 xlf* | bgf* | bgxlf* | mpixlf*)
9911 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9912 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9913 hardcode_libdir_flag_spec=
9914 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9915 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9916 if test "x$supports_anon_versioning" = xyes; then
9917 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9918 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9919 echo "local: *; };" >> $output_objdir/$libname.ver~
9920 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9921 fi
9922 ;;
9923 esac
9924 else
9925 ld_shlibs=no
9926 fi
9927 ;;
9928
9929 netbsd*)
9930 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9931 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9932 wlarc=
9933 else
9934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9936 fi
9937 ;;
9938
9939 solaris*)
9940 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9941 ld_shlibs=no
9942 cat <<_LT_EOF 1>&2
9943
9944 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9945 *** create shared libraries on Solaris systems. Therefore, libtool
9946 *** is disabling shared libraries support. We urge you to upgrade GNU
9947 *** binutils to release 2.9.1 or newer. Another option is to modify
9948 *** your PATH or compiler configuration so that the native linker is
9949 *** used, and then restart.
9950
9951 _LT_EOF
9952 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9955 else
9956 ld_shlibs=no
9957 fi
9958 ;;
9959
9960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9961 case `$LD -v 2>&1` in
9962 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9963 ld_shlibs=no
9964 cat <<_LT_EOF 1>&2
9965
9966 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9967 *** reliably create shared libraries on SCO systems. Therefore, libtool
9968 *** is disabling shared libraries support. We urge you to upgrade GNU
9969 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9970 *** your PATH or compiler configuration so that the native linker is
9971 *** used, and then restart.
9972
9973 _LT_EOF
9974 ;;
9975 *)
9976 # For security reasons, it is highly recommended that you always
9977 # use absolute paths for naming shared libraries, and exclude the
9978 # DT_RUNPATH tag from executables and libraries. But doing so
9979 # requires that you compile everything twice, which is a pain.
9980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9984 else
9985 ld_shlibs=no
9986 fi
9987 ;;
9988 esac
9989 ;;
9990
9991 sunos4*)
9992 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9993 wlarc=
9994 hardcode_direct=yes
9995 hardcode_shlibpath_var=no
9996 ;;
9997
9998 *)
9999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10002 else
10003 ld_shlibs=no
10004 fi
10005 ;;
10006 esac
10007
10008 if test "$ld_shlibs" = no; then
10009 runpath_var=
10010 hardcode_libdir_flag_spec=
10011 export_dynamic_flag_spec=
10012 whole_archive_flag_spec=
10013 fi
10014 else
10015 # PORTME fill in a description of your system's linker (not GNU ld)
10016 case $host_os in
10017 aix3*)
10018 allow_undefined_flag=unsupported
10019 always_export_symbols=yes
10020 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'
10021 # Note: this linker hardcodes the directories in LIBPATH if there
10022 # are no directories specified by -L.
10023 hardcode_minus_L=yes
10024 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10025 # Neither direct hardcoding nor static linking is supported with a
10026 # broken collect2.
10027 hardcode_direct=unsupported
10028 fi
10029 ;;
10030
10031 aix[4-9]*)
10032 if test "$host_cpu" = ia64; then
10033 # On IA64, the linker does run time linking by default, so we don't
10034 # have to do anything special.
10035 aix_use_runtimelinking=no
10036 exp_sym_flag='-Bexport'
10037 no_entry_flag=""
10038 else
10039 # If we're using GNU nm, then we don't want the "-C" option.
10040 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10041 # Also, AIX nm treats weak defined symbols like other global
10042 # defined symbols, whereas GNU nm marks them as "W".
10043 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10044 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'
10045 else
10046 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'
10047 fi
10048 aix_use_runtimelinking=no
10049
10050 # Test if we are trying to use run time linking or normal
10051 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10052 # need to do runtime linking.
10053 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10054 for ld_flag in $LDFLAGS; do
10055 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10056 aix_use_runtimelinking=yes
10057 break
10058 fi
10059 done
10060 ;;
10061 esac
10062
10063 exp_sym_flag='-bexport'
10064 no_entry_flag='-bnoentry'
10065 fi
10066
10067 # When large executables or shared objects are built, AIX ld can
10068 # have problems creating the table of contents. If linking a library
10069 # or program results in "error TOC overflow" add -mminimal-toc to
10070 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10071 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10072
10073 archive_cmds=''
10074 hardcode_direct=yes
10075 hardcode_direct_absolute=yes
10076 hardcode_libdir_separator=':'
10077 link_all_deplibs=yes
10078 file_list_spec='${wl}-f,'
10079
10080 if test "$GCC" = yes; then
10081 case $host_os in aix4.[012]|aix4.[012].*)
10082 # We only want to do this on AIX 4.2 and lower, the check
10083 # below for broken collect2 doesn't work under 4.3+
10084 collect2name=`${CC} -print-prog-name=collect2`
10085 if test -f "$collect2name" &&
10086 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10087 then
10088 # We have reworked collect2
10089 :
10090 else
10091 # We have old collect2
10092 hardcode_direct=unsupported
10093 # It fails to find uninstalled libraries when the uninstalled
10094 # path is not listed in the libpath. Setting hardcode_minus_L
10095 # to unsupported forces relinking
10096 hardcode_minus_L=yes
10097 hardcode_libdir_flag_spec='-L$libdir'
10098 hardcode_libdir_separator=
10099 fi
10100 ;;
10101 esac
10102 shared_flag='-shared'
10103 if test "$aix_use_runtimelinking" = yes; then
10104 shared_flag="$shared_flag "'${wl}-G'
10105 fi
10106 else
10107 # not using gcc
10108 if test "$host_cpu" = ia64; then
10109 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10110 # chokes on -Wl,-G. The following line is correct:
10111 shared_flag='-G'
10112 else
10113 if test "$aix_use_runtimelinking" = yes; then
10114 shared_flag='${wl}-G'
10115 else
10116 shared_flag='${wl}-bM:SRE'
10117 fi
10118 fi
10119 fi
10120
10121 export_dynamic_flag_spec='${wl}-bexpall'
10122 # It seems that -bexpall does not export symbols beginning with
10123 # underscore (_), so it is better to generate a list of symbols to export.
10124 always_export_symbols=yes
10125 if test "$aix_use_runtimelinking" = yes; then
10126 # Warning - without using the other runtime loading flags (-brtl),
10127 # -berok will link without error, but may produce a broken library.
10128 allow_undefined_flag='-berok'
10129 # Determine the default libpath from the value encoded in an
10130 # empty executable.
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133
10134 int
10135 main ()
10136 {
10137
10138 ;
10139 return 0;
10140 }
10141 _ACEOF
10142 if ac_fn_c_try_link "$LINENO"; then :
10143
10144 lt_aix_libpath_sed='
10145 /Import File Strings/,/^$/ {
10146 /^0/ {
10147 s/^0 *\(.*\)$/\1/
10148 p
10149 }
10150 }'
10151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152 # Check for a 64-bit object if we didn't find anything.
10153 if test -z "$aix_libpath"; then
10154 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10155 fi
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10160
10161 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10162 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"
10163 else
10164 if test "$host_cpu" = ia64; then
10165 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10166 allow_undefined_flag="-z nodefs"
10167 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"
10168 else
10169 # Determine the default libpath from the value encoded in an
10170 # empty executable.
10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10173
10174 int
10175 main ()
10176 {
10177
10178 ;
10179 return 0;
10180 }
10181 _ACEOF
10182 if ac_fn_c_try_link "$LINENO"; then :
10183
10184 lt_aix_libpath_sed='
10185 /Import File Strings/,/^$/ {
10186 /^0/ {
10187 s/^0 *\(.*\)$/\1/
10188 p
10189 }
10190 }'
10191 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10192 # Check for a 64-bit object if we didn't find anything.
10193 if test -z "$aix_libpath"; then
10194 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10195 fi
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10200
10201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10202 # Warning - without using the other run time loading flags,
10203 # -berok will link without error, but may produce a broken library.
10204 no_undefined_flag=' ${wl}-bernotok'
10205 allow_undefined_flag=' ${wl}-berok'
10206 if test "$with_gnu_ld" = yes; then
10207 # We only use this code for GNU lds that support --whole-archive.
10208 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10209 else
10210 # Exported symbols can be pulled into shared objects from archives
10211 whole_archive_flag_spec='$convenience'
10212 fi
10213 archive_cmds_need_lc=yes
10214 # This is similar to how AIX traditionally builds its shared libraries.
10215 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'
10216 fi
10217 fi
10218 ;;
10219
10220 amigaos*)
10221 case $host_cpu in
10222 powerpc)
10223 # see comment about AmigaOS4 .so support
10224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10225 archive_expsym_cmds=''
10226 ;;
10227 m68k)
10228 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)'
10229 hardcode_libdir_flag_spec='-L$libdir'
10230 hardcode_minus_L=yes
10231 ;;
10232 esac
10233 ;;
10234
10235 bsdi[45]*)
10236 export_dynamic_flag_spec=-rdynamic
10237 ;;
10238
10239 cygwin* | mingw* | pw32* | cegcc*)
10240 # When not using gcc, we currently assume that we are using
10241 # Microsoft Visual C++.
10242 # hardcode_libdir_flag_spec is actually meaningless, as there is
10243 # no search path for DLLs.
10244 hardcode_libdir_flag_spec=' '
10245 allow_undefined_flag=unsupported
10246 # Tell ltmain to make .lib files, not .a files.
10247 libext=lib
10248 # Tell ltmain to make .dll files, not .so files.
10249 shrext_cmds=".dll"
10250 # FIXME: Setting linknames here is a bad hack.
10251 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10252 # The linker will automatically build a .lib file if we build a DLL.
10253 old_archive_from_new_cmds='true'
10254 # FIXME: Should let the user specify the lib program.
10255 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10256 fix_srcfile_path='`cygpath -w "$srcfile"`'
10257 enable_shared_with_static_runtimes=yes
10258 ;;
10259
10260 darwin* | rhapsody*)
10261
10262
10263 archive_cmds_need_lc=no
10264 hardcode_direct=no
10265 hardcode_automatic=yes
10266 hardcode_shlibpath_var=unsupported
10267 if test "$lt_cv_ld_force_load" = "yes"; then
10268 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\"`'
10269 else
10270 whole_archive_flag_spec=''
10271 fi
10272 link_all_deplibs=yes
10273 allow_undefined_flag="$_lt_dar_allow_undefined"
10274 case $cc_basename in
10275 ifort*) _lt_dar_can_shared=yes ;;
10276 *) _lt_dar_can_shared=$GCC ;;
10277 esac
10278 if test "$_lt_dar_can_shared" = "yes"; then
10279 output_verbose_link_cmd=func_echo_all
10280 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10281 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10282 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}"
10283 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}"
10284
10285 else
10286 ld_shlibs=no
10287 fi
10288
10289 ;;
10290
10291 dgux*)
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_libdir_flag_spec='-L$libdir'
10294 hardcode_shlibpath_var=no
10295 ;;
10296
10297 freebsd1*)
10298 ld_shlibs=no
10299 ;;
10300
10301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10302 # support. Future versions do this automatically, but an explicit c++rt0.o
10303 # does not break anything, and helps significantly (at the cost of a little
10304 # extra space).
10305 freebsd2.2*)
10306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10307 hardcode_libdir_flag_spec='-R$libdir'
10308 hardcode_direct=yes
10309 hardcode_shlibpath_var=no
10310 ;;
10311
10312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10313 freebsd2*)
10314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_direct=yes
10316 hardcode_minus_L=yes
10317 hardcode_shlibpath_var=no
10318 ;;
10319
10320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10321 freebsd* | dragonfly*)
10322 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10323 hardcode_libdir_flag_spec='-R$libdir'
10324 hardcode_direct=yes
10325 hardcode_shlibpath_var=no
10326 ;;
10327
10328 hpux9*)
10329 if test "$GCC" = yes; then
10330 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'
10331 else
10332 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'
10333 fi
10334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10335 hardcode_libdir_separator=:
10336 hardcode_direct=yes
10337
10338 # hardcode_minus_L: Not really in the search PATH,
10339 # but as the default location of the library.
10340 hardcode_minus_L=yes
10341 export_dynamic_flag_spec='${wl}-E'
10342 ;;
10343
10344 hpux10*)
10345 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10347 else
10348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10349 fi
10350 if test "$with_gnu_ld" = no; then
10351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10352 hardcode_libdir_flag_spec_ld='+b $libdir'
10353 hardcode_libdir_separator=:
10354 hardcode_direct=yes
10355 hardcode_direct_absolute=yes
10356 export_dynamic_flag_spec='${wl}-E'
10357 # hardcode_minus_L: Not really in the search PATH,
10358 # but as the default location of the library.
10359 hardcode_minus_L=yes
10360 fi
10361 ;;
10362
10363 hpux11*)
10364 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10365 case $host_cpu in
10366 hppa*64*)
10367 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10368 ;;
10369 ia64*)
10370 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10371 ;;
10372 *)
10373 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10374 ;;
10375 esac
10376 else
10377 case $host_cpu in
10378 hppa*64*)
10379 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 ;;
10381 ia64*)
10382 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10383 ;;
10384 *)
10385
10386 # Older versions of the 11.00 compiler do not understand -b yet
10387 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10389 $as_echo_n "checking if $CC understands -b... " >&6; }
10390 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 lt_cv_prog_compiler__b=no
10394 save_LDFLAGS="$LDFLAGS"
10395 LDFLAGS="$LDFLAGS -b"
10396 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10398 # The linker can only warn and ignore the option if not recognized
10399 # So say no if there are warnings
10400 if test -s conftest.err; then
10401 # Append any errors to the config.log.
10402 cat conftest.err 1>&5
10403 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10405 if diff conftest.exp conftest.er2 >/dev/null; then
10406 lt_cv_prog_compiler__b=yes
10407 fi
10408 else
10409 lt_cv_prog_compiler__b=yes
10410 fi
10411 fi
10412 $RM -r conftest*
10413 LDFLAGS="$save_LDFLAGS"
10414
10415 fi
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10417 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10418
10419 if test x"$lt_cv_prog_compiler__b" = xyes; then
10420 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10421 else
10422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10423 fi
10424
10425 ;;
10426 esac
10427 fi
10428 if test "$with_gnu_ld" = no; then
10429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10430 hardcode_libdir_separator=:
10431
10432 case $host_cpu in
10433 hppa*64*|ia64*)
10434 hardcode_direct=no
10435 hardcode_shlibpath_var=no
10436 ;;
10437 *)
10438 hardcode_direct=yes
10439 hardcode_direct_absolute=yes
10440 export_dynamic_flag_spec='${wl}-E'
10441
10442 # hardcode_minus_L: Not really in the search PATH,
10443 # but as the default location of the library.
10444 hardcode_minus_L=yes
10445 ;;
10446 esac
10447 fi
10448 ;;
10449
10450 irix5* | irix6* | nonstopux*)
10451 if test "$GCC" = yes; then
10452 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'
10453 # Try to use the -exported_symbol ld option, if it does not
10454 # work, assume that -exports_file does not work either and
10455 # implicitly export all symbols.
10456 save_LDFLAGS="$LDFLAGS"
10457 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460 int foo(void) {}
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463 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'
10464
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10468 LDFLAGS="$save_LDFLAGS"
10469 else
10470 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'
10471 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'
10472 fi
10473 archive_cmds_need_lc='no'
10474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10475 hardcode_libdir_separator=:
10476 inherit_rpath=yes
10477 link_all_deplibs=yes
10478 ;;
10479
10480 netbsd*)
10481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10483 else
10484 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10485 fi
10486 hardcode_libdir_flag_spec='-R$libdir'
10487 hardcode_direct=yes
10488 hardcode_shlibpath_var=no
10489 ;;
10490
10491 newsos6)
10492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493 hardcode_direct=yes
10494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10495 hardcode_libdir_separator=:
10496 hardcode_shlibpath_var=no
10497 ;;
10498
10499 *nto* | *qnx*)
10500 ;;
10501
10502 openbsd*)
10503 if test -f /usr/libexec/ld.so; then
10504 hardcode_direct=yes
10505 hardcode_shlibpath_var=no
10506 hardcode_direct_absolute=yes
10507 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10508 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10509 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10510 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10511 export_dynamic_flag_spec='${wl}-E'
10512 else
10513 case $host_os in
10514 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10516 hardcode_libdir_flag_spec='-R$libdir'
10517 ;;
10518 *)
10519 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10520 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10521 ;;
10522 esac
10523 fi
10524 else
10525 ld_shlibs=no
10526 fi
10527 ;;
10528
10529 os2*)
10530 hardcode_libdir_flag_spec='-L$libdir'
10531 hardcode_minus_L=yes
10532 allow_undefined_flag=unsupported
10533 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'
10534 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10535 ;;
10536
10537 osf3*)
10538 if test "$GCC" = yes; then
10539 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10540 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'
10541 else
10542 allow_undefined_flag=' -expect_unresolved \*'
10543 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'
10544 fi
10545 archive_cmds_need_lc='no'
10546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10547 hardcode_libdir_separator=:
10548 ;;
10549
10550 osf4* | osf5*) # as osf3* with the addition of -msym flag
10551 if test "$GCC" = yes; then
10552 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10553 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'
10554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10555 else
10556 allow_undefined_flag=' -expect_unresolved \*'
10557 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'
10558 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~
10559 $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'
10560
10561 # Both c and cxx compiler support -rpath directly
10562 hardcode_libdir_flag_spec='-rpath $libdir'
10563 fi
10564 archive_cmds_need_lc='no'
10565 hardcode_libdir_separator=:
10566 ;;
10567
10568 solaris*)
10569 no_undefined_flag=' -z defs'
10570 if test "$GCC" = yes; then
10571 wlarc='${wl}'
10572 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10573 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10574 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10575 else
10576 case `$CC -V 2>&1` in
10577 *"Compilers 5.0"*)
10578 wlarc=''
10579 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10581 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10582 ;;
10583 *)
10584 wlarc='${wl}'
10585 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10587 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10588 ;;
10589 esac
10590 fi
10591 hardcode_libdir_flag_spec='-R$libdir'
10592 hardcode_shlibpath_var=no
10593 case $host_os in
10594 solaris2.[0-5] | solaris2.[0-5].*) ;;
10595 *)
10596 # The compiler driver will combine and reorder linker options,
10597 # but understands `-z linker_flag'. GCC discards it without `$wl',
10598 # but is careful enough not to reorder.
10599 # Supported since Solaris 2.6 (maybe 2.5.1?)
10600 if test "$GCC" = yes; then
10601 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10602 else
10603 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10604 fi
10605 ;;
10606 esac
10607 link_all_deplibs=yes
10608 ;;
10609
10610 sunos4*)
10611 if test "x$host_vendor" = xsequent; then
10612 # Use $CC to link under sequent, because it throws in some extra .o
10613 # files that make .init and .fini sections work.
10614 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10615 else
10616 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10617 fi
10618 hardcode_libdir_flag_spec='-L$libdir'
10619 hardcode_direct=yes
10620 hardcode_minus_L=yes
10621 hardcode_shlibpath_var=no
10622 ;;
10623
10624 sysv4)
10625 case $host_vendor in
10626 sni)
10627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_direct=yes # is this really true???
10629 ;;
10630 siemens)
10631 ## LD is ld it makes a PLAMLIB
10632 ## CC just makes a GrossModule.
10633 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10634 reload_cmds='$CC -r -o $output$reload_objs'
10635 hardcode_direct=no
10636 ;;
10637 motorola)
10638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10640 ;;
10641 esac
10642 runpath_var='LD_RUN_PATH'
10643 hardcode_shlibpath_var=no
10644 ;;
10645
10646 sysv4.3*)
10647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648 hardcode_shlibpath_var=no
10649 export_dynamic_flag_spec='-Bexport'
10650 ;;
10651
10652 sysv4*MP*)
10653 if test -d /usr/nec; then
10654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10655 hardcode_shlibpath_var=no
10656 runpath_var=LD_RUN_PATH
10657 hardcode_runpath_var=yes
10658 ld_shlibs=yes
10659 fi
10660 ;;
10661
10662 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10663 no_undefined_flag='${wl}-z,text'
10664 archive_cmds_need_lc=no
10665 hardcode_shlibpath_var=no
10666 runpath_var='LD_RUN_PATH'
10667
10668 if test "$GCC" = yes; then
10669 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 else
10672 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674 fi
10675 ;;
10676
10677 sysv5* | sco3.2v5* | sco5v6*)
10678 # Note: We can NOT use -z defs as we might desire, because we do not
10679 # link with -lc, and that would cause any symbols used from libc to
10680 # always be unresolved, which means just about no library would
10681 # ever link correctly. If we're not using GNU ld we use -z text
10682 # though, which does catch some bad symbols but isn't as heavy-handed
10683 # as -z defs.
10684 no_undefined_flag='${wl}-z,text'
10685 allow_undefined_flag='${wl}-z,nodefs'
10686 archive_cmds_need_lc=no
10687 hardcode_shlibpath_var=no
10688 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10689 hardcode_libdir_separator=':'
10690 link_all_deplibs=yes
10691 export_dynamic_flag_spec='${wl}-Bexport'
10692 runpath_var='LD_RUN_PATH'
10693
10694 if test "$GCC" = yes; then
10695 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10696 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 else
10698 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10700 fi
10701 ;;
10702
10703 uts4*)
10704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10705 hardcode_libdir_flag_spec='-L$libdir'
10706 hardcode_shlibpath_var=no
10707 ;;
10708
10709 *)
10710 ld_shlibs=no
10711 ;;
10712 esac
10713
10714 if test x$host_vendor = xsni; then
10715 case $host in
10716 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10717 export_dynamic_flag_spec='${wl}-Blargedynsym'
10718 ;;
10719 esac
10720 fi
10721 fi
10722
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10724 $as_echo "$ld_shlibs" >&6; }
10725 test "$ld_shlibs" = no && can_build_shared=no
10726
10727 with_gnu_ld=$with_gnu_ld
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743 #
10744 # Do we need to explicitly link libc?
10745 #
10746 case "x$archive_cmds_need_lc" in
10747 x|xyes)
10748 # Assume -lc should be added
10749 archive_cmds_need_lc=yes
10750
10751 if test "$enable_shared" = yes && test "$GCC" = yes; then
10752 case $archive_cmds in
10753 *'~'*)
10754 # FIXME: we may have to deal with multi-command sequences.
10755 ;;
10756 '$CC '*)
10757 # Test whether the compiler implicitly links with -lc since on some
10758 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10759 # to ld, don't add -lc before -lgcc.
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10761 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10762 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 $RM conftest*
10766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10767
10768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10769 (eval $ac_compile) 2>&5
10770 ac_status=$?
10771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10772 test $ac_status = 0; } 2>conftest.err; then
10773 soname=conftest
10774 lib=conftest
10775 libobjs=conftest.$ac_objext
10776 deplibs=
10777 wl=$lt_prog_compiler_wl
10778 pic_flag=$lt_prog_compiler_pic
10779 compiler_flags=-v
10780 linker_flags=-v
10781 verstring=
10782 output_objdir=.
10783 libname=conftest
10784 lt_save_allow_undefined_flag=$allow_undefined_flag
10785 allow_undefined_flag=
10786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10787 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10788 ac_status=$?
10789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10790 test $ac_status = 0; }
10791 then
10792 lt_cv_archive_cmds_need_lc=no
10793 else
10794 lt_cv_archive_cmds_need_lc=yes
10795 fi
10796 allow_undefined_flag=$lt_save_allow_undefined_flag
10797 else
10798 cat conftest.err 1>&5
10799 fi
10800 $RM conftest*
10801
10802 fi
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10804 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10805 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10806 ;;
10807 esac
10808 fi
10809 ;;
10810 esac
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10969 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10970
10971 if test "$GCC" = yes; then
10972 case $host_os in
10973 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10974 *) lt_awk_arg="/^libraries:/" ;;
10975 esac
10976 case $host_os in
10977 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10978 *) lt_sed_strip_eq="s,=/,/,g" ;;
10979 esac
10980 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10981 case $lt_search_path_spec in
10982 *\;*)
10983 # if the path contains ";" then we assume it to be the separator
10984 # otherwise default to the standard path separator (i.e. ":") - it is
10985 # assumed that no part of a normal pathname contains ";" but that should
10986 # okay in the real world where ";" in dirpaths is itself problematic.
10987 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10988 ;;
10989 *)
10990 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10991 ;;
10992 esac
10993 # Ok, now we have the path, separated by spaces, we can step through it
10994 # and add multilib dir if necessary.
10995 lt_tmp_lt_search_path_spec=
10996 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10997 for lt_sys_path in $lt_search_path_spec; do
10998 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10999 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11000 else
11001 test -d "$lt_sys_path" && \
11002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11003 fi
11004 done
11005 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11006 BEGIN {RS=" "; FS="/|\n";} {
11007 lt_foo="";
11008 lt_count=0;
11009 for (lt_i = NF; lt_i > 0; lt_i--) {
11010 if ($lt_i != "" && $lt_i != ".") {
11011 if ($lt_i == "..") {
11012 lt_count++;
11013 } else {
11014 if (lt_count == 0) {
11015 lt_foo="/" $lt_i lt_foo;
11016 } else {
11017 lt_count--;
11018 }
11019 }
11020 }
11021 }
11022 if (lt_foo != "") { lt_freq[lt_foo]++; }
11023 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11024 }'`
11025 # AWK program above erroneously prepends '/' to C:/dos/paths
11026 # for these hosts.
11027 case $host_os in
11028 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11029 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11030 esac
11031 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11032 else
11033 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11034 fi
11035 library_names_spec=
11036 libname_spec='lib$name'
11037 soname_spec=
11038 shrext_cmds=".so"
11039 postinstall_cmds=
11040 postuninstall_cmds=
11041 finish_cmds=
11042 finish_eval=
11043 shlibpath_var=
11044 shlibpath_overrides_runpath=unknown
11045 version_type=none
11046 dynamic_linker="$host_os ld.so"
11047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11048 need_lib_prefix=unknown
11049 hardcode_into_libs=no
11050
11051 # when you set need_version to no, make sure it does not cause -set_version
11052 # flags to be left without arguments
11053 need_version=unknown
11054
11055 case $host_os in
11056 aix3*)
11057 version_type=linux
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11059 shlibpath_var=LIBPATH
11060
11061 # AIX 3 has no versioning support, so we append a major version to the name.
11062 soname_spec='${libname}${release}${shared_ext}$major'
11063 ;;
11064
11065 aix[4-9]*)
11066 version_type=linux
11067 need_lib_prefix=no
11068 need_version=no
11069 hardcode_into_libs=yes
11070 if test "$host_cpu" = ia64; then
11071 # AIX 5 supports IA64
11072 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 else
11075 # With GCC up to 2.95.x, collect2 would create an import file
11076 # for dependence libraries. The import file would start with
11077 # the line `#! .'. This would cause the generated library to
11078 # depend on `.', always an invalid library. This was fixed in
11079 # development snapshots of GCC prior to 3.0.
11080 case $host_os in
11081 aix4 | aix4.[01] | aix4.[01].*)
11082 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11083 echo ' yes '
11084 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11085 :
11086 else
11087 can_build_shared=no
11088 fi
11089 ;;
11090 esac
11091 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11092 # soname into executable. Probably we can add versioning support to
11093 # collect2, so additional links can be useful in future.
11094 if test "$aix_use_runtimelinking" = yes; then
11095 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11096 # instead of lib<name>.a to let people know that these are not
11097 # typical AIX shared libraries.
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 else
11100 # We preserve .a as extension for shared libraries through AIX4.2
11101 # and later when we are not doing run time linking.
11102 library_names_spec='${libname}${release}.a $libname.a'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 fi
11105 shlibpath_var=LIBPATH
11106 fi
11107 ;;
11108
11109 amigaos*)
11110 case $host_cpu in
11111 powerpc)
11112 # Since July 2007 AmigaOS4 officially supports .so libraries.
11113 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 ;;
11116 m68k)
11117 library_names_spec='$libname.ixlibrary $libname.a'
11118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11119 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'
11120 ;;
11121 esac
11122 ;;
11123
11124 beos*)
11125 library_names_spec='${libname}${shared_ext}'
11126 dynamic_linker="$host_os ld.so"
11127 shlibpath_var=LIBRARY_PATH
11128 ;;
11129
11130 bsdi[45]*)
11131 version_type=linux
11132 need_version=no
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11138 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11139 # the default ld.so.conf also contains /usr/contrib/lib and
11140 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11141 # libtool to hard-code these into programs
11142 ;;
11143
11144 cygwin* | mingw* | pw32* | cegcc*)
11145 version_type=windows
11146 shrext_cmds=".dll"
11147 need_version=no
11148 need_lib_prefix=no
11149
11150 case $GCC,$host_os in
11151 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11152 library_names_spec='$libname.dll.a'
11153 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11154 postinstall_cmds='base_file=`basename \${file}`~
11155 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11156 dldir=$destdir/`dirname \$dlpath`~
11157 test -d \$dldir || mkdir -p \$dldir~
11158 $install_prog $dir/$dlname \$dldir/$dlname~
11159 chmod a+x \$dldir/$dlname~
11160 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11161 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11162 fi'
11163 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11164 dlpath=$dir/\$dldll~
11165 $RM \$dlpath'
11166 shlibpath_overrides_runpath=yes
11167
11168 case $host_os in
11169 cygwin*)
11170 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11171 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11172
11173 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11174 ;;
11175 mingw* | cegcc*)
11176 # MinGW DLLs use traditional 'lib' prefix
11177 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11178 ;;
11179 pw32*)
11180 # pw32 DLLs use 'pw' prefix rather than 'lib'
11181 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11182 ;;
11183 esac
11184 ;;
11185
11186 *)
11187 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11188 ;;
11189 esac
11190 dynamic_linker='Win32 ld.exe'
11191 # FIXME: first we should search . and the directory the executable is in
11192 shlibpath_var=PATH
11193 ;;
11194
11195 darwin* | rhapsody*)
11196 dynamic_linker="$host_os dyld"
11197 version_type=darwin
11198 need_lib_prefix=no
11199 need_version=no
11200 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11201 soname_spec='${libname}${release}${major}$shared_ext'
11202 shlibpath_overrides_runpath=yes
11203 shlibpath_var=DYLD_LIBRARY_PATH
11204 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11205
11206 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11207 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11208 ;;
11209
11210 dgux*)
11211 version_type=linux
11212 need_lib_prefix=no
11213 need_version=no
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 ;;
11218
11219 freebsd1*)
11220 dynamic_linker=no
11221 ;;
11222
11223 freebsd* | dragonfly*)
11224 # DragonFly does not have aout. When/if they implement a new
11225 # versioning mechanism, adjust this.
11226 if test -x /usr/bin/objformat; then
11227 objformat=`/usr/bin/objformat`
11228 else
11229 case $host_os in
11230 freebsd[123]*) objformat=aout ;;
11231 *) objformat=elf ;;
11232 esac
11233 fi
11234 version_type=freebsd-$objformat
11235 case $version_type in
11236 freebsd-elf*)
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11238 need_version=no
11239 need_lib_prefix=no
11240 ;;
11241 freebsd-*)
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11243 need_version=yes
11244 ;;
11245 esac
11246 shlibpath_var=LD_LIBRARY_PATH
11247 case $host_os in
11248 freebsd2*)
11249 shlibpath_overrides_runpath=yes
11250 ;;
11251 freebsd3.[01]* | freebsdelf3.[01]*)
11252 shlibpath_overrides_runpath=yes
11253 hardcode_into_libs=yes
11254 ;;
11255 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11256 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11257 shlibpath_overrides_runpath=no
11258 hardcode_into_libs=yes
11259 ;;
11260 *) # from 4.6 on, and DragonFly
11261 shlibpath_overrides_runpath=yes
11262 hardcode_into_libs=yes
11263 ;;
11264 esac
11265 ;;
11266
11267 gnu*)
11268 version_type=linux
11269 need_lib_prefix=no
11270 need_version=no
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 hardcode_into_libs=yes
11275 ;;
11276
11277 haiku*)
11278 version_type=linux
11279 need_lib_prefix=no
11280 need_version=no
11281 dynamic_linker="$host_os runtime_loader"
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LIBRARY_PATH
11285 shlibpath_overrides_runpath=yes
11286 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11287 hardcode_into_libs=yes
11288 ;;
11289
11290 hpux9* | hpux10* | hpux11*)
11291 # Give a soname corresponding to the major version so that dld.sl refuses to
11292 # link against other versions.
11293 version_type=sunos
11294 need_lib_prefix=no
11295 need_version=no
11296 case $host_cpu in
11297 ia64*)
11298 shrext_cmds='.so'
11299 hardcode_into_libs=yes
11300 dynamic_linker="$host_os dld.so"
11301 shlibpath_var=LD_LIBRARY_PATH
11302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 if test "X$HPUX_IA64_MODE" = X32; then
11306 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11307 else
11308 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11309 fi
11310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11311 ;;
11312 hppa*64*)
11313 shrext_cmds='.sl'
11314 hardcode_into_libs=yes
11315 dynamic_linker="$host_os dld.sl"
11316 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11322 ;;
11323 *)
11324 shrext_cmds='.sl'
11325 dynamic_linker="$host_os dld.sl"
11326 shlibpath_var=SHLIB_PATH
11327 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 ;;
11331 esac
11332 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11333 postinstall_cmds='chmod 555 $lib'
11334 # or fails outright, so override atomically:
11335 install_override_mode=555
11336 ;;
11337
11338 interix[3-9]*)
11339 version_type=linux
11340 need_lib_prefix=no
11341 need_version=no
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11343 soname_spec='${libname}${release}${shared_ext}$major'
11344 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11345 shlibpath_var=LD_LIBRARY_PATH
11346 shlibpath_overrides_runpath=no
11347 hardcode_into_libs=yes
11348 ;;
11349
11350 irix5* | irix6* | nonstopux*)
11351 case $host_os in
11352 nonstopux*) version_type=nonstopux ;;
11353 *)
11354 if test "$lt_cv_prog_gnu_ld" = yes; then
11355 version_type=linux
11356 else
11357 version_type=irix
11358 fi ;;
11359 esac
11360 need_lib_prefix=no
11361 need_version=no
11362 soname_spec='${libname}${release}${shared_ext}$major'
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11364 case $host_os in
11365 irix5* | nonstopux*)
11366 libsuff= shlibsuff=
11367 ;;
11368 *)
11369 case $LD in # libtool.m4 will add one of these switches to LD
11370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11371 libsuff= shlibsuff= libmagic=32-bit;;
11372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11373 libsuff=32 shlibsuff=N32 libmagic=N32;;
11374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11376 *) libsuff= shlibsuff= libmagic=never-match;;
11377 esac
11378 ;;
11379 esac
11380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11381 shlibpath_overrides_runpath=no
11382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11384 hardcode_into_libs=yes
11385 ;;
11386
11387 # No shared lib support for Linux oldld, aout, or coff.
11388 linux*oldld* | linux*aout* | linux*coff*)
11389 dynamic_linker=no
11390 ;;
11391
11392 # This must be Linux ELF.
11393 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11394 version_type=linux
11395 need_lib_prefix=no
11396 need_version=no
11397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11398 soname_spec='${libname}${release}${shared_ext}$major'
11399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11400 shlibpath_var=LD_LIBRARY_PATH
11401 shlibpath_overrides_runpath=no
11402
11403 # Some binutils ld are patched to set DT_RUNPATH
11404 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 lt_cv_shlibpath_overrides_runpath=no
11408 save_LDFLAGS=$LDFLAGS
11409 save_libdir=$libdir
11410 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11411 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414
11415 int
11416 main ()
11417 {
11418
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11425 lt_cv_shlibpath_overrides_runpath=yes
11426 fi
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 LDFLAGS=$save_LDFLAGS
11431 libdir=$save_libdir
11432
11433 fi
11434
11435 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11436
11437 # This implies no fast_install, which is unacceptable.
11438 # Some rework will be needed to allow for fast_install
11439 # before this can be enabled.
11440 hardcode_into_libs=yes
11441
11442 # Add ABI-specific directories to the system library path.
11443 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11444
11445 # Append ld.so.conf contents to the search path
11446 if test -f /etc/ld.so.conf; then
11447 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' ' '`
11448 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11449
11450 fi
11451
11452 # We used to test for /lib/ld.so.1 and disable shared libraries on
11453 # powerpc, because MkLinux only supported shared libraries with the
11454 # GNU dynamic linker. Since this was broken with cross compilers,
11455 # most powerpc-linux boxes support dynamic linking these days and
11456 # people can always --disable-shared, the test was removed, and we
11457 # assume the GNU/Linux dynamic linker is in use.
11458 dynamic_linker='GNU/Linux ld.so'
11459 ;;
11460
11461 netbsd*)
11462 version_type=sunos
11463 need_lib_prefix=no
11464 need_version=no
11465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11468 dynamic_linker='NetBSD (a.out) ld.so'
11469 else
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 dynamic_linker='NetBSD ld.elf_so'
11473 fi
11474 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=yes
11476 hardcode_into_libs=yes
11477 ;;
11478
11479 newsos6)
11480 version_type=linux
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 shlibpath_overrides_runpath=yes
11484 ;;
11485
11486 *nto* | *qnx*)
11487 version_type=qnx
11488 need_lib_prefix=no
11489 need_version=no
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 soname_spec='${libname}${release}${shared_ext}$major'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 shlibpath_overrides_runpath=no
11494 hardcode_into_libs=yes
11495 dynamic_linker='ldqnx.so'
11496 ;;
11497
11498 openbsd*)
11499 version_type=sunos
11500 sys_lib_dlsearch_path_spec="/usr/lib"
11501 need_lib_prefix=no
11502 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11503 case $host_os in
11504 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11505 *) need_version=no ;;
11506 esac
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11511 case $host_os in
11512 openbsd2.[89] | openbsd2.[89].*)
11513 shlibpath_overrides_runpath=no
11514 ;;
11515 *)
11516 shlibpath_overrides_runpath=yes
11517 ;;
11518 esac
11519 else
11520 shlibpath_overrides_runpath=yes
11521 fi
11522 ;;
11523
11524 os2*)
11525 libname_spec='$name'
11526 shrext_cmds=".dll"
11527 need_lib_prefix=no
11528 library_names_spec='$libname${shared_ext} $libname.a'
11529 dynamic_linker='OS/2 ld.exe'
11530 shlibpath_var=LIBPATH
11531 ;;
11532
11533 osf3* | osf4* | osf5*)
11534 version_type=osf
11535 need_lib_prefix=no
11536 need_version=no
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11542 ;;
11543
11544 rdos*)
11545 dynamic_linker=no
11546 ;;
11547
11548 solaris*)
11549 version_type=linux
11550 need_lib_prefix=no
11551 need_version=no
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 shlibpath_overrides_runpath=yes
11556 hardcode_into_libs=yes
11557 # ldd complains unless libraries are executable
11558 postinstall_cmds='chmod +x $lib'
11559 ;;
11560
11561 sunos4*)
11562 version_type=sunos
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 shlibpath_overrides_runpath=yes
11567 if test "$with_gnu_ld" = yes; then
11568 need_lib_prefix=no
11569 fi
11570 need_version=yes
11571 ;;
11572
11573 sysv4 | sysv4.3*)
11574 version_type=linux
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 case $host_vendor in
11579 sni)
11580 shlibpath_overrides_runpath=no
11581 need_lib_prefix=no
11582 runpath_var=LD_RUN_PATH
11583 ;;
11584 siemens)
11585 need_lib_prefix=no
11586 ;;
11587 motorola)
11588 need_lib_prefix=no
11589 need_version=no
11590 shlibpath_overrides_runpath=no
11591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11592 ;;
11593 esac
11594 ;;
11595
11596 sysv4*MP*)
11597 if test -d /usr/nec ;then
11598 version_type=linux
11599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11600 soname_spec='$libname${shared_ext}.$major'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 fi
11603 ;;
11604
11605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11606 version_type=freebsd-elf
11607 need_lib_prefix=no
11608 need_version=no
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11610 soname_spec='${libname}${release}${shared_ext}$major'
11611 shlibpath_var=LD_LIBRARY_PATH
11612 shlibpath_overrides_runpath=yes
11613 hardcode_into_libs=yes
11614 if test "$with_gnu_ld" = yes; then
11615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11616 else
11617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11618 case $host_os in
11619 sco3.2v5*)
11620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11621 ;;
11622 esac
11623 fi
11624 sys_lib_dlsearch_path_spec='/usr/lib'
11625 ;;
11626
11627 tpf*)
11628 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11629 version_type=linux
11630 need_lib_prefix=no
11631 need_version=no
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=no
11635 hardcode_into_libs=yes
11636 ;;
11637
11638 uts4*)
11639 version_type=linux
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 ;;
11644
11645 *)
11646 dynamic_linker=no
11647 ;;
11648 esac
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11650 $as_echo "$dynamic_linker" >&6; }
11651 test "$dynamic_linker" = no && can_build_shared=no
11652
11653 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11654 if test "$GCC" = yes; then
11655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11656 fi
11657
11658 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11659 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11660 fi
11661 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11662 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11663 fi
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11757 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11758 hardcode_action=
11759 if test -n "$hardcode_libdir_flag_spec" ||
11760 test -n "$runpath_var" ||
11761 test "X$hardcode_automatic" = "Xyes" ; then
11762
11763 # We can hardcode non-existent directories.
11764 if test "$hardcode_direct" != no &&
11765 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11766 # have to relink, otherwise we might link with an installed library
11767 # when we should be linking with a yet-to-be-installed one
11768 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11769 test "$hardcode_minus_L" != no; then
11770 # Linking always hardcodes the temporary library directory.
11771 hardcode_action=relink
11772 else
11773 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11774 hardcode_action=immediate
11775 fi
11776 else
11777 # We cannot hardcode anything, or else we can only hardcode existing
11778 # directories.
11779 hardcode_action=unsupported
11780 fi
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11782 $as_echo "$hardcode_action" >&6; }
11783
11784 if test "$hardcode_action" = relink ||
11785 test "$inherit_rpath" = yes; then
11786 # Fast installation is not supported
11787 enable_fast_install=no
11788 elif test "$shlibpath_overrides_runpath" = yes ||
11789 test "$enable_shared" = no; then
11790 # Fast installation is not necessary
11791 enable_fast_install=needless
11792 fi
11793
11794
11795
11796
11797
11798
11799 if test "x$enable_dlopen" != xyes; then
11800 enable_dlopen=unknown
11801 enable_dlopen_self=unknown
11802 enable_dlopen_self_static=unknown
11803 else
11804 lt_cv_dlopen=no
11805 lt_cv_dlopen_libs=
11806
11807 case $host_os in
11808 beos*)
11809 lt_cv_dlopen="load_add_on"
11810 lt_cv_dlopen_libs=
11811 lt_cv_dlopen_self=yes
11812 ;;
11813
11814 mingw* | pw32* | cegcc*)
11815 lt_cv_dlopen="LoadLibrary"
11816 lt_cv_dlopen_libs=
11817 ;;
11818
11819 cygwin*)
11820 lt_cv_dlopen="dlopen"
11821 lt_cv_dlopen_libs=
11822 ;;
11823
11824 darwin*)
11825 # if libdl is installed we need to link against it
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11827 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 ac_check_lib_save_LIBS=$LIBS
11832 LIBS="-ldl $LIBS"
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 char dlopen ();
11843 int
11844 main ()
11845 {
11846 return dlopen ();
11847 ;
11848 return 0;
11849 }
11850 _ACEOF
11851 if ac_fn_c_try_link "$LINENO"; then :
11852 ac_cv_lib_dl_dlopen=yes
11853 else
11854 ac_cv_lib_dl_dlopen=no
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858 LIBS=$ac_check_lib_save_LIBS
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11861 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11862 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11864 else
11865
11866 lt_cv_dlopen="dyld"
11867 lt_cv_dlopen_libs=
11868 lt_cv_dlopen_self=yes
11869
11870 fi
11871
11872 ;;
11873
11874 *)
11875 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11876 if test "x$ac_cv_func_shl_load" = x""yes; then :
11877 lt_cv_dlopen="shl_load"
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11880 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11881 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-ldld $LIBS"
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11892 #ifdef __cplusplus
11893 extern "C"
11894 #endif
11895 char shl_load ();
11896 int
11897 main ()
11898 {
11899 return shl_load ();
11900 ;
11901 return 0;
11902 }
11903 _ACEOF
11904 if ac_fn_c_try_link "$LINENO"; then :
11905 ac_cv_lib_dld_shl_load=yes
11906 else
11907 ac_cv_lib_dld_shl_load=no
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11914 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11915 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11916 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11917 else
11918 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11919 if test "x$ac_cv_func_dlopen" = x""yes; then :
11920 lt_cv_dlopen="dlopen"
11921 else
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11923 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11924 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 ac_check_lib_save_LIBS=$LIBS
11928 LIBS="-ldl $LIBS"
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11931
11932 /* Override any GCC internal prototype to avoid an error.
11933 Use char because int might match the return type of a GCC
11934 builtin and then its argument prototype would still apply. */
11935 #ifdef __cplusplus
11936 extern "C"
11937 #endif
11938 char dlopen ();
11939 int
11940 main ()
11941 {
11942 return dlopen ();
11943 ;
11944 return 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_link "$LINENO"; then :
11948 ac_cv_lib_dl_dlopen=yes
11949 else
11950 ac_cv_lib_dl_dlopen=no
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_lib_save_LIBS
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11958 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11962 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11963 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11965 else
11966 ac_check_lib_save_LIBS=$LIBS
11967 LIBS="-lsvld $LIBS"
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11970
11971 /* Override any GCC internal prototype to avoid an error.
11972 Use char because int might match the return type of a GCC
11973 builtin and then its argument prototype would still apply. */
11974 #ifdef __cplusplus
11975 extern "C"
11976 #endif
11977 char dlopen ();
11978 int
11979 main ()
11980 {
11981 return dlopen ();
11982 ;
11983 return 0;
11984 }
11985 _ACEOF
11986 if ac_fn_c_try_link "$LINENO"; then :
11987 ac_cv_lib_svld_dlopen=yes
11988 else
11989 ac_cv_lib_svld_dlopen=no
11990 fi
11991 rm -f core conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11996 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11997 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11999 else
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12001 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12002 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 ac_check_lib_save_LIBS=$LIBS
12006 LIBS="-ldld $LIBS"
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12009
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char dld_link ();
12017 int
12018 main ()
12019 {
12020 return dld_link ();
12021 ;
12022 return 0;
12023 }
12024 _ACEOF
12025 if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_lib_dld_dld_link=yes
12027 else
12028 ac_cv_lib_dld_dld_link=no
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 LIBS=$ac_check_lib_save_LIBS
12033 fi
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12035 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12036 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12038 fi
12039
12040
12041 fi
12042
12043
12044 fi
12045
12046
12047 fi
12048
12049
12050 fi
12051
12052
12053 fi
12054
12055 ;;
12056 esac
12057
12058 if test "x$lt_cv_dlopen" != xno; then
12059 enable_dlopen=yes
12060 else
12061 enable_dlopen=no
12062 fi
12063
12064 case $lt_cv_dlopen in
12065 dlopen)
12066 save_CPPFLAGS="$CPPFLAGS"
12067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12068
12069 save_LDFLAGS="$LDFLAGS"
12070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12071
12072 save_LIBS="$LIBS"
12073 LIBS="$lt_cv_dlopen_libs $LIBS"
12074
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12076 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12077 if test "${lt_cv_dlopen_self+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 if test "$cross_compiling" = yes; then :
12081 lt_cv_dlopen_self=cross
12082 else
12083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12084 lt_status=$lt_dlunknown
12085 cat > conftest.$ac_ext <<_LT_EOF
12086 #line $LINENO "configure"
12087 #include "confdefs.h"
12088
12089 #if HAVE_DLFCN_H
12090 #include <dlfcn.h>
12091 #endif
12092
12093 #include <stdio.h>
12094
12095 #ifdef RTLD_GLOBAL
12096 # define LT_DLGLOBAL RTLD_GLOBAL
12097 #else
12098 # ifdef DL_GLOBAL
12099 # define LT_DLGLOBAL DL_GLOBAL
12100 # else
12101 # define LT_DLGLOBAL 0
12102 # endif
12103 #endif
12104
12105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12106 find out it does not work in some platform. */
12107 #ifndef LT_DLLAZY_OR_NOW
12108 # ifdef RTLD_LAZY
12109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12110 # else
12111 # ifdef DL_LAZY
12112 # define LT_DLLAZY_OR_NOW DL_LAZY
12113 # else
12114 # ifdef RTLD_NOW
12115 # define LT_DLLAZY_OR_NOW RTLD_NOW
12116 # else
12117 # ifdef DL_NOW
12118 # define LT_DLLAZY_OR_NOW DL_NOW
12119 # else
12120 # define LT_DLLAZY_OR_NOW 0
12121 # endif
12122 # endif
12123 # endif
12124 # endif
12125 #endif
12126
12127 /* When -fvisbility=hidden is used, assume the code has been annotated
12128 correspondingly for the symbols needed. */
12129 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12130 void fnord () __attribute__((visibility("default")));
12131 #endif
12132
12133 void fnord () { int i=42; }
12134 int main ()
12135 {
12136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12137 int status = $lt_dlunknown;
12138
12139 if (self)
12140 {
12141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12142 else
12143 {
12144 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12145 else puts (dlerror ());
12146 }
12147 /* dlclose (self); */
12148 }
12149 else
12150 puts (dlerror ());
12151
12152 return status;
12153 }
12154 _LT_EOF
12155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12156 (eval $ac_link) 2>&5
12157 ac_status=$?
12158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12159 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12160 (./conftest; exit; ) >&5 2>/dev/null
12161 lt_status=$?
12162 case x$lt_status in
12163 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12164 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12165 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12166 esac
12167 else :
12168 # compilation failed
12169 lt_cv_dlopen_self=no
12170 fi
12171 fi
12172 rm -fr conftest*
12173
12174
12175 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12177 $as_echo "$lt_cv_dlopen_self" >&6; }
12178
12179 if test "x$lt_cv_dlopen_self" = xyes; then
12180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12182 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12183 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 if test "$cross_compiling" = yes; then :
12187 lt_cv_dlopen_self_static=cross
12188 else
12189 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12190 lt_status=$lt_dlunknown
12191 cat > conftest.$ac_ext <<_LT_EOF
12192 #line $LINENO "configure"
12193 #include "confdefs.h"
12194
12195 #if HAVE_DLFCN_H
12196 #include <dlfcn.h>
12197 #endif
12198
12199 #include <stdio.h>
12200
12201 #ifdef RTLD_GLOBAL
12202 # define LT_DLGLOBAL RTLD_GLOBAL
12203 #else
12204 # ifdef DL_GLOBAL
12205 # define LT_DLGLOBAL DL_GLOBAL
12206 # else
12207 # define LT_DLGLOBAL 0
12208 # endif
12209 #endif
12210
12211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12212 find out it does not work in some platform. */
12213 #ifndef LT_DLLAZY_OR_NOW
12214 # ifdef RTLD_LAZY
12215 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12216 # else
12217 # ifdef DL_LAZY
12218 # define LT_DLLAZY_OR_NOW DL_LAZY
12219 # else
12220 # ifdef RTLD_NOW
12221 # define LT_DLLAZY_OR_NOW RTLD_NOW
12222 # else
12223 # ifdef DL_NOW
12224 # define LT_DLLAZY_OR_NOW DL_NOW
12225 # else
12226 # define LT_DLLAZY_OR_NOW 0
12227 # endif
12228 # endif
12229 # endif
12230 # endif
12231 #endif
12232
12233 /* When -fvisbility=hidden is used, assume the code has been annotated
12234 correspondingly for the symbols needed. */
12235 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12236 void fnord () __attribute__((visibility("default")));
12237 #endif
12238
12239 void fnord () { int i=42; }
12240 int main ()
12241 {
12242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12243 int status = $lt_dlunknown;
12244
12245 if (self)
12246 {
12247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12248 else
12249 {
12250 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12251 else puts (dlerror ());
12252 }
12253 /* dlclose (self); */
12254 }
12255 else
12256 puts (dlerror ());
12257
12258 return status;
12259 }
12260 _LT_EOF
12261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12262 (eval $ac_link) 2>&5
12263 ac_status=$?
12264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12265 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12266 (./conftest; exit; ) >&5 2>/dev/null
12267 lt_status=$?
12268 case x$lt_status in
12269 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12270 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12271 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12272 esac
12273 else :
12274 # compilation failed
12275 lt_cv_dlopen_self_static=no
12276 fi
12277 fi
12278 rm -fr conftest*
12279
12280
12281 fi
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12283 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12284 fi
12285
12286 CPPFLAGS="$save_CPPFLAGS"
12287 LDFLAGS="$save_LDFLAGS"
12288 LIBS="$save_LIBS"
12289 ;;
12290 esac
12291
12292 case $lt_cv_dlopen_self in
12293 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12294 *) enable_dlopen_self=unknown ;;
12295 esac
12296
12297 case $lt_cv_dlopen_self_static in
12298 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12299 *) enable_dlopen_self_static=unknown ;;
12300 esac
12301 fi
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319 striplib=
12320 old_striplib=
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12322 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12323 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12324 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12325 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12327 $as_echo "yes" >&6; }
12328 else
12329 # FIXME - insert some real tests, host_os isn't really good enough
12330 case $host_os in
12331 darwin*)
12332 if test -n "$STRIP" ; then
12333 striplib="$STRIP -x"
12334 old_striplib="$STRIP -S"
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12336 $as_echo "yes" >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12340 fi
12341 ;;
12342 *)
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12345 ;;
12346 esac
12347 fi
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360 # Report which library types will actually be built
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12362 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12364 $as_echo "$can_build_shared" >&6; }
12365
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12367 $as_echo_n "checking whether to build shared libraries... " >&6; }
12368 test "$can_build_shared" = "no" && enable_shared=no
12369
12370 # On AIX, shared libraries and static libraries use the same namespace, and
12371 # are all built from PIC.
12372 case $host_os in
12373 aix3*)
12374 test "$enable_shared" = yes && enable_static=no
12375 if test -n "$RANLIB"; then
12376 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12377 postinstall_cmds='$RANLIB $lib'
12378 fi
12379 ;;
12380
12381 aix[4-9]*)
12382 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12383 test "$enable_shared" = yes && enable_static=no
12384 fi
12385 ;;
12386 esac
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12388 $as_echo "$enable_shared" >&6; }
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12391 $as_echo_n "checking whether to build static libraries... " >&6; }
12392 # Make sure either enable_shared or enable_static is yes.
12393 test "$enable_shared" = yes || enable_static=yes
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12395 $as_echo "$enable_static" >&6; }
12396
12397
12398
12399
12400 fi
12401 ac_ext=c
12402 ac_cpp='$CPP $CPPFLAGS'
12403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12406
12407 CC="$lt_save_CC"
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421 ac_config_commands="$ac_config_commands libtool"
12422
12423
12424
12425
12426 # Only expand once:
12427
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12430 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12431 if test "${ac_cv_path_SED+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12435 for ac_i in 1 2 3 4 5 6 7; do
12436 ac_script="$ac_script$as_nl$ac_script"
12437 done
12438 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12439 { ac_script=; unset ac_script;}
12440 if test -z "$SED"; then
12441 ac_path_SED_found=false
12442 # Loop through the user's path and test for each of PROGNAME-LIST
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12445 do
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for ac_prog in sed gsed; do
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12451 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12452 # Check for GNU ac_path_SED and select it if it is found.
12453 # Check for GNU $ac_path_SED
12454 case `"$ac_path_SED" --version 2>&1` in
12455 *GNU*)
12456 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12457 *)
12458 ac_count=0
12459 $as_echo_n 0123456789 >"conftest.in"
12460 while :
12461 do
12462 cat "conftest.in" "conftest.in" >"conftest.tmp"
12463 mv "conftest.tmp" "conftest.in"
12464 cp "conftest.in" "conftest.nl"
12465 $as_echo '' >> "conftest.nl"
12466 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12468 as_fn_arith $ac_count + 1 && ac_count=$as_val
12469 if test $ac_count -gt ${ac_path_SED_max-0}; then
12470 # Best one so far, save it but keep looking for a better one
12471 ac_cv_path_SED="$ac_path_SED"
12472 ac_path_SED_max=$ac_count
12473 fi
12474 # 10*(2^10) chars as input seems more than enough
12475 test $ac_count -gt 10 && break
12476 done
12477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12478 esac
12479
12480 $ac_path_SED_found && break 3
12481 done
12482 done
12483 done
12484 IFS=$as_save_IFS
12485 if test -z "$ac_cv_path_SED"; then
12486 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12487 fi
12488 else
12489 ac_cv_path_SED=$SED
12490 fi
12491
12492 fi
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12494 $as_echo "$ac_cv_path_SED" >&6; }
12495 SED="$ac_cv_path_SED"
12496 rm -f conftest.sed
12497
12498
12499 # Checks for pkg-config packages
12500
12501 pkg_failed=no
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
12503 $as_echo_n "checking for XI... " >&6; }
12504
12505 if test -n "$XI_CFLAGS"; then
12506 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
12507 elif test -n "$PKG_CONFIG"; then
12508 if test -n "$PKG_CONFIG" && \
12509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5
12510 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
12511 ac_status=$?
12512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513 test $ac_status = 0; }; then
12514 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
12515 else
12516 pkg_failed=yes
12517 fi
12518 else
12519 pkg_failed=untried
12520 fi
12521 if test -n "$XI_LIBS"; then
12522 pkg_cv_XI_LIBS="$XI_LIBS"
12523 elif test -n "$PKG_CONFIG"; then
12524 if test -n "$PKG_CONFIG" && \
12525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5
12526 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
12527 ac_status=$?
12528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12529 test $ac_status = 0; }; then
12530 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
12531 else
12532 pkg_failed=yes
12533 fi
12534 else
12535 pkg_failed=untried
12536 fi
12537
12538
12539
12540 if test $pkg_failed = yes; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12543
12544 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12545 _pkg_short_errors_supported=yes
12546 else
12547 _pkg_short_errors_supported=no
12548 fi
12549 if test $_pkg_short_errors_supported = yes; then
12550 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
12551 else
12552 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
12553 fi
12554 # Put the nasty error message in config.log where it belongs
12555 echo "$XI_PKG_ERRORS" >&5
12556
12557 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902) were not met:
12558
12559 $XI_PKG_ERRORS
12560
12561 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12562 installed software in a non-standard prefix.
12563
12564 Alternatively, you may set the environment variables XI_CFLAGS
12565 and XI_LIBS to avoid the need to call pkg-config.
12566 See the pkg-config man page for more details." "$LINENO" 5
12567
12568 elif test $pkg_failed = untried; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12573 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12574 is in your PATH or set the PKG_CONFIG environment variable to the full
12575 path to pkg-config.
12576
12577 Alternatively, you may set the environment variables XI_CFLAGS
12578 and XI_LIBS to avoid the need to call pkg-config.
12579 See the pkg-config man page for more details.
12580
12581 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12582 See \`config.log' for more details" "$LINENO" 5; }
12583
12584 else
12585 XI_CFLAGS=$pkg_cv_XI_CFLAGS
12586 XI_LIBS=$pkg_cv_XI_LIBS
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12588 $as_echo "yes" >&6; }
12589
12590 fi
12591
12592 # Check for xmlto and asciidoc for man page conversion
12593 # (only needed by people building tarballs)
12594 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
12595 have_doctools=yes
12596 else
12597 have_doctools=no
12598 fi
12599 if test $have_doctools = yes; then
12600 HAVE_DOCTOOLS_TRUE=
12601 HAVE_DOCTOOLS_FALSE='#'
12602 else
12603 HAVE_DOCTOOLS_TRUE='#'
12604 HAVE_DOCTOOLS_FALSE=
12605 fi
12606
12607 if test $have_doctools = no; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
12609 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
12610 fi
12611
12612 # Determine if the source for man pages is available
12613 # It may already be present (tarball) or can be generated using doctools
12614 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
12615 test $have_doctools = yes; then
12616 INSTALL_MANPAGES_TRUE=
12617 INSTALL_MANPAGES_FALSE='#'
12618 else
12619 INSTALL_MANPAGES_TRUE='#'
12620 INSTALL_MANPAGES_FALSE=
12621 fi
12622
12623
12624
12625 # Check whether --enable-malloc0returnsnull was given.
12626 if test "${enable_malloc0returnsnull+set}" = set; then :
12627 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12628 else
12629 MALLOC_ZERO_RETURNS_NULL=auto
12630 fi
12631
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
12634 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12635 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12636 if test "$cross_compiling" = yes; then :
12637 MALLOC_ZERO_RETURNS_NULL=yes
12638 else
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641
12642 char *malloc();
12643 char *realloc();
12644 char *calloc();
12645 main() {
12646 char *m0, *r0, *c0, *p;
12647 m0 = malloc(0);
12648 p = malloc(10);
12649 r0 = realloc(p,0);
12650 c0 = calloc(0);
12651 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12652 }
12653 _ACEOF
12654 if ac_fn_c_try_run "$LINENO"; then :
12655 MALLOC_ZERO_RETURNS_NULL=yes
12656 else
12657 MALLOC_ZERO_RETURNS_NULL=no
12658 fi
12659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12660 conftest.$ac_objext conftest.beam conftest.$ac_ext
12661 fi
12662
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12665 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12666
12667 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12668 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12669 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12670 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12671 else
12672 MALLOC_ZERO_CFLAGS=""
12673 XMALLOC_ZERO_CFLAGS=""
12674 XTMALLOC_ZERO_CFLAGS=""
12675 fi
12676
12677
12678
12679
12680
12681
12682 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile doc/Makefile specs/Makefile xi.pc"
12683
12684 cat >confcache <<\_ACEOF
12685 # This file is a shell script that caches the results of configure
12686 # tests run on this system so they can be shared between configure
12687 # scripts and configure runs, see configure's option --config-cache.
12688 # It is not useful on other systems. If it contains results you don't
12689 # want to keep, you may remove or edit it.
12690 #
12691 # config.status only pays attention to the cache file if you give it
12692 # the --recheck option to rerun configure.
12693 #
12694 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12696 # following values.
12697
12698 _ACEOF
12699
12700 # The following way of writing the cache mishandles newlines in values,
12701 # but we know of no workaround that is simple, portable, and efficient.
12702 # So, we kill variables containing newlines.
12703 # Ultrix sh set writes to stderr and can't be redirected directly,
12704 # and sets the high bit in the cache file unless we assign to the vars.
12705 (
12706 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12707 eval ac_val=\$$ac_var
12708 case $ac_val in #(
12709 *${as_nl}*)
12710 case $ac_var in #(
12711 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12712 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12713 esac
12714 case $ac_var in #(
12715 _ | IFS | as_nl) ;; #(
12716 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12717 *) { eval $ac_var=; unset $ac_var;} ;;
12718 esac ;;
12719 esac
12720 done
12721
12722 (set) 2>&1 |
12723 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12724 *${as_nl}ac_space=\ *)
12725 # `set' does not quote correctly, so add quotes: double-quote
12726 # substitution turns \\\\ into \\, and sed turns \\ into \.
12727 sed -n \
12728 "s/'/'\\\\''/g;
12729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12730 ;; #(
12731 *)
12732 # `set' quotes correctly as required by POSIX, so do not add quotes.
12733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12734 ;;
12735 esac |
12736 sort
12737 ) |
12738 sed '
12739 /^ac_cv_env_/b end
12740 t clear
12741 :clear
12742 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12743 t end
12744 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12745 :end' >>confcache
12746 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12747 if test -w "$cache_file"; then
12748 test "x$cache_file" != "x/dev/null" &&
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12750 $as_echo "$as_me: updating cache $cache_file" >&6;}
12751 cat confcache >$cache_file
12752 else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12754 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12755 fi
12756 fi
12757 rm -f confcache
12758
12759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12760 # Let make expand exec_prefix.
12761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12762
12763 DEFS=-DHAVE_CONFIG_H
12764
12765 ac_libobjs=
12766 ac_ltlibobjs=
12767 U=
12768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12769 # 1. Remove the extension, and $U if already installed.
12770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12773 # will be set to the directory where LIBOBJS objects are built.
12774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12776 done
12777 LIBOBJS=$ac_libobjs
12778
12779 LTLIBOBJS=$ac_ltlibobjs
12780
12781
12782 if test -n "$EXEEXT"; then
12783 am__EXEEXT_TRUE=
12784 am__EXEEXT_FALSE='#'
12785 else
12786 am__EXEEXT_TRUE='#'
12787 am__EXEEXT_FALSE=
12788 fi
12789
12790 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12791 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12793 fi
12794 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12795 as_fn_error $? "conditional \"AMDEP\" was never defined.
12796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12797 fi
12798 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12799 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12801 fi
12802 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
12803 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
12804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12805 fi
12806 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12807 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12809 fi
12810 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12811 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12813 fi
12814 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12815 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12817 fi
12818 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12819 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12821 fi
12822 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
12823 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
12824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12825 fi
12826 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12827 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12829 fi
12830 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
12831 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
12832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12833 fi
12834 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
12835 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
12836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12837 fi
12838
12839 : ${CONFIG_STATUS=./config.status}
12840 ac_write_fail=0
12841 ac_clean_files_save=$ac_clean_files
12842 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12844 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12845 as_write_fail=0
12846 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12847 #! $SHELL
12848 # Generated by $as_me.
12849 # Run this file to recreate the current configuration.
12850 # Compiler output produced by configure, useful for debugging
12851 # configure, is in config.log if it exists.
12852
12853 debug=false
12854 ac_cs_recheck=false
12855 ac_cs_silent=false
12856
12857 SHELL=\${CONFIG_SHELL-$SHELL}
12858 export SHELL
12859 _ASEOF
12860 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12861 ## -------------------- ##
12862 ## M4sh Initialization. ##
12863 ## -------------------- ##
12864
12865 # Be more Bourne compatible
12866 DUALCASE=1; export DUALCASE # for MKS sh
12867 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12868 emulate sh
12869 NULLCMD=:
12870 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12871 # is contrary to our usage. Disable this feature.
12872 alias -g '${1+"$@"}'='"$@"'
12873 setopt NO_GLOB_SUBST
12874 else
12875 case `(set -o) 2>/dev/null` in #(
12876 *posix*) :
12877 set -o posix ;; #(
12878 *) :
12879 ;;
12880 esac
12881 fi
12882
12883
12884 as_nl='
12885 '
12886 export as_nl
12887 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12888 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12889 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12890 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12891 # Prefer a ksh shell builtin over an external printf program on Solaris,
12892 # but without wasting forks for bash or zsh.
12893 if test -z "$BASH_VERSION$ZSH_VERSION" \
12894 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12895 as_echo='print -r --'
12896 as_echo_n='print -rn --'
12897 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12898 as_echo='printf %s\n'
12899 as_echo_n='printf %s'
12900 else
12901 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12902 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12903 as_echo_n='/usr/ucb/echo -n'
12904 else
12905 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12906 as_echo_n_body='eval
12907 arg=$1;
12908 case $arg in #(
12909 *"$as_nl"*)
12910 expr "X$arg" : "X\\(.*\\)$as_nl";
12911 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12912 esac;
12913 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12914 '
12915 export as_echo_n_body
12916 as_echo_n='sh -c $as_echo_n_body as_echo'
12917 fi
12918 export as_echo_body
12919 as_echo='sh -c $as_echo_body as_echo'
12920 fi
12921
12922 # The user is always right.
12923 if test "${PATH_SEPARATOR+set}" != set; then
12924 PATH_SEPARATOR=:
12925 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12926 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12927 PATH_SEPARATOR=';'
12928 }
12929 fi
12930
12931
12932 # IFS
12933 # We need space, tab and new line, in precisely that order. Quoting is
12934 # there to prevent editors from complaining about space-tab.
12935 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12936 # splitting by setting IFS to empty value.)
12937 IFS=" "" $as_nl"
12938
12939 # Find who we are. Look in the path if we contain no directory separator.
12940 case $0 in #((
12941 *[\\/]* ) as_myself=$0 ;;
12942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12944 do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
12947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12948 done
12949 IFS=$as_save_IFS
12950
12951 ;;
12952 esac
12953 # We did not find ourselves, most probably we were run as `sh COMMAND'
12954 # in which case we are not to be found in the path.
12955 if test "x$as_myself" = x; then
12956 as_myself=$0
12957 fi
12958 if test ! -f "$as_myself"; then
12959 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12960 exit 1
12961 fi
12962
12963 # Unset variables that we do not need and which cause bugs (e.g. in
12964 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12965 # suppresses any "Segmentation fault" message there. '((' could
12966 # trigger a bug in pdksh 5.2.14.
12967 for as_var in BASH_ENV ENV MAIL MAILPATH
12968 do eval test x\${$as_var+set} = xset \
12969 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12970 done
12971 PS1='$ '
12972 PS2='> '
12973 PS4='+ '
12974
12975 # NLS nuisances.
12976 LC_ALL=C
12977 export LC_ALL
12978 LANGUAGE=C
12979 export LANGUAGE
12980
12981 # CDPATH.
12982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12983
12984
12985 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12986 # ----------------------------------------
12987 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12988 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12989 # script with STATUS, using 1 if that was 0.
12990 as_fn_error ()
12991 {
12992 as_status=$1; test $as_status -eq 0 && as_status=1
12993 if test "$4"; then
12994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12995 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12996 fi
12997 $as_echo "$as_me: error: $2" >&2
12998 as_fn_exit $as_status
12999 } # as_fn_error
13000
13001
13002 # as_fn_set_status STATUS
13003 # -----------------------
13004 # Set $? to STATUS, without forking.
13005 as_fn_set_status ()
13006 {
13007 return $1
13008 } # as_fn_set_status
13009
13010 # as_fn_exit STATUS
13011 # -----------------
13012 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13013 as_fn_exit ()
13014 {
13015 set +e
13016 as_fn_set_status $1
13017 exit $1
13018 } # as_fn_exit
13019
13020 # as_fn_unset VAR
13021 # ---------------
13022 # Portably unset VAR.
13023 as_fn_unset ()
13024 {
13025 { eval $1=; unset $1;}
13026 }
13027 as_unset=as_fn_unset
13028 # as_fn_append VAR VALUE
13029 # ----------------------
13030 # Append the text in VALUE to the end of the definition contained in VAR. Take
13031 # advantage of any shell optimizations that allow amortized linear growth over
13032 # repeated appends, instead of the typical quadratic growth present in naive
13033 # implementations.
13034 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13035 eval 'as_fn_append ()
13036 {
13037 eval $1+=\$2
13038 }'
13039 else
13040 as_fn_append ()
13041 {
13042 eval $1=\$$1\$2
13043 }
13044 fi # as_fn_append
13045
13046 # as_fn_arith ARG...
13047 # ------------------
13048 # Perform arithmetic evaluation on the ARGs, and store the result in the
13049 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13050 # must be portable across $(()) and expr.
13051 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13052 eval 'as_fn_arith ()
13053 {
13054 as_val=$(( $* ))
13055 }'
13056 else
13057 as_fn_arith ()
13058 {
13059 as_val=`expr "$@" || test $? -eq 1`
13060 }
13061 fi # as_fn_arith
13062
13063
13064 if expr a : '\(a\)' >/dev/null 2>&1 &&
13065 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13066 as_expr=expr
13067 else
13068 as_expr=false
13069 fi
13070
13071 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13072 as_basename=basename
13073 else
13074 as_basename=false
13075 fi
13076
13077 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13078 as_dirname=dirname
13079 else
13080 as_dirname=false
13081 fi
13082
13083 as_me=`$as_basename -- "$0" ||
13084 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13085 X"$0" : 'X\(//\)$' \| \
13086 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13087 $as_echo X/"$0" |
13088 sed '/^.*\/\([^/][^/]*\)\/*$/{
13089 s//\1/
13090 q
13091 }
13092 /^X\/\(\/\/\)$/{
13093 s//\1/
13094 q
13095 }
13096 /^X\/\(\/\).*/{
13097 s//\1/
13098 q
13099 }
13100 s/.*/./; q'`
13101
13102 # Avoid depending upon Character Ranges.
13103 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13106 as_cr_digits='0123456789'
13107 as_cr_alnum=$as_cr_Letters$as_cr_digits
13108
13109 ECHO_C= ECHO_N= ECHO_T=
13110 case `echo -n x` in #(((((
13111 -n*)
13112 case `echo 'xy\c'` in
13113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13114 xy) ECHO_C='\c';;
13115 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13116 ECHO_T=' ';;
13117 esac;;
13118 *)
13119 ECHO_N='-n';;
13120 esac
13121
13122 rm -f conf$$ conf$$.exe conf$$.file
13123 if test -d conf$$.dir; then
13124 rm -f conf$$.dir/conf$$.file
13125 else
13126 rm -f conf$$.dir
13127 mkdir conf$$.dir 2>/dev/null
13128 fi
13129 if (echo >conf$$.file) 2>/dev/null; then
13130 if ln -s conf$$.file conf$$ 2>/dev/null; then
13131 as_ln_s='ln -s'
13132 # ... but there are two gotchas:
13133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13135 # In both cases, we have to default to `cp -p'.
13136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13137 as_ln_s='cp -p'
13138 elif ln conf$$.file conf$$ 2>/dev/null; then
13139 as_ln_s=ln
13140 else
13141 as_ln_s='cp -p'
13142 fi
13143 else
13144 as_ln_s='cp -p'
13145 fi
13146 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13147 rmdir conf$$.dir 2>/dev/null
13148
13149
13150 # as_fn_mkdir_p
13151 # -------------
13152 # Create "$as_dir" as a directory, including parents if necessary.
13153 as_fn_mkdir_p ()
13154 {
13155
13156 case $as_dir in #(
13157 -*) as_dir=./$as_dir;;
13158 esac
13159 test -d "$as_dir" || eval $as_mkdir_p || {
13160 as_dirs=
13161 while :; do
13162 case $as_dir in #(
13163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13164 *) as_qdir=$as_dir;;
13165 esac
13166 as_dirs="'$as_qdir' $as_dirs"
13167 as_dir=`$as_dirname -- "$as_dir" ||
13168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13169 X"$as_dir" : 'X\(//\)[^/]' \| \
13170 X"$as_dir" : 'X\(//\)$' \| \
13171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13172 $as_echo X"$as_dir" |
13173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13174 s//\1/
13175 q
13176 }
13177 /^X\(\/\/\)[^/].*/{
13178 s//\1/
13179 q
13180 }
13181 /^X\(\/\/\)$/{
13182 s//\1/
13183 q
13184 }
13185 /^X\(\/\).*/{
13186 s//\1/
13187 q
13188 }
13189 s/.*/./; q'`
13190 test -d "$as_dir" && break
13191 done
13192 test -z "$as_dirs" || eval "mkdir $as_dirs"
13193 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13194
13195
13196 } # as_fn_mkdir_p
13197 if mkdir -p . 2>/dev/null; then
13198 as_mkdir_p='mkdir -p "$as_dir"'
13199 else
13200 test -d ./-p && rmdir ./-p
13201 as_mkdir_p=false
13202 fi
13203
13204 if test -x / >/dev/null 2>&1; then
13205 as_test_x='test -x'
13206 else
13207 if ls -dL / >/dev/null 2>&1; then
13208 as_ls_L_option=L
13209 else
13210 as_ls_L_option=
13211 fi
13212 as_test_x='
13213 eval sh -c '\''
13214 if test -d "$1"; then
13215 test -d "$1/.";
13216 else
13217 case $1 in #(
13218 -*)set "./$1";;
13219 esac;
13220 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13221 ???[sx]*):;;*)false;;esac;fi
13222 '\'' sh
13223 '
13224 fi
13225 as_executable_p=$as_test_x
13226
13227 # Sed expression to map a string onto a valid CPP name.
13228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13229
13230 # Sed expression to map a string onto a valid variable name.
13231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13232
13233
13234 exec 6>&1
13235 ## ----------------------------------- ##
13236 ## Main body of $CONFIG_STATUS script. ##
13237 ## ----------------------------------- ##
13238 _ASEOF
13239 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13240
13241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13242 # Save the log message, to keep $0 and so on meaningful, and to
13243 # report actual input values of CONFIG_FILES etc. instead of their
13244 # values after options handling.
13245 ac_log="
13246 This file was extended by libXi $as_me 1.4.0, which was
13247 generated by GNU Autoconf 2.66. Invocation command line was
13248
13249 CONFIG_FILES = $CONFIG_FILES
13250 CONFIG_HEADERS = $CONFIG_HEADERS
13251 CONFIG_LINKS = $CONFIG_LINKS
13252 CONFIG_COMMANDS = $CONFIG_COMMANDS
13253 $ $0 $@
13254
13255 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13256 "
13257
13258 _ACEOF
13259
13260 case $ac_config_files in *"
13261 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13262 esac
13263
13264 case $ac_config_headers in *"
13265 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13266 esac
13267
13268
13269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13270 # Files that config.status was made for.
13271 config_files="$ac_config_files"
13272 config_headers="$ac_config_headers"
13273 config_commands="$ac_config_commands"
13274
13275 _ACEOF
13276
13277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13278 ac_cs_usage="\
13279 \`$as_me' instantiates files and other configuration actions
13280 from templates according to the current configuration. Unless the files
13281 and actions are specified as TAGs, all are instantiated by default.
13282
13283 Usage: $0 [OPTION]... [TAG]...
13284
13285 -h, --help print this help, then exit
13286 -V, --version print version number and configuration settings, then exit
13287 --config print configuration, then exit
13288 -q, --quiet, --silent
13289 do not print progress messages
13290 -d, --debug don't remove temporary files
13291 --recheck update $as_me by reconfiguring in the same conditions
13292 --file=FILE[:TEMPLATE]
13293 instantiate the configuration file FILE
13294 --header=FILE[:TEMPLATE]
13295 instantiate the configuration header FILE
13296
13297 Configuration files:
13298 $config_files
13299
13300 Configuration headers:
13301 $config_headers
13302
13303 Configuration commands:
13304 $config_commands
13305
13306 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13307
13308 _ACEOF
13309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13310 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13311 ac_cs_version="\\
13312 libXi config.status 1.4.0
13313 configured by $0, generated by GNU Autoconf 2.66,
13314 with options \\"\$ac_cs_config\\"
13315
13316 Copyright (C) 2010 Free Software Foundation, Inc.
13317 This config.status script is free software; the Free Software Foundation
13318 gives unlimited permission to copy, distribute and modify it."
13319
13320 ac_pwd='$ac_pwd'
13321 srcdir='$srcdir'
13322 INSTALL='$INSTALL'
13323 MKDIR_P='$MKDIR_P'
13324 AWK='$AWK'
13325 test -n "\$AWK" || AWK=awk
13326 _ACEOF
13327
13328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13329 # The default lists apply if the user does not specify any file.
13330 ac_need_defaults=:
13331 while test $# != 0
13332 do
13333 case $1 in
13334 --*=*)
13335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13337 ac_shift=:
13338 ;;
13339 *)
13340 ac_option=$1
13341 ac_optarg=$2
13342 ac_shift=shift
13343 ;;
13344 esac
13345
13346 case $ac_option in
13347 # Handling of the options.
13348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13349 ac_cs_recheck=: ;;
13350 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13351 $as_echo "$ac_cs_version"; exit ;;
13352 --config | --confi | --conf | --con | --co | --c )
13353 $as_echo "$ac_cs_config"; exit ;;
13354 --debug | --debu | --deb | --de | --d | -d )
13355 debug=: ;;
13356 --file | --fil | --fi | --f )
13357 $ac_shift
13358 case $ac_optarg in
13359 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13360 esac
13361 as_fn_append CONFIG_FILES " '$ac_optarg'"
13362 ac_need_defaults=false;;
13363 --header | --heade | --head | --hea )
13364 $ac_shift
13365 case $ac_optarg in
13366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13367 esac
13368 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13369 ac_need_defaults=false;;
13370 --he | --h)
13371 # Conflict between --help and --header
13372 as_fn_error $? "ambiguous option: \`$1'
13373 Try \`$0 --help' for more information.";;
13374 --help | --hel | -h )
13375 $as_echo "$ac_cs_usage"; exit ;;
13376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13378 ac_cs_silent=: ;;
13379
13380 # This is an error.
13381 -*) as_fn_error $? "unrecognized option: \`$1'
13382 Try \`$0 --help' for more information." ;;
13383
13384 *) as_fn_append ac_config_targets " $1"
13385 ac_need_defaults=false ;;
13386
13387 esac
13388 shift
13389 done
13390
13391 ac_configure_extra_args=
13392
13393 if $ac_cs_silent; then
13394 exec 6>/dev/null
13395 ac_configure_extra_args="$ac_configure_extra_args --silent"
13396 fi
13397
13398 _ACEOF
13399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13400 if \$ac_cs_recheck; then
13401 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13402 shift
13403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13404 CONFIG_SHELL='$SHELL'
13405 export CONFIG_SHELL
13406 exec "\$@"
13407 fi
13408
13409 _ACEOF
13410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13411 exec 5>>config.log
13412 {
13413 echo
13414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13415 ## Running $as_me. ##
13416 _ASBOX
13417 $as_echo "$ac_log"
13418 } >&5
13419
13420 _ACEOF
13421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13422 #
13423 # INIT-COMMANDS
13424 #
13425 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13426
13427
13428 # The HP-UX ksh and POSIX shell print the target directory to stdout
13429 # if CDPATH is set.
13430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13431
13432 sed_quote_subst='$sed_quote_subst'
13433 double_quote_subst='$double_quote_subst'
13434 delay_variable_subst='$delay_variable_subst'
13435 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13436 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13437 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13438 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13439 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13440 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13441 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13442 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13443 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13444 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13445 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13446 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13447 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13448 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13449 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13450 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13451 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13452 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13453 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13454 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13455 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13456 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13457 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13458 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13459 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13460 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13461 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13462 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13463 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13464 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13465 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13466 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13467 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13468 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13469 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13470 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13471 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13472 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13473 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13474 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13475 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13476 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13477 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13478 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13479 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13480 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13481 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13482 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13483 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"`'
13484 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13485 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13486 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13487 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13488 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13489 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13490 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13491 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13492 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13493 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13494 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13495 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13496 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13497 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13498 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13499 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13500 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13501 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13502 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13503 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13504 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13505 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13506 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13507 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13508 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13509 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13510 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13511 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13512 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13513 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13514 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13515 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13516 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13517 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13518 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13519 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13520 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13521 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13522 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13523 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13524 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13525 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13526 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13527 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13528 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13529 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13530 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13531 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13532 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13533 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13534 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13535 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13536 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13537 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13538 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13539 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13540 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13541 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13542 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13543 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13544 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13545 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13546 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13547 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13548 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13549 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13550 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13551 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13552 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13553 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13554 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13555
13556 LTCC='$LTCC'
13557 LTCFLAGS='$LTCFLAGS'
13558 compiler='$compiler_DEFAULT'
13559
13560 # A function that is used when there is no print builtin or printf.
13561 func_fallback_echo ()
13562 {
13563 eval 'cat <<_LTECHO_EOF
13564 \$1
13565 _LTECHO_EOF'
13566 }
13567
13568 # Quote evaled strings.
13569 for var in SHELL \
13570 ECHO \
13571 SED \
13572 GREP \
13573 EGREP \
13574 FGREP \
13575 LD \
13576 NM \
13577 LN_S \
13578 lt_SP2NL \
13579 lt_NL2SP \
13580 reload_flag \
13581 OBJDUMP \
13582 deplibs_check_method \
13583 file_magic_cmd \
13584 AR \
13585 AR_FLAGS \
13586 STRIP \
13587 RANLIB \
13588 CC \
13589 CFLAGS \
13590 compiler \
13591 lt_cv_sys_global_symbol_pipe \
13592 lt_cv_sys_global_symbol_to_cdecl \
13593 lt_cv_sys_global_symbol_to_c_name_address \
13594 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13595 lt_prog_compiler_no_builtin_flag \
13596 lt_prog_compiler_wl \
13597 lt_prog_compiler_pic \
13598 lt_prog_compiler_static \
13599 lt_cv_prog_compiler_c_o \
13600 need_locks \
13601 DSYMUTIL \
13602 NMEDIT \
13603 LIPO \
13604 OTOOL \
13605 OTOOL64 \
13606 shrext_cmds \
13607 export_dynamic_flag_spec \
13608 whole_archive_flag_spec \
13609 compiler_needs_object \
13610 with_gnu_ld \
13611 allow_undefined_flag \
13612 no_undefined_flag \
13613 hardcode_libdir_flag_spec \
13614 hardcode_libdir_flag_spec_ld \
13615 hardcode_libdir_separator \
13616 fix_srcfile_path \
13617 exclude_expsyms \
13618 include_expsyms \
13619 file_list_spec \
13620 variables_saved_for_relink \
13621 libname_spec \
13622 library_names_spec \
13623 soname_spec \
13624 install_override_mode \
13625 finish_eval \
13626 old_striplib \
13627 striplib; do
13628 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13629 *[\\\\\\\`\\"\\\$]*)
13630 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13631 ;;
13632 *)
13633 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13634 ;;
13635 esac
13636 done
13637
13638 # Double-quote double-evaled strings.
13639 for var in reload_cmds \
13640 old_postinstall_cmds \
13641 old_postuninstall_cmds \
13642 old_archive_cmds \
13643 extract_expsyms_cmds \
13644 old_archive_from_new_cmds \
13645 old_archive_from_expsyms_cmds \
13646 archive_cmds \
13647 archive_expsym_cmds \
13648 module_cmds \
13649 module_expsym_cmds \
13650 export_symbols_cmds \
13651 prelink_cmds \
13652 postinstall_cmds \
13653 postuninstall_cmds \
13654 finish_cmds \
13655 sys_lib_search_path_spec \
13656 sys_lib_dlsearch_path_spec; do
13657 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13658 *[\\\\\\\`\\"\\\$]*)
13659 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13660 ;;
13661 *)
13662 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13663 ;;
13664 esac
13665 done
13666
13667 ac_aux_dir='$ac_aux_dir'
13668 xsi_shell='$xsi_shell'
13669 lt_shell_append='$lt_shell_append'
13670
13671 # See if we are running on zsh, and set the options which allow our
13672 # commands through without removal of \ escapes INIT.
13673 if test -n "\${ZSH_VERSION+set}" ; then
13674 setopt NO_GLOB_SUBST
13675 fi
13676
13677
13678 PACKAGE='$PACKAGE'
13679 VERSION='$VERSION'
13680 TIMESTAMP='$TIMESTAMP'
13681 RM='$RM'
13682 ofile='$ofile'
13683
13684
13685
13686
13687 _ACEOF
13688
13689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13690
13691 # Handling of arguments.
13692 for ac_config_target in $ac_config_targets
13693 do
13694 case $ac_config_target in
13695 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13696 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13697 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13698 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13699 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13700 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13701 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13702 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13703 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
13704
13705 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13706 esac
13707 done
13708
13709
13710 # If the user did not use the arguments to specify the items to instantiate,
13711 # then the envvar interface is used. Set only those that are not.
13712 # We use the long form for the default assignment because of an extremely
13713 # bizarre bug on SunOS 4.1.3.
13714 if $ac_need_defaults; then
13715 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13716 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13717 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13718 fi
13719
13720 # Have a temporary directory for convenience. Make it in the build tree
13721 # simply because there is no reason against having it here, and in addition,
13722 # creating and moving files from /tmp can sometimes cause problems.
13723 # Hook for its removal unless debugging.
13724 # Note that there is a small window in which the directory will not be cleaned:
13725 # after its creation but before its name has been assigned to `$tmp'.
13726 $debug ||
13727 {
13728 tmp=
13729 trap 'exit_status=$?
13730 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13731 ' 0
13732 trap 'as_fn_exit 1' 1 2 13 15
13733 }
13734 # Create a (secure) tmp directory for tmp files.
13735
13736 {
13737 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13738 test -n "$tmp" && test -d "$tmp"
13739 } ||
13740 {
13741 tmp=./conf$$-$RANDOM
13742 (umask 077 && mkdir "$tmp")
13743 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13744
13745 # Set up the scripts for CONFIG_FILES section.
13746 # No need to generate them if there are no CONFIG_FILES.
13747 # This happens for instance with `./config.status config.h'.
13748 if test -n "$CONFIG_FILES"; then
13749
13750
13751 ac_cr=`echo X | tr X '\015'`
13752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13753 # But we know of no other shell where ac_cr would be empty at this
13754 # point, so we can use a bashism as a fallback.
13755 if test "x$ac_cr" = x; then
13756 eval ac_cr=\$\'\\r\'
13757 fi
13758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13760 ac_cs_awk_cr='\\r'
13761 else
13762 ac_cs_awk_cr=$ac_cr
13763 fi
13764
13765 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13766 _ACEOF
13767
13768
13769 {
13770 echo "cat >conf$$subs.awk <<_ACEOF" &&
13771 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13772 echo "_ACEOF"
13773 } >conf$$subs.sh ||
13774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13775 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13776 ac_delim='%!_!# '
13777 for ac_last_try in false false false false false :; do
13778 . ./conf$$subs.sh ||
13779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13780
13781 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13782 if test $ac_delim_n = $ac_delim_num; then
13783 break
13784 elif $ac_last_try; then
13785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13786 else
13787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13788 fi
13789 done
13790 rm -f conf$$subs.sh
13791
13792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13793 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13794 _ACEOF
13795 sed -n '
13796 h
13797 s/^/S["/; s/!.*/"]=/
13798 p
13799 g
13800 s/^[^!]*!//
13801 :repl
13802 t repl
13803 s/'"$ac_delim"'$//
13804 t delim
13805 :nl
13806 h
13807 s/\(.\{148\}\)..*/\1/
13808 t more1
13809 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13810 p
13811 n
13812 b repl
13813 :more1
13814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13815 p
13816 g
13817 s/.\{148\}//
13818 t nl
13819 :delim
13820 h
13821 s/\(.\{148\}\)..*/\1/
13822 t more2
13823 s/["\\]/\\&/g; s/^/"/; s/$/"/
13824 p
13825 b
13826 :more2
13827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13828 p
13829 g
13830 s/.\{148\}//
13831 t delim
13832 ' <conf$$subs.awk | sed '
13833 /^[^""]/{
13834 N
13835 s/\n//
13836 }
13837 ' >>$CONFIG_STATUS || ac_write_fail=1
13838 rm -f conf$$subs.awk
13839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13840 _ACAWK
13841 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13842 for (key in S) S_is_set[key] = 1
13843 FS = ""
13844
13845 }
13846 {
13847 line = $ 0
13848 nfields = split(line, field, "@")
13849 substed = 0
13850 len = length(field[1])
13851 for (i = 2; i < nfields; i++) {
13852 key = field[i]
13853 keylen = length(key)
13854 if (S_is_set[key]) {
13855 value = S[key]
13856 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13857 len += length(value) + length(field[++i])
13858 substed = 1
13859 } else
13860 len += 1 + keylen
13861 }
13862
13863 print line
13864 }
13865
13866 _ACAWK
13867 _ACEOF
13868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13870 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13871 else
13872 cat
13873 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13874 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13875 _ACEOF
13876
13877 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13878 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13879 # trailing colons and then remove the whole line if VPATH becomes empty
13880 # (actually we leave an empty line to preserve line numbers).
13881 if test "x$srcdir" = x.; then
13882 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13883 h
13884 s///
13885 s/^/:/
13886 s/[ ]*$/:/
13887 s/:\$(srcdir):/:/g
13888 s/:\${srcdir}:/:/g
13889 s/:@srcdir@:/:/g
13890 s/^:*//
13891 s/:*$//
13892 x
13893 s/\(=[ ]*\).*/\1/
13894 G
13895 s/\n//
13896 s/^[^=]*=[ ]*$//
13897 }'
13898 fi
13899
13900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13901 fi # test -n "$CONFIG_FILES"
13902
13903 # Set up the scripts for CONFIG_HEADERS section.
13904 # No need to generate them if there are no CONFIG_HEADERS.
13905 # This happens for instance with `./config.status Makefile'.
13906 if test -n "$CONFIG_HEADERS"; then
13907 cat >"$tmp/defines.awk" <<\_ACAWK ||
13908 BEGIN {
13909 _ACEOF
13910
13911 # Transform confdefs.h into an awk script `defines.awk', embedded as
13912 # here-document in config.status, that substitutes the proper values into
13913 # config.h.in to produce config.h.
13914
13915 # Create a delimiter string that does not exist in confdefs.h, to ease
13916 # handling of long lines.
13917 ac_delim='%!_!# '
13918 for ac_last_try in false false :; do
13919 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13920 if test -z "$ac_t"; then
13921 break
13922 elif $ac_last_try; then
13923 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13924 else
13925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13926 fi
13927 done
13928
13929 # For the awk script, D is an array of macro values keyed by name,
13930 # likewise P contains macro parameters if any. Preserve backslash
13931 # newline sequences.
13932
13933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13934 sed -n '
13935 s/.\{148\}/&'"$ac_delim"'/g
13936 t rset
13937 :rset
13938 s/^[ ]*#[ ]*define[ ][ ]*/ /
13939 t def
13940 d
13941 :def
13942 s/\\$//
13943 t bsnl
13944 s/["\\]/\\&/g
13945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13946 D["\1"]=" \3"/p
13947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13948 d
13949 :bsnl
13950 s/["\\]/\\&/g
13951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13952 D["\1"]=" \3\\\\\\n"\\/p
13953 t cont
13954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13955 t cont
13956 d
13957 :cont
13958 n
13959 s/.\{148\}/&'"$ac_delim"'/g
13960 t clear
13961 :clear
13962 s/\\$//
13963 t bsnlc
13964 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13965 d
13966 :bsnlc
13967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13968 b cont
13969 ' <confdefs.h | sed '
13970 s/'"$ac_delim"'/"\\\
13971 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13972
13973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13974 for (key in D) D_is_set[key] = 1
13975 FS = ""
13976 }
13977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13978 line = \$ 0
13979 split(line, arg, " ")
13980 if (arg[1] == "#") {
13981 defundef = arg[2]
13982 mac1 = arg[3]
13983 } else {
13984 defundef = substr(arg[1], 2)
13985 mac1 = arg[2]
13986 }
13987 split(mac1, mac2, "(") #)
13988 macro = mac2[1]
13989 prefix = substr(line, 1, index(line, defundef) - 1)
13990 if (D_is_set[macro]) {
13991 # Preserve the white space surrounding the "#".
13992 print prefix "define", macro P[macro] D[macro]
13993 next
13994 } else {
13995 # Replace #undef with comments. This is necessary, for example,
13996 # in the case of _POSIX_SOURCE, which is predefined and required
13997 # on some systems where configure will not decide to define it.
13998 if (defundef == "undef") {
13999 print "/*", prefix defundef, macro, "*/"
14000 next
14001 }
14002 }
14003 }
14004 { print }
14005 _ACAWK
14006 _ACEOF
14007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14008 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14009 fi # test -n "$CONFIG_HEADERS"
14010
14011
14012 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14013 shift
14014 for ac_tag
14015 do
14016 case $ac_tag in
14017 :[FHLC]) ac_mode=$ac_tag; continue;;
14018 esac
14019 case $ac_mode$ac_tag in
14020 :[FHL]*:*);;
14021 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14022 :[FH]-) ac_tag=-:-;;
14023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14024 esac
14025 ac_save_IFS=$IFS
14026 IFS=:
14027 set x $ac_tag
14028 IFS=$ac_save_IFS
14029 shift
14030 ac_file=$1
14031 shift
14032
14033 case $ac_mode in
14034 :L) ac_source=$1;;
14035 :[FH])
14036 ac_file_inputs=
14037 for ac_f
14038 do
14039 case $ac_f in
14040 -) ac_f="$tmp/stdin";;
14041 *) # Look for the file first in the build tree, then in the source tree
14042 # (if the path is not absolute). The absolute path cannot be DOS-style,
14043 # because $ac_f cannot contain `:'.
14044 test -f "$ac_f" ||
14045 case $ac_f in
14046 [\\/$]*) false;;
14047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14048 esac ||
14049 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14050 esac
14051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14052 as_fn_append ac_file_inputs " '$ac_f'"
14053 done
14054
14055 # Let's still pretend it is `configure' which instantiates (i.e., don't
14056 # use $as_me), people would be surprised to read:
14057 # /* config.h. Generated by config.status. */
14058 configure_input='Generated from '`
14059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14060 `' by configure.'
14061 if test x"$ac_file" != x-; then
14062 configure_input="$ac_file. $configure_input"
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14064 $as_echo "$as_me: creating $ac_file" >&6;}
14065 fi
14066 # Neutralize special characters interpreted by sed in replacement strings.
14067 case $configure_input in #(
14068 *\&* | *\|* | *\\* )
14069 ac_sed_conf_input=`$as_echo "$configure_input" |
14070 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14071 *) ac_sed_conf_input=$configure_input;;
14072 esac
14073
14074 case $ac_tag in
14075 *:-:* | *:-) cat >"$tmp/stdin" \
14076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14077 esac
14078 ;;
14079 esac
14080
14081 ac_dir=`$as_dirname -- "$ac_file" ||
14082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14083 X"$ac_file" : 'X\(//\)[^/]' \| \
14084 X"$ac_file" : 'X\(//\)$' \| \
14085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14086 $as_echo X"$ac_file" |
14087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14088 s//\1/
14089 q
14090 }
14091 /^X\(\/\/\)[^/].*/{
14092 s//\1/
14093 q
14094 }
14095 /^X\(\/\/\)$/{
14096 s//\1/
14097 q
14098 }
14099 /^X\(\/\).*/{
14100 s//\1/
14101 q
14102 }
14103 s/.*/./; q'`
14104 as_dir="$ac_dir"; as_fn_mkdir_p
14105 ac_builddir=.
14106
14107 case "$ac_dir" in
14108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14109 *)
14110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14111 # A ".." for each directory in $ac_dir_suffix.
14112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14113 case $ac_top_builddir_sub in
14114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14116 esac ;;
14117 esac
14118 ac_abs_top_builddir=$ac_pwd
14119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14120 # for backward compatibility:
14121 ac_top_builddir=$ac_top_build_prefix
14122
14123 case $srcdir in
14124 .) # We are building in place.
14125 ac_srcdir=.
14126 ac_top_srcdir=$ac_top_builddir_sub
14127 ac_abs_top_srcdir=$ac_pwd ;;
14128 [\\/]* | ?:[\\/]* ) # Absolute name.
14129 ac_srcdir=$srcdir$ac_dir_suffix;
14130 ac_top_srcdir=$srcdir
14131 ac_abs_top_srcdir=$srcdir ;;
14132 *) # Relative name.
14133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14134 ac_top_srcdir=$ac_top_build_prefix$srcdir
14135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14136 esac
14137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14138
14139
14140 case $ac_mode in
14141 :F)
14142 #
14143 # CONFIG_FILE
14144 #
14145
14146 case $INSTALL in
14147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14149 esac
14150 ac_MKDIR_P=$MKDIR_P
14151 case $MKDIR_P in
14152 [\\/$]* | ?:[\\/]* ) ;;
14153 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14154 esac
14155 _ACEOF
14156
14157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14158 # If the template does not know about datarootdir, expand it.
14159 # FIXME: This hack should be removed a few years after 2.60.
14160 ac_datarootdir_hack=; ac_datarootdir_seen=
14161 ac_sed_dataroot='
14162 /datarootdir/ {
14163 p
14164 q
14165 }
14166 /@datadir@/p
14167 /@docdir@/p
14168 /@infodir@/p
14169 /@localedir@/p
14170 /@mandir@/p'
14171 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14172 *datarootdir*) ac_datarootdir_seen=yes;;
14173 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14175 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14176 _ACEOF
14177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14178 ac_datarootdir_hack='
14179 s&@datadir@&$datadir&g
14180 s&@docdir@&$docdir&g
14181 s&@infodir@&$infodir&g
14182 s&@localedir@&$localedir&g
14183 s&@mandir@&$mandir&g
14184 s&\\\${datarootdir}&$datarootdir&g' ;;
14185 esac
14186 _ACEOF
14187
14188 # Neutralize VPATH when `$srcdir' = `.'.
14189 # Shell code in configure.ac might set extrasub.
14190 # FIXME: do we really want to maintain this feature?
14191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14192 ac_sed_extra="$ac_vpsub
14193 $extrasub
14194 _ACEOF
14195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14196 :t
14197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14198 s|@configure_input@|$ac_sed_conf_input|;t t
14199 s&@top_builddir@&$ac_top_builddir_sub&;t t
14200 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14201 s&@srcdir@&$ac_srcdir&;t t
14202 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14203 s&@top_srcdir@&$ac_top_srcdir&;t t
14204 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14205 s&@builddir@&$ac_builddir&;t t
14206 s&@abs_builddir@&$ac_abs_builddir&;t t
14207 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14208 s&@INSTALL@&$ac_INSTALL&;t t
14209 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14210 $ac_datarootdir_hack
14211 "
14212 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14213 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14214
14215 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14216 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14217 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14219 which seems to be undefined. Please make sure it is defined" >&5
14220 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14221 which seems to be undefined. Please make sure it is defined" >&2;}
14222
14223 rm -f "$tmp/stdin"
14224 case $ac_file in
14225 -) cat "$tmp/out" && rm -f "$tmp/out";;
14226 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14227 esac \
14228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14229 ;;
14230 :H)
14231 #
14232 # CONFIG_HEADER
14233 #
14234 if test x"$ac_file" != x-; then
14235 {
14236 $as_echo "/* $configure_input */" \
14237 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14238 } >"$tmp/config.h" \
14239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14240 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14242 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14243 else
14244 rm -f "$ac_file"
14245 mv "$tmp/config.h" "$ac_file" \
14246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14247 fi
14248 else
14249 $as_echo "/* $configure_input */" \
14250 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14251 || as_fn_error $? "could not create -" "$LINENO" 5
14252 fi
14253 # Compute "$ac_file"'s index in $config_headers.
14254 _am_arg="$ac_file"
14255 _am_stamp_count=1
14256 for _am_header in $config_headers :; do
14257 case $_am_header in
14258 $_am_arg | $_am_arg:* )
14259 break ;;
14260 * )
14261 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14262 esac
14263 done
14264 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14265 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14266 X"$_am_arg" : 'X\(//\)[^/]' \| \
14267 X"$_am_arg" : 'X\(//\)$' \| \
14268 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14269 $as_echo X"$_am_arg" |
14270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14271 s//\1/
14272 q
14273 }
14274 /^X\(\/\/\)[^/].*/{
14275 s//\1/
14276 q
14277 }
14278 /^X\(\/\/\)$/{
14279 s//\1/
14280 q
14281 }
14282 /^X\(\/\).*/{
14283 s//\1/
14284 q
14285 }
14286 s/.*/./; q'`/stamp-h$_am_stamp_count
14287 ;;
14288
14289 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14290 $as_echo "$as_me: executing $ac_file commands" >&6;}
14291 ;;
14292 esac
14293
14294
14295 case $ac_file$ac_mode in
14296 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14297 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14298 # are listed without --file. Let's play safe and only enable the eval
14299 # if we detect the quoting.
14300 case $CONFIG_FILES in
14301 *\'*) eval set x "$CONFIG_FILES" ;;
14302 *) set x $CONFIG_FILES ;;
14303 esac
14304 shift
14305 for mf
14306 do
14307 # Strip MF so we end up with the name of the file.
14308 mf=`echo "$mf" | sed -e 's/:.*$//'`
14309 # Check whether this is an Automake generated Makefile or not.
14310 # We used to match only the files named `Makefile.in', but
14311 # some people rename them; so instead we look at the file content.
14312 # Grep'ing the first line is not enough: some people post-process
14313 # each Makefile.in and add a new line on top of each file to say so.
14314 # Grep'ing the whole file is not good either: AIX grep has a line
14315 # limit of 2048, but all sed's we know have understand at least 4000.
14316 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14317 dirpart=`$as_dirname -- "$mf" ||
14318 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14319 X"$mf" : 'X\(//\)[^/]' \| \
14320 X"$mf" : 'X\(//\)$' \| \
14321 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14322 $as_echo X"$mf" |
14323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14324 s//\1/
14325 q
14326 }
14327 /^X\(\/\/\)[^/].*/{
14328 s//\1/
14329 q
14330 }
14331 /^X\(\/\/\)$/{
14332 s//\1/
14333 q
14334 }
14335 /^X\(\/\).*/{
14336 s//\1/
14337 q
14338 }
14339 s/.*/./; q'`
14340 else
14341 continue
14342 fi
14343 # Extract the definition of DEPDIR, am__include, and am__quote
14344 # from the Makefile without running `make'.
14345 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14346 test -z "$DEPDIR" && continue
14347 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14348 test -z "am__include" && continue
14349 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14350 # When using ansi2knr, U may be empty or an underscore; expand it
14351 U=`sed -n 's/^U = //p' < "$mf"`
14352 # Find all dependency output files, they are included files with
14353 # $(DEPDIR) in their names. We invoke sed twice because it is the
14354 # simplest approach to changing $(DEPDIR) to its actual value in the
14355 # expansion.
14356 for file in `sed -n "
14357 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14358 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14359 # Make sure the directory exists.
14360 test -f "$dirpart/$file" && continue
14361 fdir=`$as_dirname -- "$file" ||
14362 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14363 X"$file" : 'X\(//\)[^/]' \| \
14364 X"$file" : 'X\(//\)$' \| \
14365 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14366 $as_echo X"$file" |
14367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14368 s//\1/
14369 q
14370 }
14371 /^X\(\/\/\)[^/].*/{
14372 s//\1/
14373 q
14374 }
14375 /^X\(\/\/\)$/{
14376 s//\1/
14377 q
14378 }
14379 /^X\(\/\).*/{
14380 s//\1/
14381 q
14382 }
14383 s/.*/./; q'`
14384 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14385 # echo "creating $dirpart/$file"
14386 echo '# dummy' > "$dirpart/$file"
14387 done
14388 done
14389 }
14390 ;;
14391 "libtool":C)
14392
14393 # See if we are running on zsh, and set the options which allow our
14394 # commands through without removal of \ escapes.
14395 if test -n "${ZSH_VERSION+set}" ; then
14396 setopt NO_GLOB_SUBST
14397 fi
14398
14399 cfgfile="${ofile}T"
14400 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14401 $RM "$cfgfile"
14402
14403 cat <<_LT_EOF >> "$cfgfile"
14404 #! $SHELL
14405
14406 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14407 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14409 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14410 #
14411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14412 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14413 # Inc.
14414 # Written by Gordon Matzigkeit, 1996
14415 #
14416 # This file is part of GNU Libtool.
14417 #
14418 # GNU Libtool is free software; you can redistribute it and/or
14419 # modify it under the terms of the GNU General Public License as
14420 # published by the Free Software Foundation; either version 2 of
14421 # the License, or (at your option) any later version.
14422 #
14423 # As a special exception to the GNU General Public License,
14424 # if you distribute this file as part of a program or library that
14425 # is built using GNU Libtool, you may include this file under the
14426 # same distribution terms that you use for the rest of that program.
14427 #
14428 # GNU Libtool is distributed in the hope that it will be useful,
14429 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14430 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14431 # GNU General Public License for more details.
14432 #
14433 # You should have received a copy of the GNU General Public License
14434 # along with GNU Libtool; see the file COPYING. If not, a copy
14435 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14436 # obtained by writing to the Free Software Foundation, Inc.,
14437 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14438
14439
14440 # The names of the tagged configurations supported by this script.
14441 available_tags=""
14442
14443 # ### BEGIN LIBTOOL CONFIG
14444
14445 # Which release of libtool.m4 was used?
14446 macro_version=$macro_version
14447 macro_revision=$macro_revision
14448
14449 # Whether or not to build shared libraries.
14450 build_libtool_libs=$enable_shared
14451
14452 # Whether or not to build static libraries.
14453 build_old_libs=$enable_static
14454
14455 # What type of objects to build.
14456 pic_mode=$pic_mode
14457
14458 # Whether or not to optimize for fast installation.
14459 fast_install=$enable_fast_install
14460
14461 # Shell to use when invoking shell scripts.
14462 SHELL=$lt_SHELL
14463
14464 # An echo program that protects backslashes.
14465 ECHO=$lt_ECHO
14466
14467 # The host system.
14468 host_alias=$host_alias
14469 host=$host
14470 host_os=$host_os
14471
14472 # The build system.
14473 build_alias=$build_alias
14474 build=$build
14475 build_os=$build_os
14476
14477 # A sed program that does not truncate output.
14478 SED=$lt_SED
14479
14480 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14481 Xsed="\$SED -e 1s/^X//"
14482
14483 # A grep program that handles long lines.
14484 GREP=$lt_GREP
14485
14486 # An ERE matcher.
14487 EGREP=$lt_EGREP
14488
14489 # A literal string matcher.
14490 FGREP=$lt_FGREP
14491
14492 # A BSD- or MS-compatible name lister.
14493 NM=$lt_NM
14494
14495 # Whether we need soft or hard links.
14496 LN_S=$lt_LN_S
14497
14498 # What is the maximum length of a command?
14499 max_cmd_len=$max_cmd_len
14500
14501 # Object file suffix (normally "o").
14502 objext=$ac_objext
14503
14504 # Executable file suffix (normally "").
14505 exeext=$exeext
14506
14507 # whether the shell understands "unset".
14508 lt_unset=$lt_unset
14509
14510 # turn spaces into newlines.
14511 SP2NL=$lt_lt_SP2NL
14512
14513 # turn newlines into spaces.
14514 NL2SP=$lt_lt_NL2SP
14515
14516 # An object symbol dumper.
14517 OBJDUMP=$lt_OBJDUMP
14518
14519 # Method to check whether dependent libraries are shared objects.
14520 deplibs_check_method=$lt_deplibs_check_method
14521
14522 # Command to use when deplibs_check_method == "file_magic".
14523 file_magic_cmd=$lt_file_magic_cmd
14524
14525 # The archiver.
14526 AR=$lt_AR
14527 AR_FLAGS=$lt_AR_FLAGS
14528
14529 # A symbol stripping program.
14530 STRIP=$lt_STRIP
14531
14532 # Commands used to install an old-style archive.
14533 RANLIB=$lt_RANLIB
14534 old_postinstall_cmds=$lt_old_postinstall_cmds
14535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14536
14537 # Whether to use a lock for old archive extraction.
14538 lock_old_archive_extraction=$lock_old_archive_extraction
14539
14540 # A C compiler.
14541 LTCC=$lt_CC
14542
14543 # LTCC compiler flags.
14544 LTCFLAGS=$lt_CFLAGS
14545
14546 # Take the output of nm and produce a listing of raw symbols and C names.
14547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14548
14549 # Transform the output of nm in a proper C declaration.
14550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14551
14552 # Transform the output of nm in a C name address pair.
14553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14554
14555 # Transform the output of nm in a C name address pair when lib prefix is needed.
14556 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14557
14558 # The name of the directory that contains temporary libtool files.
14559 objdir=$objdir
14560
14561 # Used to examine libraries when file_magic_cmd begins with "file".
14562 MAGIC_CMD=$MAGIC_CMD
14563
14564 # Must we lock files when doing compilation?
14565 need_locks=$lt_need_locks
14566
14567 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14568 DSYMUTIL=$lt_DSYMUTIL
14569
14570 # Tool to change global to local symbols on Mac OS X.
14571 NMEDIT=$lt_NMEDIT
14572
14573 # Tool to manipulate fat objects and archives on Mac OS X.
14574 LIPO=$lt_LIPO
14575
14576 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14577 OTOOL=$lt_OTOOL
14578
14579 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14580 OTOOL64=$lt_OTOOL64
14581
14582 # Old archive suffix (normally "a").
14583 libext=$libext
14584
14585 # Shared library suffix (normally ".so").
14586 shrext_cmds=$lt_shrext_cmds
14587
14588 # The commands to extract the exported symbol list from a shared archive.
14589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14590
14591 # Variables whose values should be saved in libtool wrapper scripts and
14592 # restored at link time.
14593 variables_saved_for_relink=$lt_variables_saved_for_relink
14594
14595 # Do we need the "lib" prefix for modules?
14596 need_lib_prefix=$need_lib_prefix
14597
14598 # Do we need a version for libraries?
14599 need_version=$need_version
14600
14601 # Library versioning type.
14602 version_type=$version_type
14603
14604 # Shared library runtime path variable.
14605 runpath_var=$runpath_var
14606
14607 # Shared library path variable.
14608 shlibpath_var=$shlibpath_var
14609
14610 # Is shlibpath searched before the hard-coded library search path?
14611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14612
14613 # Format of library name prefix.
14614 libname_spec=$lt_libname_spec
14615
14616 # List of archive names. First name is the real one, the rest are links.
14617 # The last name is the one that the linker finds with -lNAME
14618 library_names_spec=$lt_library_names_spec
14619
14620 # The coded name of the library, if different from the real name.
14621 soname_spec=$lt_soname_spec
14622
14623 # Permission mode override for installation of shared libraries.
14624 install_override_mode=$lt_install_override_mode
14625
14626 # Command to use after installation of a shared archive.
14627 postinstall_cmds=$lt_postinstall_cmds
14628
14629 # Command to use after uninstallation of a shared archive.
14630 postuninstall_cmds=$lt_postuninstall_cmds
14631
14632 # Commands used to finish a libtool library installation in a directory.
14633 finish_cmds=$lt_finish_cmds
14634
14635 # As "finish_cmds", except a single script fragment to be evaled but
14636 # not shown.
14637 finish_eval=$lt_finish_eval
14638
14639 # Whether we should hardcode library paths into libraries.
14640 hardcode_into_libs=$hardcode_into_libs
14641
14642 # Compile-time system search path for libraries.
14643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14644
14645 # Run-time system search path for libraries.
14646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14647
14648 # Whether dlopen is supported.
14649 dlopen_support=$enable_dlopen
14650
14651 # Whether dlopen of programs is supported.
14652 dlopen_self=$enable_dlopen_self
14653
14654 # Whether dlopen of statically linked programs is supported.
14655 dlopen_self_static=$enable_dlopen_self_static
14656
14657 # Commands to strip libraries.
14658 old_striplib=$lt_old_striplib
14659 striplib=$lt_striplib
14660
14661
14662 # The linker used to build libraries.
14663 LD=$lt_LD
14664
14665 # How to create reloadable object files.
14666 reload_flag=$lt_reload_flag
14667 reload_cmds=$lt_reload_cmds
14668
14669 # Commands used to build an old-style archive.
14670 old_archive_cmds=$lt_old_archive_cmds
14671
14672 # A language specific compiler.
14673 CC=$lt_compiler
14674
14675 # Is the compiler the GNU compiler?
14676 with_gcc=$GCC
14677
14678 # Compiler flag to turn off builtin functions.
14679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14680
14681 # How to pass a linker flag through the compiler.
14682 wl=$lt_lt_prog_compiler_wl
14683
14684 # Additional compiler flags for building library objects.
14685 pic_flag=$lt_lt_prog_compiler_pic
14686
14687 # Compiler flag to prevent dynamic linking.
14688 link_static_flag=$lt_lt_prog_compiler_static
14689
14690 # Does compiler simultaneously support -c and -o options?
14691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14692
14693 # Whether or not to add -lc for building shared libraries.
14694 build_libtool_need_lc=$archive_cmds_need_lc
14695
14696 # Whether or not to disallow shared libs when runtime libs are static.
14697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14698
14699 # Compiler flag to allow reflexive dlopens.
14700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14701
14702 # Compiler flag to generate shared objects directly from archives.
14703 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14704
14705 # Whether the compiler copes with passing no objects directly.
14706 compiler_needs_object=$lt_compiler_needs_object
14707
14708 # Create an old-style archive from a shared archive.
14709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14710
14711 # Create a temporary old-style archive to link instead of a shared archive.
14712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14713
14714 # Commands used to build a shared archive.
14715 archive_cmds=$lt_archive_cmds
14716 archive_expsym_cmds=$lt_archive_expsym_cmds
14717
14718 # Commands used to build a loadable module if different from building
14719 # a shared archive.
14720 module_cmds=$lt_module_cmds
14721 module_expsym_cmds=$lt_module_expsym_cmds
14722
14723 # Whether we are building with GNU ld or not.
14724 with_gnu_ld=$lt_with_gnu_ld
14725
14726 # Flag that allows shared libraries with undefined symbols to be built.
14727 allow_undefined_flag=$lt_allow_undefined_flag
14728
14729 # Flag that enforces no undefined symbols.
14730 no_undefined_flag=$lt_no_undefined_flag
14731
14732 # Flag to hardcode \$libdir into a binary during linking.
14733 # This must work even if \$libdir does not exist
14734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14735
14736 # If ld is used when linking, flag to hardcode \$libdir into a binary
14737 # during linking. This must work even if \$libdir does not exist.
14738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14739
14740 # Whether we need a single "-rpath" flag with a separated argument.
14741 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14742
14743 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14744 # DIR into the resulting binary.
14745 hardcode_direct=$hardcode_direct
14746
14747 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14748 # DIR into the resulting binary and the resulting library dependency is
14749 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14750 # library is relocated.
14751 hardcode_direct_absolute=$hardcode_direct_absolute
14752
14753 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14754 # into the resulting binary.
14755 hardcode_minus_L=$hardcode_minus_L
14756
14757 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14758 # into the resulting binary.
14759 hardcode_shlibpath_var=$hardcode_shlibpath_var
14760
14761 # Set to "yes" if building a shared library automatically hardcodes DIR
14762 # into the library and all subsequent libraries and executables linked
14763 # against it.
14764 hardcode_automatic=$hardcode_automatic
14765
14766 # Set to yes if linker adds runtime paths of dependent libraries
14767 # to runtime path list.
14768 inherit_rpath=$inherit_rpath
14769
14770 # Whether libtool must link a program against all its dependency libraries.
14771 link_all_deplibs=$link_all_deplibs
14772
14773 # Fix the shell variable \$srcfile for the compiler.
14774 fix_srcfile_path=$lt_fix_srcfile_path
14775
14776 # Set to "yes" if exported symbols are required.
14777 always_export_symbols=$always_export_symbols
14778
14779 # The commands to list exported symbols.
14780 export_symbols_cmds=$lt_export_symbols_cmds
14781
14782 # Symbols that should not be listed in the preloaded symbols.
14783 exclude_expsyms=$lt_exclude_expsyms
14784
14785 # Symbols that must always be exported.
14786 include_expsyms=$lt_include_expsyms
14787
14788 # Commands necessary for linking programs (against libraries) with templates.
14789 prelink_cmds=$lt_prelink_cmds
14790
14791 # Specify filename containing input files.
14792 file_list_spec=$lt_file_list_spec
14793
14794 # How to hardcode a shared library path into an executable.
14795 hardcode_action=$hardcode_action
14796
14797 # ### END LIBTOOL CONFIG
14798
14799 _LT_EOF
14800
14801 case $host_os in
14802 aix3*)
14803 cat <<\_LT_EOF >> "$cfgfile"
14804 # AIX sometimes has problems with the GCC collect2 program. For some
14805 # reason, if we set the COLLECT_NAMES environment variable, the problems
14806 # vanish in a puff of smoke.
14807 if test "X${COLLECT_NAMES+set}" != Xset; then
14808 COLLECT_NAMES=
14809 export COLLECT_NAMES
14810 fi
14811 _LT_EOF
14812 ;;
14813 esac
14814
14815
14816 ltmain="$ac_aux_dir/ltmain.sh"
14817
14818
14819 # We use sed instead of cat because bash on DJGPP gets confused if
14820 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14821 # text mode, it properly converts lines to CR/LF. This bash problem
14822 # is reportedly fixed, but why not run on old versions too?
14823 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14824 || (rm -f "$cfgfile"; exit 1)
14825
14826 case $xsi_shell in
14827 yes)
14828 cat << \_LT_EOF >> "$cfgfile"
14829
14830 # func_dirname file append nondir_replacement
14831 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14832 # otherwise set result to NONDIR_REPLACEMENT.
14833 func_dirname ()
14834 {
14835 case ${1} in
14836 */*) func_dirname_result="${1%/*}${2}" ;;
14837 * ) func_dirname_result="${3}" ;;
14838 esac
14839 }
14840
14841 # func_basename file
14842 func_basename ()
14843 {
14844 func_basename_result="${1##*/}"
14845 }
14846
14847 # func_dirname_and_basename file append nondir_replacement
14848 # perform func_basename and func_dirname in a single function
14849 # call:
14850 # dirname: Compute the dirname of FILE. If nonempty,
14851 # add APPEND to the result, otherwise set result
14852 # to NONDIR_REPLACEMENT.
14853 # value returned in "$func_dirname_result"
14854 # basename: Compute filename of FILE.
14855 # value retuned in "$func_basename_result"
14856 # Implementation must be kept synchronized with func_dirname
14857 # and func_basename. For efficiency, we do not delegate to
14858 # those functions but instead duplicate the functionality here.
14859 func_dirname_and_basename ()
14860 {
14861 case ${1} in
14862 */*) func_dirname_result="${1%/*}${2}" ;;
14863 * ) func_dirname_result="${3}" ;;
14864 esac
14865 func_basename_result="${1##*/}"
14866 }
14867
14868 # func_stripname prefix suffix name
14869 # strip PREFIX and SUFFIX off of NAME.
14870 # PREFIX and SUFFIX must not contain globbing or regex special
14871 # characters, hashes, percent signs, but SUFFIX may contain a leading
14872 # dot (in which case that matches only a dot).
14873 func_stripname ()
14874 {
14875 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14876 # positional parameters, so assign one to ordinary parameter first.
14877 func_stripname_result=${3}
14878 func_stripname_result=${func_stripname_result#"${1}"}
14879 func_stripname_result=${func_stripname_result%"${2}"}
14880 }
14881
14882 # func_opt_split
14883 func_opt_split ()
14884 {
14885 func_opt_split_opt=${1%%=*}
14886 func_opt_split_arg=${1#*=}
14887 }
14888
14889 # func_lo2o object
14890 func_lo2o ()
14891 {
14892 case ${1} in
14893 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14894 *) func_lo2o_result=${1} ;;
14895 esac
14896 }
14897
14898 # func_xform libobj-or-source
14899 func_xform ()
14900 {
14901 func_xform_result=${1%.*}.lo
14902 }
14903
14904 # func_arith arithmetic-term...
14905 func_arith ()
14906 {
14907 func_arith_result=$(( $* ))
14908 }
14909
14910 # func_len string
14911 # STRING may not start with a hyphen.
14912 func_len ()
14913 {
14914 func_len_result=${#1}
14915 }
14916
14917 _LT_EOF
14918 ;;
14919 *) # Bourne compatible functions.
14920 cat << \_LT_EOF >> "$cfgfile"
14921
14922 # func_dirname file append nondir_replacement
14923 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14924 # otherwise set result to NONDIR_REPLACEMENT.
14925 func_dirname ()
14926 {
14927 # Extract subdirectory from the argument.
14928 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14929 if test "X$func_dirname_result" = "X${1}"; then
14930 func_dirname_result="${3}"
14931 else
14932 func_dirname_result="$func_dirname_result${2}"
14933 fi
14934 }
14935
14936 # func_basename file
14937 func_basename ()
14938 {
14939 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14940 }
14941
14942
14943 # func_stripname prefix suffix name
14944 # strip PREFIX and SUFFIX off of NAME.
14945 # PREFIX and SUFFIX must not contain globbing or regex special
14946 # characters, hashes, percent signs, but SUFFIX may contain a leading
14947 # dot (in which case that matches only a dot).
14948 # func_strip_suffix prefix name
14949 func_stripname ()
14950 {
14951 case ${2} in
14952 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14953 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14954 esac
14955 }
14956
14957 # sed scripts:
14958 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14959 my_sed_long_arg='1s/^-[^=]*=//'
14960
14961 # func_opt_split
14962 func_opt_split ()
14963 {
14964 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14965 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14966 }
14967
14968 # func_lo2o object
14969 func_lo2o ()
14970 {
14971 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14972 }
14973
14974 # func_xform libobj-or-source
14975 func_xform ()
14976 {
14977 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14978 }
14979
14980 # func_arith arithmetic-term...
14981 func_arith ()
14982 {
14983 func_arith_result=`expr "$@"`
14984 }
14985
14986 # func_len string
14987 # STRING may not start with a hyphen.
14988 func_len ()
14989 {
14990 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14991 }
14992
14993 _LT_EOF
14994 esac
14995
14996 case $lt_shell_append in
14997 yes)
14998 cat << \_LT_EOF >> "$cfgfile"
14999
15000 # func_append var value
15001 # Append VALUE to the end of shell variable VAR.
15002 func_append ()
15003 {
15004 eval "$1+=\$2"
15005 }
15006 _LT_EOF
15007 ;;
15008 *)
15009 cat << \_LT_EOF >> "$cfgfile"
15010
15011 # func_append var value
15012 # Append VALUE to the end of shell variable VAR.
15013 func_append ()
15014 {
15015 eval "$1=\$$1\$2"
15016 }
15017
15018 _LT_EOF
15019 ;;
15020 esac
15021
15022
15023 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15024 || (rm -f "$cfgfile"; exit 1)
15025
15026 mv -f "$cfgfile" "$ofile" ||
15027 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15028 chmod +x "$ofile"
15029
15030 ;;
15031
15032 esac
15033 done # for ac_tag
15034
15035
15036 as_fn_exit 0
15037 _ACEOF
15038 ac_clean_files=$ac_clean_files_save
15039
15040 test $ac_write_fail = 0 ||
15041 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15042
15043
15044 # configure is writing to config.log, and then calls config.status.
15045 # config.status does its own redirection, appending to config.log.
15046 # Unfortunately, on DOS this fails, as config.log is still kept open
15047 # by configure, so config.status won't be able to write to it; its
15048 # output is simply discarded. So we exec the FD to /dev/null,
15049 # effectively closing config.log, so it can be properly (re)opened and
15050 # appended to by config.status. When coming back to configure, we
15051 # need to make the FD available again.
15052 if test "$no_create" != yes; then
15053 ac_cs_success=:
15054 ac_config_status_args=
15055 test "$silent" = yes &&
15056 ac_config_status_args="$ac_config_status_args --quiet"
15057 exec 5>/dev/null
15058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15059 exec 5>>config.log
15060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15061 # would make configure fail if this is the last instruction.
15062 $ac_cs_success || as_fn_exit 1
15063 fi
15064 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15066 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15067 fi
15068
15069
15070