configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libXi 1.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libXi'
747 PACKAGE_TARNAME='libXi'
748 PACKAGE_VERSION='1.3'
749 PACKAGE_STRING='libXi 1.3'
750 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 # include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 # include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 ac_subst_vars='am__EXEEXT_FALSE
789 am__EXEEXT_TRUE
790 LTLIBOBJS
791 LIBOBJS
792 XTMALLOC_ZERO_CFLAGS
793 XMALLOC_ZERO_CFLAGS
794 MALLOC_ZERO_CFLAGS
795 HAVE_DOCTOOLS_FALSE
796 HAVE_DOCTOOLS_TRUE
797 ASCIIDOC
798 XMLTO
799 XI_LIBS
800 XI_CFLAGS
801 PKG_CONFIG
802 ADMIN_MAN_DIR
803 DRIVER_MAN_DIR
804 MISC_MAN_DIR
805 FILE_MAN_DIR
806 LIB_MAN_DIR
807 APP_MAN_DIR
808 ADMIN_MAN_SUFFIX
809 DRIVER_MAN_SUFFIX
810 MISC_MAN_SUFFIX
811 FILE_MAN_SUFFIX
812 LIB_MAN_SUFFIX
813 APP_MAN_SUFFIX
814 distcleancheck_listfiles
815 CHANGELOG_CMD
816 AM_BACKSLASH
817 AM_DEFAULT_VERBOSITY
818 CWARNFLAGS
819 CPP
820 OTOOL64
821 OTOOL
822 LIPO
823 NMEDIT
824 DSYMUTIL
825 lt_ECHO
826 RANLIB
827 AR
828 OBJDUMP
829 LN_S
830 NM
831 ac_ct_DUMPBIN
832 DUMPBIN
833 LD
834 FGREP
835 EGREP
836 GREP
837 SED
838 host_os
839 host_vendor
840 host_cpu
841 host
842 build_os
843 build_vendor
844 build_cpu
845 build
846 LIBTOOL
847 am__fastdepCC_FALSE
848 am__fastdepCC_TRUE
849 CCDEPMODE
850 AMDEPBACKSLASH
851 AMDEP_FALSE
852 AMDEP_TRUE
853 am__quote
854 am__include
855 DEPDIR
856 OBJEXT
857 EXEEXT
858 ac_ct_CC
859 CPPFLAGS
860 LDFLAGS
861 CFLAGS
862 CC
863 MAINT
864 MAINTAINER_MODE_FALSE
865 MAINTAINER_MODE_TRUE
866 am__untar
867 am__tar
868 AMTAR
869 am__leading_dot
870 SET_MAKE
871 AWK
872 mkdir_p
873 MKDIR_P
874 INSTALL_STRIP_PROGRAM
875 STRIP
876 install_sh
877 MAKEINFO
878 AUTOHEADER
879 AUTOMAKE
880 AUTOCONF
881 ACLOCAL
882 VERSION
883 PACKAGE
884 CYGPATH_W
885 am__isrc
886 INSTALL_DATA
887 INSTALL_SCRIPT
888 INSTALL_PROGRAM
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_BUGREPORT
920 PACKAGE_STRING
921 PACKAGE_VERSION
922 PACKAGE_TARNAME
923 PACKAGE_NAME
924 PATH_SEPARATOR
925 SHELL'
926 ac_subst_files=''
927 ac_user_opts='
928 enable_option_checking
929 enable_maintainer_mode
930 enable_dependency_tracking
931 enable_shared
932 enable_static
933 with_pic
934 enable_fast_install
935 with_gnu_ld
936 enable_libtool_lock
937 enable_silent_rules
938 enable_strict_compilation
939 with_release_version
940 enable_malloc0returnsnull
941 '
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
945 CC
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
950 CPP
951 PKG_CONFIG
952 XI_CFLAGS
953 XI_LIBS
954 XMLTO
955 ASCIIDOC'
956
957
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 ac_unrecognized_opts=
962 ac_unrecognized_sep=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
979
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1005
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1009 do
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1015 fi
1016
1017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
1021
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024 case $ac_dashdash$ac_option in
1025 --)
1026 ac_dashdash=yes ;;
1027
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1032
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1037
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1044
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1047
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1052
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1059
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=no ;;
1076
1077 -docdir | --docdir | --docdi | --doc | --do)
1078 ac_prev=docdir ;;
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1081
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 ac_prev=dvidir ;;
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
1086
1087 -enable-* | --enable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1092 { (exit 1); exit 1; }; }
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1301 *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=\$ac_optarg ;;
1308
1309 -without-* | --without-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1314 { (exit 1); exit 1; }; }
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=no ;;
1325
1326 --x)
1327 # Obsolete; use --with-x.
1328 with_x=yes ;;
1329
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1336
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1343
1344 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1345 Try \`$0 --help' for more information." >&2
1346 { (exit 1); exit 1; }; }
1347 ;;
1348
1349 *=*)
1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1353 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1354 { (exit 1); exit 1; }; }
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1357
1358 *)
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1364 ;;
1365
1366 esac
1367 done
1368
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1372 { (exit 1); exit 1; }; }
1373 fi
1374
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1377 no) ;;
1378 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1379 { (exit 1); exit 1; }; } ;;
1380 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381 esac
1382 fi
1383
1384 # Check all directory arguments for consistency.
1385 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1386 datadir sysconfdir sharedstatedir localstatedir includedir \
1387 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1388 libdir localedir mandir
1389 do
1390 eval ac_val=\$$ac_var
1391 # Remove trailing slashes.
1392 case $ac_val in
1393 */ )
1394 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1395 eval $ac_var=\$ac_val;;
1396 esac
1397 # Be sure to have absolute directory names.
1398 case $ac_val in
1399 [\\/$]* | ?:[\\/]* ) continue;;
1400 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401 esac
1402 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1403 { (exit 1); exit 1; }; }
1404 done
1405
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1412
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1420 cross_compiling=yes
1421 fi
1422 fi
1423
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
1427 test "$silent" = yes && exec 6>/dev/null
1428
1429
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1434 { (exit 1); exit 1; }; }
1435 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1437 { (exit 1); exit 1; }; }
1438
1439
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 s//\1/
1452 q
1453 }
1454 /^X\(\/\/\)[^/].*/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\).*/{
1463 s//\1/
1464 q
1465 }
1466 s/.*/./; q'`
1467 srcdir=$ac_confdir
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 srcdir=..
1470 fi
1471 else
1472 ac_srcdir_defaulted=no
1473 fi
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1477 { (exit 1); exit 1; }; }
1478 fi
1479 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 ac_abs_confdir=`(
1481 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1482 { (exit 1); exit 1; }; }
1483 pwd)`
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 srcdir=.
1487 fi
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1491 case $srcdir in
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 esac
1494 for ac_var in $ac_precious_vars; do
1495 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_env_${ac_var}_value=\$${ac_var}
1497 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499 done
1500
1501 #
1502 # Report the --help message.
1503 #
1504 if test "$ac_init_help" = "long"; then
1505 # Omit some internal or obsolete options to make the list less imposing.
1506 # This message is too long to be a string in the A/UX 3.1 sh.
1507 cat <<_ACEOF
1508 \`configure' configures libXi 1.3 to adapt to many kinds of systems.
1509
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1511
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE. See below for descriptions of some of the useful variables.
1514
1515 Defaults for the options are specified in brackets.
1516
1517 Configuration:
1518 -h, --help display this help and exit
1519 --help=short display options specific to this package
1520 --help=recursive display the short help of all the included packages
1521 -V, --version display version information and exit
1522 -q, --quiet, --silent do not print \`checking...' messages
1523 --cache-file=FILE cache test results in FILE [disabled]
1524 -C, --config-cache alias for \`--cache-file=config.cache'
1525 -n, --no-create do not create output files
1526 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1527
1528 Installation directories:
1529 --prefix=PREFIX install architecture-independent files in PREFIX
1530 [$ac_default_prefix]
1531 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 [PREFIX]
1533
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1538
1539 For better control, use the options below.
1540
1541 Fine tuning of the installation directories:
1542 --bindir=DIR user executables [EPREFIX/bin]
1543 --sbindir=DIR system admin executables [EPREFIX/sbin]
1544 --libexecdir=DIR program executables [EPREFIX/libexec]
1545 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1546 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1547 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1548 --libdir=DIR object code libraries [EPREFIX/lib]
1549 --includedir=DIR C header files [PREFIX/include]
1550 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1551 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1552 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1553 --infodir=DIR info documentation [DATAROOTDIR/info]
1554 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1555 --mandir=DIR man documentation [DATAROOTDIR/man]
1556 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1557 --htmldir=DIR html documentation [DOCDIR]
1558 --dvidir=DIR dvi documentation [DOCDIR]
1559 --pdfdir=DIR pdf documentation [DOCDIR]
1560 --psdir=DIR ps documentation [DOCDIR]
1561 _ACEOF
1562
1563 cat <<\_ACEOF
1564
1565 Program names:
1566 --program-prefix=PREFIX prepend PREFIX to installed program names
1567 --program-suffix=SUFFIX append SUFFIX to installed program names
1568 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1569
1570 System types:
1571 --build=BUILD configure for building on BUILD [guessed]
1572 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1573 _ACEOF
1574 fi
1575
1576 if test -n "$ac_init_help"; then
1577 case $ac_init_help in
1578 short | recursive ) echo "Configuration of libXi 1.3:";;
1579 esac
1580 cat <<\_ACEOF
1581
1582 Optional Features:
1583 --disable-option-checking ignore unrecognized --enable/--with options
1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1586 --enable-maintainer-mode enable make rules and dependencies not useful
1587 (and sometimes confusing) to the casual installer
1588 --disable-dependency-tracking speeds up one-time build
1589 --enable-dependency-tracking do not reject slow dependency extractors
1590 --enable-shared[=PKGS] build shared libraries [default=yes]
1591 --enable-static[=PKGS] build static libraries [default=yes]
1592 --enable-fast-install[=PKGS]
1593 optimize for fast installation [default=yes]
1594 --disable-libtool-lock avoid locking (might break parallel builds)
1595 --enable-silent-rules less verbose build output (undo: `make V=1')
1596 --disable-silent-rules verbose build output (undo: `make V=0')
1597 --enable-strict-compilation
1598 Enable all warnings from compiler and make them
1599 errors (default: disabled)
1600 --enable-malloc0returnsnull
1601 malloc(0) returns NULL (default: auto)
1602
1603 Optional Packages:
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-pic try to use only PIC/non-PIC objects [default=use
1607 both]
1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1609 --with-release-version=STRING
1610 Use release version string in package name
1611
1612 Some influential environment variables:
1613 CC C compiler command
1614 CFLAGS C compiler flags
1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
1617 LIBS libraries to pass to the linker, e.g. -l<library>
1618 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1619 you have headers in a nonstandard directory <include dir>
1620 CPP C preprocessor
1621 PKG_CONFIG path to pkg-config utility
1622 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1623 XI_LIBS linker flags for XI, overriding pkg-config
1624 XMLTO Path to xmlto command
1625 ASCIIDOC Path to asciidoc command
1626
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1629
1630 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1631 _ACEOF
1632 ac_status=$?
1633 fi
1634
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1641 ac_builddir=.
1642
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *)
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1658
1659 case $srcdir in
1660 .) # We are building in place.
1661 ac_srcdir=.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1683 else
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1687 done
1688 fi
1689
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692 cat <<\_ACEOF
1693 libXi configure 1.3
1694 generated by GNU Autoconf 2.63
1695
1696 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1697 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1700 _ACEOF
1701 exit
1702 fi
1703 cat >config.log <<_ACEOF
1704 This file contains any messages produced by compilers while
1705 running configure, to aid debugging if configure makes a mistake.
1706
1707 It was created by libXi $as_me 1.3, which was
1708 generated by GNU Autoconf 2.63. Invocation command line was
1709
1710 $ $0 $@
1711
1712 _ACEOF
1713 exec 5>>config.log
1714 {
1715 cat <<_ASUNAME
1716 ## --------- ##
1717 ## Platform. ##
1718 ## --------- ##
1719
1720 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1721 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1722 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1723 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1724 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1725
1726 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1727 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1728
1729 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1730 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1731 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1732 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1733 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1734 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1735 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1736
1737 _ASUNAME
1738
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 $as_echo "PATH: $as_dir"
1745 done
1746 IFS=$as_save_IFS
1747
1748 } >&5
1749
1750 cat >&5 <<_ACEOF
1751
1752
1753 ## ----------- ##
1754 ## Core tests. ##
1755 ## ----------- ##
1756
1757 _ACEOF
1758
1759
1760 # Keep a trace of the command line.
1761 # Strip out --no-create and --no-recursion so they do not pile up.
1762 # Strip out --silent because we don't want to record it for future runs.
1763 # Also quote any args containing shell meta-characters.
1764 # Make two passes to allow for proper duplicate-argument suppression.
1765 ac_configure_args=
1766 ac_configure_args0=
1767 ac_configure_args1=
1768 ac_must_keep_next=false
1769 for ac_pass in 1 2
1770 do
1771 for ac_arg
1772 do
1773 case $ac_arg in
1774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1776 | -silent | --silent | --silen | --sile | --sil)
1777 continue ;;
1778 *\'*)
1779 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1780 esac
1781 case $ac_pass in
1782 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1783 2)
1784 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1785 if test $ac_must_keep_next = true; then
1786 ac_must_keep_next=false # Got value, back to normal.
1787 else
1788 case $ac_arg in
1789 *=* | --config-cache | -C | -disable-* | --disable-* \
1790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1792 | -with-* | --with-* | -without-* | --without-* | --x)
1793 case "$ac_configure_args0 " in
1794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1795 esac
1796 ;;
1797 -* ) ac_must_keep_next=true ;;
1798 esac
1799 fi
1800 ac_configure_args="$ac_configure_args '$ac_arg'"
1801 ;;
1802 esac
1803 done
1804 done
1805 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1806 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1807
1808 # When interrupted or exit'd, cleanup temporary files, and complete
1809 # config.log. We remove comments because anyway the quotes in there
1810 # would cause problems or look ugly.
1811 # WARNING: Use '\'' to represent an apostrophe within the trap.
1812 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1813 trap 'exit_status=$?
1814 # Save into config.log some information that might help in debugging.
1815 {
1816 echo
1817
1818 cat <<\_ASBOX
1819 ## ---------------- ##
1820 ## Cache variables. ##
1821 ## ---------------- ##
1822 _ASBOX
1823 echo
1824 # The following way of writing the cache mishandles newlines in values,
1825 (
1826 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1827 eval ac_val=\$$ac_var
1828 case $ac_val in #(
1829 *${as_nl}*)
1830 case $ac_var in #(
1831 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1832 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1833 esac
1834 case $ac_var in #(
1835 _ | IFS | as_nl) ;; #(
1836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1837 *) $as_unset $ac_var ;;
1838 esac ;;
1839 esac
1840 done
1841 (set) 2>&1 |
1842 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1843 *${as_nl}ac_space=\ *)
1844 sed -n \
1845 "s/'\''/'\''\\\\'\'''\''/g;
1846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847 ;; #(
1848 *)
1849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1850 ;;
1851 esac |
1852 sort
1853 )
1854 echo
1855
1856 cat <<\_ASBOX
1857 ## ----------------- ##
1858 ## Output variables. ##
1859 ## ----------------- ##
1860 _ASBOX
1861 echo
1862 for ac_var in $ac_subst_vars
1863 do
1864 eval ac_val=\$$ac_var
1865 case $ac_val in
1866 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867 esac
1868 $as_echo "$ac_var='\''$ac_val'\''"
1869 done | sort
1870 echo
1871
1872 if test -n "$ac_subst_files"; then
1873 cat <<\_ASBOX
1874 ## ------------------- ##
1875 ## File substitutions. ##
1876 ## ------------------- ##
1877 _ASBOX
1878 echo
1879 for ac_var in $ac_subst_files
1880 do
1881 eval ac_val=\$$ac_var
1882 case $ac_val in
1883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884 esac
1885 $as_echo "$ac_var='\''$ac_val'\''"
1886 done | sort
1887 echo
1888 fi
1889
1890 if test -s confdefs.h; then
1891 cat <<\_ASBOX
1892 ## ----------- ##
1893 ## confdefs.h. ##
1894 ## ----------- ##
1895 _ASBOX
1896 echo
1897 cat confdefs.h
1898 echo
1899 fi
1900 test "$ac_signal" != 0 &&
1901 $as_echo "$as_me: caught signal $ac_signal"
1902 $as_echo "$as_me: exit $exit_status"
1903 } >&5
1904 rm -f core *.core core.conftest.* &&
1905 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1906 exit $exit_status
1907 ' 0
1908 for ac_signal in 1 2 13 15; do
1909 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1910 done
1911 ac_signal=0
1912
1913 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1914 rm -f -r conftest* confdefs.h
1915
1916 # Predefined preprocessor variables.
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_NAME "$PACKAGE_NAME"
1920 _ACEOF
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1930 _ACEOF
1931
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_STRING "$PACKAGE_STRING"
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1940 _ACEOF
1941
1942
1943 # Let the site file select an alternate cache file if it wants to.
1944 # Prefer an explicitly selected file to automatically selected ones.
1945 ac_site_file1=NONE
1946 ac_site_file2=NONE
1947 if test -n "$CONFIG_SITE"; then
1948 ac_site_file1=$CONFIG_SITE
1949 elif test "x$prefix" != xNONE; then
1950 ac_site_file1=$prefix/share/config.site
1951 ac_site_file2=$prefix/etc/config.site
1952 else
1953 ac_site_file1=$ac_default_prefix/share/config.site
1954 ac_site_file2=$ac_default_prefix/etc/config.site
1955 fi
1956 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1957 do
1958 test "x$ac_site_file" = xNONE && continue
1959 if test -r "$ac_site_file"; then
1960 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1961 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1962 sed 's/^/| /' "$ac_site_file" >&5
1963 . "$ac_site_file"
1964 fi
1965 done
1966
1967 if test -r "$cache_file"; then
1968 # Some versions of bash will fail to source /dev/null (special
1969 # files actually), so we avoid doing that.
1970 if test -f "$cache_file"; then
1971 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1972 $as_echo "$as_me: loading cache $cache_file" >&6;}
1973 case $cache_file in
1974 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1975 *) . "./$cache_file";;
1976 esac
1977 fi
1978 else
1979 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1980 $as_echo "$as_me: creating cache $cache_file" >&6;}
1981 >$cache_file
1982 fi
1983
1984 # Check that the precious variables saved in the cache have kept the same
1985 # value.
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989 eval ac_new_set=\$ac_env_${ac_var}_set
1990 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991 eval ac_new_val=\$ac_env_${ac_var}_value
1992 case $ac_old_set,$ac_new_set in
1993 set,)
1994 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996 ac_cache_corrupted=: ;;
1997 ,set)
1998 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000 ac_cache_corrupted=: ;;
2001 ,);;
2002 *)
2003 if test "x$ac_old_val" != "x$ac_new_val"; then
2004 # differences in whitespace do not lead to failure.
2005 ac_old_val_w=`echo x $ac_old_val`
2006 ac_new_val_w=`echo x $ac_new_val`
2007 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2009 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2010 ac_cache_corrupted=:
2011 else
2012 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2013 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2014 eval $ac_var=\$ac_old_val
2015 fi
2016 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2017 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2018 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2019 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2020 fi;;
2021 esac
2022 # Pass precious variables to config.status.
2023 if test "$ac_new_set" = set; then
2024 case $ac_new_val in
2025 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 *) ac_arg=$ac_var=$ac_new_val ;;
2027 esac
2028 case " $ac_configure_args " in
2029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2030 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2031 esac
2032 fi
2033 done
2034 if $ac_cache_corrupted; then
2035 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2037 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2038 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2039 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2040 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2041 { (exit 1); exit 1; }; }
2042 fi
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068 ac_ext=c
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073
2074
2075 am__api_version='1.11'
2076
2077 ac_aux_dir=
2078 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2079 if test -f "$ac_dir/install-sh"; then
2080 ac_aux_dir=$ac_dir
2081 ac_install_sh="$ac_aux_dir/install-sh -c"
2082 break
2083 elif test -f "$ac_dir/install.sh"; then
2084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install.sh -c"
2086 break
2087 elif test -f "$ac_dir/shtool"; then
2088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/shtool install -c"
2090 break
2091 fi
2092 done
2093 if test -z "$ac_aux_dir"; then
2094 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2095 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2096 { (exit 1); exit 1; }; }
2097 fi
2098
2099 # These three variables are undocumented and unsupported,
2100 # and are intended to be withdrawn in a future Autoconf release.
2101 # They can cause serious problems if a builder's source tree is in a directory
2102 # whose full name contains unusual characters.
2103 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2104 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2105 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2106
2107
2108 # Find a good install program. We prefer a C program (faster),
2109 # so one script is as good as another. But avoid the broken or
2110 # incompatible versions:
2111 # SysV /etc/install, /usr/sbin/install
2112 # SunOS /usr/etc/install
2113 # IRIX /sbin/install
2114 # AIX /bin/install
2115 # AmigaOS /C/install, which installs bootblocks on floppy discs
2116 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2117 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2118 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2119 # OS/2's system install, which has a completely different semantic
2120 # ./install, which can be erroneously created by make from ./install.sh.
2121 # Reject install programs that cannot install multiple files.
2122 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2123 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2124 if test -z "$INSTALL"; then
2125 if test "${ac_cv_path_install+set}" = set; then
2126 $as_echo_n "(cached) " >&6
2127 else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 # Account for people who put trailing slashes in PATH elements.
2134 case $as_dir/ in
2135 ./ | .// | /cC/* | \
2136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2137 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2138 /usr/ucb/* ) ;;
2139 *)
2140 # OSF1 and SCO ODT 3.0 have their own names for install.
2141 # Don't use installbsd from OSF since it installs stuff as root
2142 # by default.
2143 for ac_prog in ginstall scoinst install; do
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2146 if test $ac_prog = install &&
2147 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2148 # AIX install. It has an incompatible calling convention.
2149 :
2150 elif test $ac_prog = install &&
2151 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2152 # program-specific install script used by HP pwplus--don't use.
2153 :
2154 else
2155 rm -rf conftest.one conftest.two conftest.dir
2156 echo one > conftest.one
2157 echo two > conftest.two
2158 mkdir conftest.dir
2159 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2160 test -s conftest.one && test -s conftest.two &&
2161 test -s conftest.dir/conftest.one &&
2162 test -s conftest.dir/conftest.two
2163 then
2164 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2165 break 3
2166 fi
2167 fi
2168 fi
2169 done
2170 done
2171 ;;
2172 esac
2173
2174 done
2175 IFS=$as_save_IFS
2176
2177 rm -rf conftest.one conftest.two conftest.dir
2178
2179 fi
2180 if test "${ac_cv_path_install+set}" = set; then
2181 INSTALL=$ac_cv_path_install
2182 else
2183 # As a last resort, use the slow shell script. Don't cache a
2184 # value for INSTALL within a source directory, because that will
2185 # break other packages using the cache if that directory is
2186 # removed, or if the value is a relative name.
2187 INSTALL=$ac_install_sh
2188 fi
2189 fi
2190 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2191 $as_echo "$INSTALL" >&6; }
2192
2193 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2194 # It thinks the first close brace ends the variable substitution.
2195 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2196
2197 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2198
2199 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2200
2201 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2202 $as_echo_n "checking whether build environment is sane... " >&6; }
2203 # Just in case
2204 sleep 1
2205 echo timestamp > conftest.file
2206 # Reject unsafe characters in $srcdir or the absolute working directory
2207 # name. Accept space and tab only in the latter.
2208 am_lf='
2209 '
2210 case `pwd` in
2211 *[\\\"\#\$\&\'\`$am_lf]*)
2212 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2213 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2214 { (exit 1); exit 1; }; };;
2215 esac
2216 case $srcdir in
2217 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2218 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2219 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2220 { (exit 1); exit 1; }; };;
2221 esac
2222
2223 # Do `set' in a subshell so we don't clobber the current shell's
2224 # arguments. Must try -L first in case configure is actually a
2225 # symlink; some systems play weird games with the mod time of symlinks
2226 # (eg FreeBSD returns the mod time of the symlink's containing
2227 # directory).
2228 if (
2229 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2230 if test "$*" = "X"; then
2231 # -L didn't work.
2232 set X `ls -t "$srcdir/configure" conftest.file`
2233 fi
2234 rm -f conftest.file
2235 if test "$*" != "X $srcdir/configure conftest.file" \
2236 && test "$*" != "X conftest.file $srcdir/configure"; then
2237
2238 # If neither matched, then we have a broken ls. This can happen
2239 # if, for instance, CONFIG_SHELL is bash and it inherits a
2240 # broken ls alias from the environment. This has actually
2241 # happened. Such a system could not be considered "sane".
2242 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2243 alias in your environment" >&5
2244 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2245 alias in your environment" >&2;}
2246 { (exit 1); exit 1; }; }
2247 fi
2248
2249 test "$2" = conftest.file
2250 )
2251 then
2252 # Ok.
2253 :
2254 else
2255 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256 Check your system clock" >&5
2257 $as_echo "$as_me: error: newly created file is older than distributed files!
2258 Check your system clock" >&2;}
2259 { (exit 1); exit 1; }; }
2260 fi
2261 { $as_echo "$as_me:$LINENO: result: yes" >&5
2262 $as_echo "yes" >&6; }
2263 test "$program_prefix" != NONE &&
2264 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2265 # Use a double $ so make ignores it.
2266 test "$program_suffix" != NONE &&
2267 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2268 # Double any \ or $.
2269 # By default was `s,x,x', remove it if useless.
2270 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2271 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2272
2273 # expand $ac_aux_dir to an absolute path
2274 am_aux_dir=`cd $ac_aux_dir && pwd`
2275
2276 if test x"${MISSING+set}" != xset; then
2277 case $am_aux_dir in
2278 *\ * | *\ *)
2279 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2280 *)
2281 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2282 esac
2283 fi
2284 # Use eval to expand $SHELL
2285 if eval "$MISSING --run true"; then
2286 am_missing_run="$MISSING --run "
2287 else
2288 am_missing_run=
2289 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2290 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2291 fi
2292
2293 if test x"${install_sh}" != xset; then
2294 case $am_aux_dir in
2295 *\ * | *\ *)
2296 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2297 *)
2298 install_sh="\${SHELL} $am_aux_dir/install-sh"
2299 esac
2300 fi
2301
2302 # Installed binaries are usually stripped using `strip' when the user
2303 # run `make install-strip'. However `strip' might not be the right
2304 # tool to use in cross-compilation environments, therefore Automake
2305 # will honor the `STRIP' environment variable to overrule this program.
2306 if test "$cross_compiling" != no; then
2307 if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2309 set dummy ${ac_tool_prefix}strip; ac_word=$2
2310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if test "${ac_cv_prog_STRIP+set}" = set; then
2313 $as_echo_n "(cached) " >&6
2314 else
2315 if test -n "$STRIP"; then
2316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2328 fi
2329 done
2330 done
2331 IFS=$as_save_IFS
2332
2333 fi
2334 fi
2335 STRIP=$ac_cv_prog_STRIP
2336 if test -n "$STRIP"; then
2337 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2338 $as_echo "$STRIP" >&6; }
2339 else
2340 { $as_echo "$as_me:$LINENO: result: no" >&5
2341 $as_echo "no" >&6; }
2342 fi
2343
2344
2345 fi
2346 if test -z "$ac_cv_prog_STRIP"; then
2347 ac_ct_STRIP=$STRIP
2348 # Extract the first word of "strip", so it can be a program name with args.
2349 set dummy strip; ac_word=$2
2350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2353 $as_echo_n "(cached) " >&6
2354 else
2355 if test -n "$ac_ct_STRIP"; then
2356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_ac_ct_STRIP="strip"
2366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2368 fi
2369 done
2370 done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2376 if test -n "$ac_ct_STRIP"; then
2377 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2378 $as_echo "$ac_ct_STRIP" >&6; }
2379 else
2380 { $as_echo "$as_me:$LINENO: result: no" >&5
2381 $as_echo "no" >&6; }
2382 fi
2383
2384 if test "x$ac_ct_STRIP" = x; then
2385 STRIP=":"
2386 else
2387 case $cross_compiling:$ac_tool_warned in
2388 yes:)
2389 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2391 ac_tool_warned=yes ;;
2392 esac
2393 STRIP=$ac_ct_STRIP
2394 fi
2395 else
2396 STRIP="$ac_cv_prog_STRIP"
2397 fi
2398
2399 fi
2400 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2401
2402 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2403 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2404 if test -z "$MKDIR_P"; then
2405 if test "${ac_cv_path_mkdir+set}" = set; then
2406 $as_echo_n "(cached) " >&6
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2410 do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_prog in mkdir gmkdir; do
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2416 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2417 'mkdir (GNU coreutils) '* | \
2418 'mkdir (coreutils) '* | \
2419 'mkdir (fileutils) '4.1*)
2420 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2421 break 3;;
2422 esac
2423 done
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429
2430 if test "${ac_cv_path_mkdir+set}" = set; then
2431 MKDIR_P="$ac_cv_path_mkdir -p"
2432 else
2433 # As a last resort, use the slow shell script. Don't cache a
2434 # value for MKDIR_P within a source directory, because that will
2435 # break other packages using the cache if that directory is
2436 # removed, or if the value is a relative name.
2437 test -d ./--version && rmdir ./--version
2438 MKDIR_P="$ac_install_sh -d"
2439 fi
2440 fi
2441 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2442 $as_echo "$MKDIR_P" >&6; }
2443
2444 mkdir_p="$MKDIR_P"
2445 case $mkdir_p in
2446 [\\/$]* | ?:[\\/]*) ;;
2447 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2448 esac
2449
2450 for ac_prog in gawk mawk nawk awk
2451 do
2452 # Extract the first word of "$ac_prog", so it can be a program name with args.
2453 set dummy $ac_prog; ac_word=$2
2454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_AWK+set}" = set; then
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test -n "$AWK"; then
2460 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_AWK="$ac_prog"
2470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 AWK=$ac_cv_prog_AWK
2480 if test -n "$AWK"; then
2481 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2482 $as_echo "$AWK" >&6; }
2483 else
2484 { $as_echo "$as_me:$LINENO: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488
2489 test -n "$AWK" && break
2490 done
2491
2492 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2493 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2494 set x ${MAKE-make}
2495 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2496 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2497 $as_echo_n "(cached) " >&6
2498 else
2499 cat >conftest.make <<\_ACEOF
2500 SHELL = /bin/sh
2501 all:
2502 @echo '@@@%%%=$(MAKE)=@@@%%%'
2503 _ACEOF
2504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2505 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2506 *@@@%%%=?*=@@@%%%*)
2507 eval ac_cv_prog_make_${ac_make}_set=yes;;
2508 *)
2509 eval ac_cv_prog_make_${ac_make}_set=no;;
2510 esac
2511 rm -f conftest.make
2512 fi
2513 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2514 { $as_echo "$as_me:$LINENO: result: yes" >&5
2515 $as_echo "yes" >&6; }
2516 SET_MAKE=
2517 else
2518 { $as_echo "$as_me:$LINENO: result: no" >&5
2519 $as_echo "no" >&6; }
2520 SET_MAKE="MAKE=${MAKE-make}"
2521 fi
2522
2523 rm -rf .tst 2>/dev/null
2524 mkdir .tst 2>/dev/null
2525 if test -d .tst; then
2526 am__leading_dot=.
2527 else
2528 am__leading_dot=_
2529 fi
2530 rmdir .tst 2>/dev/null
2531
2532 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2533 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2534 # is not polluted with repeated "-I."
2535 am__isrc=' -I$(srcdir)'
2536 # test to see if srcdir already configured
2537 if test -f $srcdir/config.status; then
2538 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2539 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2540 { (exit 1); exit 1; }; }
2541 fi
2542 fi
2543
2544 # test whether we have cygpath
2545 if test -z "$CYGPATH_W"; then
2546 if (cygpath --version) >/dev/null 2>/dev/null; then
2547 CYGPATH_W='cygpath -w'
2548 else
2549 CYGPATH_W=echo
2550 fi
2551 fi
2552
2553
2554 # Define the identity of the package.
2555 PACKAGE='libXi'
2556 VERSION='1.3'
2557
2558
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE "$PACKAGE"
2561 _ACEOF
2562
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define VERSION "$VERSION"
2566 _ACEOF
2567
2568 # Some tools Automake needs.
2569
2570 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2571
2572
2573 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2574
2575
2576 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2577
2578
2579 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2580
2581
2582 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2583
2584 # We need awk for the "check" target. The system "awk" is bad on
2585 # some platforms.
2586 # Always define AMTAR for backward compatibility.
2587
2588 AMTAR=${AMTAR-"${am_missing_run}tar"}
2589
2590 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2591
2592
2593
2594
2595
2596
2597 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2598 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2599 # Check whether --enable-maintainer-mode was given.
2600 if test "${enable_maintainer_mode+set}" = set; then
2601 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2602 else
2603 USE_MAINTAINER_MODE=no
2604 fi
2605
2606 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2607 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2608 if test $USE_MAINTAINER_MODE = yes; then
2609 MAINTAINER_MODE_TRUE=
2610 MAINTAINER_MODE_FALSE='#'
2611 else
2612 MAINTAINER_MODE_TRUE='#'
2613 MAINTAINER_MODE_FALSE=
2614 fi
2615
2616 MAINT=$MAINTAINER_MODE_TRUE
2617
2618
2619
2620 # Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632 ac_config_headers="$ac_config_headers src/config.h"
2633
2634
2635 # Check for progs
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641 if test -n "$ac_tool_prefix"; then
2642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_CC+set}" = set; then
2647 $as_echo_n "(cached) " >&6
2648 else
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC="$CC" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi
2668 fi
2669 CC=$ac_cv_prog_CC
2670 if test -n "$CC"; then
2671 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2672 $as_echo "$CC" >&6; }
2673 else
2674 { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678
2679 fi
2680 if test -z "$ac_cv_prog_CC"; then
2681 ac_ct_CC=$CC
2682 # Extract the first word of "gcc", so it can be a program name with args.
2683 set dummy gcc; ac_word=$2
2684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_ac_ct_CC="gcc"
2700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703 done
2704 done
2705 IFS=$as_save_IFS
2706
2707 fi
2708 fi
2709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712 $as_echo "$ac_ct_CC" >&6; }
2713 else
2714 { $as_echo "$as_me:$LINENO: result: no" >&5
2715 $as_echo "no" >&6; }
2716 fi
2717
2718 if test "x$ac_ct_CC" = x; then
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722 yes:)
2723 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725 ac_tool_warned=yes ;;
2726 esac
2727 CC=$ac_ct_CC
2728 fi
2729 else
2730 CC="$ac_cv_prog_CC"
2731 fi
2732
2733 if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736 set dummy ${ac_tool_prefix}cc; ac_word=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_CC+set}" = set; then
2740 $as_echo_n "(cached) " >&6
2741 else
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_CC="${ac_tool_prefix}cc"
2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 CC=$ac_cv_prog_CC
2763 if test -n "$CC"; then
2764 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2765 $as_echo "$CC" >&6; }
2766 else
2767 { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2769 fi
2770
2771
2772 fi
2773 fi
2774 if test -z "$CC"; then
2775 # Extract the first word of "cc", so it can be a program name with args.
2776 set dummy cc; ac_word=$2
2777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 ac_prog_rejected=no
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2794 ac_prog_rejected=yes
2795 continue
2796 fi
2797 ac_cv_prog_CC="cc"
2798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 if test $ac_prog_rejected = yes; then
2806 # We found a bogon in the path, so make sure we never use it.
2807 set dummy $ac_cv_prog_CC
2808 shift
2809 if test $# != 0; then
2810 # We chose a different compiler from the bogus one.
2811 # However, it has the same basename, so the bogon will be chosen
2812 # first if we set CC to just the basename; use the full file name.
2813 shift
2814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815 fi
2816 fi
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2823 else
2824 { $as_echo "$as_me:$LINENO: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829 fi
2830 if test -z "$CC"; then
2831 if test -n "$ac_tool_prefix"; then
2832 for ac_prog in cl.exe
2833 do
2834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if test "${ac_cv_prog_CC+set}" = set; then
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 CC=$ac_cv_prog_CC
2862 if test -n "$CC"; then
2863 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2865 else
2866 { $as_echo "$as_me:$LINENO: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870
2871 test -n "$CC" && break
2872 done
2873 fi
2874 if test -z "$CC"; then
2875 ac_ct_CC=$CC
2876 for ac_prog in cl.exe
2877 do
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879 set dummy $ac_prog; ac_word=$2
2880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_ac_ct_CC="$ac_prog"
2896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi
2904 fi
2905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2909 else
2910 { $as_echo "$as_me:$LINENO: result: no" >&5
2911 $as_echo "no" >&6; }
2912 fi
2913
2914
2915 test -n "$ac_ct_CC" && break
2916 done
2917
2918 if test "x$ac_ct_CC" = x; then
2919 CC=""
2920 else
2921 case $cross_compiling:$ac_tool_warned in
2922 yes:)
2923 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925 ac_tool_warned=yes ;;
2926 esac
2927 CC=$ac_ct_CC
2928 fi
2929 fi
2930
2931 fi
2932
2933
2934 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2937 See \`config.log' for more details." >&5
2938 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }; }
2941
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2944 set X $ac_compile
2945 ac_compiler=$2
2946 { (ac_try="$ac_compiler --version >&5"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952 $as_echo "$ac_try_echo") >&5
2953 (eval "$ac_compiler --version >&5") 2>&5
2954 ac_status=$?
2955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957 { (ac_try="$ac_compiler -v >&5"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963 $as_echo "$ac_try_echo") >&5
2964 (eval "$ac_compiler -v >&5") 2>&5
2965 ac_status=$?
2966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968 { (ac_try="$ac_compiler -V >&5"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974 $as_echo "$ac_try_echo") >&5
2975 (eval "$ac_compiler -V >&5") 2>&5
2976 ac_status=$?
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h. */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2986
2987 int
2988 main ()
2989 {
2990
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 ac_clean_files_save=$ac_clean_files
2996 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2997 # Try to create an executable without -o first, disregard a.out.
2998 # It will help us diagnose broken compilers, and finding out an intuition
2999 # of exeext.
3000 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3001 $as_echo_n "checking for C compiler default output file name... " >&6; }
3002 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3003
3004 # The possible output files:
3005 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3006
3007 ac_rmfiles=
3008 for ac_file in $ac_files
3009 do
3010 case $ac_file in
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3012 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3013 esac
3014 done
3015 rm -f $ac_rmfiles
3016
3017 if { (ac_try="$ac_link_default"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023 $as_echo "$ac_try_echo") >&5
3024 (eval "$ac_link_default") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; then
3028 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3029 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3030 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3031 # so that the user can short-circuit this test for compilers unknown to
3032 # Autoconf.
3033 for ac_file in $ac_files ''
3034 do
3035 test -f "$ac_file" || continue
3036 case $ac_file in
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3038 ;;
3039 [ab].out )
3040 # We found the default executable, but exeext='' is most
3041 # certainly right.
3042 break;;
3043 *.* )
3044 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3045 then :; else
3046 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047 fi
3048 # We set ac_cv_exeext here because the later test for it is not
3049 # safe: cross compilers may not add the suffix if given an `-o'
3050 # argument, so we may need to know it at that point already.
3051 # Even if this section looks crufty: it has the advantage of
3052 # actually working.
3053 break;;
3054 * )
3055 break;;
3056 esac
3057 done
3058 test "$ac_cv_exeext" = no && ac_cv_exeext=
3059
3060 else
3061 ac_file=''
3062 fi
3063
3064 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3065 $as_echo "$ac_file" >&6; }
3066 if test -z "$ac_file"; then
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3073 See \`config.log' for more details." >&5
3074 $as_echo "$as_me: error: C compiler cannot create executables
3075 See \`config.log' for more details." >&2;}
3076 { (exit 77); exit 77; }; }; }
3077 fi
3078
3079 ac_exeext=$ac_cv_exeext
3080
3081 # Check that the compiler produces executables we can run. If not, either
3082 # the compiler is broken, or we cross compile.
3083 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3084 $as_echo_n "checking whether the C compiler works... " >&6; }
3085 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3086 # If not cross compiling, check that we can run a simple program.
3087 if test "$cross_compiling" != yes; then
3088 if { ac_try='./$ac_file'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3099 cross_compiling=no
3100 else
3101 if test "$cross_compiling" = maybe; then
3102 cross_compiling=yes
3103 else
3104 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3107 If you meant to cross compile, use \`--host'.
3108 See \`config.log' for more details." >&5
3109 $as_echo "$as_me: error: cannot run C compiled programs.
3110 If you meant to cross compile, use \`--host'.
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }; }
3113 fi
3114 fi
3115 fi
3116 { $as_echo "$as_me:$LINENO: result: yes" >&5
3117 $as_echo "yes" >&6; }
3118
3119 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3120 ac_clean_files=$ac_clean_files_save
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3126 $as_echo "$cross_compiling" >&6; }
3127
3128 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3129 $as_echo_n "checking for suffix of executables... " >&6; }
3130 if { (ac_try="$ac_link"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136 $as_echo "$ac_try_echo") >&5
3137 (eval "$ac_link") 2>&5
3138 ac_status=$?
3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3143 # work properly (i.e., refer to `conftest.exe'), while it won't with
3144 # `rm'.
3145 for ac_file in conftest.exe conftest conftest.*; do
3146 test -f "$ac_file" || continue
3147 case $ac_file in
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 break;;
3151 * ) break;;
3152 esac
3153 done
3154 else
3155 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }; }
3162 fi
3163
3164 rm -f conftest$ac_cv_exeext
3165 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 $as_echo "$ac_cv_exeext" >&6; }
3167
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 $as_echo_n "checking for suffix of object files... " >&6; }
3173 if test "${ac_cv_objext+set}" = set; then
3174 $as_echo_n "(cached) " >&6
3175 else
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3182
3183 int
3184 main ()
3185 {
3186
3187 ;
3188 return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198 $as_echo "$ac_try_echo") >&5
3199 (eval "$ac_compile") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; then
3203 for ac_file in conftest.o conftest.obj conftest.*; do
3204 test -f "$ac_file" || continue;
3205 case $ac_file in
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3208 break;;
3209 esac
3210 done
3211 else
3212 $as_echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&5
3219 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }; }
3222 fi
3223
3224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225 fi
3226 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 $as_echo "$ac_cv_objext" >&6; }
3228 OBJEXT=$ac_cv_objext
3229 ac_objext=$OBJEXT
3230 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 $as_echo_n "(cached) " >&6
3234 else
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3241
3242 int
3243 main ()
3244 {
3245 #ifndef __GNUC__
3246 choke me
3247 #endif
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3271 ac_compiler_gnu=yes
3272 else
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 ac_compiler_gnu=no
3277 fi
3278
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3281
3282 fi
3283 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3284 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285 if test $ac_compiler_gnu = yes; then
3286 GCC=yes
3287 else
3288 GCC=
3289 fi
3290 ac_test_CFLAGS=${CFLAGS+set}
3291 ac_save_CFLAGS=$CFLAGS
3292 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 $as_echo_n "(cached) " >&6
3296 else
3297 ac_save_c_werror_flag=$ac_c_werror_flag
3298 ac_c_werror_flag=yes
3299 ac_cv_prog_cc_g=no
3300 CFLAGS="-g"
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h. */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307
3308 int
3309 main ()
3310 {
3311
3312 ;
3313 return 0;
3314 }
3315 _ACEOF
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3334 ac_cv_prog_cc_g=yes
3335 else
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 CFLAGS=""
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346
3347 int
3348 main ()
3349 {
3350
3351 ;
3352 return 0;
3353 }
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3373 :
3374 else
3375 $as_echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 ac_c_werror_flag=$ac_save_c_werror_flag
3379 CFLAGS="-g"
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386
3387 int
3388 main ()
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3413 ac_cv_prog_cc_g=yes
3414 else
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418
3419 fi
3420
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 fi
3423
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 fi
3426
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 ac_c_werror_flag=$ac_save_c_werror_flag
3429 fi
3430 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3431 $as_echo "$ac_cv_prog_cc_g" >&6; }
3432 if test "$ac_test_CFLAGS" = set; then
3433 CFLAGS=$ac_save_CFLAGS
3434 elif test $ac_cv_prog_cc_g = yes; then
3435 if test "$GCC" = yes; then
3436 CFLAGS="-g -O2"
3437 else
3438 CFLAGS="-g"
3439 fi
3440 else
3441 if test "$GCC" = yes; then
3442 CFLAGS="-O2"
3443 else
3444 CFLAGS=
3445 fi
3446 fi
3447 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3448 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3449 if test "${ac_cv_prog_cc_c89+set}" = set; then
3450 $as_echo_n "(cached) " >&6
3451 else
3452 ac_cv_prog_cc_c89=no
3453 ac_save_CC=$CC
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #include <stdarg.h>
3461 #include <stdio.h>
3462 #include <sys/types.h>
3463 #include <sys/stat.h>
3464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3465 struct buf { int x; };
3466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3467 static char *e (p, i)
3468 char **p;
3469 int i;
3470 {
3471 return p[i];
3472 }
3473 static char *f (char * (*g) (char **, int), char **p, ...)
3474 {
3475 char *s;
3476 va_list v;
3477 va_start (v,p);
3478 s = g (p, va_arg (v,int));
3479 va_end (v);
3480 return s;
3481 }
3482
3483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3484 function prototypes and stuff, but not '\xHH' hex character constants.
3485 These don't provoke an error unfortunately, instead are silently treated
3486 as 'x'. The following induces an error, until -std is added to get
3487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3488 array size at least. It's necessary to write '\x00'==0 to get something
3489 that's true only with -std. */
3490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491
3492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3493 inside strings and character constants. */
3494 #define FOO(x) 'x'
3495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496
3497 int test (int i, double x);
3498 struct s1 {int (*f) (int a);};
3499 struct s2 {int (*f) (double a);};
3500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3501 int argc;
3502 char **argv;
3503 int
3504 main ()
3505 {
3506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513 do
3514 CC="$ac_save_CC $ac_arg"
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 ac_cv_prog_cc_c89=$ac_arg
3534 else
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538
3539 fi
3540
3541 rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC
3546
3547 fi
3548 # AC_CACHE_VAL
3549 case "x$ac_cv_prog_cc_c89" in
3550 x)
3551 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3552 $as_echo "none needed" >&6; } ;;
3553 xno)
3554 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3555 $as_echo "unsupported" >&6; } ;;
3556 *)
3557 CC="$CC $ac_cv_prog_cc_c89"
3558 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3560 esac
3561
3562
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 DEPDIR="${am__leading_dot}deps"
3569
3570 ac_config_commands="$ac_config_commands depfiles"
3571
3572
3573 am_make=${MAKE-make}
3574 cat > confinc << 'END'
3575 am__doit:
3576 @echo this is the am__doit target
3577 .PHONY: am__doit
3578 END
3579 # If we don't find an include directive, just comment out the code.
3580 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3581 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3582 am__include="#"
3583 am__quote=
3584 _am_result=none
3585 # First try GNU make style include.
3586 echo "include confinc" > confmf
3587 # Ignore all kinds of additional output from `make'.
3588 case `$am_make -s -f confmf 2> /dev/null` in #(
3589 *the\ am__doit\ target*)
3590 am__include=include
3591 am__quote=
3592 _am_result=GNU
3593 ;;
3594 esac
3595 # Now try BSD make style include.
3596 if test "$am__include" = "#"; then
3597 echo '.include "confinc"' > confmf
3598 case `$am_make -s -f confmf 2> /dev/null` in #(
3599 *the\ am__doit\ target*)
3600 am__include=.include
3601 am__quote="\""
3602 _am_result=BSD
3603 ;;
3604 esac
3605 fi
3606
3607
3608 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3609 $as_echo "$_am_result" >&6; }
3610 rm -f confinc confmf
3611
3612 # Check whether --enable-dependency-tracking was given.
3613 if test "${enable_dependency_tracking+set}" = set; then
3614 enableval=$enable_dependency_tracking;
3615 fi
3616
3617 if test "x$enable_dependency_tracking" != xno; then
3618 am_depcomp="$ac_aux_dir/depcomp"
3619 AMDEPBACKSLASH='\'
3620 fi
3621 if test "x$enable_dependency_tracking" != xno; then
3622 AMDEP_TRUE=
3623 AMDEP_FALSE='#'
3624 else
3625 AMDEP_TRUE='#'
3626 AMDEP_FALSE=
3627 fi
3628
3629
3630
3631 depcc="$CC" am_compiler_list=
3632
3633 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3634 $as_echo_n "checking dependency style of $depcc... " >&6; }
3635 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3639 # We make a subdir and do the tests there. Otherwise we can end up
3640 # making bogus files that we don't know about and never remove. For
3641 # instance it was reported that on HP-UX the gcc test will end up
3642 # making a dummy file named `D' -- because `-MD' means `put the output
3643 # in D'.
3644 mkdir conftest.dir
3645 # Copy depcomp to subdir because otherwise we won't find it if we're
3646 # using a relative directory.
3647 cp "$am_depcomp" conftest.dir
3648 cd conftest.dir
3649 # We will build objects and dependencies in a subdirectory because
3650 # it helps to detect inapplicable dependency modes. For instance
3651 # both Tru64's cc and ICC support -MD to output dependencies as a
3652 # side effect of compilation, but ICC will put the dependencies in
3653 # the current directory while Tru64 will put them in the object
3654 # directory.
3655 mkdir sub
3656
3657 am_cv_CC_dependencies_compiler_type=none
3658 if test "$am_compiler_list" = ""; then
3659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3660 fi
3661 am__universal=false
3662 case " $depcc " in #(
3663 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3664 esac
3665
3666 for depmode in $am_compiler_list; do
3667 # Setup a source with many dependencies, because some compilers
3668 # like to wrap large dependency lists on column 80 (with \), and
3669 # we should not choose a depcomp mode which is confused by this.
3670 #
3671 # We need to recreate these files for each test, as the compiler may
3672 # overwrite some of them when testing with obscure command lines.
3673 # This happens at least with the AIX C compiler.
3674 : > sub/conftest.c
3675 for i in 1 2 3 4 5 6; do
3676 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3677 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3678 # Solaris 8's {/usr,}/bin/sh.
3679 touch sub/conftst$i.h
3680 done
3681 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3682
3683 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3684 # mode. It turns out that the SunPro C++ compiler does not properly
3685 # handle `-M -o', and we need to detect this. Also, some Intel
3686 # versions had trouble with output in subdirs
3687 am__obj=sub/conftest.${OBJEXT-o}
3688 am__minus_obj="-o $am__obj"
3689 case $depmode in
3690 gcc)
3691 # This depmode causes a compiler race in universal mode.
3692 test "$am__universal" = false || continue
3693 ;;
3694 nosideeffect)
3695 # after this tag, mechanisms are not by side-effect, so they'll
3696 # only be used when explicitly requested
3697 if test "x$enable_dependency_tracking" = xyes; then
3698 continue
3699 else
3700 break
3701 fi
3702 ;;
3703 msvisualcpp | msvcmsys)
3704 # This compiler won't grok `-c -o', but also, the minuso test has
3705 # not run yet. These depmodes are late enough in the game, and
3706 # so weak that their functioning should not be impacted.
3707 am__obj=conftest.${OBJEXT-o}
3708 am__minus_obj=
3709 ;;
3710 none) break ;;
3711 esac
3712 if depmode=$depmode \
3713 source=sub/conftest.c object=$am__obj \
3714 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3715 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3716 >/dev/null 2>conftest.err &&
3717 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3718 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3719 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3720 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3721 # icc doesn't choke on unknown options, it will just issue warnings
3722 # or remarks (even with -Werror). So we grep stderr for any message
3723 # that says an option was ignored or not supported.
3724 # When given -MP, icc 7.0 and 7.1 complain thusly:
3725 # icc: Command line warning: ignoring option '-M'; no argument required
3726 # The diagnosis changed in icc 8.0:
3727 # icc: Command line remark: option '-MP' not supported
3728 if (grep 'ignoring option' conftest.err ||
3729 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3730 am_cv_CC_dependencies_compiler_type=$depmode
3731 break
3732 fi
3733 fi
3734 done
3735
3736 cd ..
3737 rm -rf conftest.dir
3738 else
3739 am_cv_CC_dependencies_compiler_type=none
3740 fi
3741
3742 fi
3743 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3744 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3745 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3746
3747 if
3748 test "x$enable_dependency_tracking" != xno \
3749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3750 am__fastdepCC_TRUE=
3751 am__fastdepCC_FALSE='#'
3752 else
3753 am__fastdepCC_TRUE='#'
3754 am__fastdepCC_FALSE=
3755 fi
3756
3757
3758 case `pwd` in
3759 *\ * | *\ *)
3760 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3761 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3762 esac
3763
3764
3765
3766 macro_version='2.2.6'
3767 macro_revision='1.3012'
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781 ltmain="$ac_aux_dir/ltmain.sh"
3782
3783 # Make sure we can run config.sub.
3784 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3785 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3786 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3787 { (exit 1); exit 1; }; }
3788
3789 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3790 $as_echo_n "checking build system type... " >&6; }
3791 if test "${ac_cv_build+set}" = set; then
3792 $as_echo_n "(cached) " >&6
3793 else
3794 ac_build_alias=$build_alias
3795 test "x$ac_build_alias" = x &&
3796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3797 test "x$ac_build_alias" = x &&
3798 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3799 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3800 { (exit 1); exit 1; }; }
3801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3802 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3803 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3804 { (exit 1); exit 1; }; }
3805
3806 fi
3807 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3808 $as_echo "$ac_cv_build" >&6; }
3809 case $ac_cv_build in
3810 *-*-*) ;;
3811 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3812 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3813 { (exit 1); exit 1; }; };;
3814 esac
3815 build=$ac_cv_build
3816 ac_save_IFS=$IFS; IFS='-'
3817 set x $ac_cv_build
3818 shift
3819 build_cpu=$1
3820 build_vendor=$2
3821 shift; shift
3822 # Remember, the first character of IFS is used to create $*,
3823 # except with old shells:
3824 build_os=$*
3825 IFS=$ac_save_IFS
3826 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3827
3828
3829 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3830 $as_echo_n "checking host system type... " >&6; }
3831 if test "${ac_cv_host+set}" = set; then
3832 $as_echo_n "(cached) " >&6
3833 else
3834 if test "x$host_alias" = x; then
3835 ac_cv_host=$ac_cv_build
3836 else
3837 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3838 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3839 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3840 { (exit 1); exit 1; }; }
3841 fi
3842
3843 fi
3844 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3845 $as_echo "$ac_cv_host" >&6; }
3846 case $ac_cv_host in
3847 *-*-*) ;;
3848 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3849 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3850 { (exit 1); exit 1; }; };;
3851 esac
3852 host=$ac_cv_host
3853 ac_save_IFS=$IFS; IFS='-'
3854 set x $ac_cv_host
3855 shift
3856 host_cpu=$1
3857 host_vendor=$2
3858 shift; shift
3859 # Remember, the first character of IFS is used to create $*,
3860 # except with old shells:
3861 host_os=$*
3862 IFS=$ac_save_IFS
3863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3864
3865
3866 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3867 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3868 if test "${ac_cv_path_SED+set}" = set; then
3869 $as_echo_n "(cached) " >&6
3870 else
3871 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3872 for ac_i in 1 2 3 4 5 6 7; do
3873 ac_script="$ac_script$as_nl$ac_script"
3874 done
3875 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3876 $as_unset ac_script || ac_script=
3877 if test -z "$SED"; then
3878 ac_path_SED_found=false
3879 # Loop through the user's path and test for each of PROGNAME-LIST
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_prog in sed gsed; do
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3888 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3889 # Check for GNU ac_path_SED and select it if it is found.
3890 # Check for GNU $ac_path_SED
3891 case `"$ac_path_SED" --version 2>&1` in
3892 *GNU*)
3893 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3894 *)
3895 ac_count=0
3896 $as_echo_n 0123456789 >"conftest.in"
3897 while :
3898 do
3899 cat "conftest.in" "conftest.in" >"conftest.tmp"
3900 mv "conftest.tmp" "conftest.in"
3901 cp "conftest.in" "conftest.nl"
3902 $as_echo '' >> "conftest.nl"
3903 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905 ac_count=`expr $ac_count + 1`
3906 if test $ac_count -gt ${ac_path_SED_max-0}; then
3907 # Best one so far, save it but keep looking for a better one
3908 ac_cv_path_SED="$ac_path_SED"
3909 ac_path_SED_max=$ac_count
3910 fi
3911 # 10*(2^10) chars as input seems more than enough
3912 test $ac_count -gt 10 && break
3913 done
3914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915 esac
3916
3917 $ac_path_SED_found && break 3
3918 done
3919 done
3920 done
3921 IFS=$as_save_IFS
3922 if test -z "$ac_cv_path_SED"; then
3923 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3924 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3925 { (exit 1); exit 1; }; }
3926 fi
3927 else
3928 ac_cv_path_SED=$SED
3929 fi
3930
3931 fi
3932 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3933 $as_echo "$ac_cv_path_SED" >&6; }
3934 SED="$ac_cv_path_SED"
3935 rm -f conftest.sed
3936
3937 test -z "$SED" && SED=sed
3938 Xsed="$SED -e 1s/^X//"
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3951 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3952 if test "${ac_cv_path_GREP+set}" = set; then
3953 $as_echo_n "(cached) " >&6
3954 else
3955 if test -z "$GREP"; then
3956 ac_path_GREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in grep ggrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3967 # Check for GNU ac_path_GREP and select it if it is found.
3968 # Check for GNU $ac_path_GREP
3969 case `"$ac_path_GREP" --version 2>&1` in
3970 *GNU*)
3971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3972 *)
3973 ac_count=0
3974 $as_echo_n 0123456789 >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'GREP' >> "conftest.nl"
3981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 ac_count=`expr $ac_count + 1`
3984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_GREP="$ac_path_GREP"
3987 ac_path_GREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993 esac
3994
3995 $ac_path_GREP_found && break 3
3996 done
3997 done
3998 done
3999 IFS=$as_save_IFS
4000 if test -z "$ac_cv_path_GREP"; then
4001 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4004 fi
4005 else
4006 ac_cv_path_GREP=$GREP
4007 fi
4008
4009 fi
4010 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4011 $as_echo "$ac_cv_path_GREP" >&6; }
4012 GREP="$ac_cv_path_GREP"
4013
4014
4015 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4016 $as_echo_n "checking for egrep... " >&6; }
4017 if test "${ac_cv_path_EGREP+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4019 else
4020 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4021 then ac_cv_path_EGREP="$GREP -E"
4022 else
4023 if test -z "$EGREP"; then
4024 ac_path_EGREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_prog in egrep; do
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4034 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4035 # Check for GNU ac_path_EGREP and select it if it is found.
4036 # Check for GNU $ac_path_EGREP
4037 case `"$ac_path_EGREP" --version 2>&1` in
4038 *GNU*)
4039 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4040 *)
4041 ac_count=0
4042 $as_echo_n 0123456789 >"conftest.in"
4043 while :
4044 do
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 $as_echo 'EGREP' >> "conftest.nl"
4049 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051 ac_count=`expr $ac_count + 1`
4052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_EGREP="$ac_path_EGREP"
4055 ac_path_EGREP_max=$ac_count
4056 fi
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4059 done
4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063 $ac_path_EGREP_found && break 3
4064 done
4065 done
4066 done
4067 IFS=$as_save_IFS
4068 if test -z "$ac_cv_path_EGREP"; then
4069 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4070 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4071 { (exit 1); exit 1; }; }
4072 fi
4073 else
4074 ac_cv_path_EGREP=$EGREP
4075 fi
4076
4077 fi
4078 fi
4079 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4080 $as_echo "$ac_cv_path_EGREP" >&6; }
4081 EGREP="$ac_cv_path_EGREP"
4082
4083
4084 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4085 $as_echo_n "checking for fgrep... " >&6; }
4086 if test "${ac_cv_path_FGREP+set}" = set; then
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4090 then ac_cv_path_FGREP="$GREP -F"
4091 else
4092 if test -z "$FGREP"; then
4093 ac_path_FGREP_found=false
4094 # Loop through the user's path and test for each of PROGNAME-LIST
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4097 do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_prog in fgrep; do
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4103 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4104 # Check for GNU ac_path_FGREP and select it if it is found.
4105 # Check for GNU $ac_path_FGREP
4106 case `"$ac_path_FGREP" --version 2>&1` in
4107 *GNU*)
4108 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4109 *)
4110 ac_count=0
4111 $as_echo_n 0123456789 >"conftest.in"
4112 while :
4113 do
4114 cat "conftest.in" "conftest.in" >"conftest.tmp"
4115 mv "conftest.tmp" "conftest.in"
4116 cp "conftest.in" "conftest.nl"
4117 $as_echo 'FGREP' >> "conftest.nl"
4118 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4120 ac_count=`expr $ac_count + 1`
4121 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4122 # Best one so far, save it but keep looking for a better one
4123 ac_cv_path_FGREP="$ac_path_FGREP"
4124 ac_path_FGREP_max=$ac_count
4125 fi
4126 # 10*(2^10) chars as input seems more than enough
4127 test $ac_count -gt 10 && break
4128 done
4129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130 esac
4131
4132 $ac_path_FGREP_found && break 3
4133 done
4134 done
4135 done
4136 IFS=$as_save_IFS
4137 if test -z "$ac_cv_path_FGREP"; then
4138 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4139 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4140 { (exit 1); exit 1; }; }
4141 fi
4142 else
4143 ac_cv_path_FGREP=$FGREP
4144 fi
4145
4146 fi
4147 fi
4148 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4149 $as_echo "$ac_cv_path_FGREP" >&6; }
4150 FGREP="$ac_cv_path_FGREP"
4151
4152
4153 test -z "$GREP" && GREP=grep
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173 # Check whether --with-gnu-ld was given.
4174 if test "${with_gnu_ld+set}" = set; then
4175 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4176 else
4177 with_gnu_ld=no
4178 fi
4179
4180 ac_prog=ld
4181 if test "$GCC" = yes; then
4182 # Check if gcc -print-prog-name=ld gives a path.
4183 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4184 $as_echo_n "checking for ld used by $CC... " >&6; }
4185 case $host in
4186 *-*-mingw*)
4187 # gcc leaves a trailing carriage return which upsets mingw
4188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4189 *)
4190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4191 esac
4192 case $ac_prog in
4193 # Accept absolute paths.
4194 [\\/]* | ?:[\\/]*)
4195 re_direlt='/[^/][^/]*/\.\./'
4196 # Canonicalize the pathname of ld
4197 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4198 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4199 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4200 done
4201 test -z "$LD" && LD="$ac_prog"
4202 ;;
4203 "")
4204 # If it fails, then pretend we aren't using GCC.
4205 ac_prog=ld
4206 ;;
4207 *)
4208 # If it is relative, then search for the first ld in PATH.
4209 with_gnu_ld=unknown
4210 ;;
4211 esac
4212 elif test "$with_gnu_ld" = yes; then
4213 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4214 $as_echo_n "checking for GNU ld... " >&6; }
4215 else
4216 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4217 $as_echo_n "checking for non-GNU ld... " >&6; }
4218 fi
4219 if test "${lt_cv_path_LD+set}" = set; then
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -z "$LD"; then
4223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4224 for ac_dir in $PATH; do
4225 IFS="$lt_save_ifs"
4226 test -z "$ac_dir" && ac_dir=.
4227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4228 lt_cv_path_LD="$ac_dir/$ac_prog"
4229 # Check to see if the program is GNU ld. I'd rather use --version,
4230 # but apparently some variants of GNU ld only accept -v.
4231 # Break only if it was the GNU/non-GNU ld that we prefer.
4232 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4233 *GNU* | *'with BFD'*)
4234 test "$with_gnu_ld" != no && break
4235 ;;
4236 *)
4237 test "$with_gnu_ld" != yes && break
4238 ;;
4239 esac
4240 fi
4241 done
4242 IFS="$lt_save_ifs"
4243 else
4244 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4245 fi
4246 fi
4247
4248 LD="$lt_cv_path_LD"
4249 if test -n "$LD"; then
4250 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4251 $as_echo "$LD" >&6; }
4252 else
4253 { $as_echo "$as_me:$LINENO: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4257 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4258 { (exit 1); exit 1; }; }
4259 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4260 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4261 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4262 $as_echo_n "(cached) " >&6
4263 else
4264 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4265 case `$LD -v 2>&1 </dev/null` in
4266 *GNU* | *'with BFD'*)
4267 lt_cv_prog_gnu_ld=yes
4268 ;;
4269 *)
4270 lt_cv_prog_gnu_ld=no
4271 ;;
4272 esac
4273 fi
4274 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4275 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4276 with_gnu_ld=$lt_cv_prog_gnu_ld
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4287 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4288 if test "${lt_cv_path_NM+set}" = set; then
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -n "$NM"; then
4292 # Let the user override the test.
4293 lt_cv_path_NM="$NM"
4294 else
4295 lt_nm_to_check="${ac_tool_prefix}nm"
4296 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4297 lt_nm_to_check="$lt_nm_to_check nm"
4298 fi
4299 for lt_tmp_nm in $lt_nm_to_check; do
4300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4301 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4302 IFS="$lt_save_ifs"
4303 test -z "$ac_dir" && ac_dir=.
4304 tmp_nm="$ac_dir/$lt_tmp_nm"
4305 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4306 # Check to see if the nm accepts a BSD-compat flag.
4307 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4308 # nm: unknown option "B" ignored
4309 # Tru64's nm complains that /dev/null is an invalid object file
4310 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4311 */dev/null* | *'Invalid file or object type'*)
4312 lt_cv_path_NM="$tmp_nm -B"
4313 break
4314 ;;
4315 *)
4316 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4317 */dev/null*)
4318 lt_cv_path_NM="$tmp_nm -p"
4319 break
4320 ;;
4321 *)
4322 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4323 continue # so that we can try to find one that supports BSD flags
4324 ;;
4325 esac
4326 ;;
4327 esac
4328 fi
4329 done
4330 IFS="$lt_save_ifs"
4331 done
4332 : ${lt_cv_path_NM=no}
4333 fi
4334 fi
4335 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4336 $as_echo "$lt_cv_path_NM" >&6; }
4337 if test "$lt_cv_path_NM" != "no"; then
4338 NM="$lt_cv_path_NM"
4339 else
4340 # Didn't find any BSD compatible name lister, look for dumpbin.
4341 if test -n "$ac_tool_prefix"; then
4342 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4343 do
4344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4346 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if test -n "$DUMPBIN"; then
4352 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4353 else
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4356 do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4364 fi
4365 done
4366 done
4367 IFS=$as_save_IFS
4368
4369 fi
4370 fi
4371 DUMPBIN=$ac_cv_prog_DUMPBIN
4372 if test -n "$DUMPBIN"; then
4373 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4374 $as_echo "$DUMPBIN" >&6; }
4375 else
4376 { $as_echo "$as_me:$LINENO: result: no" >&5
4377 $as_echo "no" >&6; }
4378 fi
4379
4380
4381 test -n "$DUMPBIN" && break
4382 done
4383 fi
4384 if test -z "$DUMPBIN"; then
4385 ac_ct_DUMPBIN=$DUMPBIN
4386 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4387 do
4388 # Extract the first word of "$ac_prog", so it can be a program name with args.
4389 set dummy $ac_prog; ac_word=$2
4390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$ac_ct_DUMPBIN"; then
4396 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409 done
4410 done
4411 IFS=$as_save_IFS
4412
4413 fi
4414 fi
4415 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4416 if test -n "$ac_ct_DUMPBIN"; then
4417 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4418 $as_echo "$ac_ct_DUMPBIN" >&6; }
4419 else
4420 { $as_echo "$as_me:$LINENO: result: no" >&5
4421 $as_echo "no" >&6; }
4422 fi
4423
4424
4425 test -n "$ac_ct_DUMPBIN" && break
4426 done
4427
4428 if test "x$ac_ct_DUMPBIN" = x; then
4429 DUMPBIN=":"
4430 else
4431 case $cross_compiling:$ac_tool_warned in
4432 yes:)
4433 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4435 ac_tool_warned=yes ;;
4436 esac
4437 DUMPBIN=$ac_ct_DUMPBIN
4438 fi
4439 fi
4440
4441
4442 if test "$DUMPBIN" != ":"; then
4443 NM="$DUMPBIN"
4444 fi
4445 fi
4446 test -z "$NM" && NM=nm
4447
4448
4449
4450
4451
4452
4453 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4454 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4455 if test "${lt_cv_nm_interface+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4457 else
4458 lt_cv_nm_interface="BSD nm"
4459 echo "int some_variable = 0;" > conftest.$ac_ext
4460 (eval echo "\"\$as_me:4460: $ac_compile\"" >&5)
4461 (eval "$ac_compile" 2>conftest.err)
4462 cat conftest.err >&5
4463 (eval echo "\"\$as_me:4463: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4464 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4465 cat conftest.err >&5
4466 (eval echo "\"\$as_me:4466: output\"" >&5)
4467 cat conftest.out >&5
4468 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4469 lt_cv_nm_interface="MS dumpbin"
4470 fi
4471 rm -f conftest*
4472 fi
4473 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4474 $as_echo "$lt_cv_nm_interface" >&6; }
4475
4476 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4477 $as_echo_n "checking whether ln -s works... " >&6; }
4478 LN_S=$as_ln_s
4479 if test "$LN_S" = "ln -s"; then
4480 { $as_echo "$as_me:$LINENO: result: yes" >&5
4481 $as_echo "yes" >&6; }
4482 else
4483 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4484 $as_echo "no, using $LN_S" >&6; }
4485 fi
4486
4487 # find the maximum length of command line arguments
4488 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4489 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4490 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4491 $as_echo_n "(cached) " >&6
4492 else
4493 i=0
4494 teststring="ABCD"
4495
4496 case $build_os in
4497 msdosdjgpp*)
4498 # On DJGPP, this test can blow up pretty badly due to problems in libc
4499 # (any single argument exceeding 2000 bytes causes a buffer overrun
4500 # during glob expansion). Even if it were fixed, the result of this
4501 # check would be larger than it should be.
4502 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4503 ;;
4504
4505 gnu*)
4506 # Under GNU Hurd, this test is not required because there is
4507 # no limit to the length of command line arguments.
4508 # Libtool will interpret -1 as no limit whatsoever
4509 lt_cv_sys_max_cmd_len=-1;
4510 ;;
4511
4512 cygwin* | mingw* | cegcc*)
4513 # On Win9x/ME, this test blows up -- it succeeds, but takes
4514 # about 5 minutes as the teststring grows exponentially.
4515 # Worse, since 9x/ME are not pre-emptively multitasking,
4516 # you end up with a "frozen" computer, even though with patience
4517 # the test eventually succeeds (with a max line length of 256k).
4518 # Instead, let's just punt: use the minimum linelength reported by
4519 # all of the supported platforms: 8192 (on NT/2K/XP).
4520 lt_cv_sys_max_cmd_len=8192;
4521 ;;
4522
4523 amigaos*)
4524 # On AmigaOS with pdksh, this test takes hours, literally.
4525 # So we just punt and use a minimum line length of 8192.
4526 lt_cv_sys_max_cmd_len=8192;
4527 ;;
4528
4529 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4530 # This has been around since 386BSD, at least. Likely further.
4531 if test -x /sbin/sysctl; then
4532 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4533 elif test -x /usr/sbin/sysctl; then
4534 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4535 else
4536 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4537 fi
4538 # And add a safety zone
4539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4541 ;;
4542
4543 interix*)
4544 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4545 lt_cv_sys_max_cmd_len=196608
4546 ;;
4547
4548 osf*)
4549 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4550 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4551 # nice to cause kernel panics so lets avoid the loop below.
4552 # First set a reasonable default.
4553 lt_cv_sys_max_cmd_len=16384
4554 #
4555 if test -x /sbin/sysconfig; then
4556 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4557 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4558 esac
4559 fi
4560 ;;
4561 sco3.2v5*)
4562 lt_cv_sys_max_cmd_len=102400
4563 ;;
4564 sysv5* | sco5v6* | sysv4.2uw2*)
4565 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4566 if test -n "$kargmax"; then
4567 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4568 else
4569 lt_cv_sys_max_cmd_len=32768
4570 fi
4571 ;;
4572 *)
4573 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4574 if test -n "$lt_cv_sys_max_cmd_len"; then
4575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4577 else
4578 # Make teststring a little bigger before we do anything with it.
4579 # a 1K string should be a reasonable start.
4580 for i in 1 2 3 4 5 6 7 8 ; do
4581 teststring=$teststring$teststring
4582 done
4583 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4584 # If test is not a shell built-in, we'll probably end up computing a
4585 # maximum length that is only half of the actual maximum length, but
4586 # we can't tell.
4587 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4588 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4589 test $i != 17 # 1/2 MB should be enough
4590 do
4591 i=`expr $i + 1`
4592 teststring=$teststring$teststring
4593 done
4594 # Only check the string length outside the loop.
4595 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4596 teststring=
4597 # Add a significant safety factor because C++ compilers can tack on
4598 # massive amounts of additional arguments before passing them to the
4599 # linker. It appears as though 1/2 is a usable value.
4600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4601 fi
4602 ;;
4603 esac
4604
4605 fi
4606
4607 if test -n $lt_cv_sys_max_cmd_len ; then
4608 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4609 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4610 else
4611 { $as_echo "$as_me:$LINENO: result: none" >&5
4612 $as_echo "none" >&6; }
4613 fi
4614 max_cmd_len=$lt_cv_sys_max_cmd_len
4615
4616
4617
4618
4619
4620
4621 : ${CP="cp -f"}
4622 : ${MV="mv -f"}
4623 : ${RM="rm -f"}
4624
4625 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4626 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4627 # Try some XSI features
4628 xsi_shell=no
4629 ( _lt_dummy="a/b/c"
4630 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4631 = c,a/b,, \
4632 && eval 'test $(( 1 + 1 )) -eq 2 \
4633 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4634 && xsi_shell=yes
4635 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4636 $as_echo "$xsi_shell" >&6; }
4637
4638
4639 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4640 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4641 lt_shell_append=no
4642 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4643 >/dev/null 2>&1 \
4644 && lt_shell_append=yes
4645 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4646 $as_echo "$lt_shell_append" >&6; }
4647
4648
4649 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4650 lt_unset=unset
4651 else
4652 lt_unset=false
4653 fi
4654
4655
4656
4657
4658
4659 # test EBCDIC or ASCII
4660 case `echo X|tr X '\101'` in
4661 A) # ASCII based system
4662 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4663 lt_SP2NL='tr \040 \012'
4664 lt_NL2SP='tr \015\012 \040\040'
4665 ;;
4666 *) # EBCDIC based system
4667 lt_SP2NL='tr \100 \n'
4668 lt_NL2SP='tr \r\n \100\100'
4669 ;;
4670 esac
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4681 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4682 if test "${lt_cv_ld_reload_flag+set}" = set; then
4683 $as_echo_n "(cached) " >&6
4684 else
4685 lt_cv_ld_reload_flag='-r'
4686 fi
4687 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4688 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4689 reload_flag=$lt_cv_ld_reload_flag
4690 case $reload_flag in
4691 "" | " "*) ;;
4692 *) reload_flag=" $reload_flag" ;;
4693 esac
4694 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4695 case $host_os in
4696 darwin*)
4697 if test "$GCC" = yes; then
4698 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4699 else
4700 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4701 fi
4702 ;;
4703 esac
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713 if test -n "$ac_tool_prefix"; then
4714 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4715 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -n "$OBJDUMP"; then
4722 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739 fi
4740 fi
4741 OBJDUMP=$ac_cv_prog_OBJDUMP
4742 if test -n "$OBJDUMP"; then
4743 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4744 $as_echo "$OBJDUMP" >&6; }
4745 else
4746 { $as_echo "$as_me:$LINENO: result: no" >&5
4747 $as_echo "no" >&6; }
4748 fi
4749
4750
4751 fi
4752 if test -z "$ac_cv_prog_OBJDUMP"; then
4753 ac_ct_OBJDUMP=$OBJDUMP
4754 # Extract the first word of "objdump", so it can be a program name with args.
4755 set dummy objdump; ac_word=$2
4756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$ac_ct_OBJDUMP"; then
4762 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779 fi
4780 fi
4781 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4782 if test -n "$ac_ct_OBJDUMP"; then
4783 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4784 $as_echo "$ac_ct_OBJDUMP" >&6; }
4785 else
4786 { $as_echo "$as_me:$LINENO: result: no" >&5
4787 $as_echo "no" >&6; }
4788 fi
4789
4790 if test "x$ac_ct_OBJDUMP" = x; then
4791 OBJDUMP="false"
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794 yes:)
4795 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4797 ac_tool_warned=yes ;;
4798 esac
4799 OBJDUMP=$ac_ct_OBJDUMP
4800 fi
4801 else
4802 OBJDUMP="$ac_cv_prog_OBJDUMP"
4803 fi
4804
4805 test -z "$OBJDUMP" && OBJDUMP=objdump
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4816 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4817 if test "${lt_cv_deplibs_check_method+set}" = set; then
4818 $as_echo_n "(cached) " >&6
4819 else
4820 lt_cv_file_magic_cmd='$MAGIC_CMD'
4821 lt_cv_file_magic_test_file=
4822 lt_cv_deplibs_check_method='unknown'
4823 # Need to set the preceding variable on all platforms that support
4824 # interlibrary dependencies.
4825 # 'none' -- dependencies not supported.
4826 # `unknown' -- same as none, but documents that we really don't know.
4827 # 'pass_all' -- all dependencies passed with no checks.
4828 # 'test_compile' -- check by making test program.
4829 # 'file_magic [[regex]]' -- check by looking for files in library path
4830 # which responds to the $file_magic_cmd with a given extended regex.
4831 # If you have `file' or equivalent on your system and you're not sure
4832 # whether `pass_all' will *always* work, you probably want this one.
4833
4834 case $host_os in
4835 aix[4-9]*)
4836 lt_cv_deplibs_check_method=pass_all
4837 ;;
4838
4839 beos*)
4840 lt_cv_deplibs_check_method=pass_all
4841 ;;
4842
4843 bsdi[45]*)
4844 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4845 lt_cv_file_magic_cmd='/usr/bin/file -L'
4846 lt_cv_file_magic_test_file=/shlib/libc.so
4847 ;;
4848
4849 cygwin*)
4850 # func_win32_libid is a shell function defined in ltmain.sh
4851 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4852 lt_cv_file_magic_cmd='func_win32_libid'
4853 ;;
4854
4855 mingw* | pw32*)
4856 # Base MSYS/MinGW do not provide the 'file' command needed by
4857 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4858 # unless we find 'file', for example because we are cross-compiling.
4859 if ( file / ) >/dev/null 2>&1; then
4860 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4861 lt_cv_file_magic_cmd='func_win32_libid'
4862 else
4863 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4864 lt_cv_file_magic_cmd='$OBJDUMP -f'
4865 fi
4866 ;;
4867
4868 cegcc)
4869 # use the weaker test based on 'objdump'. See mingw*.
4870 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4871 lt_cv_file_magic_cmd='$OBJDUMP -f'
4872 ;;
4873
4874 darwin* | rhapsody*)
4875 lt_cv_deplibs_check_method=pass_all
4876 ;;
4877
4878 freebsd* | dragonfly*)
4879 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4880 case $host_cpu in
4881 i*86 )
4882 # Not sure whether the presence of OpenBSD here was a mistake.
4883 # Let's accept both of them until this is cleared up.
4884 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4885 lt_cv_file_magic_cmd=/usr/bin/file
4886 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4887 ;;
4888 esac
4889 else
4890 lt_cv_deplibs_check_method=pass_all
4891 fi
4892 ;;
4893
4894 gnu*)
4895 lt_cv_deplibs_check_method=pass_all
4896 ;;
4897
4898 hpux10.20* | hpux11*)
4899 lt_cv_file_magic_cmd=/usr/bin/file
4900 case $host_cpu in
4901 ia64*)
4902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4903 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4904 ;;
4905 hppa*64*)
4906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4907 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4908 ;;
4909 *)
4910 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4911 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4912 ;;
4913 esac
4914 ;;
4915
4916 interix[3-9]*)
4917 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4919 ;;
4920
4921 irix5* | irix6* | nonstopux*)
4922 case $LD in
4923 *-32|*"-32 ") libmagic=32-bit;;
4924 *-n32|*"-n32 ") libmagic=N32;;
4925 *-64|*"-64 ") libmagic=64-bit;;
4926 *) libmagic=never-match;;
4927 esac
4928 lt_cv_deplibs_check_method=pass_all
4929 ;;
4930
4931 # This must be Linux ELF.
4932 linux* | k*bsd*-gnu)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 netbsd*)
4937 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4939 else
4940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4941 fi
4942 ;;
4943
4944 newos6*)
4945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4946 lt_cv_file_magic_cmd=/usr/bin/file
4947 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4948 ;;
4949
4950 *nto* | *qnx*)
4951 lt_cv_deplibs_check_method=pass_all
4952 ;;
4953
4954 openbsd*)
4955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4957 else
4958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4959 fi
4960 ;;
4961
4962 osf3* | osf4* | osf5*)
4963 lt_cv_deplibs_check_method=pass_all
4964 ;;
4965
4966 rdos*)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969
4970 solaris*)
4971 lt_cv_deplibs_check_method=pass_all
4972 ;;
4973
4974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4975 lt_cv_deplibs_check_method=pass_all
4976 ;;
4977
4978 sysv4 | sysv4.3*)
4979 case $host_vendor in
4980 motorola)
4981 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]'
4982 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4983 ;;
4984 ncr)
4985 lt_cv_deplibs_check_method=pass_all
4986 ;;
4987 sequent)
4988 lt_cv_file_magic_cmd='/bin/file'
4989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4990 ;;
4991 sni)
4992 lt_cv_file_magic_cmd='/bin/file'
4993 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4994 lt_cv_file_magic_test_file=/lib/libc.so
4995 ;;
4996 siemens)
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999 pc)
5000 lt_cv_deplibs_check_method=pass_all
5001 ;;
5002 esac
5003 ;;
5004
5005 tpf*)
5006 lt_cv_deplibs_check_method=pass_all
5007 ;;
5008 esac
5009
5010 fi
5011 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5012 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5013 file_magic_cmd=$lt_cv_file_magic_cmd
5014 deplibs_check_method=$lt_cv_deplibs_check_method
5015 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5030 set dummy ${ac_tool_prefix}ar; ac_word=$2
5031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_prog_AR+set}" = set; then
5034 $as_echo_n "(cached) " >&6
5035 else
5036 if test -n "$AR"; then
5037 ac_cv_prog_AR="$AR" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_AR="${ac_tool_prefix}ar"
5047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 AR=$ac_cv_prog_AR
5057 if test -n "$AR"; then
5058 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5059 $as_echo "$AR" >&6; }
5060 else
5061 { $as_echo "$as_me:$LINENO: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066 fi
5067 if test -z "$ac_cv_prog_AR"; then
5068 ac_ct_AR=$AR
5069 # Extract the first word of "ar", so it can be a program name with args.
5070 set dummy ar; ac_word=$2
5071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5074 $as_echo_n "(cached) " >&6
5075 else
5076 if test -n "$ac_ct_AR"; then
5077 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_ac_ct_AR="ar"
5087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090 done
5091 done
5092 IFS=$as_save_IFS
5093
5094 fi
5095 fi
5096 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5097 if test -n "$ac_ct_AR"; then
5098 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5099 $as_echo "$ac_ct_AR" >&6; }
5100 else
5101 { $as_echo "$as_me:$LINENO: result: no" >&5
5102 $as_echo "no" >&6; }
5103 fi
5104
5105 if test "x$ac_ct_AR" = x; then
5106 AR="false"
5107 else
5108 case $cross_compiling:$ac_tool_warned in
5109 yes:)
5110 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5112 ac_tool_warned=yes ;;
5113 esac
5114 AR=$ac_ct_AR
5115 fi
5116 else
5117 AR="$ac_cv_prog_AR"
5118 fi
5119
5120 test -z "$AR" && AR=ar
5121 test -z "$AR_FLAGS" && AR_FLAGS=cru
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133 if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5135 set dummy ${ac_tool_prefix}strip; ac_word=$2
5136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_prog_STRIP+set}" = set; then
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$STRIP"; then
5142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5154 fi
5155 done
5156 done
5157 IFS=$as_save_IFS
5158
5159 fi
5160 fi
5161 STRIP=$ac_cv_prog_STRIP
5162 if test -n "$STRIP"; then
5163 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5164 $as_echo "$STRIP" >&6; }
5165 else
5166 { $as_echo "$as_me:$LINENO: result: no" >&5
5167 $as_echo "no" >&6; }
5168 fi
5169
5170
5171 fi
5172 if test -z "$ac_cv_prog_STRIP"; then
5173 ac_ct_STRIP=$STRIP
5174 # Extract the first word of "strip", so it can be a program name with args.
5175 set dummy strip; ac_word=$2
5176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$ac_ct_STRIP"; then
5182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_ac_ct_STRIP="strip"
5192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5194 fi
5195 done
5196 done
5197 IFS=$as_save_IFS
5198
5199 fi
5200 fi
5201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5202 if test -n "$ac_ct_STRIP"; then
5203 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5204 $as_echo "$ac_ct_STRIP" >&6; }
5205 else
5206 { $as_echo "$as_me:$LINENO: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210 if test "x$ac_ct_STRIP" = x; then
5211 STRIP=":"
5212 else
5213 case $cross_compiling:$ac_tool_warned in
5214 yes:)
5215 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217 ac_tool_warned=yes ;;
5218 esac
5219 STRIP=$ac_ct_STRIP
5220 fi
5221 else
5222 STRIP="$ac_cv_prog_STRIP"
5223 fi
5224
5225 test -z "$STRIP" && STRIP=:
5226
5227
5228
5229
5230
5231
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if test "${ac_cv_prog_RANLIB+set}" = set; then
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -n "$RANLIB"; then
5241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258 fi
5259 fi
5260 RANLIB=$ac_cv_prog_RANLIB
5261 if test -n "$RANLIB"; then
5262 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5263 $as_echo "$RANLIB" >&6; }
5264 else
5265 { $as_echo "$as_me:$LINENO: result: no" >&5
5266 $as_echo "no" >&6; }
5267 fi
5268
5269
5270 fi
5271 if test -z "$ac_cv_prog_RANLIB"; then
5272 ac_ct_RANLIB=$RANLIB
5273 # Extract the first word of "ranlib", so it can be a program name with args.
5274 set dummy ranlib; ac_word=$2
5275 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$ac_ct_RANLIB"; then
5281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_prog_ac_ct_RANLIB="ranlib"
5291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5301 if test -n "$ac_ct_RANLIB"; then
5302 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5303 $as_echo "$ac_ct_RANLIB" >&6; }
5304 else
5305 { $as_echo "$as_me:$LINENO: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309 if test "x$ac_ct_RANLIB" = x; then
5310 RANLIB=":"
5311 else
5312 case $cross_compiling:$ac_tool_warned in
5313 yes:)
5314 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316 ac_tool_warned=yes ;;
5317 esac
5318 RANLIB=$ac_ct_RANLIB
5319 fi
5320 else
5321 RANLIB="$ac_cv_prog_RANLIB"
5322 fi
5323
5324 test -z "$RANLIB" && RANLIB=:
5325
5326
5327
5328
5329
5330
5331 # Determine commands to create old-style static archives.
5332 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5333 old_postinstall_cmds='chmod 644 $oldlib'
5334 old_postuninstall_cmds=
5335
5336 if test -n "$RANLIB"; then
5337 case $host_os in
5338 openbsd*)
5339 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5340 ;;
5341 *)
5342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5343 ;;
5344 esac
5345 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5346 fi
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381 # If no C compiler was specified, use CC.
5382 LTCC=${LTCC-"$CC"}
5383
5384 # If no C compiler flags were specified, use CFLAGS.
5385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5386
5387 # Allow CC to be a program name with arguments.
5388 compiler=$CC
5389
5390
5391 # Check for command to grab the raw symbol name followed by C symbol from nm.
5392 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5393 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5394 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5395 $as_echo_n "(cached) " >&6
5396 else
5397
5398 # These are sane defaults that work on at least a few old systems.
5399 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5400
5401 # Character class describing NM global symbol codes.
5402 symcode='[BCDEGRST]'
5403
5404 # Regexp to match symbols that can be accessed directly from C.
5405 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5406
5407 # Define system-specific variables.
5408 case $host_os in
5409 aix*)
5410 symcode='[BCDT]'
5411 ;;
5412 cygwin* | mingw* | pw32* | cegcc*)
5413 symcode='[ABCDGISTW]'
5414 ;;
5415 hpux*)
5416 if test "$host_cpu" = ia64; then
5417 symcode='[ABCDEGRST]'
5418 fi
5419 ;;
5420 irix* | nonstopux*)
5421 symcode='[BCDEGRST]'
5422 ;;
5423 osf*)
5424 symcode='[BCDEGQRST]'
5425 ;;
5426 solaris*)
5427 symcode='[BDRT]'
5428 ;;
5429 sco3.2v5*)
5430 symcode='[DT]'
5431 ;;
5432 sysv4.2uw2*)
5433 symcode='[DT]'
5434 ;;
5435 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5436 symcode='[ABDT]'
5437 ;;
5438 sysv4)
5439 symcode='[DFNSTU]'
5440 ;;
5441 esac
5442
5443 # If we're using GNU nm, then use its standard symbol codes.
5444 case `$NM -V 2>&1` in
5445 *GNU* | *'with BFD'*)
5446 symcode='[ABCDGIRSTW]' ;;
5447 esac
5448
5449 # Transform an extracted symbol line into a proper C declaration.
5450 # Some systems (esp. on ia64) link data and code symbols differently,
5451 # so use this general approach.
5452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5453
5454 # Transform an extracted symbol line into symbol name and symbol address
5455 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5456 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'"
5457
5458 # Handle CRLF in mingw tool chain
5459 opt_cr=
5460 case $build_os in
5461 mingw*)
5462 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5463 ;;
5464 esac
5465
5466 # Try without a prefix underscore, then with it.
5467 for ac_symprfx in "" "_"; do
5468
5469 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5470 symxfrm="\\1 $ac_symprfx\\2 \\2"
5471
5472 # Write the raw and C identifiers.
5473 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5474 # Fake it for dumpbin and say T for any non-static function
5475 # and D for any global variable.
5476 # Also find C++ and __fastcall symbols from MSVC++,
5477 # which start with @ or ?.
5478 lt_cv_sys_global_symbol_pipe="$AWK '"\
5479 " {last_section=section; section=\$ 3};"\
5480 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5481 " \$ 0!~/External *\|/{next};"\
5482 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5483 " {if(hide[section]) next};"\
5484 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5485 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5486 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5487 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5488 " ' prfx=^$ac_symprfx"
5489 else
5490 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5491 fi
5492
5493 # Check to see that the pipe works correctly.
5494 pipe_works=no
5495
5496 rm -f conftest*
5497 cat > conftest.$ac_ext <<_LT_EOF
5498 #ifdef __cplusplus
5499 extern "C" {
5500 #endif
5501 char nm_test_var;
5502 void nm_test_func(void);
5503 void nm_test_func(void){}
5504 #ifdef __cplusplus
5505 }
5506 #endif
5507 int main(){nm_test_var='a';nm_test_func();return(0);}
5508 _LT_EOF
5509
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>&5
5512 ac_status=$?
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; then
5515 # Now try to grab the symbols.
5516 nlist=conftest.nm
5517 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5519 ac_status=$?
5520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } && test -s "$nlist"; then
5522 # Try sorting and uniquifying the output.
5523 if sort "$nlist" | uniq > "$nlist"T; then
5524 mv -f "$nlist"T "$nlist"
5525 else
5526 rm -f "$nlist"T
5527 fi
5528
5529 # Make sure that we snagged all the symbols we need.
5530 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5531 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5532 cat <<_LT_EOF > conftest.$ac_ext
5533 #ifdef __cplusplus
5534 extern "C" {
5535 #endif
5536
5537 _LT_EOF
5538 # Now generate the symbol file.
5539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5540
5541 cat <<_LT_EOF >> conftest.$ac_ext
5542
5543 /* The mapping between symbol names and symbols. */
5544 const struct {
5545 const char *name;
5546 void *address;
5547 }
5548 lt__PROGRAM__LTX_preloaded_symbols[] =
5549 {
5550 { "@PROGRAM@", (void *) 0 },
5551 _LT_EOF
5552 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5553 cat <<\_LT_EOF >> conftest.$ac_ext
5554 {0, (void *) 0}
5555 };
5556
5557 /* This works around a problem in FreeBSD linker */
5558 #ifdef FREEBSD_WORKAROUND
5559 static const void *lt_preloaded_setup() {
5560 return lt__PROGRAM__LTX_preloaded_symbols;
5561 }
5562 #endif
5563
5564 #ifdef __cplusplus
5565 }
5566 #endif
5567 _LT_EOF
5568 # Now try linking the two files.
5569 mv conftest.$ac_objext conftstm.$ac_objext
5570 lt_save_LIBS="$LIBS"
5571 lt_save_CFLAGS="$CFLAGS"
5572 LIBS="conftstm.$ac_objext"
5573 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575 (eval $ac_link) 2>&5
5576 ac_status=$?
5577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5579 pipe_works=yes
5580 fi
5581 LIBS="$lt_save_LIBS"
5582 CFLAGS="$lt_save_CFLAGS"
5583 else
5584 echo "cannot find nm_test_func in $nlist" >&5
5585 fi
5586 else
5587 echo "cannot find nm_test_var in $nlist" >&5
5588 fi
5589 else
5590 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5591 fi
5592 else
5593 echo "$progname: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5595 fi
5596 rm -rf conftest* conftst*
5597
5598 # Do not use the global_symbol_pipe unless it works.
5599 if test "$pipe_works" = yes; then
5600 break
5601 else
5602 lt_cv_sys_global_symbol_pipe=
5603 fi
5604 done
5605
5606 fi
5607
5608 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5609 lt_cv_sys_global_symbol_to_cdecl=
5610 fi
5611 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5612 { $as_echo "$as_me:$LINENO: result: failed" >&5
5613 $as_echo "failed" >&6; }
5614 else
5615 { $as_echo "$as_me:$LINENO: result: ok" >&5
5616 $as_echo "ok" >&6; }
5617 fi
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641 # Check whether --enable-libtool-lock was given.
5642 if test "${enable_libtool_lock+set}" = set; then
5643 enableval=$enable_libtool_lock;
5644 fi
5645
5646 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5647
5648 # Some flags need to be propagated to the compiler or linker for good
5649 # libtool support.
5650 case $host in
5651 ia64-*-hpux*)
5652 # Find out which ABI we are using.
5653 echo 'int i;' > conftest.$ac_ext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>&5
5656 ac_status=$?
5657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; then
5659 case `/usr/bin/file conftest.$ac_objext` in
5660 *ELF-32*)
5661 HPUX_IA64_MODE="32"
5662 ;;
5663 *ELF-64*)
5664 HPUX_IA64_MODE="64"
5665 ;;
5666 esac
5667 fi
5668 rm -rf conftest*
5669 ;;
5670 *-*-irix6*)
5671 # Find out which ABI we are using.
5672 echo '#line 5672 "configure"' > conftest.$ac_ext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; then
5678 if test "$lt_cv_prog_gnu_ld" = yes; then
5679 case `/usr/bin/file conftest.$ac_objext` in
5680 *32-bit*)
5681 LD="${LD-ld} -melf32bsmip"
5682 ;;
5683 *N32*)
5684 LD="${LD-ld} -melf32bmipn32"
5685 ;;
5686 *64-bit*)
5687 LD="${LD-ld} -melf64bmip"
5688 ;;
5689 esac
5690 else
5691 case `/usr/bin/file conftest.$ac_objext` in
5692 *32-bit*)
5693 LD="${LD-ld} -32"
5694 ;;
5695 *N32*)
5696 LD="${LD-ld} -n32"
5697 ;;
5698 *64-bit*)
5699 LD="${LD-ld} -64"
5700 ;;
5701 esac
5702 fi
5703 fi
5704 rm -rf conftest*
5705 ;;
5706
5707 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5708 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5709 # Find out which ABI we are using.
5710 echo 'int i;' > conftest.$ac_ext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>&5
5713 ac_status=$?
5714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; then
5716 case `/usr/bin/file conftest.o` in
5717 *32-bit*)
5718 case $host in
5719 x86_64-*kfreebsd*-gnu)
5720 LD="${LD-ld} -m elf_i386_fbsd"
5721 ;;
5722 x86_64-*linux*)
5723 LD="${LD-ld} -m elf_i386"
5724 ;;
5725 ppc64-*linux*|powerpc64-*linux*)
5726 LD="${LD-ld} -m elf32ppclinux"
5727 ;;
5728 s390x-*linux*)
5729 LD="${LD-ld} -m elf_s390"
5730 ;;
5731 sparc64-*linux*)
5732 LD="${LD-ld} -m elf32_sparc"
5733 ;;
5734 esac
5735 ;;
5736 *64-bit*)
5737 case $host in
5738 x86_64-*kfreebsd*-gnu)
5739 LD="${LD-ld} -m elf_x86_64_fbsd"
5740 ;;
5741 x86_64-*linux*)
5742 LD="${LD-ld} -m elf_x86_64"
5743 ;;
5744 ppc*-*linux*|powerpc*-*linux*)
5745 LD="${LD-ld} -m elf64ppc"
5746 ;;
5747 s390*-*linux*|s390*-*tpf*)
5748 LD="${LD-ld} -m elf64_s390"
5749 ;;
5750 sparc*-*linux*)
5751 LD="${LD-ld} -m elf64_sparc"
5752 ;;
5753 esac
5754 ;;
5755 esac
5756 fi
5757 rm -rf conftest*
5758 ;;
5759
5760 *-*-sco3.2v5*)
5761 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5762 SAVE_CFLAGS="$CFLAGS"
5763 CFLAGS="$CFLAGS -belf"
5764 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5765 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5766 if test "${lt_cv_cc_needs_belf+set}" = set; then
5767 $as_echo_n "(cached) " >&6
5768 else
5769 ac_ext=c
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781
5782 int
5783 main ()
5784 {
5785
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext conftest$ac_exeext
5791 if { (ac_try="$ac_link"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5797 $as_echo "$ac_try_echo") >&5
5798 (eval "$ac_link") 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && {
5805 test -z "$ac_c_werror_flag" ||
5806 test ! -s conftest.err
5807 } && test -s conftest$ac_exeext && {
5808 test "$cross_compiling" = yes ||
5809 $as_test_x conftest$ac_exeext
5810 }; then
5811 lt_cv_cc_needs_belf=yes
5812 else
5813 $as_echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 lt_cv_cc_needs_belf=no
5817 fi
5818
5819 rm -rf conftest.dSYM
5820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5821 conftest$ac_exeext conftest.$ac_ext
5822 ac_ext=c
5823 ac_cpp='$CPP $CPPFLAGS'
5824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827
5828 fi
5829 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5830 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5831 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5832 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5833 CFLAGS="$SAVE_CFLAGS"
5834 fi
5835 ;;
5836 sparc*-*solaris*)
5837 # Find out which ABI we are using.
5838 echo 'int i;' > conftest.$ac_ext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>&5
5841 ac_status=$?
5842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; then
5844 case `/usr/bin/file conftest.o` in
5845 *64-bit*)
5846 case $lt_cv_prog_gnu_ld in
5847 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5848 *)
5849 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5850 LD="${LD-ld} -64"
5851 fi
5852 ;;
5853 esac
5854 ;;
5855 esac
5856 fi
5857 rm -rf conftest*
5858 ;;
5859 esac
5860
5861 need_locks="$enable_libtool_lock"
5862
5863
5864 case $host_os in
5865 rhapsody* | darwin*)
5866 if test -n "$ac_tool_prefix"; then
5867 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5868 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5869 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if test -n "$DSYMUTIL"; then
5875 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5887 fi
5888 done
5889 done
5890 IFS=$as_save_IFS
5891
5892 fi
5893 fi
5894 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5895 if test -n "$DSYMUTIL"; then
5896 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5897 $as_echo "$DSYMUTIL" >&6; }
5898 else
5899 { $as_echo "$as_me:$LINENO: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902
5903
5904 fi
5905 if test -z "$ac_cv_prog_DSYMUTIL"; then
5906 ac_ct_DSYMUTIL=$DSYMUTIL
5907 # Extract the first word of "dsymutil", so it can be a program name with args.
5908 set dummy dsymutil; ac_word=$2
5909 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -n "$ac_ct_DSYMUTIL"; then
5915 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5935 if test -n "$ac_ct_DSYMUTIL"; then
5936 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5937 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5938 else
5939 { $as_echo "$as_me:$LINENO: result: no" >&5
5940 $as_echo "no" >&6; }
5941 fi
5942
5943 if test "x$ac_ct_DSYMUTIL" = x; then
5944 DSYMUTIL=":"
5945 else
5946 case $cross_compiling:$ac_tool_warned in
5947 yes:)
5948 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5950 ac_tool_warned=yes ;;
5951 esac
5952 DSYMUTIL=$ac_ct_DSYMUTIL
5953 fi
5954 else
5955 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5956 fi
5957
5958 if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5960 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$NMEDIT"; then
5967 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 NMEDIT=$ac_cv_prog_NMEDIT
5987 if test -n "$NMEDIT"; then
5988 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5989 $as_echo "$NMEDIT" >&6; }
5990 else
5991 { $as_echo "$as_me:$LINENO: result: no" >&5
5992 $as_echo "no" >&6; }
5993 fi
5994
5995
5996 fi
5997 if test -z "$ac_cv_prog_NMEDIT"; then
5998 ac_ct_NMEDIT=$NMEDIT
5999 # Extract the first word of "nmedit", so it can be a program name with args.
6000 set dummy nmedit; ac_word=$2
6001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$ac_ct_NMEDIT"; then
6007 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6027 if test -n "$ac_ct_NMEDIT"; then
6028 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6029 $as_echo "$ac_ct_NMEDIT" >&6; }
6030 else
6031 { $as_echo "$as_me:$LINENO: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035 if test "x$ac_ct_NMEDIT" = x; then
6036 NMEDIT=":"
6037 else
6038 case $cross_compiling:$ac_tool_warned in
6039 yes:)
6040 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042 ac_tool_warned=yes ;;
6043 esac
6044 NMEDIT=$ac_ct_NMEDIT
6045 fi
6046 else
6047 NMEDIT="$ac_cv_prog_NMEDIT"
6048 fi
6049
6050 if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if test "${ac_cv_prog_LIPO+set}" = set; then
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if test -n "$LIPO"; then
6059 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076 fi
6077 fi
6078 LIPO=$ac_cv_prog_LIPO
6079 if test -n "$LIPO"; then
6080 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6081 $as_echo "$LIPO" >&6; }
6082 else
6083 { $as_echo "$as_me:$LINENO: result: no" >&5
6084 $as_echo "no" >&6; }
6085 fi
6086
6087
6088 fi
6089 if test -z "$ac_cv_prog_LIPO"; then
6090 ac_ct_LIPO=$LIPO
6091 # Extract the first word of "lipo", so it can be a program name with args.
6092 set dummy lipo; ac_word=$2
6093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$ac_ct_LIPO"; then
6099 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_ac_ct_LIPO="lipo"
6109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112 done
6113 done
6114 IFS=$as_save_IFS
6115
6116 fi
6117 fi
6118 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6119 if test -n "$ac_ct_LIPO"; then
6120 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6121 $as_echo "$ac_ct_LIPO" >&6; }
6122 else
6123 { $as_echo "$as_me:$LINENO: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126
6127 if test "x$ac_ct_LIPO" = x; then
6128 LIPO=":"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134 ac_tool_warned=yes ;;
6135 esac
6136 LIPO=$ac_ct_LIPO
6137 fi
6138 else
6139 LIPO="$ac_cv_prog_LIPO"
6140 fi
6141
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}otool; ac_word=$2
6145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_OTOOL+set}" = set; then
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$OTOOL"; then
6151 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 OTOOL=$ac_cv_prog_OTOOL
6171 if test -n "$OTOOL"; then
6172 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6173 $as_echo "$OTOOL" >&6; }
6174 else
6175 { $as_echo "$as_me:$LINENO: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179
6180 fi
6181 if test -z "$ac_cv_prog_OTOOL"; then
6182 ac_ct_OTOOL=$OTOOL
6183 # Extract the first word of "otool", so it can be a program name with args.
6184 set dummy otool; ac_word=$2
6185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$ac_ct_OTOOL"; then
6191 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_OTOOL="otool"
6201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6211 if test -n "$ac_ct_OTOOL"; then
6212 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6213 $as_echo "$ac_ct_OTOOL" >&6; }
6214 else
6215 { $as_echo "$as_me:$LINENO: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219 if test "x$ac_ct_OTOOL" = x; then
6220 OTOOL=":"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228 OTOOL=$ac_ct_OTOOL
6229 fi
6230 else
6231 OTOOL="$ac_cv_prog_OTOOL"
6232 fi
6233
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$OTOOL64"; then
6243 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 OTOOL64=$ac_cv_prog_OTOOL64
6263 if test -n "$OTOOL64"; then
6264 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6265 $as_echo "$OTOOL64" >&6; }
6266 else
6267 { $as_echo "$as_me:$LINENO: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271
6272 fi
6273 if test -z "$ac_cv_prog_OTOOL64"; then
6274 ac_ct_OTOOL64=$OTOOL64
6275 # Extract the first word of "otool64", so it can be a program name with args.
6276 set dummy otool64; ac_word=$2
6277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$ac_ct_OTOOL64"; then
6283 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_ac_ct_OTOOL64="otool64"
6293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6303 if test -n "$ac_ct_OTOOL64"; then
6304 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6305 $as_echo "$ac_ct_OTOOL64" >&6; }
6306 else
6307 { $as_echo "$as_me:$LINENO: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311 if test "x$ac_ct_OTOOL64" = x; then
6312 OTOOL64=":"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318 ac_tool_warned=yes ;;
6319 esac
6320 OTOOL64=$ac_ct_OTOOL64
6321 fi
6322 else
6323 OTOOL64="$ac_cv_prog_OTOOL64"
6324 fi
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6353 $as_echo_n "checking for -single_module linker flag... " >&6; }
6354 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6355 $as_echo_n "(cached) " >&6
6356 else
6357 lt_cv_apple_cc_single_mod=no
6358 if test -z "${LT_MULTI_MODULE}"; then
6359 # By default we will add the -single_module flag. You can override
6360 # by either setting the environment variable LT_MULTI_MODULE
6361 # non-empty at configure time, or by adding -multi_module to the
6362 # link flags.
6363 rm -rf libconftest.dylib*
6364 echo "int foo(void){return 1;}" > conftest.c
6365 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6366 -dynamiclib -Wl,-single_module conftest.c" >&5
6367 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6368 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6369 _lt_result=$?
6370 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6371 lt_cv_apple_cc_single_mod=yes
6372 else
6373 cat conftest.err >&5
6374 fi
6375 rm -rf libconftest.dylib*
6376 rm -f conftest.*
6377 fi
6378 fi
6379 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6380 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6381 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6382 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6383 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6384 $as_echo_n "(cached) " >&6
6385 else
6386 lt_cv_ld_exported_symbols_list=no
6387 save_LDFLAGS=$LDFLAGS
6388 echo "_main" > conftest.sym
6389 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396
6397 int
6398 main ()
6399 {
6400
6401 ;
6402 return 0;
6403 }
6404 _ACEOF
6405 rm -f conftest.$ac_objext conftest$ac_exeext
6406 if { (ac_try="$ac_link"
6407 case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410 esac
6411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6412 $as_echo "$ac_try_echo") >&5
6413 (eval "$ac_link") 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && {
6420 test -z "$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 } && test -s conftest$ac_exeext && {
6423 test "$cross_compiling" = yes ||
6424 $as_test_x conftest$ac_exeext
6425 }; then
6426 lt_cv_ld_exported_symbols_list=yes
6427 else
6428 $as_echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 lt_cv_ld_exported_symbols_list=no
6432 fi
6433
6434 rm -rf conftest.dSYM
6435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6436 conftest$ac_exeext conftest.$ac_ext
6437 LDFLAGS="$save_LDFLAGS"
6438
6439 fi
6440 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6441 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6442 case $host_os in
6443 rhapsody* | darwin1.[012])
6444 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6445 darwin1.*)
6446 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6447 darwin*) # darwin 5.x on
6448 # if running on 10.5 or later, the deployment target defaults
6449 # to the OS version, if on x86, and 10.4, the deployment
6450 # target defaults to 10.4. Don't you love it?
6451 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6452 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6453 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6454 10.[012]*)
6455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6456 10.*)
6457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6458 esac
6459 ;;
6460 esac
6461 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6462 _lt_dar_single_mod='$single_module'
6463 fi
6464 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6465 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6466 else
6467 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6468 fi
6469 if test "$DSYMUTIL" != ":"; then
6470 _lt_dsymutil='~$DSYMUTIL $lib || :'
6471 else
6472 _lt_dsymutil=
6473 fi
6474 ;;
6475 esac
6476
6477 ac_ext=c
6478 ac_cpp='$CPP $CPPFLAGS'
6479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6483 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6484 # On Suns, sometimes $CPP names a directory.
6485 if test -n "$CPP" && test -d "$CPP"; then
6486 CPP=
6487 fi
6488 if test -z "$CPP"; then
6489 if test "${ac_cv_prog_CPP+set}" = set; then
6490 $as_echo_n "(cached) " >&6
6491 else
6492 # Double quotes because CPP needs to be expanded
6493 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6494 do
6495 ac_preproc_ok=false
6496 for ac_c_preproc_warn_flag in '' yes
6497 do
6498 # Use a header file that comes with gcc, so configuring glibc
6499 # with a fresh cross-compiler works.
6500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6501 # <limits.h> exists even on freestanding compilers.
6502 # On the NeXT, cc -E runs the code through the compiler's parser,
6503 # not just through cpp. "Syntax error" is here to catch this case.
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 #ifdef __STDC__
6511 # include <limits.h>
6512 #else
6513 # include <assert.h>
6514 #endif
6515 Syntax error
6516 _ACEOF
6517 if { (ac_try="$ac_cpp conftest.$ac_ext"
6518 case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521 esac
6522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6523 $as_echo "$ac_try_echo") >&5
6524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null && {
6531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 }; then
6534 :
6535 else
6536 $as_echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 # Broken: fails on valid input.
6540 continue
6541 fi
6542
6543 rm -f conftest.err conftest.$ac_ext
6544
6545 # OK, works on sane cases. Now check whether nonexistent headers
6546 # can be detected and how.
6547 cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h. */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 #include <ac_nonexistent.h>
6554 _ACEOF
6555 if { (ac_try="$ac_cpp conftest.$ac_ext"
6556 case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559 esac
6560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6561 $as_echo "$ac_try_echo") >&5
6562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } >/dev/null && {
6569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 }; then
6572 # Broken: success on invalid input.
6573 continue
6574 else
6575 $as_echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 # Passes both tests.
6579 ac_preproc_ok=:
6580 break
6581 fi
6582
6583 rm -f conftest.err conftest.$ac_ext
6584
6585 done
6586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6587 rm -f conftest.err conftest.$ac_ext
6588 if $ac_preproc_ok; then
6589 break
6590 fi
6591
6592 done
6593 ac_cv_prog_CPP=$CPP
6594
6595 fi
6596 CPP=$ac_cv_prog_CPP
6597 else
6598 ac_cv_prog_CPP=$CPP
6599 fi
6600 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6601 $as_echo "$CPP" >&6; }
6602 ac_preproc_ok=false
6603 for ac_c_preproc_warn_flag in '' yes
6604 do
6605 # Use a header file that comes with gcc, so configuring glibc
6606 # with a fresh cross-compiler works.
6607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6608 # <limits.h> exists even on freestanding compilers.
6609 # On the NeXT, cc -E runs the code through the compiler's parser,
6610 # not just through cpp. "Syntax error" is here to catch this case.
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 #ifdef __STDC__
6618 # include <limits.h>
6619 #else
6620 # include <assert.h>
6621 #endif
6622 Syntax error
6623 _ACEOF
6624 if { (ac_try="$ac_cpp conftest.$ac_ext"
6625 case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6630 $as_echo "$ac_try_echo") >&5
6631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } >/dev/null && {
6638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6639 test ! -s conftest.err
6640 }; then
6641 :
6642 else
6643 $as_echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 # Broken: fails on valid input.
6647 continue
6648 fi
6649
6650 rm -f conftest.err conftest.$ac_ext
6651
6652 # OK, works on sane cases. Now check whether nonexistent headers
6653 # can be detected and how.
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 #include <ac_nonexistent.h>
6661 _ACEOF
6662 if { (ac_try="$ac_cpp conftest.$ac_ext"
6663 case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666 esac
6667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6668 $as_echo "$ac_try_echo") >&5
6669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } >/dev/null && {
6676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 }; then
6679 # Broken: success on invalid input.
6680 continue
6681 else
6682 $as_echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685 # Passes both tests.
6686 ac_preproc_ok=:
6687 break
6688 fi
6689
6690 rm -f conftest.err conftest.$ac_ext
6691
6692 done
6693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6694 rm -f conftest.err conftest.$ac_ext
6695 if $ac_preproc_ok; then
6696 :
6697 else
6698 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6700 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6701 See \`config.log' for more details." >&5
6702 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6703 See \`config.log' for more details." >&2;}
6704 { (exit 1); exit 1; }; }; }
6705 fi
6706
6707 ac_ext=c
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712
6713
6714 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6715 $as_echo_n "checking for ANSI C header files... " >&6; }
6716 if test "${ac_cv_header_stdc+set}" = set; then
6717 $as_echo_n "(cached) " >&6
6718 else
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 #include <stdlib.h>
6726 #include <stdarg.h>
6727 #include <string.h>
6728 #include <float.h>
6729
6730 int
6731 main ()
6732 {
6733
6734 ;
6735 return 0;
6736 }
6737 _ACEOF
6738 rm -f conftest.$ac_objext
6739 if { (ac_try="$ac_compile"
6740 case "(($ac_try" in
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6743 esac
6744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6745 $as_echo "$ac_try_echo") >&5
6746 (eval "$ac_compile") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } && {
6753 test -z "$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 } && test -s conftest.$ac_objext; then
6756 ac_cv_header_stdc=yes
6757 else
6758 $as_echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761 ac_cv_header_stdc=no
6762 fi
6763
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765
6766 if test $ac_cv_header_stdc = yes; then
6767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h. */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 #include <string.h>
6775
6776 _ACEOF
6777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6778 $EGREP "memchr" >/dev/null 2>&1; then
6779 :
6780 else
6781 ac_cv_header_stdc=no
6782 fi
6783 rm -f conftest*
6784
6785 fi
6786
6787 if test $ac_cv_header_stdc = yes; then
6788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 #include <stdlib.h>
6796
6797 _ACEOF
6798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 $EGREP "free" >/dev/null 2>&1; then
6800 :
6801 else
6802 ac_cv_header_stdc=no
6803 fi
6804 rm -f conftest*
6805
6806 fi
6807
6808 if test $ac_cv_header_stdc = yes; then
6809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6810 if test "$cross_compiling" = yes; then
6811 :
6812 else
6813 cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h. */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 #include <ctype.h>
6820 #include <stdlib.h>
6821 #if ((' ' & 0x0FF) == 0x020)
6822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6824 #else
6825 # define ISLOWER(c) \
6826 (('a' <= (c) && (c) <= 'i') \
6827 || ('j' <= (c) && (c) <= 'r') \
6828 || ('s' <= (c) && (c) <= 'z'))
6829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6830 #endif
6831
6832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6833 int
6834 main ()
6835 {
6836 int i;
6837 for (i = 0; i < 256; i++)
6838 if (XOR (islower (i), ISLOWER (i))
6839 || toupper (i) != TOUPPER (i))
6840 return 2;
6841 return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest$ac_exeext
6845 if { (ac_try="$ac_link"
6846 case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849 esac
6850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6851 $as_echo "$ac_try_echo") >&5
6852 (eval "$ac_link") 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6856 { (case "(($ac_try" in
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6859 esac
6860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6861 $as_echo "$ac_try_echo") >&5
6862 (eval "$ac_try") 2>&5
6863 ac_status=$?
6864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 :
6867 else
6868 $as_echo "$as_me: program exited with status $ac_status" >&5
6869 $as_echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6871
6872 ( exit $ac_status )
6873 ac_cv_header_stdc=no
6874 fi
6875 rm -rf conftest.dSYM
6876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6877 fi
6878
6879
6880 fi
6881 fi
6882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6883 $as_echo "$ac_cv_header_stdc" >&6; }
6884 if test $ac_cv_header_stdc = yes; then
6885
6886 cat >>confdefs.h <<\_ACEOF
6887 #define STDC_HEADERS 1
6888 _ACEOF
6889
6890 fi
6891
6892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6903 inttypes.h stdint.h unistd.h
6904 do
6905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6906 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6907 $as_echo_n "checking for $ac_header... " >&6; }
6908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6909 $as_echo_n "(cached) " >&6
6910 else
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 $ac_includes_default
6918
6919 #include <$ac_header>
6920 _ACEOF
6921 rm -f conftest.$ac_objext
6922 if { (ac_try="$ac_compile"
6923 case "(($ac_try" in
6924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6926 esac
6927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6928 $as_echo "$ac_try_echo") >&5
6929 (eval "$ac_compile") 2>conftest.er1
6930 ac_status=$?
6931 grep -v '^ *+' conftest.er1 >conftest.err
6932 rm -f conftest.er1
6933 cat conftest.err >&5
6934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } && {
6936 test -z "$ac_c_werror_flag" ||
6937 test ! -s conftest.err
6938 } && test -s conftest.$ac_objext; then
6939 eval "$as_ac_Header=yes"
6940 else
6941 $as_echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6943
6944 eval "$as_ac_Header=no"
6945 fi
6946
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 fi
6949 ac_res=`eval 'as_val=${'$as_ac_Header'}
6950 $as_echo "$as_val"'`
6951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6952 $as_echo "$ac_res" >&6; }
6953 as_val=`eval 'as_val=${'$as_ac_Header'}
6954 $as_echo "$as_val"'`
6955 if test "x$as_val" = x""yes; then
6956 cat >>confdefs.h <<_ACEOF
6957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6958 _ACEOF
6959
6960 fi
6961
6962 done
6963
6964
6965
6966 for ac_header in dlfcn.h
6967 do
6968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 $as_echo_n "checking for $ac_header... " >&6; }
6971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 $as_echo_n "(cached) " >&6
6973 else
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 $ac_includes_default
6981
6982 #include <$ac_header>
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (ac_try="$ac_compile"
6986 case "(($ac_try" in
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6989 esac
6990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6991 $as_echo "$ac_try_echo") >&5
6992 (eval "$ac_compile") 2>conftest.er1
6993 ac_status=$?
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
6997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } && {
6999 test -z "$ac_c_werror_flag" ||
7000 test ! -s conftest.err
7001 } && test -s conftest.$ac_objext; then
7002 eval "$as_ac_Header=yes"
7003 else
7004 $as_echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 eval "$as_ac_Header=no"
7008 fi
7009
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 fi
7012 ac_res=`eval 'as_val=${'$as_ac_Header'}
7013 $as_echo "$as_val"'`
7014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7015 $as_echo "$ac_res" >&6; }
7016 as_val=`eval 'as_val=${'$as_ac_Header'}
7017 $as_echo "$as_val"'`
7018 if test "x$as_val" = x""yes; then
7019 cat >>confdefs.h <<_ACEOF
7020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7021 _ACEOF
7022
7023 fi
7024
7025 done
7026
7027
7028
7029 # Set options
7030
7031
7032
7033 enable_dlopen=no
7034
7035
7036 enable_win32_dll=no
7037
7038
7039 # Check whether --enable-shared was given.
7040 if test "${enable_shared+set}" = set; then
7041 enableval=$enable_shared; p=${PACKAGE-default}
7042 case $enableval in
7043 yes) enable_shared=yes ;;
7044 no) enable_shared=no ;;
7045 *)
7046 enable_shared=no
7047 # Look at the argument we got. We use all the common list separators.
7048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7049 for pkg in $enableval; do
7050 IFS="$lt_save_ifs"
7051 if test "X$pkg" = "X$p"; then
7052 enable_shared=yes
7053 fi
7054 done
7055 IFS="$lt_save_ifs"
7056 ;;
7057 esac
7058 else
7059 enable_shared=yes
7060 fi
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070 # Check whether --enable-static was given.
7071 if test "${enable_static+set}" = set; then
7072 enableval=$enable_static; p=${PACKAGE-default}
7073 case $enableval in
7074 yes) enable_static=yes ;;
7075 no) enable_static=no ;;
7076 *)
7077 enable_static=no
7078 # Look at the argument we got. We use all the common list separators.
7079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7080 for pkg in $enableval; do
7081 IFS="$lt_save_ifs"
7082 if test "X$pkg" = "X$p"; then
7083 enable_static=yes
7084 fi
7085 done
7086 IFS="$lt_save_ifs"
7087 ;;
7088 esac
7089 else
7090 enable_static=yes
7091 fi
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 # Check whether --with-pic was given.
7103 if test "${with_pic+set}" = set; then
7104 withval=$with_pic; pic_mode="$withval"
7105 else
7106 pic_mode=default
7107 fi
7108
7109
7110 test -z "$pic_mode" && pic_mode=default
7111
7112
7113
7114
7115
7116
7117
7118 # Check whether --enable-fast-install was given.
7119 if test "${enable_fast_install+set}" = set; then
7120 enableval=$enable_fast_install; p=${PACKAGE-default}
7121 case $enableval in
7122 yes) enable_fast_install=yes ;;
7123 no) enable_fast_install=no ;;
7124 *)
7125 enable_fast_install=no
7126 # Look at the argument we got. We use all the common list separators.
7127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7128 for pkg in $enableval; do
7129 IFS="$lt_save_ifs"
7130 if test "X$pkg" = "X$p"; then
7131 enable_fast_install=yes
7132 fi
7133 done
7134 IFS="$lt_save_ifs"
7135 ;;
7136 esac
7137 else
7138 enable_fast_install=yes
7139 fi
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 # This can be used to rebuild libtool when needed
7152 LIBTOOL_DEPS="$ltmain"
7153
7154 # Always use our own libtool.
7155 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181 test -z "$LN_S" && LN_S="ln -s"
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 if test -n "${ZSH_VERSION+set}" ; then
7197 setopt NO_GLOB_SUBST
7198 fi
7199
7200 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7201 $as_echo_n "checking for objdir... " >&6; }
7202 if test "${lt_cv_objdir+set}" = set; then
7203 $as_echo_n "(cached) " >&6
7204 else
7205 rm -f .libs 2>/dev/null
7206 mkdir .libs 2>/dev/null
7207 if test -d .libs; then
7208 lt_cv_objdir=.libs
7209 else
7210 # MS-DOS does not allow filenames that begin with a dot.
7211 lt_cv_objdir=_libs
7212 fi
7213 rmdir .libs 2>/dev/null
7214 fi
7215 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7216 $as_echo "$lt_cv_objdir" >&6; }
7217 objdir=$lt_cv_objdir
7218
7219
7220
7221
7222
7223 cat >>confdefs.h <<_ACEOF
7224 #define LT_OBJDIR "$lt_cv_objdir/"
7225 _ACEOF
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243 case $host_os in
7244 aix3*)
7245 # AIX sometimes has problems with the GCC collect2 program. For some
7246 # reason, if we set the COLLECT_NAMES environment variable, the problems
7247 # vanish in a puff of smoke.
7248 if test "X${COLLECT_NAMES+set}" != Xset; then
7249 COLLECT_NAMES=
7250 export COLLECT_NAMES
7251 fi
7252 ;;
7253 esac
7254
7255 # Sed substitution that helps us do robust quoting. It backslashifies
7256 # metacharacters that are still active within double-quoted strings.
7257 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7258
7259 # Same as above, but do not quote variable references.
7260 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7261
7262 # Sed substitution to delay expansion of an escaped shell variable in a
7263 # double_quote_subst'ed string.
7264 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7265
7266 # Sed substitution to delay expansion of an escaped single quote.
7267 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7268
7269 # Sed substitution to avoid accidental globbing in evaled expressions
7270 no_glob_subst='s/\*/\\\*/g'
7271
7272 # Global variables:
7273 ofile=libtool
7274 can_build_shared=yes
7275
7276 # All known linkers require a `.a' archive for static linking (except MSVC,
7277 # which needs '.lib').
7278 libext=a
7279
7280 with_gnu_ld="$lt_cv_prog_gnu_ld"
7281
7282 old_CC="$CC"
7283 old_CFLAGS="$CFLAGS"
7284
7285 # Set sane defaults for various variables
7286 test -z "$CC" && CC=cc
7287 test -z "$LTCC" && LTCC=$CC
7288 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7289 test -z "$LD" && LD=ld
7290 test -z "$ac_objext" && ac_objext=o
7291
7292 for cc_temp in $compiler""; do
7293 case $cc_temp in
7294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7296 \-*) ;;
7297 *) break;;
7298 esac
7299 done
7300 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7301
7302
7303 # Only perform the check for file, if the check method requires it
7304 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7305 case $deplibs_check_method in
7306 file_magic*)
7307 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7308 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7309 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7311 $as_echo_n "(cached) " >&6
7312 else
7313 case $MAGIC_CMD in
7314 [\\/*] | ?:[\\/]*)
7315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7316 ;;
7317 *)
7318 lt_save_MAGIC_CMD="$MAGIC_CMD"
7319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7321 for ac_dir in $ac_dummy; do
7322 IFS="$lt_save_ifs"
7323 test -z "$ac_dir" && ac_dir=.
7324 if test -f $ac_dir/${ac_tool_prefix}file; then
7325 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7326 if test -n "$file_magic_test_file"; then
7327 case $deplibs_check_method in
7328 "file_magic "*)
7329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7332 $EGREP "$file_magic_regex" > /dev/null; then
7333 :
7334 else
7335 cat <<_LT_EOF 1>&2
7336
7337 *** Warning: the command libtool uses to detect shared libraries,
7338 *** $file_magic_cmd, produces output that libtool cannot recognize.
7339 *** The result is that libtool may fail to recognize shared libraries
7340 *** as such. This will affect the creation of libtool libraries that
7341 *** depend on shared libraries, but programs linked with such libtool
7342 *** libraries will work regardless of this problem. Nevertheless, you
7343 *** may want to report the problem to your system manager and/or to
7344 *** bug-libtool@gnu.org
7345
7346 _LT_EOF
7347 fi ;;
7348 esac
7349 fi
7350 break
7351 fi
7352 done
7353 IFS="$lt_save_ifs"
7354 MAGIC_CMD="$lt_save_MAGIC_CMD"
7355 ;;
7356 esac
7357 fi
7358
7359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7360 if test -n "$MAGIC_CMD"; then
7361 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7362 $as_echo "$MAGIC_CMD" >&6; }
7363 else
7364 { $as_echo "$as_me:$LINENO: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368
7369
7370
7371
7372 if test -z "$lt_cv_path_MAGIC_CMD"; then
7373 if test -n "$ac_tool_prefix"; then
7374 { $as_echo "$as_me:$LINENO: checking for file" >&5
7375 $as_echo_n "checking for file... " >&6; }
7376 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7377 $as_echo_n "(cached) " >&6
7378 else
7379 case $MAGIC_CMD in
7380 [\\/*] | ?:[\\/]*)
7381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7382 ;;
7383 *)
7384 lt_save_MAGIC_CMD="$MAGIC_CMD"
7385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7386 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7387 for ac_dir in $ac_dummy; do
7388 IFS="$lt_save_ifs"
7389 test -z "$ac_dir" && ac_dir=.
7390 if test -f $ac_dir/file; then
7391 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7392 if test -n "$file_magic_test_file"; then
7393 case $deplibs_check_method in
7394 "file_magic "*)
7395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7398 $EGREP "$file_magic_regex" > /dev/null; then
7399 :
7400 else
7401 cat <<_LT_EOF 1>&2
7402
7403 *** Warning: the command libtool uses to detect shared libraries,
7404 *** $file_magic_cmd, produces output that libtool cannot recognize.
7405 *** The result is that libtool may fail to recognize shared libraries
7406 *** as such. This will affect the creation of libtool libraries that
7407 *** depend on shared libraries, but programs linked with such libtool
7408 *** libraries will work regardless of this problem. Nevertheless, you
7409 *** may want to report the problem to your system manager and/or to
7410 *** bug-libtool@gnu.org
7411
7412 _LT_EOF
7413 fi ;;
7414 esac
7415 fi
7416 break
7417 fi
7418 done
7419 IFS="$lt_save_ifs"
7420 MAGIC_CMD="$lt_save_MAGIC_CMD"
7421 ;;
7422 esac
7423 fi
7424
7425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7426 if test -n "$MAGIC_CMD"; then
7427 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7428 $as_echo "$MAGIC_CMD" >&6; }
7429 else
7430 { $as_echo "$as_me:$LINENO: result: no" >&5
7431 $as_echo "no" >&6; }
7432 fi
7433
7434
7435 else
7436 MAGIC_CMD=:
7437 fi
7438 fi
7439
7440 fi
7441 ;;
7442 esac
7443
7444 # Use C for the default configuration in the libtool script
7445
7446 lt_save_CC="$CC"
7447 ac_ext=c
7448 ac_cpp='$CPP $CPPFLAGS'
7449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7452
7453
7454 # Source file extension for C test sources.
7455 ac_ext=c
7456
7457 # Object file extension for compiled C test sources.
7458 objext=o
7459 objext=$objext
7460
7461 # Code to be used in simple compile tests
7462 lt_simple_compile_test_code="int some_variable = 0;"
7463
7464 # Code to be used in simple link tests
7465 lt_simple_link_test_code='int main(){return(0);}'
7466
7467
7468
7469
7470
7471
7472
7473 # If no C compiler was specified, use CC.
7474 LTCC=${LTCC-"$CC"}
7475
7476 # If no C compiler flags were specified, use CFLAGS.
7477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7478
7479 # Allow CC to be a program name with arguments.
7480 compiler=$CC
7481
7482 # Save the default compiler, since it gets overwritten when the other
7483 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7484 compiler_DEFAULT=$CC
7485
7486 # save warnings/boilerplate of simple test code
7487 ac_outfile=conftest.$ac_objext
7488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7490 _lt_compiler_boilerplate=`cat conftest.err`
7491 $RM conftest*
7492
7493 ac_outfile=conftest.$ac_objext
7494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7496 _lt_linker_boilerplate=`cat conftest.err`
7497 $RM -r conftest*
7498
7499
7500 if test -n "$compiler"; then
7501
7502 lt_prog_compiler_no_builtin_flag=
7503
7504 if test "$GCC" = yes; then
7505 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7506
7507 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7508 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7509 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7510 $as_echo_n "(cached) " >&6
7511 else
7512 lt_cv_prog_compiler_rtti_exceptions=no
7513 ac_outfile=conftest.$ac_objext
7514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7515 lt_compiler_flag="-fno-rtti -fno-exceptions"
7516 # Insert the option either (1) after the last *FLAGS variable, or
7517 # (2) before a word containing "conftest.", or (3) at the end.
7518 # Note that $ac_compile itself does not contain backslashes and begins
7519 # with a dollar sign (not a hyphen), so the echo should work correctly.
7520 # The option is referenced via a variable to avoid confusing sed.
7521 lt_compile=`echo "$ac_compile" | $SED \
7522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7524 -e 's:$: $lt_compiler_flag:'`
7525 (eval echo "\"\$as_me:7525: $lt_compile\"" >&5)
7526 (eval "$lt_compile" 2>conftest.err)
7527 ac_status=$?
7528 cat conftest.err >&5
7529 echo "$as_me:7529: \$? = $ac_status" >&5
7530 if (exit $ac_status) && test -s "$ac_outfile"; then
7531 # The compiler can only warn and ignore the option if not recognized
7532 # So say no if there are warnings other than the usual output.
7533 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7536 lt_cv_prog_compiler_rtti_exceptions=yes
7537 fi
7538 fi
7539 $RM conftest*
7540
7541 fi
7542 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7543 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7544
7545 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7546 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7547 else
7548 :
7549 fi
7550
7551 fi
7552
7553
7554
7555
7556
7557
7558 lt_prog_compiler_wl=
7559 lt_prog_compiler_pic=
7560 lt_prog_compiler_static=
7561
7562 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7563 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7564
7565 if test "$GCC" = yes; then
7566 lt_prog_compiler_wl='-Wl,'
7567 lt_prog_compiler_static='-static'
7568
7569 case $host_os in
7570 aix*)
7571 # All AIX code is PIC.
7572 if test "$host_cpu" = ia64; then
7573 # AIX 5 now supports IA64 processor
7574 lt_prog_compiler_static='-Bstatic'
7575 fi
7576 ;;
7577
7578 amigaos*)
7579 case $host_cpu in
7580 powerpc)
7581 # see comment about AmigaOS4 .so support
7582 lt_prog_compiler_pic='-fPIC'
7583 ;;
7584 m68k)
7585 # FIXME: we need at least 68020 code to build shared libraries, but
7586 # adding the `-m68020' flag to GCC prevents building anything better,
7587 # like `-m68040'.
7588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7589 ;;
7590 esac
7591 ;;
7592
7593 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7594 # PIC is the default for these OSes.
7595 ;;
7596
7597 mingw* | cygwin* | pw32* | os2* | cegcc*)
7598 # This hack is so that the source file can tell whether it is being
7599 # built for inclusion in a dll (and should export symbols for example).
7600 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7601 # (--disable-auto-import) libraries
7602 lt_prog_compiler_pic='-DDLL_EXPORT'
7603 ;;
7604
7605 darwin* | rhapsody*)
7606 # PIC is the default on this platform
7607 # Common symbols not allowed in MH_DYLIB files
7608 lt_prog_compiler_pic='-fno-common'
7609 ;;
7610
7611 hpux*)
7612 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7613 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7614 # sets the default TLS model and affects inlining.
7615 case $host_cpu in
7616 hppa*64*)
7617 # +Z the default
7618 ;;
7619 *)
7620 lt_prog_compiler_pic='-fPIC'
7621 ;;
7622 esac
7623 ;;
7624
7625 interix[3-9]*)
7626 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7627 # Instead, we relocate shared libraries at runtime.
7628 ;;
7629
7630 msdosdjgpp*)
7631 # Just because we use GCC doesn't mean we suddenly get shared libraries
7632 # on systems that don't support them.
7633 lt_prog_compiler_can_build_shared=no
7634 enable_shared=no
7635 ;;
7636
7637 *nto* | *qnx*)
7638 # QNX uses GNU C++, but need to define -shared option too, otherwise
7639 # it will coredump.
7640 lt_prog_compiler_pic='-fPIC -shared'
7641 ;;
7642
7643 sysv4*MP*)
7644 if test -d /usr/nec; then
7645 lt_prog_compiler_pic=-Kconform_pic
7646 fi
7647 ;;
7648
7649 *)
7650 lt_prog_compiler_pic='-fPIC'
7651 ;;
7652 esac
7653 else
7654 # PORTME Check for flag to pass linker flags through the system compiler.
7655 case $host_os in
7656 aix*)
7657 lt_prog_compiler_wl='-Wl,'
7658 if test "$host_cpu" = ia64; then
7659 # AIX 5 now supports IA64 processor
7660 lt_prog_compiler_static='-Bstatic'
7661 else
7662 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7663 fi
7664 ;;
7665
7666 mingw* | cygwin* | pw32* | os2* | cegcc*)
7667 # This hack is so that the source file can tell whether it is being
7668 # built for inclusion in a dll (and should export symbols for example).
7669 lt_prog_compiler_pic='-DDLL_EXPORT'
7670 ;;
7671
7672 hpux9* | hpux10* | hpux11*)
7673 lt_prog_compiler_wl='-Wl,'
7674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7675 # not for PA HP-UX.
7676 case $host_cpu in
7677 hppa*64*|ia64*)
7678 # +Z the default
7679 ;;
7680 *)
7681 lt_prog_compiler_pic='+Z'
7682 ;;
7683 esac
7684 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7685 lt_prog_compiler_static='${wl}-a ${wl}archive'
7686 ;;
7687
7688 irix5* | irix6* | nonstopux*)
7689 lt_prog_compiler_wl='-Wl,'
7690 # PIC (with -KPIC) is the default.
7691 lt_prog_compiler_static='-non_shared'
7692 ;;
7693
7694 linux* | k*bsd*-gnu)
7695 case $cc_basename in
7696 # old Intel for x86_64 which still supported -KPIC.
7697 ecc*)
7698 lt_prog_compiler_wl='-Wl,'
7699 lt_prog_compiler_pic='-KPIC'
7700 lt_prog_compiler_static='-static'
7701 ;;
7702 # icc used to be incompatible with GCC.
7703 # ICC 10 doesn't accept -KPIC any more.
7704 icc* | ifort*)
7705 lt_prog_compiler_wl='-Wl,'
7706 lt_prog_compiler_pic='-fPIC'
7707 lt_prog_compiler_static='-static'
7708 ;;
7709 # Lahey Fortran 8.1.
7710 lf95*)
7711 lt_prog_compiler_wl='-Wl,'
7712 lt_prog_compiler_pic='--shared'
7713 lt_prog_compiler_static='--static'
7714 ;;
7715 pgcc* | pgf77* | pgf90* | pgf95*)
7716 # Portland Group compilers (*not* the Pentium gcc compiler,
7717 # which looks to be a dead project)
7718 lt_prog_compiler_wl='-Wl,'
7719 lt_prog_compiler_pic='-fpic'
7720 lt_prog_compiler_static='-Bstatic'
7721 ;;
7722 ccc*)
7723 lt_prog_compiler_wl='-Wl,'
7724 # All Alpha code is PIC.
7725 lt_prog_compiler_static='-non_shared'
7726 ;;
7727 xl*)
7728 # IBM XL C 8.0/Fortran 10.1 on PPC
7729 lt_prog_compiler_wl='-Wl,'
7730 lt_prog_compiler_pic='-qpic'
7731 lt_prog_compiler_static='-qstaticlink'
7732 ;;
7733 *)
7734 case `$CC -V 2>&1 | sed 5q` in
7735 *Sun\ C*)
7736 # Sun C 5.9
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-Bstatic'
7739 lt_prog_compiler_wl='-Wl,'
7740 ;;
7741 *Sun\ F*)
7742 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7743 lt_prog_compiler_pic='-KPIC'
7744 lt_prog_compiler_static='-Bstatic'
7745 lt_prog_compiler_wl=''
7746 ;;
7747 esac
7748 ;;
7749 esac
7750 ;;
7751
7752 newsos6)
7753 lt_prog_compiler_pic='-KPIC'
7754 lt_prog_compiler_static='-Bstatic'
7755 ;;
7756
7757 *nto* | *qnx*)
7758 # QNX uses GNU C++, but need to define -shared option too, otherwise
7759 # it will coredump.
7760 lt_prog_compiler_pic='-fPIC -shared'
7761 ;;
7762
7763 osf3* | osf4* | osf5*)
7764 lt_prog_compiler_wl='-Wl,'
7765 # All OSF/1 code is PIC.
7766 lt_prog_compiler_static='-non_shared'
7767 ;;
7768
7769 rdos*)
7770 lt_prog_compiler_static='-non_shared'
7771 ;;
7772
7773 solaris*)
7774 lt_prog_compiler_pic='-KPIC'
7775 lt_prog_compiler_static='-Bstatic'
7776 case $cc_basename in
7777 f77* | f90* | f95*)
7778 lt_prog_compiler_wl='-Qoption ld ';;
7779 *)
7780 lt_prog_compiler_wl='-Wl,';;
7781 esac
7782 ;;
7783
7784 sunos4*)
7785 lt_prog_compiler_wl='-Qoption ld '
7786 lt_prog_compiler_pic='-PIC'
7787 lt_prog_compiler_static='-Bstatic'
7788 ;;
7789
7790 sysv4 | sysv4.2uw2* | sysv4.3*)
7791 lt_prog_compiler_wl='-Wl,'
7792 lt_prog_compiler_pic='-KPIC'
7793 lt_prog_compiler_static='-Bstatic'
7794 ;;
7795
7796 sysv4*MP*)
7797 if test -d /usr/nec ;then
7798 lt_prog_compiler_pic='-Kconform_pic'
7799 lt_prog_compiler_static='-Bstatic'
7800 fi
7801 ;;
7802
7803 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='-KPIC'
7806 lt_prog_compiler_static='-Bstatic'
7807 ;;
7808
7809 unicos*)
7810 lt_prog_compiler_wl='-Wl,'
7811 lt_prog_compiler_can_build_shared=no
7812 ;;
7813
7814 uts4*)
7815 lt_prog_compiler_pic='-pic'
7816 lt_prog_compiler_static='-Bstatic'
7817 ;;
7818
7819 *)
7820 lt_prog_compiler_can_build_shared=no
7821 ;;
7822 esac
7823 fi
7824
7825 case $host_os in
7826 # For platforms which do not support PIC, -DPIC is meaningless:
7827 *djgpp*)
7828 lt_prog_compiler_pic=
7829 ;;
7830 *)
7831 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7832 ;;
7833 esac
7834 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7835 $as_echo "$lt_prog_compiler_pic" >&6; }
7836
7837
7838
7839
7840
7841
7842 #
7843 # Check to make sure the PIC flag actually works.
7844 #
7845 if test -n "$lt_prog_compiler_pic"; then
7846 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7847 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7848 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7849 $as_echo_n "(cached) " >&6
7850 else
7851 lt_cv_prog_compiler_pic_works=no
7852 ac_outfile=conftest.$ac_objext
7853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7855 # Insert the option either (1) after the last *FLAGS variable, or
7856 # (2) before a word containing "conftest.", or (3) at the end.
7857 # Note that $ac_compile itself does not contain backslashes and begins
7858 # with a dollar sign (not a hyphen), so the echo should work correctly.
7859 # The option is referenced via a variable to avoid confusing sed.
7860 lt_compile=`echo "$ac_compile" | $SED \
7861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863 -e 's:$: $lt_compiler_flag:'`
7864 (eval echo "\"\$as_me:7864: $lt_compile\"" >&5)
7865 (eval "$lt_compile" 2>conftest.err)
7866 ac_status=$?
7867 cat conftest.err >&5
7868 echo "$as_me:7868: \$? = $ac_status" >&5
7869 if (exit $ac_status) && test -s "$ac_outfile"; then
7870 # The compiler can only warn and ignore the option if not recognized
7871 # So say no if there are warnings other than the usual output.
7872 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875 lt_cv_prog_compiler_pic_works=yes
7876 fi
7877 fi
7878 $RM conftest*
7879
7880 fi
7881 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7882 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7883
7884 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7885 case $lt_prog_compiler_pic in
7886 "" | " "*) ;;
7887 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7888 esac
7889 else
7890 lt_prog_compiler_pic=
7891 lt_prog_compiler_can_build_shared=no
7892 fi
7893
7894 fi
7895
7896
7897
7898
7899
7900
7901 #
7902 # Check to make sure the static flag actually works.
7903 #
7904 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7905 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7906 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7907 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7908 $as_echo_n "(cached) " >&6
7909 else
7910 lt_cv_prog_compiler_static_works=no
7911 save_LDFLAGS="$LDFLAGS"
7912 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7913 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7914 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7915 # The linker can only warn and ignore the option if not recognized
7916 # So say no if there are warnings
7917 if test -s conftest.err; then
7918 # Append any errors to the config.log.
7919 cat conftest.err 1>&5
7920 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7922 if diff conftest.exp conftest.er2 >/dev/null; then
7923 lt_cv_prog_compiler_static_works=yes
7924 fi
7925 else
7926 lt_cv_prog_compiler_static_works=yes
7927 fi
7928 fi
7929 $RM -r conftest*
7930 LDFLAGS="$save_LDFLAGS"
7931
7932 fi
7933 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7934 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7935
7936 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7937 :
7938 else
7939 lt_prog_compiler_static=
7940 fi
7941
7942
7943
7944
7945
7946
7947
7948 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7949 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7950 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7951 $as_echo_n "(cached) " >&6
7952 else
7953 lt_cv_prog_compiler_c_o=no
7954 $RM -r conftest 2>/dev/null
7955 mkdir conftest
7956 cd conftest
7957 mkdir out
7958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7959
7960 lt_compiler_flag="-o out/conftest2.$ac_objext"
7961 # Insert the option either (1) after the last *FLAGS variable, or
7962 # (2) before a word containing "conftest.", or (3) at the end.
7963 # Note that $ac_compile itself does not contain backslashes and begins
7964 # with a dollar sign (not a hyphen), so the echo should work correctly.
7965 lt_compile=`echo "$ac_compile" | $SED \
7966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7968 -e 's:$: $lt_compiler_flag:'`
7969 (eval echo "\"\$as_me:7969: $lt_compile\"" >&5)
7970 (eval "$lt_compile" 2>out/conftest.err)
7971 ac_status=$?
7972 cat out/conftest.err >&5
7973 echo "$as_me:7973: \$? = $ac_status" >&5
7974 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7975 then
7976 # The compiler can only warn and ignore the option if not recognized
7977 # So say no if there are warnings
7978 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7979 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7980 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7981 lt_cv_prog_compiler_c_o=yes
7982 fi
7983 fi
7984 chmod u+w . 2>&5
7985 $RM conftest*
7986 # SGI C++ compiler will create directory out/ii_files/ for
7987 # template instantiation
7988 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7989 $RM out/* && rmdir out
7990 cd ..
7991 $RM -r conftest
7992 $RM conftest*
7993
7994 fi
7995 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7996 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7997
7998
7999
8000
8001
8002
8003 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8004 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8005 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8006 $as_echo_n "(cached) " >&6
8007 else
8008 lt_cv_prog_compiler_c_o=no
8009 $RM -r conftest 2>/dev/null
8010 mkdir conftest
8011 cd conftest
8012 mkdir out
8013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8014
8015 lt_compiler_flag="-o out/conftest2.$ac_objext"
8016 # Insert the option either (1) after the last *FLAGS variable, or
8017 # (2) before a word containing "conftest.", or (3) at the end.
8018 # Note that $ac_compile itself does not contain backslashes and begins
8019 # with a dollar sign (not a hyphen), so the echo should work correctly.
8020 lt_compile=`echo "$ac_compile" | $SED \
8021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8023 -e 's:$: $lt_compiler_flag:'`
8024 (eval echo "\"\$as_me:8024: $lt_compile\"" >&5)
8025 (eval "$lt_compile" 2>out/conftest.err)
8026 ac_status=$?
8027 cat out/conftest.err >&5
8028 echo "$as_me:8028: \$? = $ac_status" >&5
8029 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8030 then
8031 # The compiler can only warn and ignore the option if not recognized
8032 # So say no if there are warnings
8033 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8036 lt_cv_prog_compiler_c_o=yes
8037 fi
8038 fi
8039 chmod u+w . 2>&5
8040 $RM conftest*
8041 # SGI C++ compiler will create directory out/ii_files/ for
8042 # template instantiation
8043 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8044 $RM out/* && rmdir out
8045 cd ..
8046 $RM -r conftest
8047 $RM conftest*
8048
8049 fi
8050 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8051 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8052
8053
8054
8055
8056 hard_links="nottested"
8057 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8058 # do not overwrite the value of need_locks provided by the user
8059 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8060 $as_echo_n "checking if we can lock with hard links... " >&6; }
8061 hard_links=yes
8062 $RM conftest*
8063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8064 touch conftest.a
8065 ln conftest.a conftest.b 2>&5 || hard_links=no
8066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8067 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8068 $as_echo "$hard_links" >&6; }
8069 if test "$hard_links" = no; then
8070 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8071 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8072 need_locks=warn
8073 fi
8074 else
8075 need_locks=no
8076 fi
8077
8078
8079
8080
8081
8082
8083 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8084 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8085
8086 runpath_var=
8087 allow_undefined_flag=
8088 always_export_symbols=no
8089 archive_cmds=
8090 archive_expsym_cmds=
8091 compiler_needs_object=no
8092 enable_shared_with_static_runtimes=no
8093 export_dynamic_flag_spec=
8094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8095 hardcode_automatic=no
8096 hardcode_direct=no
8097 hardcode_direct_absolute=no
8098 hardcode_libdir_flag_spec=
8099 hardcode_libdir_flag_spec_ld=
8100 hardcode_libdir_separator=
8101 hardcode_minus_L=no
8102 hardcode_shlibpath_var=unsupported
8103 inherit_rpath=no
8104 link_all_deplibs=unknown
8105 module_cmds=
8106 module_expsym_cmds=
8107 old_archive_from_new_cmds=
8108 old_archive_from_expsyms_cmds=
8109 thread_safe_flag_spec=
8110 whole_archive_flag_spec=
8111 # include_expsyms should be a list of space-separated symbols to be *always*
8112 # included in the symbol list
8113 include_expsyms=
8114 # exclude_expsyms can be an extended regexp of symbols to exclude
8115 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8116 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8117 # as well as any symbol that contains `d'.
8118 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8119 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8120 # platforms (ab)use it in PIC code, but their linkers get confused if
8121 # the symbol is explicitly referenced. Since portable code cannot
8122 # rely on this symbol name, it's probably fine to never include it in
8123 # preloaded symbol tables.
8124 # Exclude shared library initialization/finalization symbols.
8125 extract_expsyms_cmds=
8126
8127 case $host_os in
8128 cygwin* | mingw* | pw32* | cegcc*)
8129 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8130 # When not using gcc, we currently assume that we are using
8131 # Microsoft Visual C++.
8132 if test "$GCC" != yes; then
8133 with_gnu_ld=no
8134 fi
8135 ;;
8136 interix*)
8137 # we just hope/assume this is gcc and not c89 (= MSVC++)
8138 with_gnu_ld=yes
8139 ;;
8140 openbsd*)
8141 with_gnu_ld=no
8142 ;;
8143 esac
8144
8145 ld_shlibs=yes
8146 if test "$with_gnu_ld" = yes; then
8147 # If archive_cmds runs LD, not CC, wlarc should be empty
8148 wlarc='${wl}'
8149
8150 # Set some defaults for GNU ld with shared library support. These
8151 # are reset later if shared libraries are not supported. Putting them
8152 # here allows them to be overridden if necessary.
8153 runpath_var=LD_RUN_PATH
8154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8155 export_dynamic_flag_spec='${wl}--export-dynamic'
8156 # ancient GNU ld didn't support --whole-archive et. al.
8157 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8158 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8159 else
8160 whole_archive_flag_spec=
8161 fi
8162 supports_anon_versioning=no
8163 case `$LD -v 2>&1` in
8164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8167 *\ 2.11.*) ;; # other 2.11 versions
8168 *) supports_anon_versioning=yes ;;
8169 esac
8170
8171 # See if GNU ld supports shared libraries.
8172 case $host_os in
8173 aix[3-9]*)
8174 # On AIX/PPC, the GNU linker is very broken
8175 if test "$host_cpu" != ia64; then
8176 ld_shlibs=no
8177 cat <<_LT_EOF 1>&2
8178
8179 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8180 *** to be unable to reliably create shared libraries on AIX.
8181 *** Therefore, libtool is disabling shared libraries support. If you
8182 *** really care for shared libraries, you may want to modify your PATH
8183 *** so that a non-GNU linker is found, and then restart.
8184
8185 _LT_EOF
8186 fi
8187 ;;
8188
8189 amigaos*)
8190 case $host_cpu in
8191 powerpc)
8192 # see comment about AmigaOS4 .so support
8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194 archive_expsym_cmds=''
8195 ;;
8196 m68k)
8197 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)'
8198 hardcode_libdir_flag_spec='-L$libdir'
8199 hardcode_minus_L=yes
8200 ;;
8201 esac
8202 ;;
8203
8204 beos*)
8205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8206 allow_undefined_flag=unsupported
8207 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8208 # support --undefined. This deserves some investigation. FIXME
8209 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210 else
8211 ld_shlibs=no
8212 fi
8213 ;;
8214
8215 cygwin* | mingw* | pw32* | cegcc*)
8216 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8217 # as there is no search path for DLLs.
8218 hardcode_libdir_flag_spec='-L$libdir'
8219 allow_undefined_flag=unsupported
8220 always_export_symbols=no
8221 enable_shared_with_static_runtimes=yes
8222 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8223
8224 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8226 # If the export-symbols file already is a .def file (1st line
8227 # is EXPORTS), use it as is; otherwise, prepend...
8228 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8229 cp $export_symbols $output_objdir/$soname.def;
8230 else
8231 echo EXPORTS > $output_objdir/$soname.def;
8232 cat $export_symbols >> $output_objdir/$soname.def;
8233 fi~
8234 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8235 else
8236 ld_shlibs=no
8237 fi
8238 ;;
8239
8240 interix[3-9]*)
8241 hardcode_direct=no
8242 hardcode_shlibpath_var=no
8243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8244 export_dynamic_flag_spec='${wl}-E'
8245 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8246 # Instead, shared libraries are loaded at an image base (0x10000000 by
8247 # default) and relocated if they conflict, which is a slow very memory
8248 # consuming and fragmenting process. To avoid this, we pick a random,
8249 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8250 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8251 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8252 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'
8253 ;;
8254
8255 gnu* | linux* | tpf* | k*bsd*-gnu)
8256 tmp_diet=no
8257 if test "$host_os" = linux-dietlibc; then
8258 case $cc_basename in
8259 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8260 esac
8261 fi
8262 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8263 && test "$tmp_diet" = no
8264 then
8265 tmp_addflag=
8266 tmp_sharedflag='-shared'
8267 case $cc_basename,$host_cpu in
8268 pgcc*) # Portland Group C compiler
8269 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8270 tmp_addflag=' $pic_flag'
8271 ;;
8272 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8273 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8274 tmp_addflag=' $pic_flag -Mnomain' ;;
8275 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8276 tmp_addflag=' -i_dynamic' ;;
8277 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8278 tmp_addflag=' -i_dynamic -nofor_main' ;;
8279 ifc* | ifort*) # Intel Fortran compiler
8280 tmp_addflag=' -nofor_main' ;;
8281 lf95*) # Lahey Fortran 8.1
8282 whole_archive_flag_spec=
8283 tmp_sharedflag='--shared' ;;
8284 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8285 tmp_sharedflag='-qmkshrobj'
8286 tmp_addflag= ;;
8287 esac
8288 case `$CC -V 2>&1 | sed 5q` in
8289 *Sun\ C*) # Sun C 5.9
8290 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8291 compiler_needs_object=yes
8292 tmp_sharedflag='-G' ;;
8293 *Sun\ F*) # Sun Fortran 8.3
8294 tmp_sharedflag='-G' ;;
8295 esac
8296 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8297
8298 if test "x$supports_anon_versioning" = xyes; then
8299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8301 echo "local: *; };" >> $output_objdir/$libname.ver~
8302 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8303 fi
8304
8305 case $cc_basename in
8306 xlf*)
8307 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8308 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8309 hardcode_libdir_flag_spec=
8310 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8311 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8312 if test "x$supports_anon_versioning" = xyes; then
8313 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8314 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8315 echo "local: *; };" >> $output_objdir/$libname.ver~
8316 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8317 fi
8318 ;;
8319 esac
8320 else
8321 ld_shlibs=no
8322 fi
8323 ;;
8324
8325 netbsd*)
8326 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8327 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8328 wlarc=
8329 else
8330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8332 fi
8333 ;;
8334
8335 solaris*)
8336 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8337 ld_shlibs=no
8338 cat <<_LT_EOF 1>&2
8339
8340 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8341 *** create shared libraries on Solaris systems. Therefore, libtool
8342 *** is disabling shared libraries support. We urge you to upgrade GNU
8343 *** binutils to release 2.9.1 or newer. Another option is to modify
8344 *** your PATH or compiler configuration so that the native linker is
8345 *** used, and then restart.
8346
8347 _LT_EOF
8348 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8351 else
8352 ld_shlibs=no
8353 fi
8354 ;;
8355
8356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8357 case `$LD -v 2>&1` in
8358 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8359 ld_shlibs=no
8360 cat <<_LT_EOF 1>&2
8361
8362 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8363 *** reliably create shared libraries on SCO systems. Therefore, libtool
8364 *** is disabling shared libraries support. We urge you to upgrade GNU
8365 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8366 *** your PATH or compiler configuration so that the native linker is
8367 *** used, and then restart.
8368
8369 _LT_EOF
8370 ;;
8371 *)
8372 # For security reasons, it is highly recommended that you always
8373 # use absolute paths for naming shared libraries, and exclude the
8374 # DT_RUNPATH tag from executables and libraries. But doing so
8375 # requires that you compile everything twice, which is a pain.
8376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8380 else
8381 ld_shlibs=no
8382 fi
8383 ;;
8384 esac
8385 ;;
8386
8387 sunos4*)
8388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8389 wlarc=
8390 hardcode_direct=yes
8391 hardcode_shlibpath_var=no
8392 ;;
8393
8394 *)
8395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8398 else
8399 ld_shlibs=no
8400 fi
8401 ;;
8402 esac
8403
8404 if test "$ld_shlibs" = no; then
8405 runpath_var=
8406 hardcode_libdir_flag_spec=
8407 export_dynamic_flag_spec=
8408 whole_archive_flag_spec=
8409 fi
8410 else
8411 # PORTME fill in a description of your system's linker (not GNU ld)
8412 case $host_os in
8413 aix3*)
8414 allow_undefined_flag=unsupported
8415 always_export_symbols=yes
8416 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'
8417 # Note: this linker hardcodes the directories in LIBPATH if there
8418 # are no directories specified by -L.
8419 hardcode_minus_L=yes
8420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8421 # Neither direct hardcoding nor static linking is supported with a
8422 # broken collect2.
8423 hardcode_direct=unsupported
8424 fi
8425 ;;
8426
8427 aix[4-9]*)
8428 if test "$host_cpu" = ia64; then
8429 # On IA64, the linker does run time linking by default, so we don't
8430 # have to do anything special.
8431 aix_use_runtimelinking=no
8432 exp_sym_flag='-Bexport'
8433 no_entry_flag=""
8434 else
8435 # If we're using GNU nm, then we don't want the "-C" option.
8436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8437 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8438 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8439 else
8440 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'
8441 fi
8442 aix_use_runtimelinking=no
8443
8444 # Test if we are trying to use run time linking or normal
8445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8446 # need to do runtime linking.
8447 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8448 for ld_flag in $LDFLAGS; do
8449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8450 aix_use_runtimelinking=yes
8451 break
8452 fi
8453 done
8454 ;;
8455 esac
8456
8457 exp_sym_flag='-bexport'
8458 no_entry_flag='-bnoentry'
8459 fi
8460
8461 # When large executables or shared objects are built, AIX ld can
8462 # have problems creating the table of contents. If linking a library
8463 # or program results in "error TOC overflow" add -mminimal-toc to
8464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8466
8467 archive_cmds=''
8468 hardcode_direct=yes
8469 hardcode_direct_absolute=yes
8470 hardcode_libdir_separator=':'
8471 link_all_deplibs=yes
8472 file_list_spec='${wl}-f,'
8473
8474 if test "$GCC" = yes; then
8475 case $host_os in aix4.[012]|aix4.[012].*)
8476 # We only want to do this on AIX 4.2 and lower, the check
8477 # below for broken collect2 doesn't work under 4.3+
8478 collect2name=`${CC} -print-prog-name=collect2`
8479 if test -f "$collect2name" &&
8480 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8481 then
8482 # We have reworked collect2
8483 :
8484 else
8485 # We have old collect2
8486 hardcode_direct=unsupported
8487 # It fails to find uninstalled libraries when the uninstalled
8488 # path is not listed in the libpath. Setting hardcode_minus_L
8489 # to unsupported forces relinking
8490 hardcode_minus_L=yes
8491 hardcode_libdir_flag_spec='-L$libdir'
8492 hardcode_libdir_separator=
8493 fi
8494 ;;
8495 esac
8496 shared_flag='-shared'
8497 if test "$aix_use_runtimelinking" = yes; then
8498 shared_flag="$shared_flag "'${wl}-G'
8499 fi
8500 else
8501 # not using gcc
8502 if test "$host_cpu" = ia64; then
8503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8504 # chokes on -Wl,-G. The following line is correct:
8505 shared_flag='-G'
8506 else
8507 if test "$aix_use_runtimelinking" = yes; then
8508 shared_flag='${wl}-G'
8509 else
8510 shared_flag='${wl}-bM:SRE'
8511 fi
8512 fi
8513 fi
8514
8515 export_dynamic_flag_spec='${wl}-bexpall'
8516 # It seems that -bexpall does not export symbols beginning with
8517 # underscore (_), so it is better to generate a list of symbols to export.
8518 always_export_symbols=yes
8519 if test "$aix_use_runtimelinking" = yes; then
8520 # Warning - without using the other runtime loading flags (-brtl),
8521 # -berok will link without error, but may produce a broken library.
8522 allow_undefined_flag='-berok'
8523 # Determine the default libpath from the value encoded in an
8524 # empty executable.
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h. */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531
8532 int
8533 main ()
8534 {
8535
8536 ;
8537 return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (ac_try="$ac_link"
8542 case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545 esac
8546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8547 $as_echo "$ac_try_echo") >&5
8548 (eval "$ac_link") 2>conftest.er1
8549 ac_status=$?
8550 grep -v '^ *+' conftest.er1 >conftest.err
8551 rm -f conftest.er1
8552 cat conftest.err >&5
8553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } && {
8555 test -z "$ac_c_werror_flag" ||
8556 test ! -s conftest.err
8557 } && test -s conftest$ac_exeext && {
8558 test "$cross_compiling" = yes ||
8559 $as_test_x conftest$ac_exeext
8560 }; then
8561
8562 lt_aix_libpath_sed='
8563 /Import File Strings/,/^$/ {
8564 /^0/ {
8565 s/^0 *\(.*\)$/\1/
8566 p
8567 }
8568 }'
8569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8570 # Check for a 64-bit object if we didn't find anything.
8571 if test -z "$aix_libpath"; then
8572 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8573 fi
8574 else
8575 $as_echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8577
8578
8579 fi
8580
8581 rm -rf conftest.dSYM
8582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8583 conftest$ac_exeext conftest.$ac_ext
8584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8585
8586 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8587 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8588 else
8589 if test "$host_cpu" = ia64; then
8590 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8591 allow_undefined_flag="-z nodefs"
8592 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"
8593 else
8594 # Determine the default libpath from the value encoded in an
8595 # empty executable.
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602
8603 int
8604 main ()
8605 {
8606
8607 ;
8608 return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (ac_try="$ac_link"
8613 case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616 esac
8617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8618 $as_echo "$ac_try_echo") >&5
8619 (eval "$ac_link") 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest$ac_exeext && {
8629 test "$cross_compiling" = yes ||
8630 $as_test_x conftest$ac_exeext
8631 }; then
8632
8633 lt_aix_libpath_sed='
8634 /Import File Strings/,/^$/ {
8635 /^0/ {
8636 s/^0 *\(.*\)$/\1/
8637 p
8638 }
8639 }'
8640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8641 # Check for a 64-bit object if we didn't find anything.
8642 if test -z "$aix_libpath"; then
8643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8644 fi
8645 else
8646 $as_echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649
8650 fi
8651
8652 rm -rf conftest.dSYM
8653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8654 conftest$ac_exeext conftest.$ac_ext
8655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8656
8657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8658 # Warning - without using the other run time loading flags,
8659 # -berok will link without error, but may produce a broken library.
8660 no_undefined_flag=' ${wl}-bernotok'
8661 allow_undefined_flag=' ${wl}-berok'
8662 # Exported symbols can be pulled into shared objects from archives
8663 whole_archive_flag_spec='$convenience'
8664 archive_cmds_need_lc=yes
8665 # This is similar to how AIX traditionally builds its shared libraries.
8666 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'
8667 fi
8668 fi
8669 ;;
8670
8671 amigaos*)
8672 case $host_cpu in
8673 powerpc)
8674 # see comment about AmigaOS4 .so support
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 archive_expsym_cmds=''
8677 ;;
8678 m68k)
8679 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)'
8680 hardcode_libdir_flag_spec='-L$libdir'
8681 hardcode_minus_L=yes
8682 ;;
8683 esac
8684 ;;
8685
8686 bsdi[45]*)
8687 export_dynamic_flag_spec=-rdynamic
8688 ;;
8689
8690 cygwin* | mingw* | pw32* | cegcc*)
8691 # When not using gcc, we currently assume that we are using
8692 # Microsoft Visual C++.
8693 # hardcode_libdir_flag_spec is actually meaningless, as there is
8694 # no search path for DLLs.
8695 hardcode_libdir_flag_spec=' '
8696 allow_undefined_flag=unsupported
8697 # Tell ltmain to make .lib files, not .a files.
8698 libext=lib
8699 # Tell ltmain to make .dll files, not .so files.
8700 shrext_cmds=".dll"
8701 # FIXME: Setting linknames here is a bad hack.
8702 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8703 # The linker will automatically build a .lib file if we build a DLL.
8704 old_archive_from_new_cmds='true'
8705 # FIXME: Should let the user specify the lib program.
8706 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8707 fix_srcfile_path='`cygpath -w "$srcfile"`'
8708 enable_shared_with_static_runtimes=yes
8709 ;;
8710
8711 darwin* | rhapsody*)
8712
8713
8714 archive_cmds_need_lc=no
8715 hardcode_direct=no
8716 hardcode_automatic=yes
8717 hardcode_shlibpath_var=unsupported
8718 whole_archive_flag_spec=''
8719 link_all_deplibs=yes
8720 allow_undefined_flag="$_lt_dar_allow_undefined"
8721 case $cc_basename in
8722 ifort*) _lt_dar_can_shared=yes ;;
8723 *) _lt_dar_can_shared=$GCC ;;
8724 esac
8725 if test "$_lt_dar_can_shared" = "yes"; then
8726 output_verbose_link_cmd=echo
8727 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8728 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8729 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}"
8730 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}"
8731
8732 else
8733 ld_shlibs=no
8734 fi
8735
8736 ;;
8737
8738 dgux*)
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_libdir_flag_spec='-L$libdir'
8741 hardcode_shlibpath_var=no
8742 ;;
8743
8744 freebsd1*)
8745 ld_shlibs=no
8746 ;;
8747
8748 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8749 # support. Future versions do this automatically, but an explicit c++rt0.o
8750 # does not break anything, and helps significantly (at the cost of a little
8751 # extra space).
8752 freebsd2.2*)
8753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8754 hardcode_libdir_flag_spec='-R$libdir'
8755 hardcode_direct=yes
8756 hardcode_shlibpath_var=no
8757 ;;
8758
8759 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8760 freebsd2*)
8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_direct=yes
8763 hardcode_minus_L=yes
8764 hardcode_shlibpath_var=no
8765 ;;
8766
8767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8768 freebsd* | dragonfly*)
8769 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8770 hardcode_libdir_flag_spec='-R$libdir'
8771 hardcode_direct=yes
8772 hardcode_shlibpath_var=no
8773 ;;
8774
8775 hpux9*)
8776 if test "$GCC" = yes; then
8777 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'
8778 else
8779 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'
8780 fi
8781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782 hardcode_libdir_separator=:
8783 hardcode_direct=yes
8784
8785 # hardcode_minus_L: Not really in the search PATH,
8786 # but as the default location of the library.
8787 hardcode_minus_L=yes
8788 export_dynamic_flag_spec='${wl}-E'
8789 ;;
8790
8791 hpux10*)
8792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8794 else
8795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8796 fi
8797 if test "$with_gnu_ld" = no; then
8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799 hardcode_libdir_flag_spec_ld='+b $libdir'
8800 hardcode_libdir_separator=:
8801 hardcode_direct=yes
8802 hardcode_direct_absolute=yes
8803 export_dynamic_flag_spec='${wl}-E'
8804 # hardcode_minus_L: Not really in the search PATH,
8805 # but as the default location of the library.
8806 hardcode_minus_L=yes
8807 fi
8808 ;;
8809
8810 hpux11*)
8811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8812 case $host_cpu in
8813 hppa*64*)
8814 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8815 ;;
8816 ia64*)
8817 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8818 ;;
8819 *)
8820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8821 ;;
8822 esac
8823 else
8824 case $host_cpu in
8825 hppa*64*)
8826 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 ;;
8828 ia64*)
8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8830 ;;
8831 *)
8832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8833 ;;
8834 esac
8835 fi
8836 if test "$with_gnu_ld" = no; then
8837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838 hardcode_libdir_separator=:
8839
8840 case $host_cpu in
8841 hppa*64*|ia64*)
8842 hardcode_direct=no
8843 hardcode_shlibpath_var=no
8844 ;;
8845 *)
8846 hardcode_direct=yes
8847 hardcode_direct_absolute=yes
8848 export_dynamic_flag_spec='${wl}-E'
8849
8850 # hardcode_minus_L: Not really in the search PATH,
8851 # but as the default location of the library.
8852 hardcode_minus_L=yes
8853 ;;
8854 esac
8855 fi
8856 ;;
8857
8858 irix5* | irix6* | nonstopux*)
8859 if test "$GCC" = yes; then
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8861 # Try to use the -exported_symbol ld option, if it does not
8862 # work, assume that -exports_file does not work either and
8863 # implicitly export all symbols.
8864 save_LDFLAGS="$LDFLAGS"
8865 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8866 cat >conftest.$ac_ext <<_ACEOF
8867 int foo(void) {}
8868 _ACEOF
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (ac_try="$ac_link"
8871 case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874 esac
8875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8876 $as_echo "$ac_try_echo") >&5
8877 (eval "$ac_link") 2>conftest.er1
8878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && {
8884 test -z "$ac_c_werror_flag" ||
8885 test ! -s conftest.err
8886 } && test -s conftest$ac_exeext && {
8887 test "$cross_compiling" = yes ||
8888 $as_test_x conftest$ac_exeext
8889 }; then
8890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8891
8892 else
8893 $as_echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8895
8896
8897 fi
8898
8899 rm -rf conftest.dSYM
8900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8901 conftest$ac_exeext conftest.$ac_ext
8902 LDFLAGS="$save_LDFLAGS"
8903 else
8904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8906 fi
8907 archive_cmds_need_lc='no'
8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909 hardcode_libdir_separator=:
8910 inherit_rpath=yes
8911 link_all_deplibs=yes
8912 ;;
8913
8914 netbsd*)
8915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8917 else
8918 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8919 fi
8920 hardcode_libdir_flag_spec='-R$libdir'
8921 hardcode_direct=yes
8922 hardcode_shlibpath_var=no
8923 ;;
8924
8925 newsos6)
8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_direct=yes
8928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8929 hardcode_libdir_separator=:
8930 hardcode_shlibpath_var=no
8931 ;;
8932
8933 *nto* | *qnx*)
8934 ;;
8935
8936 openbsd*)
8937 if test -f /usr/libexec/ld.so; then
8938 hardcode_direct=yes
8939 hardcode_shlibpath_var=no
8940 hardcode_direct_absolute=yes
8941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8943 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8945 export_dynamic_flag_spec='${wl}-E'
8946 else
8947 case $host_os in
8948 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8949 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_libdir_flag_spec='-R$libdir'
8951 ;;
8952 *)
8953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8955 ;;
8956 esac
8957 fi
8958 else
8959 ld_shlibs=no
8960 fi
8961 ;;
8962
8963 os2*)
8964 hardcode_libdir_flag_spec='-L$libdir'
8965 hardcode_minus_L=yes
8966 allow_undefined_flag=unsupported
8967 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'
8968 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8969 ;;
8970
8971 osf3*)
8972 if test "$GCC" = yes; then
8973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8974 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8975 else
8976 allow_undefined_flag=' -expect_unresolved \*'
8977 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8978 fi
8979 archive_cmds_need_lc='no'
8980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8981 hardcode_libdir_separator=:
8982 ;;
8983
8984 osf4* | osf5*) # as osf3* with the addition of -msym flag
8985 if test "$GCC" = yes; then
8986 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8987 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8989 else
8990 allow_undefined_flag=' -expect_unresolved \*'
8991 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8992 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~
8993 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8994
8995 # Both c and cxx compiler support -rpath directly
8996 hardcode_libdir_flag_spec='-rpath $libdir'
8997 fi
8998 archive_cmds_need_lc='no'
8999 hardcode_libdir_separator=:
9000 ;;
9001
9002 solaris*)
9003 no_undefined_flag=' -z defs'
9004 if test "$GCC" = yes; then
9005 wlarc='${wl}'
9006 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9008 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9009 else
9010 case `$CC -V 2>&1` in
9011 *"Compilers 5.0"*)
9012 wlarc=''
9013 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9015 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9016 ;;
9017 *)
9018 wlarc='${wl}'
9019 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9020 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9021 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9022 ;;
9023 esac
9024 fi
9025 hardcode_libdir_flag_spec='-R$libdir'
9026 hardcode_shlibpath_var=no
9027 case $host_os in
9028 solaris2.[0-5] | solaris2.[0-5].*) ;;
9029 *)
9030 # The compiler driver will combine and reorder linker options,
9031 # but understands `-z linker_flag'. GCC discards it without `$wl',
9032 # but is careful enough not to reorder.
9033 # Supported since Solaris 2.6 (maybe 2.5.1?)
9034 if test "$GCC" = yes; then
9035 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9036 else
9037 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9038 fi
9039 ;;
9040 esac
9041 link_all_deplibs=yes
9042 ;;
9043
9044 sunos4*)
9045 if test "x$host_vendor" = xsequent; then
9046 # Use $CC to link under sequent, because it throws in some extra .o
9047 # files that make .init and .fini sections work.
9048 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9049 else
9050 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9051 fi
9052 hardcode_libdir_flag_spec='-L$libdir'
9053 hardcode_direct=yes
9054 hardcode_minus_L=yes
9055 hardcode_shlibpath_var=no
9056 ;;
9057
9058 sysv4)
9059 case $host_vendor in
9060 sni)
9061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9062 hardcode_direct=yes # is this really true???
9063 ;;
9064 siemens)
9065 ## LD is ld it makes a PLAMLIB
9066 ## CC just makes a GrossModule.
9067 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9068 reload_cmds='$CC -r -o $output$reload_objs'
9069 hardcode_direct=no
9070 ;;
9071 motorola)
9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9074 ;;
9075 esac
9076 runpath_var='LD_RUN_PATH'
9077 hardcode_shlibpath_var=no
9078 ;;
9079
9080 sysv4.3*)
9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082 hardcode_shlibpath_var=no
9083 export_dynamic_flag_spec='-Bexport'
9084 ;;
9085
9086 sysv4*MP*)
9087 if test -d /usr/nec; then
9088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9089 hardcode_shlibpath_var=no
9090 runpath_var=LD_RUN_PATH
9091 hardcode_runpath_var=yes
9092 ld_shlibs=yes
9093 fi
9094 ;;
9095
9096 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9097 no_undefined_flag='${wl}-z,text'
9098 archive_cmds_need_lc=no
9099 hardcode_shlibpath_var=no
9100 runpath_var='LD_RUN_PATH'
9101
9102 if test "$GCC" = yes; then
9103 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9104 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9105 else
9106 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9107 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9108 fi
9109 ;;
9110
9111 sysv5* | sco3.2v5* | sco5v6*)
9112 # Note: We can NOT use -z defs as we might desire, because we do not
9113 # link with -lc, and that would cause any symbols used from libc to
9114 # always be unresolved, which means just about no library would
9115 # ever link correctly. If we're not using GNU ld we use -z text
9116 # though, which does catch some bad symbols but isn't as heavy-handed
9117 # as -z defs.
9118 no_undefined_flag='${wl}-z,text'
9119 allow_undefined_flag='${wl}-z,nodefs'
9120 archive_cmds_need_lc=no
9121 hardcode_shlibpath_var=no
9122 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9123 hardcode_libdir_separator=':'
9124 link_all_deplibs=yes
9125 export_dynamic_flag_spec='${wl}-Bexport'
9126 runpath_var='LD_RUN_PATH'
9127
9128 if test "$GCC" = yes; then
9129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9131 else
9132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9134 fi
9135 ;;
9136
9137 uts4*)
9138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9139 hardcode_libdir_flag_spec='-L$libdir'
9140 hardcode_shlibpath_var=no
9141 ;;
9142
9143 *)
9144 ld_shlibs=no
9145 ;;
9146 esac
9147
9148 if test x$host_vendor = xsni; then
9149 case $host in
9150 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9151 export_dynamic_flag_spec='${wl}-Blargedynsym'
9152 ;;
9153 esac
9154 fi
9155 fi
9156
9157 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9158 $as_echo "$ld_shlibs" >&6; }
9159 test "$ld_shlibs" = no && can_build_shared=no
9160
9161 with_gnu_ld=$with_gnu_ld
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177 #
9178 # Do we need to explicitly link libc?
9179 #
9180 case "x$archive_cmds_need_lc" in
9181 x|xyes)
9182 # Assume -lc should be added
9183 archive_cmds_need_lc=yes
9184
9185 if test "$enable_shared" = yes && test "$GCC" = yes; then
9186 case $archive_cmds in
9187 *'~'*)
9188 # FIXME: we may have to deal with multi-command sequences.
9189 ;;
9190 '$CC '*)
9191 # Test whether the compiler implicitly links with -lc since on some
9192 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9193 # to ld, don't add -lc before -lgcc.
9194 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9195 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9196 $RM conftest*
9197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9198
9199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200 (eval $ac_compile) 2>&5
9201 ac_status=$?
9202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } 2>conftest.err; then
9204 soname=conftest
9205 lib=conftest
9206 libobjs=conftest.$ac_objext
9207 deplibs=
9208 wl=$lt_prog_compiler_wl
9209 pic_flag=$lt_prog_compiler_pic
9210 compiler_flags=-v
9211 linker_flags=-v
9212 verstring=
9213 output_objdir=.
9214 libname=conftest
9215 lt_save_allow_undefined_flag=$allow_undefined_flag
9216 allow_undefined_flag=
9217 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9218 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9219 ac_status=$?
9220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }
9222 then
9223 archive_cmds_need_lc=no
9224 else
9225 archive_cmds_need_lc=yes
9226 fi
9227 allow_undefined_flag=$lt_save_allow_undefined_flag
9228 else
9229 cat conftest.err 1>&5
9230 fi
9231 $RM conftest*
9232 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9233 $as_echo "$archive_cmds_need_lc" >&6; }
9234 ;;
9235 esac
9236 fi
9237 ;;
9238 esac
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9397 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9398
9399 if test "$GCC" = yes; then
9400 case $host_os in
9401 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9402 *) lt_awk_arg="/^libraries:/" ;;
9403 esac
9404 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9405 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9406 # if the path contains ";" then we assume it to be the separator
9407 # otherwise default to the standard path separator (i.e. ":") - it is
9408 # assumed that no part of a normal pathname contains ";" but that should
9409 # okay in the real world where ";" in dirpaths is itself problematic.
9410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9411 else
9412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9413 fi
9414 # Ok, now we have the path, separated by spaces, we can step through it
9415 # and add multilib dir if necessary.
9416 lt_tmp_lt_search_path_spec=
9417 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9418 for lt_sys_path in $lt_search_path_spec; do
9419 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9421 else
9422 test -d "$lt_sys_path" && \
9423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9424 fi
9425 done
9426 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9427 BEGIN {RS=" "; FS="/|\n";} {
9428 lt_foo="";
9429 lt_count=0;
9430 for (lt_i = NF; lt_i > 0; lt_i--) {
9431 if ($lt_i != "" && $lt_i != ".") {
9432 if ($lt_i == "..") {
9433 lt_count++;
9434 } else {
9435 if (lt_count == 0) {
9436 lt_foo="/" $lt_i lt_foo;
9437 } else {
9438 lt_count--;
9439 }
9440 }
9441 }
9442 }
9443 if (lt_foo != "") { lt_freq[lt_foo]++; }
9444 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9445 }'`
9446 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9447 else
9448 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9449 fi
9450 library_names_spec=
9451 libname_spec='lib$name'
9452 soname_spec=
9453 shrext_cmds=".so"
9454 postinstall_cmds=
9455 postuninstall_cmds=
9456 finish_cmds=
9457 finish_eval=
9458 shlibpath_var=
9459 shlibpath_overrides_runpath=unknown
9460 version_type=none
9461 dynamic_linker="$host_os ld.so"
9462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9463 need_lib_prefix=unknown
9464 hardcode_into_libs=no
9465
9466 # when you set need_version to no, make sure it does not cause -set_version
9467 # flags to be left without arguments
9468 need_version=unknown
9469
9470 case $host_os in
9471 aix3*)
9472 version_type=linux
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9474 shlibpath_var=LIBPATH
9475
9476 # AIX 3 has no versioning support, so we append a major version to the name.
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 ;;
9479
9480 aix[4-9]*)
9481 version_type=linux
9482 need_lib_prefix=no
9483 need_version=no
9484 hardcode_into_libs=yes
9485 if test "$host_cpu" = ia64; then
9486 # AIX 5 supports IA64
9487 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 else
9490 # With GCC up to 2.95.x, collect2 would create an import file
9491 # for dependence libraries. The import file would start with
9492 # the line `#! .'. This would cause the generated library to
9493 # depend on `.', always an invalid library. This was fixed in
9494 # development snapshots of GCC prior to 3.0.
9495 case $host_os in
9496 aix4 | aix4.[01] | aix4.[01].*)
9497 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9498 echo ' yes '
9499 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9500 :
9501 else
9502 can_build_shared=no
9503 fi
9504 ;;
9505 esac
9506 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9507 # soname into executable. Probably we can add versioning support to
9508 # collect2, so additional links can be useful in future.
9509 if test "$aix_use_runtimelinking" = yes; then
9510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9511 # instead of lib<name>.a to let people know that these are not
9512 # typical AIX shared libraries.
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514 else
9515 # We preserve .a as extension for shared libraries through AIX4.2
9516 # and later when we are not doing run time linking.
9517 library_names_spec='${libname}${release}.a $libname.a'
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 fi
9520 shlibpath_var=LIBPATH
9521 fi
9522 ;;
9523
9524 amigaos*)
9525 case $host_cpu in
9526 powerpc)
9527 # Since July 2007 AmigaOS4 officially supports .so libraries.
9528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530 ;;
9531 m68k)
9532 library_names_spec='$libname.ixlibrary $libname.a'
9533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9534 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9535 ;;
9536 esac
9537 ;;
9538
9539 beos*)
9540 library_names_spec='${libname}${shared_ext}'
9541 dynamic_linker="$host_os ld.so"
9542 shlibpath_var=LIBRARY_PATH
9543 ;;
9544
9545 bsdi[45]*)
9546 version_type=linux
9547 need_version=no
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9551 shlibpath_var=LD_LIBRARY_PATH
9552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9554 # the default ld.so.conf also contains /usr/contrib/lib and
9555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9556 # libtool to hard-code these into programs
9557 ;;
9558
9559 cygwin* | mingw* | pw32* | cegcc*)
9560 version_type=windows
9561 shrext_cmds=".dll"
9562 need_version=no
9563 need_lib_prefix=no
9564
9565 case $GCC,$host_os in
9566 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9567 library_names_spec='$libname.dll.a'
9568 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9569 postinstall_cmds='base_file=`basename \${file}`~
9570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9571 dldir=$destdir/`dirname \$dlpath`~
9572 test -d \$dldir || mkdir -p \$dldir~
9573 $install_prog $dir/$dlname \$dldir/$dlname~
9574 chmod a+x \$dldir/$dlname~
9575 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9576 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9577 fi'
9578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9579 dlpath=$dir/\$dldll~
9580 $RM \$dlpath'
9581 shlibpath_overrides_runpath=yes
9582
9583 case $host_os in
9584 cygwin*)
9585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9586 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9587 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9588 ;;
9589 mingw* | cegcc*)
9590 # MinGW DLLs use traditional 'lib' prefix
9591 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9592 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9593 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9594 # It is most probably a Windows format PATH printed by
9595 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9596 # path with ; separators, and with drive letters. We can handle the
9597 # drive letters (cygwin fileutils understands them), so leave them,
9598 # especially as we might pass files found there to a mingw objdump,
9599 # which wouldn't understand a cygwinified path. Ahh.
9600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9601 else
9602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9603 fi
9604 ;;
9605 pw32*)
9606 # pw32 DLLs use 'pw' prefix rather than 'lib'
9607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9608 ;;
9609 esac
9610 ;;
9611
9612 *)
9613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9614 ;;
9615 esac
9616 dynamic_linker='Win32 ld.exe'
9617 # FIXME: first we should search . and the directory the executable is in
9618 shlibpath_var=PATH
9619 ;;
9620
9621 darwin* | rhapsody*)
9622 dynamic_linker="$host_os dyld"
9623 version_type=darwin
9624 need_lib_prefix=no
9625 need_version=no
9626 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9627 soname_spec='${libname}${release}${major}$shared_ext'
9628 shlibpath_overrides_runpath=yes
9629 shlibpath_var=DYLD_LIBRARY_PATH
9630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9631
9632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9634 ;;
9635
9636 dgux*)
9637 version_type=linux
9638 need_lib_prefix=no
9639 need_version=no
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 ;;
9644
9645 freebsd1*)
9646 dynamic_linker=no
9647 ;;
9648
9649 freebsd* | dragonfly*)
9650 # DragonFly does not have aout. When/if they implement a new
9651 # versioning mechanism, adjust this.
9652 if test -x /usr/bin/objformat; then
9653 objformat=`/usr/bin/objformat`
9654 else
9655 case $host_os in
9656 freebsd[123]*) objformat=aout ;;
9657 *) objformat=elf ;;
9658 esac
9659 fi
9660 version_type=freebsd-$objformat
9661 case $version_type in
9662 freebsd-elf*)
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9664 need_version=no
9665 need_lib_prefix=no
9666 ;;
9667 freebsd-*)
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9669 need_version=yes
9670 ;;
9671 esac
9672 shlibpath_var=LD_LIBRARY_PATH
9673 case $host_os in
9674 freebsd2*)
9675 shlibpath_overrides_runpath=yes
9676 ;;
9677 freebsd3.[01]* | freebsdelf3.[01]*)
9678 shlibpath_overrides_runpath=yes
9679 hardcode_into_libs=yes
9680 ;;
9681 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9682 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9683 shlibpath_overrides_runpath=no
9684 hardcode_into_libs=yes
9685 ;;
9686 *) # from 4.6 on, and DragonFly
9687 shlibpath_overrides_runpath=yes
9688 hardcode_into_libs=yes
9689 ;;
9690 esac
9691 ;;
9692
9693 gnu*)
9694 version_type=linux
9695 need_lib_prefix=no
9696 need_version=no
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 hardcode_into_libs=yes
9701 ;;
9702
9703 hpux9* | hpux10* | hpux11*)
9704 # Give a soname corresponding to the major version so that dld.sl refuses to
9705 # link against other versions.
9706 version_type=sunos
9707 need_lib_prefix=no
9708 need_version=no
9709 case $host_cpu in
9710 ia64*)
9711 shrext_cmds='.so'
9712 hardcode_into_libs=yes
9713 dynamic_linker="$host_os dld.so"
9714 shlibpath_var=LD_LIBRARY_PATH
9715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 if test "X$HPUX_IA64_MODE" = X32; then
9719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9720 else
9721 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9722 fi
9723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9724 ;;
9725 hppa*64*)
9726 shrext_cmds='.sl'
9727 hardcode_into_libs=yes
9728 dynamic_linker="$host_os dld.sl"
9729 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9735 ;;
9736 *)
9737 shrext_cmds='.sl'
9738 dynamic_linker="$host_os dld.sl"
9739 shlibpath_var=SHLIB_PATH
9740 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 ;;
9744 esac
9745 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9746 postinstall_cmds='chmod 555 $lib'
9747 ;;
9748
9749 interix[3-9]*)
9750 version_type=linux
9751 need_lib_prefix=no
9752 need_version=no
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9756 shlibpath_var=LD_LIBRARY_PATH
9757 shlibpath_overrides_runpath=no
9758 hardcode_into_libs=yes
9759 ;;
9760
9761 irix5* | irix6* | nonstopux*)
9762 case $host_os in
9763 nonstopux*) version_type=nonstopux ;;
9764 *)
9765 if test "$lt_cv_prog_gnu_ld" = yes; then
9766 version_type=linux
9767 else
9768 version_type=irix
9769 fi ;;
9770 esac
9771 need_lib_prefix=no
9772 need_version=no
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9775 case $host_os in
9776 irix5* | nonstopux*)
9777 libsuff= shlibsuff=
9778 ;;
9779 *)
9780 case $LD in # libtool.m4 will add one of these switches to LD
9781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9782 libsuff= shlibsuff= libmagic=32-bit;;
9783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9784 libsuff=32 shlibsuff=N32 libmagic=N32;;
9785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9786 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9787 *) libsuff= shlibsuff= libmagic=never-match;;
9788 esac
9789 ;;
9790 esac
9791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9792 shlibpath_overrides_runpath=no
9793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9795 hardcode_into_libs=yes
9796 ;;
9797
9798 # No shared lib support for Linux oldld, aout, or coff.
9799 linux*oldld* | linux*aout* | linux*coff*)
9800 dynamic_linker=no
9801 ;;
9802
9803 # This must be Linux ELF.
9804 linux* | k*bsd*-gnu)
9805 version_type=linux
9806 need_lib_prefix=no
9807 need_version=no
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9811 shlibpath_var=LD_LIBRARY_PATH
9812 shlibpath_overrides_runpath=no
9813 # Some binutils ld are patched to set DT_RUNPATH
9814 save_LDFLAGS=$LDFLAGS
9815 save_libdir=$libdir
9816 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9817 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824
9825 int
9826 main ()
9827 {
9828
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9835 case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838 esac
9839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9840 $as_echo "$ac_try_echo") >&5
9841 (eval "$ac_link") 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && {
9848 test -z "$ac_c_werror_flag" ||
9849 test ! -s conftest.err
9850 } && test -s conftest$ac_exeext && {
9851 test "$cross_compiling" = yes ||
9852 $as_test_x conftest$ac_exeext
9853 }; then
9854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9855 shlibpath_overrides_runpath=yes
9856 fi
9857
9858 else
9859 $as_echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862
9863 fi
9864
9865 rm -rf conftest.dSYM
9866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9867 conftest$ac_exeext conftest.$ac_ext
9868 LDFLAGS=$save_LDFLAGS
9869 libdir=$save_libdir
9870
9871 # This implies no fast_install, which is unacceptable.
9872 # Some rework will be needed to allow for fast_install
9873 # before this can be enabled.
9874 hardcode_into_libs=yes
9875
9876 # Add ABI-specific directories to the system library path.
9877 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9878
9879 # Append ld.so.conf contents to the search path
9880 if test -f /etc/ld.so.conf; then
9881 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;/^$/d' | tr '\n' ' '`
9882 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9883 fi
9884
9885 # We used to test for /lib/ld.so.1 and disable shared libraries on
9886 # powerpc, because MkLinux only supported shared libraries with the
9887 # GNU dynamic linker. Since this was broken with cross compilers,
9888 # most powerpc-linux boxes support dynamic linking these days and
9889 # people can always --disable-shared, the test was removed, and we
9890 # assume the GNU/Linux dynamic linker is in use.
9891 dynamic_linker='GNU/Linux ld.so'
9892 ;;
9893
9894 netbsd*)
9895 version_type=sunos
9896 need_lib_prefix=no
9897 need_version=no
9898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9901 dynamic_linker='NetBSD (a.out) ld.so'
9902 else
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 dynamic_linker='NetBSD ld.elf_so'
9906 fi
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=yes
9909 hardcode_into_libs=yes
9910 ;;
9911
9912 newsos6)
9913 version_type=linux
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 shlibpath_overrides_runpath=yes
9917 ;;
9918
9919 *nto* | *qnx*)
9920 version_type=qnx
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 shlibpath_overrides_runpath=no
9927 hardcode_into_libs=yes
9928 dynamic_linker='ldqnx.so'
9929 ;;
9930
9931 openbsd*)
9932 version_type=sunos
9933 sys_lib_dlsearch_path_spec="/usr/lib"
9934 need_lib_prefix=no
9935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9936 case $host_os in
9937 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9938 *) need_version=no ;;
9939 esac
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9944 case $host_os in
9945 openbsd2.[89] | openbsd2.[89].*)
9946 shlibpath_overrides_runpath=no
9947 ;;
9948 *)
9949 shlibpath_overrides_runpath=yes
9950 ;;
9951 esac
9952 else
9953 shlibpath_overrides_runpath=yes
9954 fi
9955 ;;
9956
9957 os2*)
9958 libname_spec='$name'
9959 shrext_cmds=".dll"
9960 need_lib_prefix=no
9961 library_names_spec='$libname${shared_ext} $libname.a'
9962 dynamic_linker='OS/2 ld.exe'
9963 shlibpath_var=LIBPATH
9964 ;;
9965
9966 osf3* | osf4* | osf5*)
9967 version_type=osf
9968 need_lib_prefix=no
9969 need_version=no
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9975 ;;
9976
9977 rdos*)
9978 dynamic_linker=no
9979 ;;
9980
9981 solaris*)
9982 version_type=linux
9983 need_lib_prefix=no
9984 need_version=no
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986 soname_spec='${libname}${release}${shared_ext}$major'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 shlibpath_overrides_runpath=yes
9989 hardcode_into_libs=yes
9990 # ldd complains unless libraries are executable
9991 postinstall_cmds='chmod +x $lib'
9992 ;;
9993
9994 sunos4*)
9995 version_type=sunos
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9998 shlibpath_var=LD_LIBRARY_PATH
9999 shlibpath_overrides_runpath=yes
10000 if test "$with_gnu_ld" = yes; then
10001 need_lib_prefix=no
10002 fi
10003 need_version=yes
10004 ;;
10005
10006 sysv4 | sysv4.3*)
10007 version_type=linux
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 case $host_vendor in
10012 sni)
10013 shlibpath_overrides_runpath=no
10014 need_lib_prefix=no
10015 runpath_var=LD_RUN_PATH
10016 ;;
10017 siemens)
10018 need_lib_prefix=no
10019 ;;
10020 motorola)
10021 need_lib_prefix=no
10022 need_version=no
10023 shlibpath_overrides_runpath=no
10024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10025 ;;
10026 esac
10027 ;;
10028
10029 sysv4*MP*)
10030 if test -d /usr/nec ;then
10031 version_type=linux
10032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10033 soname_spec='$libname${shared_ext}.$major'
10034 shlibpath_var=LD_LIBRARY_PATH
10035 fi
10036 ;;
10037
10038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10039 version_type=freebsd-elf
10040 need_lib_prefix=no
10041 need_version=no
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 shlibpath_overrides_runpath=yes
10046 hardcode_into_libs=yes
10047 if test "$with_gnu_ld" = yes; then
10048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10049 else
10050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10051 case $host_os in
10052 sco3.2v5*)
10053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10054 ;;
10055 esac
10056 fi
10057 sys_lib_dlsearch_path_spec='/usr/lib'
10058 ;;
10059
10060 tpf*)
10061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10062 version_type=linux
10063 need_lib_prefix=no
10064 need_version=no
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 shlibpath_var=LD_LIBRARY_PATH
10067 shlibpath_overrides_runpath=no
10068 hardcode_into_libs=yes
10069 ;;
10070
10071 uts4*)
10072 version_type=linux
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 ;;
10077
10078 *)
10079 dynamic_linker=no
10080 ;;
10081 esac
10082 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10083 $as_echo "$dynamic_linker" >&6; }
10084 test "$dynamic_linker" = no && can_build_shared=no
10085
10086 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10087 if test "$GCC" = yes; then
10088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10089 fi
10090
10091 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10093 fi
10094 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10095 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10096 fi
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10185 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10186 hardcode_action=
10187 if test -n "$hardcode_libdir_flag_spec" ||
10188 test -n "$runpath_var" ||
10189 test "X$hardcode_automatic" = "Xyes" ; then
10190
10191 # We can hardcode non-existent directories.
10192 if test "$hardcode_direct" != no &&
10193 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10194 # have to relink, otherwise we might link with an installed library
10195 # when we should be linking with a yet-to-be-installed one
10196 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10197 test "$hardcode_minus_L" != no; then
10198 # Linking always hardcodes the temporary library directory.
10199 hardcode_action=relink
10200 else
10201 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10202 hardcode_action=immediate
10203 fi
10204 else
10205 # We cannot hardcode anything, or else we can only hardcode existing
10206 # directories.
10207 hardcode_action=unsupported
10208 fi
10209 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10210 $as_echo "$hardcode_action" >&6; }
10211
10212 if test "$hardcode_action" = relink ||
10213 test "$inherit_rpath" = yes; then
10214 # Fast installation is not supported
10215 enable_fast_install=no
10216 elif test "$shlibpath_overrides_runpath" = yes ||
10217 test "$enable_shared" = no; then
10218 # Fast installation is not necessary
10219 enable_fast_install=needless
10220 fi
10221
10222
10223
10224
10225
10226
10227 if test "x$enable_dlopen" != xyes; then
10228 enable_dlopen=unknown
10229 enable_dlopen_self=unknown
10230 enable_dlopen_self_static=unknown
10231 else
10232 lt_cv_dlopen=no
10233 lt_cv_dlopen_libs=
10234
10235 case $host_os in
10236 beos*)
10237 lt_cv_dlopen="load_add_on"
10238 lt_cv_dlopen_libs=
10239 lt_cv_dlopen_self=yes
10240 ;;
10241
10242 mingw* | pw32* | cegcc*)
10243 lt_cv_dlopen="LoadLibrary"
10244 lt_cv_dlopen_libs=
10245 ;;
10246
10247 cygwin*)
10248 lt_cv_dlopen="dlopen"
10249 lt_cv_dlopen_libs=
10250 ;;
10251
10252 darwin*)
10253 # if libdl is installed we need to link against it
10254 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10255 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10256 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10257 $as_echo_n "(cached) " >&6
10258 else
10259 ac_check_lib_save_LIBS=$LIBS
10260 LIBS="-ldl $LIBS"
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h. */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267
10268 /* Override any GCC internal prototype to avoid an error.
10269 Use char because int might match the return type of a GCC
10270 builtin and then its argument prototype would still apply. */
10271 #ifdef __cplusplus
10272 extern "C"
10273 #endif
10274 char dlopen ();
10275 int
10276 main ()
10277 {
10278 return dlopen ();
10279 ;
10280 return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290 $as_echo "$ac_try_echo") >&5
10291 (eval "$ac_link") 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && {
10298 test -z "$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10300 } && test -s conftest$ac_exeext && {
10301 test "$cross_compiling" = yes ||
10302 $as_test_x conftest$ac_exeext
10303 }; then
10304 ac_cv_lib_dl_dlopen=yes
10305 else
10306 $as_echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 ac_cv_lib_dl_dlopen=no
10310 fi
10311
10312 rm -rf conftest.dSYM
10313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10318 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10319 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10321 else
10322
10323 lt_cv_dlopen="dyld"
10324 lt_cv_dlopen_libs=
10325 lt_cv_dlopen_self=yes
10326
10327 fi
10328
10329 ;;
10330
10331 *)
10332 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10333 $as_echo_n "checking for shl_load... " >&6; }
10334 if test "${ac_cv_func_shl_load+set}" = set; then
10335 $as_echo_n "(cached) " >&6
10336 else
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10345 #define shl_load innocuous_shl_load
10346
10347 /* System header to define __stub macros and hopefully few prototypes,
10348 which can conflict with char shl_load (); below.
10349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10350 <limits.h> exists even on freestanding compilers. */
10351
10352 #ifdef __STDC__
10353 # include <limits.h>
10354 #else
10355 # include <assert.h>
10356 #endif
10357
10358 #undef shl_load
10359
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char shl_load ();
10367 /* The GNU C library defines this for functions which it implements
10368 to always fail with ENOSYS. Some functions are actually named
10369 something starting with __ and the normal name is an alias. */
10370 #if defined __stub_shl_load || defined __stub___shl_load
10371 choke me
10372 #endif
10373
10374 int
10375 main ()
10376 {
10377 return shl_load ();
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (ac_try="$ac_link"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387 esac
10388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10389 $as_echo "$ac_try_echo") >&5
10390 (eval "$ac_link") 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest$ac_exeext && {
10400 test "$cross_compiling" = yes ||
10401 $as_test_x conftest$ac_exeext
10402 }; then
10403 ac_cv_func_shl_load=yes
10404 else
10405 $as_echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 ac_cv_func_shl_load=no
10409 fi
10410
10411 rm -rf conftest.dSYM
10412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10413 conftest$ac_exeext conftest.$ac_ext
10414 fi
10415 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10416 $as_echo "$ac_cv_func_shl_load" >&6; }
10417 if test "x$ac_cv_func_shl_load" = x""yes; then
10418 lt_cv_dlopen="shl_load"
10419 else
10420 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10421 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10422 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10423 $as_echo_n "(cached) " >&6
10424 else
10425 ac_check_lib_save_LIBS=$LIBS
10426 LIBS="-ldld $LIBS"
10427 cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h. */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433
10434 /* Override any GCC internal prototype to avoid an error.
10435 Use char because int might match the return type of a GCC
10436 builtin and then its argument prototype would still apply. */
10437 #ifdef __cplusplus
10438 extern "C"
10439 #endif
10440 char shl_load ();
10441 int
10442 main ()
10443 {
10444 return shl_load ();
10445 ;
10446 return 0;
10447 }
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454 esac
10455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10456 $as_echo "$ac_try_echo") >&5
10457 (eval "$ac_link") 2>conftest.er1
10458 ac_status=$?
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
10466 } && test -s conftest$ac_exeext && {
10467 test "$cross_compiling" = yes ||
10468 $as_test_x conftest$ac_exeext
10469 }; then
10470 ac_cv_lib_dld_shl_load=yes
10471 else
10472 $as_echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475 ac_cv_lib_dld_shl_load=no
10476 fi
10477
10478 rm -rf conftest.dSYM
10479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10482 fi
10483 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10484 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10485 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10486 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10487 else
10488 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10489 $as_echo_n "checking for dlopen... " >&6; }
10490 if test "${ac_cv_func_dlopen+set}" = set; then
10491 $as_echo_n "(cached) " >&6
10492 else
10493 cat >conftest.$ac_ext <<_ACEOF
10494 /* confdefs.h. */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10501 #define dlopen innocuous_dlopen
10502
10503 /* System header to define __stub macros and hopefully few prototypes,
10504 which can conflict with char dlopen (); below.
10505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10506 <limits.h> exists even on freestanding compilers. */
10507
10508 #ifdef __STDC__
10509 # include <limits.h>
10510 #else
10511 # include <assert.h>
10512 #endif
10513
10514 #undef dlopen
10515
10516 /* Override any GCC internal prototype to avoid an error.
10517 Use char because int might match the return type of a GCC
10518 builtin and then its argument prototype would still apply. */
10519 #ifdef __cplusplus
10520 extern "C"
10521 #endif
10522 char dlopen ();
10523 /* The GNU C library defines this for functions which it implements
10524 to always fail with ENOSYS. Some functions are actually named
10525 something starting with __ and the normal name is an alias. */
10526 #if defined __stub_dlopen || defined __stub___dlopen
10527 choke me
10528 #endif
10529
10530 int
10531 main ()
10532 {
10533 return dlopen ();
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543 esac
10544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10545 $as_echo "$ac_try_echo") >&5
10546 (eval "$ac_link") 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest$ac_exeext && {
10556 test "$cross_compiling" = yes ||
10557 $as_test_x conftest$ac_exeext
10558 }; then
10559 ac_cv_func_dlopen=yes
10560 else
10561 $as_echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564 ac_cv_func_dlopen=no
10565 fi
10566
10567 rm -rf conftest.dSYM
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10570 fi
10571 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10572 $as_echo "$ac_cv_func_dlopen" >&6; }
10573 if test "x$ac_cv_func_dlopen" = x""yes; then
10574 lt_cv_dlopen="dlopen"
10575 else
10576 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10577 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10578 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10579 $as_echo_n "(cached) " >&6
10580 else
10581 ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-ldl $LIBS"
10583 cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h. */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10589
10590 /* Override any GCC internal prototype to avoid an error.
10591 Use char because int might match the return type of a GCC
10592 builtin and then its argument prototype would still apply. */
10593 #ifdef __cplusplus
10594 extern "C"
10595 #endif
10596 char dlopen ();
10597 int
10598 main ()
10599 {
10600 return dlopen ();
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (ac_try="$ac_link"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610 esac
10611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10612 $as_echo "$ac_try_echo") >&5
10613 (eval "$ac_link") 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest$ac_exeext && {
10623 test "$cross_compiling" = yes ||
10624 $as_test_x conftest$ac_exeext
10625 }; then
10626 ac_cv_lib_dl_dlopen=yes
10627 else
10628 $as_echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631 ac_cv_lib_dl_dlopen=no
10632 fi
10633
10634 rm -rf conftest.dSYM
10635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10636 conftest$ac_exeext conftest.$ac_ext
10637 LIBS=$ac_check_lib_save_LIBS
10638 fi
10639 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10640 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10641 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10643 else
10644 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10645 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10646 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10647 $as_echo_n "(cached) " >&6
10648 else
10649 ac_check_lib_save_LIBS=$LIBS
10650 LIBS="-lsvld $LIBS"
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h. */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657
10658 /* Override any GCC internal prototype to avoid an error.
10659 Use char because int might match the return type of a GCC
10660 builtin and then its argument prototype would still apply. */
10661 #ifdef __cplusplus
10662 extern "C"
10663 #endif
10664 char dlopen ();
10665 int
10666 main ()
10667 {
10668 return dlopen ();
10669 ;
10670 return 0;
10671 }
10672 _ACEOF
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678 esac
10679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10680 $as_echo "$ac_try_echo") >&5
10681 (eval "$ac_link") 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && {
10688 test -z "$ac_c_werror_flag" ||
10689 test ! -s conftest.err
10690 } && test -s conftest$ac_exeext && {
10691 test "$cross_compiling" = yes ||
10692 $as_test_x conftest$ac_exeext
10693 }; then
10694 ac_cv_lib_svld_dlopen=yes
10695 else
10696 $as_echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10698
10699 ac_cv_lib_svld_dlopen=no
10700 fi
10701
10702 rm -rf conftest.dSYM
10703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10704 conftest$ac_exeext conftest.$ac_ext
10705 LIBS=$ac_check_lib_save_LIBS
10706 fi
10707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10708 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10709 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10711 else
10712 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10713 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10714 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10715 $as_echo_n "(cached) " >&6
10716 else
10717 ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-ldld $LIBS"
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char dld_link ();
10733 int
10734 main ()
10735 {
10736 return dld_link ();
10737 ;
10738 return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746 esac
10747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10748 $as_echo "$ac_try_echo") >&5
10749 (eval "$ac_link") 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest$ac_exeext && {
10759 test "$cross_compiling" = yes ||
10760 $as_test_x conftest$ac_exeext
10761 }; then
10762 ac_cv_lib_dld_dld_link=yes
10763 else
10764 $as_echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ac_cv_lib_dld_dld_link=no
10768 fi
10769
10770 rm -rf conftest.dSYM
10771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10772 conftest$ac_exeext conftest.$ac_ext
10773 LIBS=$ac_check_lib_save_LIBS
10774 fi
10775 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10776 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10777 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10778 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10779 fi
10780
10781
10782 fi
10783
10784
10785 fi
10786
10787
10788 fi
10789
10790
10791 fi
10792
10793
10794 fi
10795
10796 ;;
10797 esac
10798
10799 if test "x$lt_cv_dlopen" != xno; then
10800 enable_dlopen=yes
10801 else
10802 enable_dlopen=no
10803 fi
10804
10805 case $lt_cv_dlopen in
10806 dlopen)
10807 save_CPPFLAGS="$CPPFLAGS"
10808 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10809
10810 save_LDFLAGS="$LDFLAGS"
10811 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10812
10813 save_LIBS="$LIBS"
10814 LIBS="$lt_cv_dlopen_libs $LIBS"
10815
10816 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10817 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10818 if test "${lt_cv_dlopen_self+set}" = set; then
10819 $as_echo_n "(cached) " >&6
10820 else
10821 if test "$cross_compiling" = yes; then :
10822 lt_cv_dlopen_self=cross
10823 else
10824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10825 lt_status=$lt_dlunknown
10826 cat > conftest.$ac_ext <<_LT_EOF
10827 #line 10827 "configure"
10828 #include "confdefs.h"
10829
10830 #if HAVE_DLFCN_H
10831 #include <dlfcn.h>
10832 #endif
10833
10834 #include <stdio.h>
10835
10836 #ifdef RTLD_GLOBAL
10837 # define LT_DLGLOBAL RTLD_GLOBAL
10838 #else
10839 # ifdef DL_GLOBAL
10840 # define LT_DLGLOBAL DL_GLOBAL
10841 # else
10842 # define LT_DLGLOBAL 0
10843 # endif
10844 #endif
10845
10846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10847 find out it does not work in some platform. */
10848 #ifndef LT_DLLAZY_OR_NOW
10849 # ifdef RTLD_LAZY
10850 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10851 # else
10852 # ifdef DL_LAZY
10853 # define LT_DLLAZY_OR_NOW DL_LAZY
10854 # else
10855 # ifdef RTLD_NOW
10856 # define LT_DLLAZY_OR_NOW RTLD_NOW
10857 # else
10858 # ifdef DL_NOW
10859 # define LT_DLLAZY_OR_NOW DL_NOW
10860 # else
10861 # define LT_DLLAZY_OR_NOW 0
10862 # endif
10863 # endif
10864 # endif
10865 # endif
10866 #endif
10867
10868 void fnord() { int i=42;}
10869 int main ()
10870 {
10871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10872 int status = $lt_dlunknown;
10873
10874 if (self)
10875 {
10876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10877 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10878 /* dlclose (self); */
10879 }
10880 else
10881 puts (dlerror ());
10882
10883 return status;
10884 }
10885 _LT_EOF
10886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10887 (eval $ac_link) 2>&5
10888 ac_status=$?
10889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10891 (./conftest; exit; ) >&5 2>/dev/null
10892 lt_status=$?
10893 case x$lt_status in
10894 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10895 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10896 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10897 esac
10898 else :
10899 # compilation failed
10900 lt_cv_dlopen_self=no
10901 fi
10902 fi
10903 rm -fr conftest*
10904
10905
10906 fi
10907 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10908 $as_echo "$lt_cv_dlopen_self" >&6; }
10909
10910 if test "x$lt_cv_dlopen_self" = xyes; then
10911 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10912 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10913 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10914 if test "${lt_cv_dlopen_self_static+set}" = set; then
10915 $as_echo_n "(cached) " >&6
10916 else
10917 if test "$cross_compiling" = yes; then :
10918 lt_cv_dlopen_self_static=cross
10919 else
10920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10921 lt_status=$lt_dlunknown
10922 cat > conftest.$ac_ext <<_LT_EOF
10923 #line 10923 "configure"
10924 #include "confdefs.h"
10925
10926 #if HAVE_DLFCN_H
10927 #include <dlfcn.h>
10928 #endif
10929
10930 #include <stdio.h>
10931
10932 #ifdef RTLD_GLOBAL
10933 # define LT_DLGLOBAL RTLD_GLOBAL
10934 #else
10935 # ifdef DL_GLOBAL
10936 # define LT_DLGLOBAL DL_GLOBAL
10937 # else
10938 # define LT_DLGLOBAL 0
10939 # endif
10940 #endif
10941
10942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10943 find out it does not work in some platform. */
10944 #ifndef LT_DLLAZY_OR_NOW
10945 # ifdef RTLD_LAZY
10946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10947 # else
10948 # ifdef DL_LAZY
10949 # define LT_DLLAZY_OR_NOW DL_LAZY
10950 # else
10951 # ifdef RTLD_NOW
10952 # define LT_DLLAZY_OR_NOW RTLD_NOW
10953 # else
10954 # ifdef DL_NOW
10955 # define LT_DLLAZY_OR_NOW DL_NOW
10956 # else
10957 # define LT_DLLAZY_OR_NOW 0
10958 # endif
10959 # endif
10960 # endif
10961 # endif
10962 #endif
10963
10964 void fnord() { int i=42;}
10965 int main ()
10966 {
10967 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10968 int status = $lt_dlunknown;
10969
10970 if (self)
10971 {
10972 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10973 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10974 /* dlclose (self); */
10975 }
10976 else
10977 puts (dlerror ());
10978
10979 return status;
10980 }
10981 _LT_EOF
10982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983 (eval $ac_link) 2>&5
10984 ac_status=$?
10985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10987 (./conftest; exit; ) >&5 2>/dev/null
10988 lt_status=$?
10989 case x$lt_status in
10990 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10991 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10992 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10993 esac
10994 else :
10995 # compilation failed
10996 lt_cv_dlopen_self_static=no
10997 fi
10998 fi
10999 rm -fr conftest*
11000
11001
11002 fi
11003 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11004 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11005 fi
11006
11007 CPPFLAGS="$save_CPPFLAGS"
11008 LDFLAGS="$save_LDFLAGS"
11009 LIBS="$save_LIBS"
11010 ;;
11011 esac
11012
11013 case $lt_cv_dlopen_self in
11014 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11015 *) enable_dlopen_self=unknown ;;
11016 esac
11017
11018 case $lt_cv_dlopen_self_static in
11019 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11020 *) enable_dlopen_self_static=unknown ;;
11021 esac
11022 fi
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040 striplib=
11041 old_striplib=
11042 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11043 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11044 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11045 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11046 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11047 { $as_echo "$as_me:$LINENO: result: yes" >&5
11048 $as_echo "yes" >&6; }
11049 else
11050 # FIXME - insert some real tests, host_os isn't really good enough
11051 case $host_os in
11052 darwin*)
11053 if test -n "$STRIP" ; then
11054 striplib="$STRIP -x"
11055 old_striplib="$STRIP -S"
11056 { $as_echo "$as_me:$LINENO: result: yes" >&5
11057 $as_echo "yes" >&6; }
11058 else
11059 { $as_echo "$as_me:$LINENO: result: no" >&5
11060 $as_echo "no" >&6; }
11061 fi
11062 ;;
11063 *)
11064 { $as_echo "$as_me:$LINENO: result: no" >&5
11065 $as_echo "no" >&6; }
11066 ;;
11067 esac
11068 fi
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081 # Report which library types will actually be built
11082 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11083 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11084 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11085 $as_echo "$can_build_shared" >&6; }
11086
11087 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11088 $as_echo_n "checking whether to build shared libraries... " >&6; }
11089 test "$can_build_shared" = "no" && enable_shared=no
11090
11091 # On AIX, shared libraries and static libraries use the same namespace, and
11092 # are all built from PIC.
11093 case $host_os in
11094 aix3*)
11095 test "$enable_shared" = yes && enable_static=no
11096 if test -n "$RANLIB"; then
11097 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11098 postinstall_cmds='$RANLIB $lib'
11099 fi
11100 ;;
11101
11102 aix[4-9]*)
11103 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11104 test "$enable_shared" = yes && enable_static=no
11105 fi
11106 ;;
11107 esac
11108 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11109 $as_echo "$enable_shared" >&6; }
11110
11111 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11112 $as_echo_n "checking whether to build static libraries... " >&6; }
11113 # Make sure either enable_shared or enable_static is yes.
11114 test "$enable_shared" = yes || enable_static=yes
11115 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11116 $as_echo "$enable_static" >&6; }
11117
11118
11119
11120
11121 fi
11122 ac_ext=c
11123 ac_cpp='$CPP $CPPFLAGS'
11124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11127
11128 CC="$lt_save_CC"
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142 ac_config_commands="$ac_config_commands libtool"
11143
11144
11145
11146
11147 # Only expand once:
11148
11149
11150 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11151 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11152 if test "${ac_cv_path_SED+set}" = set; then
11153 $as_echo_n "(cached) " >&6
11154 else
11155 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11156 for ac_i in 1 2 3 4 5 6 7; do
11157 ac_script="$ac_script$as_nl$ac_script"
11158 done
11159 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11160 $as_unset ac_script || ac_script=
11161 if test -z "$SED"; then
11162 ac_path_SED_found=false
11163 # Loop through the user's path and test for each of PROGNAME-LIST
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11166 do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_prog in sed gsed; do
11170 for ac_exec_ext in '' $ac_executable_extensions; do
11171 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11172 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11173 # Check for GNU ac_path_SED and select it if it is found.
11174 # Check for GNU $ac_path_SED
11175 case `"$ac_path_SED" --version 2>&1` in
11176 *GNU*)
11177 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11178 *)
11179 ac_count=0
11180 $as_echo_n 0123456789 >"conftest.in"
11181 while :
11182 do
11183 cat "conftest.in" "conftest.in" >"conftest.tmp"
11184 mv "conftest.tmp" "conftest.in"
11185 cp "conftest.in" "conftest.nl"
11186 $as_echo '' >> "conftest.nl"
11187 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11189 ac_count=`expr $ac_count + 1`
11190 if test $ac_count -gt ${ac_path_SED_max-0}; then
11191 # Best one so far, save it but keep looking for a better one
11192 ac_cv_path_SED="$ac_path_SED"
11193 ac_path_SED_max=$ac_count
11194 fi
11195 # 10*(2^10) chars as input seems more than enough
11196 test $ac_count -gt 10 && break
11197 done
11198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11199 esac
11200
11201 $ac_path_SED_found && break 3
11202 done
11203 done
11204 done
11205 IFS=$as_save_IFS
11206 if test -z "$ac_cv_path_SED"; then
11207 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
11208 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
11209 { (exit 1); exit 1; }; }
11210 fi
11211 else
11212 ac_cv_path_SED=$SED
11213 fi
11214
11215 fi
11216 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
11217 $as_echo "$ac_cv_path_SED" >&6; }
11218 SED="$ac_cv_path_SED"
11219 rm -f conftest.sed
11220
11221 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
11222 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11223 if test "${ac_cv_prog_cc_c99+set}" = set; then
11224 $as_echo_n "(cached) " >&6
11225 else
11226 ac_cv_prog_cc_c99=no
11227 ac_save_CC=$CC
11228 cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h. */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 #include <stdarg.h>
11235 #include <stdbool.h>
11236 #include <stdlib.h>
11237 #include <wchar.h>
11238 #include <stdio.h>
11239
11240 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11241 #define debug(...) fprintf (stderr, __VA_ARGS__)
11242 #define showlist(...) puts (#__VA_ARGS__)
11243 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11244 static void
11245 test_varargs_macros (void)
11246 {
11247 int x = 1234;
11248 int y = 5678;
11249 debug ("Flag");
11250 debug ("X = %d\n", x);
11251 showlist (The first, second, and third items.);
11252 report (x>y, "x is %d but y is %d", x, y);
11253 }
11254
11255 // Check long long types.
11256 #define BIG64 18446744073709551615ull
11257 #define BIG32 4294967295ul
11258 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11259 #if !BIG_OK
11260 your preprocessor is broken;
11261 #endif
11262 #if BIG_OK
11263 #else
11264 your preprocessor is broken;
11265 #endif
11266 static long long int bignum = -9223372036854775807LL;
11267 static unsigned long long int ubignum = BIG64;
11268
11269 struct incomplete_array
11270 {
11271 int datasize;
11272 double data[];
11273 };
11274
11275 struct named_init {
11276 int number;
11277 const wchar_t *name;
11278 double average;
11279 };
11280
11281 typedef const char *ccp;
11282
11283 static inline int
11284 test_restrict (ccp restrict text)
11285 {
11286 // See if C++-style comments work.
11287 // Iterate through items via the restricted pointer.
11288 // Also check for declarations in for loops.
11289 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11290 continue;
11291 return 0;
11292 }
11293
11294 // Check varargs and va_copy.
11295 static void
11296 test_varargs (const char *format, ...)
11297 {
11298 va_list args;
11299 va_start (args, format);
11300 va_list args_copy;
11301 va_copy (args_copy, args);
11302
11303 const char *str;
11304 int number;
11305 float fnumber;
11306
11307 while (*format)
11308 {
11309 switch (*format++)
11310 {
11311 case 's': // string
11312 str = va_arg (args_copy, const char *);
11313 break;
11314 case 'd': // int
11315 number = va_arg (args_copy, int);
11316 break;
11317 case 'f': // float
11318 fnumber = va_arg (args_copy, double);
11319 break;
11320 default:
11321 break;
11322 }
11323 }
11324 va_end (args_copy);
11325 va_end (args);
11326 }
11327
11328 int
11329 main ()
11330 {
11331
11332 // Check bool.
11333 _Bool success = false;
11334
11335 // Check restrict.
11336 if (test_restrict ("String literal") == 0)
11337 success = true;
11338 char *restrict newvar = "Another string";
11339
11340 // Check varargs.
11341 test_varargs ("s, d' f .", "string", 65, 34.234);
11342 test_varargs_macros ();
11343
11344 // Check flexible array members.
11345 struct incomplete_array *ia =
11346 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11347 ia->datasize = 10;
11348 for (int i = 0; i < ia->datasize; ++i)
11349 ia->data[i] = i * 1.234;
11350
11351 // Check named initializers.
11352 struct named_init ni = {
11353 .number = 34,
11354 .name = L"Test wide string",
11355 .average = 543.34343,
11356 };
11357
11358 ni.number = 58;
11359
11360 int dynamic_array[ni.number];
11361 dynamic_array[ni.number - 1] = 543;
11362
11363 // work around unused variable warnings
11364 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11365 || dynamic_array[ni.number - 1] != 543);
11366
11367 ;
11368 return 0;
11369 }
11370 _ACEOF
11371 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11372 do
11373 CC="$ac_save_CC $ac_arg"
11374 rm -f conftest.$ac_objext
11375 if { (ac_try="$ac_compile"
11376 case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379 esac
11380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11381 $as_echo "$ac_try_echo") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest.$ac_objext; then
11392 ac_cv_prog_cc_c99=$ac_arg
11393 else
11394 $as_echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397
11398 fi
11399
11400 rm -f core conftest.err conftest.$ac_objext
11401 test "x$ac_cv_prog_cc_c99" != "xno" && break
11402 done
11403 rm -f conftest.$ac_ext
11404 CC=$ac_save_CC
11405
11406 fi
11407 # AC_CACHE_VAL
11408 case "x$ac_cv_prog_cc_c99" in
11409 x)
11410 { $as_echo "$as_me:$LINENO: result: none needed" >&5
11411 $as_echo "none needed" >&6; } ;;
11412 xno)
11413 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11414 $as_echo "unsupported" >&6; } ;;
11415 *)
11416 CC="$CC $ac_cv_prog_cc_c99"
11417 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
11418 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11419 esac
11420
11421
11422
11423
11424
11425
11426 if test "x$GCC" = xyes ; then
11427 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11428 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11429 -Wbad-function-cast"
11430 case `$CC -dumpversion` in
11431 3.4.* | 4.*)
11432 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11433 ;;
11434 esac
11435 else
11436 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11437 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11438 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11439 $as_echo_n "(cached) " >&6
11440 else
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11448 int
11449 main ()
11450 {
11451 #ifndef __SUNPRO_C
11452 (void) __SUNPRO_C;
11453 #endif
11454
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext
11460 if { (ac_try="$ac_compile"
11461 case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464 esac
11465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11466 $as_echo "$ac_try_echo") >&5
11467 (eval "$ac_compile") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest.$ac_objext; then
11477 ac_cv_have_decl___SUNPRO_C=yes
11478 else
11479 $as_echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482 ac_cv_have_decl___SUNPRO_C=no
11483 fi
11484
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 fi
11487 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11488 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11489 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11490 SUNCC="yes"
11491 else
11492 SUNCC="no"
11493 fi
11494
11495 if test "x$SUNCC" = "xyes"; then
11496 CWARNFLAGS="-v"
11497 fi
11498 fi
11499
11500 # Check whether --enable-silent-rules was given.
11501 if test "${enable_silent_rules+set}" = set; then
11502 enableval=$enable_silent_rules;
11503 fi
11504
11505 case $enable_silent_rules in
11506 yes) AM_DEFAULT_VERBOSITY=0;;
11507 no) AM_DEFAULT_VERBOSITY=1;;
11508 *) AM_DEFAULT_VERBOSITY=0;;
11509 esac
11510 AM_BACKSLASH='\'
11511
11512
11513
11514
11515
11516
11517
11518 # Check whether --enable-strict-compilation was given.
11519 if test "${enable_strict_compilation+set}" = set; then
11520 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11521 else
11522 STRICT_COMPILE=no
11523 fi
11524
11525 if test "x$STRICT_COMPILE" = "xyes"; then
11526 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11527 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11528 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11529 $as_echo_n "(cached) " >&6
11530 else
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h. */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 $ac_includes_default
11538 int
11539 main ()
11540 {
11541 #ifndef __SUNPRO_C
11542 (void) __SUNPRO_C;
11543 #endif
11544
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext
11550 if { (ac_try="$ac_compile"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11556 $as_echo "$ac_try_echo") >&5
11557 (eval "$ac_compile") 2>conftest.er1
11558 ac_status=$?
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
11562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && {
11564 test -z "$ac_c_werror_flag" ||
11565 test ! -s conftest.err
11566 } && test -s conftest.$ac_objext; then
11567 ac_cv_have_decl___SUNPRO_C=yes
11568 else
11569 $as_echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ac_cv_have_decl___SUNPRO_C=no
11573 fi
11574
11575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576 fi
11577 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11578 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11579 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11580 SUNCC="yes"
11581 else
11582 SUNCC="no"
11583 fi
11584
11585 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
11586 $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
11587 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
11588 $as_echo_n "(cached) " >&6
11589 else
11590 cat >conftest.$ac_ext <<_ACEOF
11591 /* confdefs.h. */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596 $ac_includes_default
11597 int
11598 main ()
11599 {
11600 #ifndef __INTEL_COMPILER
11601 (void) __INTEL_COMPILER;
11602 #endif
11603
11604 ;
11605 return 0;
11606 }
11607 _ACEOF
11608 rm -f conftest.$ac_objext
11609 if { (ac_try="$ac_compile"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613 esac
11614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11615 $as_echo "$ac_try_echo") >&5
11616 (eval "$ac_compile") 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest.$ac_objext; then
11626 ac_cv_have_decl___INTEL_COMPILER=yes
11627 else
11628 $as_echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 ac_cv_have_decl___INTEL_COMPILER=no
11632 fi
11633
11634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635 fi
11636 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
11637 $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
11638 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
11639 INTELCC="yes"
11640 else
11641 INTELCC="no"
11642 fi
11643
11644 if test "x$GCC" = xyes ; then
11645 STRICT_CFLAGS="-pedantic -Werror"
11646 elif test "x$SUNCC" = "xyes"; then
11647 STRICT_CFLAGS="-errwarn"
11648 elif test "x$INTELCC" = "xyes"; then
11649 STRICT_CFLAGS="-Werror"
11650 fi
11651 fi
11652 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11653
11654
11655
11656
11657 # Check whether --with-release-version was given.
11658 if test "${with_release_version+set}" = set; then
11659 withval=$with_release_version; RELEASE_VERSION="$withval"
11660 else
11661 RELEASE_VERSION=""
11662 fi
11663
11664 if test "x$RELEASE_VERSION" != "x"; then
11665 PACKAGE="$PACKAGE-$RELEASE_VERSION"
11666 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
11667 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
11668 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
11669 fi
11670
11671 cat >>confdefs.h <<_ACEOF
11672 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11673 _ACEOF
11674
11675 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11676 if test "x$PVM" = "x"; then
11677 PVM="0"
11678 fi
11679
11680 cat >>confdefs.h <<_ACEOF
11681 #define PACKAGE_VERSION_MINOR $PVM
11682 _ACEOF
11683
11684 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11685 if test "x$PVP" = "x"; then
11686 PVP="0"
11687 fi
11688
11689 cat >>confdefs.h <<_ACEOF
11690 #define PACKAGE_VERSION_PATCHLEVEL $PVP
11691 _ACEOF
11692
11693
11694
11695 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
11696 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
11697 echo 'git directory not found: installing possibly empty changelog.' >&2)"
11698
11699 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
11700
11701
11702
11703
11704
11705 if test x$APP_MAN_SUFFIX = x ; then
11706 APP_MAN_SUFFIX=1
11707 fi
11708 if test x$APP_MAN_DIR = x ; then
11709 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11710 fi
11711
11712 if test x$LIB_MAN_SUFFIX = x ; then
11713 LIB_MAN_SUFFIX=3
11714 fi
11715 if test x$LIB_MAN_DIR = x ; then
11716 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11717 fi
11718
11719 if test x$FILE_MAN_SUFFIX = x ; then
11720 case $host_os in
11721 solaris*) FILE_MAN_SUFFIX=4 ;;
11722 *) FILE_MAN_SUFFIX=5 ;;
11723 esac
11724 fi
11725 if test x$FILE_MAN_DIR = x ; then
11726 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11727 fi
11728
11729 if test x$MISC_MAN_SUFFIX = x ; then
11730 case $host_os in
11731 solaris*) MISC_MAN_SUFFIX=5 ;;
11732 *) MISC_MAN_SUFFIX=7 ;;
11733 esac
11734 fi
11735 if test x$MISC_MAN_DIR = x ; then
11736 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11737 fi
11738
11739 if test x$DRIVER_MAN_SUFFIX = x ; then
11740 case $host_os in
11741 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11742 *) DRIVER_MAN_SUFFIX=4 ;;
11743 esac
11744 fi
11745 if test x$DRIVER_MAN_DIR = x ; then
11746 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11747 fi
11748
11749 if test x$ADMIN_MAN_SUFFIX = x ; then
11750 case $host_os in
11751 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11752 *) ADMIN_MAN_SUFFIX=8 ;;
11753 esac
11754 fi
11755 if test x$ADMIN_MAN_DIR = x ; then
11756 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11757 fi
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775 # Checks for pkg-config packages
11776
11777
11778 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11779 if test -n "$ac_tool_prefix"; then
11780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11785 $as_echo_n "(cached) " >&6
11786 else
11787 case $PKG_CONFIG in
11788 [\\/]* | ?:[\\/]*)
11789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11790 ;;
11791 *)
11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11794 do
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11801 break 2
11802 fi
11803 done
11804 done
11805 IFS=$as_save_IFS
11806
11807 ;;
11808 esac
11809 fi
11810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11811 if test -n "$PKG_CONFIG"; then
11812 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11813 $as_echo "$PKG_CONFIG" >&6; }
11814 else
11815 { $as_echo "$as_me:$LINENO: result: no" >&5
11816 $as_echo "no" >&6; }
11817 fi
11818
11819
11820 fi
11821 if test -z "$ac_cv_path_PKG_CONFIG"; then
11822 ac_pt_PKG_CONFIG=$PKG_CONFIG
11823 # Extract the first word of "pkg-config", so it can be a program name with args.
11824 set dummy pkg-config; ac_word=$2
11825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11828 $as_echo_n "(cached) " >&6
11829 else
11830 case $ac_pt_PKG_CONFIG in
11831 [\\/]* | ?:[\\/]*)
11832 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11833 ;;
11834 *)
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11837 do
11838 IFS=$as_save_IFS
11839 test -z "$as_dir" && as_dir=.
11840 for ac_exec_ext in '' $ac_executable_extensions; do
11841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11844 break 2
11845 fi
11846 done
11847 done
11848 IFS=$as_save_IFS
11849
11850 ;;
11851 esac
11852 fi
11853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11854 if test -n "$ac_pt_PKG_CONFIG"; then
11855 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11857 else
11858 { $as_echo "$as_me:$LINENO: result: no" >&5
11859 $as_echo "no" >&6; }
11860 fi
11861
11862 if test "x$ac_pt_PKG_CONFIG" = x; then
11863 PKG_CONFIG=""
11864 else
11865 case $cross_compiling:$ac_tool_warned in
11866 yes:)
11867 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11869 ac_tool_warned=yes ;;
11870 esac
11871 PKG_CONFIG=$ac_pt_PKG_CONFIG
11872 fi
11873 else
11874 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11875 fi
11876
11877 fi
11878 if test -n "$PKG_CONFIG"; then
11879 _pkg_min_version=0.9.0
11880 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11881 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11883 { $as_echo "$as_me:$LINENO: result: yes" >&5
11884 $as_echo "yes" >&6; }
11885 else
11886 { $as_echo "$as_me:$LINENO: result: no" >&5
11887 $as_echo "no" >&6; }
11888 PKG_CONFIG=""
11889 fi
11890
11891 fi
11892
11893 pkg_failed=no
11894 { $as_echo "$as_me:$LINENO: checking for XI" >&5
11895 $as_echo_n "checking for XI... " >&6; }
11896
11897 if test -n "$XI_CFLAGS"; then
11898 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
11899 elif test -n "$PKG_CONFIG"; then
11900 if test -n "$PKG_CONFIG" && \
11901 { ($as_echo "$as_me:$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
11902 ($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
11903 ac_status=$?
11904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; then
11906 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`
11907 else
11908 pkg_failed=yes
11909 fi
11910 else
11911 pkg_failed=untried
11912 fi
11913 if test -n "$XI_LIBS"; then
11914 pkg_cv_XI_LIBS="$XI_LIBS"
11915 elif test -n "$PKG_CONFIG"; then
11916 if test -n "$PKG_CONFIG" && \
11917 { ($as_echo "$as_me:$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
11918 ($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
11919 ac_status=$?
11920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; then
11922 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`
11923 else
11924 pkg_failed=yes
11925 fi
11926 else
11927 pkg_failed=untried
11928 fi
11929
11930
11931
11932 if test $pkg_failed = yes; then
11933
11934 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11935 _pkg_short_errors_supported=yes
11936 else
11937 _pkg_short_errors_supported=no
11938 fi
11939 if test $_pkg_short_errors_supported = yes; then
11940 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`
11941 else
11942 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`
11943 fi
11944 # Put the nasty error message in config.log where it belongs
11945 echo "$XI_PKG_ERRORS" >&5
11946
11947 { { $as_echo "$as_me:$LINENO: 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:
11948
11949 $XI_PKG_ERRORS
11950
11951 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11952 installed software in a non-standard prefix.
11953
11954 Alternatively, you may set the environment variables XI_CFLAGS
11955 and XI_LIBS to avoid the need to call pkg-config.
11956 See the pkg-config man page for more details.
11957 " >&5
11958 $as_echo "$as_me: 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:
11959
11960 $XI_PKG_ERRORS
11961
11962 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11963 installed software in a non-standard prefix.
11964
11965 Alternatively, you may set the environment variables XI_CFLAGS
11966 and XI_LIBS to avoid the need to call pkg-config.
11967 See the pkg-config man page for more details.
11968 " >&2;}
11969 { (exit 1); exit 1; }; }
11970 elif test $pkg_failed = untried; then
11971 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11973 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11974 is in your PATH or set the PKG_CONFIG environment variable to the full
11975 path to pkg-config.
11976
11977 Alternatively, you may set the environment variables XI_CFLAGS
11978 and XI_LIBS to avoid the need to call pkg-config.
11979 See the pkg-config man page for more details.
11980
11981 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11982 See \`config.log' for more details." >&5
11983 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11984 is in your PATH or set the PKG_CONFIG environment variable to the full
11985 path to pkg-config.
11986
11987 Alternatively, you may set the environment variables XI_CFLAGS
11988 and XI_LIBS to avoid the need to call pkg-config.
11989 See the pkg-config man page for more details.
11990
11991 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11992 See \`config.log' for more details." >&2;}
11993 { (exit 1); exit 1; }; }; }
11994 else
11995 XI_CFLAGS=$pkg_cv_XI_CFLAGS
11996 XI_LIBS=$pkg_cv_XI_LIBS
11997 { $as_echo "$as_me:$LINENO: result: yes" >&5
11998 $as_echo "yes" >&6; }
11999 :
12000 fi
12001 XI_CFLAGS="$CWARNFLAGS $XI_CFLAGS"
12002
12003
12004
12005 # Check for xmlto and asciidoc for man page conversion
12006 # (only needed by people building tarballs)
12007
12008 # Extract the first word of "xmlto", so it can be a program name with args.
12009 set dummy xmlto; ac_word=$2
12010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if test "${ac_cv_path_XMLTO+set}" = set; then
12013 $as_echo_n "(cached) " >&6
12014 else
12015 case $XMLTO in
12016 [\\/]* | ?:[\\/]*)
12017 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12018 ;;
12019 *)
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12022 do
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12027 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 break 2
12030 fi
12031 done
12032 done
12033 IFS=$as_save_IFS
12034
12035 ;;
12036 esac
12037 fi
12038 XMLTO=$ac_cv_path_XMLTO
12039 if test -n "$XMLTO"; then
12040 { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5
12041 $as_echo "$XMLTO" >&6; }
12042 else
12043 { $as_echo "$as_me:$LINENO: result: no" >&5
12044 $as_echo "no" >&6; }
12045 fi
12046
12047
12048
12049 # Extract the first word of "asciidoc", so it can be a program name with args.
12050 set dummy asciidoc; ac_word=$2
12051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if test "${ac_cv_path_ASCIIDOC+set}" = set; then
12054 $as_echo_n "(cached) " >&6
12055 else
12056 case $ASCIIDOC in
12057 [\\/]* | ?:[\\/]*)
12058 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
12059 ;;
12060 *)
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12068 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
12069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12071 fi
12072 done
12073 done
12074 IFS=$as_save_IFS
12075
12076 ;;
12077 esac
12078 fi
12079 ASCIIDOC=$ac_cv_path_ASCIIDOC
12080 if test -n "$ASCIIDOC"; then
12081 { $as_echo "$as_me:$LINENO: result: $ASCIIDOC" >&5
12082 $as_echo "$ASCIIDOC" >&6; }
12083 else
12084 { $as_echo "$as_me:$LINENO: result: no" >&5
12085 $as_echo "no" >&6; }
12086 fi
12087
12088
12089 if test "x$XMLTO" != "x" && test "x$ASCIIDOC" != "x"; then
12090 HAVE_DOCTOOLS_TRUE=
12091 HAVE_DOCTOOLS_FALSE='#'
12092 else
12093 HAVE_DOCTOOLS_TRUE='#'
12094 HAVE_DOCTOOLS_FALSE=
12095 fi
12096
12097 if test "x$XMLTO" = "x" || test "x$ASCIIDOC" = "x"; then
12098 { $as_echo "$as_me:$LINENO: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
12099 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
12100 fi
12101
12102
12103 # Check whether --enable-malloc0returnsnull was given.
12104 if test "${enable_malloc0returnsnull+set}" = set; then
12105 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12106 else
12107 MALLOC_ZERO_RETURNS_NULL=auto
12108 fi
12109
12110
12111 { $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
12112 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12113 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12114 if test "$cross_compiling" = yes; then
12115 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12117 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12118 See \`config.log' for more details." >&5
12119 $as_echo "$as_me: error: cannot run test program while cross compiling
12120 See \`config.log' for more details." >&2;}
12121 { (exit 1); exit 1; }; }; }
12122 else
12123 cat >conftest.$ac_ext <<_ACEOF
12124
12125 char *malloc();
12126 char *realloc();
12127 char *calloc();
12128 main() {
12129 char *m0, *r0, *c0, *p;
12130 m0 = malloc(0);
12131 p = malloc(10);
12132 r0 = realloc(p,0);
12133 c0 = calloc(0);
12134 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12135 }
12136 _ACEOF
12137 rm -f conftest$ac_exeext
12138 if { (ac_try="$ac_link"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142 esac
12143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12144 $as_echo "$ac_try_echo") >&5
12145 (eval "$ac_link") 2>&5
12146 ac_status=$?
12147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152 esac
12153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12154 $as_echo "$ac_try_echo") >&5
12155 (eval "$ac_try") 2>&5
12156 ac_status=$?
12157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12159 MALLOC_ZERO_RETURNS_NULL=yes
12160 else
12161 $as_echo "$as_me: program exited with status $ac_status" >&5
12162 $as_echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12164
12165 ( exit $ac_status )
12166 MALLOC_ZERO_RETURNS_NULL=no
12167 fi
12168 rm -rf conftest.dSYM
12169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12170 fi
12171
12172
12173 fi
12174 { $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12175 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12176
12177 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12178 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12179 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12180 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12181 else
12182 MALLOC_ZERO_CFLAGS=""
12183 XMALLOC_ZERO_CFLAGS=""
12184 XTMALLOC_ZERO_CFLAGS=""
12185 fi
12186
12187
12188
12189
12190
12191
12192 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xi.pc"
12193
12194 cat >confcache <<\_ACEOF
12195 # This file is a shell script that caches the results of configure
12196 # tests run on this system so they can be shared between configure
12197 # scripts and configure runs, see configure's option --config-cache.
12198 # It is not useful on other systems. If it contains results you don't
12199 # want to keep, you may remove or edit it.
12200 #
12201 # config.status only pays attention to the cache file if you give it
12202 # the --recheck option to rerun configure.
12203 #
12204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12206 # following values.
12207
12208 _ACEOF
12209
12210 # The following way of writing the cache mishandles newlines in values,
12211 # but we know of no workaround that is simple, portable, and efficient.
12212 # So, we kill variables containing newlines.
12213 # Ultrix sh set writes to stderr and can't be redirected directly,
12214 # and sets the high bit in the cache file unless we assign to the vars.
12215 (
12216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12217 eval ac_val=\$$ac_var
12218 case $ac_val in #(
12219 *${as_nl}*)
12220 case $ac_var in #(
12221 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12223 esac
12224 case $ac_var in #(
12225 _ | IFS | as_nl) ;; #(
12226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12227 *) $as_unset $ac_var ;;
12228 esac ;;
12229 esac
12230 done
12231
12232 (set) 2>&1 |
12233 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12234 *${as_nl}ac_space=\ *)
12235 # `set' does not quote correctly, so add quotes (double-quote
12236 # substitution turns \\\\ into \\, and sed turns \\ into \).
12237 sed -n \
12238 "s/'/'\\\\''/g;
12239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12240 ;; #(
12241 *)
12242 # `set' quotes correctly as required by POSIX, so do not add quotes.
12243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12244 ;;
12245 esac |
12246 sort
12247 ) |
12248 sed '
12249 /^ac_cv_env_/b end
12250 t clear
12251 :clear
12252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12253 t end
12254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12255 :end' >>confcache
12256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12257 if test -w "$cache_file"; then
12258 test "x$cache_file" != "x/dev/null" &&
12259 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12260 $as_echo "$as_me: updating cache $cache_file" >&6;}
12261 cat confcache >$cache_file
12262 else
12263 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12265 fi
12266 fi
12267 rm -f confcache
12268
12269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12270 # Let make expand exec_prefix.
12271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12272
12273 DEFS=-DHAVE_CONFIG_H
12274
12275 ac_libobjs=
12276 ac_ltlibobjs=
12277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12278 # 1. Remove the extension, and $U if already installed.
12279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12282 # will be set to the directory where LIBOBJS objects are built.
12283 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12284 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12285 done
12286 LIBOBJS=$ac_libobjs
12287
12288 LTLIBOBJS=$ac_ltlibobjs
12289
12290
12291 if test -n "$EXEEXT"; then
12292 am__EXEEXT_TRUE=
12293 am__EXEEXT_FALSE='#'
12294 else
12295 am__EXEEXT_TRUE='#'
12296 am__EXEEXT_FALSE=
12297 fi
12298
12299 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12300 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12301 Usually this means the macro was only invoked conditionally." >&5
12302 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12303 Usually this means the macro was only invoked conditionally." >&2;}
12304 { (exit 1); exit 1; }; }
12305 fi
12306 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12307 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12308 Usually this means the macro was only invoked conditionally." >&5
12309 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12310 Usually this means the macro was only invoked conditionally." >&2;}
12311 { (exit 1); exit 1; }; }
12312 fi
12313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12314 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12315 Usually this means the macro was only invoked conditionally." >&5
12316 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12317 Usually this means the macro was only invoked conditionally." >&2;}
12318 { (exit 1); exit 1; }; }
12319 fi
12320 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
12321 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOCTOOLS\" was never defined.
12322 Usually this means the macro was only invoked conditionally." >&5
12323 $as_echo "$as_me: error: conditional \"HAVE_DOCTOOLS\" was never defined.
12324 Usually this means the macro was only invoked conditionally." >&2;}
12325 { (exit 1); exit 1; }; }
12326 fi
12327
12328 : ${CONFIG_STATUS=./config.status}
12329 ac_write_fail=0
12330 ac_clean_files_save=$ac_clean_files
12331 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12332 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12333 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12334 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12335 #! $SHELL
12336 # Generated by $as_me.
12337 # Run this file to recreate the current configuration.
12338 # Compiler output produced by configure, useful for debugging
12339 # configure, is in config.log if it exists.
12340
12341 debug=false
12342 ac_cs_recheck=false
12343 ac_cs_silent=false
12344 SHELL=\${CONFIG_SHELL-$SHELL}
12345 _ACEOF
12346
12347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12348 ## --------------------- ##
12349 ## M4sh Initialization. ##
12350 ## --------------------- ##
12351
12352 # Be more Bourne compatible
12353 DUALCASE=1; export DUALCASE # for MKS sh
12354 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12355 emulate sh
12356 NULLCMD=:
12357 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12358 # is contrary to our usage. Disable this feature.
12359 alias -g '${1+"$@"}'='"$@"'
12360 setopt NO_GLOB_SUBST
12361 else
12362 case `(set -o) 2>/dev/null` in
12363 *posix*) set -o posix ;;
12364 esac
12365
12366 fi
12367
12368
12369
12370
12371 # PATH needs CR
12372 # Avoid depending upon Character Ranges.
12373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12376 as_cr_digits='0123456789'
12377 as_cr_alnum=$as_cr_Letters$as_cr_digits
12378
12379 as_nl='
12380 '
12381 export as_nl
12382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12386 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12387 as_echo='printf %s\n'
12388 as_echo_n='printf %s'
12389 else
12390 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12391 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12392 as_echo_n='/usr/ucb/echo -n'
12393 else
12394 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12395 as_echo_n_body='eval
12396 arg=$1;
12397 case $arg in
12398 *"$as_nl"*)
12399 expr "X$arg" : "X\\(.*\\)$as_nl";
12400 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12401 esac;
12402 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12403 '
12404 export as_echo_n_body
12405 as_echo_n='sh -c $as_echo_n_body as_echo'
12406 fi
12407 export as_echo_body
12408 as_echo='sh -c $as_echo_body as_echo'
12409 fi
12410
12411 # The user is always right.
12412 if test "${PATH_SEPARATOR+set}" != set; then
12413 PATH_SEPARATOR=:
12414 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12415 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12416 PATH_SEPARATOR=';'
12417 }
12418 fi
12419
12420 # Support unset when possible.
12421 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12422 as_unset=unset
12423 else
12424 as_unset=false
12425 fi
12426
12427
12428 # IFS
12429 # We need space, tab and new line, in precisely that order. Quoting is
12430 # there to prevent editors from complaining about space-tab.
12431 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12432 # splitting by setting IFS to empty value.)
12433 IFS=" "" $as_nl"
12434
12435 # Find who we are. Look in the path if we contain no directory separator.
12436 case $0 in
12437 *[\\/]* ) as_myself=$0 ;;
12438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12440 do
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12444 done
12445 IFS=$as_save_IFS
12446
12447 ;;
12448 esac
12449 # We did not find ourselves, most probably we were run as `sh COMMAND'
12450 # in which case we are not to be found in the path.
12451 if test "x$as_myself" = x; then
12452 as_myself=$0
12453 fi
12454 if test ! -f "$as_myself"; then
12455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12456 { (exit 1); exit 1; }
12457 fi
12458
12459 # Work around bugs in pre-3.0 UWIN ksh.
12460 for as_var in ENV MAIL MAILPATH
12461 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12462 done
12463 PS1='$ '
12464 PS2='> '
12465 PS4='+ '
12466
12467 # NLS nuisances.
12468 LC_ALL=C
12469 export LC_ALL
12470 LANGUAGE=C
12471 export LANGUAGE
12472
12473 # Required to use basename.
12474 if expr a : '\(a\)' >/dev/null 2>&1 &&
12475 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12476 as_expr=expr
12477 else
12478 as_expr=false
12479 fi
12480
12481 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12482 as_basename=basename
12483 else
12484 as_basename=false
12485 fi
12486
12487
12488 # Name of the executable.
12489 as_me=`$as_basename -- "$0" ||
12490 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12491 X"$0" : 'X\(//\)$' \| \
12492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12493 $as_echo X/"$0" |
12494 sed '/^.*\/\([^/][^/]*\)\/*$/{
12495 s//\1/
12496 q
12497 }
12498 /^X\/\(\/\/\)$/{
12499 s//\1/
12500 q
12501 }
12502 /^X\/\(\/\).*/{
12503 s//\1/
12504 q
12505 }
12506 s/.*/./; q'`
12507
12508 # CDPATH.
12509 $as_unset CDPATH
12510
12511
12512
12513 as_lineno_1=$LINENO
12514 as_lineno_2=$LINENO
12515 test "x$as_lineno_1" != "x$as_lineno_2" &&
12516 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12517
12518 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12519 # uniformly replaced by the line number. The first 'sed' inserts a
12520 # line-number line after each line using $LINENO; the second 'sed'
12521 # does the real work. The second script uses 'N' to pair each
12522 # line-number line with the line containing $LINENO, and appends
12523 # trailing '-' during substitution so that $LINENO is not a special
12524 # case at line end.
12525 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12526 # scripts with optimization help from Paolo Bonzini. Blame Lee
12527 # E. McMahon (1931-1989) for sed's syntax. :-)
12528 sed -n '
12529 p
12530 /[$]LINENO/=
12531 ' <$as_myself |
12532 sed '
12533 s/[$]LINENO.*/&-/
12534 t lineno
12535 b
12536 :lineno
12537 N
12538 :loop
12539 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12540 t loop
12541 s/-\n.*//
12542 ' >$as_me.lineno &&
12543 chmod +x "$as_me.lineno" ||
12544 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12545 { (exit 1); exit 1; }; }
12546
12547 # Don't try to exec as it changes $[0], causing all sort of problems
12548 # (the dirname of $[0] is not the place where we might find the
12549 # original and so on. Autoconf is especially sensitive to this).
12550 . "./$as_me.lineno"
12551 # Exit status is that of the last command.
12552 exit
12553 }
12554
12555
12556 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12557 as_dirname=dirname
12558 else
12559 as_dirname=false
12560 fi
12561
12562 ECHO_C= ECHO_N= ECHO_T=
12563 case `echo -n x` in
12564 -n*)
12565 case `echo 'x\c'` in
12566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12567 *) ECHO_C='\c';;
12568 esac;;
12569 *)
12570 ECHO_N='-n';;
12571 esac
12572 if expr a : '\(a\)' >/dev/null 2>&1 &&
12573 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12574 as_expr=expr
12575 else
12576 as_expr=false
12577 fi
12578
12579 rm -f conf$$ conf$$.exe conf$$.file
12580 if test -d conf$$.dir; then
12581 rm -f conf$$.dir/conf$$.file
12582 else
12583 rm -f conf$$.dir
12584 mkdir conf$$.dir 2>/dev/null
12585 fi
12586 if (echo >conf$$.file) 2>/dev/null; then
12587 if ln -s conf$$.file conf$$ 2>/dev/null; then
12588 as_ln_s='ln -s'
12589 # ... but there are two gotchas:
12590 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12591 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12592 # In both cases, we have to default to `cp -p'.
12593 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12594 as_ln_s='cp -p'
12595 elif ln conf$$.file conf$$ 2>/dev/null; then
12596 as_ln_s=ln
12597 else
12598 as_ln_s='cp -p'
12599 fi
12600 else
12601 as_ln_s='cp -p'
12602 fi
12603 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12604 rmdir conf$$.dir 2>/dev/null
12605
12606 if mkdir -p . 2>/dev/null; then
12607 as_mkdir_p=:
12608 else
12609 test -d ./-p && rmdir ./-p
12610 as_mkdir_p=false
12611 fi
12612
12613 if test -x / >/dev/null 2>&1; then
12614 as_test_x='test -x'
12615 else
12616 if ls -dL / >/dev/null 2>&1; then
12617 as_ls_L_option=L
12618 else
12619 as_ls_L_option=
12620 fi
12621 as_test_x='
12622 eval sh -c '\''
12623 if test -d "$1"; then
12624 test -d "$1/.";
12625 else
12626 case $1 in
12627 -*)set "./$1";;
12628 esac;
12629 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12630 ???[sx]*):;;*)false;;esac;fi
12631 '\'' sh
12632 '
12633 fi
12634 as_executable_p=$as_test_x
12635
12636 # Sed expression to map a string onto a valid CPP name.
12637 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12638
12639 # Sed expression to map a string onto a valid variable name.
12640 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12641
12642
12643 exec 6>&1
12644
12645 # Save the log message, to keep $[0] and so on meaningful, and to
12646 # report actual input values of CONFIG_FILES etc. instead of their
12647 # values after options handling.
12648 ac_log="
12649 This file was extended by libXi $as_me 1.3, which was
12650 generated by GNU Autoconf 2.63. Invocation command line was
12651
12652 CONFIG_FILES = $CONFIG_FILES
12653 CONFIG_HEADERS = $CONFIG_HEADERS
12654 CONFIG_LINKS = $CONFIG_LINKS
12655 CONFIG_COMMANDS = $CONFIG_COMMANDS
12656 $ $0 $@
12657
12658 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12659 "
12660
12661 _ACEOF
12662
12663 case $ac_config_files in *"
12664 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12665 esac
12666
12667 case $ac_config_headers in *"
12668 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12669 esac
12670
12671
12672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12673 # Files that config.status was made for.
12674 config_files="$ac_config_files"
12675 config_headers="$ac_config_headers"
12676 config_commands="$ac_config_commands"
12677
12678 _ACEOF
12679
12680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12681 ac_cs_usage="\
12682 \`$as_me' instantiates files from templates according to the
12683 current configuration.
12684
12685 Usage: $0 [OPTION]... [FILE]...
12686
12687 -h, --help print this help, then exit
12688 -V, --version print version number and configuration settings, then exit
12689 -q, --quiet, --silent
12690 do not print progress messages
12691 -d, --debug don't remove temporary files
12692 --recheck update $as_me by reconfiguring in the same conditions
12693 --file=FILE[:TEMPLATE]
12694 instantiate the configuration file FILE
12695 --header=FILE[:TEMPLATE]
12696 instantiate the configuration header FILE
12697
12698 Configuration files:
12699 $config_files
12700
12701 Configuration headers:
12702 $config_headers
12703
12704 Configuration commands:
12705 $config_commands
12706
12707 Report bugs to <bug-autoconf (at] gnu.org>."
12708
12709 _ACEOF
12710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12711 ac_cs_version="\\
12712 libXi config.status 1.3
12713 configured by $0, generated by GNU Autoconf 2.63,
12714 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12715
12716 Copyright (C) 2008 Free Software Foundation, Inc.
12717 This config.status script is free software; the Free Software Foundation
12718 gives unlimited permission to copy, distribute and modify it."
12719
12720 ac_pwd='$ac_pwd'
12721 srcdir='$srcdir'
12722 INSTALL='$INSTALL'
12723 MKDIR_P='$MKDIR_P'
12724 AWK='$AWK'
12725 test -n "\$AWK" || AWK=awk
12726 _ACEOF
12727
12728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12729 # The default lists apply if the user does not specify any file.
12730 ac_need_defaults=:
12731 while test $# != 0
12732 do
12733 case $1 in
12734 --*=*)
12735 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12736 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12737 ac_shift=:
12738 ;;
12739 *)
12740 ac_option=$1
12741 ac_optarg=$2
12742 ac_shift=shift
12743 ;;
12744 esac
12745
12746 case $ac_option in
12747 # Handling of the options.
12748 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12749 ac_cs_recheck=: ;;
12750 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12751 $as_echo "$ac_cs_version"; exit ;;
12752 --debug | --debu | --deb | --de | --d | -d )
12753 debug=: ;;
12754 --file | --fil | --fi | --f )
12755 $ac_shift
12756 case $ac_optarg in
12757 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12758 esac
12759 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12760 ac_need_defaults=false;;
12761 --header | --heade | --head | --hea )
12762 $ac_shift
12763 case $ac_optarg in
12764 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12765 esac
12766 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12767 ac_need_defaults=false;;
12768 --he | --h)
12769 # Conflict between --help and --header
12770 { $as_echo "$as_me: error: ambiguous option: $1
12771 Try \`$0 --help' for more information." >&2
12772 { (exit 1); exit 1; }; };;
12773 --help | --hel | -h )
12774 $as_echo "$ac_cs_usage"; exit ;;
12775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12776 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12777 ac_cs_silent=: ;;
12778
12779 # This is an error.
12780 -*) { $as_echo "$as_me: error: unrecognized option: $1
12781 Try \`$0 --help' for more information." >&2
12782 { (exit 1); exit 1; }; } ;;
12783
12784 *) ac_config_targets="$ac_config_targets $1"
12785 ac_need_defaults=false ;;
12786
12787 esac
12788 shift
12789 done
12790
12791 ac_configure_extra_args=
12792
12793 if $ac_cs_silent; then
12794 exec 6>/dev/null
12795 ac_configure_extra_args="$ac_configure_extra_args --silent"
12796 fi
12797
12798 _ACEOF
12799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12800 if \$ac_cs_recheck; then
12801 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12802 shift
12803 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12804 CONFIG_SHELL='$SHELL'
12805 export CONFIG_SHELL
12806 exec "\$@"
12807 fi
12808
12809 _ACEOF
12810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12811 exec 5>>config.log
12812 {
12813 echo
12814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12815 ## Running $as_me. ##
12816 _ASBOX
12817 $as_echo "$ac_log"
12818 } >&5
12819
12820 _ACEOF
12821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12822 #
12823 # INIT-COMMANDS
12824 #
12825 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12826
12827
12828 # The HP-UX ksh and POSIX shell print the target directory to stdout
12829 # if CDPATH is set.
12830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12831
12832 sed_quote_subst='$sed_quote_subst'
12833 double_quote_subst='$double_quote_subst'
12834 delay_variable_subst='$delay_variable_subst'
12835 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12836 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12837 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12838 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12839 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12840 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12841 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12842 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12843 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12844 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12845 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12846 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12847 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12848 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12849 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12850 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12851 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12852 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12853 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12854 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12855 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12856 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12857 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12858 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12859 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12860 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12861 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12862 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12863 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12864 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12865 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12866 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12867 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12868 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12869 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12870 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12871 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12872 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12873 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12874 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12875 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12876 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12877 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12878 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12879 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12880 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12881 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12882 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12883 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12884 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12885 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12886 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12887 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12888 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12889 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12890 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12891 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12892 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12893 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12894 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12895 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12896 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12897 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12898 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12899 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12900 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12901 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12902 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12903 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12904 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12905 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12906 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12907 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12908 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12909 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12910 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12911 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12912 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12913 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12914 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12915 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12916 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12917 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12918 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12919 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12920 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12921 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12922 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12923 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12924 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12925 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12926 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12927 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12928 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12929 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12930 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12931 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12932 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12933 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12934 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12935 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12936 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12937 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12938 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12939 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12940 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12941 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12942 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12943 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12944 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12945 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12946 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12947 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12948 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12949 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12950 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12951 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12952 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12953
12954 LTCC='$LTCC'
12955 LTCFLAGS='$LTCFLAGS'
12956 compiler='$compiler_DEFAULT'
12957
12958 # Quote evaled strings.
12959 for var in SED \
12960 GREP \
12961 EGREP \
12962 FGREP \
12963 LD \
12964 NM \
12965 LN_S \
12966 lt_SP2NL \
12967 lt_NL2SP \
12968 reload_flag \
12969 OBJDUMP \
12970 deplibs_check_method \
12971 file_magic_cmd \
12972 AR \
12973 AR_FLAGS \
12974 STRIP \
12975 RANLIB \
12976 CC \
12977 CFLAGS \
12978 compiler \
12979 lt_cv_sys_global_symbol_pipe \
12980 lt_cv_sys_global_symbol_to_cdecl \
12981 lt_cv_sys_global_symbol_to_c_name_address \
12982 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12983 SHELL \
12984 ECHO \
12985 lt_prog_compiler_no_builtin_flag \
12986 lt_prog_compiler_wl \
12987 lt_prog_compiler_pic \
12988 lt_prog_compiler_static \
12989 lt_cv_prog_compiler_c_o \
12990 need_locks \
12991 DSYMUTIL \
12992 NMEDIT \
12993 LIPO \
12994 OTOOL \
12995 OTOOL64 \
12996 shrext_cmds \
12997 export_dynamic_flag_spec \
12998 whole_archive_flag_spec \
12999 compiler_needs_object \
13000 with_gnu_ld \
13001 allow_undefined_flag \
13002 no_undefined_flag \
13003 hardcode_libdir_flag_spec \
13004 hardcode_libdir_flag_spec_ld \
13005 hardcode_libdir_separator \
13006 fix_srcfile_path \
13007 exclude_expsyms \
13008 include_expsyms \
13009 file_list_spec \
13010 variables_saved_for_relink \
13011 libname_spec \
13012 library_names_spec \
13013 soname_spec \
13014 finish_eval \
13015 old_striplib \
13016 striplib; do
13017 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13018 *[\\\\\\\`\\"\\\$]*)
13019 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13020 ;;
13021 *)
13022 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13023 ;;
13024 esac
13025 done
13026
13027 # Double-quote double-evaled strings.
13028 for var in reload_cmds \
13029 old_postinstall_cmds \
13030 old_postuninstall_cmds \
13031 old_archive_cmds \
13032 extract_expsyms_cmds \
13033 old_archive_from_new_cmds \
13034 old_archive_from_expsyms_cmds \
13035 archive_cmds \
13036 archive_expsym_cmds \
13037 module_cmds \
13038 module_expsym_cmds \
13039 export_symbols_cmds \
13040 prelink_cmds \
13041 postinstall_cmds \
13042 postuninstall_cmds \
13043 finish_cmds \
13044 sys_lib_search_path_spec \
13045 sys_lib_dlsearch_path_spec; do
13046 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13047 *[\\\\\\\`\\"\\\$]*)
13048 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13049 ;;
13050 *)
13051 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13052 ;;
13053 esac
13054 done
13055
13056 # Fix-up fallback echo if it was mangled by the above quoting rules.
13057 case \$lt_ECHO in
13058 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13059 ;;
13060 esac
13061
13062 ac_aux_dir='$ac_aux_dir'
13063 xsi_shell='$xsi_shell'
13064 lt_shell_append='$lt_shell_append'
13065
13066 # See if we are running on zsh, and set the options which allow our
13067 # commands through without removal of \ escapes INIT.
13068 if test -n "\${ZSH_VERSION+set}" ; then
13069 setopt NO_GLOB_SUBST
13070 fi
13071
13072
13073 PACKAGE='$PACKAGE'
13074 VERSION='$VERSION'
13075 TIMESTAMP='$TIMESTAMP'
13076 RM='$RM'
13077 ofile='$ofile'
13078
13079
13080
13081
13082 _ACEOF
13083
13084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13085
13086 # Handling of arguments.
13087 for ac_config_target in $ac_config_targets
13088 do
13089 case $ac_config_target in
13090 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13091 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13092 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13093 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13094 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13095 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13096 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
13097
13098 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13099 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13100 { (exit 1); exit 1; }; };;
13101 esac
13102 done
13103
13104
13105 # If the user did not use the arguments to specify the items to instantiate,
13106 # then the envvar interface is used. Set only those that are not.
13107 # We use the long form for the default assignment because of an extremely
13108 # bizarre bug on SunOS 4.1.3.
13109 if $ac_need_defaults; then
13110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13112 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13113 fi
13114
13115 # Have a temporary directory for convenience. Make it in the build tree
13116 # simply because there is no reason against having it here, and in addition,
13117 # creating and moving files from /tmp can sometimes cause problems.
13118 # Hook for its removal unless debugging.
13119 # Note that there is a small window in which the directory will not be cleaned:
13120 # after its creation but before its name has been assigned to `$tmp'.
13121 $debug ||
13122 {
13123 tmp=
13124 trap 'exit_status=$?
13125 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13126 ' 0
13127 trap '{ (exit 1); exit 1; }' 1 2 13 15
13128 }
13129 # Create a (secure) tmp directory for tmp files.
13130
13131 {
13132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13133 test -n "$tmp" && test -d "$tmp"
13134 } ||
13135 {
13136 tmp=./conf$$-$RANDOM
13137 (umask 077 && mkdir "$tmp")
13138 } ||
13139 {
13140 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13141 { (exit 1); exit 1; }
13142 }
13143
13144 # Set up the scripts for CONFIG_FILES section.
13145 # No need to generate them if there are no CONFIG_FILES.
13146 # This happens for instance with `./config.status config.h'.
13147 if test -n "$CONFIG_FILES"; then
13148
13149
13150 ac_cr='
'
13152 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13153 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13154 ac_cs_awk_cr='\\r'
13155 else
13156 ac_cs_awk_cr=$ac_cr
13157 fi
13158
13159 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13160 _ACEOF
13161
13162
13163 {
13164 echo "cat >conf$$subs.awk <<_ACEOF" &&
13165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13166 echo "_ACEOF"
13167 } >conf$$subs.sh ||
13168 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13169 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13170 { (exit 1); exit 1; }; }
13171 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13172 ac_delim='%!_!# '
13173 for ac_last_try in false false false false false :; do
13174 . ./conf$$subs.sh ||
13175 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13176 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13177 { (exit 1); exit 1; }; }
13178
13179 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13180 if test $ac_delim_n = $ac_delim_num; then
13181 break
13182 elif $ac_last_try; then
13183 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13184 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13185 { (exit 1); exit 1; }; }
13186 else
13187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13188 fi
13189 done
13190 rm -f conf$$subs.sh
13191
13192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13193 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13194 _ACEOF
13195 sed -n '
13196 h
13197 s/^/S["/; s/!.*/"]=/
13198 p
13199 g
13200 s/^[^!]*!//
13201 :repl
13202 t repl
13203 s/'"$ac_delim"'$//
13204 t delim
13205 :nl
13206 h
13207 s/\(.\{148\}\).*/\1/
13208 t more1
13209 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13210 p
13211 n
13212 b repl
13213 :more1
13214 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13215 p
13216 g
13217 s/.\{148\}//
13218 t nl
13219 :delim
13220 h
13221 s/\(.\{148\}\).*/\1/
13222 t more2
13223 s/["\\]/\\&/g; s/^/"/; s/$/"/
13224 p
13225 b
13226 :more2
13227 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13228 p
13229 g
13230 s/.\{148\}//
13231 t delim
13232 ' <conf$$subs.awk | sed '
13233 /^[^""]/{
13234 N
13235 s/\n//
13236 }
13237 ' >>$CONFIG_STATUS || ac_write_fail=1
13238 rm -f conf$$subs.awk
13239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13240 _ACAWK
13241 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13242 for (key in S) S_is_set[key] = 1
13243 FS = ""
13244
13245 }
13246 {
13247 line = $ 0
13248 nfields = split(line, field, "@")
13249 substed = 0
13250 len = length(field[1])
13251 for (i = 2; i < nfields; i++) {
13252 key = field[i]
13253 keylen = length(key)
13254 if (S_is_set[key]) {
13255 value = S[key]
13256 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13257 len += length(value) + length(field[++i])
13258 substed = 1
13259 } else
13260 len += 1 + keylen
13261 }
13262
13263 print line
13264 }
13265
13266 _ACAWK
13267 _ACEOF
13268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13269 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13270 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13271 else
13272 cat
13273 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13274 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13275 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13276 { (exit 1); exit 1; }; }
13277 _ACEOF
13278
13279 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13280 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13281 # trailing colons and then remove the whole line if VPATH becomes empty
13282 # (actually we leave an empty line to preserve line numbers).
13283 if test "x$srcdir" = x.; then
13284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13285 s/:*\$(srcdir):*/:/
13286 s/:*\${srcdir}:*/:/
13287 s/:*@srcdir@:*/:/
13288 s/^\([^=]*=[ ]*\):*/\1/
13289 s/:*$//
13290 s/^[^=]*=[ ]*$//
13291 }'
13292 fi
13293
13294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13295 fi # test -n "$CONFIG_FILES"
13296
13297 # Set up the scripts for CONFIG_HEADERS section.
13298 # No need to generate them if there are no CONFIG_HEADERS.
13299 # This happens for instance with `./config.status Makefile'.
13300 if test -n "$CONFIG_HEADERS"; then
13301 cat >"$tmp/defines.awk" <<\_ACAWK ||
13302 BEGIN {
13303 _ACEOF
13304
13305 # Transform confdefs.h into an awk script `defines.awk', embedded as
13306 # here-document in config.status, that substitutes the proper values into
13307 # config.h.in to produce config.h.
13308
13309 # Create a delimiter string that does not exist in confdefs.h, to ease
13310 # handling of long lines.
13311 ac_delim='%!_!# '
13312 for ac_last_try in false false :; do
13313 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13314 if test -z "$ac_t"; then
13315 break
13316 elif $ac_last_try; then
13317 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13318 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13319 { (exit 1); exit 1; }; }
13320 else
13321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13322 fi
13323 done
13324
13325 # For the awk script, D is an array of macro values keyed by name,
13326 # likewise P contains macro parameters if any. Preserve backslash
13327 # newline sequences.
13328
13329 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13330 sed -n '
13331 s/.\{148\}/&'"$ac_delim"'/g
13332 t rset
13333 :rset
13334 s/^[ ]*#[ ]*define[ ][ ]*/ /
13335 t def
13336 d
13337 :def
13338 s/\\$//
13339 t bsnl
13340 s/["\\]/\\&/g
13341 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13342 D["\1"]=" \3"/p
13343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13344 d
13345 :bsnl
13346 s/["\\]/\\&/g
13347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13348 D["\1"]=" \3\\\\\\n"\\/p
13349 t cont
13350 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13351 t cont
13352 d
13353 :cont
13354 n
13355 s/.\{148\}/&'"$ac_delim"'/g
13356 t clear
13357 :clear
13358 s/\\$//
13359 t bsnlc
13360 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13361 d
13362 :bsnlc
13363 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13364 b cont
13365 ' <confdefs.h | sed '
13366 s/'"$ac_delim"'/"\\\
13367 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13368
13369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13370 for (key in D) D_is_set[key] = 1
13371 FS = ""
13372 }
13373 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13374 line = \$ 0
13375 split(line, arg, " ")
13376 if (arg[1] == "#") {
13377 defundef = arg[2]
13378 mac1 = arg[3]
13379 } else {
13380 defundef = substr(arg[1], 2)
13381 mac1 = arg[2]
13382 }
13383 split(mac1, mac2, "(") #)
13384 macro = mac2[1]
13385 prefix = substr(line, 1, index(line, defundef) - 1)
13386 if (D_is_set[macro]) {
13387 # Preserve the white space surrounding the "#".
13388 print prefix "define", macro P[macro] D[macro]
13389 next
13390 } else {
13391 # Replace #undef with comments. This is necessary, for example,
13392 # in the case of _POSIX_SOURCE, which is predefined and required
13393 # on some systems where configure will not decide to define it.
13394 if (defundef == "undef") {
13395 print "/*", prefix defundef, macro, "*/"
13396 next
13397 }
13398 }
13399 }
13400 { print }
13401 _ACAWK
13402 _ACEOF
13403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13404 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13405 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13406 { (exit 1); exit 1; }; }
13407 fi # test -n "$CONFIG_HEADERS"
13408
13409
13410 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13411 shift
13412 for ac_tag
13413 do
13414 case $ac_tag in
13415 :[FHLC]) ac_mode=$ac_tag; continue;;
13416 esac
13417 case $ac_mode$ac_tag in
13418 :[FHL]*:*);;
13419 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13420 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13421 { (exit 1); exit 1; }; };;
13422 :[FH]-) ac_tag=-:-;;
13423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13424 esac
13425 ac_save_IFS=$IFS
13426 IFS=:
13427 set x $ac_tag
13428 IFS=$ac_save_IFS
13429 shift
13430 ac_file=$1
13431 shift
13432
13433 case $ac_mode in
13434 :L) ac_source=$1;;
13435 :[FH])
13436 ac_file_inputs=
13437 for ac_f
13438 do
13439 case $ac_f in
13440 -) ac_f="$tmp/stdin";;
13441 *) # Look for the file first in the build tree, then in the source tree
13442 # (if the path is not absolute). The absolute path cannot be DOS-style,
13443 # because $ac_f cannot contain `:'.
13444 test -f "$ac_f" ||
13445 case $ac_f in
13446 [\\/$]*) false;;
13447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13448 esac ||
13449 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13450 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13451 { (exit 1); exit 1; }; };;
13452 esac
13453 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13454 ac_file_inputs="$ac_file_inputs '$ac_f'"
13455 done
13456
13457 # Let's still pretend it is `configure' which instantiates (i.e., don't
13458 # use $as_me), people would be surprised to read:
13459 # /* config.h. Generated by config.status. */
13460 configure_input='Generated from '`
13461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13462 `' by configure.'
13463 if test x"$ac_file" != x-; then
13464 configure_input="$ac_file. $configure_input"
13465 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13466 $as_echo "$as_me: creating $ac_file" >&6;}
13467 fi
13468 # Neutralize special characters interpreted by sed in replacement strings.
13469 case $configure_input in #(
13470 *\&* | *\|* | *\\* )
13471 ac_sed_conf_input=`$as_echo "$configure_input" |
13472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13473 *) ac_sed_conf_input=$configure_input;;
13474 esac
13475
13476 case $ac_tag in
13477 *:-:* | *:-) cat >"$tmp/stdin" \
13478 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13479 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13480 { (exit 1); exit 1; }; } ;;
13481 esac
13482 ;;
13483 esac
13484
13485 ac_dir=`$as_dirname -- "$ac_file" ||
13486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13487 X"$ac_file" : 'X\(//\)[^/]' \| \
13488 X"$ac_file" : 'X\(//\)$' \| \
13489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13490 $as_echo X"$ac_file" |
13491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13492 s//\1/
13493 q
13494 }
13495 /^X\(\/\/\)[^/].*/{
13496 s//\1/
13497 q
13498 }
13499 /^X\(\/\/\)$/{
13500 s//\1/
13501 q
13502 }
13503 /^X\(\/\).*/{
13504 s//\1/
13505 q
13506 }
13507 s/.*/./; q'`
13508 { as_dir="$ac_dir"
13509 case $as_dir in #(
13510 -*) as_dir=./$as_dir;;
13511 esac
13512 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13513 as_dirs=
13514 while :; do
13515 case $as_dir in #(
13516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13517 *) as_qdir=$as_dir;;
13518 esac
13519 as_dirs="'$as_qdir' $as_dirs"
13520 as_dir=`$as_dirname -- "$as_dir" ||
13521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13522 X"$as_dir" : 'X\(//\)[^/]' \| \
13523 X"$as_dir" : 'X\(//\)$' \| \
13524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13525 $as_echo X"$as_dir" |
13526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13527 s//\1/
13528 q
13529 }
13530 /^X\(\/\/\)[^/].*/{
13531 s//\1/
13532 q
13533 }
13534 /^X\(\/\/\)$/{
13535 s//\1/
13536 q
13537 }
13538 /^X\(\/\).*/{
13539 s//\1/
13540 q
13541 }
13542 s/.*/./; q'`
13543 test -d "$as_dir" && break
13544 done
13545 test -z "$as_dirs" || eval "mkdir $as_dirs"
13546 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13547 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13548 { (exit 1); exit 1; }; }; }
13549 ac_builddir=.
13550
13551 case "$ac_dir" in
13552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13553 *)
13554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13555 # A ".." for each directory in $ac_dir_suffix.
13556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13557 case $ac_top_builddir_sub in
13558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13560 esac ;;
13561 esac
13562 ac_abs_top_builddir=$ac_pwd
13563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13564 # for backward compatibility:
13565 ac_top_builddir=$ac_top_build_prefix
13566
13567 case $srcdir in
13568 .) # We are building in place.
13569 ac_srcdir=.
13570 ac_top_srcdir=$ac_top_builddir_sub
13571 ac_abs_top_srcdir=$ac_pwd ;;
13572 [\\/]* | ?:[\\/]* ) # Absolute name.
13573 ac_srcdir=$srcdir$ac_dir_suffix;
13574 ac_top_srcdir=$srcdir
13575 ac_abs_top_srcdir=$srcdir ;;
13576 *) # Relative name.
13577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13578 ac_top_srcdir=$ac_top_build_prefix$srcdir
13579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13580 esac
13581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13582
13583
13584 case $ac_mode in
13585 :F)
13586 #
13587 # CONFIG_FILE
13588 #
13589
13590 case $INSTALL in
13591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13592 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13593 esac
13594 ac_MKDIR_P=$MKDIR_P
13595 case $MKDIR_P in
13596 [\\/$]* | ?:[\\/]* ) ;;
13597 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13598 esac
13599 _ACEOF
13600
13601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13602 # If the template does not know about datarootdir, expand it.
13603 # FIXME: This hack should be removed a few years after 2.60.
13604 ac_datarootdir_hack=; ac_datarootdir_seen=
13605
13606 ac_sed_dataroot='
13607 /datarootdir/ {
13608 p
13609 q
13610 }
13611 /@datadir@/p
13612 /@docdir@/p
13613 /@infodir@/p
13614 /@localedir@/p
13615 /@mandir@/p
13616 '
13617 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13618 *datarootdir*) ac_datarootdir_seen=yes;;
13619 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13620 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13621 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13622 _ACEOF
13623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13624 ac_datarootdir_hack='
13625 s&@datadir@&$datadir&g
13626 s&@docdir@&$docdir&g
13627 s&@infodir@&$infodir&g
13628 s&@localedir@&$localedir&g
13629 s&@mandir@&$mandir&g
13630 s&\\\${datarootdir}&$datarootdir&g' ;;
13631 esac
13632 _ACEOF
13633
13634 # Neutralize VPATH when `$srcdir' = `.'.
13635 # Shell code in configure.ac might set extrasub.
13636 # FIXME: do we really want to maintain this feature?
13637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13638 ac_sed_extra="$ac_vpsub
13639 $extrasub
13640 _ACEOF
13641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13642 :t
13643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13644 s|@configure_input@|$ac_sed_conf_input|;t t
13645 s&@top_builddir@&$ac_top_builddir_sub&;t t
13646 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13647 s&@srcdir@&$ac_srcdir&;t t
13648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13649 s&@top_srcdir@&$ac_top_srcdir&;t t
13650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13651 s&@builddir@&$ac_builddir&;t t
13652 s&@abs_builddir@&$ac_abs_builddir&;t t
13653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13654 s&@INSTALL@&$ac_INSTALL&;t t
13655 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13656 $ac_datarootdir_hack
13657 "
13658 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13659 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13660 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13661 { (exit 1); exit 1; }; }
13662
13663 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13664 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13665 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13666 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13667 which seems to be undefined. Please make sure it is defined." >&5
13668 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13669 which seems to be undefined. Please make sure it is defined." >&2;}
13670
13671 rm -f "$tmp/stdin"
13672 case $ac_file in
13673 -) cat "$tmp/out" && rm -f "$tmp/out";;
13674 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13675 esac \
13676 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13677 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13678 { (exit 1); exit 1; }; }
13679 ;;
13680 :H)
13681 #
13682 # CONFIG_HEADER
13683 #
13684 if test x"$ac_file" != x-; then
13685 {
13686 $as_echo "/* $configure_input */" \
13687 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13688 } >"$tmp/config.h" \
13689 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13690 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13691 { (exit 1); exit 1; }; }
13692 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13693 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13694 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13695 else
13696 rm -f "$ac_file"
13697 mv "$tmp/config.h" "$ac_file" \
13698 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13699 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13700 { (exit 1); exit 1; }; }
13701 fi
13702 else
13703 $as_echo "/* $configure_input */" \
13704 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13705 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13706 $as_echo "$as_me: error: could not create -" >&2;}
13707 { (exit 1); exit 1; }; }
13708 fi
13709 # Compute "$ac_file"'s index in $config_headers.
13710 _am_arg="$ac_file"
13711 _am_stamp_count=1
13712 for _am_header in $config_headers :; do
13713 case $_am_header in
13714 $_am_arg | $_am_arg:* )
13715 break ;;
13716 * )
13717 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13718 esac
13719 done
13720 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13721 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13722 X"$_am_arg" : 'X\(//\)[^/]' \| \
13723 X"$_am_arg" : 'X\(//\)$' \| \
13724 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13725 $as_echo X"$_am_arg" |
13726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13727 s//\1/
13728 q
13729 }
13730 /^X\(\/\/\)[^/].*/{
13731 s//\1/
13732 q
13733 }
13734 /^X\(\/\/\)$/{
13735 s//\1/
13736 q
13737 }
13738 /^X\(\/\).*/{
13739 s//\1/
13740 q
13741 }
13742 s/.*/./; q'`/stamp-h$_am_stamp_count
13743 ;;
13744
13745 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13746 $as_echo "$as_me: executing $ac_file commands" >&6;}
13747 ;;
13748 esac
13749
13750
13751 case $ac_file$ac_mode in
13752 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13753 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13754 # are listed without --file. Let's play safe and only enable the eval
13755 # if we detect the quoting.
13756 case $CONFIG_FILES in
13757 *\'*) eval set x "$CONFIG_FILES" ;;
13758 *) set x $CONFIG_FILES ;;
13759 esac
13760 shift
13761 for mf
13762 do
13763 # Strip MF so we end up with the name of the file.
13764 mf=`echo "$mf" | sed -e 's/:.*$//'`
13765 # Check whether this is an Automake generated Makefile or not.
13766 # We used to match only the files named `Makefile.in', but
13767 # some people rename them; so instead we look at the file content.
13768 # Grep'ing the first line is not enough: some people post-process
13769 # each Makefile.in and add a new line on top of each file to say so.
13770 # Grep'ing the whole file is not good either: AIX grep has a line
13771 # limit of 2048, but all sed's we know have understand at least 4000.
13772 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13773 dirpart=`$as_dirname -- "$mf" ||
13774 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13775 X"$mf" : 'X\(//\)[^/]' \| \
13776 X"$mf" : 'X\(//\)$' \| \
13777 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13778 $as_echo X"$mf" |
13779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13780 s//\1/
13781 q
13782 }
13783 /^X\(\/\/\)[^/].*/{
13784 s//\1/
13785 q
13786 }
13787 /^X\(\/\/\)$/{
13788 s//\1/
13789 q
13790 }
13791 /^X\(\/\).*/{
13792 s//\1/
13793 q
13794 }
13795 s/.*/./; q'`
13796 else
13797 continue
13798 fi
13799 # Extract the definition of DEPDIR, am__include, and am__quote
13800 # from the Makefile without running `make'.
13801 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13802 test -z "$DEPDIR" && continue
13803 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13804 test -z "am__include" && continue
13805 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13806 # When using ansi2knr, U may be empty or an underscore; expand it
13807 U=`sed -n 's/^U = //p' < "$mf"`
13808 # Find all dependency output files, they are included files with
13809 # $(DEPDIR) in their names. We invoke sed twice because it is the
13810 # simplest approach to changing $(DEPDIR) to its actual value in the
13811 # expansion.
13812 for file in `sed -n "
13813 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13814 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13815 # Make sure the directory exists.
13816 test -f "$dirpart/$file" && continue
13817 fdir=`$as_dirname -- "$file" ||
13818 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13819 X"$file" : 'X\(//\)[^/]' \| \
13820 X"$file" : 'X\(//\)$' \| \
13821 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13822 $as_echo X"$file" |
13823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13824 s//\1/
13825 q
13826 }
13827 /^X\(\/\/\)[^/].*/{
13828 s//\1/
13829 q
13830 }
13831 /^X\(\/\/\)$/{
13832 s//\1/
13833 q
13834 }
13835 /^X\(\/\).*/{
13836 s//\1/
13837 q
13838 }
13839 s/.*/./; q'`
13840 { as_dir=$dirpart/$fdir
13841 case $as_dir in #(
13842 -*) as_dir=./$as_dir;;
13843 esac
13844 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13845 as_dirs=
13846 while :; do
13847 case $as_dir in #(
13848 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13849 *) as_qdir=$as_dir;;
13850 esac
13851 as_dirs="'$as_qdir' $as_dirs"
13852 as_dir=`$as_dirname -- "$as_dir" ||
13853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13854 X"$as_dir" : 'X\(//\)[^/]' \| \
13855 X"$as_dir" : 'X\(//\)$' \| \
13856 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13857 $as_echo X"$as_dir" |
13858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13859 s//\1/
13860 q
13861 }
13862 /^X\(\/\/\)[^/].*/{
13863 s//\1/
13864 q
13865 }
13866 /^X\(\/\/\)$/{
13867 s//\1/
13868 q
13869 }
13870 /^X\(\/\).*/{
13871 s//\1/
13872 q
13873 }
13874 s/.*/./; q'`
13875 test -d "$as_dir" && break
13876 done
13877 test -z "$as_dirs" || eval "mkdir $as_dirs"
13878 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13879 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13880 { (exit 1); exit 1; }; }; }
13881 # echo "creating $dirpart/$file"
13882 echo '# dummy' > "$dirpart/$file"
13883 done
13884 done
13885 }
13886 ;;
13887 "libtool":C)
13888
13889 # See if we are running on zsh, and set the options which allow our
13890 # commands through without removal of \ escapes.
13891 if test -n "${ZSH_VERSION+set}" ; then
13892 setopt NO_GLOB_SUBST
13893 fi
13894
13895 cfgfile="${ofile}T"
13896 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13897 $RM "$cfgfile"
13898
13899 cat <<_LT_EOF >> "$cfgfile"
13900 #! $SHELL
13901
13902 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13903 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13904 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13905 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13906 #
13907 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13908 # 2006, 2007, 2008 Free Software Foundation, Inc.
13909 # Written by Gordon Matzigkeit, 1996
13910 #
13911 # This file is part of GNU Libtool.
13912 #
13913 # GNU Libtool is free software; you can redistribute it and/or
13914 # modify it under the terms of the GNU General Public License as
13915 # published by the Free Software Foundation; either version 2 of
13916 # the License, or (at your option) any later version.
13917 #
13918 # As a special exception to the GNU General Public License,
13919 # if you distribute this file as part of a program or library that
13920 # is built using GNU Libtool, you may include this file under the
13921 # same distribution terms that you use for the rest of that program.
13922 #
13923 # GNU Libtool is distributed in the hope that it will be useful,
13924 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13926 # GNU General Public License for more details.
13927 #
13928 # You should have received a copy of the GNU General Public License
13929 # along with GNU Libtool; see the file COPYING. If not, a copy
13930 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13931 # obtained by writing to the Free Software Foundation, Inc.,
13932 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13933
13934
13935 # The names of the tagged configurations supported by this script.
13936 available_tags=""
13937
13938 # ### BEGIN LIBTOOL CONFIG
13939
13940 # Which release of libtool.m4 was used?
13941 macro_version=$macro_version
13942 macro_revision=$macro_revision
13943
13944 # Whether or not to build shared libraries.
13945 build_libtool_libs=$enable_shared
13946
13947 # Whether or not to build static libraries.
13948 build_old_libs=$enable_static
13949
13950 # What type of objects to build.
13951 pic_mode=$pic_mode
13952
13953 # Whether or not to optimize for fast installation.
13954 fast_install=$enable_fast_install
13955
13956 # The host system.
13957 host_alias=$host_alias
13958 host=$host
13959 host_os=$host_os
13960
13961 # The build system.
13962 build_alias=$build_alias
13963 build=$build
13964 build_os=$build_os
13965
13966 # A sed program that does not truncate output.
13967 SED=$lt_SED
13968
13969 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13970 Xsed="\$SED -e 1s/^X//"
13971
13972 # A grep program that handles long lines.
13973 GREP=$lt_GREP
13974
13975 # An ERE matcher.
13976 EGREP=$lt_EGREP
13977
13978 # A literal string matcher.
13979 FGREP=$lt_FGREP
13980
13981 # A BSD- or MS-compatible name lister.
13982 NM=$lt_NM
13983
13984 # Whether we need soft or hard links.
13985 LN_S=$lt_LN_S
13986
13987 # What is the maximum length of a command?
13988 max_cmd_len=$max_cmd_len
13989
13990 # Object file suffix (normally "o").
13991 objext=$ac_objext
13992
13993 # Executable file suffix (normally "").
13994 exeext=$exeext
13995
13996 # whether the shell understands "unset".
13997 lt_unset=$lt_unset
13998
13999 # turn spaces into newlines.
14000 SP2NL=$lt_lt_SP2NL
14001
14002 # turn newlines into spaces.
14003 NL2SP=$lt_lt_NL2SP
14004
14005 # How to create reloadable object files.
14006 reload_flag=$lt_reload_flag
14007 reload_cmds=$lt_reload_cmds
14008
14009 # An object symbol dumper.
14010 OBJDUMP=$lt_OBJDUMP
14011
14012 # Method to check whether dependent libraries are shared objects.
14013 deplibs_check_method=$lt_deplibs_check_method
14014
14015 # Command to use when deplibs_check_method == "file_magic".
14016 file_magic_cmd=$lt_file_magic_cmd
14017
14018 # The archiver.
14019 AR=$lt_AR
14020 AR_FLAGS=$lt_AR_FLAGS
14021
14022 # A symbol stripping program.
14023 STRIP=$lt_STRIP
14024
14025 # Commands used to install an old-style archive.
14026 RANLIB=$lt_RANLIB
14027 old_postinstall_cmds=$lt_old_postinstall_cmds
14028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14029
14030 # A C compiler.
14031 LTCC=$lt_CC
14032
14033 # LTCC compiler flags.
14034 LTCFLAGS=$lt_CFLAGS
14035
14036 # Take the output of nm and produce a listing of raw symbols and C names.
14037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14038
14039 # Transform the output of nm in a proper C declaration.
14040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14041
14042 # Transform the output of nm in a C name address pair.
14043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14044
14045 # Transform the output of nm in a C name address pair when lib prefix is needed.
14046 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14047
14048 # The name of the directory that contains temporary libtool files.
14049 objdir=$objdir
14050
14051 # Shell to use when invoking shell scripts.
14052 SHELL=$lt_SHELL
14053
14054 # An echo program that does not interpret backslashes.
14055 ECHO=$lt_ECHO
14056
14057 # Used to examine libraries when file_magic_cmd begins with "file".
14058 MAGIC_CMD=$MAGIC_CMD
14059
14060 # Must we lock files when doing compilation?
14061 need_locks=$lt_need_locks
14062
14063 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14064 DSYMUTIL=$lt_DSYMUTIL
14065
14066 # Tool to change global to local symbols on Mac OS X.
14067 NMEDIT=$lt_NMEDIT
14068
14069 # Tool to manipulate fat objects and archives on Mac OS X.
14070 LIPO=$lt_LIPO
14071
14072 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14073 OTOOL=$lt_OTOOL
14074
14075 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14076 OTOOL64=$lt_OTOOL64
14077
14078 # Old archive suffix (normally "a").
14079 libext=$libext
14080
14081 # Shared library suffix (normally ".so").
14082 shrext_cmds=$lt_shrext_cmds
14083
14084 # The commands to extract the exported symbol list from a shared archive.
14085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14086
14087 # Variables whose values should be saved in libtool wrapper scripts and
14088 # restored at link time.
14089 variables_saved_for_relink=$lt_variables_saved_for_relink
14090
14091 # Do we need the "lib" prefix for modules?
14092 need_lib_prefix=$need_lib_prefix
14093
14094 # Do we need a version for libraries?
14095 need_version=$need_version
14096
14097 # Library versioning type.
14098 version_type=$version_type
14099
14100 # Shared library runtime path variable.
14101 runpath_var=$runpath_var
14102
14103 # Shared library path variable.
14104 shlibpath_var=$shlibpath_var
14105
14106 # Is shlibpath searched before the hard-coded library search path?
14107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14108
14109 # Format of library name prefix.
14110 libname_spec=$lt_libname_spec
14111
14112 # List of archive names. First name is the real one, the rest are links.
14113 # The last name is the one that the linker finds with -lNAME
14114 library_names_spec=$lt_library_names_spec
14115
14116 # The coded name of the library, if different from the real name.
14117 soname_spec=$lt_soname_spec
14118
14119 # Command to use after installation of a shared archive.
14120 postinstall_cmds=$lt_postinstall_cmds
14121
14122 # Command to use after uninstallation of a shared archive.
14123 postuninstall_cmds=$lt_postuninstall_cmds
14124
14125 # Commands used to finish a libtool library installation in a directory.
14126 finish_cmds=$lt_finish_cmds
14127
14128 # As "finish_cmds", except a single script fragment to be evaled but
14129 # not shown.
14130 finish_eval=$lt_finish_eval
14131
14132 # Whether we should hardcode library paths into libraries.
14133 hardcode_into_libs=$hardcode_into_libs
14134
14135 # Compile-time system search path for libraries.
14136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14137
14138 # Run-time system search path for libraries.
14139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14140
14141 # Whether dlopen is supported.
14142 dlopen_support=$enable_dlopen
14143
14144 # Whether dlopen of programs is supported.
14145 dlopen_self=$enable_dlopen_self
14146
14147 # Whether dlopen of statically linked programs is supported.
14148 dlopen_self_static=$enable_dlopen_self_static
14149
14150 # Commands to strip libraries.
14151 old_striplib=$lt_old_striplib
14152 striplib=$lt_striplib
14153
14154
14155 # The linker used to build libraries.
14156 LD=$lt_LD
14157
14158 # Commands used to build an old-style archive.
14159 old_archive_cmds=$lt_old_archive_cmds
14160
14161 # A language specific compiler.
14162 CC=$lt_compiler
14163
14164 # Is the compiler the GNU compiler?
14165 with_gcc=$GCC
14166
14167 # Compiler flag to turn off builtin functions.
14168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14169
14170 # How to pass a linker flag through the compiler.
14171 wl=$lt_lt_prog_compiler_wl
14172
14173 # Additional compiler flags for building library objects.
14174 pic_flag=$lt_lt_prog_compiler_pic
14175
14176 # Compiler flag to prevent dynamic linking.
14177 link_static_flag=$lt_lt_prog_compiler_static
14178
14179 # Does compiler simultaneously support -c and -o options?
14180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14181
14182 # Whether or not to add -lc for building shared libraries.
14183 build_libtool_need_lc=$archive_cmds_need_lc
14184
14185 # Whether or not to disallow shared libs when runtime libs are static.
14186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14187
14188 # Compiler flag to allow reflexive dlopens.
14189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14190
14191 # Compiler flag to generate shared objects directly from archives.
14192 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14193
14194 # Whether the compiler copes with passing no objects directly.
14195 compiler_needs_object=$lt_compiler_needs_object
14196
14197 # Create an old-style archive from a shared archive.
14198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14199
14200 # Create a temporary old-style archive to link instead of a shared archive.
14201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14202
14203 # Commands used to build a shared archive.
14204 archive_cmds=$lt_archive_cmds
14205 archive_expsym_cmds=$lt_archive_expsym_cmds
14206
14207 # Commands used to build a loadable module if different from building
14208 # a shared archive.
14209 module_cmds=$lt_module_cmds
14210 module_expsym_cmds=$lt_module_expsym_cmds
14211
14212 # Whether we are building with GNU ld or not.
14213 with_gnu_ld=$lt_with_gnu_ld
14214
14215 # Flag that allows shared libraries with undefined symbols to be built.
14216 allow_undefined_flag=$lt_allow_undefined_flag
14217
14218 # Flag that enforces no undefined symbols.
14219 no_undefined_flag=$lt_no_undefined_flag
14220
14221 # Flag to hardcode \$libdir into a binary during linking.
14222 # This must work even if \$libdir does not exist
14223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14224
14225 # If ld is used when linking, flag to hardcode \$libdir into a binary
14226 # during linking. This must work even if \$libdir does not exist.
14227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14228
14229 # Whether we need a single "-rpath" flag with a separated argument.
14230 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14231
14232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14233 # DIR into the resulting binary.
14234 hardcode_direct=$hardcode_direct
14235
14236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14237 # DIR into the resulting binary and the resulting library dependency is
14238 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14239 # library is relocated.
14240 hardcode_direct_absolute=$hardcode_direct_absolute
14241
14242 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14243 # into the resulting binary.
14244 hardcode_minus_L=$hardcode_minus_L
14245
14246 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14247 # into the resulting binary.
14248 hardcode_shlibpath_var=$hardcode_shlibpath_var
14249
14250 # Set to "yes" if building a shared library automatically hardcodes DIR
14251 # into the library and all subsequent libraries and executables linked
14252 # against it.
14253 hardcode_automatic=$hardcode_automatic
14254
14255 # Set to yes if linker adds runtime paths of dependent libraries
14256 # to runtime path list.
14257 inherit_rpath=$inherit_rpath
14258
14259 # Whether libtool must link a program against all its dependency libraries.
14260 link_all_deplibs=$link_all_deplibs
14261
14262 # Fix the shell variable \$srcfile for the compiler.
14263 fix_srcfile_path=$lt_fix_srcfile_path
14264
14265 # Set to "yes" if exported symbols are required.
14266 always_export_symbols=$always_export_symbols
14267
14268 # The commands to list exported symbols.
14269 export_symbols_cmds=$lt_export_symbols_cmds
14270
14271 # Symbols that should not be listed in the preloaded symbols.
14272 exclude_expsyms=$lt_exclude_expsyms
14273
14274 # Symbols that must always be exported.
14275 include_expsyms=$lt_include_expsyms
14276
14277 # Commands necessary for linking programs (against libraries) with templates.
14278 prelink_cmds=$lt_prelink_cmds
14279
14280 # Specify filename containing input files.
14281 file_list_spec=$lt_file_list_spec
14282
14283 # How to hardcode a shared library path into an executable.
14284 hardcode_action=$hardcode_action
14285
14286 # ### END LIBTOOL CONFIG
14287
14288 _LT_EOF
14289
14290 case $host_os in
14291 aix3*)
14292 cat <<\_LT_EOF >> "$cfgfile"
14293 # AIX sometimes has problems with the GCC collect2 program. For some
14294 # reason, if we set the COLLECT_NAMES environment variable, the problems
14295 # vanish in a puff of smoke.
14296 if test "X${COLLECT_NAMES+set}" != Xset; then
14297 COLLECT_NAMES=
14298 export COLLECT_NAMES
14299 fi
14300 _LT_EOF
14301 ;;
14302 esac
14303
14304
14305 ltmain="$ac_aux_dir/ltmain.sh"
14306
14307
14308 # We use sed instead of cat because bash on DJGPP gets confused if
14309 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14310 # text mode, it properly converts lines to CR/LF. This bash problem
14311 # is reportedly fixed, but why not run on old versions too?
14312 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14313 || (rm -f "$cfgfile"; exit 1)
14314
14315 case $xsi_shell in
14316 yes)
14317 cat << \_LT_EOF >> "$cfgfile"
14318
14319 # func_dirname file append nondir_replacement
14320 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14321 # otherwise set result to NONDIR_REPLACEMENT.
14322 func_dirname ()
14323 {
14324 case ${1} in
14325 */*) func_dirname_result="${1%/*}${2}" ;;
14326 * ) func_dirname_result="${3}" ;;
14327 esac
14328 }
14329
14330 # func_basename file
14331 func_basename ()
14332 {
14333 func_basename_result="${1##*/}"
14334 }
14335
14336 # func_dirname_and_basename file append nondir_replacement
14337 # perform func_basename and func_dirname in a single function
14338 # call:
14339 # dirname: Compute the dirname of FILE. If nonempty,
14340 # add APPEND to the result, otherwise set result
14341 # to NONDIR_REPLACEMENT.
14342 # value returned in "$func_dirname_result"
14343 # basename: Compute filename of FILE.
14344 # value retuned in "$func_basename_result"
14345 # Implementation must be kept synchronized with func_dirname
14346 # and func_basename. For efficiency, we do not delegate to
14347 # those functions but instead duplicate the functionality here.
14348 func_dirname_and_basename ()
14349 {
14350 case ${1} in
14351 */*) func_dirname_result="${1%/*}${2}" ;;
14352 * ) func_dirname_result="${3}" ;;
14353 esac
14354 func_basename_result="${1##*/}"
14355 }
14356
14357 # func_stripname prefix suffix name
14358 # strip PREFIX and SUFFIX off of NAME.
14359 # PREFIX and SUFFIX must not contain globbing or regex special
14360 # characters, hashes, percent signs, but SUFFIX may contain a leading
14361 # dot (in which case that matches only a dot).
14362 func_stripname ()
14363 {
14364 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14365 # positional parameters, so assign one to ordinary parameter first.
14366 func_stripname_result=${3}
14367 func_stripname_result=${func_stripname_result#"${1}"}
14368 func_stripname_result=${func_stripname_result%"${2}"}
14369 }
14370
14371 # func_opt_split
14372 func_opt_split ()
14373 {
14374 func_opt_split_opt=${1%%=*}
14375 func_opt_split_arg=${1#*=}
14376 }
14377
14378 # func_lo2o object
14379 func_lo2o ()
14380 {
14381 case ${1} in
14382 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14383 *) func_lo2o_result=${1} ;;
14384 esac
14385 }
14386
14387 # func_xform libobj-or-source
14388 func_xform ()
14389 {
14390 func_xform_result=${1%.*}.lo
14391 }
14392
14393 # func_arith arithmetic-term...
14394 func_arith ()
14395 {
14396 func_arith_result=$(( $* ))
14397 }
14398
14399 # func_len string
14400 # STRING may not start with a hyphen.
14401 func_len ()
14402 {
14403 func_len_result=${#1}
14404 }
14405
14406 _LT_EOF
14407 ;;
14408 *) # Bourne compatible functions.
14409 cat << \_LT_EOF >> "$cfgfile"
14410
14411 # func_dirname file append nondir_replacement
14412 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14413 # otherwise set result to NONDIR_REPLACEMENT.
14414 func_dirname ()
14415 {
14416 # Extract subdirectory from the argument.
14417 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14418 if test "X$func_dirname_result" = "X${1}"; then
14419 func_dirname_result="${3}"
14420 else
14421 func_dirname_result="$func_dirname_result${2}"
14422 fi
14423 }
14424
14425 # func_basename file
14426 func_basename ()
14427 {
14428 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14429 }
14430
14431
14432 # func_stripname prefix suffix name
14433 # strip PREFIX and SUFFIX off of NAME.
14434 # PREFIX and SUFFIX must not contain globbing or regex special
14435 # characters, hashes, percent signs, but SUFFIX may contain a leading
14436 # dot (in which case that matches only a dot).
14437 # func_strip_suffix prefix name
14438 func_stripname ()
14439 {
14440 case ${2} in
14441 .*) func_stripname_result=`$ECHO "X${3}" \
14442 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14443 *) func_stripname_result=`$ECHO "X${3}" \
14444 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14445 esac
14446 }
14447
14448 # sed scripts:
14449 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14450 my_sed_long_arg='1s/^-[^=]*=//'
14451
14452 # func_opt_split
14453 func_opt_split ()
14454 {
14455 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14456 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14457 }
14458
14459 # func_lo2o object
14460 func_lo2o ()
14461 {
14462 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14463 }
14464
14465 # func_xform libobj-or-source
14466 func_xform ()
14467 {
14468 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14469 }
14470
14471 # func_arith arithmetic-term...
14472 func_arith ()
14473 {
14474 func_arith_result=`expr "$@"`
14475 }
14476
14477 # func_len string
14478 # STRING may not start with a hyphen.
14479 func_len ()
14480 {
14481 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14482 }
14483
14484 _LT_EOF
14485 esac
14486
14487 case $lt_shell_append in
14488 yes)
14489 cat << \_LT_EOF >> "$cfgfile"
14490
14491 # func_append var value
14492 # Append VALUE to the end of shell variable VAR.
14493 func_append ()
14494 {
14495 eval "$1+=\$2"
14496 }
14497 _LT_EOF
14498 ;;
14499 *)
14500 cat << \_LT_EOF >> "$cfgfile"
14501
14502 # func_append var value
14503 # Append VALUE to the end of shell variable VAR.
14504 func_append ()
14505 {
14506 eval "$1=\$$1\$2"
14507 }
14508
14509 _LT_EOF
14510 ;;
14511 esac
14512
14513
14514 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14515 || (rm -f "$cfgfile"; exit 1)
14516
14517 mv -f "$cfgfile" "$ofile" ||
14518 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14519 chmod +x "$ofile"
14520
14521 ;;
14522
14523 esac
14524 done # for ac_tag
14525
14526
14527 { (exit 0); exit 0; }
14528 _ACEOF
14529 chmod +x $CONFIG_STATUS
14530 ac_clean_files=$ac_clean_files_save
14531
14532 test $ac_write_fail = 0 ||
14533 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14534 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14535 { (exit 1); exit 1; }; }
14536
14537
14538 # configure is writing to config.log, and then calls config.status.
14539 # config.status does its own redirection, appending to config.log.
14540 # Unfortunately, on DOS this fails, as config.log is still kept open
14541 # by configure, so config.status won't be able to write to it; its
14542 # output is simply discarded. So we exec the FD to /dev/null,
14543 # effectively closing config.log, so it can be properly (re)opened and
14544 # appended to by config.status. When coming back to configure, we
14545 # need to make the FD available again.
14546 if test "$no_create" != yes; then
14547 ac_cs_success=:
14548 ac_config_status_args=
14549 test "$silent" = yes &&
14550 ac_config_status_args="$ac_config_status_args --quiet"
14551 exec 5>/dev/null
14552 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14553 exec 5>>config.log
14554 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14555 # would make configure fail if this is the last instruction.
14556 $ac_cs_success || { (exit 1); exit 1; }
14557 fi
14558 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14559 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14560 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14561 fi
14562
14563
14564